mikufans_proto_intl/
bilibili.live.app.interfaces.api.grpc.v1.rs

1// This file is @generated by prost-build.
2///
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct GetMoreLiveRoomsReq {
5    ///
6    #[prost(int64, tag = "1")]
7    pub room_id: i64,
8    ///
9    #[prost(message, optional, tag = "2")]
10    pub idol_pagination: ::core::option::Option<
11        super::super::super::super::super::super::pagination::Pagination,
12    >,
13    ///
14    #[prost(message, optional, tag = "3")]
15    pub rooms_pagination: ::core::option::Option<
16        super::super::super::super::super::super::pagination::Pagination,
17    >,
18    ///
19    #[prost(int64, tag = "4")]
20    pub uid: i64,
21}
22///
23#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct GetMoreLiveRoomsResp {
25    ///
26    #[prost(message, optional, tag = "1")]
27    pub idol_pagination_reply: ::core::option::Option<
28        super::super::super::super::super::super::pagination::PaginationReply,
29    >,
30    ///
31    #[prost(message, optional, tag = "2")]
32    pub rooms_pagination_reply: ::core::option::Option<
33        super::super::super::super::super::super::pagination::PaginationReply,
34    >,
35    ///
36    #[prost(bool, tag = "3")]
37    pub idol_has_more: bool,
38    ///
39    #[prost(message, repeated, tag = "4")]
40    pub my_idol_info: ::prost::alloc::vec::Vec<MyIdolInfo>,
41    ///
42    #[prost(message, repeated, tag = "5")]
43    pub more_live_info: ::prost::alloc::vec::Vec<MoreLiveRoomInfo>,
44    ///
45    #[prost(message, repeated, tag = "6")]
46    pub view_history: ::prost::alloc::vec::Vec<ViewHistory>,
47}
48///
49#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct GetViewHistoryReq {
51    ///
52    #[prost(int64, tag = "1")]
53    pub uid: i64,
54    ///
55    #[prost(message, optional, tag = "2")]
56    pub pagination: ::core::option::Option<
57        super::super::super::super::super::super::pagination::Pagination,
58    >,
59}
60///
61#[derive(Clone, PartialEq, ::prost::Message)]
62pub struct GetViewHistoryResp {
63    ///
64    #[prost(message, repeated, tag = "1")]
65    pub history: ::prost::alloc::vec::Vec<ViewHistory>,
66    ///
67    #[prost(message, optional, tag = "2")]
68    pub pagination_reply: ::core::option::Option<
69        super::super::super::super::super::super::pagination::PaginationReply,
70    >,
71}
72///
73#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct MoreLiveRoomInfo {
75    ///
76    #[prost(int64, tag = "1")]
77    pub room_id: i64,
78    ///
79    #[prost(string, tag = "2")]
80    pub uname: ::prost::alloc::string::String,
81    ///
82    #[prost(string, tag = "3")]
83    pub room_cover: ::prost::alloc::string::String,
84    ///
85    #[prost(string, tag = "4")]
86    pub room_title: ::prost::alloc::string::String,
87    ///
88    #[prost(enumeration = "RoomType", tag = "5")]
89    pub room_type: i32,
90    ///
91    #[prost(string, tag = "6")]
92    pub text_small: ::prost::alloc::string::String,
93    ///
94    #[prost(string, tag = "7")]
95    pub icon: ::prost::alloc::string::String,
96    ///
97    #[prost(string, tag = "8")]
98    pub area_name: ::prost::alloc::string::String,
99    ///
100    #[prost(string, tag = "9")]
101    pub link: ::prost::alloc::string::String,
102    ///
103    #[prost(string, tag = "10")]
104    pub face: ::prost::alloc::string::String,
105}
106///
107#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct MyIdolInfo {
109    ///
110    #[prost(int64, tag = "1")]
111    pub room_id: i64,
112    ///
113    #[prost(int64, tag = "2")]
114    pub uid: i64,
115    ///
116    #[prost(string, tag = "3")]
117    pub uname: ::prost::alloc::string::String,
118    ///
119    #[prost(string, tag = "4")]
120    pub face: ::prost::alloc::string::String,
121    ///
122    #[prost(string, tag = "5")]
123    pub title: ::prost::alloc::string::String,
124    ///
125    #[prost(string, tag = "6")]
126    pub link: ::prost::alloc::string::String,
127}
128///
129#[derive(Clone, PartialEq, ::prost::Message)]
130pub struct RemoveViewHistoryReq {
131    ///
132    #[prost(int64, repeated, tag = "1")]
133    pub kids: ::prost::alloc::vec::Vec<i64>,
134    ///
135    #[prost(int64, tag = "2")]
136    pub uid: i64,
137    ///
138    #[prost(string, tag = "3")]
139    pub buvid: ::prost::alloc::string::String,
140}
141///
142#[derive(Clone, Copy, PartialEq, ::prost::Message)]
143pub struct RemoveViewHistoryResp {}
144///
145#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct ViewHistory {
147    ///
148    #[prost(int64, tag = "1")]
149    pub kid: i64,
150    ///
151    #[prost(int64, tag = "2")]
152    pub anchor_uid: i64,
153    ///
154    #[prost(string, tag = "3")]
155    pub uname: ::prost::alloc::string::String,
156    ///
157    #[prost(string, tag = "4")]
158    pub face: ::prost::alloc::string::String,
159    ///
160    #[prost(int64, tag = "5")]
161    pub room_id: i64,
162    ///
163    #[prost(string, tag = "6")]
164    pub title: ::prost::alloc::string::String,
165    ///
166    #[prost(string, tag = "7")]
167    pub cover: ::prost::alloc::string::String,
168    ///
169    #[prost(int64, tag = "8")]
170    pub living_status: i64,
171    ///
172    #[prost(int64, tag = "9")]
173    pub parent_area_id: i64,
174    ///
175    #[prost(string, tag = "10")]
176    pub parent_area_name: ::prost::alloc::string::String,
177    ///
178    #[prost(int64, tag = "11")]
179    pub area_id: i64,
180    ///
181    #[prost(string, tag = "12")]
182    pub area_name: ::prost::alloc::string::String,
183    ///
184    #[prost(bool, tag = "13")]
185    pub follow_status: bool,
186    ///
187    #[prost(int64, tag = "14")]
188    pub view_time: i64,
189    ///
190    #[prost(string, tag = "15")]
191    pub device: ::prost::alloc::string::String,
192    ///
193    #[prost(string, tag = "16")]
194    pub link: ::prost::alloc::string::String,
195}
196///
197#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
198#[repr(i32)]
199pub enum RoomType {
200    ///
201    Watched = 0,
202    ///
203    Popularity = 1,
204}
205impl RoomType {
206    /// String value of the enum field names used in the ProtoBuf definition.
207    ///
208    /// The values are not transformed in any way and thus are considered stable
209    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
210    pub fn as_str_name(&self) -> &'static str {
211        match self {
212            Self::Watched => "Watched",
213            Self::Popularity => "Popularity",
214        }
215    }
216    /// Creates an enum from field names used in the ProtoBuf definition.
217    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
218        match value {
219            "Watched" => Some(Self::Watched),
220            "Popularity" => Some(Self::Popularity),
221            _ => None,
222        }
223    }
224}