mikufans-proto-intl 3.17.4+build.17106976

gRPC APIs for Mikufans (Intl)
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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
// This file is @generated by prost-build.
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientStatsReq {
    ///
    #[prost(string, tag = "1")]
    pub event_type: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub encoding: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "3")]
    pub app: ::core::option::Option<client_stats_req::App>,
    ///
    #[prost(oneof = "client_stats_req::Payload", tags = "6, 7")]
    pub payload: ::core::option::Option<client_stats_req::Payload>,
}
/// Nested message and enum types in `ClientStatsReq`.
pub mod client_stats_req {
    ///
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct App {
        ///
        #[prost(string, tag = "1")]
        pub app_name: ::prost::alloc::string::String,
        ///
        #[prost(string, tag = "2")]
        pub app_version: ::prost::alloc::string::String,
        ///
        #[prost(string, tag = "3")]
        pub sdk_version: ::prost::alloc::string::String,
        ///
        #[prost(string, tag = "4")]
        pub platform: ::prost::alloc::string::String,
        ///
        #[prost(string, tag = "5")]
        pub network: ::prost::alloc::string::String,
    }
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        ///
        #[prost(bytes, tag = "6")]
        RawPayload(::prost::alloc::vec::Vec<u8>),
        ///
        #[prost(message, tag = "7")]
        PbStatsPayload(super::report::ClientStatsPayload),
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClientStatsResp {
    ///
    #[prost(int32, tag = "1")]
    pub report_interval: i32,
    ///
    #[prost(message, optional, tag = "2")]
    pub score: ::core::option::Option<client_stats_resp::Score>,
}
/// Nested message and enum types in `ClientStatsResp`.
pub mod client_stats_resp {
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct Score {
        ///
        #[prost(int32, tag = "1")]
        pub up_score: i32,
        ///
        #[prost(int32, tag = "2")]
        pub down_score: i32,
        ///
        #[prost(int32, tag = "3")]
        pub server_up_score: i32,
        ///
        #[prost(int32, tag = "4")]
        pub server_down_score: i32,
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JoinNotify {
    ///
    #[prost(message, optional, tag = "1")]
    pub user: ::core::option::Option<super::bapi_live_rtc_user_proto::User>,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JoinReq {
    ///
    #[prost(message, optional, tag = "1")]
    pub user: ::core::option::Option<super::bapi_live_rtc_user_proto::User>,
    ///
    #[prost(bool, tag = "2")]
    pub auto_subscribe: bool,
    ///
    #[prost(string, tag = "3")]
    pub token: ::prost::alloc::string::String,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JoinResp {
    ///
    #[prost(message, repeated, tag = "1")]
    pub users: ::prost::alloc::vec::Vec<super::bapi_live_rtc_user_proto::User>,
    ///
    #[prost(int32, tag = "2")]
    pub call_id: i32,
    ///
    #[prost(message, optional, tag = "3")]
    pub encode_capability: ::core::option::Option<
        super::bapi_live_rtc_user_proto::CodecCapability,
    >,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeaveNotify {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(enumeration = "super::bapi_live_rtc_user_proto::UserLeaveReason", tag = "2")]
    pub reason: i32,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeaveReq {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeaveResp {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MembersReq {
    ///
    #[prost(int64, tag = "1")]
    pub channel_id: i64,
    ///
    #[prost(int64, tag = "2")]
    pub uid: i64,
    ///
    #[prost(int32, tag = "3")]
    pub call_id: i32,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MembersResp {
    ///
    #[prost(message, repeated, tag = "1")]
    pub users: ::prost::alloc::vec::Vec<super::bapi_live_rtc_user_proto::User>,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MessageNotify {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(int32, tag = "2")]
    pub biz_id: i32,
    ///
    #[prost(bytes = "vec", tag = "3")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
    ///
    #[prost(bool, tag = "4")]
    pub last: bool,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MuteNotify {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(enumeration = "MuteReason", tag = "4")]
    pub reason: i32,
    ///
    #[prost(oneof = "mute_notify::MuteStatus", tags = "2, 3")]
    pub mute_status: ::core::option::Option<mute_notify::MuteStatus>,
}
/// Nested message and enum types in `MuteNotify`.
pub mod mute_notify {
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum MuteStatus {
        ///
        #[prost(bool, tag = "2")]
        MuteAudio(bool),
        ///
        #[prost(bool, tag = "3")]
        MuteVideo(bool),
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MuteReq {
    ///
    #[prost(oneof = "mute_req::MuteReq", tags = "1, 2")]
    pub mute_req: ::core::option::Option<mute_req::MuteReq>,
}
/// Nested message and enum types in `MuteReq`.
pub mod mute_req {
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum MuteReq {
        ///
        #[prost(bool, tag = "1")]
        MuteAudio(bool),
        ///
        #[prost(bool, tag = "2")]
        MuteVideo(bool),
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PubNotify {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(message, optional, tag = "2")]
    pub stream: ::core::option::Option<super::bapi_live_rtc_user_proto::Stream>,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubReq {
    ///
    #[prost(string, tag = "1")]
    pub sdp: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "2")]
    pub stream: ::core::option::Option<super::bapi_live_rtc_user_proto::Stream>,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubResp {
    ///
    #[prost(string, tag = "1")]
    pub sdp: ::prost::alloc::string::String,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestMessage {
    ///
    #[prost(int64, tag = "1")]
    pub request_id: i64,
    ///
    #[prost(int64, tag = "2")]
    pub channel_id: i64,
    ///
    #[prost(int64, tag = "3")]
    pub uid: i64,
    ///
    #[prost(
        oneof = "request_message::Req",
        tags = "4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15"
    )]
    pub req: ::core::option::Option<request_message::Req>,
}
/// Nested message and enum types in `RequestMessage`.
pub mod request_message {
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Req {
        ///
        #[prost(message, tag = "4")]
        Join(super::JoinReq),
        ///
        #[prost(message, tag = "5")]
        Leave(super::LeaveReq),
        ///
        #[prost(message, tag = "6")]
        Pub(super::PubReq),
        ///
        #[prost(message, tag = "7")]
        Sub(super::SubReq),
        ///
        #[prost(message, tag = "8")]
        UnSub(super::UnSubReq),
        ///
        #[prost(message, tag = "9")]
        Mute(super::MuteReq),
        ///
        #[prost(message, tag = "10")]
        Message(super::UserMsgReq),
        ///
        #[prost(message, tag = "11")]
        Members(super::MembersReq),
        ///
        #[prost(message, tag = "12")]
        UnPub(super::UnPubReq),
        ///
        #[prost(message, tag = "13")]
        UpdateSub(super::UpdateSubReq),
        ///
        #[prost(message, tag = "14")]
        ClientStats(super::ClientStatsReq),
        ///
        #[prost(message, tag = "15")]
        UpdateCodec(super::UpdateCodecReq),
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseMessage {
    ///
    #[prost(int64, tag = "1")]
    pub request_id: i64,
    ///
    #[prost(int32, tag = "2")]
    pub code: i32,
    ///
    #[prost(string, tag = "3")]
    pub message: ::prost::alloc::string::String,
    ///
    #[prost(
        oneof = "response_message::Data",
        tags = "4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23"
    )]
    pub data: ::core::option::Option<response_message::Data>,
}
/// Nested message and enum types in `ResponseMessage`.
pub mod response_message {
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Data {
        ///
        #[prost(message, tag = "4")]
        JoinResp(super::JoinResp),
        ///
        #[prost(message, tag = "5")]
        LeaveResp(super::LeaveResp),
        ///
        #[prost(message, tag = "6")]
        PubResp(super::PubResp),
        ///
        #[prost(message, tag = "7")]
        SubResp(super::SubResp),
        ///
        #[prost(message, tag = "8")]
        UnSubResp(super::UnSubResp),
        ///
        #[prost(message, tag = "9")]
        MuteResp(super::UserMuteResp),
        ///
        #[prost(message, tag = "10")]
        MsgResp(super::UserMsgResp),
        ///
        #[prost(message, tag = "11")]
        JoinNotify(super::JoinNotify),
        ///
        #[prost(message, tag = "12")]
        LeaveNotify(super::LeaveNotify),
        ///
        #[prost(message, tag = "13")]
        MuteNotify(super::MuteNotify),
        ///
        #[prost(message, tag = "14")]
        PubNotify(super::PubNotify),
        ///
        #[prost(message, tag = "15")]
        MsgNotify(super::MessageNotify),
        ///
        #[prost(message, tag = "16")]
        MembersResp(super::MembersResp),
        ///
        #[prost(message, tag = "17")]
        TokenNotify(super::TokenNotify),
        ///
        #[prost(message, tag = "18")]
        UnPubResp(super::UnPubResp),
        ///
        #[prost(message, tag = "19")]
        UnPubNotify(super::UnPubNotify),
        ///
        #[prost(message, tag = "20")]
        UpdateSubResp(super::UpdateSubResp),
        ///
        #[prost(message, tag = "21")]
        ClientStatsResp(super::ClientStatsResp),
        ///
        #[prost(message, tag = "22")]
        UpdateCodecResp(super::UpdateCodecResp),
        ///
        #[prost(message, tag = "23")]
        UpdateCodecNotify(super::UpdateCodecNotify),
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubReq {
    ///
    #[prost(message, repeated, tag = "2")]
    pub sub_users: ::prost::alloc::vec::Vec<sub_req::SubUser>,
    ///
    #[prost(bool, tag = "3")]
    pub pause_send: bool,
    ///
    #[prost(oneof = "sub_req::SubOffer", tags = "1")]
    pub sub_offer: ::core::option::Option<sub_req::SubOffer>,
}
/// Nested message and enum types in `SubReq`.
pub mod sub_req {
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct SubUser {
        ///
        #[prost(int64, tag = "1")]
        pub uid: i64,
        ///
        #[prost(bool, tag = "2")]
        pub sub_video: bool,
        ///
        #[prost(bool, tag = "3")]
        pub sub_audio: bool,
        ///
        #[prost(int32, tag = "4")]
        pub video_index: i32,
    }
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum SubOffer {
        ///
        #[prost(string, tag = "1")]
        Sdp(::prost::alloc::string::String),
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubResp {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(string, tag = "2")]
    pub sdp: ::prost::alloc::string::String,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TokenNotify {
    ///
    #[prost(string, tag = "1")]
    pub token: ::prost::alloc::string::String,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnPubNotify {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(message, optional, tag = "2")]
    pub stream: ::core::option::Option<super::bapi_live_rtc_user_proto::Stream>,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnPubReq {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnPubResp {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnSubReq {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnSubResp {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateCodecNotify {
    ///
    #[prost(message, optional, tag = "1")]
    pub encode_capability: ::core::option::Option<
        super::bapi_live_rtc_user_proto::CodecCapability,
    >,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateCodecReq {
    ///
    #[prost(message, optional, tag = "1")]
    pub decode_capability: ::core::option::Option<
        super::bapi_live_rtc_user_proto::CodecCapability,
    >,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateCodecResp {}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateSubReq {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
    ///
    #[prost(oneof = "update_sub_req::AudioOption", tags = "2")]
    pub audio_option: ::core::option::Option<update_sub_req::AudioOption>,
}
/// Nested message and enum types in `UpdateSubReq`.
pub mod update_sub_req {
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct VideoPreferLayer {
        ///
        #[prost(int32, tag = "1")]
        pub video_index: i32,
        ///
        #[prost(oneof = "video_prefer_layer::VideoTemporalLayerOption", tags = "2")]
        pub video_temporal_layer_option: ::core::option::Option<
            video_prefer_layer::VideoTemporalLayerOption,
        >,
    }
    /// Nested message and enum types in `video_prefer_layer`.
    pub mod video_prefer_layer {
        ///
        #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
        pub enum VideoTemporalLayerOption {
            ///
            #[prost(int32, tag = "2")]
            TemporalIndex(i32),
        }
    }
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum AudioOption {
        ///
        #[prost(bool, tag = "2")]
        SubAudio(bool),
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateSubResp {}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserMsgReq {
    ///
    #[prost(int32, tag = "1")]
    pub biz_id: i32,
    ///
    #[prost(bytes = "vec", tag = "2")]
    pub payload: ::prost::alloc::vec::Vec<u8>,
    ///
    #[prost(bool, tag = "3")]
    pub last: bool,
    ///
    #[prost(int64, repeated, tag = "4")]
    pub receivers: ::prost::alloc::vec::Vec<i64>,
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserMsgResp {
    ///
    #[prost(int64, repeated, tag = "1")]
    pub sent_uids: ::prost::alloc::vec::Vec<i64>,
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UserMuteResp {}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MuteReason {
    ///
    UserMute = 0,
    ///
    AdminMute = 1,
}
impl MuteReason {
    /// 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::UserMute => "UserMute",
            Self::AdminMute => "AdminMute",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "UserMute" => Some(Self::UserMute),
            "AdminMute" => Some(Self::AdminMute),
            _ => None,
        }
    }
}