1 // This file is generated by rust-protobuf 2.22.0. 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 #![allow(unused_attributes)]
9 #![cfg_attr(rustfmt, rustfmt::skip)]
10
11 #![allow(box_pointers)]
12 #![allow(dead_code)]
13 #![allow(missing_docs)]
14 #![allow(non_camel_case_types)]
15 #![allow(non_snake_case)]
16 #![allow(non_upper_case_globals)]
17 #![allow(trivial_casts)]
18 #![allow(unused_imports)]
19 #![allow(unused_results)]
20 //! Generated file from `google/protobuf/wrappers.proto`
21
22 #[derive(PartialEq,Clone,Default)]
23 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
24 pub struct DoubleValue {
25 // message fields
26 pub value: f64,
27 // special fields
28 #[cfg_attr(feature = "with-serde", serde(skip))]
29 pub unknown_fields: crate::UnknownFields,
30 #[cfg_attr(feature = "with-serde", serde(skip))]
31 pub cached_size: crate::CachedSize,
32 }
33
34 impl<'a> ::std::default::Default for &'a DoubleValue {
default() -> &'a DoubleValue35 fn default() -> &'a DoubleValue {
36 <DoubleValue as crate::Message>::default_instance()
37 }
38 }
39
40 impl DoubleValue {
new() -> DoubleValue41 pub fn new() -> DoubleValue {
42 ::std::default::Default::default()
43 }
44
45 // double value = 1;
46
47
get_value(&self) -> f6448 pub fn get_value(&self) -> f64 {
49 self.value
50 }
clear_value(&mut self)51 pub fn clear_value(&mut self) {
52 self.value = 0.;
53 }
54
55 // Param is passed by value, moved
set_value(&mut self, v: f64)56 pub fn set_value(&mut self, v: f64) {
57 self.value = v;
58 }
59 }
60
61 impl crate::Message for DoubleValue {
is_initialized(&self) -> bool62 fn is_initialized(&self) -> bool {
63 true
64 }
65
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>66 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
67 while !is.eof()? {
68 let (field_number, wire_type) = is.read_tag_unpack()?;
69 match field_number {
70 1 => {
71 if wire_type != crate::wire_format::WireTypeFixed64 {
72 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
73 }
74 let tmp = is.read_double()?;
75 self.value = tmp;
76 },
77 _ => {
78 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
79 },
80 };
81 }
82 ::std::result::Result::Ok(())
83 }
84
85 // Compute sizes of nested messages
86 #[allow(unused_variables)]
compute_size(&self) -> u3287 fn compute_size(&self) -> u32 {
88 let mut my_size = 0;
89 if self.value != 0. {
90 my_size += 9;
91 }
92 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
93 self.cached_size.set(my_size);
94 my_size
95 }
96
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>97 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
98 if self.value != 0. {
99 os.write_double(1, self.value)?;
100 }
101 os.write_unknown_fields(self.get_unknown_fields())?;
102 ::std::result::Result::Ok(())
103 }
104
get_cached_size(&self) -> u32105 fn get_cached_size(&self) -> u32 {
106 self.cached_size.get()
107 }
108
get_unknown_fields(&self) -> &crate::UnknownFields109 fn get_unknown_fields(&self) -> &crate::UnknownFields {
110 &self.unknown_fields
111 }
112
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields113 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
114 &mut self.unknown_fields
115 }
116
as_any(&self) -> &dyn (::std::any::Any)117 fn as_any(&self) -> &dyn (::std::any::Any) {
118 self as &dyn (::std::any::Any)
119 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)120 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
121 self as &mut dyn (::std::any::Any)
122 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>123 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
124 self
125 }
126
descriptor(&self) -> &'static crate::reflect::MessageDescriptor127 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
128 Self::descriptor_static()
129 }
130
new() -> DoubleValue131 fn new() -> DoubleValue {
132 DoubleValue::new()
133 }
134
descriptor_static() -> &'static crate::reflect::MessageDescriptor135 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
136 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
137 descriptor.get(|| {
138 let mut fields = ::std::vec::Vec::new();
139 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeDouble>(
140 "value",
141 |m: &DoubleValue| { &m.value },
142 |m: &mut DoubleValue| { &mut m.value },
143 ));
144 crate::reflect::MessageDescriptor::new_pb_name::<DoubleValue>(
145 "DoubleValue",
146 fields,
147 file_descriptor_proto()
148 )
149 })
150 }
151
default_instance() -> &'static DoubleValue152 fn default_instance() -> &'static DoubleValue {
153 static instance: crate::rt::LazyV2<DoubleValue> = crate::rt::LazyV2::INIT;
154 instance.get(DoubleValue::new)
155 }
156 }
157
158 impl crate::Clear for DoubleValue {
clear(&mut self)159 fn clear(&mut self) {
160 self.value = 0.;
161 self.unknown_fields.clear();
162 }
163 }
164
165 impl ::std::fmt::Debug for DoubleValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result166 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
167 crate::text_format::fmt(self, f)
168 }
169 }
170
171 impl crate::reflect::ProtobufValue for DoubleValue {
as_ref(&self) -> crate::reflect::ReflectValueRef172 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
173 crate::reflect::ReflectValueRef::Message(self)
174 }
175 }
176
177 #[derive(PartialEq,Clone,Default)]
178 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
179 pub struct FloatValue {
180 // message fields
181 pub value: f32,
182 // special fields
183 #[cfg_attr(feature = "with-serde", serde(skip))]
184 pub unknown_fields: crate::UnknownFields,
185 #[cfg_attr(feature = "with-serde", serde(skip))]
186 pub cached_size: crate::CachedSize,
187 }
188
189 impl<'a> ::std::default::Default for &'a FloatValue {
default() -> &'a FloatValue190 fn default() -> &'a FloatValue {
191 <FloatValue as crate::Message>::default_instance()
192 }
193 }
194
195 impl FloatValue {
new() -> FloatValue196 pub fn new() -> FloatValue {
197 ::std::default::Default::default()
198 }
199
200 // float value = 1;
201
202
get_value(&self) -> f32203 pub fn get_value(&self) -> f32 {
204 self.value
205 }
clear_value(&mut self)206 pub fn clear_value(&mut self) {
207 self.value = 0.;
208 }
209
210 // Param is passed by value, moved
set_value(&mut self, v: f32)211 pub fn set_value(&mut self, v: f32) {
212 self.value = v;
213 }
214 }
215
216 impl crate::Message for FloatValue {
is_initialized(&self) -> bool217 fn is_initialized(&self) -> bool {
218 true
219 }
220
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>221 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
222 while !is.eof()? {
223 let (field_number, wire_type) = is.read_tag_unpack()?;
224 match field_number {
225 1 => {
226 if wire_type != crate::wire_format::WireTypeFixed32 {
227 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
228 }
229 let tmp = is.read_float()?;
230 self.value = tmp;
231 },
232 _ => {
233 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
234 },
235 };
236 }
237 ::std::result::Result::Ok(())
238 }
239
240 // Compute sizes of nested messages
241 #[allow(unused_variables)]
compute_size(&self) -> u32242 fn compute_size(&self) -> u32 {
243 let mut my_size = 0;
244 if self.value != 0. {
245 my_size += 5;
246 }
247 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
248 self.cached_size.set(my_size);
249 my_size
250 }
251
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>252 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
253 if self.value != 0. {
254 os.write_float(1, self.value)?;
255 }
256 os.write_unknown_fields(self.get_unknown_fields())?;
257 ::std::result::Result::Ok(())
258 }
259
get_cached_size(&self) -> u32260 fn get_cached_size(&self) -> u32 {
261 self.cached_size.get()
262 }
263
get_unknown_fields(&self) -> &crate::UnknownFields264 fn get_unknown_fields(&self) -> &crate::UnknownFields {
265 &self.unknown_fields
266 }
267
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields268 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
269 &mut self.unknown_fields
270 }
271
as_any(&self) -> &dyn (::std::any::Any)272 fn as_any(&self) -> &dyn (::std::any::Any) {
273 self as &dyn (::std::any::Any)
274 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)275 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
276 self as &mut dyn (::std::any::Any)
277 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>278 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
279 self
280 }
281
descriptor(&self) -> &'static crate::reflect::MessageDescriptor282 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
283 Self::descriptor_static()
284 }
285
new() -> FloatValue286 fn new() -> FloatValue {
287 FloatValue::new()
288 }
289
descriptor_static() -> &'static crate::reflect::MessageDescriptor290 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
291 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
292 descriptor.get(|| {
293 let mut fields = ::std::vec::Vec::new();
294 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeFloat>(
295 "value",
296 |m: &FloatValue| { &m.value },
297 |m: &mut FloatValue| { &mut m.value },
298 ));
299 crate::reflect::MessageDescriptor::new_pb_name::<FloatValue>(
300 "FloatValue",
301 fields,
302 file_descriptor_proto()
303 )
304 })
305 }
306
default_instance() -> &'static FloatValue307 fn default_instance() -> &'static FloatValue {
308 static instance: crate::rt::LazyV2<FloatValue> = crate::rt::LazyV2::INIT;
309 instance.get(FloatValue::new)
310 }
311 }
312
313 impl crate::Clear for FloatValue {
clear(&mut self)314 fn clear(&mut self) {
315 self.value = 0.;
316 self.unknown_fields.clear();
317 }
318 }
319
320 impl ::std::fmt::Debug for FloatValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result321 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
322 crate::text_format::fmt(self, f)
323 }
324 }
325
326 impl crate::reflect::ProtobufValue for FloatValue {
as_ref(&self) -> crate::reflect::ReflectValueRef327 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
328 crate::reflect::ReflectValueRef::Message(self)
329 }
330 }
331
332 #[derive(PartialEq,Clone,Default)]
333 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
334 pub struct Int64Value {
335 // message fields
336 pub value: i64,
337 // special fields
338 #[cfg_attr(feature = "with-serde", serde(skip))]
339 pub unknown_fields: crate::UnknownFields,
340 #[cfg_attr(feature = "with-serde", serde(skip))]
341 pub cached_size: crate::CachedSize,
342 }
343
344 impl<'a> ::std::default::Default for &'a Int64Value {
default() -> &'a Int64Value345 fn default() -> &'a Int64Value {
346 <Int64Value as crate::Message>::default_instance()
347 }
348 }
349
350 impl Int64Value {
new() -> Int64Value351 pub fn new() -> Int64Value {
352 ::std::default::Default::default()
353 }
354
355 // int64 value = 1;
356
357
get_value(&self) -> i64358 pub fn get_value(&self) -> i64 {
359 self.value
360 }
clear_value(&mut self)361 pub fn clear_value(&mut self) {
362 self.value = 0;
363 }
364
365 // Param is passed by value, moved
set_value(&mut self, v: i64)366 pub fn set_value(&mut self, v: i64) {
367 self.value = v;
368 }
369 }
370
371 impl crate::Message for Int64Value {
is_initialized(&self) -> bool372 fn is_initialized(&self) -> bool {
373 true
374 }
375
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>376 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
377 while !is.eof()? {
378 let (field_number, wire_type) = is.read_tag_unpack()?;
379 match field_number {
380 1 => {
381 if wire_type != crate::wire_format::WireTypeVarint {
382 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
383 }
384 let tmp = is.read_int64()?;
385 self.value = tmp;
386 },
387 _ => {
388 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
389 },
390 };
391 }
392 ::std::result::Result::Ok(())
393 }
394
395 // Compute sizes of nested messages
396 #[allow(unused_variables)]
compute_size(&self) -> u32397 fn compute_size(&self) -> u32 {
398 let mut my_size = 0;
399 if self.value != 0 {
400 my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint);
401 }
402 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
403 self.cached_size.set(my_size);
404 my_size
405 }
406
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>407 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
408 if self.value != 0 {
409 os.write_int64(1, self.value)?;
410 }
411 os.write_unknown_fields(self.get_unknown_fields())?;
412 ::std::result::Result::Ok(())
413 }
414
get_cached_size(&self) -> u32415 fn get_cached_size(&self) -> u32 {
416 self.cached_size.get()
417 }
418
get_unknown_fields(&self) -> &crate::UnknownFields419 fn get_unknown_fields(&self) -> &crate::UnknownFields {
420 &self.unknown_fields
421 }
422
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields423 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
424 &mut self.unknown_fields
425 }
426
as_any(&self) -> &dyn (::std::any::Any)427 fn as_any(&self) -> &dyn (::std::any::Any) {
428 self as &dyn (::std::any::Any)
429 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)430 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
431 self as &mut dyn (::std::any::Any)
432 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>433 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
434 self
435 }
436
descriptor(&self) -> &'static crate::reflect::MessageDescriptor437 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
438 Self::descriptor_static()
439 }
440
new() -> Int64Value441 fn new() -> Int64Value {
442 Int64Value::new()
443 }
444
descriptor_static() -> &'static crate::reflect::MessageDescriptor445 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
446 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
447 descriptor.get(|| {
448 let mut fields = ::std::vec::Vec::new();
449 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt64>(
450 "value",
451 |m: &Int64Value| { &m.value },
452 |m: &mut Int64Value| { &mut m.value },
453 ));
454 crate::reflect::MessageDescriptor::new_pb_name::<Int64Value>(
455 "Int64Value",
456 fields,
457 file_descriptor_proto()
458 )
459 })
460 }
461
default_instance() -> &'static Int64Value462 fn default_instance() -> &'static Int64Value {
463 static instance: crate::rt::LazyV2<Int64Value> = crate::rt::LazyV2::INIT;
464 instance.get(Int64Value::new)
465 }
466 }
467
468 impl crate::Clear for Int64Value {
clear(&mut self)469 fn clear(&mut self) {
470 self.value = 0;
471 self.unknown_fields.clear();
472 }
473 }
474
475 impl ::std::fmt::Debug for Int64Value {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result476 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
477 crate::text_format::fmt(self, f)
478 }
479 }
480
481 impl crate::reflect::ProtobufValue for Int64Value {
as_ref(&self) -> crate::reflect::ReflectValueRef482 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
483 crate::reflect::ReflectValueRef::Message(self)
484 }
485 }
486
487 #[derive(PartialEq,Clone,Default)]
488 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
489 pub struct UInt64Value {
490 // message fields
491 pub value: u64,
492 // special fields
493 #[cfg_attr(feature = "with-serde", serde(skip))]
494 pub unknown_fields: crate::UnknownFields,
495 #[cfg_attr(feature = "with-serde", serde(skip))]
496 pub cached_size: crate::CachedSize,
497 }
498
499 impl<'a> ::std::default::Default for &'a UInt64Value {
default() -> &'a UInt64Value500 fn default() -> &'a UInt64Value {
501 <UInt64Value as crate::Message>::default_instance()
502 }
503 }
504
505 impl UInt64Value {
new() -> UInt64Value506 pub fn new() -> UInt64Value {
507 ::std::default::Default::default()
508 }
509
510 // uint64 value = 1;
511
512
get_value(&self) -> u64513 pub fn get_value(&self) -> u64 {
514 self.value
515 }
clear_value(&mut self)516 pub fn clear_value(&mut self) {
517 self.value = 0;
518 }
519
520 // Param is passed by value, moved
set_value(&mut self, v: u64)521 pub fn set_value(&mut self, v: u64) {
522 self.value = v;
523 }
524 }
525
526 impl crate::Message for UInt64Value {
is_initialized(&self) -> bool527 fn is_initialized(&self) -> bool {
528 true
529 }
530
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>531 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
532 while !is.eof()? {
533 let (field_number, wire_type) = is.read_tag_unpack()?;
534 match field_number {
535 1 => {
536 if wire_type != crate::wire_format::WireTypeVarint {
537 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
538 }
539 let tmp = is.read_uint64()?;
540 self.value = tmp;
541 },
542 _ => {
543 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
544 },
545 };
546 }
547 ::std::result::Result::Ok(())
548 }
549
550 // Compute sizes of nested messages
551 #[allow(unused_variables)]
compute_size(&self) -> u32552 fn compute_size(&self) -> u32 {
553 let mut my_size = 0;
554 if self.value != 0 {
555 my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint);
556 }
557 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
558 self.cached_size.set(my_size);
559 my_size
560 }
561
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>562 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
563 if self.value != 0 {
564 os.write_uint64(1, self.value)?;
565 }
566 os.write_unknown_fields(self.get_unknown_fields())?;
567 ::std::result::Result::Ok(())
568 }
569
get_cached_size(&self) -> u32570 fn get_cached_size(&self) -> u32 {
571 self.cached_size.get()
572 }
573
get_unknown_fields(&self) -> &crate::UnknownFields574 fn get_unknown_fields(&self) -> &crate::UnknownFields {
575 &self.unknown_fields
576 }
577
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields578 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
579 &mut self.unknown_fields
580 }
581
as_any(&self) -> &dyn (::std::any::Any)582 fn as_any(&self) -> &dyn (::std::any::Any) {
583 self as &dyn (::std::any::Any)
584 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)585 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
586 self as &mut dyn (::std::any::Any)
587 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>588 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
589 self
590 }
591
descriptor(&self) -> &'static crate::reflect::MessageDescriptor592 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
593 Self::descriptor_static()
594 }
595
new() -> UInt64Value596 fn new() -> UInt64Value {
597 UInt64Value::new()
598 }
599
descriptor_static() -> &'static crate::reflect::MessageDescriptor600 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
601 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
602 descriptor.get(|| {
603 let mut fields = ::std::vec::Vec::new();
604 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeUint64>(
605 "value",
606 |m: &UInt64Value| { &m.value },
607 |m: &mut UInt64Value| { &mut m.value },
608 ));
609 crate::reflect::MessageDescriptor::new_pb_name::<UInt64Value>(
610 "UInt64Value",
611 fields,
612 file_descriptor_proto()
613 )
614 })
615 }
616
default_instance() -> &'static UInt64Value617 fn default_instance() -> &'static UInt64Value {
618 static instance: crate::rt::LazyV2<UInt64Value> = crate::rt::LazyV2::INIT;
619 instance.get(UInt64Value::new)
620 }
621 }
622
623 impl crate::Clear for UInt64Value {
clear(&mut self)624 fn clear(&mut self) {
625 self.value = 0;
626 self.unknown_fields.clear();
627 }
628 }
629
630 impl ::std::fmt::Debug for UInt64Value {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result631 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
632 crate::text_format::fmt(self, f)
633 }
634 }
635
636 impl crate::reflect::ProtobufValue for UInt64Value {
as_ref(&self) -> crate::reflect::ReflectValueRef637 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
638 crate::reflect::ReflectValueRef::Message(self)
639 }
640 }
641
642 #[derive(PartialEq,Clone,Default)]
643 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
644 pub struct Int32Value {
645 // message fields
646 pub value: i32,
647 // special fields
648 #[cfg_attr(feature = "with-serde", serde(skip))]
649 pub unknown_fields: crate::UnknownFields,
650 #[cfg_attr(feature = "with-serde", serde(skip))]
651 pub cached_size: crate::CachedSize,
652 }
653
654 impl<'a> ::std::default::Default for &'a Int32Value {
default() -> &'a Int32Value655 fn default() -> &'a Int32Value {
656 <Int32Value as crate::Message>::default_instance()
657 }
658 }
659
660 impl Int32Value {
new() -> Int32Value661 pub fn new() -> Int32Value {
662 ::std::default::Default::default()
663 }
664
665 // int32 value = 1;
666
667
get_value(&self) -> i32668 pub fn get_value(&self) -> i32 {
669 self.value
670 }
clear_value(&mut self)671 pub fn clear_value(&mut self) {
672 self.value = 0;
673 }
674
675 // Param is passed by value, moved
set_value(&mut self, v: i32)676 pub fn set_value(&mut self, v: i32) {
677 self.value = v;
678 }
679 }
680
681 impl crate::Message for Int32Value {
is_initialized(&self) -> bool682 fn is_initialized(&self) -> bool {
683 true
684 }
685
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>686 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
687 while !is.eof()? {
688 let (field_number, wire_type) = is.read_tag_unpack()?;
689 match field_number {
690 1 => {
691 if wire_type != crate::wire_format::WireTypeVarint {
692 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
693 }
694 let tmp = is.read_int32()?;
695 self.value = tmp;
696 },
697 _ => {
698 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
699 },
700 };
701 }
702 ::std::result::Result::Ok(())
703 }
704
705 // Compute sizes of nested messages
706 #[allow(unused_variables)]
compute_size(&self) -> u32707 fn compute_size(&self) -> u32 {
708 let mut my_size = 0;
709 if self.value != 0 {
710 my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint);
711 }
712 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
713 self.cached_size.set(my_size);
714 my_size
715 }
716
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>717 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
718 if self.value != 0 {
719 os.write_int32(1, self.value)?;
720 }
721 os.write_unknown_fields(self.get_unknown_fields())?;
722 ::std::result::Result::Ok(())
723 }
724
get_cached_size(&self) -> u32725 fn get_cached_size(&self) -> u32 {
726 self.cached_size.get()
727 }
728
get_unknown_fields(&self) -> &crate::UnknownFields729 fn get_unknown_fields(&self) -> &crate::UnknownFields {
730 &self.unknown_fields
731 }
732
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields733 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
734 &mut self.unknown_fields
735 }
736
as_any(&self) -> &dyn (::std::any::Any)737 fn as_any(&self) -> &dyn (::std::any::Any) {
738 self as &dyn (::std::any::Any)
739 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)740 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
741 self as &mut dyn (::std::any::Any)
742 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>743 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
744 self
745 }
746
descriptor(&self) -> &'static crate::reflect::MessageDescriptor747 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
748 Self::descriptor_static()
749 }
750
new() -> Int32Value751 fn new() -> Int32Value {
752 Int32Value::new()
753 }
754
descriptor_static() -> &'static crate::reflect::MessageDescriptor755 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
756 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
757 descriptor.get(|| {
758 let mut fields = ::std::vec::Vec::new();
759 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt32>(
760 "value",
761 |m: &Int32Value| { &m.value },
762 |m: &mut Int32Value| { &mut m.value },
763 ));
764 crate::reflect::MessageDescriptor::new_pb_name::<Int32Value>(
765 "Int32Value",
766 fields,
767 file_descriptor_proto()
768 )
769 })
770 }
771
default_instance() -> &'static Int32Value772 fn default_instance() -> &'static Int32Value {
773 static instance: crate::rt::LazyV2<Int32Value> = crate::rt::LazyV2::INIT;
774 instance.get(Int32Value::new)
775 }
776 }
777
778 impl crate::Clear for Int32Value {
clear(&mut self)779 fn clear(&mut self) {
780 self.value = 0;
781 self.unknown_fields.clear();
782 }
783 }
784
785 impl ::std::fmt::Debug for Int32Value {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result786 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
787 crate::text_format::fmt(self, f)
788 }
789 }
790
791 impl crate::reflect::ProtobufValue for Int32Value {
as_ref(&self) -> crate::reflect::ReflectValueRef792 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
793 crate::reflect::ReflectValueRef::Message(self)
794 }
795 }
796
797 #[derive(PartialEq,Clone,Default)]
798 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
799 pub struct UInt32Value {
800 // message fields
801 pub value: u32,
802 // special fields
803 #[cfg_attr(feature = "with-serde", serde(skip))]
804 pub unknown_fields: crate::UnknownFields,
805 #[cfg_attr(feature = "with-serde", serde(skip))]
806 pub cached_size: crate::CachedSize,
807 }
808
809 impl<'a> ::std::default::Default for &'a UInt32Value {
default() -> &'a UInt32Value810 fn default() -> &'a UInt32Value {
811 <UInt32Value as crate::Message>::default_instance()
812 }
813 }
814
815 impl UInt32Value {
new() -> UInt32Value816 pub fn new() -> UInt32Value {
817 ::std::default::Default::default()
818 }
819
820 // uint32 value = 1;
821
822
get_value(&self) -> u32823 pub fn get_value(&self) -> u32 {
824 self.value
825 }
clear_value(&mut self)826 pub fn clear_value(&mut self) {
827 self.value = 0;
828 }
829
830 // Param is passed by value, moved
set_value(&mut self, v: u32)831 pub fn set_value(&mut self, v: u32) {
832 self.value = v;
833 }
834 }
835
836 impl crate::Message for UInt32Value {
is_initialized(&self) -> bool837 fn is_initialized(&self) -> bool {
838 true
839 }
840
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>841 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
842 while !is.eof()? {
843 let (field_number, wire_type) = is.read_tag_unpack()?;
844 match field_number {
845 1 => {
846 if wire_type != crate::wire_format::WireTypeVarint {
847 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
848 }
849 let tmp = is.read_uint32()?;
850 self.value = tmp;
851 },
852 _ => {
853 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
854 },
855 };
856 }
857 ::std::result::Result::Ok(())
858 }
859
860 // Compute sizes of nested messages
861 #[allow(unused_variables)]
compute_size(&self) -> u32862 fn compute_size(&self) -> u32 {
863 let mut my_size = 0;
864 if self.value != 0 {
865 my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint);
866 }
867 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
868 self.cached_size.set(my_size);
869 my_size
870 }
871
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>872 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
873 if self.value != 0 {
874 os.write_uint32(1, self.value)?;
875 }
876 os.write_unknown_fields(self.get_unknown_fields())?;
877 ::std::result::Result::Ok(())
878 }
879
get_cached_size(&self) -> u32880 fn get_cached_size(&self) -> u32 {
881 self.cached_size.get()
882 }
883
get_unknown_fields(&self) -> &crate::UnknownFields884 fn get_unknown_fields(&self) -> &crate::UnknownFields {
885 &self.unknown_fields
886 }
887
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields888 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
889 &mut self.unknown_fields
890 }
891
as_any(&self) -> &dyn (::std::any::Any)892 fn as_any(&self) -> &dyn (::std::any::Any) {
893 self as &dyn (::std::any::Any)
894 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)895 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
896 self as &mut dyn (::std::any::Any)
897 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>898 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
899 self
900 }
901
descriptor(&self) -> &'static crate::reflect::MessageDescriptor902 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
903 Self::descriptor_static()
904 }
905
new() -> UInt32Value906 fn new() -> UInt32Value {
907 UInt32Value::new()
908 }
909
descriptor_static() -> &'static crate::reflect::MessageDescriptor910 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
911 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
912 descriptor.get(|| {
913 let mut fields = ::std::vec::Vec::new();
914 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeUint32>(
915 "value",
916 |m: &UInt32Value| { &m.value },
917 |m: &mut UInt32Value| { &mut m.value },
918 ));
919 crate::reflect::MessageDescriptor::new_pb_name::<UInt32Value>(
920 "UInt32Value",
921 fields,
922 file_descriptor_proto()
923 )
924 })
925 }
926
default_instance() -> &'static UInt32Value927 fn default_instance() -> &'static UInt32Value {
928 static instance: crate::rt::LazyV2<UInt32Value> = crate::rt::LazyV2::INIT;
929 instance.get(UInt32Value::new)
930 }
931 }
932
933 impl crate::Clear for UInt32Value {
clear(&mut self)934 fn clear(&mut self) {
935 self.value = 0;
936 self.unknown_fields.clear();
937 }
938 }
939
940 impl ::std::fmt::Debug for UInt32Value {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result941 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
942 crate::text_format::fmt(self, f)
943 }
944 }
945
946 impl crate::reflect::ProtobufValue for UInt32Value {
as_ref(&self) -> crate::reflect::ReflectValueRef947 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
948 crate::reflect::ReflectValueRef::Message(self)
949 }
950 }
951
952 #[derive(PartialEq,Clone,Default)]
953 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
954 pub struct BoolValue {
955 // message fields
956 pub value: bool,
957 // special fields
958 #[cfg_attr(feature = "with-serde", serde(skip))]
959 pub unknown_fields: crate::UnknownFields,
960 #[cfg_attr(feature = "with-serde", serde(skip))]
961 pub cached_size: crate::CachedSize,
962 }
963
964 impl<'a> ::std::default::Default for &'a BoolValue {
default() -> &'a BoolValue965 fn default() -> &'a BoolValue {
966 <BoolValue as crate::Message>::default_instance()
967 }
968 }
969
970 impl BoolValue {
new() -> BoolValue971 pub fn new() -> BoolValue {
972 ::std::default::Default::default()
973 }
974
975 // bool value = 1;
976
977
get_value(&self) -> bool978 pub fn get_value(&self) -> bool {
979 self.value
980 }
clear_value(&mut self)981 pub fn clear_value(&mut self) {
982 self.value = false;
983 }
984
985 // Param is passed by value, moved
set_value(&mut self, v: bool)986 pub fn set_value(&mut self, v: bool) {
987 self.value = v;
988 }
989 }
990
991 impl crate::Message for BoolValue {
is_initialized(&self) -> bool992 fn is_initialized(&self) -> bool {
993 true
994 }
995
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>996 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
997 while !is.eof()? {
998 let (field_number, wire_type) = is.read_tag_unpack()?;
999 match field_number {
1000 1 => {
1001 if wire_type != crate::wire_format::WireTypeVarint {
1002 return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type));
1003 }
1004 let tmp = is.read_bool()?;
1005 self.value = tmp;
1006 },
1007 _ => {
1008 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1009 },
1010 };
1011 }
1012 ::std::result::Result::Ok(())
1013 }
1014
1015 // Compute sizes of nested messages
1016 #[allow(unused_variables)]
compute_size(&self) -> u321017 fn compute_size(&self) -> u32 {
1018 let mut my_size = 0;
1019 if self.value != false {
1020 my_size += 2;
1021 }
1022 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
1023 self.cached_size.set(my_size);
1024 my_size
1025 }
1026
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>1027 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
1028 if self.value != false {
1029 os.write_bool(1, self.value)?;
1030 }
1031 os.write_unknown_fields(self.get_unknown_fields())?;
1032 ::std::result::Result::Ok(())
1033 }
1034
get_cached_size(&self) -> u321035 fn get_cached_size(&self) -> u32 {
1036 self.cached_size.get()
1037 }
1038
get_unknown_fields(&self) -> &crate::UnknownFields1039 fn get_unknown_fields(&self) -> &crate::UnknownFields {
1040 &self.unknown_fields
1041 }
1042
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields1043 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
1044 &mut self.unknown_fields
1045 }
1046
as_any(&self) -> &dyn (::std::any::Any)1047 fn as_any(&self) -> &dyn (::std::any::Any) {
1048 self as &dyn (::std::any::Any)
1049 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1050 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1051 self as &mut dyn (::std::any::Any)
1052 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1053 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1054 self
1055 }
1056
descriptor(&self) -> &'static crate::reflect::MessageDescriptor1057 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
1058 Self::descriptor_static()
1059 }
1060
new() -> BoolValue1061 fn new() -> BoolValue {
1062 BoolValue::new()
1063 }
1064
descriptor_static() -> &'static crate::reflect::MessageDescriptor1065 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
1066 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
1067 descriptor.get(|| {
1068 let mut fields = ::std::vec::Vec::new();
1069 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeBool>(
1070 "value",
1071 |m: &BoolValue| { &m.value },
1072 |m: &mut BoolValue| { &mut m.value },
1073 ));
1074 crate::reflect::MessageDescriptor::new_pb_name::<BoolValue>(
1075 "BoolValue",
1076 fields,
1077 file_descriptor_proto()
1078 )
1079 })
1080 }
1081
default_instance() -> &'static BoolValue1082 fn default_instance() -> &'static BoolValue {
1083 static instance: crate::rt::LazyV2<BoolValue> = crate::rt::LazyV2::INIT;
1084 instance.get(BoolValue::new)
1085 }
1086 }
1087
1088 impl crate::Clear for BoolValue {
clear(&mut self)1089 fn clear(&mut self) {
1090 self.value = false;
1091 self.unknown_fields.clear();
1092 }
1093 }
1094
1095 impl ::std::fmt::Debug for BoolValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1096 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1097 crate::text_format::fmt(self, f)
1098 }
1099 }
1100
1101 impl crate::reflect::ProtobufValue for BoolValue {
as_ref(&self) -> crate::reflect::ReflectValueRef1102 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
1103 crate::reflect::ReflectValueRef::Message(self)
1104 }
1105 }
1106
1107 #[derive(PartialEq,Clone,Default)]
1108 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1109 pub struct StringValue {
1110 // message fields
1111 pub value: ::std::string::String,
1112 // special fields
1113 #[cfg_attr(feature = "with-serde", serde(skip))]
1114 pub unknown_fields: crate::UnknownFields,
1115 #[cfg_attr(feature = "with-serde", serde(skip))]
1116 pub cached_size: crate::CachedSize,
1117 }
1118
1119 impl<'a> ::std::default::Default for &'a StringValue {
default() -> &'a StringValue1120 fn default() -> &'a StringValue {
1121 <StringValue as crate::Message>::default_instance()
1122 }
1123 }
1124
1125 impl StringValue {
new() -> StringValue1126 pub fn new() -> StringValue {
1127 ::std::default::Default::default()
1128 }
1129
1130 // string value = 1;
1131
1132
get_value(&self) -> &str1133 pub fn get_value(&self) -> &str {
1134 &self.value
1135 }
clear_value(&mut self)1136 pub fn clear_value(&mut self) {
1137 self.value.clear();
1138 }
1139
1140 // Param is passed by value, moved
set_value(&mut self, v: ::std::string::String)1141 pub fn set_value(&mut self, v: ::std::string::String) {
1142 self.value = v;
1143 }
1144
1145 // Mutable pointer to the field.
1146 // If field is not initialized, it is initialized with default value first.
mut_value(&mut self) -> &mut ::std::string::String1147 pub fn mut_value(&mut self) -> &mut ::std::string::String {
1148 &mut self.value
1149 }
1150
1151 // Take field
take_value(&mut self) -> ::std::string::String1152 pub fn take_value(&mut self) -> ::std::string::String {
1153 ::std::mem::replace(&mut self.value, ::std::string::String::new())
1154 }
1155 }
1156
1157 impl crate::Message for StringValue {
is_initialized(&self) -> bool1158 fn is_initialized(&self) -> bool {
1159 true
1160 }
1161
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>1162 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
1163 while !is.eof()? {
1164 let (field_number, wire_type) = is.read_tag_unpack()?;
1165 match field_number {
1166 1 => {
1167 crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?;
1168 },
1169 _ => {
1170 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1171 },
1172 };
1173 }
1174 ::std::result::Result::Ok(())
1175 }
1176
1177 // Compute sizes of nested messages
1178 #[allow(unused_variables)]
compute_size(&self) -> u321179 fn compute_size(&self) -> u32 {
1180 let mut my_size = 0;
1181 if !self.value.is_empty() {
1182 my_size += crate::rt::string_size(1, &self.value);
1183 }
1184 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
1185 self.cached_size.set(my_size);
1186 my_size
1187 }
1188
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>1189 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
1190 if !self.value.is_empty() {
1191 os.write_string(1, &self.value)?;
1192 }
1193 os.write_unknown_fields(self.get_unknown_fields())?;
1194 ::std::result::Result::Ok(())
1195 }
1196
get_cached_size(&self) -> u321197 fn get_cached_size(&self) -> u32 {
1198 self.cached_size.get()
1199 }
1200
get_unknown_fields(&self) -> &crate::UnknownFields1201 fn get_unknown_fields(&self) -> &crate::UnknownFields {
1202 &self.unknown_fields
1203 }
1204
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields1205 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
1206 &mut self.unknown_fields
1207 }
1208
as_any(&self) -> &dyn (::std::any::Any)1209 fn as_any(&self) -> &dyn (::std::any::Any) {
1210 self as &dyn (::std::any::Any)
1211 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1212 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1213 self as &mut dyn (::std::any::Any)
1214 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1215 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1216 self
1217 }
1218
descriptor(&self) -> &'static crate::reflect::MessageDescriptor1219 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
1220 Self::descriptor_static()
1221 }
1222
new() -> StringValue1223 fn new() -> StringValue {
1224 StringValue::new()
1225 }
1226
descriptor_static() -> &'static crate::reflect::MessageDescriptor1227 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
1228 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
1229 descriptor.get(|| {
1230 let mut fields = ::std::vec::Vec::new();
1231 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>(
1232 "value",
1233 |m: &StringValue| { &m.value },
1234 |m: &mut StringValue| { &mut m.value },
1235 ));
1236 crate::reflect::MessageDescriptor::new_pb_name::<StringValue>(
1237 "StringValue",
1238 fields,
1239 file_descriptor_proto()
1240 )
1241 })
1242 }
1243
default_instance() -> &'static StringValue1244 fn default_instance() -> &'static StringValue {
1245 static instance: crate::rt::LazyV2<StringValue> = crate::rt::LazyV2::INIT;
1246 instance.get(StringValue::new)
1247 }
1248 }
1249
1250 impl crate::Clear for StringValue {
clear(&mut self)1251 fn clear(&mut self) {
1252 self.value.clear();
1253 self.unknown_fields.clear();
1254 }
1255 }
1256
1257 impl ::std::fmt::Debug for StringValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1258 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1259 crate::text_format::fmt(self, f)
1260 }
1261 }
1262
1263 impl crate::reflect::ProtobufValue for StringValue {
as_ref(&self) -> crate::reflect::ReflectValueRef1264 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
1265 crate::reflect::ReflectValueRef::Message(self)
1266 }
1267 }
1268
1269 #[derive(PartialEq,Clone,Default)]
1270 #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
1271 pub struct BytesValue {
1272 // message fields
1273 pub value: ::std::vec::Vec<u8>,
1274 // special fields
1275 #[cfg_attr(feature = "with-serde", serde(skip))]
1276 pub unknown_fields: crate::UnknownFields,
1277 #[cfg_attr(feature = "with-serde", serde(skip))]
1278 pub cached_size: crate::CachedSize,
1279 }
1280
1281 impl<'a> ::std::default::Default for &'a BytesValue {
default() -> &'a BytesValue1282 fn default() -> &'a BytesValue {
1283 <BytesValue as crate::Message>::default_instance()
1284 }
1285 }
1286
1287 impl BytesValue {
new() -> BytesValue1288 pub fn new() -> BytesValue {
1289 ::std::default::Default::default()
1290 }
1291
1292 // bytes value = 1;
1293
1294
get_value(&self) -> &[u8]1295 pub fn get_value(&self) -> &[u8] {
1296 &self.value
1297 }
clear_value(&mut self)1298 pub fn clear_value(&mut self) {
1299 self.value.clear();
1300 }
1301
1302 // Param is passed by value, moved
set_value(&mut self, v: ::std::vec::Vec<u8>)1303 pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
1304 self.value = v;
1305 }
1306
1307 // Mutable pointer to the field.
1308 // If field is not initialized, it is initialized with default value first.
mut_value(&mut self) -> &mut ::std::vec::Vec<u8>1309 pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
1310 &mut self.value
1311 }
1312
1313 // Take field
take_value(&mut self) -> ::std::vec::Vec<u8>1314 pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
1315 ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
1316 }
1317 }
1318
1319 impl crate::Message for BytesValue {
is_initialized(&self) -> bool1320 fn is_initialized(&self) -> bool {
1321 true
1322 }
1323
merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()>1324 fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> {
1325 while !is.eof()? {
1326 let (field_number, wire_type) = is.read_tag_unpack()?;
1327 match field_number {
1328 1 => {
1329 crate::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
1330 },
1331 _ => {
1332 crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1333 },
1334 };
1335 }
1336 ::std::result::Result::Ok(())
1337 }
1338
1339 // Compute sizes of nested messages
1340 #[allow(unused_variables)]
compute_size(&self) -> u321341 fn compute_size(&self) -> u32 {
1342 let mut my_size = 0;
1343 if !self.value.is_empty() {
1344 my_size += crate::rt::bytes_size(1, &self.value);
1345 }
1346 my_size += crate::rt::unknown_fields_size(self.get_unknown_fields());
1347 self.cached_size.set(my_size);
1348 my_size
1349 }
1350
write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()>1351 fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> {
1352 if !self.value.is_empty() {
1353 os.write_bytes(1, &self.value)?;
1354 }
1355 os.write_unknown_fields(self.get_unknown_fields())?;
1356 ::std::result::Result::Ok(())
1357 }
1358
get_cached_size(&self) -> u321359 fn get_cached_size(&self) -> u32 {
1360 self.cached_size.get()
1361 }
1362
get_unknown_fields(&self) -> &crate::UnknownFields1363 fn get_unknown_fields(&self) -> &crate::UnknownFields {
1364 &self.unknown_fields
1365 }
1366
mut_unknown_fields(&mut self) -> &mut crate::UnknownFields1367 fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields {
1368 &mut self.unknown_fields
1369 }
1370
as_any(&self) -> &dyn (::std::any::Any)1371 fn as_any(&self) -> &dyn (::std::any::Any) {
1372 self as &dyn (::std::any::Any)
1373 }
as_any_mut(&mut self) -> &mut dyn (::std::any::Any)1374 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1375 self as &mut dyn (::std::any::Any)
1376 }
into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)>1377 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1378 self
1379 }
1380
descriptor(&self) -> &'static crate::reflect::MessageDescriptor1381 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor {
1382 Self::descriptor_static()
1383 }
1384
new() -> BytesValue1385 fn new() -> BytesValue {
1386 BytesValue::new()
1387 }
1388
descriptor_static() -> &'static crate::reflect::MessageDescriptor1389 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor {
1390 static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT;
1391 descriptor.get(|| {
1392 let mut fields = ::std::vec::Vec::new();
1393 fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeBytes>(
1394 "value",
1395 |m: &BytesValue| { &m.value },
1396 |m: &mut BytesValue| { &mut m.value },
1397 ));
1398 crate::reflect::MessageDescriptor::new_pb_name::<BytesValue>(
1399 "BytesValue",
1400 fields,
1401 file_descriptor_proto()
1402 )
1403 })
1404 }
1405
default_instance() -> &'static BytesValue1406 fn default_instance() -> &'static BytesValue {
1407 static instance: crate::rt::LazyV2<BytesValue> = crate::rt::LazyV2::INIT;
1408 instance.get(BytesValue::new)
1409 }
1410 }
1411
1412 impl crate::Clear for BytesValue {
clear(&mut self)1413 fn clear(&mut self) {
1414 self.value.clear();
1415 self.unknown_fields.clear();
1416 }
1417 }
1418
1419 impl ::std::fmt::Debug for BytesValue {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1420 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1421 crate::text_format::fmt(self, f)
1422 }
1423 }
1424
1425 impl crate::reflect::ProtobufValue for BytesValue {
as_ref(&self) -> crate::reflect::ReflectValueRef1426 fn as_ref(&self) -> crate::reflect::ReflectValueRef {
1427 crate::reflect::ReflectValueRef::Message(self)
1428 }
1429 }
1430
1431 static file_descriptor_proto_data: &'static [u8] = b"\
1432 \n\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"#\n\x0bDoub\
1433 leValue\x12\x14\n\x05value\x18\x01\x20\x01(\x01R\x05value\"\"\n\nFloatVa\
1434 lue\x12\x14\n\x05value\x18\x01\x20\x01(\x02R\x05value\"\"\n\nInt64Value\
1435 \x12\x14\n\x05value\x18\x01\x20\x01(\x03R\x05value\"#\n\x0bUInt64Value\
1436 \x12\x14\n\x05value\x18\x01\x20\x01(\x04R\x05value\"\"\n\nInt32Value\x12\
1437 \x14\n\x05value\x18\x01\x20\x01(\x05R\x05value\"#\n\x0bUInt32Value\x12\
1438 \x14\n\x05value\x18\x01\x20\x01(\rR\x05value\"!\n\tBoolValue\x12\x14\n\
1439 \x05value\x18\x01\x20\x01(\x08R\x05value\"#\n\x0bStringValue\x12\x14\n\
1440 \x05value\x18\x01\x20\x01(\tR\x05value\"\"\n\nBytesValue\x12\x14\n\x05va\
1441 lue\x18\x01\x20\x01(\x0cR\x05valueB\x83\x01\n\x13com.google.protobufB\rW\
1442 rappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\
1443 \x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesJ\xc6\
1444 \x1f\n\x06\x12\x04(\0z\x01\n\xdb\x10\n\x01\x0c\x12\x03(\0\x122\xc1\x0c\
1445 \x20Protocol\x20Buffers\x20-\x20Google's\x20data\x20interchange\x20forma\
1446 t\n\x20Copyright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\x20reser\
1447 ved.\n\x20https://developers.google.com/protocol-buffers/\n\n\x20Redistr\
1448 ibution\x20and\x20use\x20in\x20source\x20and\x20binary\x20forms,\x20with\
1449 \x20or\x20without\n\x20modification,\x20are\x20permitted\x20provided\x20\
1450 that\x20the\x20following\x20conditions\x20are\n\x20met:\n\n\x20\x20\x20\
1451 \x20\x20*\x20Redistributions\x20of\x20source\x20code\x20must\x20retain\
1452 \x20the\x20above\x20copyright\n\x20notice,\x20this\x20list\x20of\x20cond\
1453 itions\x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\x20\x20*\
1454 \x20Redistributions\x20in\x20binary\x20form\x20must\x20reproduce\x20the\
1455 \x20above\n\x20copyright\x20notice,\x20this\x20list\x20of\x20conditions\
1456 \x20and\x20the\x20following\x20disclaimer\n\x20in\x20the\x20documentatio\
1457 n\x20and/or\x20other\x20materials\x20provided\x20with\x20the\n\x20distri\
1458 bution.\n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\x20Google\
1459 \x20Inc.\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\x20may\
1460 \x20be\x20used\x20to\x20endorse\x20or\x20promote\x20products\x20derived\
1461 \x20from\n\x20this\x20software\x20without\x20specific\x20prior\x20writte\
1462 n\x20permission.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\
1463 \x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\
1464 \x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\
1465 \x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MER\
1466 CHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\
1467 \x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\
1468 \n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIREC\
1469 T,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONS\
1470 EQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\
1471 \x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\
1472 \x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRU\
1473 PTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIA\
1474 BILITY,\x20WHETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20T\
1475 ORT\n\x20(INCLUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\
1476 \x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\
1477 \x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20D\
1478 AMAGE.\n2\x8c\x04\x20Wrappers\x20for\x20primitive\x20(non-message)\x20ty\
1479 pes.\x20These\x20types\x20are\x20useful\n\x20for\x20embedding\x20primiti\
1480 ves\x20in\x20the\x20`google.protobuf.Any`\x20type\x20and\x20for\x20place\
1481 s\n\x20where\x20we\x20need\x20to\x20distinguish\x20between\x20the\x20abs\
1482 ence\x20of\x20a\x20primitive\n\x20typed\x20field\x20and\x20its\x20defaul\
1483 t\x20value.\n\n\x20These\x20wrappers\x20have\x20no\x20meaningful\x20use\
1484 \x20within\x20repeated\x20fields\x20as\x20they\x20lack\n\x20the\x20abili\
1485 ty\x20to\x20detect\x20presence\x20on\x20individual\x20elements.\n\x20The\
1486 se\x20wrappers\x20have\x20no\x20meaningful\x20use\x20within\x20a\x20map\
1487 \x20or\x20a\x20oneof\x20since\n\x20individual\x20entries\x20of\x20a\x20m\
1488 ap\x20or\x20fields\x20of\x20a\x20oneof\x20can\x20already\x20detect\x20pr\
1489 esence.\n\n\x08\n\x01\x02\x12\x03*\0\x18\n\x08\n\x01\x08\x12\x03,\0;\n\t\
1490 \n\x02\x08%\x12\x03,\0;\n\x08\n\x01\x08\x12\x03-\0\x1f\n\t\n\x02\x08\x1f\
1491 \x12\x03-\0\x1f\n\x08\n\x01\x08\x12\x03.\0H\n\t\n\x02\x08\x0b\x12\x03.\0\
1492 H\n\x08\n\x01\x08\x12\x03/\0,\n\t\n\x02\x08\x01\x12\x03/\0,\n\x08\n\x01\
1493 \x08\x12\x030\0.\n\t\n\x02\x08\x08\x12\x030\0.\n\x08\n\x01\x08\x12\x031\
1494 \0\"\n\t\n\x02\x08\n\x12\x031\0\"\n\x08\n\x01\x08\x12\x032\0!\n\t\n\x02\
1495 \x08$\x12\x032\0!\ng\n\x02\x04\0\x12\x047\0:\x01\x1a[\x20Wrapper\x20mess\
1496 age\x20for\x20`double`.\n\n\x20The\x20JSON\x20representation\x20for\x20`\
1497 DoubleValue`\x20is\x20JSON\x20number.\n\n\n\n\x03\x04\0\x01\x12\x037\x08\
1498 \x13\n\x20\n\x04\x04\0\x02\0\x12\x039\x02\x13\x1a\x13\x20The\x20double\
1499 \x20value.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x039\x02\x08\n\x0c\n\x05\
1500 \x04\0\x02\0\x01\x12\x039\t\x0e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x039\x11\
1501 \x12\ne\n\x02\x04\x01\x12\x04?\0B\x01\x1aY\x20Wrapper\x20message\x20for\
1502 \x20`float`.\n\n\x20The\x20JSON\x20representation\x20for\x20`FloatValue`\
1503 \x20is\x20JSON\x20number.\n\n\n\n\x03\x04\x01\x01\x12\x03?\x08\x12\n\x1f\
1504 \n\x04\x04\x01\x02\0\x12\x03A\x02\x12\x1a\x12\x20The\x20float\x20value.\
1505 \n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03A\x02\x07\n\x0c\n\x05\x04\x01\
1506 \x02\0\x01\x12\x03A\x08\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03A\x10\x11\
1507 \ne\n\x02\x04\x02\x12\x04G\0J\x01\x1aY\x20Wrapper\x20message\x20for\x20`\
1508 int64`.\n\n\x20The\x20JSON\x20representation\x20for\x20`Int64Value`\x20i\
1509 s\x20JSON\x20string.\n\n\n\n\x03\x04\x02\x01\x12\x03G\x08\x12\n\x1f\n\
1510 \x04\x04\x02\x02\0\x12\x03I\x02\x12\x1a\x12\x20The\x20int64\x20value.\n\
1511 \n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03I\x02\x07\n\x0c\n\x05\x04\x02\x02\
1512 \0\x01\x12\x03I\x08\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03I\x10\x11\ng\
1513 \n\x02\x04\x03\x12\x04O\0R\x01\x1a[\x20Wrapper\x20message\x20for\x20`uin\
1514 t64`.\n\n\x20The\x20JSON\x20representation\x20for\x20`UInt64Value`\x20is\
1515 \x20JSON\x20string.\n\n\n\n\x03\x04\x03\x01\x12\x03O\x08\x13\n\x20\n\x04\
1516 \x04\x03\x02\0\x12\x03Q\x02\x13\x1a\x13\x20The\x20uint64\x20value.\n\n\
1517 \x0c\n\x05\x04\x03\x02\0\x05\x12\x03Q\x02\x08\n\x0c\n\x05\x04\x03\x02\0\
1518 \x01\x12\x03Q\t\x0e\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03Q\x11\x12\ne\n\
1519 \x02\x04\x04\x12\x04W\0Z\x01\x1aY\x20Wrapper\x20message\x20for\x20`int32\
1520 `.\n\n\x20The\x20JSON\x20representation\x20for\x20`Int32Value`\x20is\x20\
1521 JSON\x20number.\n\n\n\n\x03\x04\x04\x01\x12\x03W\x08\x12\n\x1f\n\x04\x04\
1522 \x04\x02\0\x12\x03Y\x02\x12\x1a\x12\x20The\x20int32\x20value.\n\n\x0c\n\
1523 \x05\x04\x04\x02\0\x05\x12\x03Y\x02\x07\n\x0c\n\x05\x04\x04\x02\0\x01\
1524 \x12\x03Y\x08\r\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03Y\x10\x11\ng\n\x02\
1525 \x04\x05\x12\x04_\0b\x01\x1a[\x20Wrapper\x20message\x20for\x20`uint32`.\
1526 \n\n\x20The\x20JSON\x20representation\x20for\x20`UInt32Value`\x20is\x20J\
1527 SON\x20number.\n\n\n\n\x03\x04\x05\x01\x12\x03_\x08\x13\n\x20\n\x04\x04\
1528 \x05\x02\0\x12\x03a\x02\x13\x1a\x13\x20The\x20uint32\x20value.\n\n\x0c\n\
1529 \x05\x04\x05\x02\0\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\
1530 \x12\x03a\t\x0e\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03a\x11\x12\no\n\x02\
1531 \x04\x06\x12\x04g\0j\x01\x1ac\x20Wrapper\x20message\x20for\x20`bool`.\n\
1532 \n\x20The\x20JSON\x20representation\x20for\x20`BoolValue`\x20is\x20JSON\
1533 \x20`true`\x20and\x20`false`.\n\n\n\n\x03\x04\x06\x01\x12\x03g\x08\x11\n\
1534 \x1e\n\x04\x04\x06\x02\0\x12\x03i\x02\x11\x1a\x11\x20The\x20bool\x20valu\
1535 e.\n\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03i\x02\x06\n\x0c\n\x05\x04\x06\
1536 \x02\0\x01\x12\x03i\x07\x0c\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03i\x0f\
1537 \x10\ng\n\x02\x04\x07\x12\x04o\0r\x01\x1a[\x20Wrapper\x20message\x20for\
1538 \x20`string`.\n\n\x20The\x20JSON\x20representation\x20for\x20`StringValu\
1539 e`\x20is\x20JSON\x20string.\n\n\n\n\x03\x04\x07\x01\x12\x03o\x08\x13\n\
1540 \x20\n\x04\x04\x07\x02\0\x12\x03q\x02\x13\x1a\x13\x20The\x20string\x20va\
1541 lue.\n\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x03q\x02\x08\n\x0c\n\x05\x04\
1542 \x07\x02\0\x01\x12\x03q\t\x0e\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03q\x11\
1543 \x12\ne\n\x02\x04\x08\x12\x04w\0z\x01\x1aY\x20Wrapper\x20message\x20for\
1544 \x20`bytes`.\n\n\x20The\x20JSON\x20representation\x20for\x20`BytesValue`\
1545 \x20is\x20JSON\x20string.\n\n\n\n\x03\x04\x08\x01\x12\x03w\x08\x12\n\x1f\
1546 \n\x04\x04\x08\x02\0\x12\x03y\x02\x12\x1a\x12\x20The\x20bytes\x20value.\
1547 \n\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\x08\
1548 \x02\0\x01\x12\x03y\x08\r\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03y\x10\x11\
1549 b\x06proto3\
1550 ";
1551
1552 static file_descriptor_proto_lazy: crate::rt::LazyV2<crate::descriptor::FileDescriptorProto> = crate::rt::LazyV2::INIT;
1553
parse_descriptor_proto() -> crate::descriptor::FileDescriptorProto1554 fn parse_descriptor_proto() -> crate::descriptor::FileDescriptorProto {
1555 crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1556 }
1557
file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto1558 pub fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto {
1559 file_descriptor_proto_lazy.get(|| {
1560 parse_descriptor_proto()
1561 })
1562 }
1563