mikufans-proto 8.52.0+build.19546312

gRPC APIs for Mikufans
Documentation
// This file is @generated by prost-build.
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ButtonStyle {
    ///
    #[prost(string, tag = "1")]
    pub text: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "2")]
    pub text_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub bg_color: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "4")]
    pub jump_link: ::prost::alloc::string::String,
}
impl ::prost::Name for ButtonStyle {
    const NAME: &'static str = "ButtonStyle";
    const PACKAGE: &'static str = "bilibili.app.playerunite.ugcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.playerunite.ugcanymodel.ButtonStyle".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.playerunite.ugcanymodel.ButtonStyle".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Clip {
    ///
    #[prost(message, optional, tag = "1")]
    pub clip_info: ::core::option::Option<ClipInfo>,
}
impl ::prost::Name for Clip {
    const NAME: &'static str = "Clip";
    const PACKAGE: &'static str = "bilibili.app.playerunite.ugcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.playerunite.ugcanymodel.Clip".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.playerunite.ugcanymodel.Clip".into()
    }
}
///
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ClipInfo {
    ///
    #[prost(enumeration = "ClipType", tag = "1")]
    pub clip_type: i32,
    ///
    #[prost(int64, tag = "2")]
    pub material_no: i64,
    ///
    #[prost(int64, tag = "3")]
    pub start: i64,
    ///
    #[prost(int64, tag = "4")]
    pub end: i64,
}
impl ::prost::Name for ClipInfo {
    const NAME: &'static str = "ClipInfo";
    const PACKAGE: &'static str = "bilibili.app.playerunite.ugcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.playerunite.ugcanymodel.ClipInfo".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.playerunite.ugcanymodel.ClipInfo".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlayLimit {
    ///
    #[prost(enumeration = "PlayLimitCode", tag = "1")]
    pub code: i32,
    ///
    #[prost(string, tag = "2")]
    pub message: ::prost::alloc::string::String,
    ///
    #[prost(string, tag = "3")]
    pub sub_message: ::prost::alloc::string::String,
    ///
    #[prost(message, optional, tag = "4")]
    pub button: ::core::option::Option<ButtonStyle>,
}
impl ::prost::Name for PlayLimit {
    const NAME: &'static str = "PlayLimit";
    const PACKAGE: &'static str = "bilibili.app.playerunite.ugcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.playerunite.ugcanymodel.PlayLimit".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.playerunite.ugcanymodel.PlayLimit".into()
    }
}
///
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UgcAnyModel {
    ///
    #[prost(message, optional, tag = "1")]
    pub play_limit: ::core::option::Option<PlayLimit>,
    ///
    #[prost(message, optional, tag = "3")]
    pub clip: ::core::option::Option<Clip>,
}
impl ::prost::Name for UgcAnyModel {
    const NAME: &'static str = "UGCAnyModel";
    const PACKAGE: &'static str = "bilibili.app.playerunite.ugcanymodel";
    fn full_name() -> ::prost::alloc::string::String {
        "bilibili.app.playerunite.ugcanymodel.UGCAnyModel".into()
    }
    fn type_url() -> ::prost::alloc::string::String {
        "/bilibili.app.playerunite.ugcanymodel.UGCAnyModel".into()
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ClipType {
    ///
    Unspecified = 0,
    ///
    He = 1,
}
impl ClipType {
    /// 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::Unspecified => "CLIP_TYPE_UNSPECIFIED",
            Self::He => "CLIP_TYPE_HE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CLIP_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "CLIP_TYPE_HE" => Some(Self::He),
            _ => None,
        }
    }
}
///
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PlayLimitCode {
    ///
    PlcUnknown = 0,
    ///
    PlcUgcnotpayed = 1,
    ///
    PlcChargingPlusNotPass = 2,
    ///
    PlcChargingPlusUpgrade = 3,
    ///
    PlcChargingPlusReject = 4,
    ///
    PlcCommonCode = 5,
}
impl PlayLimitCode {
    /// 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::PlcUnknown => "PLC_UNKNOWN",
            Self::PlcUgcnotpayed => "PLC_UGCNOTPAYED",
            Self::PlcChargingPlusNotPass => "PLC_ChargingPlusNotPass",
            Self::PlcChargingPlusUpgrade => "PLC_ChargingPlusUpgrade",
            Self::PlcChargingPlusReject => "PLC_ChargingPlusReject",
            Self::PlcCommonCode => "PLC_COMMON_CODE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PLC_UNKNOWN" => Some(Self::PlcUnknown),
            "PLC_UGCNOTPAYED" => Some(Self::PlcUgcnotpayed),
            "PLC_ChargingPlusNotPass" => Some(Self::PlcChargingPlusNotPass),
            "PLC_ChargingPlusUpgrade" => Some(Self::PlcChargingPlusUpgrade),
            "PLC_ChargingPlusReject" => Some(Self::PlcChargingPlusReject),
            "PLC_COMMON_CODE" => Some(Self::PlcCommonCode),
            _ => None,
        }
    }
}