gz_msgs/gz_msgs11/
annotated_axis_aligned_2d_box_v.rs

1// This file is generated by rust-protobuf 3.7.2. Do not edit
2// .proto file is parsed by protoc 3.21.12
3// @generated
4
5// https://github.com/rust-lang/rust-clippy/issues/702
6#![allow(unknown_lints)]
7#![allow(clippy::all)]
8
9#![allow(unused_attributes)]
10#![cfg_attr(rustfmt, rustfmt::skip)]
11
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_results)]
19#![allow(unused_mut)]
20
21//! Generated file from `gz/msgs/annotated_axis_aligned_2d_box_v.proto`
22
23/// Generated files are compatible only with the same version
24/// of protobuf runtime.
25const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_7_2;
26
27#[derive(::gz_msgs_common::GzMessage)]
28// @@protoc_insertion_point(message:gz.msgs.AnnotatedAxisAligned2DBox_V)
29#[derive(PartialEq,Clone,Default,Debug)]
30pub struct AnnotatedAxisAligned2DBox_V {
31    // message fields
32    // @@protoc_insertion_point(field:gz.msgs.AnnotatedAxisAligned2DBox_V.header)
33    pub header: ::protobuf::MessageField<super::header::Header>,
34    // @@protoc_insertion_point(field:gz.msgs.AnnotatedAxisAligned2DBox_V.annotated_box)
35    pub annotated_box: ::std::vec::Vec<super::annotated_axis_aligned_2d_box::AnnotatedAxisAligned2DBox>,
36    // special fields
37    // @@protoc_insertion_point(special_field:gz.msgs.AnnotatedAxisAligned2DBox_V.special_fields)
38    pub special_fields: ::protobuf::SpecialFields,
39}
40
41impl<'a> ::std::default::Default for &'a AnnotatedAxisAligned2DBox_V {
42    fn default() -> &'a AnnotatedAxisAligned2DBox_V {
43        <AnnotatedAxisAligned2DBox_V as ::protobuf::Message>::default_instance()
44    }
45}
46
47impl AnnotatedAxisAligned2DBox_V {
48    pub fn new() -> AnnotatedAxisAligned2DBox_V {
49        ::std::default::Default::default()
50    }
51
52    fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
53        let mut fields = ::std::vec::Vec::with_capacity(2);
54        let mut oneofs = ::std::vec::Vec::with_capacity(0);
55        fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::header::Header>(
56            "header",
57            |m: &AnnotatedAxisAligned2DBox_V| { &m.header },
58            |m: &mut AnnotatedAxisAligned2DBox_V| { &mut m.header },
59        ));
60        fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
61            "annotated_box",
62            |m: &AnnotatedAxisAligned2DBox_V| { &m.annotated_box },
63            |m: &mut AnnotatedAxisAligned2DBox_V| { &mut m.annotated_box },
64        ));
65        ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AnnotatedAxisAligned2DBox_V>(
66            "AnnotatedAxisAligned2DBox_V",
67            fields,
68            oneofs,
69        )
70    }
71}
72
73impl ::protobuf::Message for AnnotatedAxisAligned2DBox_V {
74    const NAME: &'static str = "AnnotatedAxisAligned2DBox_V";
75
76    fn is_initialized(&self) -> bool {
77        true
78    }
79
80    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
81        while let Some(tag) = is.read_raw_tag_or_eof()? {
82            match tag {
83                10 => {
84                    ::protobuf::rt::read_singular_message_into_field(is, &mut self.header)?;
85                },
86                18 => {
87                    self.annotated_box.push(is.read_message()?);
88                },
89                tag => {
90                    ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
91                },
92            };
93        }
94        ::std::result::Result::Ok(())
95    }
96
97    // Compute sizes of nested messages
98    #[allow(unused_variables)]
99    fn compute_size(&self) -> u64 {
100        let mut my_size = 0;
101        if let Some(v) = self.header.as_ref() {
102            let len = v.compute_size();
103            my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
104        }
105        for value in &self.annotated_box {
106            let len = value.compute_size();
107            my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
108        };
109        my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
110        self.special_fields.cached_size().set(my_size as u32);
111        my_size
112    }
113
114    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
115        if let Some(v) = self.header.as_ref() {
116            ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
117        }
118        for v in &self.annotated_box {
119            ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
120        };
121        os.write_unknown_fields(self.special_fields.unknown_fields())?;
122        ::std::result::Result::Ok(())
123    }
124
125    fn special_fields(&self) -> &::protobuf::SpecialFields {
126        &self.special_fields
127    }
128
129    fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
130        &mut self.special_fields
131    }
132
133    fn new() -> AnnotatedAxisAligned2DBox_V {
134        AnnotatedAxisAligned2DBox_V::new()
135    }
136
137    fn clear(&mut self) {
138        self.header.clear();
139        self.annotated_box.clear();
140        self.special_fields.clear();
141    }
142
143    fn default_instance() -> &'static AnnotatedAxisAligned2DBox_V {
144        static instance: AnnotatedAxisAligned2DBox_V = AnnotatedAxisAligned2DBox_V {
145            header: ::protobuf::MessageField::none(),
146            annotated_box: ::std::vec::Vec::new(),
147            special_fields: ::protobuf::SpecialFields::new(),
148        };
149        &instance
150    }
151}
152
153impl ::protobuf::MessageFull for AnnotatedAxisAligned2DBox_V {
154    fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
155        static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
156        descriptor.get(|| file_descriptor().message_by_package_relative_name("AnnotatedAxisAligned2DBox_V").unwrap()).clone()
157    }
158}
159
160impl ::std::fmt::Display for AnnotatedAxisAligned2DBox_V {
161    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
162        ::protobuf::text_format::fmt(self, f)
163    }
164}
165
166impl ::protobuf::reflect::ProtobufValue for AnnotatedAxisAligned2DBox_V {
167    type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
168}
169
170static file_descriptor_proto_data: &'static [u8] = b"\
171    \n-gz/msgs/annotated_axis_aligned_2d_box_v.proto\x12\x07gz.msgs\x1a\x14g\
172    z/msgs/header.proto\x1a+gz/msgs/annotated_axis_aligned_2d_box.proto\"\
173    \x8f\x01\n\x1bAnnotatedAxisAligned2DBox_V\x12'\n\x06header\x18\x01\x20\
174    \x01(\x0b2\x0f.gz.msgs.HeaderR\x06header\x12G\n\rannotated_box\x18\x02\
175    \x20\x03(\x0b2\".gz.msgs.AnnotatedAxisAligned2DBoxR\x0cannotatedBoxB0\n\
176    \x0bcom.gz.msgsB!AnnotatedAxisAligned2DBox_VProtosb\x06proto3\
177";
178
179/// `FileDescriptorProto` object which was a source for this generated file
180fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
181    static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
182    file_descriptor_proto_lazy.get(|| {
183        ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
184    })
185}
186
187/// `FileDescriptor` object which allows dynamic access to files
188pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
189    static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
190    static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
191    file_descriptor.get(|| {
192        let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
193            let mut deps = ::std::vec::Vec::with_capacity(2);
194            deps.push(super::header::file_descriptor().clone());
195            deps.push(super::annotated_axis_aligned_2d_box::file_descriptor().clone());
196            let mut messages = ::std::vec::Vec::with_capacity(1);
197            messages.push(AnnotatedAxisAligned2DBox_V::generated_message_descriptor_data());
198            let mut enums = ::std::vec::Vec::with_capacity(0);
199            ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
200                file_descriptor_proto(),
201                deps,
202                messages,
203                enums,
204            )
205        });
206        ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
207    })
208}