mikufans_proto_intl/
bilibili.app.archive.middleware.v1.rs

1// This file is @generated by prost-build.
2///
3#[derive(Clone, Copy, PartialEq, ::prost::Message)]
4pub struct PlayerArgs {
5    ///
6    #[prost(int64, tag = "1")]
7    pub qn: i64,
8    ///
9    #[prost(int64, tag = "2")]
10    pub fnver: i64,
11    ///
12    #[prost(int64, tag = "3")]
13    pub fnval: i64,
14    ///
15    #[prost(int64, tag = "4")]
16    pub force_host: i64,
17    ///
18    #[prost(int64, tag = "5")]
19    pub voice_balance: i64,
20    ///
21    #[prost(enumeration = "QnPolicy", tag = "6")]
22    pub qn_policy: i32,
23}
24///
25#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
26#[repr(i32)]
27pub enum QnPolicy {
28    ///
29    Default = 0,
30    ///
31    AutoQnEnable = 1,
32}
33impl QnPolicy {
34    /// String value of the enum field names used in the ProtoBuf definition.
35    ///
36    /// The values are not transformed in any way and thus are considered stable
37    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
38    pub fn as_str_name(&self) -> &'static str {
39        match self {
40            Self::Default => "QN_POLICY_DEFAULT",
41            Self::AutoQnEnable => "QN_POLICY_AUTO_QN_ENABLE",
42        }
43    }
44    /// Creates an enum from field names used in the ProtoBuf definition.
45    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
46        match value {
47            "QN_POLICY_DEFAULT" => Some(Self::Default),
48            "QN_POLICY_AUTO_QN_ENABLE" => Some(Self::AutoQnEnable),
49            _ => None,
50        }
51    }
52}