mikufans-proto 8.52.0+build.19546312

gRPC APIs for Mikufans
Documentation
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
// This file is @generated by prost-build.
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Earphone {
    ///
    #[prost(string, tag = "1")]
    pub product_model: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub like_toast_text: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub switch_toast_text: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "4")]
    pub like_toast_voice: ::prost::alloc::string::String,
}
impl ::prost::Name for Earphone {
    const NAME: &'static str = "Earphone";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Earphone".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Earphone".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EarphoneConf {
    ///
    #[prost(message, repeated, tag = "1")]
    pub sp_phones: ::prost::alloc::vec::Vec<Earphone>,
}
impl ::prost::Name for EarphoneConf {
    const NAME: &'static str = "EarphoneConf";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.EarphoneConf".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.EarphoneConf".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MultiViewInfo {
    ///
    #[prost(bool, tag = "1")]
    pub is_multi_view_season: bool,
    ///
    #[prost(string, tag = "2")]
    pub changing_dance: ::prost::alloc::string::String,
}
impl ::prost::Name for MultiViewInfo {
    const NAME: &'static str = "MultiViewInfo";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.MultiViewInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.MultiViewInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OgvData {
    ///
    #[prost(int32, tag = "1")]
    pub media_id: i32,
    ///
    #[prost(int64, tag = "2")]
    pub season_id: i64,
    ///
    #[prost(int32, tag = "3")]
    pub season_type: i32,
    ///
    #[prost(int32, tag = "4")]
    pub show_season_type: i32,
    ///
    #[prost(message, optional, tag = "5")]
    pub rights: ::core::option::Option<Rights>,
    ///
    #[prost(message, optional, tag = "6")]
    pub user_status: ::core::option::Option<UserStatus>,
    ///
    #[prost(int64, tag = "7")]
    pub aid: i64,
    ///
    #[prost(message, optional, tag = "8")]
    pub stat: ::core::option::Option<Stat>,
    ///
    #[prost(int32, tag = "9")]
    pub mode: i32,
    ///
    #[prost(message, optional, tag = "10")]
    pub publish: ::core::option::Option<Publish>,
    ///
    #[prost(message, optional, tag = "11")]
    pub play_strategy: ::core::option::Option<PlayStrategy>,
    ///
    #[prost(message, optional, tag = "12")]
    pub multi_view_info: ::core::option::Option<MultiViewInfo>,
    ///
    #[prost(message, optional, tag = "13")]
    pub ogv_switch: ::core::option::Option<OgvSwitch>,
    ///
    #[prost(int32, tag = "14")]
    pub total_ep: i32,
    ///
    #[prost(message, optional, tag = "15")]
    pub new_ep: ::core::option::Option<super::common::NewEp>,
    ///
    #[prost(message, optional, tag = "16")]
    pub reserve: ::core::option::Option<Reserve>,
    ///
    #[prost(int32, tag = "17")]
    pub status: i32,
    ///
    #[prost(message, repeated, tag = "18")]
    pub activity_float_layer: ::prost::alloc::vec::Vec<PlayFloatLayerActivity>,
    ///
    #[prost(message, optional, tag = "19")]
    pub earphone_conf: ::core::option::Option<EarphoneConf>,
    ///
    #[prost(string, tag = "20")]
    pub cover: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "21")]
    pub square_cover: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "22")]
    pub share_url: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "23")]
    pub short_link: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "24")]
    pub title: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "25")]
    pub horizontal_cover169: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "26")]
    pub horizontal_cover1610: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "27")]
    pub has_can_play_ep: i32,
    ///
    #[prost(message, optional, tag = "28")]
    pub skin: ::core::option::Option<Skin>,
}
impl ::prost::Name for OgvData {
    const NAME: &'static str = "OgvData";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.OgvData".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.OgvData".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OgvSwitch {
    ///
    #[prost(int32, tag = "1")]
    pub reduce_short_title_spacing: i32,
    ///
    #[prost(int32, tag = "2")]
    pub merge_position_section_for_cinema: i32,
    ///
    #[prost(int32, tag = "3")]
    pub merge_preview_section: i32,
    ///
    #[prost(int32, tag = "4")]
    pub enable_show_vt_info: i32,
    ///
    #[prost(int32, tag = "5")]
    pub hide_ep_vv_vt_dm: i32,
    ///
    #[prost(int32, tag = "6")]
    pub follow_guide: i32,
}
impl ::prost::Name for OgvSwitch {
    const NAME: &'static str = "OgvSwitch";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.OgvSwitch".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.OgvSwitch".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayFloatLayerActivity {
    ///
    #[prost(int32, tag = "1")]
    pub id: i32,
    ///
    #[prost(string, tag = "2")]
    pub title: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "3")]
    pub r#type: i32,
    ///
    #[prost(int32, tag = "4")]
    pub ad_badge_type: i32,
    ///
    #[prost(string, tag = "5")]
    pub link: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "6")]
    pub pic_url: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "7")]
    pub pic_anima_url: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "8")]
    pub badge: ::core::option::Option<super::common::BadgeInfo>,
    ///
    #[prost(int64, tag = "9")]
    pub show_rate_time: i64,
}
impl ::prost::Name for PlayFloatLayerActivity {
    const NAME: &'static str = "PlayFloatLayerActivity";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.PlayFloatLayerActivity".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayStrategy {
    ///
    #[prost(string, repeated, tag = "1")]
    pub strategies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    ///
    #[prost(int32, tag = "2")]
    pub recommend_show_strategy: i32,
    ///
    #[prost(string, tag = "3")]
    pub auto_play_toast: ::prost::alloc::string::String,
}
impl ::prost::Name for PlayStrategy {
    const NAME: &'static str = "PlayStrategy";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.PlayStrategy".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.PlayStrategy".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Publish {
    ///
    #[prost(string, tag = "1")]
    pub pub_time: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub pub_time_show: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "3")]
    pub is_started: i32,
    ///
    #[prost(int32, tag = "4")]
    pub is_finish: i32,
    ///
    #[prost(int32, tag = "5")]
    pub weekday: i32,
    ///
    #[prost(string, tag = "6")]
    pub release_date_show: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "7")]
    pub time_length_show: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "8")]
    pub unknow_pub_date: i32,
    ///
    #[prost(string, tag = "9")]
    pub update_info_desc: ::prost::alloc::string::String,
}
impl ::prost::Name for Publish {
    const NAME: &'static str = "Publish";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Publish".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Publish".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Reserve {
    ///
    #[prost(message, repeated, tag = "1")]
    pub episodes: ::prost::alloc::vec::Vec<super::common::ViewEpisode>,
    ///
    #[prost(string, tag = "2")]
    pub tip: ::prost::alloc::string::String,
}
impl ::prost::Name for Reserve {
    const NAME: &'static str = "Reserve";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Reserve".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Reserve".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Rights {
    ///
    #[prost(int32, tag = "1")]
    pub allow_download: i32,
    ///
    #[prost(int32, tag = "2")]
    pub allow_review: i32,
    ///
    #[prost(int32, tag = "3")]
    pub can_watch: i32,
    ///
    #[prost(int32, tag = "4")]
    pub is_cover_show: i32,
    ///
    #[prost(string, tag = "5")]
    pub copyright: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "6")]
    pub copyright_name: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "7")]
    pub allow_bp: i32,
    ///
    #[prost(int32, tag = "8")]
    pub area_limit: i32,
    ///
    #[prost(int32, tag = "9")]
    pub is_preview: i32,
    ///
    #[prost(int32, tag = "10")]
    pub ban_area_show: i32,
    ///
    #[prost(int32, tag = "11")]
    pub watch_platform: i32,
    ///
    #[prost(int32, tag = "12")]
    pub allow_bp_rank: i32,
    ///
    #[prost(string, tag = "13")]
    pub resource: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "14")]
    pub forbid_pre: i32,
    ///
    #[prost(int32, tag = "15")]
    pub only_vip_download: i32,
    ///
    #[prost(int32, tag = "16")]
    pub new_allow_download: i32,
}
impl ::prost::Name for Rights {
    const NAME: &'static str = "Rights";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Rights".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Rights".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Skin {
    ///
    #[prost(string, tag = "1")]
    pub tab_text_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub tab_text_night_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub bg_img: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "4")]
    pub bg_img_night: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "5")]
    pub dm_input_frame_bg_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "6")]
    pub dm_input_frame_bg_night_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "7")]
    pub dm_input_frame_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "8")]
    pub dm_input_frame_night_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "9")]
    pub dm_btn_bg_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "10")]
    pub dm_btn_bg_night_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "11")]
    pub dm_btn_icon_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "12")]
    pub dm_btn_icon_night_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "13")]
    pub dm_input_text_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "14")]
    pub dm_input_text_night_color: ::prost::alloc::string::String,
}
impl ::prost::Name for Skin {
    const NAME: &'static str = "Skin";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Skin".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Skin".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stat {
    ///
    #[prost(string, tag = "1")]
    pub followers: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "2")]
    pub play_data: ::core::option::Option<super::common::StatInfo>,
}
impl ::prost::Name for Stat {
    const NAME: &'static str = "Stat";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.Stat".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.Stat".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserStatus {
    ///
    #[prost(int32, tag = "1")]
    pub show: i32,
    ///
    #[prost(int32, tag = "2")]
    pub follow: i32,
    ///
    #[prost(int32, tag = "3")]
    pub follow_status: i32,
    ///
    #[prost(int32, tag = "4")]
    pub pay: i32,
    ///
    #[prost(int32, tag = "5")]
    pub sponsor: i32,
    ///
    #[prost(int32, tag = "6")]
    pub vip: i32,
    ///
    #[prost(int32, tag = "7")]
    pub vip_frozen: i32,
    ///
    #[prost(message, optional, tag = "8")]
    pub watch_progress: ::core::option::Option<WatchProgress>,
}
impl ::prost::Name for UserStatus {
    const NAME: &'static str = "UserStatus";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.UserStatus".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.UserStatus".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ViewPgcAny {
    ///
    #[prost(message, optional, tag = "1")]
    pub ogv_data: ::core::option::Option<OgvData>,
    ///
    #[prost(map = "int64, message", tag = "2")]
    pub all_up_info: ::std::collections::HashMap<i64, super::common::Staff>,
}
impl ::prost::Name for ViewPgcAny {
    const NAME: &'static str = "ViewPgcAny";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.ViewPgcAny".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.ViewPgcAny".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WatchProgress {
    ///
    #[prost(int64, tag = "1")]
    pub last_ep_id: i64,
    ///
    #[prost(string, tag = "2")]
    pub last_ep_index: ::prost::alloc::string::String,
    ///
    #[prost(int64, tag = "3")]
    pub last_time: i64,
}
impl ::prost::Name for WatchProgress {
    const NAME: &'static str = "WatchProgress";
    const PACKAGE: &'static str = "bilibili.app.viewunite.pgcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.viewunite.pgcanymodel.WatchProgress".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.viewunite.pgcanymodel.WatchProgress".into()
    }
}