suggest.proto 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. syntax = "proto2";
  2. message Track {
  3. optional bytes gid = 0x1;
  4. optional string name = 0x2;
  5. optional bytes image = 0x3;
  6. repeated string artist_name = 0x4;
  7. repeated bytes artist_gid = 0x5;
  8. optional uint32 rank = 0x6;
  9. }
  10. message Artist {
  11. optional bytes gid = 0x1;
  12. optional string name = 0x2;
  13. optional bytes image = 0x3;
  14. optional uint32 rank = 0x6;
  15. }
  16. message Album {
  17. optional bytes gid = 0x1;
  18. optional string name = 0x2;
  19. optional bytes image = 0x3;
  20. repeated string artist_name = 0x4;
  21. repeated bytes artist_gid = 0x5;
  22. optional uint32 rank = 0x6;
  23. }
  24. message Playlist {
  25. optional string uri = 0x1;
  26. optional string name = 0x2;
  27. optional string image_uri = 0x3;
  28. optional string owner_name = 0x4;
  29. optional string owner_uri = 0x5;
  30. optional uint32 rank = 0x6;
  31. }
  32. message Suggestions {
  33. repeated Track track = 0x1;
  34. repeated Album album = 0x2;
  35. repeated Artist artist = 0x3;
  36. repeated Playlist playlist = 0x4;
  37. }