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
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
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
// 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,
    }
    impl ::prost::Name for App {
        const NAME: &'static str = "App";
        const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
        fn full_name() -> ::prost::alloc::string::String {
            "bilibili.live.rtc.datachannel.ClientStatsReq.App".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "/bilibili.live.rtc.datachannel.ClientStatsReq.App".into()
        }
    }
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Payload {
        ///
        #[prost(bytes, tag = "6")]
        RawPayload(::prost::bytes::Bytes),
        ///
        #[prost(message, tag = "7")]
        PbStatsPayload(::prost::alloc::boxed::Box<super::report::ClientStatsPayload>),
    }
}
impl ::prost::Name for ClientStatsReq {
    const NAME: &'static str = "ClientStatsReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.ClientStatsReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.ClientStatsReq".into()
    }
}
///
#[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,
    }
    impl ::prost::Name for Score {
        const NAME: &'static str = "Score";
        const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
        fn full_name() -> ::prost::alloc::string::String {
            "bilibili.live.rtc.datachannel.ClientStatsResp.Score".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "/bilibili.live.rtc.datachannel.ClientStatsResp.Score".into()
        }
    }
}
impl ::prost::Name for ClientStatsResp {
    const NAME: &'static str = "ClientStatsResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.ClientStatsResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.ClientStatsResp".into()
    }
}
///
#[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>,
}
impl ::prost::Name for JoinNotify {
    const NAME: &'static str = "JoinNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.JoinNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.JoinNotify".into()
    }
}
///
#[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,
}
impl ::prost::Name for JoinReq {
    const NAME: &'static str = "JoinReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.JoinReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.JoinReq".into()
    }
}
///
#[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,
    >,
}
impl ::prost::Name for JoinResp {
    const NAME: &'static str = "JoinResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.JoinResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.JoinResp".into()
    }
}
///
#[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,
}
impl ::prost::Name for LeaveNotify {
    const NAME: &'static str = "LeaveNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.LeaveNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.LeaveNotify".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeaveReq {}
impl ::prost::Name for LeaveReq {
    const NAME: &'static str = "LeaveReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.LeaveReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.LeaveReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LeaveResp {}
impl ::prost::Name for LeaveResp {
    const NAME: &'static str = "LeaveResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.LeaveResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.LeaveResp".into()
    }
}
///
#[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,
}
impl ::prost::Name for MembersReq {
    const NAME: &'static str = "MembersReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.MembersReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.MembersReq".into()
    }
}
///
#[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>,
}
impl ::prost::Name for MembersResp {
    const NAME: &'static str = "MembersResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.MembersResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.MembersResp".into()
    }
}
///
#[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,
}
impl ::prost::Name for MessageNotify {
    const NAME: &'static str = "MessageNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.MessageNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.MessageNotify".into()
    }
}
///
#[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),
    }
}
impl ::prost::Name for MuteNotify {
    const NAME: &'static str = "MuteNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.MuteNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.MuteNotify".into()
    }
}
///
#[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),
    }
}
impl ::prost::Name for MuteReq {
    const NAME: &'static str = "MuteReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.MuteReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.MuteReq".into()
    }
}
///
#[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>,
}
impl ::prost::Name for PubNotify {
    const NAME: &'static str = "PubNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.PubNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.PubNotify".into()
    }
}
///
#[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>,
}
impl ::prost::Name for PubReq {
    const NAME: &'static str = "PubReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.PubReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.PubReq".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PubResp {
    ///
    #[prost(string, tag = "1")]
    pub sdp: ::prost::alloc::string::String,
}
impl ::prost::Name for PubResp {
    const NAME: &'static str = "PubResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.PubResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.PubResp".into()
    }
}
///
#[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(::prost::alloc::boxed::Box<super::JoinReq>),
        ///
        #[prost(message, tag = "5")]
        Leave(::prost::alloc::boxed::Box<super::LeaveReq>),
        ///
        #[prost(message, tag = "6")]
        Pub(::prost::alloc::boxed::Box<super::PubReq>),
        ///
        #[prost(message, tag = "7")]
        Sub(::prost::alloc::boxed::Box<super::SubReq>),
        ///
        #[prost(message, tag = "8")]
        UnSub(::prost::alloc::boxed::Box<super::UnSubReq>),
        ///
        #[prost(message, tag = "9")]
        Mute(::prost::alloc::boxed::Box<super::MuteReq>),
        ///
        #[prost(message, tag = "10")]
        Message(::prost::alloc::boxed::Box<super::UserMsgReq>),
        ///
        #[prost(message, tag = "11")]
        Members(::prost::alloc::boxed::Box<super::MembersReq>),
        ///
        #[prost(message, tag = "12")]
        UnPub(::prost::alloc::boxed::Box<super::UnPubReq>),
        ///
        #[prost(message, tag = "13")]
        UpdateSub(::prost::alloc::boxed::Box<super::UpdateSubReq>),
        ///
        #[prost(message, tag = "14")]
        ClientStats(::prost::alloc::boxed::Box<super::ClientStatsReq>),
        ///
        #[prost(message, tag = "15")]
        UpdateCodec(::prost::alloc::boxed::Box<super::UpdateCodecReq>),
    }
}
impl ::prost::Name for RequestMessage {
    const NAME: &'static str = "RequestMessage";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.RequestMessage".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.RequestMessage".into()
    }
}
///
#[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),
    }
}
impl ::prost::Name for ResponseMessage {
    const NAME: &'static str = "ResponseMessage";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.ResponseMessage".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.ResponseMessage".into()
    }
}
///
#[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,
    }
    impl ::prost::Name for SubUser {
        const NAME: &'static str = "SubUser";
        const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
        fn full_name() -> ::prost::alloc::string::String {
            "bilibili.live.rtc.datachannel.SubReq.SubUser".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "/bilibili.live.rtc.datachannel.SubReq.SubUser".into()
        }
    }
    ///
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum SubOffer {
        ///
        #[prost(string, tag = "1")]
        Sdp(::prost::alloc::string::String),
    }
}
impl ::prost::Name for SubReq {
    const NAME: &'static str = "SubReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.SubReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.SubReq".into()
    }
}
///
#[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,
}
impl ::prost::Name for SubResp {
    const NAME: &'static str = "SubResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.SubResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.SubResp".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TokenNotify {
    ///
    #[prost(string, tag = "1")]
    pub token: ::prost::alloc::string::String,
}
impl ::prost::Name for TokenNotify {
    const NAME: &'static str = "TokenNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.TokenNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.TokenNotify".into()
    }
}
///
#[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>,
}
impl ::prost::Name for UnPubNotify {
    const NAME: &'static str = "UnPubNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UnPubNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UnPubNotify".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnPubReq {}
impl ::prost::Name for UnPubReq {
    const NAME: &'static str = "UnPubReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UnPubReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UnPubReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnPubResp {}
impl ::prost::Name for UnPubResp {
    const NAME: &'static str = "UnPubResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UnPubResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UnPubResp".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnSubReq {
    ///
    #[prost(int64, tag = "1")]
    pub uid: i64,
}
impl ::prost::Name for UnSubReq {
    const NAME: &'static str = "UnSubReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UnSubReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UnSubReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnSubResp {}
impl ::prost::Name for UnSubResp {
    const NAME: &'static str = "UnSubResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UnSubResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UnSubResp".into()
    }
}
///
#[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,
    >,
}
impl ::prost::Name for UpdateCodecNotify {
    const NAME: &'static str = "UpdateCodecNotify";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UpdateCodecNotify".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UpdateCodecNotify".into()
    }
}
///
#[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,
    >,
}
impl ::prost::Name for UpdateCodecReq {
    const NAME: &'static str = "UpdateCodecReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UpdateCodecReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UpdateCodecReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateCodecResp {}
impl ::prost::Name for UpdateCodecResp {
    const NAME: &'static str = "UpdateCodecResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UpdateCodecResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UpdateCodecResp".into()
    }
}
///
#[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),
        }
    }
    impl ::prost::Name for VideoPreferLayer {
        const NAME: &'static str = "video_prefer_layer";
        const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
        fn full_name() -> ::prost::alloc::string::String {
            "bilibili.live.rtc.datachannel.UpdateSubReq.video_prefer_layer".into()
        }
        fn type_url() -> ::prost::alloc::string::String {
            "/bilibili.live.rtc.datachannel.UpdateSubReq.video_prefer_layer".into()
        }
    }
    ///
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum AudioOption {
        ///
        #[prost(bool, tag = "2")]
        SubAudio(bool),
    }
}
impl ::prost::Name for UpdateSubReq {
    const NAME: &'static str = "UpdateSubReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UpdateSubReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UpdateSubReq".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateSubResp {}
impl ::prost::Name for UpdateSubResp {
    const NAME: &'static str = "UpdateSubResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UpdateSubResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UpdateSubResp".into()
    }
}
///
#[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>,
}
impl ::prost::Name for UserMsgReq {
    const NAME: &'static str = "UserMsgReq";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UserMsgReq".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UserMsgReq".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UserMsgResp {
    ///
    #[prost(int64, repeated, tag = "1")]
    pub sent_uids: ::prost::alloc::vec::Vec<i64>,
}
impl ::prost::Name for UserMsgResp {
    const NAME: &'static str = "UserMsgResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UserMsgResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UserMsgResp".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UserMuteResp {}
impl ::prost::Name for UserMuteResp {
    const NAME: &'static str = "UserMuteResp";
    const PACKAGE: &'static str = "bilibili.live.rtc.datachannel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.live.rtc.datachannel.UserMuteResp".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.live.rtc.datachannel.UserMuteResp".into()
    }
}
///
#[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,
        }
    }
}