1#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_results)]
19#![allow(unused_mut)]
20
21const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2;
26
27#[derive(PartialEq,Clone,Default,Debug)]
30pub struct DesignerInfoProto {
31 pub designer: ::std::option::Option<::std::string::String>,
35 pub link: ::std::option::Option<::std::string::String>,
38 pub avatar: ::protobuf::MessageField<AvatarProto>,
41 pub special_fields: ::protobuf::SpecialFields,
44}
45
46impl<'a> ::std::default::Default for &'a DesignerInfoProto {
47 fn default() -> &'a DesignerInfoProto {
48 <DesignerInfoProto as ::protobuf::Message>::default_instance()
49 }
50}
51
52impl DesignerInfoProto {
53 pub fn new() -> DesignerInfoProto {
54 ::std::default::Default::default()
55 }
56
57 pub fn designer(&self) -> &str {
60 match self.designer.as_ref() {
61 Some(v) => v,
62 None => "",
63 }
64 }
65
66 pub fn clear_designer(&mut self) {
67 self.designer = ::std::option::Option::None;
68 }
69
70 pub fn has_designer(&self) -> bool {
71 self.designer.is_some()
72 }
73
74 pub fn set_designer(&mut self, v: ::std::string::String) {
76 self.designer = ::std::option::Option::Some(v);
77 }
78
79 pub fn mut_designer(&mut self) -> &mut ::std::string::String {
82 if self.designer.is_none() {
83 self.designer = ::std::option::Option::Some(::std::string::String::new());
84 }
85 self.designer.as_mut().unwrap()
86 }
87
88 pub fn take_designer(&mut self) -> ::std::string::String {
90 self.designer.take().unwrap_or_else(|| ::std::string::String::new())
91 }
92
93 pub fn link(&self) -> &str {
96 match self.link.as_ref() {
97 Some(v) => v,
98 None => "",
99 }
100 }
101
102 pub fn clear_link(&mut self) {
103 self.link = ::std::option::Option::None;
104 }
105
106 pub fn has_link(&self) -> bool {
107 self.link.is_some()
108 }
109
110 pub fn set_link(&mut self, v: ::std::string::String) {
112 self.link = ::std::option::Option::Some(v);
113 }
114
115 pub fn mut_link(&mut self) -> &mut ::std::string::String {
118 if self.link.is_none() {
119 self.link = ::std::option::Option::Some(::std::string::String::new());
120 }
121 self.link.as_mut().unwrap()
122 }
123
124 pub fn take_link(&mut self) -> ::std::string::String {
126 self.link.take().unwrap_or_else(|| ::std::string::String::new())
127 }
128
129 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
130 let mut fields = ::std::vec::Vec::with_capacity(3);
131 let mut oneofs = ::std::vec::Vec::with_capacity(0);
132 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
133 "designer",
134 |m: &DesignerInfoProto| { &m.designer },
135 |m: &mut DesignerInfoProto| { &mut m.designer },
136 ));
137 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
138 "link",
139 |m: &DesignerInfoProto| { &m.link },
140 |m: &mut DesignerInfoProto| { &mut m.link },
141 ));
142 fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, AvatarProto>(
143 "avatar",
144 |m: &DesignerInfoProto| { &m.avatar },
145 |m: &mut DesignerInfoProto| { &mut m.avatar },
146 ));
147 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DesignerInfoProto>(
148 "DesignerInfoProto",
149 fields,
150 oneofs,
151 )
152 }
153}
154
155impl ::protobuf::Message for DesignerInfoProto {
156 const NAME: &'static str = "DesignerInfoProto";
157
158 fn is_initialized(&self) -> bool {
159 true
160 }
161
162 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
163 while let Some(tag) = is.read_raw_tag_or_eof()? {
164 match tag {
165 10 => {
166 self.designer = ::std::option::Option::Some(is.read_string()?);
167 },
168 18 => {
169 self.link = ::std::option::Option::Some(is.read_string()?);
170 },
171 26 => {
172 ::protobuf::rt::read_singular_message_into_field(is, &mut self.avatar)?;
173 },
174 tag => {
175 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
176 },
177 };
178 }
179 ::std::result::Result::Ok(())
180 }
181
182 #[allow(unused_variables)]
184 fn compute_size(&self) -> u64 {
185 let mut my_size = 0;
186 if let Some(v) = self.designer.as_ref() {
187 my_size += ::protobuf::rt::string_size(1, &v);
188 }
189 if let Some(v) = self.link.as_ref() {
190 my_size += ::protobuf::rt::string_size(2, &v);
191 }
192 if let Some(v) = self.avatar.as_ref() {
193 let len = v.compute_size();
194 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
195 }
196 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
197 self.special_fields.cached_size().set(my_size as u32);
198 my_size
199 }
200
201 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
202 if let Some(v) = self.designer.as_ref() {
203 os.write_string(1, v)?;
204 }
205 if let Some(v) = self.link.as_ref() {
206 os.write_string(2, v)?;
207 }
208 if let Some(v) = self.avatar.as_ref() {
209 ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
210 }
211 os.write_unknown_fields(self.special_fields.unknown_fields())?;
212 ::std::result::Result::Ok(())
213 }
214
215 fn special_fields(&self) -> &::protobuf::SpecialFields {
216 &self.special_fields
217 }
218
219 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
220 &mut self.special_fields
221 }
222
223 fn new() -> DesignerInfoProto {
224 DesignerInfoProto::new()
225 }
226
227 fn clear(&mut self) {
228 self.designer = ::std::option::Option::None;
229 self.link = ::std::option::Option::None;
230 self.avatar.clear();
231 self.special_fields.clear();
232 }
233
234 fn default_instance() -> &'static DesignerInfoProto {
235 static instance: DesignerInfoProto = DesignerInfoProto {
236 designer: ::std::option::Option::None,
237 link: ::std::option::Option::None,
238 avatar: ::protobuf::MessageField::none(),
239 special_fields: ::protobuf::SpecialFields::new(),
240 };
241 &instance
242 }
243}
244
245impl ::protobuf::MessageFull for DesignerInfoProto {
246 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
247 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
248 descriptor.get(|| file_descriptor().message_by_package_relative_name("DesignerInfoProto").unwrap()).clone()
249 }
250}
251
252impl ::std::fmt::Display for DesignerInfoProto {
253 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
254 ::protobuf::text_format::fmt(self, f)
255 }
256}
257
258impl ::protobuf::reflect::ProtobufValue for DesignerInfoProto {
259 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
260}
261
262#[derive(PartialEq,Clone,Default,Debug)]
264pub struct AvatarProto {
265 pub file_name: ::std::option::Option<::std::string::String>,
268 pub special_fields: ::protobuf::SpecialFields,
271}
272
273impl<'a> ::std::default::Default for &'a AvatarProto {
274 fn default() -> &'a AvatarProto {
275 <AvatarProto as ::protobuf::Message>::default_instance()
276 }
277}
278
279impl AvatarProto {
280 pub fn new() -> AvatarProto {
281 ::std::default::Default::default()
282 }
283
284 pub fn file_name(&self) -> &str {
287 match self.file_name.as_ref() {
288 Some(v) => v,
289 None => "",
290 }
291 }
292
293 pub fn clear_file_name(&mut self) {
294 self.file_name = ::std::option::Option::None;
295 }
296
297 pub fn has_file_name(&self) -> bool {
298 self.file_name.is_some()
299 }
300
301 pub fn set_file_name(&mut self, v: ::std::string::String) {
303 self.file_name = ::std::option::Option::Some(v);
304 }
305
306 pub fn mut_file_name(&mut self) -> &mut ::std::string::String {
309 if self.file_name.is_none() {
310 self.file_name = ::std::option::Option::Some(::std::string::String::new());
311 }
312 self.file_name.as_mut().unwrap()
313 }
314
315 pub fn take_file_name(&mut self) -> ::std::string::String {
317 self.file_name.take().unwrap_or_else(|| ::std::string::String::new())
318 }
319
320 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
321 let mut fields = ::std::vec::Vec::with_capacity(1);
322 let mut oneofs = ::std::vec::Vec::with_capacity(0);
323 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
324 "file_name",
325 |m: &AvatarProto| { &m.file_name },
326 |m: &mut AvatarProto| { &mut m.file_name },
327 ));
328 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AvatarProto>(
329 "AvatarProto",
330 fields,
331 oneofs,
332 )
333 }
334}
335
336impl ::protobuf::Message for AvatarProto {
337 const NAME: &'static str = "AvatarProto";
338
339 fn is_initialized(&self) -> bool {
340 true
341 }
342
343 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
344 while let Some(tag) = is.read_raw_tag_or_eof()? {
345 match tag {
346 10 => {
347 self.file_name = ::std::option::Option::Some(is.read_string()?);
348 },
349 tag => {
350 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
351 },
352 };
353 }
354 ::std::result::Result::Ok(())
355 }
356
357 #[allow(unused_variables)]
359 fn compute_size(&self) -> u64 {
360 let mut my_size = 0;
361 if let Some(v) = self.file_name.as_ref() {
362 my_size += ::protobuf::rt::string_size(1, &v);
363 }
364 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
365 self.special_fields.cached_size().set(my_size as u32);
366 my_size
367 }
368
369 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
370 if let Some(v) = self.file_name.as_ref() {
371 os.write_string(1, v)?;
372 }
373 os.write_unknown_fields(self.special_fields.unknown_fields())?;
374 ::std::result::Result::Ok(())
375 }
376
377 fn special_fields(&self) -> &::protobuf::SpecialFields {
378 &self.special_fields
379 }
380
381 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
382 &mut self.special_fields
383 }
384
385 fn new() -> AvatarProto {
386 AvatarProto::new()
387 }
388
389 fn clear(&mut self) {
390 self.file_name = ::std::option::Option::None;
391 self.special_fields.clear();
392 }
393
394 fn default_instance() -> &'static AvatarProto {
395 static instance: AvatarProto = AvatarProto {
396 file_name: ::std::option::Option::None,
397 special_fields: ::protobuf::SpecialFields::new(),
398 };
399 &instance
400 }
401}
402
403impl ::protobuf::MessageFull for AvatarProto {
404 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
405 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
406 descriptor.get(|| file_descriptor().message_by_package_relative_name("AvatarProto").unwrap()).clone()
407 }
408}
409
410impl ::std::fmt::Display for AvatarProto {
411 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
412 ::protobuf::text_format::fmt(self, f)
413 }
414}
415
416impl ::protobuf::reflect::ProtobufValue for AvatarProto {
417 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
418}
419
420static file_descriptor_proto_data: &'static [u8] = b"\
421 \n\x0fdesigners.proto\"i\n\x11DesignerInfoProto\x12\x1a\n\x08designer\
422 \x18\x01\x20\x01(\tR\x08designer\x12\x12\n\x04link\x18\x02\x20\x01(\tR\
423 \x04link\x12$\n\x06avatar\x18\x03\x20\x01(\x0b2\x0c.AvatarProtoR\x06avat\
424 ar\"*\n\x0bAvatarProto\x12\x1b\n\tfile_name\x18\x01\x20\x01(\tR\x08fileN\
425 ameJ\xf3\x03\n\x06\x12\x04\0\0\x11\x01\n&\n\x01\x0c\x12\x03\0\0\x12\"\
426 \x1c\x20GF\x20Designer\x20Profile\x20Protos\n\n/\n\x02\x04\0\x12\x04\x04\
427 \0\r\x01\x1a#\x20A\x20designer\x20listed\x20on\x20the\x20catalog:\n\n\n\
428 \n\x03\x04\0\x01\x12\x03\x04\x08\x19\n,\n\x04\x04\0\x02\0\x12\x03\x06\
429 \x02\x1f\x1a\x1f\x20Designer\x20or\x20typefoundry\x20name:\n\n\x0c\n\x05\
430 \x04\0\x02\0\x04\x12\x03\x06\x02\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\
431 \x06\x0b\x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x06\x12\x1a\n\x0c\n\x05\
432 \x04\0\x02\0\x03\x12\x03\x06\x1d\x1e\n2\n\x04\x04\0\x02\x01\x12\x03\t\
433 \x02\x1b\x1a%\x20URL\x20for\x20more\x20info\x20on\x20this\x20designer:\n\
434 \n\x0c\n\x05\x04\0\x02\x01\x04\x12\x03\t\x02\n\n\x0c\n\x05\x04\0\x02\x01\
435 \x05\x12\x03\t\x0b\x11\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\t\x12\x16\n\
436 \x0c\n\x05\x04\0\x02\x01\x03\x12\x03\t\x19\x1a\n\x1d\n\x04\x04\0\x02\x02\
437 \x12\x03\x0c\x02\"\x1a\x10\x20Photo\x20or\x20logo:\n\n\x0c\n\x05\x04\0\
438 \x02\x02\x04\x12\x03\x0c\x02\n\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\x0c\
439 \x0b\x16\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x0c\x17\x1d\n\x0c\n\x05\
440 \x04\0\x02\x02\x03\x12\x03\x0c\x20!\n\n\n\x02\x04\x01\x12\x04\x0f\0\x11\
441 \x01\n\n\n\x03\x04\x01\x01\x12\x03\x0f\x08\x13\n\x0b\n\x04\x04\x01\x02\0\
442 \x12\x03\x10\x02\x20\n\x0c\n\x05\x04\x01\x02\0\x04\x12\x03\x10\x02\n\n\
443 \x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x10\x0b\x11\n\x0c\n\x05\x04\x01\x02\
444 \0\x01\x12\x03\x10\x12\x1b\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x10\x1e\
445 \x1f\
446";
447
448fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
450 static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
451 file_descriptor_proto_lazy.get(|| {
452 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
453 })
454}
455
456pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
458 static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
459 static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
460 file_descriptor.get(|| {
461 let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
462 let mut deps = ::std::vec::Vec::with_capacity(0);
463 let mut messages = ::std::vec::Vec::with_capacity(2);
464 messages.push(DesignerInfoProto::generated_message_descriptor_data());
465 messages.push(AvatarProto::generated_message_descriptor_data());
466 let mut enums = ::std::vec::Vec::with_capacity(0);
467 ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
468 file_descriptor_proto(),
469 deps,
470 messages,
471 enums,
472 )
473 });
474 ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
475 })
476}