mikufans_proto/
bilibili.live.xroom_extend.api.v1.rs

1// This file is @generated by prost-build.
2///
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct SendReportInfoReq {
5    ///
6    #[prost(int64, tag = "1")]
7    pub room_id: i64,
8    ///
9    #[prost(string, tag = "2")]
10    pub report_tag: ::prost::alloc::string::String,
11    ///
12    #[prost(string, tag = "3")]
13    pub report_reason: ::prost::alloc::string::String,
14    ///
15    #[prost(string, tag = "4")]
16    pub pic_url: ::prost::alloc::string::String,
17    ///
18    #[prost(string, tag = "5")]
19    pub play_stream: ::prost::alloc::string::String,
20}
21impl ::prost::Name for SendReportInfoReq {
22    const NAME: &'static str = "SendReportInfoReq";
23    const PACKAGE: &'static str = "bilibili.live.xroom_extend.api.v1";
24    fn full_name() -> ::prost::alloc::string::String {
25        "bilibili.live.xroom_extend.api.v1.SendReportInfoReq".into()
26    }
27    fn type_url() -> ::prost::alloc::string::String {
28        "/bilibili.live.xroom_extend.api.v1.SendReportInfoReq".into()
29    }
30}
31///
32#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct SendReportInfoResp {
34    ///
35    #[prost(enumeration = "ReportStatus", tag = "1")]
36    pub report_status: i32,
37    ///
38    #[prost(string, tag = "2")]
39    pub toast: ::prost::alloc::string::String,
40}
41impl ::prost::Name for SendReportInfoResp {
42    const NAME: &'static str = "SendReportInfoResp";
43    const PACKAGE: &'static str = "bilibili.live.xroom_extend.api.v1";
44    fn full_name() -> ::prost::alloc::string::String {
45        "bilibili.live.xroom_extend.api.v1.SendReportInfoResp".into()
46    }
47    fn type_url() -> ::prost::alloc::string::String {
48        "/bilibili.live.xroom_extend.api.v1.SendReportInfoResp".into()
49    }
50}
51///
52#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
53#[repr(i32)]
54pub enum ReportStatus {
55    ///
56    ReportException = 0,
57    ///
58    ReportSuccess = 1,
59}
60impl ReportStatus {
61    /// String value of the enum field names used in the ProtoBuf definition.
62    ///
63    /// The values are not transformed in any way and thus are considered stable
64    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
65    pub fn as_str_name(&self) -> &'static str {
66        match self {
67            Self::ReportException => "REPORT_EXCEPTION",
68            Self::ReportSuccess => "REPORT_SUCCESS",
69        }
70    }
71    /// Creates an enum from field names used in the ProtoBuf definition.
72    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
73        match value {
74            "REPORT_EXCEPTION" => Some(Self::ReportException),
75            "REPORT_SUCCESS" => Some(Self::ReportSuccess),
76            _ => None,
77        }
78    }
79}