librespot/protocol/proto/collection_item.proto

81 lines
2.7 KiB
Protocol Buffer
Raw Normal View History

2024-12-15 19:51:02 +00:00
// Extracted from: Spotify 1.2.52.442 (windows)
2021-12-10 19:33:43 +00:00
syntax = "proto3";
package spotify.collection_cosmos.proto;
import "metadata/album_metadata.proto";
import "metadata/artist_metadata.proto";
import "metadata/track_metadata.proto";
2024-12-15 19:51:02 +00:00
import "metadata/show_metadata.proto";
import "metadata/episode_metadata.proto";
2021-12-10 19:33:43 +00:00
import "collection/artist_collection_state.proto";
import "collection/album_collection_state.proto";
import "collection/track_collection_state.proto";
2024-12-15 19:51:02 +00:00
import "collection/show_collection_state.proto";
import "collection/episode_collection_state.proto";
2021-12-10 19:33:43 +00:00
import "sync/artist_sync_state.proto";
import "sync/album_sync_state.proto";
import "sync/track_sync_state.proto";
2024-12-15 19:51:02 +00:00
import "sync/episode_sync_state.proto";
2021-12-10 19:33:43 +00:00
import "played_state/track_played_state.proto";
2024-12-15 19:51:02 +00:00
import "played_state/show_played_state.proto";
import "played_state/episode_played_state.proto";
2021-12-10 19:33:43 +00:00
2024-12-15 19:51:02 +00:00
option java_package = "spotify.collection.esperanto.proto";
option java_multiple_files = true;
option objc_class_prefix = "ESP";
2021-12-10 19:33:43 +00:00
option optimize_for = CODE_SIZE;
message CollectionTrack {
uint32 index = 1;
uint32 add_time = 2;
cosmos_util.proto.TrackMetadata track_metadata = 3;
cosmos_util.proto.TrackCollectionState track_collection_state = 4;
cosmos_util.proto.TrackPlayState track_play_state = 5;
cosmos_util.proto.TrackSyncState track_sync_state = 6;
bool decorated = 7;
CollectionAlbum album = 8;
string cover = 9;
2024-12-15 19:51:02 +00:00
string link = 10;
repeated cosmos_util.proto.ArtistCollectionState artist_collection_state = 11;
2021-12-10 19:33:43 +00:00
}
message CollectionAlbum {
uint32 add_time = 1;
cosmos_util.proto.AlbumMetadata album_metadata = 2;
cosmos_util.proto.AlbumCollectionState album_collection_state = 3;
cosmos_util.proto.AlbumSyncState album_sync_state = 4;
bool decorated = 5;
string album_type = 6;
repeated CollectionTrack track = 7;
2024-12-15 19:51:02 +00:00
string link = 11;
2021-12-10 19:33:43 +00:00
}
message CollectionArtist {
cosmos_util.proto.ArtistMetadata artist_metadata = 1;
cosmos_util.proto.ArtistCollectionState artist_collection_state = 2;
cosmos_util.proto.ArtistSyncState artist_sync_state = 3;
bool decorated = 4;
repeated CollectionAlbum album = 5;
2024-12-15 19:51:02 +00:00
string link = 6;
2021-12-10 19:33:43 +00:00
}
2024-12-15 19:51:02 +00:00
message CollectionShow {
cosmos_util.proto.ShowMetadata show_metadata = 1;
cosmos_util.proto.ShowCollectionState show_collection_state = 2;
cosmos_util.proto.ShowPlayState show_play_state = 3;
uint32 add_time = 4;
string link = 5;
}
message CollectionEpisode {
cosmos_util.proto.EpisodeMetadata episode_metadata = 1;
cosmos_util.proto.EpisodeCollectionState episode_collection_state = 2;
cosmos_util.proto.EpisodeSyncState episode_offline_state = 3;
cosmos_util.proto.EpisodePlayState episode_play_state = 4;
CollectionShow show = 5;
string link = 6;
}