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
// This file is @generated by prost-build.
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BusinessInfo {
    ///
    #[prost(bool, tag = "1")]
    pub is_preview: bool,
    ///
    #[prost(bool, tag = "2")]
    pub bp: bool,
    ///
    #[prost(string, tag = "3")]
    pub marlin_token: ::prost::alloc::string::String,
}
impl ::prost::Name for BusinessInfo {
    const NAME: &'static str = "BusinessInfo";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.BusinessInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.BusinessInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
    ///
    #[prost(message, optional, tag = "1")]
    pub shake: ::core::option::Option<Shake>,
}
impl ::prost::Name for Event {
    const NAME: &'static str = "Event";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.Event".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.Event".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LivePlayInfo {
    ///
    #[prost(int32, tag = "1")]
    pub current_qn: i32,
    ///
    #[prost(message, repeated, tag = "2")]
    pub quality_description: ::prost::alloc::vec::Vec<QualityDescription>,
    ///
    #[prost(message, repeated, tag = "3")]
    pub durl: ::prost::alloc::vec::Vec<ResponseDataUrl>,
}
impl ::prost::Name for LivePlayInfo {
    const NAME: &'static str = "LivePlayInfo";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.LivePlayInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.LivePlayInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LivePlayViewReply {
    ///
    #[prost(message, optional, tag = "1")]
    pub room_info: ::core::option::Option<RoomInfo>,
    ///
    #[prost(message, optional, tag = "2")]
    pub play_info: ::core::option::Option<LivePlayInfo>,
}
impl ::prost::Name for LivePlayViewReply {
    const NAME: &'static str = "LivePlayViewReply";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.LivePlayViewReply".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.LivePlayViewReply".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LivePlayViewReq {
    ///
    #[prost(int64, tag = "1")]
    pub ep_id: i64,
    ///
    #[prost(int32, tag = "2")]
    pub quality: i32,
    ///
    #[prost(int32, tag = "3")]
    pub ptype: i32,
    ///
    #[prost(bool, tag = "4")]
    pub https: bool,
    ///
    #[prost(int32, tag = "5")]
    pub play_type: i32,
    ///
    #[prost(int32, tag = "6")]
    pub device_type: i32,
}
impl ::prost::Name for LivePlayViewReq {
    const NAME: &'static str = "LivePlayViewReq";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.LivePlayViewReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.LivePlayViewReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PlayAbilityConf {
    ///
    #[prost(bool, tag = "1")]
    pub background_play_disable: bool,
    ///
    #[prost(bool, tag = "2")]
    pub flip_disable: bool,
    ///
    #[prost(bool, tag = "3")]
    pub cast_disable: bool,
    ///
    #[prost(bool, tag = "4")]
    pub feedback_disable: bool,
    ///
    #[prost(bool, tag = "5")]
    pub subtitle_disable: bool,
    ///
    #[prost(bool, tag = "6")]
    pub playback_rate_disable: bool,
    ///
    #[prost(bool, tag = "7")]
    pub time_up_disable: bool,
    ///
    #[prost(bool, tag = "8")]
    pub playback_mode_disable: bool,
    ///
    #[prost(bool, tag = "9")]
    pub scale_mode_disable: bool,
    ///
    #[prost(bool, tag = "10")]
    pub like_disable: bool,
    ///
    #[prost(bool, tag = "11")]
    pub dislike_disable: bool,
    ///
    #[prost(bool, tag = "12")]
    pub coin_disable: bool,
    ///
    #[prost(bool, tag = "13")]
    pub elec_disable: bool,
    ///
    #[prost(bool, tag = "14")]
    pub share_disable: bool,
    ///
    #[prost(bool, tag = "15")]
    pub screen_shot_disable: bool,
    ///
    #[prost(bool, tag = "16")]
    pub lock_screen_disable: bool,
    ///
    #[prost(bool, tag = "17")]
    pub recommend_disable: bool,
    ///
    #[prost(bool, tag = "18")]
    pub playback_speed_disable: bool,
    ///
    #[prost(bool, tag = "19")]
    pub definition_disable: bool,
    ///
    #[prost(bool, tag = "20")]
    pub selections_disable: bool,
    ///
    #[prost(bool, tag = "21")]
    pub next_disable: bool,
    ///
    #[prost(bool, tag = "22")]
    pub edit_dm_disable: bool,
    ///
    #[prost(bool, tag = "23")]
    pub small_window_disable: bool,
    ///
    #[prost(bool, tag = "24")]
    pub shake_disable: bool,
    ///
    #[prost(bool, tag = "25")]
    pub outer_dm_disable: bool,
    ///
    #[prost(bool, tag = "26")]
    pub inner_dm_disable: bool,
    ///
    #[prost(bool, tag = "27")]
    pub freya_enter_disable: bool,
    ///
    #[prost(bool, tag = "28")]
    pub dolby_disable: bool,
    ///
    #[prost(bool, tag = "29")]
    pub freya_full_disable: bool,
    ///
    #[prost(bool, tag = "30")]
    pub skip_oped_switch_disable: bool,
}
impl ::prost::Name for PlayAbilityConf {
    const NAME: &'static str = "PlayAbilityConf";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.PlayAbilityConf".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.PlayAbilityConf".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayViewReply {
    ///
    #[prost(message, optional, tag = "1")]
    pub video_info: ::core::option::Option<
        super::super::super::super::app::playurl::v1::VideoInfo,
    >,
    ///
    #[prost(message, optional, tag = "2")]
    pub play_conf: ::core::option::Option<PlayAbilityConf>,
    ///
    #[prost(message, optional, tag = "3")]
    pub business: ::core::option::Option<BusinessInfo>,
    ///
    #[prost(message, optional, tag = "4")]
    pub event: ::core::option::Option<Event>,
}
impl ::prost::Name for PlayViewReply {
    const NAME: &'static str = "PlayViewReply";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.PlayViewReply".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.PlayViewReply".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayViewReq {
    ///
    #[prost(int64, tag = "1")]
    pub ep_id: i64,
    ///
    #[prost(int64, tag = "2")]
    pub cid: i64,
    ///
    #[prost(int64, tag = "3")]
    pub qn: i64,
    ///
    #[prost(int32, tag = "4")]
    pub fnver: i32,
    ///
    #[prost(int32, tag = "5")]
    pub fnval: i32,
    ///
    #[prost(int32, tag = "6")]
    pub download: i32,
    ///
    #[prost(int32, tag = "7")]
    pub force_host: i32,
    ///
    #[prost(bool, tag = "8")]
    pub fourk: bool,
    ///
    #[prost(string, tag = "9")]
    pub spmid: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "10")]
    pub from_spmid: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "11")]
    pub teenagers_mode: i32,
    ///
    #[prost(
        enumeration = "super::super::super::super::app::playurl::v1::CodeType",
        tag = "12"
    )]
    pub prefer_codec_type: i32,
    ///
    #[prost(bool, tag = "13")]
    pub is_preview: bool,
    ///
    #[prost(int64, tag = "14")]
    pub room_id: i64,
}
impl ::prost::Name for PlayViewReq {
    const NAME: &'static str = "PlayViewReq";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.PlayViewReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.PlayViewReq".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectReply {
    ///
    #[prost(message, optional, tag = "1")]
    pub project: ::core::option::Option<
        super::super::super::super::app::playurl::v1::PlayUrlReply,
    >,
}
impl ::prost::Name for ProjectReply {
    const NAME: &'static str = "ProjectReply";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.ProjectReply".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.ProjectReply".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectReq {
    ///
    #[prost(int64, tag = "1")]
    pub ep_id: i64,
    ///
    #[prost(int64, tag = "2")]
    pub cid: i64,
    ///
    #[prost(int64, tag = "3")]
    pub qn: i64,
    ///
    #[prost(int32, tag = "4")]
    pub fnver: i32,
    ///
    #[prost(int32, tag = "5")]
    pub fnval: i32,
    ///
    #[prost(int32, tag = "6")]
    pub download: i32,
    ///
    #[prost(int32, tag = "7")]
    pub force_host: i32,
    ///
    #[prost(bool, tag = "8")]
    pub fourk: bool,
    ///
    #[prost(string, tag = "9")]
    pub spmid: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "10")]
    pub from_spmid: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "11")]
    pub protocol: i32,
    ///
    #[prost(int32, tag = "12")]
    pub device_type: i32,
    ///
    #[prost(bool, tag = "13")]
    pub use_new_project_code: bool,
    ///
    #[prost(int64, tag = "14")]
    pub aid: i64,
    ///
    #[prost(string, tag = "15")]
    pub sku: ::prost::alloc::string::String,
}
impl ::prost::Name for ProjectReq {
    const NAME: &'static str = "ProjectReq";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.ProjectReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.ProjectReq".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QualityDescription {
    ///
    #[prost(int32, tag = "1")]
    pub qn: i32,
    ///
    #[prost(string, tag = "2")]
    pub desc: ::prost::alloc::string::String,
}
impl ::prost::Name for QualityDescription {
    const NAME: &'static str = "QualityDescription";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.QualityDescription".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.QualityDescription".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseDataUrl {
    ///
    #[prost(string, tag = "1")]
    pub url: ::prost::alloc::string::String,
    ///
    #[prost(int32, tag = "2")]
    pub stream_type: i32,
    ///
    #[prost(int32, tag = "3")]
    pub ptag: i32,
}
impl ::prost::Name for ResponseDataUrl {
    const NAME: &'static str = "ResponseDataUrl";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.ResponseDataUrl".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.ResponseDataUrl".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoomInfo {
    ///
    #[prost(int64, tag = "1")]
    pub room_id: i64,
    ///
    #[prost(int64, tag = "2")]
    pub uid: i64,
    ///
    #[prost(message, optional, tag = "3")]
    pub status: ::core::option::Option<RoomStatusInfo>,
    ///
    #[prost(message, optional, tag = "4")]
    pub show: ::core::option::Option<RoomShowInfo>,
}
impl ::prost::Name for RoomInfo {
    const NAME: &'static str = "RoomInfo";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.RoomInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.RoomInfo".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoomShowInfo {
    ///
    #[prost(int64, tag = "1")]
    pub short_id: i64,
    ///
    #[prost(int64, tag = "8")]
    pub popularity_count: i64,
    ///
    #[prost(int64, tag = "10")]
    pub live_start_time: i64,
}
impl ::prost::Name for RoomShowInfo {
    const NAME: &'static str = "RoomShowInfo";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.RoomShowInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.RoomShowInfo".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RoomStatusInfo {
    ///
    #[prost(int64, tag = "1")]
    pub live_status: i64,
    ///
    #[prost(int64, tag = "2")]
    pub live_screen_type: i64,
    ///
    #[prost(int64, tag = "3")]
    pub live_mark: i64,
    ///
    #[prost(int64, tag = "4")]
    pub lock_status: i64,
    ///
    #[prost(int64, tag = "5")]
    pub lock_time: i64,
    ///
    #[prost(int64, tag = "6")]
    pub hidden_status: i64,
    ///
    #[prost(int64, tag = "7")]
    pub hidden_time: i64,
    ///
    #[prost(int64, tag = "8")]
    pub live_type: i64,
    ///
    #[prost(int64, tag = "9")]
    pub room_shield: i64,
}
impl ::prost::Name for RoomStatusInfo {
    const NAME: &'static str = "RoomStatusInfo";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.RoomStatusInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.RoomStatusInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Shake {
    ///
    #[prost(string, tag = "1")]
    pub file: ::prost::alloc::string::String,
}
impl ::prost::Name for Shake {
    const NAME: &'static str = "Shake";
    const PACKAGE: &'static str = "bilibili.pgc.gateway.player.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.pgc.gateway.player.v1.Shake".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.pgc.gateway.player.v1.Shake".into()
    }
}