#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayerArgs {
#[prost(int64, tag = "1")]
pub qn: i64,
#[prost(int64, tag = "2")]
pub fnver: i64,
#[prost(int64, tag = "3")]
pub fnval: i64,
#[prost(int64, tag = "4")]
pub force_host: i64,
#[prost(int64, tag = "5")]
pub voice_balance: i64,
#[prost(enumeration = "QnPolicy", tag = "6")]
pub qn_policy: i32,
#[prost(int64, tag = "7")]
pub client_attr: i64,
#[prost(map = "string, string", tag = "8")]
pub extra_content: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
impl ::prost::Name for PlayerArgs {
const NAME: &'static str = "PlayerArgs";
const PACKAGE: &'static str = "bilibili.app.archive.middleware.v1";
fn full_name() -> ::prost::alloc::string::String {
"bilibili.app.archive.middleware.v1.PlayerArgs".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/bilibili.app.archive.middleware.v1.PlayerArgs".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum QnPolicy {
Default = 0,
AutoQnEnable = 1,
}
impl QnPolicy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Default => "QN_POLICY_DEFAULT",
Self::AutoQnEnable => "QN_POLICY_AUTO_QN_ENABLE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"QN_POLICY_DEFAULT" => Some(Self::Default),
"QN_POLICY_AUTO_QN_ENABLE" => Some(Self::AutoQnEnable),
_ => None,
}
}
}