matrix_protos_rust/protos/
sense.rs

1// This file is generated by rust-protobuf 2.25.1. Do not edit
2// @generated
3
4// https://github.com/rust-lang/rust-clippy/issues/702
5#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20//! Generated file from `matrix_io/malos/v1/sense.proto`
21
22/// Generated files are compatible only with the same version
23/// of protobuf runtime.
24// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_1;
25
26#[derive(PartialEq,Clone,Default)]
27pub struct Dummy {
28    // message fields
29    pub value: f32,
30    // special fields
31    pub unknown_fields: ::protobuf::UnknownFields,
32    pub cached_size: ::protobuf::CachedSize,
33}
34
35impl<'a> ::std::default::Default for &'a Dummy {
36    fn default() -> &'a Dummy {
37        <Dummy as ::protobuf::Message>::default_instance()
38    }
39}
40
41impl Dummy {
42    pub fn new() -> Dummy {
43        ::std::default::Default::default()
44    }
45
46    // float value = 1;
47
48
49    pub fn get_value(&self) -> f32 {
50        self.value
51    }
52    pub fn clear_value(&mut self) {
53        self.value = 0.;
54    }
55
56    // Param is passed by value, moved
57    pub fn set_value(&mut self, v: f32) {
58        self.value = v;
59    }
60}
61
62impl ::protobuf::Message for Dummy {
63    fn is_initialized(&self) -> bool {
64        true
65    }
66
67    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
68        while !is.eof()? {
69            let (field_number, wire_type) = is.read_tag_unpack()?;
70            match field_number {
71                1 => {
72                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
73                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
74                    }
75                    let tmp = is.read_float()?;
76                    self.value = tmp;
77                },
78                _ => {
79                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
80                },
81            };
82        }
83        ::std::result::Result::Ok(())
84    }
85
86    // Compute sizes of nested messages
87    #[allow(unused_variables)]
88    fn compute_size(&self) -> u32 {
89        let mut my_size = 0;
90        if self.value != 0. {
91            my_size += 5;
92        }
93        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
94        self.cached_size.set(my_size);
95        my_size
96    }
97
98    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
99        if self.value != 0. {
100            os.write_float(1, self.value)?;
101        }
102        os.write_unknown_fields(self.get_unknown_fields())?;
103        ::std::result::Result::Ok(())
104    }
105
106    fn get_cached_size(&self) -> u32 {
107        self.cached_size.get()
108    }
109
110    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
111        &self.unknown_fields
112    }
113
114    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
115        &mut self.unknown_fields
116    }
117
118    fn as_any(&self) -> &dyn (::std::any::Any) {
119        self as &dyn (::std::any::Any)
120    }
121    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
122        self as &mut dyn (::std::any::Any)
123    }
124    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
125        self
126    }
127
128    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
129        Self::descriptor_static()
130    }
131
132    fn new() -> Dummy {
133        Dummy::new()
134    }
135
136    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
137        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
138        descriptor.get(|| {
139            let mut fields = ::std::vec::Vec::new();
140            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
141                "value",
142                |m: &Dummy| { &m.value },
143                |m: &mut Dummy| { &mut m.value },
144            ));
145            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Dummy>(
146                "Dummy",
147                fields,
148                file_descriptor_proto()
149            )
150        })
151    }
152
153    fn default_instance() -> &'static Dummy {
154        static instance: ::protobuf::rt::LazyV2<Dummy> = ::protobuf::rt::LazyV2::INIT;
155        instance.get(Dummy::new)
156    }
157}
158
159impl ::protobuf::Clear for Dummy {
160    fn clear(&mut self) {
161        self.value = 0.;
162        self.unknown_fields.clear();
163    }
164}
165
166impl ::std::fmt::Debug for Dummy {
167    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
168        ::protobuf::text_format::fmt(self, f)
169    }
170}
171
172impl ::protobuf::reflect::ProtobufValue for Dummy {
173    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
174        ::protobuf::reflect::ReflectValueRef::Message(self)
175    }
176}
177
178#[derive(PartialEq,Clone,Default)]
179pub struct Humidity {
180    // message fields
181    pub humidity: f32,
182    pub temperature: f32,
183    pub temperature_raw: f32,
184    pub temperature_is_calibrated: bool,
185    // special fields
186    pub unknown_fields: ::protobuf::UnknownFields,
187    pub cached_size: ::protobuf::CachedSize,
188}
189
190impl<'a> ::std::default::Default for &'a Humidity {
191    fn default() -> &'a Humidity {
192        <Humidity as ::protobuf::Message>::default_instance()
193    }
194}
195
196impl Humidity {
197    pub fn new() -> Humidity {
198        ::std::default::Default::default()
199    }
200
201    // float humidity = 1;
202
203
204    pub fn get_humidity(&self) -> f32 {
205        self.humidity
206    }
207    pub fn clear_humidity(&mut self) {
208        self.humidity = 0.;
209    }
210
211    // Param is passed by value, moved
212    pub fn set_humidity(&mut self, v: f32) {
213        self.humidity = v;
214    }
215
216    // float temperature = 2;
217
218
219    pub fn get_temperature(&self) -> f32 {
220        self.temperature
221    }
222    pub fn clear_temperature(&mut self) {
223        self.temperature = 0.;
224    }
225
226    // Param is passed by value, moved
227    pub fn set_temperature(&mut self, v: f32) {
228        self.temperature = v;
229    }
230
231    // float temperature_raw = 3;
232
233
234    pub fn get_temperature_raw(&self) -> f32 {
235        self.temperature_raw
236    }
237    pub fn clear_temperature_raw(&mut self) {
238        self.temperature_raw = 0.;
239    }
240
241    // Param is passed by value, moved
242    pub fn set_temperature_raw(&mut self, v: f32) {
243        self.temperature_raw = v;
244    }
245
246    // bool temperature_is_calibrated = 4;
247
248
249    pub fn get_temperature_is_calibrated(&self) -> bool {
250        self.temperature_is_calibrated
251    }
252    pub fn clear_temperature_is_calibrated(&mut self) {
253        self.temperature_is_calibrated = false;
254    }
255
256    // Param is passed by value, moved
257    pub fn set_temperature_is_calibrated(&mut self, v: bool) {
258        self.temperature_is_calibrated = v;
259    }
260}
261
262impl ::protobuf::Message for Humidity {
263    fn is_initialized(&self) -> bool {
264        true
265    }
266
267    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
268        while !is.eof()? {
269            let (field_number, wire_type) = is.read_tag_unpack()?;
270            match field_number {
271                1 => {
272                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
273                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
274                    }
275                    let tmp = is.read_float()?;
276                    self.humidity = tmp;
277                },
278                2 => {
279                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
280                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
281                    }
282                    let tmp = is.read_float()?;
283                    self.temperature = tmp;
284                },
285                3 => {
286                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
287                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
288                    }
289                    let tmp = is.read_float()?;
290                    self.temperature_raw = tmp;
291                },
292                4 => {
293                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
294                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
295                    }
296                    let tmp = is.read_bool()?;
297                    self.temperature_is_calibrated = tmp;
298                },
299                _ => {
300                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
301                },
302            };
303        }
304        ::std::result::Result::Ok(())
305    }
306
307    // Compute sizes of nested messages
308    #[allow(unused_variables)]
309    fn compute_size(&self) -> u32 {
310        let mut my_size = 0;
311        if self.humidity != 0. {
312            my_size += 5;
313        }
314        if self.temperature != 0. {
315            my_size += 5;
316        }
317        if self.temperature_raw != 0. {
318            my_size += 5;
319        }
320        if self.temperature_is_calibrated != false {
321            my_size += 2;
322        }
323        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
324        self.cached_size.set(my_size);
325        my_size
326    }
327
328    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
329        if self.humidity != 0. {
330            os.write_float(1, self.humidity)?;
331        }
332        if self.temperature != 0. {
333            os.write_float(2, self.temperature)?;
334        }
335        if self.temperature_raw != 0. {
336            os.write_float(3, self.temperature_raw)?;
337        }
338        if self.temperature_is_calibrated != false {
339            os.write_bool(4, self.temperature_is_calibrated)?;
340        }
341        os.write_unknown_fields(self.get_unknown_fields())?;
342        ::std::result::Result::Ok(())
343    }
344
345    fn get_cached_size(&self) -> u32 {
346        self.cached_size.get()
347    }
348
349    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
350        &self.unknown_fields
351    }
352
353    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
354        &mut self.unknown_fields
355    }
356
357    fn as_any(&self) -> &dyn (::std::any::Any) {
358        self as &dyn (::std::any::Any)
359    }
360    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
361        self as &mut dyn (::std::any::Any)
362    }
363    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
364        self
365    }
366
367    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
368        Self::descriptor_static()
369    }
370
371    fn new() -> Humidity {
372        Humidity::new()
373    }
374
375    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
376        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
377        descriptor.get(|| {
378            let mut fields = ::std::vec::Vec::new();
379            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
380                "humidity",
381                |m: &Humidity| { &m.humidity },
382                |m: &mut Humidity| { &mut m.humidity },
383            ));
384            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
385                "temperature",
386                |m: &Humidity| { &m.temperature },
387                |m: &mut Humidity| { &mut m.temperature },
388            ));
389            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
390                "temperature_raw",
391                |m: &Humidity| { &m.temperature_raw },
392                |m: &mut Humidity| { &mut m.temperature_raw },
393            ));
394            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
395                "temperature_is_calibrated",
396                |m: &Humidity| { &m.temperature_is_calibrated },
397                |m: &mut Humidity| { &mut m.temperature_is_calibrated },
398            ));
399            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Humidity>(
400                "Humidity",
401                fields,
402                file_descriptor_proto()
403            )
404        })
405    }
406
407    fn default_instance() -> &'static Humidity {
408        static instance: ::protobuf::rt::LazyV2<Humidity> = ::protobuf::rt::LazyV2::INIT;
409        instance.get(Humidity::new)
410    }
411}
412
413impl ::protobuf::Clear for Humidity {
414    fn clear(&mut self) {
415        self.humidity = 0.;
416        self.temperature = 0.;
417        self.temperature_raw = 0.;
418        self.temperature_is_calibrated = false;
419        self.unknown_fields.clear();
420    }
421}
422
423impl ::std::fmt::Debug for Humidity {
424    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
425        ::protobuf::text_format::fmt(self, f)
426    }
427}
428
429impl ::protobuf::reflect::ProtobufValue for Humidity {
430    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
431        ::protobuf::reflect::ReflectValueRef::Message(self)
432    }
433}
434
435#[derive(PartialEq,Clone,Default)]
436pub struct HumidityParams {
437    // message fields
438    pub current_temperature: f32,
439    // special fields
440    pub unknown_fields: ::protobuf::UnknownFields,
441    pub cached_size: ::protobuf::CachedSize,
442}
443
444impl<'a> ::std::default::Default for &'a HumidityParams {
445    fn default() -> &'a HumidityParams {
446        <HumidityParams as ::protobuf::Message>::default_instance()
447    }
448}
449
450impl HumidityParams {
451    pub fn new() -> HumidityParams {
452        ::std::default::Default::default()
453    }
454
455    // float current_temperature = 1;
456
457
458    pub fn get_current_temperature(&self) -> f32 {
459        self.current_temperature
460    }
461    pub fn clear_current_temperature(&mut self) {
462        self.current_temperature = 0.;
463    }
464
465    // Param is passed by value, moved
466    pub fn set_current_temperature(&mut self, v: f32) {
467        self.current_temperature = v;
468    }
469}
470
471impl ::protobuf::Message for HumidityParams {
472    fn is_initialized(&self) -> bool {
473        true
474    }
475
476    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
477        while !is.eof()? {
478            let (field_number, wire_type) = is.read_tag_unpack()?;
479            match field_number {
480                1 => {
481                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
482                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
483                    }
484                    let tmp = is.read_float()?;
485                    self.current_temperature = tmp;
486                },
487                _ => {
488                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
489                },
490            };
491        }
492        ::std::result::Result::Ok(())
493    }
494
495    // Compute sizes of nested messages
496    #[allow(unused_variables)]
497    fn compute_size(&self) -> u32 {
498        let mut my_size = 0;
499        if self.current_temperature != 0. {
500            my_size += 5;
501        }
502        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
503        self.cached_size.set(my_size);
504        my_size
505    }
506
507    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
508        if self.current_temperature != 0. {
509            os.write_float(1, self.current_temperature)?;
510        }
511        os.write_unknown_fields(self.get_unknown_fields())?;
512        ::std::result::Result::Ok(())
513    }
514
515    fn get_cached_size(&self) -> u32 {
516        self.cached_size.get()
517    }
518
519    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
520        &self.unknown_fields
521    }
522
523    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
524        &mut self.unknown_fields
525    }
526
527    fn as_any(&self) -> &dyn (::std::any::Any) {
528        self as &dyn (::std::any::Any)
529    }
530    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
531        self as &mut dyn (::std::any::Any)
532    }
533    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
534        self
535    }
536
537    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
538        Self::descriptor_static()
539    }
540
541    fn new() -> HumidityParams {
542        HumidityParams::new()
543    }
544
545    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
546        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
547        descriptor.get(|| {
548            let mut fields = ::std::vec::Vec::new();
549            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
550                "current_temperature",
551                |m: &HumidityParams| { &m.current_temperature },
552                |m: &mut HumidityParams| { &mut m.current_temperature },
553            ));
554            ::protobuf::reflect::MessageDescriptor::new_pb_name::<HumidityParams>(
555                "HumidityParams",
556                fields,
557                file_descriptor_proto()
558            )
559        })
560    }
561
562    fn default_instance() -> &'static HumidityParams {
563        static instance: ::protobuf::rt::LazyV2<HumidityParams> = ::protobuf::rt::LazyV2::INIT;
564        instance.get(HumidityParams::new)
565    }
566}
567
568impl ::protobuf::Clear for HumidityParams {
569    fn clear(&mut self) {
570        self.current_temperature = 0.;
571        self.unknown_fields.clear();
572    }
573}
574
575impl ::std::fmt::Debug for HumidityParams {
576    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
577        ::protobuf::text_format::fmt(self, f)
578    }
579}
580
581impl ::protobuf::reflect::ProtobufValue for HumidityParams {
582    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
583        ::protobuf::reflect::ReflectValueRef::Message(self)
584    }
585}
586
587#[derive(PartialEq,Clone,Default)]
588pub struct UV {
589    // message fields
590    pub uv_index: f32,
591    pub oms_risk: ::std::string::String,
592    // special fields
593    pub unknown_fields: ::protobuf::UnknownFields,
594    pub cached_size: ::protobuf::CachedSize,
595}
596
597impl<'a> ::std::default::Default for &'a UV {
598    fn default() -> &'a UV {
599        <UV as ::protobuf::Message>::default_instance()
600    }
601}
602
603impl UV {
604    pub fn new() -> UV {
605        ::std::default::Default::default()
606    }
607
608    // float uv_index = 1;
609
610
611    pub fn get_uv_index(&self) -> f32 {
612        self.uv_index
613    }
614    pub fn clear_uv_index(&mut self) {
615        self.uv_index = 0.;
616    }
617
618    // Param is passed by value, moved
619    pub fn set_uv_index(&mut self, v: f32) {
620        self.uv_index = v;
621    }
622
623    // string oms_risk = 2;
624
625
626    pub fn get_oms_risk(&self) -> &str {
627        &self.oms_risk
628    }
629    pub fn clear_oms_risk(&mut self) {
630        self.oms_risk.clear();
631    }
632
633    // Param is passed by value, moved
634    pub fn set_oms_risk(&mut self, v: ::std::string::String) {
635        self.oms_risk = v;
636    }
637
638    // Mutable pointer to the field.
639    // If field is not initialized, it is initialized with default value first.
640    pub fn mut_oms_risk(&mut self) -> &mut ::std::string::String {
641        &mut self.oms_risk
642    }
643
644    // Take field
645    pub fn take_oms_risk(&mut self) -> ::std::string::String {
646        ::std::mem::replace(&mut self.oms_risk, ::std::string::String::new())
647    }
648}
649
650impl ::protobuf::Message for UV {
651    fn is_initialized(&self) -> bool {
652        true
653    }
654
655    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
656        while !is.eof()? {
657            let (field_number, wire_type) = is.read_tag_unpack()?;
658            match field_number {
659                1 => {
660                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
661                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
662                    }
663                    let tmp = is.read_float()?;
664                    self.uv_index = tmp;
665                },
666                2 => {
667                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.oms_risk)?;
668                },
669                _ => {
670                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
671                },
672            };
673        }
674        ::std::result::Result::Ok(())
675    }
676
677    // Compute sizes of nested messages
678    #[allow(unused_variables)]
679    fn compute_size(&self) -> u32 {
680        let mut my_size = 0;
681        if self.uv_index != 0. {
682            my_size += 5;
683        }
684        if !self.oms_risk.is_empty() {
685            my_size += ::protobuf::rt::string_size(2, &self.oms_risk);
686        }
687        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
688        self.cached_size.set(my_size);
689        my_size
690    }
691
692    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
693        if self.uv_index != 0. {
694            os.write_float(1, self.uv_index)?;
695        }
696        if !self.oms_risk.is_empty() {
697            os.write_string(2, &self.oms_risk)?;
698        }
699        os.write_unknown_fields(self.get_unknown_fields())?;
700        ::std::result::Result::Ok(())
701    }
702
703    fn get_cached_size(&self) -> u32 {
704        self.cached_size.get()
705    }
706
707    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
708        &self.unknown_fields
709    }
710
711    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
712        &mut self.unknown_fields
713    }
714
715    fn as_any(&self) -> &dyn (::std::any::Any) {
716        self as &dyn (::std::any::Any)
717    }
718    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
719        self as &mut dyn (::std::any::Any)
720    }
721    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
722        self
723    }
724
725    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
726        Self::descriptor_static()
727    }
728
729    fn new() -> UV {
730        UV::new()
731    }
732
733    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
734        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
735        descriptor.get(|| {
736            let mut fields = ::std::vec::Vec::new();
737            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
738                "uv_index",
739                |m: &UV| { &m.uv_index },
740                |m: &mut UV| { &mut m.uv_index },
741            ));
742            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
743                "oms_risk",
744                |m: &UV| { &m.oms_risk },
745                |m: &mut UV| { &mut m.oms_risk },
746            ));
747            ::protobuf::reflect::MessageDescriptor::new_pb_name::<UV>(
748                "UV",
749                fields,
750                file_descriptor_proto()
751            )
752        })
753    }
754
755    fn default_instance() -> &'static UV {
756        static instance: ::protobuf::rt::LazyV2<UV> = ::protobuf::rt::LazyV2::INIT;
757        instance.get(UV::new)
758    }
759}
760
761impl ::protobuf::Clear for UV {
762    fn clear(&mut self) {
763        self.uv_index = 0.;
764        self.oms_risk.clear();
765        self.unknown_fields.clear();
766    }
767}
768
769impl ::std::fmt::Debug for UV {
770    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
771        ::protobuf::text_format::fmt(self, f)
772    }
773}
774
775impl ::protobuf::reflect::ProtobufValue for UV {
776    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
777        ::protobuf::reflect::ReflectValueRef::Message(self)
778    }
779}
780
781#[derive(PartialEq,Clone,Default)]
782pub struct Pressure {
783    // message fields
784    pub pressure: f32,
785    pub altitude: f32,
786    pub temperature: f32,
787    // special fields
788    pub unknown_fields: ::protobuf::UnknownFields,
789    pub cached_size: ::protobuf::CachedSize,
790}
791
792impl<'a> ::std::default::Default for &'a Pressure {
793    fn default() -> &'a Pressure {
794        <Pressure as ::protobuf::Message>::default_instance()
795    }
796}
797
798impl Pressure {
799    pub fn new() -> Pressure {
800        ::std::default::Default::default()
801    }
802
803    // float pressure = 1;
804
805
806    pub fn get_pressure(&self) -> f32 {
807        self.pressure
808    }
809    pub fn clear_pressure(&mut self) {
810        self.pressure = 0.;
811    }
812
813    // Param is passed by value, moved
814    pub fn set_pressure(&mut self, v: f32) {
815        self.pressure = v;
816    }
817
818    // float altitude = 2;
819
820
821    pub fn get_altitude(&self) -> f32 {
822        self.altitude
823    }
824    pub fn clear_altitude(&mut self) {
825        self.altitude = 0.;
826    }
827
828    // Param is passed by value, moved
829    pub fn set_altitude(&mut self, v: f32) {
830        self.altitude = v;
831    }
832
833    // float temperature = 3;
834
835
836    pub fn get_temperature(&self) -> f32 {
837        self.temperature
838    }
839    pub fn clear_temperature(&mut self) {
840        self.temperature = 0.;
841    }
842
843    // Param is passed by value, moved
844    pub fn set_temperature(&mut self, v: f32) {
845        self.temperature = v;
846    }
847}
848
849impl ::protobuf::Message for Pressure {
850    fn is_initialized(&self) -> bool {
851        true
852    }
853
854    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
855        while !is.eof()? {
856            let (field_number, wire_type) = is.read_tag_unpack()?;
857            match field_number {
858                1 => {
859                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
860                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
861                    }
862                    let tmp = is.read_float()?;
863                    self.pressure = tmp;
864                },
865                2 => {
866                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
867                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
868                    }
869                    let tmp = is.read_float()?;
870                    self.altitude = tmp;
871                },
872                3 => {
873                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
874                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
875                    }
876                    let tmp = is.read_float()?;
877                    self.temperature = tmp;
878                },
879                _ => {
880                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
881                },
882            };
883        }
884        ::std::result::Result::Ok(())
885    }
886
887    // Compute sizes of nested messages
888    #[allow(unused_variables)]
889    fn compute_size(&self) -> u32 {
890        let mut my_size = 0;
891        if self.pressure != 0. {
892            my_size += 5;
893        }
894        if self.altitude != 0. {
895            my_size += 5;
896        }
897        if self.temperature != 0. {
898            my_size += 5;
899        }
900        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
901        self.cached_size.set(my_size);
902        my_size
903    }
904
905    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
906        if self.pressure != 0. {
907            os.write_float(1, self.pressure)?;
908        }
909        if self.altitude != 0. {
910            os.write_float(2, self.altitude)?;
911        }
912        if self.temperature != 0. {
913            os.write_float(3, self.temperature)?;
914        }
915        os.write_unknown_fields(self.get_unknown_fields())?;
916        ::std::result::Result::Ok(())
917    }
918
919    fn get_cached_size(&self) -> u32 {
920        self.cached_size.get()
921    }
922
923    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
924        &self.unknown_fields
925    }
926
927    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
928        &mut self.unknown_fields
929    }
930
931    fn as_any(&self) -> &dyn (::std::any::Any) {
932        self as &dyn (::std::any::Any)
933    }
934    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
935        self as &mut dyn (::std::any::Any)
936    }
937    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
938        self
939    }
940
941    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
942        Self::descriptor_static()
943    }
944
945    fn new() -> Pressure {
946        Pressure::new()
947    }
948
949    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
950        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
951        descriptor.get(|| {
952            let mut fields = ::std::vec::Vec::new();
953            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
954                "pressure",
955                |m: &Pressure| { &m.pressure },
956                |m: &mut Pressure| { &mut m.pressure },
957            ));
958            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
959                "altitude",
960                |m: &Pressure| { &m.altitude },
961                |m: &mut Pressure| { &mut m.altitude },
962            ));
963            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
964                "temperature",
965                |m: &Pressure| { &m.temperature },
966                |m: &mut Pressure| { &mut m.temperature },
967            ));
968            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Pressure>(
969                "Pressure",
970                fields,
971                file_descriptor_proto()
972            )
973        })
974    }
975
976    fn default_instance() -> &'static Pressure {
977        static instance: ::protobuf::rt::LazyV2<Pressure> = ::protobuf::rt::LazyV2::INIT;
978        instance.get(Pressure::new)
979    }
980}
981
982impl ::protobuf::Clear for Pressure {
983    fn clear(&mut self) {
984        self.pressure = 0.;
985        self.altitude = 0.;
986        self.temperature = 0.;
987        self.unknown_fields.clear();
988    }
989}
990
991impl ::std::fmt::Debug for Pressure {
992    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
993        ::protobuf::text_format::fmt(self, f)
994    }
995}
996
997impl ::protobuf::reflect::ProtobufValue for Pressure {
998    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
999        ::protobuf::reflect::ReflectValueRef::Message(self)
1000    }
1001}
1002
1003#[derive(PartialEq,Clone,Default)]
1004pub struct Imu {
1005    // message fields
1006    pub yaw: f32,
1007    pub pitch: f32,
1008    pub roll: f32,
1009    pub accel_x: f32,
1010    pub accel_y: f32,
1011    pub accel_z: f32,
1012    pub gyro_x: f32,
1013    pub gyro_y: f32,
1014    pub gyro_z: f32,
1015    pub mag_x: f32,
1016    pub mag_y: f32,
1017    pub mag_z: f32,
1018    // special fields
1019    pub unknown_fields: ::protobuf::UnknownFields,
1020    pub cached_size: ::protobuf::CachedSize,
1021}
1022
1023impl<'a> ::std::default::Default for &'a Imu {
1024    fn default() -> &'a Imu {
1025        <Imu as ::protobuf::Message>::default_instance()
1026    }
1027}
1028
1029impl Imu {
1030    pub fn new() -> Imu {
1031        ::std::default::Default::default()
1032    }
1033
1034    // float yaw = 1;
1035
1036
1037    pub fn get_yaw(&self) -> f32 {
1038        self.yaw
1039    }
1040    pub fn clear_yaw(&mut self) {
1041        self.yaw = 0.;
1042    }
1043
1044    // Param is passed by value, moved
1045    pub fn set_yaw(&mut self, v: f32) {
1046        self.yaw = v;
1047    }
1048
1049    // float pitch = 2;
1050
1051
1052    pub fn get_pitch(&self) -> f32 {
1053        self.pitch
1054    }
1055    pub fn clear_pitch(&mut self) {
1056        self.pitch = 0.;
1057    }
1058
1059    // Param is passed by value, moved
1060    pub fn set_pitch(&mut self, v: f32) {
1061        self.pitch = v;
1062    }
1063
1064    // float roll = 3;
1065
1066
1067    pub fn get_roll(&self) -> f32 {
1068        self.roll
1069    }
1070    pub fn clear_roll(&mut self) {
1071        self.roll = 0.;
1072    }
1073
1074    // Param is passed by value, moved
1075    pub fn set_roll(&mut self, v: f32) {
1076        self.roll = v;
1077    }
1078
1079    // float accel_x = 4;
1080
1081
1082    pub fn get_accel_x(&self) -> f32 {
1083        self.accel_x
1084    }
1085    pub fn clear_accel_x(&mut self) {
1086        self.accel_x = 0.;
1087    }
1088
1089    // Param is passed by value, moved
1090    pub fn set_accel_x(&mut self, v: f32) {
1091        self.accel_x = v;
1092    }
1093
1094    // float accel_y = 5;
1095
1096
1097    pub fn get_accel_y(&self) -> f32 {
1098        self.accel_y
1099    }
1100    pub fn clear_accel_y(&mut self) {
1101        self.accel_y = 0.;
1102    }
1103
1104    // Param is passed by value, moved
1105    pub fn set_accel_y(&mut self, v: f32) {
1106        self.accel_y = v;
1107    }
1108
1109    // float accel_z = 6;
1110
1111
1112    pub fn get_accel_z(&self) -> f32 {
1113        self.accel_z
1114    }
1115    pub fn clear_accel_z(&mut self) {
1116        self.accel_z = 0.;
1117    }
1118
1119    // Param is passed by value, moved
1120    pub fn set_accel_z(&mut self, v: f32) {
1121        self.accel_z = v;
1122    }
1123
1124    // float gyro_x = 7;
1125
1126
1127    pub fn get_gyro_x(&self) -> f32 {
1128        self.gyro_x
1129    }
1130    pub fn clear_gyro_x(&mut self) {
1131        self.gyro_x = 0.;
1132    }
1133
1134    // Param is passed by value, moved
1135    pub fn set_gyro_x(&mut self, v: f32) {
1136        self.gyro_x = v;
1137    }
1138
1139    // float gyro_y = 8;
1140
1141
1142    pub fn get_gyro_y(&self) -> f32 {
1143        self.gyro_y
1144    }
1145    pub fn clear_gyro_y(&mut self) {
1146        self.gyro_y = 0.;
1147    }
1148
1149    // Param is passed by value, moved
1150    pub fn set_gyro_y(&mut self, v: f32) {
1151        self.gyro_y = v;
1152    }
1153
1154    // float gyro_z = 9;
1155
1156
1157    pub fn get_gyro_z(&self) -> f32 {
1158        self.gyro_z
1159    }
1160    pub fn clear_gyro_z(&mut self) {
1161        self.gyro_z = 0.;
1162    }
1163
1164    // Param is passed by value, moved
1165    pub fn set_gyro_z(&mut self, v: f32) {
1166        self.gyro_z = v;
1167    }
1168
1169    // float mag_x = 10;
1170
1171
1172    pub fn get_mag_x(&self) -> f32 {
1173        self.mag_x
1174    }
1175    pub fn clear_mag_x(&mut self) {
1176        self.mag_x = 0.;
1177    }
1178
1179    // Param is passed by value, moved
1180    pub fn set_mag_x(&mut self, v: f32) {
1181        self.mag_x = v;
1182    }
1183
1184    // float mag_y = 11;
1185
1186
1187    pub fn get_mag_y(&self) -> f32 {
1188        self.mag_y
1189    }
1190    pub fn clear_mag_y(&mut self) {
1191        self.mag_y = 0.;
1192    }
1193
1194    // Param is passed by value, moved
1195    pub fn set_mag_y(&mut self, v: f32) {
1196        self.mag_y = v;
1197    }
1198
1199    // float mag_z = 12;
1200
1201
1202    pub fn get_mag_z(&self) -> f32 {
1203        self.mag_z
1204    }
1205    pub fn clear_mag_z(&mut self) {
1206        self.mag_z = 0.;
1207    }
1208
1209    // Param is passed by value, moved
1210    pub fn set_mag_z(&mut self, v: f32) {
1211        self.mag_z = v;
1212    }
1213}
1214
1215impl ::protobuf::Message for Imu {
1216    fn is_initialized(&self) -> bool {
1217        true
1218    }
1219
1220    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1221        while !is.eof()? {
1222            let (field_number, wire_type) = is.read_tag_unpack()?;
1223            match field_number {
1224                1 => {
1225                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1226                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1227                    }
1228                    let tmp = is.read_float()?;
1229                    self.yaw = tmp;
1230                },
1231                2 => {
1232                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1233                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1234                    }
1235                    let tmp = is.read_float()?;
1236                    self.pitch = tmp;
1237                },
1238                3 => {
1239                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1240                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1241                    }
1242                    let tmp = is.read_float()?;
1243                    self.roll = tmp;
1244                },
1245                4 => {
1246                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1247                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1248                    }
1249                    let tmp = is.read_float()?;
1250                    self.accel_x = tmp;
1251                },
1252                5 => {
1253                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1254                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1255                    }
1256                    let tmp = is.read_float()?;
1257                    self.accel_y = tmp;
1258                },
1259                6 => {
1260                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1261                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1262                    }
1263                    let tmp = is.read_float()?;
1264                    self.accel_z = tmp;
1265                },
1266                7 => {
1267                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1268                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1269                    }
1270                    let tmp = is.read_float()?;
1271                    self.gyro_x = tmp;
1272                },
1273                8 => {
1274                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1275                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1276                    }
1277                    let tmp = is.read_float()?;
1278                    self.gyro_y = tmp;
1279                },
1280                9 => {
1281                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1282                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1283                    }
1284                    let tmp = is.read_float()?;
1285                    self.gyro_z = tmp;
1286                },
1287                10 => {
1288                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1289                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1290                    }
1291                    let tmp = is.read_float()?;
1292                    self.mag_x = tmp;
1293                },
1294                11 => {
1295                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1296                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1297                    }
1298                    let tmp = is.read_float()?;
1299                    self.mag_y = tmp;
1300                },
1301                12 => {
1302                    if wire_type != ::protobuf::wire_format::WireTypeFixed32 {
1303                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1304                    }
1305                    let tmp = is.read_float()?;
1306                    self.mag_z = tmp;
1307                },
1308                _ => {
1309                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1310                },
1311            };
1312        }
1313        ::std::result::Result::Ok(())
1314    }
1315
1316    // Compute sizes of nested messages
1317    #[allow(unused_variables)]
1318    fn compute_size(&self) -> u32 {
1319        let mut my_size = 0;
1320        if self.yaw != 0. {
1321            my_size += 5;
1322        }
1323        if self.pitch != 0. {
1324            my_size += 5;
1325        }
1326        if self.roll != 0. {
1327            my_size += 5;
1328        }
1329        if self.accel_x != 0. {
1330            my_size += 5;
1331        }
1332        if self.accel_y != 0. {
1333            my_size += 5;
1334        }
1335        if self.accel_z != 0. {
1336            my_size += 5;
1337        }
1338        if self.gyro_x != 0. {
1339            my_size += 5;
1340        }
1341        if self.gyro_y != 0. {
1342            my_size += 5;
1343        }
1344        if self.gyro_z != 0. {
1345            my_size += 5;
1346        }
1347        if self.mag_x != 0. {
1348            my_size += 5;
1349        }
1350        if self.mag_y != 0. {
1351            my_size += 5;
1352        }
1353        if self.mag_z != 0. {
1354            my_size += 5;
1355        }
1356        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1357        self.cached_size.set(my_size);
1358        my_size
1359    }
1360
1361    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1362        if self.yaw != 0. {
1363            os.write_float(1, self.yaw)?;
1364        }
1365        if self.pitch != 0. {
1366            os.write_float(2, self.pitch)?;
1367        }
1368        if self.roll != 0. {
1369            os.write_float(3, self.roll)?;
1370        }
1371        if self.accel_x != 0. {
1372            os.write_float(4, self.accel_x)?;
1373        }
1374        if self.accel_y != 0. {
1375            os.write_float(5, self.accel_y)?;
1376        }
1377        if self.accel_z != 0. {
1378            os.write_float(6, self.accel_z)?;
1379        }
1380        if self.gyro_x != 0. {
1381            os.write_float(7, self.gyro_x)?;
1382        }
1383        if self.gyro_y != 0. {
1384            os.write_float(8, self.gyro_y)?;
1385        }
1386        if self.gyro_z != 0. {
1387            os.write_float(9, self.gyro_z)?;
1388        }
1389        if self.mag_x != 0. {
1390            os.write_float(10, self.mag_x)?;
1391        }
1392        if self.mag_y != 0. {
1393            os.write_float(11, self.mag_y)?;
1394        }
1395        if self.mag_z != 0. {
1396            os.write_float(12, self.mag_z)?;
1397        }
1398        os.write_unknown_fields(self.get_unknown_fields())?;
1399        ::std::result::Result::Ok(())
1400    }
1401
1402    fn get_cached_size(&self) -> u32 {
1403        self.cached_size.get()
1404    }
1405
1406    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1407        &self.unknown_fields
1408    }
1409
1410    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1411        &mut self.unknown_fields
1412    }
1413
1414    fn as_any(&self) -> &dyn (::std::any::Any) {
1415        self as &dyn (::std::any::Any)
1416    }
1417    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1418        self as &mut dyn (::std::any::Any)
1419    }
1420    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1421        self
1422    }
1423
1424    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1425        Self::descriptor_static()
1426    }
1427
1428    fn new() -> Imu {
1429        Imu::new()
1430    }
1431
1432    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1433        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
1434        descriptor.get(|| {
1435            let mut fields = ::std::vec::Vec::new();
1436            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1437                "yaw",
1438                |m: &Imu| { &m.yaw },
1439                |m: &mut Imu| { &mut m.yaw },
1440            ));
1441            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1442                "pitch",
1443                |m: &Imu| { &m.pitch },
1444                |m: &mut Imu| { &mut m.pitch },
1445            ));
1446            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1447                "roll",
1448                |m: &Imu| { &m.roll },
1449                |m: &mut Imu| { &mut m.roll },
1450            ));
1451            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1452                "accel_x",
1453                |m: &Imu| { &m.accel_x },
1454                |m: &mut Imu| { &mut m.accel_x },
1455            ));
1456            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1457                "accel_y",
1458                |m: &Imu| { &m.accel_y },
1459                |m: &mut Imu| { &mut m.accel_y },
1460            ));
1461            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1462                "accel_z",
1463                |m: &Imu| { &m.accel_z },
1464                |m: &mut Imu| { &mut m.accel_z },
1465            ));
1466            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1467                "gyro_x",
1468                |m: &Imu| { &m.gyro_x },
1469                |m: &mut Imu| { &mut m.gyro_x },
1470            ));
1471            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1472                "gyro_y",
1473                |m: &Imu| { &m.gyro_y },
1474                |m: &mut Imu| { &mut m.gyro_y },
1475            ));
1476            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1477                "gyro_z",
1478                |m: &Imu| { &m.gyro_z },
1479                |m: &mut Imu| { &mut m.gyro_z },
1480            ));
1481            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1482                "mag_x",
1483                |m: &Imu| { &m.mag_x },
1484                |m: &mut Imu| { &mut m.mag_x },
1485            ));
1486            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1487                "mag_y",
1488                |m: &Imu| { &m.mag_y },
1489                |m: &mut Imu| { &mut m.mag_y },
1490            ));
1491            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeFloat>(
1492                "mag_z",
1493                |m: &Imu| { &m.mag_z },
1494                |m: &mut Imu| { &mut m.mag_z },
1495            ));
1496            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Imu>(
1497                "Imu",
1498                fields,
1499                file_descriptor_proto()
1500            )
1501        })
1502    }
1503
1504    fn default_instance() -> &'static Imu {
1505        static instance: ::protobuf::rt::LazyV2<Imu> = ::protobuf::rt::LazyV2::INIT;
1506        instance.get(Imu::new)
1507    }
1508}
1509
1510impl ::protobuf::Clear for Imu {
1511    fn clear(&mut self) {
1512        self.yaw = 0.;
1513        self.pitch = 0.;
1514        self.roll = 0.;
1515        self.accel_x = 0.;
1516        self.accel_y = 0.;
1517        self.accel_z = 0.;
1518        self.gyro_x = 0.;
1519        self.gyro_y = 0.;
1520        self.gyro_z = 0.;
1521        self.mag_x = 0.;
1522        self.mag_y = 0.;
1523        self.mag_z = 0.;
1524        self.unknown_fields.clear();
1525    }
1526}
1527
1528impl ::std::fmt::Debug for Imu {
1529    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1530        ::protobuf::text_format::fmt(self, f)
1531    }
1532}
1533
1534impl ::protobuf::reflect::ProtobufValue for Imu {
1535    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
1536        ::protobuf::reflect::ReflectValueRef::Message(self)
1537    }
1538}
1539
1540static file_descriptor_proto_data: &'static [u8] = b"\
1541    \n\x1ematrix_io/malos/v1/sense.proto\x12\x18matrix_io.malos.v1.sense\"!\
1542    \n\x05Dummy\x12\x16\n\x05value\x18\x01\x20\x01(\x02R\x05valueB\0:\0\"\
1543    \xb7\x01\n\x08Humidity\x12\x1c\n\x08humidity\x18\x01\x20\x01(\x02R\x08hu\
1544    midityB\0\x12\"\n\x0btemperature\x18\x02\x20\x01(\x02R\x0btemperatureB\0\
1545    \x12)\n\x0ftemperature_raw\x18\x03\x20\x01(\x02R\x0etemperatureRawB\0\
1546    \x12<\n\x19temperature_is_calibrated\x18\x04\x20\x01(\x08R\x17temperatur\
1547    eIsCalibratedB\0:\0\"E\n\x0eHumidityParams\x121\n\x13current_temperature\
1548    \x18\x01\x20\x01(\x02R\x12currentTemperatureB\0:\0\"@\n\x02UV\x12\x1b\n\
1549    \x08uv_index\x18\x01\x20\x01(\x02R\x07uvIndexB\0\x12\x1b\n\x08oms_risk\
1550    \x18\x02\x20\x01(\tR\x07omsRiskB\0:\0\"l\n\x08Pressure\x12\x1c\n\x08pres\
1551    sure\x18\x01\x20\x01(\x02R\x08pressureB\0\x12\x1c\n\x08altitude\x18\x02\
1552    \x20\x01(\x02R\x08altitudeB\0\x12\"\n\x0btemperature\x18\x03\x20\x01(\
1553    \x02R\x0btemperatureB\0:\0\"\xaa\x02\n\x03Imu\x12\x12\n\x03yaw\x18\x01\
1554    \x20\x01(\x02R\x03yawB\0\x12\x16\n\x05pitch\x18\x02\x20\x01(\x02R\x05pit\
1555    chB\0\x12\x14\n\x04roll\x18\x03\x20\x01(\x02R\x04rollB\0\x12\x19\n\x07ac\
1556    cel_x\x18\x04\x20\x01(\x02R\x06accelXB\0\x12\x19\n\x07accel_y\x18\x05\
1557    \x20\x01(\x02R\x06accelYB\0\x12\x19\n\x07accel_z\x18\x06\x20\x01(\x02R\
1558    \x06accelZB\0\x12\x17\n\x06gyro_x\x18\x07\x20\x01(\x02R\x05gyroXB\0\x12\
1559    \x17\n\x06gyro_y\x18\x08\x20\x01(\x02R\x05gyroYB\0\x12\x17\n\x06gyro_z\
1560    \x18\t\x20\x01(\x02R\x05gyroZB\0\x12\x15\n\x05mag_x\x18\n\x20\x01(\x02R\
1561    \x04magXB\0\x12\x15\n\x05mag_y\x18\x0b\x20\x01(\x02R\x04magYB\0\x12\x15\
1562    \n\x05mag_z\x18\x0c\x20\x01(\x02R\x04magZB\0:\0B\0b\x06proto3\
1563";
1564
1565static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
1566
1567fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
1568    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1569}
1570
1571pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1572    file_descriptor_proto_lazy.get(|| {
1573        parse_descriptor_proto()
1574    })
1575}