#[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>,
}
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>,
}
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>,
}
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>,
}
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>,
}
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>,
}
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>,
}
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>,
}
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,
>,
}
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 {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::UserMute => "UserMute",
Self::AdminMute => "AdminMute",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UserMute" => Some(Self::UserMute),
"AdminMute" => Some(Self::AdminMute),
_ => None,
}
}
}