mikufans_proto_intl/
bilibili.dagw.component.avatar.v1.plugin.rs

1// This file is @generated by prost-build.
2///
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct BorderConfig {
5    ///
6    #[prost(message, optional, tag = "1")]
7    pub color: ::core::option::Option<super::super::common::ColorConfig>,
8    ///
9    #[prost(double, tag = "2")]
10    pub border_width: f64,
11    ///
12    #[prost(double, tag = "3")]
13    pub ratio: f64,
14}
15///
16#[derive(Clone, PartialEq, ::prost::Message)]
17pub struct CommentDoubleClickConfig {
18    ///
19    #[prost(message, optional, tag = "1")]
20    pub interaction: ::core::option::Option<Interaction>,
21    ///
22    #[prost(double, tag = "2")]
23    pub animation_scale: f64,
24}
25///
26#[derive(Clone, PartialEq, ::prost::Message)]
27pub struct FollowActionConfig {
28    ///
29    #[prost(bool, tag = "1")]
30    pub has_follow: bool,
31    ///
32    #[prost(message, optional, tag = "2")]
33    pub icon_res: ::core::option::Option<super::super::common::ResourceSource>,
34    ///
35    #[prost(double, tag = "3")]
36    pub border_width: f64,
37    ///
38    #[prost(message, optional, tag = "4")]
39    pub border_color: ::core::option::Option<super::super::common::ColorConfig>,
40    ///
41    #[prost(int64, tag = "5")]
42    pub mid: i64,
43    ///
44    #[prost(double, tag = "6")]
45    pub icon_width_ratio: f64,
46    ///
47    #[prost(double, tag = "7")]
48    pub icon_size_offset: f64,
49}
50///
51#[derive(Clone, PartialEq, ::prost::Message)]
52pub struct FollowIconConfig {
53    ///
54    #[prost(bool, tag = "1")]
55    pub has_follow: bool,
56    ///
57    #[prost(message, optional, tag = "2")]
58    pub icon_res: ::core::option::Option<super::super::common::ResourceSource>,
59    ///
60    #[prost(double, tag = "3")]
61    pub border_width: f64,
62    ///
63    #[prost(message, optional, tag = "4")]
64    pub border_color: ::core::option::Option<super::super::common::ColorConfig>,
65    ///
66    #[prost(int64, tag = "5")]
67    pub mid: i64,
68}
69///
70#[derive(Clone, PartialEq, ::prost::Message)]
71pub struct GyroConfig {
72    ///
73    #[prost(message, optional, tag = "1")]
74    pub gyroscope: ::core::option::Option<NftImageV2>,
75}
76///
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct GyroscopeContentV2 {
79    ///
80    #[prost(string, tag = "1")]
81    pub file_url: ::prost::alloc::string::String,
82    ///
83    #[prost(float, tag = "2")]
84    pub scale: f32,
85    ///
86    #[prost(message, repeated, tag = "3")]
87    pub physical_orientation: ::prost::alloc::vec::Vec<PhysicalOrientationV2>,
88}
89///
90#[derive(Clone, PartialEq, ::prost::Message)]
91pub struct GyroscopeEntityV2 {
92    ///
93    #[prost(string, tag = "1")]
94    pub display_type: ::prost::alloc::string::String,
95    ///
96    #[prost(message, repeated, tag = "2")]
97    pub contents: ::prost::alloc::vec::Vec<GyroscopeContentV2>,
98}
99///
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct Interaction {
102    ///
103    #[prost(string, tag = "1")]
104    pub nft_id: ::prost::alloc::string::String,
105    ///
106    #[prost(bool, tag = "2")]
107    pub enabled: bool,
108    ///
109    #[prost(string, tag = "3")]
110    pub itype: ::prost::alloc::string::String,
111    ///
112    #[prost(string, tag = "4")]
113    pub metadata_url: ::prost::alloc::string::String,
114}
115///
116#[derive(Clone, PartialEq, ::prost::Message)]
117pub struct LiveAnimeConfig {
118    ///
119    #[prost(bool, tag = "1")]
120    pub is_live: bool,
121    ///
122    #[prost(message, optional, tag = "2")]
123    pub config: ::core::option::Option<LiveTextConfig>,
124    ///
125    #[prost(message, repeated, tag = "3")]
126    pub items: ::prost::alloc::vec::Vec<LiveAnimeItem>,
127    ///
128    #[prost(message, repeated, tag = "4")]
129    pub border_config: ::prost::alloc::vec::Vec<BorderConfig>,
130}
131///
132#[derive(Clone, PartialEq, ::prost::Message)]
133pub struct LiveAnimeItem {
134    ///
135    #[prost(message, optional, tag = "1")]
136    pub color: ::core::option::Option<super::super::common::ColorConfig>,
137    ///
138    #[prost(double, tag = "2")]
139    pub start_ratio: f64,
140    ///
141    #[prost(double, tag = "3")]
142    pub end_ratio: f64,
143    ///
144    #[prost(double, tag = "4")]
145    pub start_stroke: f64,
146    ///
147    #[prost(double, tag = "5")]
148    pub start_opacity: f64,
149    ///
150    #[prost(int64, tag = "6")]
151    pub phase: i64,
152}
153///
154#[derive(Clone, PartialEq, ::prost::Message)]
155pub struct LiveTextConfig {
156    ///
157    #[prost(double, tag = "1")]
158    pub width: f64,
159    ///
160    #[prost(double, tag = "2")]
161    pub height: f64,
162    ///
163    #[prost(double, tag = "3")]
164    pub offset_y: f64,
165    ///
166    #[prost(double, tag = "4")]
167    pub border_width: f64,
168    ///
169    #[prost(double, tag = "5")]
170    pub text_size: f64,
171    ///
172    #[prost(message, optional, tag = "7")]
173    pub border_color: ::core::option::Option<super::super::common::ColorConfig>,
174    ///
175    #[prost(message, optional, tag = "8")]
176    pub background: ::core::option::Option<super::super::common::ColorConfig>,
177}
178///
179#[derive(Clone, PartialEq, ::prost::Message)]
180pub struct NftImageV2 {
181    ///
182    #[prost(message, repeated, tag = "1")]
183    pub gyroscope: ::prost::alloc::vec::Vec<GyroscopeEntityV2>,
184}
185///
186#[derive(Clone, PartialEq, ::prost::Message)]
187pub struct PhysicalOrientationAnimation {
188    ///
189    #[prost(string, tag = "1")]
190    pub r#type: ::prost::alloc::string::String,
191    ///
192    #[prost(float, repeated, tag = "2")]
193    pub value: ::prost::alloc::vec::Vec<f32>,
194    ///
195    #[prost(string, tag = "3")]
196    pub bezier: ::prost::alloc::string::String,
197}
198///
199#[derive(Clone, PartialEq, ::prost::Message)]
200pub struct PhysicalOrientationV2 {
201    ///
202    #[prost(string, tag = "1")]
203    pub r#type: ::prost::alloc::string::String,
204    ///
205    #[prost(float, repeated, tag = "2")]
206    pub angle: ::prost::alloc::vec::Vec<f32>,
207    ///
208    #[prost(message, repeated, tag = "3")]
209    pub animations: ::prost::alloc::vec::Vec<PhysicalOrientationAnimation>,
210}
211///
212#[derive(Clone, Copy, PartialEq, ::prost::Message)]
213pub struct WebLiveAnimeConfig {
214    ///
215    #[prost(double, tag = "1")]
216    pub circle_gap_width: f64,
217    ///
218    #[prost(double, tag = "2")]
219    pub pink_circle_width: f64,
220    ///
221    #[prost(double, tag = "3")]
222    pub live_label_width: f64,
223    ///
224    #[prost(double, tag = "4")]
225    pub live_label_height: f64,
226    ///
227    #[prost(double, tag = "5")]
228    pub live_label_offset_y: f64,
229    ///
230    #[prost(double, tag = "6")]
231    pub live_label_border_width: f64,
232}