| // This file is generated by rust-protobuf 2.22.0. Do not edit |
| // @generated |
| |
| // https://github.com/rust-lang/rust-clippy/issues/702 |
| #![allow(unknown_lints)] |
| #![allow(clippy::all)] |
| |
| #![allow(unused_attributes)] |
| #![cfg_attr(rustfmt, rustfmt::skip)] |
| |
| #![allow(box_pointers)] |
| #![allow(dead_code)] |
| #![allow(missing_docs)] |
| #![allow(non_camel_case_types)] |
| #![allow(non_snake_case)] |
| #![allow(non_upper_case_globals)] |
| #![allow(trivial_casts)] |
| #![allow(unused_imports)] |
| #![allow(unused_results)] |
| //! Generated file from `google/protobuf/wrappers.proto` |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct DoubleValue { |
| // message fields |
| pub value: f64, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a DoubleValue { |
| fn default() -> &'a DoubleValue { |
| <DoubleValue as crate::Message>::default_instance() |
| } |
| } |
| |
| impl DoubleValue { |
| pub fn new() -> DoubleValue { |
| ::std::default::Default::default() |
| } |
| |
| // double value = 1; |
| |
| |
| pub fn get_value(&self) -> f64 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0.; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: f64) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for DoubleValue { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeFixed64 { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_double()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0. { |
| my_size += 9; |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0. { |
| os.write_double(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> DoubleValue { |
| DoubleValue::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeDouble>( |
| "value", |
| |m: &DoubleValue| { &m.value }, |
| |m: &mut DoubleValue| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<DoubleValue>( |
| "DoubleValue", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static DoubleValue { |
| static instance: crate::rt::LazyV2<DoubleValue> = crate::rt::LazyV2::INIT; |
| instance.get(DoubleValue::new) |
| } |
| } |
| |
| impl crate::Clear for DoubleValue { |
| fn clear(&mut self) { |
| self.value = 0.; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for DoubleValue { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for DoubleValue { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct FloatValue { |
| // message fields |
| pub value: f32, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a FloatValue { |
| fn default() -> &'a FloatValue { |
| <FloatValue as crate::Message>::default_instance() |
| } |
| } |
| |
| impl FloatValue { |
| pub fn new() -> FloatValue { |
| ::std::default::Default::default() |
| } |
| |
| // float value = 1; |
| |
| |
| pub fn get_value(&self) -> f32 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0.; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: f32) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for FloatValue { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeFixed32 { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_float()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0. { |
| my_size += 5; |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0. { |
| os.write_float(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> FloatValue { |
| FloatValue::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeFloat>( |
| "value", |
| |m: &FloatValue| { &m.value }, |
| |m: &mut FloatValue| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<FloatValue>( |
| "FloatValue", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static FloatValue { |
| static instance: crate::rt::LazyV2<FloatValue> = crate::rt::LazyV2::INIT; |
| instance.get(FloatValue::new) |
| } |
| } |
| |
| impl crate::Clear for FloatValue { |
| fn clear(&mut self) { |
| self.value = 0.; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for FloatValue { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for FloatValue { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct Int64Value { |
| // message fields |
| pub value: i64, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a Int64Value { |
| fn default() -> &'a Int64Value { |
| <Int64Value as crate::Message>::default_instance() |
| } |
| } |
| |
| impl Int64Value { |
| pub fn new() -> Int64Value { |
| ::std::default::Default::default() |
| } |
| |
| // int64 value = 1; |
| |
| |
| pub fn get_value(&self) -> i64 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: i64) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for Int64Value { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeVarint { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_int64()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0 { |
| my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0 { |
| os.write_int64(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> Int64Value { |
| Int64Value::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt64>( |
| "value", |
| |m: &Int64Value| { &m.value }, |
| |m: &mut Int64Value| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<Int64Value>( |
| "Int64Value", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static Int64Value { |
| static instance: crate::rt::LazyV2<Int64Value> = crate::rt::LazyV2::INIT; |
| instance.get(Int64Value::new) |
| } |
| } |
| |
| impl crate::Clear for Int64Value { |
| fn clear(&mut self) { |
| self.value = 0; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for Int64Value { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for Int64Value { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct UInt64Value { |
| // message fields |
| pub value: u64, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a UInt64Value { |
| fn default() -> &'a UInt64Value { |
| <UInt64Value as crate::Message>::default_instance() |
| } |
| } |
| |
| impl UInt64Value { |
| pub fn new() -> UInt64Value { |
| ::std::default::Default::default() |
| } |
| |
| // uint64 value = 1; |
| |
| |
| pub fn get_value(&self) -> u64 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: u64) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for UInt64Value { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeVarint { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_uint64()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0 { |
| my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0 { |
| os.write_uint64(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> UInt64Value { |
| UInt64Value::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeUint64>( |
| "value", |
| |m: &UInt64Value| { &m.value }, |
| |m: &mut UInt64Value| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<UInt64Value>( |
| "UInt64Value", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static UInt64Value { |
| static instance: crate::rt::LazyV2<UInt64Value> = crate::rt::LazyV2::INIT; |
| instance.get(UInt64Value::new) |
| } |
| } |
| |
| impl crate::Clear for UInt64Value { |
| fn clear(&mut self) { |
| self.value = 0; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for UInt64Value { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for UInt64Value { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct Int32Value { |
| // message fields |
| pub value: i32, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a Int32Value { |
| fn default() -> &'a Int32Value { |
| <Int32Value as crate::Message>::default_instance() |
| } |
| } |
| |
| impl Int32Value { |
| pub fn new() -> Int32Value { |
| ::std::default::Default::default() |
| } |
| |
| // int32 value = 1; |
| |
| |
| pub fn get_value(&self) -> i32 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: i32) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for Int32Value { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeVarint { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_int32()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0 { |
| my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0 { |
| os.write_int32(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> Int32Value { |
| Int32Value::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeInt32>( |
| "value", |
| |m: &Int32Value| { &m.value }, |
| |m: &mut Int32Value| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<Int32Value>( |
| "Int32Value", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static Int32Value { |
| static instance: crate::rt::LazyV2<Int32Value> = crate::rt::LazyV2::INIT; |
| instance.get(Int32Value::new) |
| } |
| } |
| |
| impl crate::Clear for Int32Value { |
| fn clear(&mut self) { |
| self.value = 0; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for Int32Value { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for Int32Value { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct UInt32Value { |
| // message fields |
| pub value: u32, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a UInt32Value { |
| fn default() -> &'a UInt32Value { |
| <UInt32Value as crate::Message>::default_instance() |
| } |
| } |
| |
| impl UInt32Value { |
| pub fn new() -> UInt32Value { |
| ::std::default::Default::default() |
| } |
| |
| // uint32 value = 1; |
| |
| |
| pub fn get_value(&self) -> u32 { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = 0; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: u32) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for UInt32Value { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeVarint { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_uint32()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != 0 { |
| my_size += crate::rt::value_size(1, self.value, crate::wire_format::WireTypeVarint); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != 0 { |
| os.write_uint32(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> UInt32Value { |
| UInt32Value::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeUint32>( |
| "value", |
| |m: &UInt32Value| { &m.value }, |
| |m: &mut UInt32Value| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<UInt32Value>( |
| "UInt32Value", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static UInt32Value { |
| static instance: crate::rt::LazyV2<UInt32Value> = crate::rt::LazyV2::INIT; |
| instance.get(UInt32Value::new) |
| } |
| } |
| |
| impl crate::Clear for UInt32Value { |
| fn clear(&mut self) { |
| self.value = 0; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for UInt32Value { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for UInt32Value { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct BoolValue { |
| // message fields |
| pub value: bool, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a BoolValue { |
| fn default() -> &'a BoolValue { |
| <BoolValue as crate::Message>::default_instance() |
| } |
| } |
| |
| impl BoolValue { |
| pub fn new() -> BoolValue { |
| ::std::default::Default::default() |
| } |
| |
| // bool value = 1; |
| |
| |
| pub fn get_value(&self) -> bool { |
| self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value = false; |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: bool) { |
| self.value = v; |
| } |
| } |
| |
| impl crate::Message for BoolValue { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| if wire_type != crate::wire_format::WireTypeVarint { |
| return ::std::result::Result::Err(crate::rt::unexpected_wire_type(wire_type)); |
| } |
| let tmp = is.read_bool()?; |
| self.value = tmp; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if self.value != false { |
| my_size += 2; |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if self.value != false { |
| os.write_bool(1, self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> BoolValue { |
| BoolValue::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeBool>( |
| "value", |
| |m: &BoolValue| { &m.value }, |
| |m: &mut BoolValue| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<BoolValue>( |
| "BoolValue", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static BoolValue { |
| static instance: crate::rt::LazyV2<BoolValue> = crate::rt::LazyV2::INIT; |
| instance.get(BoolValue::new) |
| } |
| } |
| |
| impl crate::Clear for BoolValue { |
| fn clear(&mut self) { |
| self.value = false; |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for BoolValue { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for BoolValue { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct StringValue { |
| // message fields |
| pub value: ::std::string::String, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a StringValue { |
| fn default() -> &'a StringValue { |
| <StringValue as crate::Message>::default_instance() |
| } |
| } |
| |
| impl StringValue { |
| pub fn new() -> StringValue { |
| ::std::default::Default::default() |
| } |
| |
| // string value = 1; |
| |
| |
| pub fn get_value(&self) -> &str { |
| &self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value.clear(); |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: ::std::string::String) { |
| self.value = v; |
| } |
| |
| // Mutable pointer to the field. |
| // If field is not initialized, it is initialized with default value first. |
| pub fn mut_value(&mut self) -> &mut ::std::string::String { |
| &mut self.value |
| } |
| |
| // Take field |
| pub fn take_value(&mut self) -> ::std::string::String { |
| ::std::mem::replace(&mut self.value, ::std::string::String::new()) |
| } |
| } |
| |
| impl crate::Message for StringValue { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.value)?; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if !self.value.is_empty() { |
| my_size += crate::rt::string_size(1, &self.value); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if !self.value.is_empty() { |
| os.write_string(1, &self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> StringValue { |
| StringValue::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeString>( |
| "value", |
| |m: &StringValue| { &m.value }, |
| |m: &mut StringValue| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<StringValue>( |
| "StringValue", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static StringValue { |
| static instance: crate::rt::LazyV2<StringValue> = crate::rt::LazyV2::INIT; |
| instance.get(StringValue::new) |
| } |
| } |
| |
| impl crate::Clear for StringValue { |
| fn clear(&mut self) { |
| self.value.clear(); |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for StringValue { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for StringValue { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| #[derive(PartialEq,Clone,Default)] |
| #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] |
| pub struct BytesValue { |
| // message fields |
| pub value: ::std::vec::Vec<u8>, |
| // special fields |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub unknown_fields: crate::UnknownFields, |
| #[cfg_attr(feature = "with-serde", serde(skip))] |
| pub cached_size: crate::CachedSize, |
| } |
| |
| impl<'a> ::std::default::Default for &'a BytesValue { |
| fn default() -> &'a BytesValue { |
| <BytesValue as crate::Message>::default_instance() |
| } |
| } |
| |
| impl BytesValue { |
| pub fn new() -> BytesValue { |
| ::std::default::Default::default() |
| } |
| |
| // bytes value = 1; |
| |
| |
| pub fn get_value(&self) -> &[u8] { |
| &self.value |
| } |
| pub fn clear_value(&mut self) { |
| self.value.clear(); |
| } |
| |
| // Param is passed by value, moved |
| pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) { |
| self.value = v; |
| } |
| |
| // Mutable pointer to the field. |
| // If field is not initialized, it is initialized with default value first. |
| pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> { |
| &mut self.value |
| } |
| |
| // Take field |
| pub fn take_value(&mut self) -> ::std::vec::Vec<u8> { |
| ::std::mem::replace(&mut self.value, ::std::vec::Vec::new()) |
| } |
| } |
| |
| impl crate::Message for BytesValue { |
| fn is_initialized(&self) -> bool { |
| true |
| } |
| |
| fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::ProtobufResult<()> { |
| while !is.eof()? { |
| let (field_number, wire_type) = is.read_tag_unpack()?; |
| match field_number { |
| 1 => { |
| crate::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?; |
| }, |
| _ => { |
| crate::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?; |
| }, |
| }; |
| } |
| ::std::result::Result::Ok(()) |
| } |
| |
| // Compute sizes of nested messages |
| #[allow(unused_variables)] |
| fn compute_size(&self) -> u32 { |
| let mut my_size = 0; |
| if !self.value.is_empty() { |
| my_size += crate::rt::bytes_size(1, &self.value); |
| } |
| my_size += crate::rt::unknown_fields_size(self.get_unknown_fields()); |
| self.cached_size.set(my_size); |
| my_size |
| } |
| |
| fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::ProtobufResult<()> { |
| if !self.value.is_empty() { |
| os.write_bytes(1, &self.value)?; |
| } |
| os.write_unknown_fields(self.get_unknown_fields())?; |
| ::std::result::Result::Ok(()) |
| } |
| |
| fn get_cached_size(&self) -> u32 { |
| self.cached_size.get() |
| } |
| |
| fn get_unknown_fields(&self) -> &crate::UnknownFields { |
| &self.unknown_fields |
| } |
| |
| fn mut_unknown_fields(&mut self) -> &mut crate::UnknownFields { |
| &mut self.unknown_fields |
| } |
| |
| fn as_any(&self) -> &dyn (::std::any::Any) { |
| self as &dyn (::std::any::Any) |
| } |
| fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) { |
| self as &mut dyn (::std::any::Any) |
| } |
| fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> { |
| self |
| } |
| |
| fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { |
| Self::descriptor_static() |
| } |
| |
| fn new() -> BytesValue { |
| BytesValue::new() |
| } |
| |
| fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { |
| static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; |
| descriptor.get(|| { |
| let mut fields = ::std::vec::Vec::new(); |
| fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeBytes>( |
| "value", |
| |m: &BytesValue| { &m.value }, |
| |m: &mut BytesValue| { &mut m.value }, |
| )); |
| crate::reflect::MessageDescriptor::new_pb_name::<BytesValue>( |
| "BytesValue", |
| fields, |
| file_descriptor_proto() |
| ) |
| }) |
| } |
| |
| fn default_instance() -> &'static BytesValue { |
| static instance: crate::rt::LazyV2<BytesValue> = crate::rt::LazyV2::INIT; |
| instance.get(BytesValue::new) |
| } |
| } |
| |
| impl crate::Clear for BytesValue { |
| fn clear(&mut self) { |
| self.value.clear(); |
| self.unknown_fields.clear(); |
| } |
| } |
| |
| impl ::std::fmt::Debug for BytesValue { |
| fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { |
| crate::text_format::fmt(self, f) |
| } |
| } |
| |
| impl crate::reflect::ProtobufValue for BytesValue { |
| fn as_ref(&self) -> crate::reflect::ReflectValueRef { |
| crate::reflect::ReflectValueRef::Message(self) |
| } |
| } |
| |
| static file_descriptor_proto_data: &'static [u8] = b"\ |
| \n\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf\"#\n\x0bDoub\ |
| leValue\x12\x14\n\x05value\x18\x01\x20\x01(\x01R\x05value\"\"\n\nFloatVa\ |
| lue\x12\x14\n\x05value\x18\x01\x20\x01(\x02R\x05value\"\"\n\nInt64Value\ |
| \x12\x14\n\x05value\x18\x01\x20\x01(\x03R\x05value\"#\n\x0bUInt64Value\ |
| \x12\x14\n\x05value\x18\x01\x20\x01(\x04R\x05value\"\"\n\nInt32Value\x12\ |
| \x14\n\x05value\x18\x01\x20\x01(\x05R\x05value\"#\n\x0bUInt32Value\x12\ |
| \x14\n\x05value\x18\x01\x20\x01(\rR\x05value\"!\n\tBoolValue\x12\x14\n\ |
| \x05value\x18\x01\x20\x01(\x08R\x05value\"#\n\x0bStringValue\x12\x14\n\ |
| \x05value\x18\x01\x20\x01(\tR\x05value\"\"\n\nBytesValue\x12\x14\n\x05va\ |
| lue\x18\x01\x20\x01(\x0cR\x05valueB\x83\x01\n\x13com.google.protobufB\rW\ |
| rappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\ |
| \x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesJ\xc6\ |
| \x1f\n\x06\x12\x04(\0z\x01\n\xdb\x10\n\x01\x0c\x12\x03(\0\x122\xc1\x0c\ |
| \x20Protocol\x20Buffers\x20-\x20Google's\x20data\x20interchange\x20forma\ |
| t\n\x20Copyright\x202008\x20Google\x20Inc.\x20\x20All\x20rights\x20reser\ |
| ved.\n\x20https://developers.google.com/protocol-buffers/\n\n\x20Redistr\ |
| ibution\x20and\x20use\x20in\x20source\x20and\x20binary\x20forms,\x20with\ |
| \x20or\x20without\n\x20modification,\x20are\x20permitted\x20provided\x20\ |
| that\x20the\x20following\x20conditions\x20are\n\x20met:\n\n\x20\x20\x20\ |
| \x20\x20*\x20Redistributions\x20of\x20source\x20code\x20must\x20retain\ |
| \x20the\x20above\x20copyright\n\x20notice,\x20this\x20list\x20of\x20cond\ |
| itions\x20and\x20the\x20following\x20disclaimer.\n\x20\x20\x20\x20\x20*\ |
| \x20Redistributions\x20in\x20binary\x20form\x20must\x20reproduce\x20the\ |
| \x20above\n\x20copyright\x20notice,\x20this\x20list\x20of\x20conditions\ |
| \x20and\x20the\x20following\x20disclaimer\n\x20in\x20the\x20documentatio\ |
| n\x20and/or\x20other\x20materials\x20provided\x20with\x20the\n\x20distri\ |
| bution.\n\x20\x20\x20\x20\x20*\x20Neither\x20the\x20name\x20of\x20Google\ |
| \x20Inc.\x20nor\x20the\x20names\x20of\x20its\n\x20contributors\x20may\ |
| \x20be\x20used\x20to\x20endorse\x20or\x20promote\x20products\x20derived\ |
| \x20from\n\x20this\x20software\x20without\x20specific\x20prior\x20writte\ |
| n\x20permission.\n\n\x20THIS\x20SOFTWARE\x20IS\x20PROVIDED\x20BY\x20THE\ |
| \x20COPYRIGHT\x20HOLDERS\x20AND\x20CONTRIBUTORS\n\x20\"AS\x20IS\"\x20AND\ |
| \x20ANY\x20EXPRESS\x20OR\x20IMPLIED\x20WARRANTIES,\x20INCLUDING,\x20BUT\ |
| \x20NOT\n\x20LIMITED\x20TO,\x20THE\x20IMPLIED\x20WARRANTIES\x20OF\x20MER\ |
| CHANTABILITY\x20AND\x20FITNESS\x20FOR\n\x20A\x20PARTICULAR\x20PURPOSE\ |
| \x20ARE\x20DISCLAIMED.\x20IN\x20NO\x20EVENT\x20SHALL\x20THE\x20COPYRIGHT\ |
| \n\x20OWNER\x20OR\x20CONTRIBUTORS\x20BE\x20LIABLE\x20FOR\x20ANY\x20DIREC\ |
| T,\x20INDIRECT,\x20INCIDENTAL,\n\x20SPECIAL,\x20EXEMPLARY,\x20OR\x20CONS\ |
| EQUENTIAL\x20DAMAGES\x20(INCLUDING,\x20BUT\x20NOT\n\x20LIMITED\x20TO,\ |
| \x20PROCUREMENT\x20OF\x20SUBSTITUTE\x20GOODS\x20OR\x20SERVICES;\x20LOSS\ |
| \x20OF\x20USE,\n\x20DATA,\x20OR\x20PROFITS;\x20OR\x20BUSINESS\x20INTERRU\ |
| PTION)\x20HOWEVER\x20CAUSED\x20AND\x20ON\x20ANY\n\x20THEORY\x20OF\x20LIA\ |
| BILITY,\x20WHETHER\x20IN\x20CONTRACT,\x20STRICT\x20LIABILITY,\x20OR\x20T\ |
| ORT\n\x20(INCLUDING\x20NEGLIGENCE\x20OR\x20OTHERWISE)\x20ARISING\x20IN\ |
| \x20ANY\x20WAY\x20OUT\x20OF\x20THE\x20USE\n\x20OF\x20THIS\x20SOFTWARE,\ |
| \x20EVEN\x20IF\x20ADVISED\x20OF\x20THE\x20POSSIBILITY\x20OF\x20SUCH\x20D\ |
| AMAGE.\n2\x8c\x04\x20Wrappers\x20for\x20primitive\x20(non-message)\x20ty\ |
| pes.\x20These\x20types\x20are\x20useful\n\x20for\x20embedding\x20primiti\ |
| ves\x20in\x20the\x20`google.protobuf.Any`\x20type\x20and\x20for\x20place\ |
| s\n\x20where\x20we\x20need\x20to\x20distinguish\x20between\x20the\x20abs\ |
| ence\x20of\x20a\x20primitive\n\x20typed\x20field\x20and\x20its\x20defaul\ |
| t\x20value.\n\n\x20These\x20wrappers\x20have\x20no\x20meaningful\x20use\ |
| \x20within\x20repeated\x20fields\x20as\x20they\x20lack\n\x20the\x20abili\ |
| ty\x20to\x20detect\x20presence\x20on\x20individual\x20elements.\n\x20The\ |
| se\x20wrappers\x20have\x20no\x20meaningful\x20use\x20within\x20a\x20map\ |
| \x20or\x20a\x20oneof\x20since\n\x20individual\x20entries\x20of\x20a\x20m\ |
| ap\x20or\x20fields\x20of\x20a\x20oneof\x20can\x20already\x20detect\x20pr\ |
| esence.\n\n\x08\n\x01\x02\x12\x03*\0\x18\n\x08\n\x01\x08\x12\x03,\0;\n\t\ |
| \n\x02\x08%\x12\x03,\0;\n\x08\n\x01\x08\x12\x03-\0\x1f\n\t\n\x02\x08\x1f\ |
| \x12\x03-\0\x1f\n\x08\n\x01\x08\x12\x03.\0H\n\t\n\x02\x08\x0b\x12\x03.\0\ |
| H\n\x08\n\x01\x08\x12\x03/\0,\n\t\n\x02\x08\x01\x12\x03/\0,\n\x08\n\x01\ |
| \x08\x12\x030\0.\n\t\n\x02\x08\x08\x12\x030\0.\n\x08\n\x01\x08\x12\x031\ |
| \0\"\n\t\n\x02\x08\n\x12\x031\0\"\n\x08\n\x01\x08\x12\x032\0!\n\t\n\x02\ |
| \x08$\x12\x032\0!\ng\n\x02\x04\0\x12\x047\0:\x01\x1a[\x20Wrapper\x20mess\ |
| age\x20for\x20`double`.\n\n\x20The\x20JSON\x20representation\x20for\x20`\ |
| DoubleValue`\x20is\x20JSON\x20number.\n\n\n\n\x03\x04\0\x01\x12\x037\x08\ |
| \x13\n\x20\n\x04\x04\0\x02\0\x12\x039\x02\x13\x1a\x13\x20The\x20double\ |
| \x20value.\n\n\x0c\n\x05\x04\0\x02\0\x05\x12\x039\x02\x08\n\x0c\n\x05\ |
| \x04\0\x02\0\x01\x12\x039\t\x0e\n\x0c\n\x05\x04\0\x02\0\x03\x12\x039\x11\ |
| \x12\ne\n\x02\x04\x01\x12\x04?\0B\x01\x1aY\x20Wrapper\x20message\x20for\ |
| \x20`float`.\n\n\x20The\x20JSON\x20representation\x20for\x20`FloatValue`\ |
| \x20is\x20JSON\x20number.\n\n\n\n\x03\x04\x01\x01\x12\x03?\x08\x12\n\x1f\ |
| \n\x04\x04\x01\x02\0\x12\x03A\x02\x12\x1a\x12\x20The\x20float\x20value.\ |
| \n\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03A\x02\x07\n\x0c\n\x05\x04\x01\ |
| \x02\0\x01\x12\x03A\x08\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03A\x10\x11\ |
| \ne\n\x02\x04\x02\x12\x04G\0J\x01\x1aY\x20Wrapper\x20message\x20for\x20`\ |
| int64`.\n\n\x20The\x20JSON\x20representation\x20for\x20`Int64Value`\x20i\ |
| s\x20JSON\x20string.\n\n\n\n\x03\x04\x02\x01\x12\x03G\x08\x12\n\x1f\n\ |
| \x04\x04\x02\x02\0\x12\x03I\x02\x12\x1a\x12\x20The\x20int64\x20value.\n\ |
| \n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03I\x02\x07\n\x0c\n\x05\x04\x02\x02\ |
| \0\x01\x12\x03I\x08\r\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03I\x10\x11\ng\ |
| \n\x02\x04\x03\x12\x04O\0R\x01\x1a[\x20Wrapper\x20message\x20for\x20`uin\ |
| t64`.\n\n\x20The\x20JSON\x20representation\x20for\x20`UInt64Value`\x20is\ |
| \x20JSON\x20string.\n\n\n\n\x03\x04\x03\x01\x12\x03O\x08\x13\n\x20\n\x04\ |
| \x04\x03\x02\0\x12\x03Q\x02\x13\x1a\x13\x20The\x20uint64\x20value.\n\n\ |
| \x0c\n\x05\x04\x03\x02\0\x05\x12\x03Q\x02\x08\n\x0c\n\x05\x04\x03\x02\0\ |
| \x01\x12\x03Q\t\x0e\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03Q\x11\x12\ne\n\ |
| \x02\x04\x04\x12\x04W\0Z\x01\x1aY\x20Wrapper\x20message\x20for\x20`int32\ |
| `.\n\n\x20The\x20JSON\x20representation\x20for\x20`Int32Value`\x20is\x20\ |
| JSON\x20number.\n\n\n\n\x03\x04\x04\x01\x12\x03W\x08\x12\n\x1f\n\x04\x04\ |
| \x04\x02\0\x12\x03Y\x02\x12\x1a\x12\x20The\x20int32\x20value.\n\n\x0c\n\ |
| \x05\x04\x04\x02\0\x05\x12\x03Y\x02\x07\n\x0c\n\x05\x04\x04\x02\0\x01\ |
| \x12\x03Y\x08\r\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03Y\x10\x11\ng\n\x02\ |
| \x04\x05\x12\x04_\0b\x01\x1a[\x20Wrapper\x20message\x20for\x20`uint32`.\ |
| \n\n\x20The\x20JSON\x20representation\x20for\x20`UInt32Value`\x20is\x20J\ |
| SON\x20number.\n\n\n\n\x03\x04\x05\x01\x12\x03_\x08\x13\n\x20\n\x04\x04\ |
| \x05\x02\0\x12\x03a\x02\x13\x1a\x13\x20The\x20uint32\x20value.\n\n\x0c\n\ |
| \x05\x04\x05\x02\0\x05\x12\x03a\x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\ |
| \x12\x03a\t\x0e\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03a\x11\x12\no\n\x02\ |
| \x04\x06\x12\x04g\0j\x01\x1ac\x20Wrapper\x20message\x20for\x20`bool`.\n\ |
| \n\x20The\x20JSON\x20representation\x20for\x20`BoolValue`\x20is\x20JSON\ |
| \x20`true`\x20and\x20`false`.\n\n\n\n\x03\x04\x06\x01\x12\x03g\x08\x11\n\ |
| \x1e\n\x04\x04\x06\x02\0\x12\x03i\x02\x11\x1a\x11\x20The\x20bool\x20valu\ |
| e.\n\n\x0c\n\x05\x04\x06\x02\0\x05\x12\x03i\x02\x06\n\x0c\n\x05\x04\x06\ |
| \x02\0\x01\x12\x03i\x07\x0c\n\x0c\n\x05\x04\x06\x02\0\x03\x12\x03i\x0f\ |
| \x10\ng\n\x02\x04\x07\x12\x04o\0r\x01\x1a[\x20Wrapper\x20message\x20for\ |
| \x20`string`.\n\n\x20The\x20JSON\x20representation\x20for\x20`StringValu\ |
| e`\x20is\x20JSON\x20string.\n\n\n\n\x03\x04\x07\x01\x12\x03o\x08\x13\n\ |
| \x20\n\x04\x04\x07\x02\0\x12\x03q\x02\x13\x1a\x13\x20The\x20string\x20va\ |
| lue.\n\n\x0c\n\x05\x04\x07\x02\0\x05\x12\x03q\x02\x08\n\x0c\n\x05\x04\ |
| \x07\x02\0\x01\x12\x03q\t\x0e\n\x0c\n\x05\x04\x07\x02\0\x03\x12\x03q\x11\ |
| \x12\ne\n\x02\x04\x08\x12\x04w\0z\x01\x1aY\x20Wrapper\x20message\x20for\ |
| \x20`bytes`.\n\n\x20The\x20JSON\x20representation\x20for\x20`BytesValue`\ |
| \x20is\x20JSON\x20string.\n\n\n\n\x03\x04\x08\x01\x12\x03w\x08\x12\n\x1f\ |
| \n\x04\x04\x08\x02\0\x12\x03y\x02\x12\x1a\x12\x20The\x20bytes\x20value.\ |
| \n\n\x0c\n\x05\x04\x08\x02\0\x05\x12\x03y\x02\x07\n\x0c\n\x05\x04\x08\ |
| \x02\0\x01\x12\x03y\x08\r\n\x0c\n\x05\x04\x08\x02\0\x03\x12\x03y\x10\x11\ |
| b\x06proto3\ |
| "; |
| |
| static file_descriptor_proto_lazy: crate::rt::LazyV2<crate::descriptor::FileDescriptorProto> = crate::rt::LazyV2::INIT; |
| |
| fn parse_descriptor_proto() -> crate::descriptor::FileDescriptorProto { |
| crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() |
| } |
| |
| pub fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto { |
| file_descriptor_proto_lazy.get(|| { |
| parse_descriptor_proto() |
| }) |
| } |