1 // This file is generated by rust-protobuf 2.14.0-pre. Do not edit
2 // @generated
3
4 // https://github.com/rust-lang/rust-clippy/issues/702
5 #![allow(unknown_lints)]
6 #![allow(clippy::all)]
7
8 #![cfg_attr(rustfmt, rustfmt_skip)]
9
10 #![allow(box_pointers)]
11 #![allow(dead_code)]
12 #![allow(missing_docs)]
13 #![allow(non_camel_case_types)]
14 #![allow(non_snake_case)]
15 #![allow(non_upper_case_globals)]
16 #![allow(trivial_casts)]
17 #![allow(unsafe_code)]
18 #![allow(unused_imports)]
19 #![allow(unused_results)]
20 //! Generated file from `google/protobuf/type.proto`
21
22 use protobuf::Message as Message_imported_for_functions;
23 use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25 #[derive(PartialEq,Clone,Default)]
26 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
27 pub struct Type {
28 // message fields
29 pub name: ::std::string::String,
30 pub fields: ::protobuf::RepeatedField<Field>,
31 pub oneofs: ::protobuf::RepeatedField<::std::string::String>,
32 pub options: ::protobuf::RepeatedField<Option>,
33 pub source_context: ::protobuf::SingularPtrField<::protobuf::well_known_types::SourceContext>,
34 pub syntax: Syntax,
35 // special fields
36 #[cfg_attr(feature = "with-serde", serde(skip))]
37 pub unknown_fields: ::protobuf::UnknownFields,
38 #[cfg_attr(feature = "with-serde", serde(skip))]
39 pub cached_size: ::protobuf::CachedSize,
40 }
41
42 impl<'a> ::std::default::Default for &'a Type {
default() -> &'a Type43 fn default() -> &'a Type {
44 <Type as ::protobuf::Message>::default_instance()
45 }
46 }
47
48 impl Type {
new() -> Type49 pub fn new() -> Type {
50 ::std::default::Default::default()
51 }
52
53 // string name = 1;
54
55
get_name(&self) -> &str56 pub fn get_name(&self) -> &str {
57 &self.name
58 }
clear_name(&mut self)59 pub fn clear_name(&mut self) {
60 self.name.clear();
61 }
62
63 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)64 pub fn set_name(&mut self, v: ::std::string::String) {
65 self.name = v;
66 }
67
68 // Mutable pointer to the field.
69 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String70 pub fn mut_name(&mut self) -> &mut ::std::string::String {
71 &mut self.name
72 }
73
74 // Take field
take_name(&mut self) -> ::std::string::String75 pub fn take_name(&mut self) -> ::std::string::String {
76 ::std::mem::replace(&mut self.name, ::std::string::String::new())
77 }
78
79 // repeated .google.protobuf.Field fields = 2;
80
81
get_fields(&self) -> &[Field]82 pub fn get_fields(&self) -> &[Field] {
83 &self.fields
84 }
clear_fields(&mut self)85 pub fn clear_fields(&mut self) {
86 self.fields.clear();
87 }
88
89 // Param is passed by value, moved
set_fields(&mut self, v: ::protobuf::RepeatedField<Field>)90 pub fn set_fields(&mut self, v: ::protobuf::RepeatedField<Field>) {
91 self.fields = v;
92 }
93
94 // Mutable pointer to the field.
mut_fields(&mut self) -> &mut ::protobuf::RepeatedField<Field>95 pub fn mut_fields(&mut self) -> &mut ::protobuf::RepeatedField<Field> {
96 &mut self.fields
97 }
98
99 // Take field
take_fields(&mut self) -> ::protobuf::RepeatedField<Field>100 pub fn take_fields(&mut self) -> ::protobuf::RepeatedField<Field> {
101 ::std::mem::replace(&mut self.fields, ::protobuf::RepeatedField::new())
102 }
103
104 // repeated string oneofs = 3;
105
106
get_oneofs(&self) -> &[::std::string::String]107 pub fn get_oneofs(&self) -> &[::std::string::String] {
108 &self.oneofs
109 }
clear_oneofs(&mut self)110 pub fn clear_oneofs(&mut self) {
111 self.oneofs.clear();
112 }
113
114 // Param is passed by value, moved
set_oneofs(&mut self, v: ::protobuf::RepeatedField<::std::string::String>)115 pub fn set_oneofs(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
116 self.oneofs = v;
117 }
118
119 // Mutable pointer to the field.
mut_oneofs(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String>120 pub fn mut_oneofs(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
121 &mut self.oneofs
122 }
123
124 // Take field
take_oneofs(&mut self) -> ::protobuf::RepeatedField<::std::string::String>125 pub fn take_oneofs(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
126 ::std::mem::replace(&mut self.oneofs, ::protobuf::RepeatedField::new())
127 }
128
129 // repeated .google.protobuf.Option options = 4;
130
131
get_options(&self) -> &[Option]132 pub fn get_options(&self) -> &[Option] {
133 &self.options
134 }
clear_options(&mut self)135 pub fn clear_options(&mut self) {
136 self.options.clear();
137 }
138
139 // Param is passed by value, moved
set_options(&mut self, v: ::protobuf::RepeatedField<Option>)140 pub fn set_options(&mut self, v: ::protobuf::RepeatedField<Option>) {
141 self.options = v;
142 }
143
144 // Mutable pointer to the field.
mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option>145 pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option> {
146 &mut self.options
147 }
148
149 // Take field
take_options(&mut self) -> ::protobuf::RepeatedField<Option>150 pub fn take_options(&mut self) -> ::protobuf::RepeatedField<Option> {
151 ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
152 }
153
154 // .google.protobuf.SourceContext source_context = 5;
155
156
get_source_context(&self) -> &::protobuf::well_known_types::SourceContext157 pub fn get_source_context(&self) -> &::protobuf::well_known_types::SourceContext {
158 self.source_context.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::SourceContext::default_instance())
159 }
clear_source_context(&mut self)160 pub fn clear_source_context(&mut self) {
161 self.source_context.clear();
162 }
163
has_source_context(&self) -> bool164 pub fn has_source_context(&self) -> bool {
165 self.source_context.is_some()
166 }
167
168 // Param is passed by value, moved
set_source_context(&mut self, v: ::protobuf::well_known_types::SourceContext)169 pub fn set_source_context(&mut self, v: ::protobuf::well_known_types::SourceContext) {
170 self.source_context = ::protobuf::SingularPtrField::some(v);
171 }
172
173 // Mutable pointer to the field.
174 // If field is not initialized, it is initialized with default value first.
mut_source_context(&mut self) -> &mut ::protobuf::well_known_types::SourceContext175 pub fn mut_source_context(&mut self) -> &mut ::protobuf::well_known_types::SourceContext {
176 if self.source_context.is_none() {
177 self.source_context.set_default();
178 }
179 self.source_context.as_mut().unwrap()
180 }
181
182 // Take field
take_source_context(&mut self) -> ::protobuf::well_known_types::SourceContext183 pub fn take_source_context(&mut self) -> ::protobuf::well_known_types::SourceContext {
184 self.source_context.take().unwrap_or_else(|| ::protobuf::well_known_types::SourceContext::new())
185 }
186
187 // .google.protobuf.Syntax syntax = 6;
188
189
get_syntax(&self) -> Syntax190 pub fn get_syntax(&self) -> Syntax {
191 self.syntax
192 }
clear_syntax(&mut self)193 pub fn clear_syntax(&mut self) {
194 self.syntax = Syntax::SYNTAX_PROTO2;
195 }
196
197 // Param is passed by value, moved
set_syntax(&mut self, v: Syntax)198 pub fn set_syntax(&mut self, v: Syntax) {
199 self.syntax = v;
200 }
201 }
202
203 impl ::protobuf::Message for Type {
is_initialized(&self) -> bool204 fn is_initialized(&self) -> bool {
205 for v in &self.fields {
206 if !v.is_initialized() {
207 return false;
208 }
209 };
210 for v in &self.options {
211 if !v.is_initialized() {
212 return false;
213 }
214 };
215 for v in &self.source_context {
216 if !v.is_initialized() {
217 return false;
218 }
219 };
220 true
221 }
222
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>223 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
224 while !is.eof()? {
225 let (field_number, wire_type) = is.read_tag_unpack()?;
226 match field_number {
227 1 => {
228 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
229 },
230 2 => {
231 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.fields)?;
232 },
233 3 => {
234 ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.oneofs)?;
235 },
236 4 => {
237 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
238 },
239 5 => {
240 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?;
241 },
242 6 => {
243 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 6, &mut self.unknown_fields)?
244 },
245 _ => {
246 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
247 },
248 };
249 }
250 ::std::result::Result::Ok(())
251 }
252
253 // Compute sizes of nested messages
254 #[allow(unused_variables)]
compute_size(&self) -> u32255 fn compute_size(&self) -> u32 {
256 let mut my_size = 0;
257 if !self.name.is_empty() {
258 my_size += ::protobuf::rt::string_size(1, &self.name);
259 }
260 for value in &self.fields {
261 let len = value.compute_size();
262 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
263 };
264 for value in &self.oneofs {
265 my_size += ::protobuf::rt::string_size(3, &value);
266 };
267 for value in &self.options {
268 let len = value.compute_size();
269 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
270 };
271 if let Some(ref v) = self.source_context.as_ref() {
272 let len = v.compute_size();
273 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
274 }
275 if self.syntax != Syntax::SYNTAX_PROTO2 {
276 my_size += ::protobuf::rt::enum_size(6, self.syntax);
277 }
278 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
279 self.cached_size.set(my_size);
280 my_size
281 }
282
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>283 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
284 if !self.name.is_empty() {
285 os.write_string(1, &self.name)?;
286 }
287 for v in &self.fields {
288 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
289 os.write_raw_varint32(v.get_cached_size())?;
290 v.write_to_with_cached_sizes(os)?;
291 };
292 for v in &self.oneofs {
293 os.write_string(3, &v)?;
294 };
295 for v in &self.options {
296 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
297 os.write_raw_varint32(v.get_cached_size())?;
298 v.write_to_with_cached_sizes(os)?;
299 };
300 if let Some(ref v) = self.source_context.as_ref() {
301 os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
302 os.write_raw_varint32(v.get_cached_size())?;
303 v.write_to_with_cached_sizes(os)?;
304 }
305 if self.syntax != Syntax::SYNTAX_PROTO2 {
306 os.write_enum(6, self.syntax.value())?;
307 }
308 os.write_unknown_fields(self.get_unknown_fields())?;
309 ::std::result::Result::Ok(())
310 }
311
get_cached_size(&self) -> u32312 fn get_cached_size(&self) -> u32 {
313 self.cached_size.get()
314 }
315
get_unknown_fields(&self) -> &::protobuf::UnknownFields316 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
317 &self.unknown_fields
318 }
319
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields320 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
321 &mut self.unknown_fields
322 }
323
as_any(&self) -> &dyn (::std::any::Any)324 fn as_any(&self) -> &dyn (::std::any::Any) {
325 self as &dyn (::std::any::Any)
326 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)327 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
328 self as &mut dyn (::std::any::Any)
329 }
into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>330 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
331 self
332 }
333
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor334 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
335 Self::descriptor_static()
336 }
337
new() -> Type338 fn new() -> Type {
339 Type::new()
340 }
341
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor342 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
343 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
344 unsafe {
345 descriptor.get(|| {
346 let mut fields = ::std::vec::Vec::new();
347 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
348 "name",
349 |m: &Type| { &m.name },
350 |m: &mut Type| { &mut m.name },
351 ));
352 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Field>>(
353 "fields",
354 |m: &Type| { &m.fields },
355 |m: &mut Type| { &mut m.fields },
356 ));
357 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
358 "oneofs",
359 |m: &Type| { &m.oneofs },
360 |m: &mut Type| { &mut m.oneofs },
361 ));
362 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Option>>(
363 "options",
364 |m: &Type| { &m.options },
365 |m: &mut Type| { &mut m.options },
366 ));
367 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::SourceContext>>(
368 "source_context",
369 |m: &Type| { &m.source_context },
370 |m: &mut Type| { &mut m.source_context },
371 ));
372 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Syntax>>(
373 "syntax",
374 |m: &Type| { &m.syntax },
375 |m: &mut Type| { &mut m.syntax },
376 ));
377 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Type>(
378 "Type",
379 fields,
380 file_descriptor_proto()
381 )
382 })
383 }
384 }
385
default_instance() -> &'static Type386 fn default_instance() -> &'static Type {
387 static mut instance: ::protobuf::lazy::Lazy<Type> = ::protobuf::lazy::Lazy::INIT;
388 unsafe {
389 instance.get(Type::new)
390 }
391 }
392 }
393
394 impl ::protobuf::Clear for Type {
clear(&mut self)395 fn clear(&mut self) {
396 self.name.clear();
397 self.fields.clear();
398 self.oneofs.clear();
399 self.options.clear();
400 self.source_context.clear();
401 self.syntax = Syntax::SYNTAX_PROTO2;
402 self.unknown_fields.clear();
403 }
404 }
405
406 impl ::std::fmt::Debug for Type {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result407 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
408 ::protobuf::text_format::fmt(self, f)
409 }
410 }
411
412 impl ::protobuf::reflect::ProtobufValue for Type {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef413 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
414 ::protobuf::reflect::ReflectValueRef::Message(self)
415 }
416 }
417
418 #[derive(PartialEq,Clone,Default)]
419 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
420 pub struct Field {
421 // message fields
422 pub kind: Field_Kind,
423 pub cardinality: Field_Cardinality,
424 pub number: i32,
425 pub name: ::std::string::String,
426 pub type_url: ::std::string::String,
427 pub oneof_index: i32,
428 pub packed: bool,
429 pub options: ::protobuf::RepeatedField<Option>,
430 pub json_name: ::std::string::String,
431 pub default_value: ::std::string::String,
432 // special fields
433 #[cfg_attr(feature = "with-serde", serde(skip))]
434 pub unknown_fields: ::protobuf::UnknownFields,
435 #[cfg_attr(feature = "with-serde", serde(skip))]
436 pub cached_size: ::protobuf::CachedSize,
437 }
438
439 impl<'a> ::std::default::Default for &'a Field {
default() -> &'a Field440 fn default() -> &'a Field {
441 <Field as ::protobuf::Message>::default_instance()
442 }
443 }
444
445 impl Field {
new() -> Field446 pub fn new() -> Field {
447 ::std::default::Default::default()
448 }
449
450 // .google.protobuf.Field.Kind kind = 1;
451
452
get_kind(&self) -> Field_Kind453 pub fn get_kind(&self) -> Field_Kind {
454 self.kind
455 }
clear_kind(&mut self)456 pub fn clear_kind(&mut self) {
457 self.kind = Field_Kind::TYPE_UNKNOWN;
458 }
459
460 // Param is passed by value, moved
set_kind(&mut self, v: Field_Kind)461 pub fn set_kind(&mut self, v: Field_Kind) {
462 self.kind = v;
463 }
464
465 // .google.protobuf.Field.Cardinality cardinality = 2;
466
467
get_cardinality(&self) -> Field_Cardinality468 pub fn get_cardinality(&self) -> Field_Cardinality {
469 self.cardinality
470 }
clear_cardinality(&mut self)471 pub fn clear_cardinality(&mut self) {
472 self.cardinality = Field_Cardinality::CARDINALITY_UNKNOWN;
473 }
474
475 // Param is passed by value, moved
set_cardinality(&mut self, v: Field_Cardinality)476 pub fn set_cardinality(&mut self, v: Field_Cardinality) {
477 self.cardinality = v;
478 }
479
480 // int32 number = 3;
481
482
get_number(&self) -> i32483 pub fn get_number(&self) -> i32 {
484 self.number
485 }
clear_number(&mut self)486 pub fn clear_number(&mut self) {
487 self.number = 0;
488 }
489
490 // Param is passed by value, moved
set_number(&mut self, v: i32)491 pub fn set_number(&mut self, v: i32) {
492 self.number = v;
493 }
494
495 // string name = 4;
496
497
get_name(&self) -> &str498 pub fn get_name(&self) -> &str {
499 &self.name
500 }
clear_name(&mut self)501 pub fn clear_name(&mut self) {
502 self.name.clear();
503 }
504
505 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)506 pub fn set_name(&mut self, v: ::std::string::String) {
507 self.name = v;
508 }
509
510 // Mutable pointer to the field.
511 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String512 pub fn mut_name(&mut self) -> &mut ::std::string::String {
513 &mut self.name
514 }
515
516 // Take field
take_name(&mut self) -> ::std::string::String517 pub fn take_name(&mut self) -> ::std::string::String {
518 ::std::mem::replace(&mut self.name, ::std::string::String::new())
519 }
520
521 // string type_url = 6;
522
523
get_type_url(&self) -> &str524 pub fn get_type_url(&self) -> &str {
525 &self.type_url
526 }
clear_type_url(&mut self)527 pub fn clear_type_url(&mut self) {
528 self.type_url.clear();
529 }
530
531 // Param is passed by value, moved
set_type_url(&mut self, v: ::std::string::String)532 pub fn set_type_url(&mut self, v: ::std::string::String) {
533 self.type_url = v;
534 }
535
536 // Mutable pointer to the field.
537 // If field is not initialized, it is initialized with default value first.
mut_type_url(&mut self) -> &mut ::std::string::String538 pub fn mut_type_url(&mut self) -> &mut ::std::string::String {
539 &mut self.type_url
540 }
541
542 // Take field
take_type_url(&mut self) -> ::std::string::String543 pub fn take_type_url(&mut self) -> ::std::string::String {
544 ::std::mem::replace(&mut self.type_url, ::std::string::String::new())
545 }
546
547 // int32 oneof_index = 7;
548
549
get_oneof_index(&self) -> i32550 pub fn get_oneof_index(&self) -> i32 {
551 self.oneof_index
552 }
clear_oneof_index(&mut self)553 pub fn clear_oneof_index(&mut self) {
554 self.oneof_index = 0;
555 }
556
557 // Param is passed by value, moved
set_oneof_index(&mut self, v: i32)558 pub fn set_oneof_index(&mut self, v: i32) {
559 self.oneof_index = v;
560 }
561
562 // bool packed = 8;
563
564
get_packed(&self) -> bool565 pub fn get_packed(&self) -> bool {
566 self.packed
567 }
clear_packed(&mut self)568 pub fn clear_packed(&mut self) {
569 self.packed = false;
570 }
571
572 // Param is passed by value, moved
set_packed(&mut self, v: bool)573 pub fn set_packed(&mut self, v: bool) {
574 self.packed = v;
575 }
576
577 // repeated .google.protobuf.Option options = 9;
578
579
get_options(&self) -> &[Option]580 pub fn get_options(&self) -> &[Option] {
581 &self.options
582 }
clear_options(&mut self)583 pub fn clear_options(&mut self) {
584 self.options.clear();
585 }
586
587 // Param is passed by value, moved
set_options(&mut self, v: ::protobuf::RepeatedField<Option>)588 pub fn set_options(&mut self, v: ::protobuf::RepeatedField<Option>) {
589 self.options = v;
590 }
591
592 // Mutable pointer to the field.
mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option>593 pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option> {
594 &mut self.options
595 }
596
597 // Take field
take_options(&mut self) -> ::protobuf::RepeatedField<Option>598 pub fn take_options(&mut self) -> ::protobuf::RepeatedField<Option> {
599 ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
600 }
601
602 // string json_name = 10;
603
604
get_json_name(&self) -> &str605 pub fn get_json_name(&self) -> &str {
606 &self.json_name
607 }
clear_json_name(&mut self)608 pub fn clear_json_name(&mut self) {
609 self.json_name.clear();
610 }
611
612 // Param is passed by value, moved
set_json_name(&mut self, v: ::std::string::String)613 pub fn set_json_name(&mut self, v: ::std::string::String) {
614 self.json_name = v;
615 }
616
617 // Mutable pointer to the field.
618 // If field is not initialized, it is initialized with default value first.
mut_json_name(&mut self) -> &mut ::std::string::String619 pub fn mut_json_name(&mut self) -> &mut ::std::string::String {
620 &mut self.json_name
621 }
622
623 // Take field
take_json_name(&mut self) -> ::std::string::String624 pub fn take_json_name(&mut self) -> ::std::string::String {
625 ::std::mem::replace(&mut self.json_name, ::std::string::String::new())
626 }
627
628 // string default_value = 11;
629
630
get_default_value(&self) -> &str631 pub fn get_default_value(&self) -> &str {
632 &self.default_value
633 }
clear_default_value(&mut self)634 pub fn clear_default_value(&mut self) {
635 self.default_value.clear();
636 }
637
638 // Param is passed by value, moved
set_default_value(&mut self, v: ::std::string::String)639 pub fn set_default_value(&mut self, v: ::std::string::String) {
640 self.default_value = v;
641 }
642
643 // Mutable pointer to the field.
644 // If field is not initialized, it is initialized with default value first.
mut_default_value(&mut self) -> &mut ::std::string::String645 pub fn mut_default_value(&mut self) -> &mut ::std::string::String {
646 &mut self.default_value
647 }
648
649 // Take field
take_default_value(&mut self) -> ::std::string::String650 pub fn take_default_value(&mut self) -> ::std::string::String {
651 ::std::mem::replace(&mut self.default_value, ::std::string::String::new())
652 }
653 }
654
655 impl ::protobuf::Message for Field {
is_initialized(&self) -> bool656 fn is_initialized(&self) -> bool {
657 for v in &self.options {
658 if !v.is_initialized() {
659 return false;
660 }
661 };
662 true
663 }
664
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>665 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
666 while !is.eof()? {
667 let (field_number, wire_type) = is.read_tag_unpack()?;
668 match field_number {
669 1 => {
670 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.kind, 1, &mut self.unknown_fields)?
671 },
672 2 => {
673 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.cardinality, 2, &mut self.unknown_fields)?
674 },
675 3 => {
676 if wire_type != ::protobuf::wire_format::WireTypeVarint {
677 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
678 }
679 let tmp = is.read_int32()?;
680 self.number = tmp;
681 },
682 4 => {
683 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
684 },
685 6 => {
686 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.type_url)?;
687 },
688 7 => {
689 if wire_type != ::protobuf::wire_format::WireTypeVarint {
690 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
691 }
692 let tmp = is.read_int32()?;
693 self.oneof_index = tmp;
694 },
695 8 => {
696 if wire_type != ::protobuf::wire_format::WireTypeVarint {
697 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
698 }
699 let tmp = is.read_bool()?;
700 self.packed = tmp;
701 },
702 9 => {
703 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
704 },
705 10 => {
706 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.json_name)?;
707 },
708 11 => {
709 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.default_value)?;
710 },
711 _ => {
712 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
713 },
714 };
715 }
716 ::std::result::Result::Ok(())
717 }
718
719 // Compute sizes of nested messages
720 #[allow(unused_variables)]
compute_size(&self) -> u32721 fn compute_size(&self) -> u32 {
722 let mut my_size = 0;
723 if self.kind != Field_Kind::TYPE_UNKNOWN {
724 my_size += ::protobuf::rt::enum_size(1, self.kind);
725 }
726 if self.cardinality != Field_Cardinality::CARDINALITY_UNKNOWN {
727 my_size += ::protobuf::rt::enum_size(2, self.cardinality);
728 }
729 if self.number != 0 {
730 my_size += ::protobuf::rt::value_size(3, self.number, ::protobuf::wire_format::WireTypeVarint);
731 }
732 if !self.name.is_empty() {
733 my_size += ::protobuf::rt::string_size(4, &self.name);
734 }
735 if !self.type_url.is_empty() {
736 my_size += ::protobuf::rt::string_size(6, &self.type_url);
737 }
738 if self.oneof_index != 0 {
739 my_size += ::protobuf::rt::value_size(7, self.oneof_index, ::protobuf::wire_format::WireTypeVarint);
740 }
741 if self.packed != false {
742 my_size += 2;
743 }
744 for value in &self.options {
745 let len = value.compute_size();
746 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
747 };
748 if !self.json_name.is_empty() {
749 my_size += ::protobuf::rt::string_size(10, &self.json_name);
750 }
751 if !self.default_value.is_empty() {
752 my_size += ::protobuf::rt::string_size(11, &self.default_value);
753 }
754 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
755 self.cached_size.set(my_size);
756 my_size
757 }
758
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>759 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
760 if self.kind != Field_Kind::TYPE_UNKNOWN {
761 os.write_enum(1, self.kind.value())?;
762 }
763 if self.cardinality != Field_Cardinality::CARDINALITY_UNKNOWN {
764 os.write_enum(2, self.cardinality.value())?;
765 }
766 if self.number != 0 {
767 os.write_int32(3, self.number)?;
768 }
769 if !self.name.is_empty() {
770 os.write_string(4, &self.name)?;
771 }
772 if !self.type_url.is_empty() {
773 os.write_string(6, &self.type_url)?;
774 }
775 if self.oneof_index != 0 {
776 os.write_int32(7, self.oneof_index)?;
777 }
778 if self.packed != false {
779 os.write_bool(8, self.packed)?;
780 }
781 for v in &self.options {
782 os.write_tag(9, ::protobuf::wire_format::WireTypeLengthDelimited)?;
783 os.write_raw_varint32(v.get_cached_size())?;
784 v.write_to_with_cached_sizes(os)?;
785 };
786 if !self.json_name.is_empty() {
787 os.write_string(10, &self.json_name)?;
788 }
789 if !self.default_value.is_empty() {
790 os.write_string(11, &self.default_value)?;
791 }
792 os.write_unknown_fields(self.get_unknown_fields())?;
793 ::std::result::Result::Ok(())
794 }
795
get_cached_size(&self) -> u32796 fn get_cached_size(&self) -> u32 {
797 self.cached_size.get()
798 }
799
get_unknown_fields(&self) -> &::protobuf::UnknownFields800 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
801 &self.unknown_fields
802 }
803
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields804 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
805 &mut self.unknown_fields
806 }
807
as_any(&self) -> &dyn (::std::any::Any)808 fn as_any(&self) -> &dyn (::std::any::Any) {
809 self as &dyn (::std::any::Any)
810 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)811 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
812 self as &mut dyn (::std::any::Any)
813 }
into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>814 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
815 self
816 }
817
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor818 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
819 Self::descriptor_static()
820 }
821
new() -> Field822 fn new() -> Field {
823 Field::new()
824 }
825
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor826 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
827 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
828 unsafe {
829 descriptor.get(|| {
830 let mut fields = ::std::vec::Vec::new();
831 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Field_Kind>>(
832 "kind",
833 |m: &Field| { &m.kind },
834 |m: &mut Field| { &mut m.kind },
835 ));
836 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Field_Cardinality>>(
837 "cardinality",
838 |m: &Field| { &m.cardinality },
839 |m: &mut Field| { &mut m.cardinality },
840 ));
841 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
842 "number",
843 |m: &Field| { &m.number },
844 |m: &mut Field| { &mut m.number },
845 ));
846 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
847 "name",
848 |m: &Field| { &m.name },
849 |m: &mut Field| { &mut m.name },
850 ));
851 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
852 "type_url",
853 |m: &Field| { &m.type_url },
854 |m: &mut Field| { &mut m.type_url },
855 ));
856 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
857 "oneof_index",
858 |m: &Field| { &m.oneof_index },
859 |m: &mut Field| { &mut m.oneof_index },
860 ));
861 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
862 "packed",
863 |m: &Field| { &m.packed },
864 |m: &mut Field| { &mut m.packed },
865 ));
866 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Option>>(
867 "options",
868 |m: &Field| { &m.options },
869 |m: &mut Field| { &mut m.options },
870 ));
871 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
872 "json_name",
873 |m: &Field| { &m.json_name },
874 |m: &mut Field| { &mut m.json_name },
875 ));
876 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
877 "default_value",
878 |m: &Field| { &m.default_value },
879 |m: &mut Field| { &mut m.default_value },
880 ));
881 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Field>(
882 "Field",
883 fields,
884 file_descriptor_proto()
885 )
886 })
887 }
888 }
889
default_instance() -> &'static Field890 fn default_instance() -> &'static Field {
891 static mut instance: ::protobuf::lazy::Lazy<Field> = ::protobuf::lazy::Lazy::INIT;
892 unsafe {
893 instance.get(Field::new)
894 }
895 }
896 }
897
898 impl ::protobuf::Clear for Field {
clear(&mut self)899 fn clear(&mut self) {
900 self.kind = Field_Kind::TYPE_UNKNOWN;
901 self.cardinality = Field_Cardinality::CARDINALITY_UNKNOWN;
902 self.number = 0;
903 self.name.clear();
904 self.type_url.clear();
905 self.oneof_index = 0;
906 self.packed = false;
907 self.options.clear();
908 self.json_name.clear();
909 self.default_value.clear();
910 self.unknown_fields.clear();
911 }
912 }
913
914 impl ::std::fmt::Debug for Field {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result915 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
916 ::protobuf::text_format::fmt(self, f)
917 }
918 }
919
920 impl ::protobuf::reflect::ProtobufValue for Field {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef921 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
922 ::protobuf::reflect::ReflectValueRef::Message(self)
923 }
924 }
925
926 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
927 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
928 pub enum Field_Kind {
929 TYPE_UNKNOWN = 0,
930 TYPE_DOUBLE = 1,
931 TYPE_FLOAT = 2,
932 TYPE_INT64 = 3,
933 TYPE_UINT64 = 4,
934 TYPE_INT32 = 5,
935 TYPE_FIXED64 = 6,
936 TYPE_FIXED32 = 7,
937 TYPE_BOOL = 8,
938 TYPE_STRING = 9,
939 TYPE_GROUP = 10,
940 TYPE_MESSAGE = 11,
941 TYPE_BYTES = 12,
942 TYPE_UINT32 = 13,
943 TYPE_ENUM = 14,
944 TYPE_SFIXED32 = 15,
945 TYPE_SFIXED64 = 16,
946 TYPE_SINT32 = 17,
947 TYPE_SINT64 = 18,
948 }
949
950 impl ::protobuf::ProtobufEnum for Field_Kind {
value(&self) -> i32951 fn value(&self) -> i32 {
952 *self as i32
953 }
954
from_i32(value: i32) -> ::std::option::Option<Field_Kind>955 fn from_i32(value: i32) -> ::std::option::Option<Field_Kind> {
956 match value {
957 0 => ::std::option::Option::Some(Field_Kind::TYPE_UNKNOWN),
958 1 => ::std::option::Option::Some(Field_Kind::TYPE_DOUBLE),
959 2 => ::std::option::Option::Some(Field_Kind::TYPE_FLOAT),
960 3 => ::std::option::Option::Some(Field_Kind::TYPE_INT64),
961 4 => ::std::option::Option::Some(Field_Kind::TYPE_UINT64),
962 5 => ::std::option::Option::Some(Field_Kind::TYPE_INT32),
963 6 => ::std::option::Option::Some(Field_Kind::TYPE_FIXED64),
964 7 => ::std::option::Option::Some(Field_Kind::TYPE_FIXED32),
965 8 => ::std::option::Option::Some(Field_Kind::TYPE_BOOL),
966 9 => ::std::option::Option::Some(Field_Kind::TYPE_STRING),
967 10 => ::std::option::Option::Some(Field_Kind::TYPE_GROUP),
968 11 => ::std::option::Option::Some(Field_Kind::TYPE_MESSAGE),
969 12 => ::std::option::Option::Some(Field_Kind::TYPE_BYTES),
970 13 => ::std::option::Option::Some(Field_Kind::TYPE_UINT32),
971 14 => ::std::option::Option::Some(Field_Kind::TYPE_ENUM),
972 15 => ::std::option::Option::Some(Field_Kind::TYPE_SFIXED32),
973 16 => ::std::option::Option::Some(Field_Kind::TYPE_SFIXED64),
974 17 => ::std::option::Option::Some(Field_Kind::TYPE_SINT32),
975 18 => ::std::option::Option::Some(Field_Kind::TYPE_SINT64),
976 _ => ::std::option::Option::None
977 }
978 }
979
values() -> &'static [Self]980 fn values() -> &'static [Self] {
981 static values: &'static [Field_Kind] = &[
982 Field_Kind::TYPE_UNKNOWN,
983 Field_Kind::TYPE_DOUBLE,
984 Field_Kind::TYPE_FLOAT,
985 Field_Kind::TYPE_INT64,
986 Field_Kind::TYPE_UINT64,
987 Field_Kind::TYPE_INT32,
988 Field_Kind::TYPE_FIXED64,
989 Field_Kind::TYPE_FIXED32,
990 Field_Kind::TYPE_BOOL,
991 Field_Kind::TYPE_STRING,
992 Field_Kind::TYPE_GROUP,
993 Field_Kind::TYPE_MESSAGE,
994 Field_Kind::TYPE_BYTES,
995 Field_Kind::TYPE_UINT32,
996 Field_Kind::TYPE_ENUM,
997 Field_Kind::TYPE_SFIXED32,
998 Field_Kind::TYPE_SFIXED64,
999 Field_Kind::TYPE_SINT32,
1000 Field_Kind::TYPE_SINT64,
1001 ];
1002 values
1003 }
1004
enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor1005 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1006 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
1007 unsafe {
1008 descriptor.get(|| {
1009 ::protobuf::reflect::EnumDescriptor::new_pb_name::<Field_Kind>("Field.Kind", file_descriptor_proto())
1010 })
1011 }
1012 }
1013 }
1014
1015 impl ::std::marker::Copy for Field_Kind {
1016 }
1017
1018 impl ::std::default::Default for Field_Kind {
default() -> Self1019 fn default() -> Self {
1020 Field_Kind::TYPE_UNKNOWN
1021 }
1022 }
1023
1024 impl ::protobuf::reflect::ProtobufValue for Field_Kind {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1025 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1026 ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor())
1027 }
1028 }
1029
1030 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
1031 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
1032 pub enum Field_Cardinality {
1033 CARDINALITY_UNKNOWN = 0,
1034 CARDINALITY_OPTIONAL = 1,
1035 CARDINALITY_REQUIRED = 2,
1036 CARDINALITY_REPEATED = 3,
1037 }
1038
1039 impl ::protobuf::ProtobufEnum for Field_Cardinality {
value(&self) -> i321040 fn value(&self) -> i32 {
1041 *self as i32
1042 }
1043
from_i32(value: i32) -> ::std::option::Option<Field_Cardinality>1044 fn from_i32(value: i32) -> ::std::option::Option<Field_Cardinality> {
1045 match value {
1046 0 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_UNKNOWN),
1047 1 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_OPTIONAL),
1048 2 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_REQUIRED),
1049 3 => ::std::option::Option::Some(Field_Cardinality::CARDINALITY_REPEATED),
1050 _ => ::std::option::Option::None
1051 }
1052 }
1053
values() -> &'static [Self]1054 fn values() -> &'static [Self] {
1055 static values: &'static [Field_Cardinality] = &[
1056 Field_Cardinality::CARDINALITY_UNKNOWN,
1057 Field_Cardinality::CARDINALITY_OPTIONAL,
1058 Field_Cardinality::CARDINALITY_REQUIRED,
1059 Field_Cardinality::CARDINALITY_REPEATED,
1060 ];
1061 values
1062 }
1063
enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor1064 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1065 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
1066 unsafe {
1067 descriptor.get(|| {
1068 ::protobuf::reflect::EnumDescriptor::new_pb_name::<Field_Cardinality>("Field.Cardinality", file_descriptor_proto())
1069 })
1070 }
1071 }
1072 }
1073
1074 impl ::std::marker::Copy for Field_Cardinality {
1075 }
1076
1077 impl ::std::default::Default for Field_Cardinality {
default() -> Self1078 fn default() -> Self {
1079 Field_Cardinality::CARDINALITY_UNKNOWN
1080 }
1081 }
1082
1083 impl ::protobuf::reflect::ProtobufValue for Field_Cardinality {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1084 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1085 ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor())
1086 }
1087 }
1088
1089 #[derive(PartialEq,Clone,Default)]
1090 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
1091 pub struct Enum {
1092 // message fields
1093 pub name: ::std::string::String,
1094 pub enumvalue: ::protobuf::RepeatedField<EnumValue>,
1095 pub options: ::protobuf::RepeatedField<Option>,
1096 pub source_context: ::protobuf::SingularPtrField<::protobuf::well_known_types::SourceContext>,
1097 pub syntax: Syntax,
1098 // special fields
1099 #[cfg_attr(feature = "with-serde", serde(skip))]
1100 pub unknown_fields: ::protobuf::UnknownFields,
1101 #[cfg_attr(feature = "with-serde", serde(skip))]
1102 pub cached_size: ::protobuf::CachedSize,
1103 }
1104
1105 impl<'a> ::std::default::Default for &'a Enum {
default() -> &'a Enum1106 fn default() -> &'a Enum {
1107 <Enum as ::protobuf::Message>::default_instance()
1108 }
1109 }
1110
1111 impl Enum {
new() -> Enum1112 pub fn new() -> Enum {
1113 ::std::default::Default::default()
1114 }
1115
1116 // string name = 1;
1117
1118
get_name(&self) -> &str1119 pub fn get_name(&self) -> &str {
1120 &self.name
1121 }
clear_name(&mut self)1122 pub fn clear_name(&mut self) {
1123 self.name.clear();
1124 }
1125
1126 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)1127 pub fn set_name(&mut self, v: ::std::string::String) {
1128 self.name = v;
1129 }
1130
1131 // Mutable pointer to the field.
1132 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String1133 pub fn mut_name(&mut self) -> &mut ::std::string::String {
1134 &mut self.name
1135 }
1136
1137 // Take field
take_name(&mut self) -> ::std::string::String1138 pub fn take_name(&mut self) -> ::std::string::String {
1139 ::std::mem::replace(&mut self.name, ::std::string::String::new())
1140 }
1141
1142 // repeated .google.protobuf.EnumValue enumvalue = 2;
1143
1144
get_enumvalue(&self) -> &[EnumValue]1145 pub fn get_enumvalue(&self) -> &[EnumValue] {
1146 &self.enumvalue
1147 }
clear_enumvalue(&mut self)1148 pub fn clear_enumvalue(&mut self) {
1149 self.enumvalue.clear();
1150 }
1151
1152 // Param is passed by value, moved
set_enumvalue(&mut self, v: ::protobuf::RepeatedField<EnumValue>)1153 pub fn set_enumvalue(&mut self, v: ::protobuf::RepeatedField<EnumValue>) {
1154 self.enumvalue = v;
1155 }
1156
1157 // Mutable pointer to the field.
mut_enumvalue(&mut self) -> &mut ::protobuf::RepeatedField<EnumValue>1158 pub fn mut_enumvalue(&mut self) -> &mut ::protobuf::RepeatedField<EnumValue> {
1159 &mut self.enumvalue
1160 }
1161
1162 // Take field
take_enumvalue(&mut self) -> ::protobuf::RepeatedField<EnumValue>1163 pub fn take_enumvalue(&mut self) -> ::protobuf::RepeatedField<EnumValue> {
1164 ::std::mem::replace(&mut self.enumvalue, ::protobuf::RepeatedField::new())
1165 }
1166
1167 // repeated .google.protobuf.Option options = 3;
1168
1169
get_options(&self) -> &[Option]1170 pub fn get_options(&self) -> &[Option] {
1171 &self.options
1172 }
clear_options(&mut self)1173 pub fn clear_options(&mut self) {
1174 self.options.clear();
1175 }
1176
1177 // Param is passed by value, moved
set_options(&mut self, v: ::protobuf::RepeatedField<Option>)1178 pub fn set_options(&mut self, v: ::protobuf::RepeatedField<Option>) {
1179 self.options = v;
1180 }
1181
1182 // Mutable pointer to the field.
mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option>1183 pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option> {
1184 &mut self.options
1185 }
1186
1187 // Take field
take_options(&mut self) -> ::protobuf::RepeatedField<Option>1188 pub fn take_options(&mut self) -> ::protobuf::RepeatedField<Option> {
1189 ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
1190 }
1191
1192 // .google.protobuf.SourceContext source_context = 4;
1193
1194
get_source_context(&self) -> &::protobuf::well_known_types::SourceContext1195 pub fn get_source_context(&self) -> &::protobuf::well_known_types::SourceContext {
1196 self.source_context.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::SourceContext::default_instance())
1197 }
clear_source_context(&mut self)1198 pub fn clear_source_context(&mut self) {
1199 self.source_context.clear();
1200 }
1201
has_source_context(&self) -> bool1202 pub fn has_source_context(&self) -> bool {
1203 self.source_context.is_some()
1204 }
1205
1206 // Param is passed by value, moved
set_source_context(&mut self, v: ::protobuf::well_known_types::SourceContext)1207 pub fn set_source_context(&mut self, v: ::protobuf::well_known_types::SourceContext) {
1208 self.source_context = ::protobuf::SingularPtrField::some(v);
1209 }
1210
1211 // Mutable pointer to the field.
1212 // If field is not initialized, it is initialized with default value first.
mut_source_context(&mut self) -> &mut ::protobuf::well_known_types::SourceContext1213 pub fn mut_source_context(&mut self) -> &mut ::protobuf::well_known_types::SourceContext {
1214 if self.source_context.is_none() {
1215 self.source_context.set_default();
1216 }
1217 self.source_context.as_mut().unwrap()
1218 }
1219
1220 // Take field
take_source_context(&mut self) -> ::protobuf::well_known_types::SourceContext1221 pub fn take_source_context(&mut self) -> ::protobuf::well_known_types::SourceContext {
1222 self.source_context.take().unwrap_or_else(|| ::protobuf::well_known_types::SourceContext::new())
1223 }
1224
1225 // .google.protobuf.Syntax syntax = 5;
1226
1227
get_syntax(&self) -> Syntax1228 pub fn get_syntax(&self) -> Syntax {
1229 self.syntax
1230 }
clear_syntax(&mut self)1231 pub fn clear_syntax(&mut self) {
1232 self.syntax = Syntax::SYNTAX_PROTO2;
1233 }
1234
1235 // Param is passed by value, moved
set_syntax(&mut self, v: Syntax)1236 pub fn set_syntax(&mut self, v: Syntax) {
1237 self.syntax = v;
1238 }
1239 }
1240
1241 impl ::protobuf::Message for Enum {
is_initialized(&self) -> bool1242 fn is_initialized(&self) -> bool {
1243 for v in &self.enumvalue {
1244 if !v.is_initialized() {
1245 return false;
1246 }
1247 };
1248 for v in &self.options {
1249 if !v.is_initialized() {
1250 return false;
1251 }
1252 };
1253 for v in &self.source_context {
1254 if !v.is_initialized() {
1255 return false;
1256 }
1257 };
1258 true
1259 }
1260
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1261 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1262 while !is.eof()? {
1263 let (field_number, wire_type) = is.read_tag_unpack()?;
1264 match field_number {
1265 1 => {
1266 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1267 },
1268 2 => {
1269 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.enumvalue)?;
1270 },
1271 3 => {
1272 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
1273 },
1274 4 => {
1275 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.source_context)?;
1276 },
1277 5 => {
1278 ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.syntax, 5, &mut self.unknown_fields)?
1279 },
1280 _ => {
1281 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1282 },
1283 };
1284 }
1285 ::std::result::Result::Ok(())
1286 }
1287
1288 // Compute sizes of nested messages
1289 #[allow(unused_variables)]
compute_size(&self) -> u321290 fn compute_size(&self) -> u32 {
1291 let mut my_size = 0;
1292 if !self.name.is_empty() {
1293 my_size += ::protobuf::rt::string_size(1, &self.name);
1294 }
1295 for value in &self.enumvalue {
1296 let len = value.compute_size();
1297 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1298 };
1299 for value in &self.options {
1300 let len = value.compute_size();
1301 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1302 };
1303 if let Some(ref v) = self.source_context.as_ref() {
1304 let len = v.compute_size();
1305 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1306 }
1307 if self.syntax != Syntax::SYNTAX_PROTO2 {
1308 my_size += ::protobuf::rt::enum_size(5, self.syntax);
1309 }
1310 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1311 self.cached_size.set(my_size);
1312 my_size
1313 }
1314
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1315 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1316 if !self.name.is_empty() {
1317 os.write_string(1, &self.name)?;
1318 }
1319 for v in &self.enumvalue {
1320 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1321 os.write_raw_varint32(v.get_cached_size())?;
1322 v.write_to_with_cached_sizes(os)?;
1323 };
1324 for v in &self.options {
1325 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1326 os.write_raw_varint32(v.get_cached_size())?;
1327 v.write_to_with_cached_sizes(os)?;
1328 };
1329 if let Some(ref v) = self.source_context.as_ref() {
1330 os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1331 os.write_raw_varint32(v.get_cached_size())?;
1332 v.write_to_with_cached_sizes(os)?;
1333 }
1334 if self.syntax != Syntax::SYNTAX_PROTO2 {
1335 os.write_enum(5, self.syntax.value())?;
1336 }
1337 os.write_unknown_fields(self.get_unknown_fields())?;
1338 ::std::result::Result::Ok(())
1339 }
1340
get_cached_size(&self) -> u321341 fn get_cached_size(&self) -> u32 {
1342 self.cached_size.get()
1343 }
1344
get_unknown_fields(&self) -> &::protobuf::UnknownFields1345 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1346 &self.unknown_fields
1347 }
1348
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1349 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1350 &mut self.unknown_fields
1351 }
1352
as_any(&self) -> &dyn (::std::any::Any)1353 fn as_any(&self) -> &dyn (::std::any::Any) {
1354 self as &dyn (::std::any::Any)
1355 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1356 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1357 self as &mut dyn (::std::any::Any)
1358 }
into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1359 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1360 self
1361 }
1362
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1363 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1364 Self::descriptor_static()
1365 }
1366
new() -> Enum1367 fn new() -> Enum {
1368 Enum::new()
1369 }
1370
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1371 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1372 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
1373 unsafe {
1374 descriptor.get(|| {
1375 let mut fields = ::std::vec::Vec::new();
1376 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1377 "name",
1378 |m: &Enum| { &m.name },
1379 |m: &mut Enum| { &mut m.name },
1380 ));
1381 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<EnumValue>>(
1382 "enumvalue",
1383 |m: &Enum| { &m.enumvalue },
1384 |m: &mut Enum| { &mut m.enumvalue },
1385 ));
1386 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Option>>(
1387 "options",
1388 |m: &Enum| { &m.options },
1389 |m: &mut Enum| { &mut m.options },
1390 ));
1391 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::SourceContext>>(
1392 "source_context",
1393 |m: &Enum| { &m.source_context },
1394 |m: &mut Enum| { &mut m.source_context },
1395 ));
1396 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Syntax>>(
1397 "syntax",
1398 |m: &Enum| { &m.syntax },
1399 |m: &mut Enum| { &mut m.syntax },
1400 ));
1401 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Enum>(
1402 "Enum",
1403 fields,
1404 file_descriptor_proto()
1405 )
1406 })
1407 }
1408 }
1409
default_instance() -> &'static Enum1410 fn default_instance() -> &'static Enum {
1411 static mut instance: ::protobuf::lazy::Lazy<Enum> = ::protobuf::lazy::Lazy::INIT;
1412 unsafe {
1413 instance.get(Enum::new)
1414 }
1415 }
1416 }
1417
1418 impl ::protobuf::Clear for Enum {
clear(&mut self)1419 fn clear(&mut self) {
1420 self.name.clear();
1421 self.enumvalue.clear();
1422 self.options.clear();
1423 self.source_context.clear();
1424 self.syntax = Syntax::SYNTAX_PROTO2;
1425 self.unknown_fields.clear();
1426 }
1427 }
1428
1429 impl ::std::fmt::Debug for Enum {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1430 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1431 ::protobuf::text_format::fmt(self, f)
1432 }
1433 }
1434
1435 impl ::protobuf::reflect::ProtobufValue for Enum {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1436 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1437 ::protobuf::reflect::ReflectValueRef::Message(self)
1438 }
1439 }
1440
1441 #[derive(PartialEq,Clone,Default)]
1442 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
1443 pub struct EnumValue {
1444 // message fields
1445 pub name: ::std::string::String,
1446 pub number: i32,
1447 pub options: ::protobuf::RepeatedField<Option>,
1448 // special fields
1449 #[cfg_attr(feature = "with-serde", serde(skip))]
1450 pub unknown_fields: ::protobuf::UnknownFields,
1451 #[cfg_attr(feature = "with-serde", serde(skip))]
1452 pub cached_size: ::protobuf::CachedSize,
1453 }
1454
1455 impl<'a> ::std::default::Default for &'a EnumValue {
default() -> &'a EnumValue1456 fn default() -> &'a EnumValue {
1457 <EnumValue as ::protobuf::Message>::default_instance()
1458 }
1459 }
1460
1461 impl EnumValue {
new() -> EnumValue1462 pub fn new() -> EnumValue {
1463 ::std::default::Default::default()
1464 }
1465
1466 // string name = 1;
1467
1468
get_name(&self) -> &str1469 pub fn get_name(&self) -> &str {
1470 &self.name
1471 }
clear_name(&mut self)1472 pub fn clear_name(&mut self) {
1473 self.name.clear();
1474 }
1475
1476 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)1477 pub fn set_name(&mut self, v: ::std::string::String) {
1478 self.name = v;
1479 }
1480
1481 // Mutable pointer to the field.
1482 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String1483 pub fn mut_name(&mut self) -> &mut ::std::string::String {
1484 &mut self.name
1485 }
1486
1487 // Take field
take_name(&mut self) -> ::std::string::String1488 pub fn take_name(&mut self) -> ::std::string::String {
1489 ::std::mem::replace(&mut self.name, ::std::string::String::new())
1490 }
1491
1492 // int32 number = 2;
1493
1494
get_number(&self) -> i321495 pub fn get_number(&self) -> i32 {
1496 self.number
1497 }
clear_number(&mut self)1498 pub fn clear_number(&mut self) {
1499 self.number = 0;
1500 }
1501
1502 // Param is passed by value, moved
set_number(&mut self, v: i32)1503 pub fn set_number(&mut self, v: i32) {
1504 self.number = v;
1505 }
1506
1507 // repeated .google.protobuf.Option options = 3;
1508
1509
get_options(&self) -> &[Option]1510 pub fn get_options(&self) -> &[Option] {
1511 &self.options
1512 }
clear_options(&mut self)1513 pub fn clear_options(&mut self) {
1514 self.options.clear();
1515 }
1516
1517 // Param is passed by value, moved
set_options(&mut self, v: ::protobuf::RepeatedField<Option>)1518 pub fn set_options(&mut self, v: ::protobuf::RepeatedField<Option>) {
1519 self.options = v;
1520 }
1521
1522 // Mutable pointer to the field.
mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option>1523 pub fn mut_options(&mut self) -> &mut ::protobuf::RepeatedField<Option> {
1524 &mut self.options
1525 }
1526
1527 // Take field
take_options(&mut self) -> ::protobuf::RepeatedField<Option>1528 pub fn take_options(&mut self) -> ::protobuf::RepeatedField<Option> {
1529 ::std::mem::replace(&mut self.options, ::protobuf::RepeatedField::new())
1530 }
1531 }
1532
1533 impl ::protobuf::Message for EnumValue {
is_initialized(&self) -> bool1534 fn is_initialized(&self) -> bool {
1535 for v in &self.options {
1536 if !v.is_initialized() {
1537 return false;
1538 }
1539 };
1540 true
1541 }
1542
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1543 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1544 while !is.eof()? {
1545 let (field_number, wire_type) = is.read_tag_unpack()?;
1546 match field_number {
1547 1 => {
1548 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1549 },
1550 2 => {
1551 if wire_type != ::protobuf::wire_format::WireTypeVarint {
1552 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1553 }
1554 let tmp = is.read_int32()?;
1555 self.number = tmp;
1556 },
1557 3 => {
1558 ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.options)?;
1559 },
1560 _ => {
1561 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1562 },
1563 };
1564 }
1565 ::std::result::Result::Ok(())
1566 }
1567
1568 // Compute sizes of nested messages
1569 #[allow(unused_variables)]
compute_size(&self) -> u321570 fn compute_size(&self) -> u32 {
1571 let mut my_size = 0;
1572 if !self.name.is_empty() {
1573 my_size += ::protobuf::rt::string_size(1, &self.name);
1574 }
1575 if self.number != 0 {
1576 my_size += ::protobuf::rt::value_size(2, self.number, ::protobuf::wire_format::WireTypeVarint);
1577 }
1578 for value in &self.options {
1579 let len = value.compute_size();
1580 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1581 };
1582 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1583 self.cached_size.set(my_size);
1584 my_size
1585 }
1586
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1587 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1588 if !self.name.is_empty() {
1589 os.write_string(1, &self.name)?;
1590 }
1591 if self.number != 0 {
1592 os.write_int32(2, self.number)?;
1593 }
1594 for v in &self.options {
1595 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1596 os.write_raw_varint32(v.get_cached_size())?;
1597 v.write_to_with_cached_sizes(os)?;
1598 };
1599 os.write_unknown_fields(self.get_unknown_fields())?;
1600 ::std::result::Result::Ok(())
1601 }
1602
get_cached_size(&self) -> u321603 fn get_cached_size(&self) -> u32 {
1604 self.cached_size.get()
1605 }
1606
get_unknown_fields(&self) -> &::protobuf::UnknownFields1607 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1608 &self.unknown_fields
1609 }
1610
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1611 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1612 &mut self.unknown_fields
1613 }
1614
as_any(&self) -> &dyn (::std::any::Any)1615 fn as_any(&self) -> &dyn (::std::any::Any) {
1616 self as &dyn (::std::any::Any)
1617 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1618 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1619 self as &mut dyn (::std::any::Any)
1620 }
into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1621 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1622 self
1623 }
1624
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1625 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1626 Self::descriptor_static()
1627 }
1628
new() -> EnumValue1629 fn new() -> EnumValue {
1630 EnumValue::new()
1631 }
1632
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1633 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1634 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
1635 unsafe {
1636 descriptor.get(|| {
1637 let mut fields = ::std::vec::Vec::new();
1638 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1639 "name",
1640 |m: &EnumValue| { &m.name },
1641 |m: &mut EnumValue| { &mut m.name },
1642 ));
1643 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
1644 "number",
1645 |m: &EnumValue| { &m.number },
1646 |m: &mut EnumValue| { &mut m.number },
1647 ));
1648 fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Option>>(
1649 "options",
1650 |m: &EnumValue| { &m.options },
1651 |m: &mut EnumValue| { &mut m.options },
1652 ));
1653 ::protobuf::reflect::MessageDescriptor::new_pb_name::<EnumValue>(
1654 "EnumValue",
1655 fields,
1656 file_descriptor_proto()
1657 )
1658 })
1659 }
1660 }
1661
default_instance() -> &'static EnumValue1662 fn default_instance() -> &'static EnumValue {
1663 static mut instance: ::protobuf::lazy::Lazy<EnumValue> = ::protobuf::lazy::Lazy::INIT;
1664 unsafe {
1665 instance.get(EnumValue::new)
1666 }
1667 }
1668 }
1669
1670 impl ::protobuf::Clear for EnumValue {
clear(&mut self)1671 fn clear(&mut self) {
1672 self.name.clear();
1673 self.number = 0;
1674 self.options.clear();
1675 self.unknown_fields.clear();
1676 }
1677 }
1678
1679 impl ::std::fmt::Debug for EnumValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1680 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1681 ::protobuf::text_format::fmt(self, f)
1682 }
1683 }
1684
1685 impl ::protobuf::reflect::ProtobufValue for EnumValue {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1686 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1687 ::protobuf::reflect::ReflectValueRef::Message(self)
1688 }
1689 }
1690
1691 #[derive(PartialEq,Clone,Default)]
1692 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
1693 pub struct Option {
1694 // message fields
1695 pub name: ::std::string::String,
1696 pub value: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>,
1697 // special fields
1698 #[cfg_attr(feature = "with-serde", serde(skip))]
1699 pub unknown_fields: ::protobuf::UnknownFields,
1700 #[cfg_attr(feature = "with-serde", serde(skip))]
1701 pub cached_size: ::protobuf::CachedSize,
1702 }
1703
1704 impl<'a> ::std::default::Default for &'a Option {
default() -> &'a Option1705 fn default() -> &'a Option {
1706 <Option as ::protobuf::Message>::default_instance()
1707 }
1708 }
1709
1710 impl Option {
new() -> Option1711 pub fn new() -> Option {
1712 ::std::default::Default::default()
1713 }
1714
1715 // string name = 1;
1716
1717
get_name(&self) -> &str1718 pub fn get_name(&self) -> &str {
1719 &self.name
1720 }
clear_name(&mut self)1721 pub fn clear_name(&mut self) {
1722 self.name.clear();
1723 }
1724
1725 // Param is passed by value, moved
set_name(&mut self, v: ::std::string::String)1726 pub fn set_name(&mut self, v: ::std::string::String) {
1727 self.name = v;
1728 }
1729
1730 // Mutable pointer to the field.
1731 // If field is not initialized, it is initialized with default value first.
mut_name(&mut self) -> &mut ::std::string::String1732 pub fn mut_name(&mut self) -> &mut ::std::string::String {
1733 &mut self.name
1734 }
1735
1736 // Take field
take_name(&mut self) -> ::std::string::String1737 pub fn take_name(&mut self) -> ::std::string::String {
1738 ::std::mem::replace(&mut self.name, ::std::string::String::new())
1739 }
1740
1741 // .google.protobuf.Any value = 2;
1742
1743
get_value(&self) -> &::protobuf::well_known_types::Any1744 pub fn get_value(&self) -> &::protobuf::well_known_types::Any {
1745 self.value.as_ref().unwrap_or_else(|| ::protobuf::well_known_types::Any::default_instance())
1746 }
clear_value(&mut self)1747 pub fn clear_value(&mut self) {
1748 self.value.clear();
1749 }
1750
has_value(&self) -> bool1751 pub fn has_value(&self) -> bool {
1752 self.value.is_some()
1753 }
1754
1755 // Param is passed by value, moved
set_value(&mut self, v: ::protobuf::well_known_types::Any)1756 pub fn set_value(&mut self, v: ::protobuf::well_known_types::Any) {
1757 self.value = ::protobuf::SingularPtrField::some(v);
1758 }
1759
1760 // Mutable pointer to the field.
1761 // If field is not initialized, it is initialized with default value first.
mut_value(&mut self) -> &mut ::protobuf::well_known_types::Any1762 pub fn mut_value(&mut self) -> &mut ::protobuf::well_known_types::Any {
1763 if self.value.is_none() {
1764 self.value.set_default();
1765 }
1766 self.value.as_mut().unwrap()
1767 }
1768
1769 // Take field
take_value(&mut self) -> ::protobuf::well_known_types::Any1770 pub fn take_value(&mut self) -> ::protobuf::well_known_types::Any {
1771 self.value.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new())
1772 }
1773 }
1774
1775 impl ::protobuf::Message for Option {
is_initialized(&self) -> bool1776 fn is_initialized(&self) -> bool {
1777 for v in &self.value {
1778 if !v.is_initialized() {
1779 return false;
1780 }
1781 };
1782 true
1783 }
1784
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()>1785 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1786 while !is.eof()? {
1787 let (field_number, wire_type) = is.read_tag_unpack()?;
1788 match field_number {
1789 1 => {
1790 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.name)?;
1791 },
1792 2 => {
1793 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.value)?;
1794 },
1795 _ => {
1796 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1797 },
1798 };
1799 }
1800 ::std::result::Result::Ok(())
1801 }
1802
1803 // Compute sizes of nested messages
1804 #[allow(unused_variables)]
compute_size(&self) -> u321805 fn compute_size(&self) -> u32 {
1806 let mut my_size = 0;
1807 if !self.name.is_empty() {
1808 my_size += ::protobuf::rt::string_size(1, &self.name);
1809 }
1810 if let Some(ref v) = self.value.as_ref() {
1811 let len = v.compute_size();
1812 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1813 }
1814 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1815 self.cached_size.set(my_size);
1816 my_size
1817 }
1818
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()>1819 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1820 if !self.name.is_empty() {
1821 os.write_string(1, &self.name)?;
1822 }
1823 if let Some(ref v) = self.value.as_ref() {
1824 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1825 os.write_raw_varint32(v.get_cached_size())?;
1826 v.write_to_with_cached_sizes(os)?;
1827 }
1828 os.write_unknown_fields(self.get_unknown_fields())?;
1829 ::std::result::Result::Ok(())
1830 }
1831
get_cached_size(&self) -> u321832 fn get_cached_size(&self) -> u32 {
1833 self.cached_size.get()
1834 }
1835
get_unknown_fields(&self) -> &::protobuf::UnknownFields1836 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1837 &self.unknown_fields
1838 }
1839
mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields1840 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1841 &mut self.unknown_fields
1842 }
1843
as_any(&self) -> &dyn (::std::any::Any)1844 fn as_any(&self) -> &dyn (::std::any::Any) {
1845 self as &dyn (::std::any::Any)
1846 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1847 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1848 self as &mut dyn (::std::any::Any)
1849 }
into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1850 fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1851 self
1852 }
1853
descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor1854 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1855 Self::descriptor_static()
1856 }
1857
new() -> Option1858 fn new() -> Option {
1859 Option::new()
1860 }
1861
descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor1862 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1863 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy::INIT;
1864 unsafe {
1865 descriptor.get(|| {
1866 let mut fields = ::std::vec::Vec::new();
1867 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1868 "name",
1869 |m: &Option| { &m.name },
1870 |m: &mut Option| { &mut m.name },
1871 ));
1872 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>(
1873 "value",
1874 |m: &Option| { &m.value },
1875 |m: &mut Option| { &mut m.value },
1876 ));
1877 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Option>(
1878 "Option",
1879 fields,
1880 file_descriptor_proto()
1881 )
1882 })
1883 }
1884 }
1885
default_instance() -> &'static Option1886 fn default_instance() -> &'static Option {
1887 static mut instance: ::protobuf::lazy::Lazy<Option> = ::protobuf::lazy::Lazy::INIT;
1888 unsafe {
1889 instance.get(Option::new)
1890 }
1891 }
1892 }
1893
1894 impl ::protobuf::Clear for Option {
clear(&mut self)1895 fn clear(&mut self) {
1896 self.name.clear();
1897 self.value.clear();
1898 self.unknown_fields.clear();
1899 }
1900 }
1901
1902 impl ::std::fmt::Debug for Option {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1903 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1904 ::protobuf::text_format::fmt(self, f)
1905 }
1906 }
1907
1908 impl ::protobuf::reflect::ProtobufValue for Option {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1909 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1910 ::protobuf::reflect::ReflectValueRef::Message(self)
1911 }
1912 }
1913
1914 #[derive(Clone,PartialEq,Eq,Debug,Hash)]
1915 #[cfg_attr(feature = "with-serde", derive(Serialize, Deserialize))]
1916 pub enum Syntax {
1917 SYNTAX_PROTO2 = 0,
1918 SYNTAX_PROTO3 = 1,
1919 }
1920
1921 impl ::protobuf::ProtobufEnum for Syntax {
value(&self) -> i321922 fn value(&self) -> i32 {
1923 *self as i32
1924 }
1925
from_i32(value: i32) -> ::std::option::Option<Syntax>1926 fn from_i32(value: i32) -> ::std::option::Option<Syntax> {
1927 match value {
1928 0 => ::std::option::Option::Some(Syntax::SYNTAX_PROTO2),
1929 1 => ::std::option::Option::Some(Syntax::SYNTAX_PROTO3),
1930 _ => ::std::option::Option::None
1931 }
1932 }
1933
values() -> &'static [Self]1934 fn values() -> &'static [Self] {
1935 static values: &'static [Syntax] = &[
1936 Syntax::SYNTAX_PROTO2,
1937 Syntax::SYNTAX_PROTO3,
1938 ];
1939 values
1940 }
1941
enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor1942 fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1943 static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy::INIT;
1944 unsafe {
1945 descriptor.get(|| {
1946 ::protobuf::reflect::EnumDescriptor::new_pb_name::<Syntax>("Syntax", file_descriptor_proto())
1947 })
1948 }
1949 }
1950 }
1951
1952 impl ::std::marker::Copy for Syntax {
1953 }
1954
1955 impl ::std::default::Default for Syntax {
default() -> Self1956 fn default() -> Self {
1957 Syntax::SYNTAX_PROTO2
1958 }
1959 }
1960
1961 impl ::protobuf::reflect::ProtobufValue for Syntax {
as_ref(&self) -> ::protobuf::reflect::ReflectValueRef1962 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1963 ::protobuf::reflect::ReflectValueRef::Enum(self.descriptor())
1964 }
1965 }
1966
1967 static file_descriptor_proto_data: &'static [u8] = b"\
1968 \n\x1agoogle/protobuf/type.proto\x12\x0fgoogle.protobuf\x1a\x19google/pr\
1969 otobuf/any.proto\x1a$google/protobuf/source_context.proto\"\x8d\x02\n\
1970 \x04Type\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12.\n\x06fields\
1971 \x18\x02\x20\x03(\x0b2\x16.google.protobuf.FieldR\x06fields\x12\x16\n\
1972 \x06oneofs\x18\x03\x20\x03(\tR\x06oneofs\x121\n\x07options\x18\x04\x20\
1973 \x03(\x0b2\x17.google.protobuf.OptionR\x07options\x12E\n\x0esource_conte\
1974 xt\x18\x05\x20\x01(\x0b2\x1e.google.protobuf.SourceContextR\rsourceConte\
1975 xt\x12/\n\x06syntax\x18\x06\x20\x01(\x0e2\x17.google.protobuf.SyntaxR\
1976 \x06syntax\"\xb4\x06\n\x05Field\x12/\n\x04kind\x18\x01\x20\x01(\x0e2\x1b\
1977 .google.protobuf.Field.KindR\x04kind\x12D\n\x0bcardinality\x18\x02\x20\
1978 \x01(\x0e2\".google.protobuf.Field.CardinalityR\x0bcardinality\x12\x16\n\
1979 \x06number\x18\x03\x20\x01(\x05R\x06number\x12\x12\n\x04name\x18\x04\x20\
1980 \x01(\tR\x04name\x12\x19\n\x08type_url\x18\x06\x20\x01(\tR\x07typeUrl\
1981 \x12\x1f\n\x0boneof_index\x18\x07\x20\x01(\x05R\noneofIndex\x12\x16\n\
1982 \x06packed\x18\x08\x20\x01(\x08R\x06packed\x121\n\x07options\x18\t\x20\
1983 \x03(\x0b2\x17.google.protobuf.OptionR\x07options\x12\x1b\n\tjson_name\
1984 \x18\n\x20\x01(\tR\x08jsonName\x12#\n\rdefault_value\x18\x0b\x20\x01(\tR\
1985 \x0cdefaultValue\"\xc8\x02\n\x04Kind\x12\x10\n\x0cTYPE_UNKNOWN\x10\0\x12\
1986 \x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nT\
1987 YPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\
1988 \x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\
1989 \x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\
1990 \nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYT\
1991 ES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\
1992 \x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\
1993 \x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"t\n\x0bCardina\
1994 lity\x12\x17\n\x13CARDINALITY_UNKNOWN\x10\0\x12\x18\n\x14CARDINALITY_OPT\
1995 IONAL\x10\x01\x12\x18\n\x14CARDINALITY_REQUIRED\x10\x02\x12\x18\n\x14CAR\
1996 DINALITY_REPEATED\x10\x03\"\xff\x01\n\x04Enum\x12\x12\n\x04name\x18\x01\
1997 \x20\x01(\tR\x04name\x128\n\tenumvalue\x18\x02\x20\x03(\x0b2\x1a.google.\
1998 protobuf.EnumValueR\tenumvalue\x121\n\x07options\x18\x03\x20\x03(\x0b2\
1999 \x17.google.protobuf.OptionR\x07options\x12E\n\x0esource_context\x18\x04\
2000 \x20\x01(\x0b2\x1e.google.protobuf.SourceContextR\rsourceContext\x12/\n\
2001 \x06syntax\x18\x05\x20\x01(\x0e2\x17.google.protobuf.SyntaxR\x06syntax\"\
2002 j\n\tEnumValue\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\x12\x16\n\
2003 \x06number\x18\x02\x20\x01(\x05R\x06number\x121\n\x07options\x18\x03\x20\
2004 \x03(\x0b2\x17.google.protobuf.OptionR\x07options\"H\n\x06Option\x12\x12\
2005 \n\x04name\x18\x01\x20\x01(\tR\x04name\x12*\n\x05value\x18\x02\x20\x01(\
2006 \x0b2\x14.google.protobuf.AnyR\x05value*.\n\x06Syntax\x12\x11\n\rSYNTAX_\
2007 PROTO2\x10\0\x12\x11\n\rSYNTAX_PROTO3\x10\x01BL\n\x13com.google.protobuf\
2008 B\tTypeProtoP\x01\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.\
2009 WellKnownTypesJ\x9a5\n\x07\x12\x05\x1e\0\xb3\x01\x01\n\xcc\x0c\n\x01\x0c\
2010 \x12\x03\x1e\0\x122\xc1\x0c\x20Protocol\x20Buffers\x20-\x20Google's\x20d\
2011 ata\x20interchange\x20format\n\x20Copyright\x202008\x20Google\x20Inc.\
2012 \x20\x20All\x20rights\x20reserved.\n\x20https://developers.google.com/pr\
2013 otocol-buffers/\n\n\x20Redistribution\x20and\x20use\x20in\x20source\x20a\
2014 nd\x20binary\x20forms,\x20with\x20or\x20without\n\x20modification,\x20ar\
2015 e\x20permitted\x20provided\x20that\x20the\x20following\x20conditions\x20\
2016 are\n\x20met:\n\n\x20\x20\x20\x20\x20*\x20Redistributions\x20of\x20sourc\
2017 e\x20code\x20must\x20retain\x20the\x20above\x20copyright\n\x20notice,\
2018 \x20this\x20list\x20of\x20conditions\x20and\x20the\x20following\x20discl\
2019 aimer.\n\x20\x20\x20\x20\x20*\x20Redistributions\x20in\x20binary\x20form\
2020 \x20must\x20reproduce\x20the\x20above\n\x20copyright\x20notice,\x20this\
2021 \x20list\x20of\x20conditions\x20and\x20the\x20following\x20disclaimer\n\
2022 \x20in\x20the\x20documentation\x20and/or\x20other\x20materials\x20provid\
2023 ed\x20with\x20the\n\x20distribution.\n\x20\x20\x20\x20\x20*\x20Neither\
2024 \x20the\x20name\x20of\x20Google\x20Inc.\x20nor\x20the\x20names\x20of\x20\
2025 its\n\x20contributors\x20may\x20be\x20used\x20to\x20endorse\x20or\x20pro\
2026 mote\x20products\x20derived\x20from\n\x20this\x20software\x20without\x20\
2027 specific\x20prior\x20written\x20permission.\n\n\x20THIS\x20SOFTWARE\x20I\
2028 S\x20PROVIDED\x20BY\x20THE\x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTOR\
2029 S\n\x20\"AS\x20IS\"\x20AND\x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANT\
2030 IES,\x20INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\
2031 \x20WARRANTIES\x20OF\x20MERCHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\
2032 \x20PARTICULAR\x20PURPOSE\x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20\
2033 SHALL\x20THE\x20COPYRIGHT\n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIAB\
2034 LE\x20FOR\x20ANY\x20DIRECT,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\
2035 \x20EXEMPLARY,\x20OR\x20CONSEQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\
2036 \x20NOT\n\x20LIMITED\x20TO,\x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\
2037 \x20OR\x20SERVICES;\x20LOSS\x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\
2038 \x20OR\x20BUSINESS\x20INTERRUPTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\
2039 \x20ANY\n\x20THEORY\x20OF\x20LIABILITY,\x20WHETHER\x20IN\x20CONTRACT,\
2040 \x20STRICT\x20LIABILITY,\x20OR\x20TORT\n\x20(INCLUDING\x20NEGLIGENCE\x20\
2041 OR\x20OTHERWISE)\x20ARISING\x20IN\x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20U\
2042 SE\n\x20OF\x20THIS\x20SOFTWARE,\x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\
2043 \x20POSSIBILITY\x20OF\x20SUCH\x20DAMAGE.\n\n\x08\n\x01\x02\x12\x03\x20\0\
2044 \x18\n\t\n\x02\x03\0\x12\x03\"\0#\n\t\n\x02\x03\x01\x12\x03#\0.\n\x08\n\
2045 \x01\x08\x12\x03%\0;\n\t\n\x02\x08%\x12\x03%\0;\n\x08\n\x01\x08\x12\x03&\
2046 \0\x1f\n\t\n\x02\x08\x1f\x12\x03&\0\x1f\n\x08\n\x01\x08\x12\x03'\0,\n\t\
2047 \n\x02\x08\x01\x12\x03'\0,\n\x08\n\x01\x08\x12\x03(\0*\n\t\n\x02\x08\x08\
2048 \x12\x03(\0*\n\x08\n\x01\x08\x12\x03)\0\"\n\t\n\x02\x08\n\x12\x03)\0\"\n\
2049 \x08\n\x01\x08\x12\x03*\0!\n\t\n\x02\x08$\x12\x03*\0!\n-\n\x02\x04\0\x12\
2050 \x04-\0:\x01\x1a!\x20A\x20protocol\x20buffer\x20message\x20type.\n\n\n\n\
2051 \x03\x04\0\x01\x12\x03-\x08\x0c\n0\n\x04\x04\0\x02\0\x12\x03/\x02\x12\
2052 \x1a#\x20The\x20fully\x20qualified\x20message\x20name.\n\n\x0c\n\x05\x04\
2053 \0\x02\0\x05\x12\x03/\x02\x08\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03/\t\r\n\
2054 \x0c\n\x05\x04\0\x02\0\x03\x12\x03/\x10\x11\n\"\n\x04\x04\0\x02\x01\x12\
2055 \x031\x02\x1c\x1a\x15\x20The\x20list\x20of\x20fields.\n\n\x0c\n\x05\x04\
2056 \0\x02\x01\x04\x12\x031\x02\n\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x031\x0b\
2057 \x10\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x031\x11\x17\n\x0c\n\x05\x04\0\
2058 \x02\x01\x03\x12\x031\x1a\x1b\nO\n\x04\x04\0\x02\x02\x12\x033\x02\x1d\
2059 \x1aB\x20The\x20list\x20of\x20types\x20appearing\x20in\x20`oneof`\x20def\
2060 initions\x20in\x20this\x20type.\n\n\x0c\n\x05\x04\0\x02\x02\x04\x12\x033\
2061 \x02\n\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x033\x0b\x11\n\x0c\n\x05\x04\0\
2062 \x02\x02\x01\x12\x033\x12\x18\n\x0c\n\x05\x04\0\x02\x02\x03\x12\x033\x1b\
2063 \x1c\n+\n\x04\x04\0\x02\x03\x12\x035\x02\x1e\x1a\x1e\x20The\x20protocol\
2064 \x20buffer\x20options.\n\n\x0c\n\x05\x04\0\x02\x03\x04\x12\x035\x02\n\n\
2065 \x0c\n\x05\x04\0\x02\x03\x06\x12\x035\x0b\x11\n\x0c\n\x05\x04\0\x02\x03\
2066 \x01\x12\x035\x12\x19\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x035\x1c\x1d\n\"\
2067 \n\x04\x04\0\x02\x04\x12\x037\x02#\x1a\x15\x20The\x20source\x20context.\
2068 \n\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x037\x02\x0f\n\x0c\n\x05\x04\0\x02\
2069 \x04\x01\x12\x037\x10\x1e\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x037!\"\n!\n\
2070 \x04\x04\0\x02\x05\x12\x039\x02\x14\x1a\x14\x20The\x20source\x20syntax.\
2071 \n\n\x0c\n\x05\x04\0\x02\x05\x06\x12\x039\x02\x08\n\x0c\n\x05\x04\0\x02\
2072 \x05\x01\x12\x039\t\x0f\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x039\x12\x13\n\
2073 0\n\x02\x04\x01\x12\x05=\0\x8a\x01\x01\x1a#\x20A\x20single\x20field\x20o\
2074 f\x20a\x20message\x20type.\n\n\n\n\x03\x04\x01\x01\x12\x03=\x08\r\n\"\n\
2075 \x04\x04\x01\x04\0\x12\x04?\x02f\x03\x1a\x14\x20Basic\x20field\x20types.\
2076 \n\n\x0c\n\x05\x04\x01\x04\0\x01\x12\x03?\x07\x0b\n$\n\x06\x04\x01\x04\0\
2077 \x02\0\x12\x03A\x04\x1c\x1a\x15\x20Field\x20type\x20unknown.\n\n\x0e\n\
2078 \x07\x04\x01\x04\0\x02\0\x01\x12\x03A\x04\x10\n\x0e\n\x07\x04\x01\x04\0\
2079 \x02\0\x02\x12\x03A\x1a\x1b\n#\n\x06\x04\x01\x04\0\x02\x01\x12\x03C\x04\
2080 \x1c\x1a\x14\x20Field\x20type\x20double.\n\n\x0e\n\x07\x04\x01\x04\0\x02\
2081 \x01\x01\x12\x03C\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x01\x02\x12\x03C\
2082 \x1a\x1b\n\"\n\x06\x04\x01\x04\0\x02\x02\x12\x03E\x04\x1c\x1a\x13\x20Fie\
2083 ld\x20type\x20float.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x01\x12\x03E\
2084 \x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x02\x02\x12\x03E\x1a\x1b\n\"\n\
2085 \x06\x04\x01\x04\0\x02\x03\x12\x03G\x04\x1c\x1a\x13\x20Field\x20type\x20\
2086 int64.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x03\x01\x12\x03G\x04\x0e\n\x0e\n\
2087 \x07\x04\x01\x04\0\x02\x03\x02\x12\x03G\x1a\x1b\n#\n\x06\x04\x01\x04\0\
2088 \x02\x04\x12\x03I\x04\x1c\x1a\x14\x20Field\x20type\x20uint64.\n\n\x0e\n\
2089 \x07\x04\x01\x04\0\x02\x04\x01\x12\x03I\x04\x0f\n\x0e\n\x07\x04\x01\x04\
2090 \0\x02\x04\x02\x12\x03I\x1a\x1b\n\"\n\x06\x04\x01\x04\0\x02\x05\x12\x03K\
2091 \x04\x1c\x1a\x13\x20Field\x20type\x20int32.\n\n\x0e\n\x07\x04\x01\x04\0\
2092 \x02\x05\x01\x12\x03K\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x05\x02\x12\
2093 \x03K\x1a\x1b\n$\n\x06\x04\x01\x04\0\x02\x06\x12\x03M\x04\x1c\x1a\x15\
2094 \x20Field\x20type\x20fixed64.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x06\x01\
2095 \x12\x03M\x04\x10\n\x0e\n\x07\x04\x01\x04\0\x02\x06\x02\x12\x03M\x1a\x1b\
2096 \n$\n\x06\x04\x01\x04\0\x02\x07\x12\x03O\x04\x1c\x1a\x15\x20Field\x20typ\
2097 e\x20fixed32.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x07\x01\x12\x03O\x04\x10\n\
2098 \x0e\n\x07\x04\x01\x04\0\x02\x07\x02\x12\x03O\x1a\x1b\n!\n\x06\x04\x01\
2099 \x04\0\x02\x08\x12\x03Q\x04\x1c\x1a\x12\x20Field\x20type\x20bool.\n\n\
2100 \x0e\n\x07\x04\x01\x04\0\x02\x08\x01\x12\x03Q\x04\r\n\x0e\n\x07\x04\x01\
2101 \x04\0\x02\x08\x02\x12\x03Q\x1a\x1b\n#\n\x06\x04\x01\x04\0\x02\t\x12\x03\
2102 S\x04\x1c\x1a\x14\x20Field\x20type\x20string.\n\n\x0e\n\x07\x04\x01\x04\
2103 \0\x02\t\x01\x12\x03S\x04\x0f\n\x0e\n\x07\x04\x01\x04\0\x02\t\x02\x12\
2104 \x03S\x1a\x1b\nF\n\x06\x04\x01\x04\0\x02\n\x12\x03U\x04\x1d\x1a7\x20Fiel\
2105 d\x20type\x20group.\x20Proto2\x20syntax\x20only,\x20and\x20deprecated.\n\
2106 \n\x0e\n\x07\x04\x01\x04\0\x02\n\x01\x12\x03U\x04\x0e\n\x0e\n\x07\x04\
2107 \x01\x04\0\x02\n\x02\x12\x03U\x1a\x1c\n$\n\x06\x04\x01\x04\0\x02\x0b\x12\
2108 \x03W\x04\x1d\x1a\x15\x20Field\x20type\x20message.\n\n\x0e\n\x07\x04\x01\
2109 \x04\0\x02\x0b\x01\x12\x03W\x04\x10\n\x0e\n\x07\x04\x01\x04\0\x02\x0b\
2110 \x02\x12\x03W\x1a\x1c\n\"\n\x06\x04\x01\x04\0\x02\x0c\x12\x03Y\x04\x1d\
2111 \x1a\x13\x20Field\x20type\x20bytes.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x0c\
2112 \x01\x12\x03Y\x04\x0e\n\x0e\n\x07\x04\x01\x04\0\x02\x0c\x02\x12\x03Y\x1a\
2113 \x1c\n#\n\x06\x04\x01\x04\0\x02\r\x12\x03[\x04\x1d\x1a\x14\x20Field\x20t\
2114 ype\x20uint32.\n\n\x0e\n\x07\x04\x01\x04\0\x02\r\x01\x12\x03[\x04\x0f\n\
2115 \x0e\n\x07\x04\x01\x04\0\x02\r\x02\x12\x03[\x1a\x1c\n!\n\x06\x04\x01\x04\
2116 \0\x02\x0e\x12\x03]\x04\x1d\x1a\x12\x20Field\x20type\x20enum.\n\n\x0e\n\
2117 \x07\x04\x01\x04\0\x02\x0e\x01\x12\x03]\x04\r\n\x0e\n\x07\x04\x01\x04\0\
2118 \x02\x0e\x02\x12\x03]\x1a\x1c\n%\n\x06\x04\x01\x04\0\x02\x0f\x12\x03_\
2119 \x04\x1d\x1a\x16\x20Field\x20type\x20sfixed32.\n\n\x0e\n\x07\x04\x01\x04\
2120 \0\x02\x0f\x01\x12\x03_\x04\x11\n\x0e\n\x07\x04\x01\x04\0\x02\x0f\x02\
2121 \x12\x03_\x1a\x1c\n%\n\x06\x04\x01\x04\0\x02\x10\x12\x03a\x04\x1d\x1a\
2122 \x16\x20Field\x20type\x20sfixed64.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x10\
2123 \x01\x12\x03a\x04\x11\n\x0e\n\x07\x04\x01\x04\0\x02\x10\x02\x12\x03a\x1a\
2124 \x1c\n#\n\x06\x04\x01\x04\0\x02\x11\x12\x03c\x04\x1d\x1a\x14\x20Field\
2125 \x20type\x20sint32.\n\n\x0e\n\x07\x04\x01\x04\0\x02\x11\x01\x12\x03c\x04\
2126 \x0f\n\x0e\n\x07\x04\x01\x04\0\x02\x11\x02\x12\x03c\x1a\x1c\n#\n\x06\x04\
2127 \x01\x04\0\x02\x12\x12\x03e\x04\x1d\x1a\x14\x20Field\x20type\x20sint64.\
2128 \n\n\x0e\n\x07\x04\x01\x04\0\x02\x12\x01\x12\x03e\x04\x0f\n\x0e\n\x07\
2129 \x04\x01\x04\0\x02\x12\x02\x12\x03e\x1a\x1c\nC\n\x04\x04\x01\x04\x01\x12\
2130 \x04i\x02r\x03\x1a5\x20Whether\x20a\x20field\x20is\x20optional,\x20requi\
2131 red,\x20or\x20repeated.\n\n\x0c\n\x05\x04\x01\x04\x01\x01\x12\x03i\x07\
2132 \x12\n5\n\x06\x04\x01\x04\x01\x02\0\x12\x03k\x04\x1c\x1a&\x20For\x20fiel\
2133 ds\x20with\x20unknown\x20cardinality.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\
2134 \0\x01\x12\x03k\x04\x17\n\x0e\n\x07\x04\x01\x04\x01\x02\0\x02\x12\x03k\
2135 \x1a\x1b\n%\n\x06\x04\x01\x04\x01\x02\x01\x12\x03m\x04\x1d\x1a\x16\x20Fo\
2136 r\x20optional\x20fields.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x01\x01\x12\
2137 \x03m\x04\x18\n\x0e\n\x07\x04\x01\x04\x01\x02\x01\x02\x12\x03m\x1b\x1c\n\
2138 9\n\x06\x04\x01\x04\x01\x02\x02\x12\x03o\x04\x1d\x1a*\x20For\x20required\
2139 \x20fields.\x20Proto2\x20syntax\x20only.\n\n\x0e\n\x07\x04\x01\x04\x01\
2140 \x02\x02\x01\x12\x03o\x04\x18\n\x0e\n\x07\x04\x01\x04\x01\x02\x02\x02\
2141 \x12\x03o\x1b\x1c\n%\n\x06\x04\x01\x04\x01\x02\x03\x12\x03q\x04\x1d\x1a\
2142 \x16\x20For\x20repeated\x20fields.\n\n\x0e\n\x07\x04\x01\x04\x01\x02\x03\
2143 \x01\x12\x03q\x04\x18\n\x0e\n\x07\x04\x01\x04\x01\x02\x03\x02\x12\x03q\
2144 \x1b\x1c\n\x1e\n\x04\x04\x01\x02\0\x12\x03u\x02\x10\x1a\x11\x20The\x20fi\
2145 eld\x20type.\n\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03u\x02\x06\n\x0c\n\
2146 \x05\x04\x01\x02\0\x01\x12\x03u\x07\x0b\n\x0c\n\x05\x04\x01\x02\0\x03\
2147 \x12\x03u\x0e\x0f\n%\n\x04\x04\x01\x02\x01\x12\x03w\x02\x1e\x1a\x18\x20T\
2148 he\x20field\x20cardinality.\n\n\x0c\n\x05\x04\x01\x02\x01\x06\x12\x03w\
2149 \x02\r\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03w\x0e\x19\n\x0c\n\x05\x04\
2150 \x01\x02\x01\x03\x12\x03w\x1c\x1d\n\x20\n\x04\x04\x01\x02\x02\x12\x03y\
2151 \x02\x13\x1a\x13\x20The\x20field\x20number.\n\n\x0c\n\x05\x04\x01\x02\
2152 \x02\x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03y\x08\
2153 \x0e\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03y\x11\x12\n\x1e\n\x04\x04\
2154 \x01\x02\x03\x12\x03{\x02\x12\x1a\x11\x20The\x20field\x20name.\n\n\x0c\n\
2155 \x05\x04\x01\x02\x03\x05\x12\x03{\x02\x08\n\x0c\n\x05\x04\x01\x02\x03\
2156 \x01\x12\x03{\t\r\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03{\x10\x11\n\x96\
2157 \x01\n\x04\x04\x01\x02\x04\x12\x03~\x02\x16\x1a\x88\x01\x20The\x20field\
2158 \x20type\x20URL,\x20without\x20the\x20scheme,\x20for\x20message\x20or\
2159 \x20enumeration\n\x20types.\x20Example:\x20`\"type.googleapis.com/google\
2160 .protobuf.Timestamp\"`.\n\n\x0c\n\x05\x04\x01\x02\x04\x05\x12\x03~\x02\
2161 \x08\n\x0c\n\x05\x04\x01\x02\x04\x01\x12\x03~\t\x11\n\x0c\n\x05\x04\x01\
2162 \x02\x04\x03\x12\x03~\x14\x15\n\xa5\x01\n\x04\x04\x01\x02\x05\x12\x04\
2163 \x81\x01\x02\x18\x1a\x96\x01\x20The\x20index\x20of\x20the\x20field\x20ty\
2164 pe\x20in\x20`Type.oneofs`,\x20for\x20message\x20or\x20enumeration\n\x20t\
2165 ypes.\x20The\x20first\x20type\x20has\x20index\x201;\x20zero\x20means\x20\
2166 the\x20type\x20is\x20not\x20in\x20the\x20list.\n\n\r\n\x05\x04\x01\x02\
2167 \x05\x05\x12\x04\x81\x01\x02\x07\n\r\n\x05\x04\x01\x02\x05\x01\x12\x04\
2168 \x81\x01\x08\x13\n\r\n\x05\x04\x01\x02\x05\x03\x12\x04\x81\x01\x16\x17\n\
2169 F\n\x04\x04\x01\x02\x06\x12\x04\x83\x01\x02\x12\x1a8\x20Whether\x20to\
2170 \x20use\x20alternative\x20packed\x20wire\x20representation.\n\n\r\n\x05\
2171 \x04\x01\x02\x06\x05\x12\x04\x83\x01\x02\x06\n\r\n\x05\x04\x01\x02\x06\
2172 \x01\x12\x04\x83\x01\x07\r\n\r\n\x05\x04\x01\x02\x06\x03\x12\x04\x83\x01\
2173 \x10\x11\n,\n\x04\x04\x01\x02\x07\x12\x04\x85\x01\x02\x1e\x1a\x1e\x20The\
2174 \x20protocol\x20buffer\x20options.\n\n\r\n\x05\x04\x01\x02\x07\x04\x12\
2175 \x04\x85\x01\x02\n\n\r\n\x05\x04\x01\x02\x07\x06\x12\x04\x85\x01\x0b\x11\
2176 \n\r\n\x05\x04\x01\x02\x07\x01\x12\x04\x85\x01\x12\x19\n\r\n\x05\x04\x01\
2177 \x02\x07\x03\x12\x04\x85\x01\x1c\x1d\n$\n\x04\x04\x01\x02\x08\x12\x04\
2178 \x87\x01\x02\x18\x1a\x16\x20The\x20field\x20JSON\x20name.\n\n\r\n\x05\
2179 \x04\x01\x02\x08\x05\x12\x04\x87\x01\x02\x08\n\r\n\x05\x04\x01\x02\x08\
2180 \x01\x12\x04\x87\x01\t\x12\n\r\n\x05\x04\x01\x02\x08\x03\x12\x04\x87\x01\
2181 \x15\x17\nX\n\x04\x04\x01\x02\t\x12\x04\x89\x01\x02\x1c\x1aJ\x20The\x20s\
2182 tring\x20value\x20of\x20the\x20default\x20value\x20of\x20this\x20field.\
2183 \x20Proto2\x20syntax\x20only.\n\n\r\n\x05\x04\x01\x02\t\x05\x12\x04\x89\
2184 \x01\x02\x08\n\r\n\x05\x04\x01\x02\t\x01\x12\x04\x89\x01\t\x16\n\r\n\x05\
2185 \x04\x01\x02\t\x03\x12\x04\x89\x01\x19\x1b\n%\n\x02\x04\x02\x12\x06\x8d\
2186 \x01\0\x98\x01\x01\x1a\x17\x20Enum\x20type\x20definition.\n\n\x0b\n\x03\
2187 \x04\x02\x01\x12\x04\x8d\x01\x08\x0c\n\x1f\n\x04\x04\x02\x02\0\x12\x04\
2188 \x8f\x01\x02\x12\x1a\x11\x20Enum\x20type\x20name.\n\n\r\n\x05\x04\x02\
2189 \x02\0\x05\x12\x04\x8f\x01\x02\x08\n\r\n\x05\x04\x02\x02\0\x01\x12\x04\
2190 \x8f\x01\t\r\n\r\n\x05\x04\x02\x02\0\x03\x12\x04\x8f\x01\x10\x11\n'\n\
2191 \x04\x04\x02\x02\x01\x12\x04\x91\x01\x02#\x1a\x19\x20Enum\x20value\x20de\
2192 finitions.\n\n\r\n\x05\x04\x02\x02\x01\x04\x12\x04\x91\x01\x02\n\n\r\n\
2193 \x05\x04\x02\x02\x01\x06\x12\x04\x91\x01\x0b\x14\n\r\n\x05\x04\x02\x02\
2194 \x01\x01\x12\x04\x91\x01\x15\x1e\n\r\n\x05\x04\x02\x02\x01\x03\x12\x04\
2195 \x91\x01!\"\n(\n\x04\x04\x02\x02\x02\x12\x04\x93\x01\x02\x1e\x1a\x1a\x20\
2196 Protocol\x20buffer\x20options.\n\n\r\n\x05\x04\x02\x02\x02\x04\x12\x04\
2197 \x93\x01\x02\n\n\r\n\x05\x04\x02\x02\x02\x06\x12\x04\x93\x01\x0b\x11\n\r\
2198 \n\x05\x04\x02\x02\x02\x01\x12\x04\x93\x01\x12\x19\n\r\n\x05\x04\x02\x02\
2199 \x02\x03\x12\x04\x93\x01\x1c\x1d\n#\n\x04\x04\x02\x02\x03\x12\x04\x95\
2200 \x01\x02#\x1a\x15\x20The\x20source\x20context.\n\n\r\n\x05\x04\x02\x02\
2201 \x03\x06\x12\x04\x95\x01\x02\x0f\n\r\n\x05\x04\x02\x02\x03\x01\x12\x04\
2202 \x95\x01\x10\x1e\n\r\n\x05\x04\x02\x02\x03\x03\x12\x04\x95\x01!\"\n\"\n\
2203 \x04\x04\x02\x02\x04\x12\x04\x97\x01\x02\x14\x1a\x14\x20The\x20source\
2204 \x20syntax.\n\n\r\n\x05\x04\x02\x02\x04\x06\x12\x04\x97\x01\x02\x08\n\r\
2205 \n\x05\x04\x02\x02\x04\x01\x12\x04\x97\x01\t\x0f\n\r\n\x05\x04\x02\x02\
2206 \x04\x03\x12\x04\x97\x01\x12\x13\n&\n\x02\x04\x03\x12\x06\x9b\x01\0\xa2\
2207 \x01\x01\x1a\x18\x20Enum\x20value\x20definition.\n\n\x0b\n\x03\x04\x03\
2208 \x01\x12\x04\x9b\x01\x08\x11\n\x20\n\x04\x04\x03\x02\0\x12\x04\x9d\x01\
2209 \x02\x12\x1a\x12\x20Enum\x20value\x20name.\n\n\r\n\x05\x04\x03\x02\0\x05\
2210 \x12\x04\x9d\x01\x02\x08\n\r\n\x05\x04\x03\x02\0\x01\x12\x04\x9d\x01\t\r\
2211 \n\r\n\x05\x04\x03\x02\0\x03\x12\x04\x9d\x01\x10\x11\n\"\n\x04\x04\x03\
2212 \x02\x01\x12\x04\x9f\x01\x02\x13\x1a\x14\x20Enum\x20value\x20number.\n\n\
2213 \r\n\x05\x04\x03\x02\x01\x05\x12\x04\x9f\x01\x02\x07\n\r\n\x05\x04\x03\
2214 \x02\x01\x01\x12\x04\x9f\x01\x08\x0e\n\r\n\x05\x04\x03\x02\x01\x03\x12\
2215 \x04\x9f\x01\x11\x12\n(\n\x04\x04\x03\x02\x02\x12\x04\xa1\x01\x02\x1e\
2216 \x1a\x1a\x20Protocol\x20buffer\x20options.\n\n\r\n\x05\x04\x03\x02\x02\
2217 \x04\x12\x04\xa1\x01\x02\n\n\r\n\x05\x04\x03\x02\x02\x06\x12\x04\xa1\x01\
2218 \x0b\x11\n\r\n\x05\x04\x03\x02\x02\x01\x12\x04\xa1\x01\x12\x19\n\r\n\x05\
2219 \x04\x03\x02\x02\x03\x12\x04\xa1\x01\x1c\x1d\ng\n\x02\x04\x04\x12\x06\
2220 \xa6\x01\0\xab\x01\x01\x1aY\x20A\x20protocol\x20buffer\x20option,\x20whi\
2221 ch\x20can\x20be\x20attached\x20to\x20a\x20message,\x20field,\n\x20enumer\
2222 ation,\x20etc.\n\n\x0b\n\x03\x04\x04\x01\x12\x04\xa6\x01\x08\x0e\nA\n\
2223 \x04\x04\x04\x02\0\x12\x04\xa8\x01\x02\x12\x1a3\x20The\x20option's\x20na\
2224 me.\x20For\x20example,\x20`\"java_package\"`.\n\n\r\n\x05\x04\x04\x02\0\
2225 \x05\x12\x04\xa8\x01\x02\x08\n\r\n\x05\x04\x04\x02\0\x01\x12\x04\xa8\x01\
2226 \t\r\n\r\n\x05\x04\x04\x02\0\x03\x12\x04\xa8\x01\x10\x11\nI\n\x04\x04\
2227 \x04\x02\x01\x12\x04\xaa\x01\x02\x10\x1a;\x20The\x20option's\x20value.\
2228 \x20For\x20example,\x20`\"com.google.protobuf\"`.\n\n\r\n\x05\x04\x04\
2229 \x02\x01\x06\x12\x04\xaa\x01\x02\x05\n\r\n\x05\x04\x04\x02\x01\x01\x12\
2230 \x04\xaa\x01\x06\x0b\n\r\n\x05\x04\x04\x02\x01\x03\x12\x04\xaa\x01\x0e\
2231 \x0f\nI\n\x02\x05\0\x12\x06\xae\x01\0\xb3\x01\x01\x1a;\x20The\x20syntax\
2232 \x20in\x20which\x20a\x20protocol\x20buffer\x20element\x20is\x20defined.\
2233 \n\n\x0b\n\x03\x05\0\x01\x12\x04\xae\x01\x05\x0b\n\x20\n\x04\x05\0\x02\0\
2234 \x12\x04\xb0\x01\x02\x14\x1a\x12\x20Syntax\x20`proto2`.\n\n\r\n\x05\x05\
2235 \0\x02\0\x01\x12\x04\xb0\x01\x02\x0f\n\r\n\x05\x05\0\x02\0\x02\x12\x04\
2236 \xb0\x01\x12\x13\n\x20\n\x04\x05\0\x02\x01\x12\x04\xb2\x01\x02\x14\x1a\
2237 \x12\x20Syntax\x20`proto3`.\n\n\r\n\x05\x05\0\x02\x01\x01\x12\x04\xb2\
2238 \x01\x02\x0f\n\r\n\x05\x05\0\x02\x01\x02\x12\x04\xb2\x01\x12\x13b\x06pro\
2239 to3\
2240 ";
2241
2242 static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy::INIT;
2243
parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto2244 fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
2245 ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
2246 }
2247
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto2248 pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
2249 unsafe {
2250 file_descriptor_proto_lazy.get(|| {
2251 parse_descriptor_proto()
2252 })
2253 }
2254 }
2255