-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotos.proto
121 lines (100 loc) · 2.28 KB
/
protos.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
syntax = "proto3";
message UserProfile {
string email = 1;
string user_id = 2;
}
enum Connectivity { CONNECTIVITY_WIFI = 1; }
enum DeviceOS { DEVICE_OS_ANDROID_GENERIC = 2; }
enum SecurityLevel { SECURITY_LEVEL_SOFTWARE = 2; }
message GetPlaybackInfoRequest {
uint32 episode_id = 1;
DeviceOS device_os = 2;
Connectivity connectivity = 3;
bool download = 4;
string device_id = 6;
uint32 trailer_id = 7;
SecurityLevel security_level = 8;
uint32 ad_id = 9;
}
message Manifest {
string url = 1;
repeated AuthCookie auth_cookies = 5;
}
message AuthCookie {
string name = 1;
string value = 2;
string path = 3;
string domain = 4;
}
enum SubtitleKind {
SUBTITLE_KIND_INVALID = 0;
SUBTITLE_KIND_SUBTITLE = 1;
SUBTITLE_KIND_CC = 2;
}
message Subtitle {
string url = 1;
string iso_639_2_code = 2;
SubtitleKind kind = 3;
}
message GetPlaybackInfoResponse {
string license_url = 2;
repeated Manifest manifests = 4;
repeated Subtitle subtitles = 5;
}
message Show {
uint32 id = 1;
string title = 2;
string description = 3;
string tagline = 4;
string logo_url = 6;
string portrait_thumbnail_url = 7;
string landscape_thumbnail_url = 8;
string long_description = 13;
string external_id = 16;
string deeplink_url = 17;
}
message Season {
uint32 num = 1;
uint32 show_id = 2;
repeated Episode episodes = 3;
string deeplink_url = 5;
}
message Episode {
uint32 id = 1;
string title = 2;
string description = 3;
uint32 season_num = 4;
uint32 episode_num = 5;
string portrait_thumbnail_url = 6;
string landscape_thumbnail_url = 7;
uint32 duration_ms = 8;
string tagline = 12;
}
message GetShowRequest { uint32 id = 1; }
message GetShowResponse {
Show show = 1;
Episode episode = 2;
repeated Season seasons = 3;
}
message SearchRequest { string query = 1; }
message SearchResponse {
SearchResponseSet top = 1;
SearchResponseSet shows = 2;
SearchResponseSet episodes = 3;
}
message SearchResponseSet {
repeated SearchResult results = 1;
double max_score = 2;
}
message SearchResult {
oneof result {
SearchShowsResult show_result = 1;
SearchEpisodeResult episode_result = 2;
}
double score = 3;
}
message SearchShowsResult { Show show = 1; }
message SearchEpisodeResult {
Show show = 1;
Episode episode = 2;
}