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
539
540
541
542
543
544
545
// This file is @generated by prost-build.
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddWatchExposeRecordReq {
    ///
    #[prost(string, tag = "1")]
    pub track_info: ::prost::alloc::string::String,
}
impl ::prost::Name for AddWatchExposeRecordReq {
    const NAME: &'static str = "AddWatchExposeRecordReq";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.AddWatchExposeRecordReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.AddWatchExposeRecordReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AddWatchExposeRecordResp {}
impl ::prost::Name for AddWatchExposeRecordResp {
    const NAME: &'static str = "AddWatchExposeRecordResp";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.AddWatchExposeRecordResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.AddWatchExposeRecordResp".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveCardInfo {
    ///
    #[prost(string, tag = "1")]
    pub title: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub cover: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub duration: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "4")]
    pub view: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "5")]
    pub danmaku: ::prost::alloc::string::String,
    ///
    #[prost(bool, tag = "6")]
    pub is_unread: bool,
    ///
    #[prost(string, tag = "7")]
    pub jump_url: ::prost::alloc::string::String,
}
impl ::prost::Name for ArchiveCardInfo {
    const NAME: &'static str = "ArchiveCardInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.ArchiveCardInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.ArchiveCardInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalendarCard {
    ///
    #[prost(enumeration = "WatchBizType", tag = "1")]
    pub biz_type: i32,
    ///
    #[prost(string, tag = "2")]
    pub biz_id: ::prost::alloc::string::String,
    ///
    #[prost(int64, tag = "3")]
    pub anchor_time: i64,
    ///
    #[prost(enumeration = "CalendarCardType", tag = "4")]
    pub calendar_card_type: i32,
    ///
    #[prost(message, optional, tag = "5")]
    pub up_info: ::core::option::Option<UpInfo>,
    ///
    #[prost(message, optional, tag = "6")]
    pub three_more_info: ::core::option::Option<ThreeMoreInfo>,
    ///
    #[prost(message, optional, tag = "7")]
    pub archive_card_info: ::core::option::Option<ArchiveCardInfo>,
    ///
    #[prost(message, optional, tag = "8")]
    pub live_card_info: ::core::option::Option<LiveCardInfo>,
    ///
    #[prost(message, optional, tag = "9")]
    pub reserve_card_info: ::core::option::Option<ReserveCardInfo>,
    ///
    #[prost(message, optional, tag = "10")]
    pub ogv_card_info: ::core::option::Option<OgvCardInfo>,
    ///
    #[prost(map = "string, string", tag = "11")]
    pub report: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
impl ::prost::Name for CalendarCard {
    const NAME: &'static str = "CalendarCard";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.CalendarCard".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.CalendarCard".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalendarDate {
    ///
    #[prost(int64, tag = "1")]
    pub item_date: i64,
    ///
    #[prost(enumeration = "CalendarPointType", tag = "2")]
    pub point_type: i32,
    ///
    #[prost(message, repeated, tag = "3")]
    pub card_list: ::prost::alloc::vec::Vec<CalendarCard>,
}
impl ::prost::Name for CalendarDate {
    const NAME: &'static str = "CalendarDate";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.CalendarDate".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.CalendarDate".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CalendarTimeRange {
    ///
    #[prost(int64, tag = "1")]
    pub begin_date: i64,
    ///
    #[prost(int64, tag = "2")]
    pub end_date: i64,
}
impl ::prost::Name for CalendarTimeRange {
    const NAME: &'static str = "CalendarTimeRange";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.CalendarTimeRange".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.CalendarTimeRange".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DelCalendarCardReq {
    ///
    #[prost(enumeration = "WatchBizType", tag = "1")]
    pub biz_type: i32,
    ///
    #[prost(string, tag = "2")]
    pub biz_id: ::prost::alloc::string::String,
}
impl ::prost::Name for DelCalendarCardReq {
    const NAME: &'static str = "DelCalendarCardReq";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.DelCalendarCardReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.DelCalendarCardReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DelCalendarCardResp {}
impl ::prost::Name for DelCalendarCardResp {
    const NAME: &'static str = "DelCalendarCardResp";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.DelCalendarCardResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.DelCalendarCardResp".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveCardInfo {
    ///
    #[prost(string, tag = "1")]
    pub title: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub cover: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub view: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "4")]
    pub jump_url: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "5")]
    pub live_info: ::core::option::Option<LiveInfo>,
}
impl ::prost::Name for LiveCardInfo {
    const NAME: &'static str = "LiveCardInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.LiveCardInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.LiveCardInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveInfo {
    ///
    #[prost(int64, tag = "1")]
    pub live_status: i64,
    ///
    #[prost(string, tag = "2")]
    pub live_badge_text: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub end_text: ::prost::alloc::string::String,
}
impl ::prost::Name for LiveInfo {
    const NAME: &'static str = "LiveInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.LiveInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.LiveInfo".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OgvCardInfo {}
impl ::prost::Name for OgvCardInfo {
    const NAME: &'static str = "OgvCardInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.OgvCardInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.OgvCardInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReserveCardInfo {
    ///
    #[prost(string, tag = "1")]
    pub title: ::prost::alloc::string::String,
    ///
    #[prost(int64, tag = "2")]
    pub reserve_total: i64,
    ///
    #[prost(int64, tag = "3")]
    pub reserve_state: i64,
}
impl ::prost::Name for ReserveCardInfo {
    const NAME: &'static str = "ReserveCardInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.ReserveCardInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.ReserveCardInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ThreeMoreInfo {
    ///
    #[prost(message, repeated, tag = "1")]
    pub items: ::prost::alloc::vec::Vec<three_more_info::ThreeMoreItem>,
}
/// Nested message and enum types in `ThreeMoreInfo`.
pub mod three_more_info {
    ///
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ThreeMoreItem {
        ///
        #[prost(string, tag = "1")]
        pub text: ::prost::alloc::string::String,
        ///
        #[prost(string, tag = "2")]
        pub icon: ::prost::alloc::string::String,
    }
    impl ::prost::Name for ThreeMoreItem {
        const NAME: &'static str = "ThreeMoreItem";
        const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
        fn full_name() -> ::prost::alloc::string::String {
            "bilibili.community.interfacess.watch.v1.ThreeMoreInfo.ThreeMoreItem".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "/bilibili.community.interfacess.watch.v1.ThreeMoreInfo.ThreeMoreItem".into()
        }
    }
}
impl ::prost::Name for ThreeMoreInfo {
    const NAME: &'static str = "ThreeMoreInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.ThreeMoreInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.ThreeMoreInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpInfo {
    ///
    #[prost(int64, tag = "1")]
    pub up_mid: i64,
    ///
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "3")]
    pub avatar: ::core::option::Option<
        super::super::super::super::dagw::component::avatar::v1::AvatarItem,
    >,
    ///
    #[prost(string, tag = "4")]
    pub jump_url: ::prost::alloc::string::String,
}
impl ::prost::Name for UpInfo {
    const NAME: &'static str = "UpInfo";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.UpInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.UpInfo".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct WatchCalendarReq {
    ///
    #[prost(message, optional, tag = "1")]
    pub calendar_time_range: ::core::option::Option<CalendarTimeRange>,
}
impl ::prost::Name for WatchCalendarReq {
    const NAME: &'static str = "WatchCalendarReq";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.WatchCalendarReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.WatchCalendarReq".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WatchCalendarResp {
    ///
    #[prost(message, repeated, tag = "1")]
    pub calendar_item: ::prost::alloc::vec::Vec<CalendarDate>,
}
impl ::prost::Name for WatchCalendarResp {
    const NAME: &'static str = "WatchCalendarResp";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.WatchCalendarResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.WatchCalendarResp".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WatchItemExpose {
    ///
    #[prost(enumeration = "WatchBizType", tag = "1")]
    pub biz_type: i32,
    ///
    #[prost(string, tag = "2")]
    pub biz_id: ::prost::alloc::string::String,
    ///
    #[prost(enumeration = "WatchItemExposeFrom", tag = "3")]
    pub expose_from: i32,
}
impl ::prost::Name for WatchItemExpose {
    const NAME: &'static str = "WatchItemExpose";
    const PACKAGE: &'static str = "bilibili.community.interfacess.watch.v1";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.community.interfacess.watch.v1.WatchItemExpose".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.community.interfacess.watch.v1.WatchItemExpose".into()
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CalendarCardType {
    ///
    Default = 0,
    ///
    Archive = 1,
    ///
    Live = 2,
    ///
    Reserve = 3,
    ///
    Ogv = 4,
}
impl CalendarCardType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Default => "CALENDAR_CARD_TYPE_DEFAULT",
            Self::Archive => "CALENDAR_CARD_TYPE_ARCHIVE",
            Self::Live => "CALENDAR_CARD_TYPE_LIVE",
            Self::Reserve => "CALENDAR_CARD_TYPE_RESERVE",
            Self::Ogv => "CALENDAR_CARD_TYPE_OGV",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CALENDAR_CARD_TYPE_DEFAULT" => Some(Self::Default),
            "CALENDAR_CARD_TYPE_ARCHIVE" => Some(Self::Archive),
            "CALENDAR_CARD_TYPE_LIVE" => Some(Self::Live),
            "CALENDAR_CARD_TYPE_RESERVE" => Some(Self::Reserve),
            "CALENDAR_CARD_TYPE_OGV" => Some(Self::Ogv),
            _ => None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CalendarPointType {
    ///
    Default = 0,
    ///
    Red = 1,
    ///
    Gray = 2,
}
impl CalendarPointType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Default => "CALENDAR_POINT_TYPE_DEFAULT",
            Self::Red => "CALENDAR_POINT_TYPE_RED",
            Self::Gray => "CALENDAR_POINT_TYPE_GRAY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CALENDAR_POINT_TYPE_DEFAULT" => Some(Self::Default),
            "CALENDAR_POINT_TYPE_RED" => Some(Self::Red),
            "CALENDAR_POINT_TYPE_GRAY" => Some(Self::Gray),
            _ => None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WatchBizType {
    ///
    Default = 0,
    ///
    Reserve = 1,
    ///
    Archive = 2,
    ///
    Live = 3,
}
impl WatchBizType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Default => "WATCH_BIZ_TYPE_DEFAULT",
            Self::Reserve => "WATCH_BIZ_TYPE_RESERVE",
            Self::Archive => "WATCH_BIZ_TYPE_ARCHIVE",
            Self::Live => "WATCH_BIZ_TYPE_LIVE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "WATCH_BIZ_TYPE_DEFAULT" => Some(Self::Default),
            "WATCH_BIZ_TYPE_RESERVE" => Some(Self::Reserve),
            "WATCH_BIZ_TYPE_ARCHIVE" => Some(Self::Archive),
            "WATCH_BIZ_TYPE_LIVE" => Some(Self::Live),
            _ => None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum WatchItemExposeFrom {
    ///
    Default = 0,
    ///
    UserPage = 1,
}
impl WatchItemExposeFrom {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Default => "WATCH_ITEM_EXPOSE_FROM_DEFAULT",
            Self::UserPage => "WATCH_ITEM_EXPOSE_FROM_USER_PAGE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "WATCH_ITEM_EXPOSE_FROM_DEFAULT" => Some(Self::Default),
            "WATCH_ITEM_EXPOSE_FROM_USER_PAGE" => Some(Self::UserPage),
            _ => None,
        }
    }
}