#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![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)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct TestProto3 {
pub int32_zero: i32,
pub int64_zero: i64,
pub sint32_zero: i32,
pub sint64_zero: i64,
pub uint32_zero: u32,
pub uint64_zero: u64,
pub fixed32_zero: u32,
pub fixed64_zero: u64,
pub sfixed32_zero: i32,
pub sfixed64_zero: i64,
pub float_zero: f32,
pub int32_one: i32,
pub int64_one: i64,
pub sint32_one: i32,
pub sint64_one: i64,
pub uint32_one: u32,
pub uint64_one: u64,
pub fixed32_one: u32,
pub fixed64_one: u64,
pub sfixed32_one: i32,
pub sfixed64_one: i64,
pub float_one: f32,
pub int32_undef: i32,
pub int64_undef: i64,
pub sint32_undef: i32,
pub sint64_undef: i64,
pub uint32_undef: u32,
pub uint64_undef: u64,
pub fixed32_undef: u32,
pub fixed64_undef: u64,
pub sfixed32_undef: i32,
pub sfixed64_undef: i64,
pub float_undef: f32,
pub bool_undef: bool,
pub string_foo: ::std::string::String,
pub string_bar: ::std::string::String,
pub string_undef: ::std::string::String,
pub bytes_foo: ::std::vec::Vec<u8>,
pub bytes_bar: ::std::vec::Vec<u8>,
pub bytes_undef: ::std::vec::Vec<u8>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a TestProto3 {
fn default() -> &'a TestProto3 {
<TestProto3 as ::protobuf::Message>::default_instance()
}
}
impl TestProto3 {
pub fn new() -> TestProto3 {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(40);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int32_zero",
|m: &TestProto3| { &m.int32_zero },
|m: &mut TestProto3| { &mut m.int32_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int64_zero",
|m: &TestProto3| { &m.int64_zero },
|m: &mut TestProto3| { &mut m.int64_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint32_zero",
|m: &TestProto3| { &m.sint32_zero },
|m: &mut TestProto3| { &mut m.sint32_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint64_zero",
|m: &TestProto3| { &m.sint64_zero },
|m: &mut TestProto3| { &mut m.sint64_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint32_zero",
|m: &TestProto3| { &m.uint32_zero },
|m: &mut TestProto3| { &mut m.uint32_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint64_zero",
|m: &TestProto3| { &m.uint64_zero },
|m: &mut TestProto3| { &mut m.uint64_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed32_zero",
|m: &TestProto3| { &m.fixed32_zero },
|m: &mut TestProto3| { &mut m.fixed32_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed64_zero",
|m: &TestProto3| { &m.fixed64_zero },
|m: &mut TestProto3| { &mut m.fixed64_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed32_zero",
|m: &TestProto3| { &m.sfixed32_zero },
|m: &mut TestProto3| { &mut m.sfixed32_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed64_zero",
|m: &TestProto3| { &m.sfixed64_zero },
|m: &mut TestProto3| { &mut m.sfixed64_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"float_zero",
|m: &TestProto3| { &m.float_zero },
|m: &mut TestProto3| { &mut m.float_zero },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int32_one",
|m: &TestProto3| { &m.int32_one },
|m: &mut TestProto3| { &mut m.int32_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int64_one",
|m: &TestProto3| { &m.int64_one },
|m: &mut TestProto3| { &mut m.int64_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint32_one",
|m: &TestProto3| { &m.sint32_one },
|m: &mut TestProto3| { &mut m.sint32_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint64_one",
|m: &TestProto3| { &m.sint64_one },
|m: &mut TestProto3| { &mut m.sint64_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint32_one",
|m: &TestProto3| { &m.uint32_one },
|m: &mut TestProto3| { &mut m.uint32_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint64_one",
|m: &TestProto3| { &m.uint64_one },
|m: &mut TestProto3| { &mut m.uint64_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed32_one",
|m: &TestProto3| { &m.fixed32_one },
|m: &mut TestProto3| { &mut m.fixed32_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed64_one",
|m: &TestProto3| { &m.fixed64_one },
|m: &mut TestProto3| { &mut m.fixed64_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed32_one",
|m: &TestProto3| { &m.sfixed32_one },
|m: &mut TestProto3| { &mut m.sfixed32_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed64_one",
|m: &TestProto3| { &m.sfixed64_one },
|m: &mut TestProto3| { &mut m.sfixed64_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"float_one",
|m: &TestProto3| { &m.float_one },
|m: &mut TestProto3| { &mut m.float_one },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int32_undef",
|m: &TestProto3| { &m.int32_undef },
|m: &mut TestProto3| { &mut m.int32_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"int64_undef",
|m: &TestProto3| { &m.int64_undef },
|m: &mut TestProto3| { &mut m.int64_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint32_undef",
|m: &TestProto3| { &m.sint32_undef },
|m: &mut TestProto3| { &mut m.sint32_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sint64_undef",
|m: &TestProto3| { &m.sint64_undef },
|m: &mut TestProto3| { &mut m.sint64_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint32_undef",
|m: &TestProto3| { &m.uint32_undef },
|m: &mut TestProto3| { &mut m.uint32_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"uint64_undef",
|m: &TestProto3| { &m.uint64_undef },
|m: &mut TestProto3| { &mut m.uint64_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed32_undef",
|m: &TestProto3| { &m.fixed32_undef },
|m: &mut TestProto3| { &mut m.fixed32_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"fixed64_undef",
|m: &TestProto3| { &m.fixed64_undef },
|m: &mut TestProto3| { &mut m.fixed64_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed32_undef",
|m: &TestProto3| { &m.sfixed32_undef },
|m: &mut TestProto3| { &mut m.sfixed32_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"sfixed64_undef",
|m: &TestProto3| { &m.sfixed64_undef },
|m: &mut TestProto3| { &mut m.sfixed64_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"float_undef",
|m: &TestProto3| { &m.float_undef },
|m: &mut TestProto3| { &mut m.float_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"bool_undef",
|m: &TestProto3| { &m.bool_undef },
|m: &mut TestProto3| { &mut m.bool_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"string_foo",
|m: &TestProto3| { &m.string_foo },
|m: &mut TestProto3| { &mut m.string_foo },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"string_bar",
|m: &TestProto3| { &m.string_bar },
|m: &mut TestProto3| { &mut m.string_bar },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"string_undef",
|m: &TestProto3| { &m.string_undef },
|m: &mut TestProto3| { &mut m.string_undef },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"bytes_foo",
|m: &TestProto3| { &m.bytes_foo },
|m: &mut TestProto3| { &mut m.bytes_foo },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"bytes_bar",
|m: &TestProto3| { &m.bytes_bar },
|m: &mut TestProto3| { &mut m.bytes_bar },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"bytes_undef",
|m: &TestProto3| { &m.bytes_undef },
|m: &mut TestProto3| { &mut m.bytes_undef },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<TestProto3>(
"TestProto3",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for TestProto3 {
const NAME: &'static str = "TestProto3";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
8 => {
self.int32_zero = is.read_int32()?;
},
16 => {
self.int64_zero = is.read_int64()?;
},
24 => {
self.sint32_zero = is.read_sint32()?;
},
32 => {
self.sint64_zero = is.read_sint64()?;
},
40 => {
self.uint32_zero = is.read_uint32()?;
},
48 => {
self.uint64_zero = is.read_uint64()?;
},
61 => {
self.fixed32_zero = is.read_fixed32()?;
},
65 => {
self.fixed64_zero = is.read_fixed64()?;
},
77 => {
self.sfixed32_zero = is.read_sfixed32()?;
},
81 => {
self.sfixed64_zero = is.read_sfixed64()?;
},
93 => {
self.float_zero = is.read_float()?;
},
168 => {
self.int32_one = is.read_int32()?;
},
176 => {
self.int64_one = is.read_int64()?;
},
184 => {
self.sint32_one = is.read_sint32()?;
},
192 => {
self.sint64_one = is.read_sint64()?;
},
200 => {
self.uint32_one = is.read_uint32()?;
},
208 => {
self.uint64_one = is.read_uint64()?;
},
221 => {
self.fixed32_one = is.read_fixed32()?;
},
225 => {
self.fixed64_one = is.read_fixed64()?;
},
237 => {
self.sfixed32_one = is.read_sfixed32()?;
},
241 => {
self.sfixed64_one = is.read_sfixed64()?;
},
253 => {
self.float_one = is.read_float()?;
},
328 => {
self.int32_undef = is.read_int32()?;
},
336 => {
self.int64_undef = is.read_int64()?;
},
344 => {
self.sint32_undef = is.read_sint32()?;
},
352 => {
self.sint64_undef = is.read_sint64()?;
},
360 => {
self.uint32_undef = is.read_uint32()?;
},
368 => {
self.uint64_undef = is.read_uint64()?;
},
381 => {
self.fixed32_undef = is.read_fixed32()?;
},
385 => {
self.fixed64_undef = is.read_fixed64()?;
},
397 => {
self.sfixed32_undef = is.read_sfixed32()?;
},
401 => {
self.sfixed64_undef = is.read_sfixed64()?;
},
413 => {
self.float_undef = is.read_float()?;
},
416 => {
self.bool_undef = is.read_bool()?;
},
490 => {
self.string_foo = is.read_string()?;
},
498 => {
self.string_bar = is.read_string()?;
},
506 => {
self.string_undef = is.read_string()?;
},
514 => {
self.bytes_foo = is.read_bytes()?;
},
522 => {
self.bytes_bar = is.read_bytes()?;
},
530 => {
self.bytes_undef = is.read_bytes()?;
},
tag => {
::protobuf::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.int32_zero != 0 {
my_size += ::protobuf::rt::int32_size(1, self.int32_zero);
}
if self.int64_zero != 0 {
my_size += ::protobuf::rt::int64_size(2, self.int64_zero);
}
if self.sint32_zero != 0 {
my_size += ::protobuf::rt::sint32_size(3, self.sint32_zero);
}
if self.sint64_zero != 0 {
my_size += ::protobuf::rt::sint64_size(4, self.sint64_zero);
}
if self.uint32_zero != 0 {
my_size += ::protobuf::rt::uint32_size(5, self.uint32_zero);
}
if self.uint64_zero != 0 {
my_size += ::protobuf::rt::uint64_size(6, self.uint64_zero);
}
if self.fixed32_zero != 0 {
my_size += 1 + 4;
}
if self.fixed64_zero != 0 {
my_size += 1 + 8;
}
if self.sfixed32_zero != 0 {
my_size += 1 + 4;
}
if self.sfixed64_zero != 0 {
my_size += 1 + 8;
}
if self.float_zero != 0. {
my_size += 1 + 4;
}
if self.int32_one != 0 {
my_size += ::protobuf::rt::int32_size(21, self.int32_one);
}
if self.int64_one != 0 {
my_size += ::protobuf::rt::int64_size(22, self.int64_one);
}
if self.sint32_one != 0 {
my_size += ::protobuf::rt::sint32_size(23, self.sint32_one);
}
if self.sint64_one != 0 {
my_size += ::protobuf::rt::sint64_size(24, self.sint64_one);
}
if self.uint32_one != 0 {
my_size += ::protobuf::rt::uint32_size(25, self.uint32_one);
}
if self.uint64_one != 0 {
my_size += ::protobuf::rt::uint64_size(26, self.uint64_one);
}
if self.fixed32_one != 0 {
my_size += 2 + 4;
}
if self.fixed64_one != 0 {
my_size += 2 + 8;
}
if self.sfixed32_one != 0 {
my_size += 2 + 4;
}
if self.sfixed64_one != 0 {
my_size += 2 + 8;
}
if self.float_one != 0. {
my_size += 2 + 4;
}
if self.int32_undef != 0 {
my_size += ::protobuf::rt::int32_size(41, self.int32_undef);
}
if self.int64_undef != 0 {
my_size += ::protobuf::rt::int64_size(42, self.int64_undef);
}
if self.sint32_undef != 0 {
my_size += ::protobuf::rt::sint32_size(43, self.sint32_undef);
}
if self.sint64_undef != 0 {
my_size += ::protobuf::rt::sint64_size(44, self.sint64_undef);
}
if self.uint32_undef != 0 {
my_size += ::protobuf::rt::uint32_size(45, self.uint32_undef);
}
if self.uint64_undef != 0 {
my_size += ::protobuf::rt::uint64_size(46, self.uint64_undef);
}
if self.fixed32_undef != 0 {
my_size += 2 + 4;
}
if self.fixed64_undef != 0 {
my_size += 2 + 8;
}
if self.sfixed32_undef != 0 {
my_size += 2 + 4;
}
if self.sfixed64_undef != 0 {
my_size += 2 + 8;
}
if self.float_undef != 0. {
my_size += 2 + 4;
}
if self.bool_undef != false {
my_size += 2 + 1;
}
if !self.string_foo.is_empty() {
my_size += ::protobuf::rt::string_size(61, &self.string_foo);
}
if !self.string_bar.is_empty() {
my_size += ::protobuf::rt::string_size(62, &self.string_bar);
}
if !self.string_undef.is_empty() {
my_size += ::protobuf::rt::string_size(63, &self.string_undef);
}
if !self.bytes_foo.is_empty() {
my_size += ::protobuf::rt::bytes_size(64, &self.bytes_foo);
}
if !self.bytes_bar.is_empty() {
my_size += ::protobuf::rt::bytes_size(65, &self.bytes_bar);
}
if !self.bytes_undef.is_empty() {
my_size += ::protobuf::rt::bytes_size(66, &self.bytes_undef);
}
my_size += ::protobuf::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 ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if self.int32_zero != 0 {
os.write_int32(1, self.int32_zero)?;
}
if self.int64_zero != 0 {
os.write_int64(2, self.int64_zero)?;
}
if self.sint32_zero != 0 {
os.write_sint32(3, self.sint32_zero)?;
}
if self.sint64_zero != 0 {
os.write_sint64(4, self.sint64_zero)?;
}
if self.uint32_zero != 0 {
os.write_uint32(5, self.uint32_zero)?;
}
if self.uint64_zero != 0 {
os.write_uint64(6, self.uint64_zero)?;
}
if self.fixed32_zero != 0 {
os.write_fixed32(7, self.fixed32_zero)?;
}
if self.fixed64_zero != 0 {
os.write_fixed64(8, self.fixed64_zero)?;
}
if self.sfixed32_zero != 0 {
os.write_sfixed32(9, self.sfixed32_zero)?;
}
if self.sfixed64_zero != 0 {
os.write_sfixed64(10, self.sfixed64_zero)?;
}
if self.float_zero != 0. {
os.write_float(11, self.float_zero)?;
}
if self.int32_one != 0 {
os.write_int32(21, self.int32_one)?;
}
if self.int64_one != 0 {
os.write_int64(22, self.int64_one)?;
}
if self.sint32_one != 0 {
os.write_sint32(23, self.sint32_one)?;
}
if self.sint64_one != 0 {
os.write_sint64(24, self.sint64_one)?;
}
if self.uint32_one != 0 {
os.write_uint32(25, self.uint32_one)?;
}
if self.uint64_one != 0 {
os.write_uint64(26, self.uint64_one)?;
}
if self.fixed32_one != 0 {
os.write_fixed32(27, self.fixed32_one)?;
}
if self.fixed64_one != 0 {
os.write_fixed64(28, self.fixed64_one)?;
}
if self.sfixed32_one != 0 {
os.write_sfixed32(29, self.sfixed32_one)?;
}
if self.sfixed64_one != 0 {
os.write_sfixed64(30, self.sfixed64_one)?;
}
if self.float_one != 0. {
os.write_float(31, self.float_one)?;
}
if self.int32_undef != 0 {
os.write_int32(41, self.int32_undef)?;
}
if self.int64_undef != 0 {
os.write_int64(42, self.int64_undef)?;
}
if self.sint32_undef != 0 {
os.write_sint32(43, self.sint32_undef)?;
}
if self.sint64_undef != 0 {
os.write_sint64(44, self.sint64_undef)?;
}
if self.uint32_undef != 0 {
os.write_uint32(45, self.uint32_undef)?;
}
if self.uint64_undef != 0 {
os.write_uint64(46, self.uint64_undef)?;
}
if self.fixed32_undef != 0 {
os.write_fixed32(47, self.fixed32_undef)?;
}
if self.fixed64_undef != 0 {
os.write_fixed64(48, self.fixed64_undef)?;
}
if self.sfixed32_undef != 0 {
os.write_sfixed32(49, self.sfixed32_undef)?;
}
if self.sfixed64_undef != 0 {
os.write_sfixed64(50, self.sfixed64_undef)?;
}
if self.float_undef != 0. {
os.write_float(51, self.float_undef)?;
}
if self.bool_undef != false {
os.write_bool(52, self.bool_undef)?;
}
if !self.string_foo.is_empty() {
os.write_string(61, &self.string_foo)?;
}
if !self.string_bar.is_empty() {
os.write_string(62, &self.string_bar)?;
}
if !self.string_undef.is_empty() {
os.write_string(63, &self.string_undef)?;
}
if !self.bytes_foo.is_empty() {
os.write_bytes(64, &self.bytes_foo)?;
}
if !self.bytes_bar.is_empty() {
os.write_bytes(65, &self.bytes_bar)?;
}
if !self.bytes_undef.is_empty() {
os.write_bytes(66, &self.bytes_undef)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> TestProto3 {
TestProto3::new()
}
fn clear(&mut self) {
self.int32_zero = 0;
self.int64_zero = 0;
self.sint32_zero = 0;
self.sint64_zero = 0;
self.uint32_zero = 0;
self.uint64_zero = 0;
self.fixed32_zero = 0;
self.fixed64_zero = 0;
self.sfixed32_zero = 0;
self.sfixed64_zero = 0;
self.float_zero = 0.;
self.int32_one = 0;
self.int64_one = 0;
self.sint32_one = 0;
self.sint64_one = 0;
self.uint32_one = 0;
self.uint64_one = 0;
self.fixed32_one = 0;
self.fixed64_one = 0;
self.sfixed32_one = 0;
self.sfixed64_one = 0;
self.float_one = 0.;
self.int32_undef = 0;
self.int64_undef = 0;
self.sint32_undef = 0;
self.sint64_undef = 0;
self.uint32_undef = 0;
self.uint64_undef = 0;
self.fixed32_undef = 0;
self.fixed64_undef = 0;
self.sfixed32_undef = 0;
self.sfixed64_undef = 0;
self.float_undef = 0.;
self.bool_undef = false;
self.string_foo.clear();
self.string_bar.clear();
self.string_undef.clear();
self.bytes_foo.clear();
self.bytes_bar.clear();
self.bytes_undef.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static TestProto3 {
static instance: TestProto3 = TestProto3 {
int32_zero: 0,
int64_zero: 0,
sint32_zero: 0,
sint64_zero: 0,
uint32_zero: 0,
uint64_zero: 0,
fixed32_zero: 0,
fixed64_zero: 0,
sfixed32_zero: 0,
sfixed64_zero: 0,
float_zero: 0.,
int32_one: 0,
int64_one: 0,
sint32_one: 0,
sint64_one: 0,
uint32_one: 0,
uint64_one: 0,
fixed32_one: 0,
fixed64_one: 0,
sfixed32_one: 0,
sfixed64_one: 0,
float_one: 0.,
int32_undef: 0,
int64_undef: 0,
sint32_undef: 0,
sint64_undef: 0,
uint32_undef: 0,
uint64_undef: 0,
fixed32_undef: 0,
fixed64_undef: 0,
sfixed32_undef: 0,
sfixed64_undef: 0,
float_undef: 0.,
bool_undef: false,
string_foo: ::std::string::String::new(),
string_bar: ::std::string::String::new(),
string_undef: ::std::string::String::new(),
bytes_foo: ::std::vec::Vec::new(),
bytes_bar: ::std::vec::Vec::new(),
bytes_undef: ::std::vec::Vec::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for TestProto3 {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("TestProto3").unwrap()).clone()
}
}
impl ::std::fmt::Display for TestProto3 {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for TestProto3 {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x11test_proto3.proto\x12\x0btest_proto3\x1a\nyara.proto\"\xba\n\n\nTe\
stProto3\x12\x1d\n\nint32_zero\x18\x01\x20\x01(\x05R\tint32Zero\x12\x1d\
\n\nint64_zero\x18\x02\x20\x01(\x03R\tint64Zero\x12\x1f\n\x0bsint32_zero\
\x18\x03\x20\x01(\x11R\nsint32Zero\x12\x1f\n\x0bsint64_zero\x18\x04\x20\
\x01(\x12R\nsint64Zero\x12\x1f\n\x0buint32_zero\x18\x05\x20\x01(\rR\nuin\
t32Zero\x12\x1f\n\x0buint64_zero\x18\x06\x20\x01(\x04R\nuint64Zero\x12!\
\n\x0cfixed32_zero\x18\x07\x20\x01(\x07R\x0bfixed32Zero\x12!\n\x0cfixed6\
4_zero\x18\x08\x20\x01(\x06R\x0bfixed64Zero\x12#\n\rsfixed32_zero\x18\t\
\x20\x01(\x0fR\x0csfixed32Zero\x12#\n\rsfixed64_zero\x18\n\x20\x01(\x10R\
\x0csfixed64Zero\x12\x1d\n\nfloat_zero\x18\x0b\x20\x01(\x02R\tfloatZero\
\x12\x1b\n\tint32_one\x18\x15\x20\x01(\x05R\x08int32One\x12\x1b\n\tint64\
_one\x18\x16\x20\x01(\x03R\x08int64One\x12\x1d\n\nsint32_one\x18\x17\x20\
\x01(\x11R\tsint32One\x12\x1d\n\nsint64_one\x18\x18\x20\x01(\x12R\tsint6\
4One\x12\x1d\n\nuint32_one\x18\x19\x20\x01(\rR\tuint32One\x12\x1d\n\nuin\
t64_one\x18\x1a\x20\x01(\x04R\tuint64One\x12\x1f\n\x0bfixed32_one\x18\
\x1b\x20\x01(\x07R\nfixed32One\x12\x1f\n\x0bfixed64_one\x18\x1c\x20\x01(\
\x06R\nfixed64One\x12!\n\x0csfixed32_one\x18\x1d\x20\x01(\x0fR\x0bsfixed\
32One\x12!\n\x0csfixed64_one\x18\x1e\x20\x01(\x10R\x0bsfixed64One\x12\
\x1b\n\tfloat_one\x18\x1f\x20\x01(\x02R\x08floatOne\x12\x1f\n\x0bint32_u\
ndef\x18)\x20\x01(\x05R\nint32Undef\x12\x1f\n\x0bint64_undef\x18*\x20\
\x01(\x03R\nint64Undef\x12!\n\x0csint32_undef\x18+\x20\x01(\x11R\x0bsint\
32Undef\x12!\n\x0csint64_undef\x18,\x20\x01(\x12R\x0bsint64Undef\x12!\n\
\x0cuint32_undef\x18-\x20\x01(\rR\x0buint32Undef\x12!\n\x0cuint64_undef\
\x18.\x20\x01(\x04R\x0buint64Undef\x12#\n\rfixed32_undef\x18/\x20\x01(\
\x07R\x0cfixed32Undef\x12#\n\rfixed64_undef\x180\x20\x01(\x06R\x0cfixed6\
4Undef\x12%\n\x0esfixed32_undef\x181\x20\x01(\x0fR\rsfixed32Undef\x12%\n\
\x0esfixed64_undef\x182\x20\x01(\x10R\rsfixed64Undef\x12\x1f\n\x0bfloat_\
undef\x183\x20\x01(\x02R\nfloatUndef\x12\x1d\n\nbool_undef\x184\x20\x01(\
\x08R\tboolUndef\x12\x1d\n\nstring_foo\x18=\x20\x01(\tR\tstringFoo\x12\
\x1d\n\nstring_bar\x18>\x20\x01(\tR\tstringBar\x12!\n\x0cstring_undef\
\x18?\x20\x01(\tR\x0bstringUndef\x12\x1b\n\tbytes_foo\x18@\x20\x01(\x0cR\
\x08bytesFoo\x12\x1b\n\tbytes_bar\x18A\x20\x01(\x0cR\x08bytesBar\x12\x1f\
\n\x0bbytes_undef\x18B\x20\x01(\x0cR\nbytesUndefBJ\xfa\x92\x19F\n\x0btes\
t_proto3\x12\x16test_proto3.TestProto3\x1a\x0btest_proto3\"\x12test_prot\
o3-moduleb\x06proto3\
";
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(1);
deps.push(super::yara::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(1);
messages.push(TestProto3::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}