librespot/protocol/proto/display_segments_extension.proto

48 lines
1.1 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.displaysegments.v1;
2024-12-15 19:51:02 +00:00
option objc_class_prefix = "ESP";
2021-12-10 19:33:43 +00:00
option java_multiple_files = true;
option optimize_for = CODE_SIZE;
option java_outer_classname = "DisplaySegmentsExtensionProto";
option java_package = "com.spotify.displaysegments.v1.proto";
message DisplaySegmentsExtension {
string episode_uri = 1;
repeated DisplaySegment segments = 2;
int32 duration_ms = 3;
oneof decoration {
MusicAndTalkDecoration music_and_talk_decoration = 4;
2024-12-15 19:51:02 +00:00
PodcastChaptersDecoration podcast_chapters_decoration = 5;
2021-12-10 19:33:43 +00:00
}
}
message DisplaySegment {
string uri = 1;
SegmentType type = 2;
int32 duration_ms = 3;
int32 seek_start_ms = 4;
int32 seek_stop_ms = 5;
2024-12-15 19:51:02 +00:00
optional string title = 6;
optional string subtitle = 7;
optional string image_url = 8;
optional bool is_preview = 9;
2021-12-10 19:33:43 +00:00
}
message MusicAndTalkDecoration {
bool can_upsell = 1;
}
2024-12-15 19:51:02 +00:00
message PodcastChaptersDecoration {
repeated string tags = 1;
}
2021-12-10 19:33:43 +00:00
enum SegmentType {
SEGMENT_TYPE_UNSPECIFIED = 0;
SEGMENT_TYPE_TALK = 1;
SEGMENT_TYPE_MUSIC = 2;
}