| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- syntax = "proto3";
-
- option csharp_namespace = "SpotifyService.Protos";
-
- package search;
-
- service Search{
- rpc SearchForItem(SearchForItemRequest) returns (SearchForItemResponse);
- }
-
- message SearchForItemRequest{
- string query = 1;
- string type = 2;
- //string include_external = 3;
- //int32 limit = 4;
- //int32 offset = 5;
-
- }
-
- message SearchForItemResponse{
- message Tracks {
- string href = 1;
- repeated Items items = 2;
- }
-
- Tracks tracks = 1;
- message Items{
- Album album = 1;
- repeated Artists artists = 2;
- int32 duration_ms = 3;
- External_urls1 external_urls = 4;
- string href = 5;
- string id = 6;
- string name = 7;
- int32 popularity = 8;
- int32 track_number = 9;
- string type = 10;
- string uri = 11;
- }
-
- }
- message Images {
- uint32 height = 1;
- string url = 2;
- uint32 width = 3;
- }
-
- message Album {
- string href = 1;
- string id = 2;
- repeated Images images = 3;
- string name = 4;
- string release_date = 5;
- uint32 total_tracks = 6;
- string type = 7;
- string uri = 8;
- }
-
- message External_urls {
- string spotify = 1;
- }
-
- message Artists {
- External_urls external_urls = 1;
- string href = 2;
- string id = 3;
- string name = 4;
- string type = 5;
- string uri = 6;
- }
-
- message External_urls1 {
- string spotify = 1;
- }
|