#![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_results)]
#![allow(unused_mut)]
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DoubleValue {
pub value: f64,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &DoubleValue| { &m.value },
|m: &mut DoubleValue| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<DoubleValue>(
"DoubleValue",
fields,
oneofs,
)
}
}
impl crate::Message for DoubleValue {
const NAME: &'static str = "DoubleValue";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
9 => {
self.value = is.read_double()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0. {
my_size += 1 + 8;
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0. {
os.write_double(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> DoubleValue {
DoubleValue::new()
}
fn clear(&mut self) {
self.value = 0.;
self.special_fields.clear();
}
fn default_instance() -> &'static DoubleValue {
static instance: DoubleValue = DoubleValue {
value: 0.,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for DoubleValue {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DoubleValue").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct FloatValue {
pub value: f32,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &FloatValue| { &m.value },
|m: &mut FloatValue| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<FloatValue>(
"FloatValue",
fields,
oneofs,
)
}
}
impl crate::Message for FloatValue {
const NAME: &'static str = "FloatValue";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
13 => {
self.value = is.read_float()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0. {
my_size += 1 + 4;
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0. {
os.write_float(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> FloatValue {
FloatValue::new()
}
fn clear(&mut self) {
self.value = 0.;
self.special_fields.clear();
}
fn default_instance() -> &'static FloatValue {
static instance: FloatValue = FloatValue {
value: 0.,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for FloatValue {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("FloatValue").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct Int64Value {
pub value: i64,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &Int64Value| { &m.value },
|m: &mut Int64Value| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<Int64Value>(
"Int64Value",
fields,
oneofs,
)
}
}
impl crate::Message for Int64Value {
const NAME: &'static str = "Int64Value";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = is.read_int64()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0 {
my_size += crate::rt::int64_size(1, self.value);
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0 {
os.write_int64(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> Int64Value {
Int64Value::new()
}
fn clear(&mut self) {
self.value = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static Int64Value {
static instance: Int64Value = Int64Value {
value: 0,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for Int64Value {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("Int64Value").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct UInt64Value {
pub value: u64,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &UInt64Value| { &m.value },
|m: &mut UInt64Value| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<UInt64Value>(
"UInt64Value",
fields,
oneofs,
)
}
}
impl crate::Message for UInt64Value {
const NAME: &'static str = "UInt64Value";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = is.read_uint64()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0 {
my_size += crate::rt::uint64_size(1, self.value);
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0 {
os.write_uint64(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> UInt64Value {
UInt64Value::new()
}
fn clear(&mut self) {
self.value = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static UInt64Value {
static instance: UInt64Value = UInt64Value {
value: 0,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for UInt64Value {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("UInt64Value").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct Int32Value {
pub value: i32,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &Int32Value| { &m.value },
|m: &mut Int32Value| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<Int32Value>(
"Int32Value",
fields,
oneofs,
)
}
}
impl crate::Message for Int32Value {
const NAME: &'static str = "Int32Value";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = is.read_int32()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0 {
my_size += crate::rt::int32_size(1, self.value);
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0 {
os.write_int32(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> Int32Value {
Int32Value::new()
}
fn clear(&mut self) {
self.value = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static Int32Value {
static instance: Int32Value = Int32Value {
value: 0,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for Int32Value {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("Int32Value").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct UInt32Value {
pub value: u32,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &UInt32Value| { &m.value },
|m: &mut UInt32Value| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<UInt32Value>(
"UInt32Value",
fields,
oneofs,
)
}
}
impl crate::Message for UInt32Value {
const NAME: &'static str = "UInt32Value";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = is.read_uint32()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != 0 {
my_size += crate::rt::uint32_size(1, self.value);
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != 0 {
os.write_uint32(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> UInt32Value {
UInt32Value::new()
}
fn clear(&mut self) {
self.value = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static UInt32Value {
static instance: UInt32Value = UInt32Value {
value: 0,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for UInt32Value {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("UInt32Value").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct BoolValue {
pub value: bool,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &BoolValue| { &m.value },
|m: &mut BoolValue| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<BoolValue>(
"BoolValue",
fields,
oneofs,
)
}
}
impl crate::Message for BoolValue {
const NAME: &'static str = "BoolValue";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.value = is.read_bool()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if self.value != false {
my_size += 1 + 1;
}
my_size += crate::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if self.value != false {
os.write_bool(1, self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> BoolValue {
BoolValue::new()
}
fn clear(&mut self) {
self.value = false;
self.special_fields.clear();
}
fn default_instance() -> &'static BoolValue {
static instance: BoolValue = BoolValue {
value: false,
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for BoolValue {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("BoolValue").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct StringValue {
pub value: ::std::string::String,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &StringValue| { &m.value },
|m: &mut StringValue| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<StringValue>(
"StringValue",
fields,
oneofs,
)
}
}
impl crate::Message for StringValue {
const NAME: &'static str = "StringValue";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.value = is.read_string()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
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.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if !self.value.is_empty() {
os.write_string(1, &self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> StringValue {
StringValue::new()
}
fn clear(&mut self) {
self.value.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static StringValue {
static instance: StringValue = StringValue {
value: ::std::string::String::new(),
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for StringValue {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("StringValue").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct BytesValue {
pub value: ::std::vec::Vec<u8>,
pub special_fields: crate::SpecialFields,
}
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()
}
fn generated_message_descriptor_data() -> crate::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(crate::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"value",
|m: &BytesValue| { &m.value },
|m: &mut BytesValue| { &mut m.value },
));
crate::reflect::GeneratedMessageDescriptorData::new_2::<BytesValue>(
"BytesValue",
fields,
oneofs,
)
}
}
impl crate::Message for BytesValue {
const NAME: &'static str = "BytesValue";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut crate::CodedInputStream<'_>) -> crate::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.value = is.read_bytes()?;
},
tag => {
crate::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
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.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut crate::CodedOutputStream<'_>) -> crate::Result<()> {
if !self.value.is_empty() {
os.write_bytes(1, &self.value)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &crate::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut crate::SpecialFields {
&mut self.special_fields
}
fn new() -> BytesValue {
BytesValue::new()
}
fn clear(&mut self) {
self.value.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static BytesValue {
static instance: BytesValue = BytesValue {
value: ::std::vec::Vec::new(),
special_fields: crate::SpecialFields::new(),
};
&instance
}
}
impl crate::MessageFull for BytesValue {
fn descriptor() -> crate::reflect::MessageDescriptor {
static descriptor: crate::rt::Lazy<crate::reflect::MessageDescriptor> = crate::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("BytesValue").unwrap()).clone()
}
}
impl ::std::fmt::Display 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 {
type RuntimeType = crate::reflect::rt::RuntimeTypeMessage<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\
";
fn file_descriptor_proto() -> &'static crate::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: crate::rt::Lazy<crate::descriptor::FileDescriptorProto> = crate::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
crate::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static crate::reflect::FileDescriptor {
static generated_file_descriptor_lazy: crate::rt::Lazy<crate::reflect::GeneratedFileDescriptor> = crate::rt::Lazy::new();
static file_descriptor: crate::rt::Lazy<crate::reflect::FileDescriptor> = crate::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(0);
let mut messages = ::std::vec::Vec::with_capacity(9);
messages.push(DoubleValue::generated_message_descriptor_data());
messages.push(FloatValue::generated_message_descriptor_data());
messages.push(Int64Value::generated_message_descriptor_data());
messages.push(UInt64Value::generated_message_descriptor_data());
messages.push(Int32Value::generated_message_descriptor_data());
messages.push(UInt32Value::generated_message_descriptor_data());
messages.push(BoolValue::generated_message_descriptor_data());
messages.push(StringValue::generated_message_descriptor_data());
messages.push(BytesValue::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(0);
crate::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
crate::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}