#[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 {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "CLIP_TYPE_UNSPECIFIED",
Self::He => "CLIP_TYPE_HE",
}
}
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 {
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",
}
}
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,
}
}
}