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