search.proto 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. message SearchRequest {
  2. optional string query = 0x1;
  3. optional Type type = 0x2;
  4. enum Type {
  5. TRACK = 0x0;
  6. ALBUM = 0x1;
  7. ARTIST = 0x2;
  8. PLAYLIST = 0x3;
  9. USER = 0x4;
  10. }
  11. optional int32 limit = 0x3;
  12. optional int32 offset = 0x4;
  13. optional bool did_you_mean = 0x5;
  14. optional string spotify_uri = 0x2;
  15. repeated bytes file_id = 0x3;
  16. optional string url = 0x4;
  17. optional string slask_id = 0x5;
  18. }
  19. message Playlist {
  20. optional string uri = 0x1;
  21. optional string name = 0x2;
  22. repeated Image image = 0x3;
  23. }
  24. message User {
  25. optional string username = 0x1;
  26. optional string full_name = 0x2;
  27. repeated Image image = 0x3;
  28. optional sint32 followers = 0x4;
  29. }
  30. message SearchReply {
  31. optional sint32 hits = 0x1;
  32. repeated Track track = 0x2;
  33. repeated Album album = 0x3;
  34. repeated Artist artist = 0x4;
  35. repeated Playlist playlist = 0x5;
  36. optional string did_you_mean = 0x6;
  37. repeated User user = 0x7;
  38. }