mikufans_proto/
bilibili.app.coldstart.v1.rs

1// This file is @generated by prost-build.
2///
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct ColdStartBizReq {
5    ///
6    #[prost(string, tag = "1")]
7    pub biz_key: ::prost::alloc::string::String,
8    ///
9    #[prost(message, optional, tag = "2")]
10    pub biz_param: ::core::option::Option<::prost_types::Any>,
11}
12impl ::prost::Name for ColdStartBizReq {
13    const NAME: &'static str = "ColdStartBizReq";
14    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
15    fn full_name() -> ::prost::alloc::string::String {
16        "bilibili.app.coldstart.v1.ColdStartBizReq".into()
17    }
18    fn type_url() -> ::prost::alloc::string::String {
19        "/bilibili.app.coldstart.v1.ColdStartBizReq".into()
20    }
21}
22///
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct ColdStartBizResp {
25    ///
26    #[prost(string, tag = "1")]
27    pub biz_key: ::prost::alloc::string::String,
28    ///
29    #[prost(message, optional, tag = "2")]
30    pub biz_resp: ::core::option::Option<::prost_types::Any>,
31    ///
32    #[prost(oneof = "cold_start_biz_resp::Status", tags = "3, 4")]
33    pub status: ::core::option::Option<cold_start_biz_resp::Status>,
34}
35/// Nested message and enum types in `ColdStartBizResp`.
36pub mod cold_start_biz_resp {
37    ///
38    #[derive(Clone, PartialEq, ::prost::Oneof)]
39    pub enum Status {
40        ///
41        #[prost(message, tag = "3")]
42        GrpcStatus(super::GrpcStatus),
43        ///
44        #[prost(message, tag = "4")]
45        HttpStatus(super::HttpStatus),
46    }
47}
48impl ::prost::Name for ColdStartBizResp {
49    const NAME: &'static str = "ColdStartBizResp";
50    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
51    fn full_name() -> ::prost::alloc::string::String {
52        "bilibili.app.coldstart.v1.ColdStartBizResp".into()
53    }
54    fn type_url() -> ::prost::alloc::string::String {
55        "/bilibili.app.coldstart.v1.ColdStartBizResp".into()
56    }
57}
58///
59#[derive(Clone, PartialEq, ::prost::Message)]
60pub struct GetColdStartDataReq {
61    ///
62    #[prost(message, repeated, tag = "1")]
63    pub req_list: ::prost::alloc::vec::Vec<ColdStartBizReq>,
64}
65impl ::prost::Name for GetColdStartDataReq {
66    const NAME: &'static str = "GetColdStartDataReq";
67    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
68    fn full_name() -> ::prost::alloc::string::String {
69        "bilibili.app.coldstart.v1.GetColdStartDataReq".into()
70    }
71    fn type_url() -> ::prost::alloc::string::String {
72        "/bilibili.app.coldstart.v1.GetColdStartDataReq".into()
73    }
74}
75///
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct GetColdStartDataResp {
78    ///
79    #[prost(message, repeated, tag = "1")]
80    pub resp_list: ::prost::alloc::vec::Vec<ColdStartBizResp>,
81}
82impl ::prost::Name for GetColdStartDataResp {
83    const NAME: &'static str = "GetColdStartDataResp";
84    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
85    fn full_name() -> ::prost::alloc::string::String {
86        "bilibili.app.coldstart.v1.GetColdStartDataResp".into()
87    }
88    fn type_url() -> ::prost::alloc::string::String {
89        "/bilibili.app.coldstart.v1.GetColdStartDataResp".into()
90    }
91}
92///
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct GrpcStatus {
95    ///
96    #[prost(int32, tag = "1")]
97    pub code: i32,
98    ///
99    #[prost(string, tag = "2")]
100    pub message: ::prost::alloc::string::String,
101}
102impl ::prost::Name for GrpcStatus {
103    const NAME: &'static str = "GrpcStatus";
104    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
105    fn full_name() -> ::prost::alloc::string::String {
106        "bilibili.app.coldstart.v1.GrpcStatus".into()
107    }
108    fn type_url() -> ::prost::alloc::string::String {
109        "/bilibili.app.coldstart.v1.GrpcStatus".into()
110    }
111}
112///
113#[derive(Clone, PartialEq, ::prost::Message)]
114pub struct HttpGetBizReq {
115    ///
116    #[prost(map = "string, string", tag = "1")]
117    pub headers: ::std::collections::HashMap<
118        ::prost::alloc::string::String,
119        ::prost::alloc::string::String,
120    >,
121    ///
122    #[prost(map = "string, string", tag = "2")]
123    pub params: ::std::collections::HashMap<
124        ::prost::alloc::string::String,
125        ::prost::alloc::string::String,
126    >,
127}
128impl ::prost::Name for HttpGetBizReq {
129    const NAME: &'static str = "HttpGetBizReq";
130    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
131    fn full_name() -> ::prost::alloc::string::String {
132        "bilibili.app.coldstart.v1.HttpGetBizReq".into()
133    }
134    fn type_url() -> ::prost::alloc::string::String {
135        "/bilibili.app.coldstart.v1.HttpGetBizReq".into()
136    }
137}
138///
139#[derive(Clone, PartialEq, ::prost::Message)]
140pub struct HttpJsonBizResp {
141    ///
142    #[prost(string, tag = "1")]
143    pub data: ::prost::alloc::string::String,
144}
145impl ::prost::Name for HttpJsonBizResp {
146    const NAME: &'static str = "HttpJsonBizResp";
147    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
148    fn full_name() -> ::prost::alloc::string::String {
149        "bilibili.app.coldstart.v1.HttpJsonBizResp".into()
150    }
151    fn type_url() -> ::prost::alloc::string::String {
152        "/bilibili.app.coldstart.v1.HttpJsonBizResp".into()
153    }
154}
155///
156#[derive(Clone, PartialEq, ::prost::Message)]
157pub struct HttpStatus {
158    ///
159    #[prost(int32, tag = "1")]
160    pub code: i32,
161    ///
162    #[prost(string, tag = "2")]
163    pub message: ::prost::alloc::string::String,
164}
165impl ::prost::Name for HttpStatus {
166    const NAME: &'static str = "HttpStatus";
167    const PACKAGE: &'static str = "bilibili.app.coldstart.v1";
168    fn full_name() -> ::prost::alloc::string::String {
169        "bilibili.app.coldstart.v1.HttpStatus".into()
170    }
171    fn type_url() -> ::prost::alloc::string::String {
172        "/bilibili.app.coldstart.v1.HttpStatus".into()
173    }
174}