xref: /aosp_15_r20/tools/netsim/rust/proto/src/model.rs (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1 // This file is generated by rust-protobuf 3.2.0. 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 `netsim/model.proto`
22 
23 /// Generated files are compatible only with the same version
24 /// of protobuf runtime.
25 const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
26 
27 #[derive(PartialEq,Clone,Default,Debug)]
28 // @@protoc_insertion_point(message:netsim.model.Position)
29 pub struct Position {
30     // message fields
31     // @@protoc_insertion_point(field:netsim.model.Position.x)
32     pub x: f32,
33     // @@protoc_insertion_point(field:netsim.model.Position.y)
34     pub y: f32,
35     // @@protoc_insertion_point(field:netsim.model.Position.z)
36     pub z: f32,
37     // special fields
38     // @@protoc_insertion_point(special_field:netsim.model.Position.special_fields)
39     pub special_fields: ::protobuf::SpecialFields,
40 }
41 
42 impl<'a> ::std::default::Default for &'a Position {
default() -> &'a Position43     fn default() -> &'a Position {
44         <Position as ::protobuf::Message>::default_instance()
45     }
46 }
47 
48 impl Position {
new() -> Position49     pub fn new() -> Position {
50         ::std::default::Default::default()
51     }
52 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData53     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
54         let mut fields = ::std::vec::Vec::with_capacity(3);
55         let mut oneofs = ::std::vec::Vec::with_capacity(0);
56         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
57             "x",
58             |m: &Position| { &m.x },
59             |m: &mut Position| { &mut m.x },
60         ));
61         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
62             "y",
63             |m: &Position| { &m.y },
64             |m: &mut Position| { &mut m.y },
65         ));
66         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
67             "z",
68             |m: &Position| { &m.z },
69             |m: &mut Position| { &mut m.z },
70         ));
71         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Position>(
72             "Position",
73             fields,
74             oneofs,
75         )
76     }
77 }
78 
79 impl ::protobuf::Message for Position {
80     const NAME: &'static str = "Position";
81 
is_initialized(&self) -> bool82     fn is_initialized(&self) -> bool {
83         true
84     }
85 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>86     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
87         while let Some(tag) = is.read_raw_tag_or_eof()? {
88             match tag {
89                 13 => {
90                     self.x = is.read_float()?;
91                 },
92                 21 => {
93                     self.y = is.read_float()?;
94                 },
95                 29 => {
96                     self.z = is.read_float()?;
97                 },
98                 tag => {
99                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
100                 },
101             };
102         }
103         ::std::result::Result::Ok(())
104     }
105 
106     // Compute sizes of nested messages
107     #[allow(unused_variables)]
compute_size(&self) -> u64108     fn compute_size(&self) -> u64 {
109         let mut my_size = 0;
110         if self.x != 0. {
111             my_size += 1 + 4;
112         }
113         if self.y != 0. {
114             my_size += 1 + 4;
115         }
116         if self.z != 0. {
117             my_size += 1 + 4;
118         }
119         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
120         self.special_fields.cached_size().set(my_size as u32);
121         my_size
122     }
123 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>124     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
125         if self.x != 0. {
126             os.write_float(1, self.x)?;
127         }
128         if self.y != 0. {
129             os.write_float(2, self.y)?;
130         }
131         if self.z != 0. {
132             os.write_float(3, self.z)?;
133         }
134         os.write_unknown_fields(self.special_fields.unknown_fields())?;
135         ::std::result::Result::Ok(())
136     }
137 
special_fields(&self) -> &::protobuf::SpecialFields138     fn special_fields(&self) -> &::protobuf::SpecialFields {
139         &self.special_fields
140     }
141 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields142     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
143         &mut self.special_fields
144     }
145 
new() -> Position146     fn new() -> Position {
147         Position::new()
148     }
149 
clear(&mut self)150     fn clear(&mut self) {
151         self.x = 0.;
152         self.y = 0.;
153         self.z = 0.;
154         self.special_fields.clear();
155     }
156 
default_instance() -> &'static Position157     fn default_instance() -> &'static Position {
158         static instance: Position = Position {
159             x: 0.,
160             y: 0.,
161             z: 0.,
162             special_fields: ::protobuf::SpecialFields::new(),
163         };
164         &instance
165     }
166 }
167 
168 impl ::protobuf::MessageFull for Position {
descriptor() -> ::protobuf::reflect::MessageDescriptor169     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
170         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
171         descriptor.get(|| file_descriptor().message_by_package_relative_name("Position").unwrap()).clone()
172     }
173 }
174 
175 impl ::std::fmt::Display for Position {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result176     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
177         ::protobuf::text_format::fmt(self, f)
178     }
179 }
180 
181 impl ::protobuf::reflect::ProtobufValue for Position {
182     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
183 }
184 
185 #[derive(PartialEq,Clone,Default,Debug)]
186 // @@protoc_insertion_point(message:netsim.model.Orientation)
187 pub struct Orientation {
188     // message fields
189     // @@protoc_insertion_point(field:netsim.model.Orientation.yaw)
190     pub yaw: f32,
191     // @@protoc_insertion_point(field:netsim.model.Orientation.pitch)
192     pub pitch: f32,
193     // @@protoc_insertion_point(field:netsim.model.Orientation.roll)
194     pub roll: f32,
195     // special fields
196     // @@protoc_insertion_point(special_field:netsim.model.Orientation.special_fields)
197     pub special_fields: ::protobuf::SpecialFields,
198 }
199 
200 impl<'a> ::std::default::Default for &'a Orientation {
default() -> &'a Orientation201     fn default() -> &'a Orientation {
202         <Orientation as ::protobuf::Message>::default_instance()
203     }
204 }
205 
206 impl Orientation {
new() -> Orientation207     pub fn new() -> Orientation {
208         ::std::default::Default::default()
209     }
210 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData211     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
212         let mut fields = ::std::vec::Vec::with_capacity(3);
213         let mut oneofs = ::std::vec::Vec::with_capacity(0);
214         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
215             "yaw",
216             |m: &Orientation| { &m.yaw },
217             |m: &mut Orientation| { &mut m.yaw },
218         ));
219         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
220             "pitch",
221             |m: &Orientation| { &m.pitch },
222             |m: &mut Orientation| { &mut m.pitch },
223         ));
224         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
225             "roll",
226             |m: &Orientation| { &m.roll },
227             |m: &mut Orientation| { &mut m.roll },
228         ));
229         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Orientation>(
230             "Orientation",
231             fields,
232             oneofs,
233         )
234     }
235 }
236 
237 impl ::protobuf::Message for Orientation {
238     const NAME: &'static str = "Orientation";
239 
is_initialized(&self) -> bool240     fn is_initialized(&self) -> bool {
241         true
242     }
243 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>244     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
245         while let Some(tag) = is.read_raw_tag_or_eof()? {
246             match tag {
247                 13 => {
248                     self.yaw = is.read_float()?;
249                 },
250                 21 => {
251                     self.pitch = is.read_float()?;
252                 },
253                 29 => {
254                     self.roll = is.read_float()?;
255                 },
256                 tag => {
257                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
258                 },
259             };
260         }
261         ::std::result::Result::Ok(())
262     }
263 
264     // Compute sizes of nested messages
265     #[allow(unused_variables)]
compute_size(&self) -> u64266     fn compute_size(&self) -> u64 {
267         let mut my_size = 0;
268         if self.yaw != 0. {
269             my_size += 1 + 4;
270         }
271         if self.pitch != 0. {
272             my_size += 1 + 4;
273         }
274         if self.roll != 0. {
275             my_size += 1 + 4;
276         }
277         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
278         self.special_fields.cached_size().set(my_size as u32);
279         my_size
280     }
281 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>282     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
283         if self.yaw != 0. {
284             os.write_float(1, self.yaw)?;
285         }
286         if self.pitch != 0. {
287             os.write_float(2, self.pitch)?;
288         }
289         if self.roll != 0. {
290             os.write_float(3, self.roll)?;
291         }
292         os.write_unknown_fields(self.special_fields.unknown_fields())?;
293         ::std::result::Result::Ok(())
294     }
295 
special_fields(&self) -> &::protobuf::SpecialFields296     fn special_fields(&self) -> &::protobuf::SpecialFields {
297         &self.special_fields
298     }
299 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields300     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
301         &mut self.special_fields
302     }
303 
new() -> Orientation304     fn new() -> Orientation {
305         Orientation::new()
306     }
307 
clear(&mut self)308     fn clear(&mut self) {
309         self.yaw = 0.;
310         self.pitch = 0.;
311         self.roll = 0.;
312         self.special_fields.clear();
313     }
314 
default_instance() -> &'static Orientation315     fn default_instance() -> &'static Orientation {
316         static instance: Orientation = Orientation {
317             yaw: 0.,
318             pitch: 0.,
319             roll: 0.,
320             special_fields: ::protobuf::SpecialFields::new(),
321         };
322         &instance
323     }
324 }
325 
326 impl ::protobuf::MessageFull for Orientation {
descriptor() -> ::protobuf::reflect::MessageDescriptor327     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
328         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
329         descriptor.get(|| file_descriptor().message_by_package_relative_name("Orientation").unwrap()).clone()
330     }
331 }
332 
333 impl ::std::fmt::Display for Orientation {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result334     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
335         ::protobuf::text_format::fmt(self, f)
336     }
337 }
338 
339 impl ::protobuf::reflect::ProtobufValue for Orientation {
340     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
341 }
342 
343 #[derive(PartialEq,Clone,Default,Debug)]
344 // @@protoc_insertion_point(message:netsim.model.Chip)
345 pub struct Chip {
346     // message fields
347     // @@protoc_insertion_point(field:netsim.model.Chip.kind)
348     pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
349     // @@protoc_insertion_point(field:netsim.model.Chip.id)
350     pub id: u32,
351     // @@protoc_insertion_point(field:netsim.model.Chip.name)
352     pub name: ::std::string::String,
353     // @@protoc_insertion_point(field:netsim.model.Chip.manufacturer)
354     pub manufacturer: ::std::string::String,
355     // @@protoc_insertion_point(field:netsim.model.Chip.product_name)
356     pub product_name: ::std::string::String,
357     // @@protoc_insertion_point(field:netsim.model.Chip.offset)
358     pub offset: ::protobuf::MessageField<Position>,
359     // message oneof groups
360     pub chip: ::std::option::Option<chip::Chip>,
361     // special fields
362     // @@protoc_insertion_point(special_field:netsim.model.Chip.special_fields)
363     pub special_fields: ::protobuf::SpecialFields,
364 }
365 
366 impl<'a> ::std::default::Default for &'a Chip {
default() -> &'a Chip367     fn default() -> &'a Chip {
368         <Chip as ::protobuf::Message>::default_instance()
369     }
370 }
371 
372 impl Chip {
new() -> Chip373     pub fn new() -> Chip {
374         ::std::default::Default::default()
375     }
376 
377     // .netsim.model.Chip.Bluetooth bt = 6;
378 
bt(&self) -> &chip::Bluetooth379     pub fn bt(&self) -> &chip::Bluetooth {
380         match self.chip {
381             ::std::option::Option::Some(chip::Chip::Bt(ref v)) => v,
382             _ => <chip::Bluetooth as ::protobuf::Message>::default_instance(),
383         }
384     }
385 
clear_bt(&mut self)386     pub fn clear_bt(&mut self) {
387         self.chip = ::std::option::Option::None;
388     }
389 
has_bt(&self) -> bool390     pub fn has_bt(&self) -> bool {
391         match self.chip {
392             ::std::option::Option::Some(chip::Chip::Bt(..)) => true,
393             _ => false,
394         }
395     }
396 
397     // Param is passed by value, moved
set_bt(&mut self, v: chip::Bluetooth)398     pub fn set_bt(&mut self, v: chip::Bluetooth) {
399         self.chip = ::std::option::Option::Some(chip::Chip::Bt(v))
400     }
401 
402     // Mutable pointer to the field.
mut_bt(&mut self) -> &mut chip::Bluetooth403     pub fn mut_bt(&mut self) -> &mut chip::Bluetooth {
404         if let ::std::option::Option::Some(chip::Chip::Bt(_)) = self.chip {
405         } else {
406             self.chip = ::std::option::Option::Some(chip::Chip::Bt(chip::Bluetooth::new()));
407         }
408         match self.chip {
409             ::std::option::Option::Some(chip::Chip::Bt(ref mut v)) => v,
410             _ => panic!(),
411         }
412     }
413 
414     // Take field
take_bt(&mut self) -> chip::Bluetooth415     pub fn take_bt(&mut self) -> chip::Bluetooth {
416         if self.has_bt() {
417             match self.chip.take() {
418                 ::std::option::Option::Some(chip::Chip::Bt(v)) => v,
419                 _ => panic!(),
420             }
421         } else {
422             chip::Bluetooth::new()
423         }
424     }
425 
426     // .netsim.model.Chip.BleBeacon ble_beacon = 9;
427 
ble_beacon(&self) -> &chip::BleBeacon428     pub fn ble_beacon(&self) -> &chip::BleBeacon {
429         match self.chip {
430             ::std::option::Option::Some(chip::Chip::BleBeacon(ref v)) => v,
431             _ => <chip::BleBeacon as ::protobuf::Message>::default_instance(),
432         }
433     }
434 
clear_ble_beacon(&mut self)435     pub fn clear_ble_beacon(&mut self) {
436         self.chip = ::std::option::Option::None;
437     }
438 
has_ble_beacon(&self) -> bool439     pub fn has_ble_beacon(&self) -> bool {
440         match self.chip {
441             ::std::option::Option::Some(chip::Chip::BleBeacon(..)) => true,
442             _ => false,
443         }
444     }
445 
446     // Param is passed by value, moved
set_ble_beacon(&mut self, v: chip::BleBeacon)447     pub fn set_ble_beacon(&mut self, v: chip::BleBeacon) {
448         self.chip = ::std::option::Option::Some(chip::Chip::BleBeacon(v))
449     }
450 
451     // Mutable pointer to the field.
mut_ble_beacon(&mut self) -> &mut chip::BleBeacon452     pub fn mut_ble_beacon(&mut self) -> &mut chip::BleBeacon {
453         if let ::std::option::Option::Some(chip::Chip::BleBeacon(_)) = self.chip {
454         } else {
455             self.chip = ::std::option::Option::Some(chip::Chip::BleBeacon(chip::BleBeacon::new()));
456         }
457         match self.chip {
458             ::std::option::Option::Some(chip::Chip::BleBeacon(ref mut v)) => v,
459             _ => panic!(),
460         }
461     }
462 
463     // Take field
take_ble_beacon(&mut self) -> chip::BleBeacon464     pub fn take_ble_beacon(&mut self) -> chip::BleBeacon {
465         if self.has_ble_beacon() {
466             match self.chip.take() {
467                 ::std::option::Option::Some(chip::Chip::BleBeacon(v)) => v,
468                 _ => panic!(),
469             }
470         } else {
471             chip::BleBeacon::new()
472         }
473     }
474 
475     // .netsim.model.Chip.Radio uwb = 7;
476 
uwb(&self) -> &chip::Radio477     pub fn uwb(&self) -> &chip::Radio {
478         match self.chip {
479             ::std::option::Option::Some(chip::Chip::Uwb(ref v)) => v,
480             _ => <chip::Radio as ::protobuf::Message>::default_instance(),
481         }
482     }
483 
clear_uwb(&mut self)484     pub fn clear_uwb(&mut self) {
485         self.chip = ::std::option::Option::None;
486     }
487 
has_uwb(&self) -> bool488     pub fn has_uwb(&self) -> bool {
489         match self.chip {
490             ::std::option::Option::Some(chip::Chip::Uwb(..)) => true,
491             _ => false,
492         }
493     }
494 
495     // Param is passed by value, moved
set_uwb(&mut self, v: chip::Radio)496     pub fn set_uwb(&mut self, v: chip::Radio) {
497         self.chip = ::std::option::Option::Some(chip::Chip::Uwb(v))
498     }
499 
500     // Mutable pointer to the field.
mut_uwb(&mut self) -> &mut chip::Radio501     pub fn mut_uwb(&mut self) -> &mut chip::Radio {
502         if let ::std::option::Option::Some(chip::Chip::Uwb(_)) = self.chip {
503         } else {
504             self.chip = ::std::option::Option::Some(chip::Chip::Uwb(chip::Radio::new()));
505         }
506         match self.chip {
507             ::std::option::Option::Some(chip::Chip::Uwb(ref mut v)) => v,
508             _ => panic!(),
509         }
510     }
511 
512     // Take field
take_uwb(&mut self) -> chip::Radio513     pub fn take_uwb(&mut self) -> chip::Radio {
514         if self.has_uwb() {
515             match self.chip.take() {
516                 ::std::option::Option::Some(chip::Chip::Uwb(v)) => v,
517                 _ => panic!(),
518             }
519         } else {
520             chip::Radio::new()
521         }
522     }
523 
524     // .netsim.model.Chip.Radio wifi = 8;
525 
wifi(&self) -> &chip::Radio526     pub fn wifi(&self) -> &chip::Radio {
527         match self.chip {
528             ::std::option::Option::Some(chip::Chip::Wifi(ref v)) => v,
529             _ => <chip::Radio as ::protobuf::Message>::default_instance(),
530         }
531     }
532 
clear_wifi(&mut self)533     pub fn clear_wifi(&mut self) {
534         self.chip = ::std::option::Option::None;
535     }
536 
has_wifi(&self) -> bool537     pub fn has_wifi(&self) -> bool {
538         match self.chip {
539             ::std::option::Option::Some(chip::Chip::Wifi(..)) => true,
540             _ => false,
541         }
542     }
543 
544     // Param is passed by value, moved
set_wifi(&mut self, v: chip::Radio)545     pub fn set_wifi(&mut self, v: chip::Radio) {
546         self.chip = ::std::option::Option::Some(chip::Chip::Wifi(v))
547     }
548 
549     // Mutable pointer to the field.
mut_wifi(&mut self) -> &mut chip::Radio550     pub fn mut_wifi(&mut self) -> &mut chip::Radio {
551         if let ::std::option::Option::Some(chip::Chip::Wifi(_)) = self.chip {
552         } else {
553             self.chip = ::std::option::Option::Some(chip::Chip::Wifi(chip::Radio::new()));
554         }
555         match self.chip {
556             ::std::option::Option::Some(chip::Chip::Wifi(ref mut v)) => v,
557             _ => panic!(),
558         }
559     }
560 
561     // Take field
take_wifi(&mut self) -> chip::Radio562     pub fn take_wifi(&mut self) -> chip::Radio {
563         if self.has_wifi() {
564             match self.chip.take() {
565                 ::std::option::Option::Some(chip::Chip::Wifi(v)) => v,
566                 _ => panic!(),
567             }
568         } else {
569             chip::Radio::new()
570         }
571     }
572 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData573     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
574         let mut fields = ::std::vec::Vec::with_capacity(10);
575         let mut oneofs = ::std::vec::Vec::with_capacity(1);
576         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
577             "kind",
578             |m: &Chip| { &m.kind },
579             |m: &mut Chip| { &mut m.kind },
580         ));
581         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
582             "id",
583             |m: &Chip| { &m.id },
584             |m: &mut Chip| { &mut m.id },
585         ));
586         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
587             "name",
588             |m: &Chip| { &m.name },
589             |m: &mut Chip| { &mut m.name },
590         ));
591         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
592             "manufacturer",
593             |m: &Chip| { &m.manufacturer },
594             |m: &mut Chip| { &mut m.manufacturer },
595         ));
596         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
597             "product_name",
598             |m: &Chip| { &m.product_name },
599             |m: &mut Chip| { &mut m.product_name },
600         ));
601         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, chip::Bluetooth>(
602             "bt",
603             Chip::has_bt,
604             Chip::bt,
605             Chip::mut_bt,
606             Chip::set_bt,
607         ));
608         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, chip::BleBeacon>(
609             "ble_beacon",
610             Chip::has_ble_beacon,
611             Chip::ble_beacon,
612             Chip::mut_ble_beacon,
613             Chip::set_ble_beacon,
614         ));
615         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, chip::Radio>(
616             "uwb",
617             Chip::has_uwb,
618             Chip::uwb,
619             Chip::mut_uwb,
620             Chip::set_uwb,
621         ));
622         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, chip::Radio>(
623             "wifi",
624             Chip::has_wifi,
625             Chip::wifi,
626             Chip::mut_wifi,
627             Chip::set_wifi,
628         ));
629         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Position>(
630             "offset",
631             |m: &Chip| { &m.offset },
632             |m: &mut Chip| { &mut m.offset },
633         ));
634         oneofs.push(chip::Chip::generated_oneof_descriptor_data());
635         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Chip>(
636             "Chip",
637             fields,
638             oneofs,
639         )
640     }
641 }
642 
643 impl ::protobuf::Message for Chip {
644     const NAME: &'static str = "Chip";
645 
is_initialized(&self) -> bool646     fn is_initialized(&self) -> bool {
647         true
648     }
649 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>650     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
651         while let Some(tag) = is.read_raw_tag_or_eof()? {
652             match tag {
653                 8 => {
654                     self.kind = is.read_enum_or_unknown()?;
655                 },
656                 16 => {
657                     self.id = is.read_uint32()?;
658                 },
659                 26 => {
660                     self.name = is.read_string()?;
661                 },
662                 34 => {
663                     self.manufacturer = is.read_string()?;
664                 },
665                 42 => {
666                     self.product_name = is.read_string()?;
667                 },
668                 50 => {
669                     self.chip = ::std::option::Option::Some(chip::Chip::Bt(is.read_message()?));
670                 },
671                 74 => {
672                     self.chip = ::std::option::Option::Some(chip::Chip::BleBeacon(is.read_message()?));
673                 },
674                 58 => {
675                     self.chip = ::std::option::Option::Some(chip::Chip::Uwb(is.read_message()?));
676                 },
677                 66 => {
678                     self.chip = ::std::option::Option::Some(chip::Chip::Wifi(is.read_message()?));
679                 },
680                 122 => {
681                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.offset)?;
682                 },
683                 tag => {
684                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
685                 },
686             };
687         }
688         ::std::result::Result::Ok(())
689     }
690 
691     // Compute sizes of nested messages
692     #[allow(unused_variables)]
compute_size(&self) -> u64693     fn compute_size(&self) -> u64 {
694         let mut my_size = 0;
695         if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
696             my_size += ::protobuf::rt::int32_size(1, self.kind.value());
697         }
698         if self.id != 0 {
699             my_size += ::protobuf::rt::uint32_size(2, self.id);
700         }
701         if !self.name.is_empty() {
702             my_size += ::protobuf::rt::string_size(3, &self.name);
703         }
704         if !self.manufacturer.is_empty() {
705             my_size += ::protobuf::rt::string_size(4, &self.manufacturer);
706         }
707         if !self.product_name.is_empty() {
708             my_size += ::protobuf::rt::string_size(5, &self.product_name);
709         }
710         if let Some(v) = self.offset.as_ref() {
711             let len = v.compute_size();
712             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
713         }
714         if let ::std::option::Option::Some(ref v) = self.chip {
715             match v {
716                 &chip::Chip::Bt(ref v) => {
717                     let len = v.compute_size();
718                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
719                 },
720                 &chip::Chip::BleBeacon(ref v) => {
721                     let len = v.compute_size();
722                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
723                 },
724                 &chip::Chip::Uwb(ref v) => {
725                     let len = v.compute_size();
726                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
727                 },
728                 &chip::Chip::Wifi(ref v) => {
729                     let len = v.compute_size();
730                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
731                 },
732             };
733         }
734         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
735         self.special_fields.cached_size().set(my_size as u32);
736         my_size
737     }
738 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>739     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
740         if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
741             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.kind))?;
742         }
743         if self.id != 0 {
744             os.write_uint32(2, self.id)?;
745         }
746         if !self.name.is_empty() {
747             os.write_string(3, &self.name)?;
748         }
749         if !self.manufacturer.is_empty() {
750             os.write_string(4, &self.manufacturer)?;
751         }
752         if !self.product_name.is_empty() {
753             os.write_string(5, &self.product_name)?;
754         }
755         if let Some(v) = self.offset.as_ref() {
756             ::protobuf::rt::write_message_field_with_cached_size(15, v, os)?;
757         }
758         if let ::std::option::Option::Some(ref v) = self.chip {
759             match v {
760                 &chip::Chip::Bt(ref v) => {
761                     ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
762                 },
763                 &chip::Chip::BleBeacon(ref v) => {
764                     ::protobuf::rt::write_message_field_with_cached_size(9, v, os)?;
765                 },
766                 &chip::Chip::Uwb(ref v) => {
767                     ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?;
768                 },
769                 &chip::Chip::Wifi(ref v) => {
770                     ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?;
771                 },
772             };
773         }
774         os.write_unknown_fields(self.special_fields.unknown_fields())?;
775         ::std::result::Result::Ok(())
776     }
777 
special_fields(&self) -> &::protobuf::SpecialFields778     fn special_fields(&self) -> &::protobuf::SpecialFields {
779         &self.special_fields
780     }
781 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields782     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
783         &mut self.special_fields
784     }
785 
new() -> Chip786     fn new() -> Chip {
787         Chip::new()
788     }
789 
clear(&mut self)790     fn clear(&mut self) {
791         self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED);
792         self.id = 0;
793         self.name.clear();
794         self.manufacturer.clear();
795         self.product_name.clear();
796         self.chip = ::std::option::Option::None;
797         self.chip = ::std::option::Option::None;
798         self.chip = ::std::option::Option::None;
799         self.chip = ::std::option::Option::None;
800         self.offset.clear();
801         self.special_fields.clear();
802     }
803 
default_instance() -> &'static Chip804     fn default_instance() -> &'static Chip {
805         static instance: Chip = Chip {
806             kind: ::protobuf::EnumOrUnknown::from_i32(0),
807             id: 0,
808             name: ::std::string::String::new(),
809             manufacturer: ::std::string::String::new(),
810             product_name: ::std::string::String::new(),
811             offset: ::protobuf::MessageField::none(),
812             chip: ::std::option::Option::None,
813             special_fields: ::protobuf::SpecialFields::new(),
814         };
815         &instance
816     }
817 }
818 
819 impl ::protobuf::MessageFull for Chip {
descriptor() -> ::protobuf::reflect::MessageDescriptor820     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
821         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
822         descriptor.get(|| file_descriptor().message_by_package_relative_name("Chip").unwrap()).clone()
823     }
824 }
825 
826 impl ::std::fmt::Display for Chip {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result827     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
828         ::protobuf::text_format::fmt(self, f)
829     }
830 }
831 
832 impl ::protobuf::reflect::ProtobufValue for Chip {
833     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
834 }
835 
836 /// Nested message and enums of message `Chip`
837 pub mod chip {
838 
839     #[derive(Clone,PartialEq,Debug)]
840     #[non_exhaustive]
841     // @@protoc_insertion_point(oneof:netsim.model.Chip.chip)
842     pub enum Chip {
843         // @@protoc_insertion_point(oneof_field:netsim.model.Chip.bt)
844         Bt(Bluetooth),
845         // @@protoc_insertion_point(oneof_field:netsim.model.Chip.ble_beacon)
846         BleBeacon(BleBeacon),
847         // @@protoc_insertion_point(oneof_field:netsim.model.Chip.uwb)
848         Uwb(Radio),
849         // @@protoc_insertion_point(oneof_field:netsim.model.Chip.wifi)
850         Wifi(Radio),
851     }
852 
853     impl ::protobuf::Oneof for Chip {
854     }
855 
856     impl ::protobuf::OneofFull for Chip {
descriptor() -> ::protobuf::reflect::OneofDescriptor857         fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
858             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
859             descriptor.get(|| <super::Chip as ::protobuf::MessageFull>::descriptor().oneof_by_name("chip").unwrap()).clone()
860         }
861     }
862 
863     impl Chip {
generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData864         pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
865             ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Chip>("chip")
866         }
867     }
868     #[derive(PartialEq,Clone,Default,Debug)]
869     // @@protoc_insertion_point(message:netsim.model.Chip.Radio)
870     pub struct Radio {
871         // message fields
872         // @@protoc_insertion_point(field:netsim.model.Chip.Radio.state)
873         pub state: ::std::option::Option<bool>,
874         // @@protoc_insertion_point(field:netsim.model.Chip.Radio.range)
875         pub range: f32,
876         // @@protoc_insertion_point(field:netsim.model.Chip.Radio.tx_count)
877         pub tx_count: i32,
878         // @@protoc_insertion_point(field:netsim.model.Chip.Radio.rx_count)
879         pub rx_count: i32,
880         // special fields
881         // @@protoc_insertion_point(special_field:netsim.model.Chip.Radio.special_fields)
882         pub special_fields: ::protobuf::SpecialFields,
883     }
884 
885     impl<'a> ::std::default::Default for &'a Radio {
default() -> &'a Radio886         fn default() -> &'a Radio {
887             <Radio as ::protobuf::Message>::default_instance()
888         }
889     }
890 
891     impl Radio {
new() -> Radio892         pub fn new() -> Radio {
893             ::std::default::Default::default()
894         }
895 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData896         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
897             let mut fields = ::std::vec::Vec::with_capacity(4);
898             let mut oneofs = ::std::vec::Vec::with_capacity(0);
899             fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
900                 "state",
901                 |m: &Radio| { &m.state },
902                 |m: &mut Radio| { &mut m.state },
903             ));
904             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
905                 "range",
906                 |m: &Radio| { &m.range },
907                 |m: &mut Radio| { &mut m.range },
908             ));
909             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
910                 "tx_count",
911                 |m: &Radio| { &m.tx_count },
912                 |m: &mut Radio| { &mut m.tx_count },
913             ));
914             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
915                 "rx_count",
916                 |m: &Radio| { &m.rx_count },
917                 |m: &mut Radio| { &mut m.rx_count },
918             ));
919             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Radio>(
920                 "Chip.Radio",
921                 fields,
922                 oneofs,
923             )
924         }
925     }
926 
927     impl ::protobuf::Message for Radio {
928         const NAME: &'static str = "Radio";
929 
is_initialized(&self) -> bool930         fn is_initialized(&self) -> bool {
931             true
932         }
933 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>934         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
935             while let Some(tag) = is.read_raw_tag_or_eof()? {
936                 match tag {
937                     8 => {
938                         self.state = ::std::option::Option::Some(is.read_bool()?);
939                     },
940                     21 => {
941                         self.range = is.read_float()?;
942                     },
943                     24 => {
944                         self.tx_count = is.read_int32()?;
945                     },
946                     32 => {
947                         self.rx_count = is.read_int32()?;
948                     },
949                     tag => {
950                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
951                     },
952                 };
953             }
954             ::std::result::Result::Ok(())
955         }
956 
957         // Compute sizes of nested messages
958         #[allow(unused_variables)]
compute_size(&self) -> u64959         fn compute_size(&self) -> u64 {
960             let mut my_size = 0;
961             if let Some(v) = self.state {
962                 my_size += 1 + 1;
963             }
964             if self.range != 0. {
965                 my_size += 1 + 4;
966             }
967             if self.tx_count != 0 {
968                 my_size += ::protobuf::rt::int32_size(3, self.tx_count);
969             }
970             if self.rx_count != 0 {
971                 my_size += ::protobuf::rt::int32_size(4, self.rx_count);
972             }
973             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
974             self.special_fields.cached_size().set(my_size as u32);
975             my_size
976         }
977 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>978         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
979             if let Some(v) = self.state {
980                 os.write_bool(1, v)?;
981             }
982             if self.range != 0. {
983                 os.write_float(2, self.range)?;
984             }
985             if self.tx_count != 0 {
986                 os.write_int32(3, self.tx_count)?;
987             }
988             if self.rx_count != 0 {
989                 os.write_int32(4, self.rx_count)?;
990             }
991             os.write_unknown_fields(self.special_fields.unknown_fields())?;
992             ::std::result::Result::Ok(())
993         }
994 
special_fields(&self) -> &::protobuf::SpecialFields995         fn special_fields(&self) -> &::protobuf::SpecialFields {
996             &self.special_fields
997         }
998 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields999         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1000             &mut self.special_fields
1001         }
1002 
new() -> Radio1003         fn new() -> Radio {
1004             Radio::new()
1005         }
1006 
clear(&mut self)1007         fn clear(&mut self) {
1008             self.state = ::std::option::Option::None;
1009             self.range = 0.;
1010             self.tx_count = 0;
1011             self.rx_count = 0;
1012             self.special_fields.clear();
1013         }
1014 
default_instance() -> &'static Radio1015         fn default_instance() -> &'static Radio {
1016             static instance: Radio = Radio {
1017                 state: ::std::option::Option::None,
1018                 range: 0.,
1019                 tx_count: 0,
1020                 rx_count: 0,
1021                 special_fields: ::protobuf::SpecialFields::new(),
1022             };
1023             &instance
1024         }
1025     }
1026 
1027     impl ::protobuf::MessageFull for Radio {
descriptor() -> ::protobuf::reflect::MessageDescriptor1028         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1029             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1030             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Chip.Radio").unwrap()).clone()
1031         }
1032     }
1033 
1034     impl ::std::fmt::Display for Radio {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1035         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1036             ::protobuf::text_format::fmt(self, f)
1037         }
1038     }
1039 
1040     impl ::protobuf::reflect::ProtobufValue for Radio {
1041         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1042     }
1043 
1044     #[derive(PartialEq,Clone,Default,Debug)]
1045     // @@protoc_insertion_point(message:netsim.model.Chip.Bluetooth)
1046     pub struct Bluetooth {
1047         // message fields
1048         // @@protoc_insertion_point(field:netsim.model.Chip.Bluetooth.low_energy)
1049         pub low_energy: ::protobuf::MessageField<Radio>,
1050         // @@protoc_insertion_point(field:netsim.model.Chip.Bluetooth.classic)
1051         pub classic: ::protobuf::MessageField<Radio>,
1052         // @@protoc_insertion_point(field:netsim.model.Chip.Bluetooth.address)
1053         pub address: ::std::string::String,
1054         // @@protoc_insertion_point(field:netsim.model.Chip.Bluetooth.bt_properties)
1055         pub bt_properties: ::protobuf::MessageField<super::super::configuration::Controller>,
1056         // special fields
1057         // @@protoc_insertion_point(special_field:netsim.model.Chip.Bluetooth.special_fields)
1058         pub special_fields: ::protobuf::SpecialFields,
1059     }
1060 
1061     impl<'a> ::std::default::Default for &'a Bluetooth {
default() -> &'a Bluetooth1062         fn default() -> &'a Bluetooth {
1063             <Bluetooth as ::protobuf::Message>::default_instance()
1064         }
1065     }
1066 
1067     impl Bluetooth {
new() -> Bluetooth1068         pub fn new() -> Bluetooth {
1069             ::std::default::Default::default()
1070         }
1071 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1072         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1073             let mut fields = ::std::vec::Vec::with_capacity(4);
1074             let mut oneofs = ::std::vec::Vec::with_capacity(0);
1075             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Radio>(
1076                 "low_energy",
1077                 |m: &Bluetooth| { &m.low_energy },
1078                 |m: &mut Bluetooth| { &mut m.low_energy },
1079             ));
1080             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Radio>(
1081                 "classic",
1082                 |m: &Bluetooth| { &m.classic },
1083                 |m: &mut Bluetooth| { &mut m.classic },
1084             ));
1085             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1086                 "address",
1087                 |m: &Bluetooth| { &m.address },
1088                 |m: &mut Bluetooth| { &mut m.address },
1089             ));
1090             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::super::configuration::Controller>(
1091                 "bt_properties",
1092                 |m: &Bluetooth| { &m.bt_properties },
1093                 |m: &mut Bluetooth| { &mut m.bt_properties },
1094             ));
1095             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Bluetooth>(
1096                 "Chip.Bluetooth",
1097                 fields,
1098                 oneofs,
1099             )
1100         }
1101     }
1102 
1103     impl ::protobuf::Message for Bluetooth {
1104         const NAME: &'static str = "Bluetooth";
1105 
is_initialized(&self) -> bool1106         fn is_initialized(&self) -> bool {
1107             true
1108         }
1109 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1110         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1111             while let Some(tag) = is.read_raw_tag_or_eof()? {
1112                 match tag {
1113                     10 => {
1114                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.low_energy)?;
1115                     },
1116                     18 => {
1117                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.classic)?;
1118                     },
1119                     26 => {
1120                         self.address = is.read_string()?;
1121                     },
1122                     34 => {
1123                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.bt_properties)?;
1124                     },
1125                     tag => {
1126                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1127                     },
1128                 };
1129             }
1130             ::std::result::Result::Ok(())
1131         }
1132 
1133         // Compute sizes of nested messages
1134         #[allow(unused_variables)]
compute_size(&self) -> u641135         fn compute_size(&self) -> u64 {
1136             let mut my_size = 0;
1137             if let Some(v) = self.low_energy.as_ref() {
1138                 let len = v.compute_size();
1139                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1140             }
1141             if let Some(v) = self.classic.as_ref() {
1142                 let len = v.compute_size();
1143                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1144             }
1145             if !self.address.is_empty() {
1146                 my_size += ::protobuf::rt::string_size(3, &self.address);
1147             }
1148             if let Some(v) = self.bt_properties.as_ref() {
1149                 let len = v.compute_size();
1150                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1151             }
1152             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1153             self.special_fields.cached_size().set(my_size as u32);
1154             my_size
1155         }
1156 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1157         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1158             if let Some(v) = self.low_energy.as_ref() {
1159                 ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1160             }
1161             if let Some(v) = self.classic.as_ref() {
1162                 ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1163             }
1164             if !self.address.is_empty() {
1165                 os.write_string(3, &self.address)?;
1166             }
1167             if let Some(v) = self.bt_properties.as_ref() {
1168                 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
1169             }
1170             os.write_unknown_fields(self.special_fields.unknown_fields())?;
1171             ::std::result::Result::Ok(())
1172         }
1173 
special_fields(&self) -> &::protobuf::SpecialFields1174         fn special_fields(&self) -> &::protobuf::SpecialFields {
1175             &self.special_fields
1176         }
1177 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1178         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1179             &mut self.special_fields
1180         }
1181 
new() -> Bluetooth1182         fn new() -> Bluetooth {
1183             Bluetooth::new()
1184         }
1185 
clear(&mut self)1186         fn clear(&mut self) {
1187             self.low_energy.clear();
1188             self.classic.clear();
1189             self.address.clear();
1190             self.bt_properties.clear();
1191             self.special_fields.clear();
1192         }
1193 
default_instance() -> &'static Bluetooth1194         fn default_instance() -> &'static Bluetooth {
1195             static instance: Bluetooth = Bluetooth {
1196                 low_energy: ::protobuf::MessageField::none(),
1197                 classic: ::protobuf::MessageField::none(),
1198                 address: ::std::string::String::new(),
1199                 bt_properties: ::protobuf::MessageField::none(),
1200                 special_fields: ::protobuf::SpecialFields::new(),
1201             };
1202             &instance
1203         }
1204     }
1205 
1206     impl ::protobuf::MessageFull for Bluetooth {
descriptor() -> ::protobuf::reflect::MessageDescriptor1207         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1208             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1209             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Chip.Bluetooth").unwrap()).clone()
1210         }
1211     }
1212 
1213     impl ::std::fmt::Display for Bluetooth {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1214         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1215             ::protobuf::text_format::fmt(self, f)
1216         }
1217     }
1218 
1219     impl ::protobuf::reflect::ProtobufValue for Bluetooth {
1220         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1221     }
1222 
1223     #[derive(PartialEq,Clone,Default,Debug)]
1224     // @@protoc_insertion_point(message:netsim.model.Chip.BleBeacon)
1225     pub struct BleBeacon {
1226         // message fields
1227         // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.bt)
1228         pub bt: ::protobuf::MessageField<Bluetooth>,
1229         // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.address)
1230         pub address: ::std::string::String,
1231         // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.settings)
1232         pub settings: ::protobuf::MessageField<ble_beacon::AdvertiseSettings>,
1233         // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.adv_data)
1234         pub adv_data: ::protobuf::MessageField<ble_beacon::AdvertiseData>,
1235         // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.scan_response)
1236         pub scan_response: ::protobuf::MessageField<ble_beacon::AdvertiseData>,
1237         // special fields
1238         // @@protoc_insertion_point(special_field:netsim.model.Chip.BleBeacon.special_fields)
1239         pub special_fields: ::protobuf::SpecialFields,
1240     }
1241 
1242     impl<'a> ::std::default::Default for &'a BleBeacon {
default() -> &'a BleBeacon1243         fn default() -> &'a BleBeacon {
1244             <BleBeacon as ::protobuf::Message>::default_instance()
1245         }
1246     }
1247 
1248     impl BleBeacon {
new() -> BleBeacon1249         pub fn new() -> BleBeacon {
1250             ::std::default::Default::default()
1251         }
1252 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1253         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1254             let mut fields = ::std::vec::Vec::with_capacity(5);
1255             let mut oneofs = ::std::vec::Vec::with_capacity(0);
1256             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Bluetooth>(
1257                 "bt",
1258                 |m: &BleBeacon| { &m.bt },
1259                 |m: &mut BleBeacon| { &mut m.bt },
1260             ));
1261             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1262                 "address",
1263                 |m: &BleBeacon| { &m.address },
1264                 |m: &mut BleBeacon| { &mut m.address },
1265             ));
1266             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ble_beacon::AdvertiseSettings>(
1267                 "settings",
1268                 |m: &BleBeacon| { &m.settings },
1269                 |m: &mut BleBeacon| { &mut m.settings },
1270             ));
1271             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ble_beacon::AdvertiseData>(
1272                 "adv_data",
1273                 |m: &BleBeacon| { &m.adv_data },
1274                 |m: &mut BleBeacon| { &mut m.adv_data },
1275             ));
1276             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ble_beacon::AdvertiseData>(
1277                 "scan_response",
1278                 |m: &BleBeacon| { &m.scan_response },
1279                 |m: &mut BleBeacon| { &mut m.scan_response },
1280             ));
1281             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<BleBeacon>(
1282                 "Chip.BleBeacon",
1283                 fields,
1284                 oneofs,
1285             )
1286         }
1287     }
1288 
1289     impl ::protobuf::Message for BleBeacon {
1290         const NAME: &'static str = "BleBeacon";
1291 
is_initialized(&self) -> bool1292         fn is_initialized(&self) -> bool {
1293             true
1294         }
1295 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1296         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1297             while let Some(tag) = is.read_raw_tag_or_eof()? {
1298                 match tag {
1299                     10 => {
1300                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.bt)?;
1301                     },
1302                     18 => {
1303                         self.address = is.read_string()?;
1304                     },
1305                     26 => {
1306                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.settings)?;
1307                     },
1308                     34 => {
1309                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.adv_data)?;
1310                     },
1311                     42 => {
1312                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.scan_response)?;
1313                     },
1314                     tag => {
1315                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1316                     },
1317                 };
1318             }
1319             ::std::result::Result::Ok(())
1320         }
1321 
1322         // Compute sizes of nested messages
1323         #[allow(unused_variables)]
compute_size(&self) -> u641324         fn compute_size(&self) -> u64 {
1325             let mut my_size = 0;
1326             if let Some(v) = self.bt.as_ref() {
1327                 let len = v.compute_size();
1328                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1329             }
1330             if !self.address.is_empty() {
1331                 my_size += ::protobuf::rt::string_size(2, &self.address);
1332             }
1333             if let Some(v) = self.settings.as_ref() {
1334                 let len = v.compute_size();
1335                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1336             }
1337             if let Some(v) = self.adv_data.as_ref() {
1338                 let len = v.compute_size();
1339                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1340             }
1341             if let Some(v) = self.scan_response.as_ref() {
1342                 let len = v.compute_size();
1343                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1344             }
1345             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1346             self.special_fields.cached_size().set(my_size as u32);
1347             my_size
1348         }
1349 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1350         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1351             if let Some(v) = self.bt.as_ref() {
1352                 ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1353             }
1354             if !self.address.is_empty() {
1355                 os.write_string(2, &self.address)?;
1356             }
1357             if let Some(v) = self.settings.as_ref() {
1358                 ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
1359             }
1360             if let Some(v) = self.adv_data.as_ref() {
1361                 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
1362             }
1363             if let Some(v) = self.scan_response.as_ref() {
1364                 ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
1365             }
1366             os.write_unknown_fields(self.special_fields.unknown_fields())?;
1367             ::std::result::Result::Ok(())
1368         }
1369 
special_fields(&self) -> &::protobuf::SpecialFields1370         fn special_fields(&self) -> &::protobuf::SpecialFields {
1371             &self.special_fields
1372         }
1373 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1374         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1375             &mut self.special_fields
1376         }
1377 
new() -> BleBeacon1378         fn new() -> BleBeacon {
1379             BleBeacon::new()
1380         }
1381 
clear(&mut self)1382         fn clear(&mut self) {
1383             self.bt.clear();
1384             self.address.clear();
1385             self.settings.clear();
1386             self.adv_data.clear();
1387             self.scan_response.clear();
1388             self.special_fields.clear();
1389         }
1390 
default_instance() -> &'static BleBeacon1391         fn default_instance() -> &'static BleBeacon {
1392             static instance: BleBeacon = BleBeacon {
1393                 bt: ::protobuf::MessageField::none(),
1394                 address: ::std::string::String::new(),
1395                 settings: ::protobuf::MessageField::none(),
1396                 adv_data: ::protobuf::MessageField::none(),
1397                 scan_response: ::protobuf::MessageField::none(),
1398                 special_fields: ::protobuf::SpecialFields::new(),
1399             };
1400             &instance
1401         }
1402     }
1403 
1404     impl ::protobuf::MessageFull for BleBeacon {
descriptor() -> ::protobuf::reflect::MessageDescriptor1405         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1406             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1407             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("Chip.BleBeacon").unwrap()).clone()
1408         }
1409     }
1410 
1411     impl ::std::fmt::Display for BleBeacon {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1412         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1413             ::protobuf::text_format::fmt(self, f)
1414         }
1415     }
1416 
1417     impl ::protobuf::reflect::ProtobufValue for BleBeacon {
1418         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1419     }
1420 
1421     /// Nested message and enums of message `BleBeacon`
1422     pub mod ble_beacon {
1423         #[derive(PartialEq,Clone,Default,Debug)]
1424         // @@protoc_insertion_point(message:netsim.model.Chip.BleBeacon.AdvertiseSettings)
1425         pub struct AdvertiseSettings {
1426             // message fields
1427             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseSettings.scannable)
1428             pub scannable: bool,
1429             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseSettings.timeout)
1430             pub timeout: u64,
1431             // message oneof groups
1432             pub interval: ::std::option::Option<advertise_settings::Interval>,
1433             pub tx_power: ::std::option::Option<advertise_settings::Tx_power>,
1434             // special fields
1435             // @@protoc_insertion_point(special_field:netsim.model.Chip.BleBeacon.AdvertiseSettings.special_fields)
1436             pub special_fields: ::protobuf::SpecialFields,
1437         }
1438 
1439         impl<'a> ::std::default::Default for &'a AdvertiseSettings {
default() -> &'a AdvertiseSettings1440             fn default() -> &'a AdvertiseSettings {
1441                 <AdvertiseSettings as ::protobuf::Message>::default_instance()
1442             }
1443         }
1444 
1445         impl AdvertiseSettings {
new() -> AdvertiseSettings1446             pub fn new() -> AdvertiseSettings {
1447                 ::std::default::Default::default()
1448             }
1449 
1450             // .netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseMode advertise_mode = 1;
1451 
advertise_mode(&self) -> advertise_settings::AdvertiseMode1452             pub fn advertise_mode(&self) -> advertise_settings::AdvertiseMode {
1453                 match self.interval {
1454                     ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(v)) => ::protobuf::EnumOrUnknown::enum_value_or_default(&v),
1455                     _ => advertise_settings::AdvertiseMode::LOW_POWER,
1456                 }
1457             }
1458 
clear_advertise_mode(&mut self)1459             pub fn clear_advertise_mode(&mut self) {
1460                 self.interval = ::std::option::Option::None;
1461             }
1462 
has_advertise_mode(&self) -> bool1463             pub fn has_advertise_mode(&self) -> bool {
1464                 match self.interval {
1465                     ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(..)) => true,
1466                     _ => false,
1467                 }
1468             }
1469 
1470             // Param is passed by value, moved
set_advertise_mode(&mut self, v: advertise_settings::AdvertiseMode)1471             pub fn set_advertise_mode(&mut self, v: advertise_settings::AdvertiseMode) {
1472                 self.interval = ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(::protobuf::EnumOrUnknown::new(v)))
1473             }
1474 
1475             // uint64 milliseconds = 2;
1476 
milliseconds(&self) -> u641477             pub fn milliseconds(&self) -> u64 {
1478                 match self.interval {
1479                     ::std::option::Option::Some(advertise_settings::Interval::Milliseconds(v)) => v,
1480                     _ => 0,
1481                 }
1482             }
1483 
clear_milliseconds(&mut self)1484             pub fn clear_milliseconds(&mut self) {
1485                 self.interval = ::std::option::Option::None;
1486             }
1487 
has_milliseconds(&self) -> bool1488             pub fn has_milliseconds(&self) -> bool {
1489                 match self.interval {
1490                     ::std::option::Option::Some(advertise_settings::Interval::Milliseconds(..)) => true,
1491                     _ => false,
1492                 }
1493             }
1494 
1495             // Param is passed by value, moved
set_milliseconds(&mut self, v: u64)1496             pub fn set_milliseconds(&mut self, v: u64) {
1497                 self.interval = ::std::option::Option::Some(advertise_settings::Interval::Milliseconds(v))
1498             }
1499 
1500             // .netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower tx_power_level = 3;
1501 
tx_power_level(&self) -> advertise_settings::AdvertiseTxPower1502             pub fn tx_power_level(&self) -> advertise_settings::AdvertiseTxPower {
1503                 match self.tx_power {
1504                     ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(v)) => ::protobuf::EnumOrUnknown::enum_value_or_default(&v),
1505                     _ => advertise_settings::AdvertiseTxPower::ULTRA_LOW,
1506                 }
1507             }
1508 
clear_tx_power_level(&mut self)1509             pub fn clear_tx_power_level(&mut self) {
1510                 self.tx_power = ::std::option::Option::None;
1511             }
1512 
has_tx_power_level(&self) -> bool1513             pub fn has_tx_power_level(&self) -> bool {
1514                 match self.tx_power {
1515                     ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(..)) => true,
1516                     _ => false,
1517                 }
1518             }
1519 
1520             // Param is passed by value, moved
set_tx_power_level(&mut self, v: advertise_settings::AdvertiseTxPower)1521             pub fn set_tx_power_level(&mut self, v: advertise_settings::AdvertiseTxPower) {
1522                 self.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(::protobuf::EnumOrUnknown::new(v)))
1523             }
1524 
1525             // int32 dbm = 4;
1526 
dbm(&self) -> i321527             pub fn dbm(&self) -> i32 {
1528                 match self.tx_power {
1529                     ::std::option::Option::Some(advertise_settings::Tx_power::Dbm(v)) => v,
1530                     _ => 0,
1531                 }
1532             }
1533 
clear_dbm(&mut self)1534             pub fn clear_dbm(&mut self) {
1535                 self.tx_power = ::std::option::Option::None;
1536             }
1537 
has_dbm(&self) -> bool1538             pub fn has_dbm(&self) -> bool {
1539                 match self.tx_power {
1540                     ::std::option::Option::Some(advertise_settings::Tx_power::Dbm(..)) => true,
1541                     _ => false,
1542                 }
1543             }
1544 
1545             // Param is passed by value, moved
set_dbm(&mut self, v: i32)1546             pub fn set_dbm(&mut self, v: i32) {
1547                 self.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::Dbm(v))
1548             }
1549 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1550             pub(in super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1551                 let mut fields = ::std::vec::Vec::with_capacity(6);
1552                 let mut oneofs = ::std::vec::Vec::with_capacity(2);
1553                 fields.push(::protobuf::reflect::rt::v2::make_oneof_enum_accessors::<_, _>(
1554                     "advertise_mode",
1555                     |message: &AdvertiseSettings| match &message.interval {
1556                         ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(e)) => ::std::option::Option::Some(*e),
1557                         _ => ::std::option::Option::None,
1558                     },
1559                     |message: &mut AdvertiseSettings, e: ::protobuf::EnumOrUnknown<advertise_settings::AdvertiseMode>| {
1560                         message.interval = ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(e));
1561                     },
1562                     advertise_settings::AdvertiseMode::LOW_POWER,
1563                 ));
1564                 fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>(
1565                     "milliseconds",
1566                     AdvertiseSettings::has_milliseconds,
1567                     AdvertiseSettings::milliseconds,
1568                     AdvertiseSettings::set_milliseconds,
1569                 ));
1570                 fields.push(::protobuf::reflect::rt::v2::make_oneof_enum_accessors::<_, _>(
1571                     "tx_power_level",
1572                     |message: &AdvertiseSettings| match &message.tx_power {
1573                         ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(e)) => ::std::option::Option::Some(*e),
1574                         _ => ::std::option::Option::None,
1575                     },
1576                     |message: &mut AdvertiseSettings, e: ::protobuf::EnumOrUnknown<advertise_settings::AdvertiseTxPower>| {
1577                         message.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(e));
1578                     },
1579                     advertise_settings::AdvertiseTxPower::ULTRA_LOW,
1580                 ));
1581                 fields.push(::protobuf::reflect::rt::v2::make_oneof_copy_has_get_set_simpler_accessors::<_, _>(
1582                     "dbm",
1583                     AdvertiseSettings::has_dbm,
1584                     AdvertiseSettings::dbm,
1585                     AdvertiseSettings::set_dbm,
1586                 ));
1587                 fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1588                     "scannable",
1589                     |m: &AdvertiseSettings| { &m.scannable },
1590                     |m: &mut AdvertiseSettings| { &mut m.scannable },
1591                 ));
1592                 fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1593                     "timeout",
1594                     |m: &AdvertiseSettings| { &m.timeout },
1595                     |m: &mut AdvertiseSettings| { &mut m.timeout },
1596                 ));
1597                 oneofs.push(advertise_settings::Interval::generated_oneof_descriptor_data());
1598                 oneofs.push(advertise_settings::Tx_power::generated_oneof_descriptor_data());
1599                 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AdvertiseSettings>(
1600                     "Chip.BleBeacon.AdvertiseSettings",
1601                     fields,
1602                     oneofs,
1603                 )
1604             }
1605         }
1606 
1607         impl ::protobuf::Message for AdvertiseSettings {
1608             const NAME: &'static str = "AdvertiseSettings";
1609 
is_initialized(&self) -> bool1610             fn is_initialized(&self) -> bool {
1611                 true
1612             }
1613 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1614             fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1615                 while let Some(tag) = is.read_raw_tag_or_eof()? {
1616                     match tag {
1617                         8 => {
1618                             self.interval = ::std::option::Option::Some(advertise_settings::Interval::AdvertiseMode(is.read_enum_or_unknown()?));
1619                         },
1620                         16 => {
1621                             self.interval = ::std::option::Option::Some(advertise_settings::Interval::Milliseconds(is.read_uint64()?));
1622                         },
1623                         24 => {
1624                             self.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(is.read_enum_or_unknown()?));
1625                         },
1626                         32 => {
1627                             self.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::Dbm(is.read_int32()?));
1628                         },
1629                         40 => {
1630                             self.scannable = is.read_bool()?;
1631                         },
1632                         48 => {
1633                             self.timeout = is.read_uint64()?;
1634                         },
1635                         tag => {
1636                             ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1637                         },
1638                     };
1639                 }
1640                 ::std::result::Result::Ok(())
1641             }
1642 
1643             // Compute sizes of nested messages
1644             #[allow(unused_variables)]
compute_size(&self) -> u641645             fn compute_size(&self) -> u64 {
1646                 let mut my_size = 0;
1647                 if self.scannable != false {
1648                     my_size += 1 + 1;
1649                 }
1650                 if self.timeout != 0 {
1651                     my_size += ::protobuf::rt::uint64_size(6, self.timeout);
1652                 }
1653                 if let ::std::option::Option::Some(ref v) = self.interval {
1654                     match v {
1655                         &advertise_settings::Interval::AdvertiseMode(v) => {
1656                             my_size += ::protobuf::rt::int32_size(1, v.value());
1657                         },
1658                         &advertise_settings::Interval::Milliseconds(v) => {
1659                             my_size += ::protobuf::rt::uint64_size(2, v);
1660                         },
1661                     };
1662                 }
1663                 if let ::std::option::Option::Some(ref v) = self.tx_power {
1664                     match v {
1665                         &advertise_settings::Tx_power::TxPowerLevel(v) => {
1666                             my_size += ::protobuf::rt::int32_size(3, v.value());
1667                         },
1668                         &advertise_settings::Tx_power::Dbm(v) => {
1669                             my_size += ::protobuf::rt::int32_size(4, v);
1670                         },
1671                     };
1672                 }
1673                 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1674                 self.special_fields.cached_size().set(my_size as u32);
1675                 my_size
1676             }
1677 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1678             fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1679                 if self.scannable != false {
1680                     os.write_bool(5, self.scannable)?;
1681                 }
1682                 if self.timeout != 0 {
1683                     os.write_uint64(6, self.timeout)?;
1684                 }
1685                 if let ::std::option::Option::Some(ref v) = self.interval {
1686                     match v {
1687                         &advertise_settings::Interval::AdvertiseMode(v) => {
1688                             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
1689                         },
1690                         &advertise_settings::Interval::Milliseconds(v) => {
1691                             os.write_uint64(2, v)?;
1692                         },
1693                     };
1694                 }
1695                 if let ::std::option::Option::Some(ref v) = self.tx_power {
1696                     match v {
1697                         &advertise_settings::Tx_power::TxPowerLevel(v) => {
1698                             os.write_enum(3, ::protobuf::EnumOrUnknown::value(&v))?;
1699                         },
1700                         &advertise_settings::Tx_power::Dbm(v) => {
1701                             os.write_int32(4, v)?;
1702                         },
1703                     };
1704                 }
1705                 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1706                 ::std::result::Result::Ok(())
1707             }
1708 
special_fields(&self) -> &::protobuf::SpecialFields1709             fn special_fields(&self) -> &::protobuf::SpecialFields {
1710                 &self.special_fields
1711             }
1712 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1713             fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1714                 &mut self.special_fields
1715             }
1716 
new() -> AdvertiseSettings1717             fn new() -> AdvertiseSettings {
1718                 AdvertiseSettings::new()
1719             }
1720 
clear(&mut self)1721             fn clear(&mut self) {
1722                 self.interval = ::std::option::Option::None;
1723                 self.interval = ::std::option::Option::None;
1724                 self.tx_power = ::std::option::Option::None;
1725                 self.tx_power = ::std::option::Option::None;
1726                 self.scannable = false;
1727                 self.timeout = 0;
1728                 self.special_fields.clear();
1729             }
1730 
default_instance() -> &'static AdvertiseSettings1731             fn default_instance() -> &'static AdvertiseSettings {
1732                 static instance: AdvertiseSettings = AdvertiseSettings {
1733                     scannable: false,
1734                     timeout: 0,
1735                     interval: ::std::option::Option::None,
1736                     tx_power: ::std::option::Option::None,
1737                     special_fields: ::protobuf::SpecialFields::new(),
1738                 };
1739                 &instance
1740             }
1741         }
1742 
1743         impl ::protobuf::MessageFull for AdvertiseSettings {
descriptor() -> ::protobuf::reflect::MessageDescriptor1744             fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1745                 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1746                 descriptor.get(|| super::super::file_descriptor().message_by_package_relative_name("Chip.BleBeacon.AdvertiseSettings").unwrap()).clone()
1747             }
1748         }
1749 
1750         impl ::std::fmt::Display for AdvertiseSettings {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1751             fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1752                 ::protobuf::text_format::fmt(self, f)
1753             }
1754         }
1755 
1756         impl ::protobuf::reflect::ProtobufValue for AdvertiseSettings {
1757             type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1758         }
1759 
1760         /// Nested message and enums of message `AdvertiseSettings`
1761         pub mod advertise_settings {
1762 
1763             #[derive(Clone,PartialEq,Debug)]
1764             #[non_exhaustive]
1765             // @@protoc_insertion_point(oneof:netsim.model.Chip.BleBeacon.AdvertiseSettings.interval)
1766             pub enum Interval {
1767                 // @@protoc_insertion_point(oneof_field:netsim.model.Chip.BleBeacon.AdvertiseSettings.advertise_mode)
1768                 AdvertiseMode(::protobuf::EnumOrUnknown<AdvertiseMode>),
1769                 // @@protoc_insertion_point(oneof_field:netsim.model.Chip.BleBeacon.AdvertiseSettings.milliseconds)
1770                 Milliseconds(u64),
1771             }
1772 
1773             impl ::protobuf::Oneof for Interval {
1774             }
1775 
1776             impl ::protobuf::OneofFull for Interval {
descriptor() -> ::protobuf::reflect::OneofDescriptor1777                 fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
1778                     static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
1779                     descriptor.get(|| <super::AdvertiseSettings as ::protobuf::MessageFull>::descriptor().oneof_by_name("interval").unwrap()).clone()
1780                 }
1781             }
1782 
1783             impl Interval {
generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData1784                 pub(in super::super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
1785                     ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Interval>("interval")
1786                 }
1787             }
1788 
1789             #[derive(Clone,PartialEq,Debug)]
1790             #[non_exhaustive]
1791             // @@protoc_insertion_point(oneof:netsim.model.Chip.BleBeacon.AdvertiseSettings.tx_power)
1792             pub enum Tx_power {
1793                 // @@protoc_insertion_point(oneof_field:netsim.model.Chip.BleBeacon.AdvertiseSettings.tx_power_level)
1794                 TxPowerLevel(::protobuf::EnumOrUnknown<AdvertiseTxPower>),
1795                 // @@protoc_insertion_point(oneof_field:netsim.model.Chip.BleBeacon.AdvertiseSettings.dbm)
1796                 Dbm(i32),
1797             }
1798 
1799             impl ::protobuf::Oneof for Tx_power {
1800             }
1801 
1802             impl ::protobuf::OneofFull for Tx_power {
descriptor() -> ::protobuf::reflect::OneofDescriptor1803                 fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
1804                     static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
1805                     descriptor.get(|| <super::AdvertiseSettings as ::protobuf::MessageFull>::descriptor().oneof_by_name("tx_power").unwrap()).clone()
1806                 }
1807             }
1808 
1809             impl Tx_power {
generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData1810                 pub(in super::super::super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
1811                     ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Tx_power>("tx_power")
1812                 }
1813             }
1814             #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1815             // @@protoc_insertion_point(enum:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseMode)
1816             pub enum AdvertiseMode {
1817                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseMode.LOW_POWER)
1818                 LOW_POWER = 0,
1819                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseMode.BALANCED)
1820                 BALANCED = 1,
1821                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseMode.LOW_LATENCY)
1822                 LOW_LATENCY = 2,
1823             }
1824 
1825             impl ::protobuf::Enum for AdvertiseMode {
1826                 const NAME: &'static str = "AdvertiseMode";
1827 
value(&self) -> i321828                 fn value(&self) -> i32 {
1829                     *self as i32
1830                 }
1831 
from_i32(value: i32) -> ::std::option::Option<AdvertiseMode>1832                 fn from_i32(value: i32) -> ::std::option::Option<AdvertiseMode> {
1833                     match value {
1834                         0 => ::std::option::Option::Some(AdvertiseMode::LOW_POWER),
1835                         1 => ::std::option::Option::Some(AdvertiseMode::BALANCED),
1836                         2 => ::std::option::Option::Some(AdvertiseMode::LOW_LATENCY),
1837                         _ => ::std::option::Option::None
1838                     }
1839                 }
1840 
1841                 const VALUES: &'static [AdvertiseMode] = &[
1842                     AdvertiseMode::LOW_POWER,
1843                     AdvertiseMode::BALANCED,
1844                     AdvertiseMode::LOW_LATENCY,
1845                 ];
1846             }
1847 
1848             impl ::protobuf::EnumFull for AdvertiseMode {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor1849                 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1850                     static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1851                     descriptor.get(|| super::super::super::file_descriptor().enum_by_package_relative_name("Chip.BleBeacon.AdvertiseSettings.AdvertiseMode").unwrap()).clone()
1852                 }
1853 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor1854                 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1855                     let index = *self as usize;
1856                     Self::enum_descriptor().value_by_index(index)
1857                 }
1858             }
1859 
1860             impl ::std::default::Default for AdvertiseMode {
default() -> Self1861                 fn default() -> Self {
1862                     AdvertiseMode::LOW_POWER
1863                 }
1864             }
1865 
1866             impl AdvertiseMode {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData1867                 pub(in super::super::super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1868                     ::protobuf::reflect::GeneratedEnumDescriptorData::new::<AdvertiseMode>("Chip.BleBeacon.AdvertiseSettings.AdvertiseMode")
1869                 }
1870             }
1871 
1872             #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1873             // @@protoc_insertion_point(enum:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower)
1874             pub enum AdvertiseTxPower {
1875                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower.ULTRA_LOW)
1876                 ULTRA_LOW = 0,
1877                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower.LOW)
1878                 LOW = 1,
1879                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower.MEDIUM)
1880                 MEDIUM = 2,
1881                 // @@protoc_insertion_point(enum_value:netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower.HIGH)
1882                 HIGH = 3,
1883             }
1884 
1885             impl ::protobuf::Enum for AdvertiseTxPower {
1886                 const NAME: &'static str = "AdvertiseTxPower";
1887 
value(&self) -> i321888                 fn value(&self) -> i32 {
1889                     *self as i32
1890                 }
1891 
from_i32(value: i32) -> ::std::option::Option<AdvertiseTxPower>1892                 fn from_i32(value: i32) -> ::std::option::Option<AdvertiseTxPower> {
1893                     match value {
1894                         0 => ::std::option::Option::Some(AdvertiseTxPower::ULTRA_LOW),
1895                         1 => ::std::option::Option::Some(AdvertiseTxPower::LOW),
1896                         2 => ::std::option::Option::Some(AdvertiseTxPower::MEDIUM),
1897                         3 => ::std::option::Option::Some(AdvertiseTxPower::HIGH),
1898                         _ => ::std::option::Option::None
1899                     }
1900                 }
1901 
1902                 const VALUES: &'static [AdvertiseTxPower] = &[
1903                     AdvertiseTxPower::ULTRA_LOW,
1904                     AdvertiseTxPower::LOW,
1905                     AdvertiseTxPower::MEDIUM,
1906                     AdvertiseTxPower::HIGH,
1907                 ];
1908             }
1909 
1910             impl ::protobuf::EnumFull for AdvertiseTxPower {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor1911                 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1912                     static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1913                     descriptor.get(|| super::super::super::file_descriptor().enum_by_package_relative_name("Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower").unwrap()).clone()
1914                 }
1915 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor1916                 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1917                     let index = *self as usize;
1918                     Self::enum_descriptor().value_by_index(index)
1919                 }
1920             }
1921 
1922             impl ::std::default::Default for AdvertiseTxPower {
default() -> Self1923                 fn default() -> Self {
1924                     AdvertiseTxPower::ULTRA_LOW
1925                 }
1926             }
1927 
1928             impl AdvertiseTxPower {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData1929                 pub(in super::super::super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1930                     ::protobuf::reflect::GeneratedEnumDescriptorData::new::<AdvertiseTxPower>("Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPower")
1931                 }
1932             }
1933         }
1934 
1935         #[derive(PartialEq,Clone,Default,Debug)]
1936         // @@protoc_insertion_point(message:netsim.model.Chip.BleBeacon.AdvertiseData)
1937         pub struct AdvertiseData {
1938             // message fields
1939             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.include_device_name)
1940             pub include_device_name: bool,
1941             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.include_tx_power_level)
1942             pub include_tx_power_level: bool,
1943             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.manufacturer_data)
1944             pub manufacturer_data: ::std::vec::Vec<u8>,
1945             // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.services)
1946             pub services: ::std::vec::Vec<advertise_data::Service>,
1947             // special fields
1948             // @@protoc_insertion_point(special_field:netsim.model.Chip.BleBeacon.AdvertiseData.special_fields)
1949             pub special_fields: ::protobuf::SpecialFields,
1950         }
1951 
1952         impl<'a> ::std::default::Default for &'a AdvertiseData {
default() -> &'a AdvertiseData1953             fn default() -> &'a AdvertiseData {
1954                 <AdvertiseData as ::protobuf::Message>::default_instance()
1955             }
1956         }
1957 
1958         impl AdvertiseData {
new() -> AdvertiseData1959             pub fn new() -> AdvertiseData {
1960                 ::std::default::Default::default()
1961             }
1962 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1963             pub(in super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1964                 let mut fields = ::std::vec::Vec::with_capacity(4);
1965                 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1966                 fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1967                     "include_device_name",
1968                     |m: &AdvertiseData| { &m.include_device_name },
1969                     |m: &mut AdvertiseData| { &mut m.include_device_name },
1970                 ));
1971                 fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1972                     "include_tx_power_level",
1973                     |m: &AdvertiseData| { &m.include_tx_power_level },
1974                     |m: &mut AdvertiseData| { &mut m.include_tx_power_level },
1975                 ));
1976                 fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
1977                     "manufacturer_data",
1978                     |m: &AdvertiseData| { &m.manufacturer_data },
1979                     |m: &mut AdvertiseData| { &mut m.manufacturer_data },
1980                 ));
1981                 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1982                     "services",
1983                     |m: &AdvertiseData| { &m.services },
1984                     |m: &mut AdvertiseData| { &mut m.services },
1985                 ));
1986                 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AdvertiseData>(
1987                     "Chip.BleBeacon.AdvertiseData",
1988                     fields,
1989                     oneofs,
1990                 )
1991             }
1992         }
1993 
1994         impl ::protobuf::Message for AdvertiseData {
1995             const NAME: &'static str = "AdvertiseData";
1996 
is_initialized(&self) -> bool1997             fn is_initialized(&self) -> bool {
1998                 true
1999             }
2000 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>2001             fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2002                 while let Some(tag) = is.read_raw_tag_or_eof()? {
2003                     match tag {
2004                         8 => {
2005                             self.include_device_name = is.read_bool()?;
2006                         },
2007                         16 => {
2008                             self.include_tx_power_level = is.read_bool()?;
2009                         },
2010                         26 => {
2011                             self.manufacturer_data = is.read_bytes()?;
2012                         },
2013                         34 => {
2014                             self.services.push(is.read_message()?);
2015                         },
2016                         tag => {
2017                             ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2018                         },
2019                     };
2020                 }
2021                 ::std::result::Result::Ok(())
2022             }
2023 
2024             // Compute sizes of nested messages
2025             #[allow(unused_variables)]
compute_size(&self) -> u642026             fn compute_size(&self) -> u64 {
2027                 let mut my_size = 0;
2028                 if self.include_device_name != false {
2029                     my_size += 1 + 1;
2030                 }
2031                 if self.include_tx_power_level != false {
2032                     my_size += 1 + 1;
2033                 }
2034                 if !self.manufacturer_data.is_empty() {
2035                     my_size += ::protobuf::rt::bytes_size(3, &self.manufacturer_data);
2036                 }
2037                 for value in &self.services {
2038                     let len = value.compute_size();
2039                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2040                 };
2041                 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2042                 self.special_fields.cached_size().set(my_size as u32);
2043                 my_size
2044             }
2045 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>2046             fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2047                 if self.include_device_name != false {
2048                     os.write_bool(1, self.include_device_name)?;
2049                 }
2050                 if self.include_tx_power_level != false {
2051                     os.write_bool(2, self.include_tx_power_level)?;
2052                 }
2053                 if !self.manufacturer_data.is_empty() {
2054                     os.write_bytes(3, &self.manufacturer_data)?;
2055                 }
2056                 for v in &self.services {
2057                     ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
2058                 };
2059                 os.write_unknown_fields(self.special_fields.unknown_fields())?;
2060                 ::std::result::Result::Ok(())
2061             }
2062 
special_fields(&self) -> &::protobuf::SpecialFields2063             fn special_fields(&self) -> &::protobuf::SpecialFields {
2064                 &self.special_fields
2065             }
2066 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2067             fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2068                 &mut self.special_fields
2069             }
2070 
new() -> AdvertiseData2071             fn new() -> AdvertiseData {
2072                 AdvertiseData::new()
2073             }
2074 
clear(&mut self)2075             fn clear(&mut self) {
2076                 self.include_device_name = false;
2077                 self.include_tx_power_level = false;
2078                 self.manufacturer_data.clear();
2079                 self.services.clear();
2080                 self.special_fields.clear();
2081             }
2082 
default_instance() -> &'static AdvertiseData2083             fn default_instance() -> &'static AdvertiseData {
2084                 static instance: AdvertiseData = AdvertiseData {
2085                     include_device_name: false,
2086                     include_tx_power_level: false,
2087                     manufacturer_data: ::std::vec::Vec::new(),
2088                     services: ::std::vec::Vec::new(),
2089                     special_fields: ::protobuf::SpecialFields::new(),
2090                 };
2091                 &instance
2092             }
2093         }
2094 
2095         impl ::protobuf::MessageFull for AdvertiseData {
descriptor() -> ::protobuf::reflect::MessageDescriptor2096             fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2097                 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2098                 descriptor.get(|| super::super::file_descriptor().message_by_package_relative_name("Chip.BleBeacon.AdvertiseData").unwrap()).clone()
2099             }
2100         }
2101 
2102         impl ::std::fmt::Display for AdvertiseData {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2103             fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2104                 ::protobuf::text_format::fmt(self, f)
2105             }
2106         }
2107 
2108         impl ::protobuf::reflect::ProtobufValue for AdvertiseData {
2109             type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2110         }
2111 
2112         /// Nested message and enums of message `AdvertiseData`
2113         pub mod advertise_data {
2114             #[derive(PartialEq,Clone,Default,Debug)]
2115             // @@protoc_insertion_point(message:netsim.model.Chip.BleBeacon.AdvertiseData.Service)
2116             pub struct Service {
2117                 // message fields
2118                 // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.Service.uuid)
2119                 pub uuid: ::std::string::String,
2120                 // @@protoc_insertion_point(field:netsim.model.Chip.BleBeacon.AdvertiseData.Service.data)
2121                 pub data: ::std::vec::Vec<u8>,
2122                 // special fields
2123                 // @@protoc_insertion_point(special_field:netsim.model.Chip.BleBeacon.AdvertiseData.Service.special_fields)
2124                 pub special_fields: ::protobuf::SpecialFields,
2125             }
2126 
2127             impl<'a> ::std::default::Default for &'a Service {
default() -> &'a Service2128                 fn default() -> &'a Service {
2129                     <Service as ::protobuf::Message>::default_instance()
2130                 }
2131             }
2132 
2133             impl Service {
new() -> Service2134                 pub fn new() -> Service {
2135                     ::std::default::Default::default()
2136                 }
2137 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData2138                 pub(in super::super::super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2139                     let mut fields = ::std::vec::Vec::with_capacity(2);
2140                     let mut oneofs = ::std::vec::Vec::with_capacity(0);
2141                     fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2142                         "uuid",
2143                         |m: &Service| { &m.uuid },
2144                         |m: &mut Service| { &mut m.uuid },
2145                     ));
2146                     fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2147                         "data",
2148                         |m: &Service| { &m.data },
2149                         |m: &mut Service| { &mut m.data },
2150                     ));
2151                     ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Service>(
2152                         "Chip.BleBeacon.AdvertiseData.Service",
2153                         fields,
2154                         oneofs,
2155                     )
2156                 }
2157             }
2158 
2159             impl ::protobuf::Message for Service {
2160                 const NAME: &'static str = "Service";
2161 
is_initialized(&self) -> bool2162                 fn is_initialized(&self) -> bool {
2163                     true
2164                 }
2165 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>2166                 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2167                     while let Some(tag) = is.read_raw_tag_or_eof()? {
2168                         match tag {
2169                             10 => {
2170                                 self.uuid = is.read_string()?;
2171                             },
2172                             18 => {
2173                                 self.data = is.read_bytes()?;
2174                             },
2175                             tag => {
2176                                 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2177                             },
2178                         };
2179                     }
2180                     ::std::result::Result::Ok(())
2181                 }
2182 
2183                 // Compute sizes of nested messages
2184                 #[allow(unused_variables)]
compute_size(&self) -> u642185                 fn compute_size(&self) -> u64 {
2186                     let mut my_size = 0;
2187                     if !self.uuid.is_empty() {
2188                         my_size += ::protobuf::rt::string_size(1, &self.uuid);
2189                     }
2190                     if !self.data.is_empty() {
2191                         my_size += ::protobuf::rt::bytes_size(2, &self.data);
2192                     }
2193                     my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2194                     self.special_fields.cached_size().set(my_size as u32);
2195                     my_size
2196                 }
2197 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>2198                 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2199                     if !self.uuid.is_empty() {
2200                         os.write_string(1, &self.uuid)?;
2201                     }
2202                     if !self.data.is_empty() {
2203                         os.write_bytes(2, &self.data)?;
2204                     }
2205                     os.write_unknown_fields(self.special_fields.unknown_fields())?;
2206                     ::std::result::Result::Ok(())
2207                 }
2208 
special_fields(&self) -> &::protobuf::SpecialFields2209                 fn special_fields(&self) -> &::protobuf::SpecialFields {
2210                     &self.special_fields
2211                 }
2212 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2213                 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2214                     &mut self.special_fields
2215                 }
2216 
new() -> Service2217                 fn new() -> Service {
2218                     Service::new()
2219                 }
2220 
clear(&mut self)2221                 fn clear(&mut self) {
2222                     self.uuid.clear();
2223                     self.data.clear();
2224                     self.special_fields.clear();
2225                 }
2226 
default_instance() -> &'static Service2227                 fn default_instance() -> &'static Service {
2228                     static instance: Service = Service {
2229                         uuid: ::std::string::String::new(),
2230                         data: ::std::vec::Vec::new(),
2231                         special_fields: ::protobuf::SpecialFields::new(),
2232                     };
2233                     &instance
2234                 }
2235             }
2236 
2237             impl ::protobuf::MessageFull for Service {
descriptor() -> ::protobuf::reflect::MessageDescriptor2238                 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2239                     static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2240                     descriptor.get(|| super::super::super::file_descriptor().message_by_package_relative_name("Chip.BleBeacon.AdvertiseData.Service").unwrap()).clone()
2241                 }
2242             }
2243 
2244             impl ::std::fmt::Display for Service {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2245                 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2246                     ::protobuf::text_format::fmt(self, f)
2247                 }
2248             }
2249 
2250             impl ::protobuf::reflect::ProtobufValue for Service {
2251                 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2252             }
2253         }
2254     }
2255 }
2256 
2257 #[derive(PartialEq,Clone,Default,Debug)]
2258 // @@protoc_insertion_point(message:netsim.model.ChipCreate)
2259 pub struct ChipCreate {
2260     // message fields
2261     // @@protoc_insertion_point(field:netsim.model.ChipCreate.kind)
2262     pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
2263     // @@protoc_insertion_point(field:netsim.model.ChipCreate.address)
2264     pub address: ::std::string::String,
2265     // @@protoc_insertion_point(field:netsim.model.ChipCreate.name)
2266     pub name: ::std::string::String,
2267     // @@protoc_insertion_point(field:netsim.model.ChipCreate.manufacturer)
2268     pub manufacturer: ::std::string::String,
2269     // @@protoc_insertion_point(field:netsim.model.ChipCreate.product_name)
2270     pub product_name: ::std::string::String,
2271     // @@protoc_insertion_point(field:netsim.model.ChipCreate.bt_properties)
2272     pub bt_properties: ::protobuf::MessageField<super::configuration::Controller>,
2273     // message oneof groups
2274     pub chip: ::std::option::Option<chip_create::Chip>,
2275     // special fields
2276     // @@protoc_insertion_point(special_field:netsim.model.ChipCreate.special_fields)
2277     pub special_fields: ::protobuf::SpecialFields,
2278 }
2279 
2280 impl<'a> ::std::default::Default for &'a ChipCreate {
default() -> &'a ChipCreate2281     fn default() -> &'a ChipCreate {
2282         <ChipCreate as ::protobuf::Message>::default_instance()
2283     }
2284 }
2285 
2286 impl ChipCreate {
new() -> ChipCreate2287     pub fn new() -> ChipCreate {
2288         ::std::default::Default::default()
2289     }
2290 
2291     // .netsim.model.ChipCreate.BleBeaconCreate ble_beacon = 6;
2292 
ble_beacon(&self) -> &chip_create::BleBeaconCreate2293     pub fn ble_beacon(&self) -> &chip_create::BleBeaconCreate {
2294         match self.chip {
2295             ::std::option::Option::Some(chip_create::Chip::BleBeacon(ref v)) => v,
2296             _ => <chip_create::BleBeaconCreate as ::protobuf::Message>::default_instance(),
2297         }
2298     }
2299 
clear_ble_beacon(&mut self)2300     pub fn clear_ble_beacon(&mut self) {
2301         self.chip = ::std::option::Option::None;
2302     }
2303 
has_ble_beacon(&self) -> bool2304     pub fn has_ble_beacon(&self) -> bool {
2305         match self.chip {
2306             ::std::option::Option::Some(chip_create::Chip::BleBeacon(..)) => true,
2307             _ => false,
2308         }
2309     }
2310 
2311     // Param is passed by value, moved
set_ble_beacon(&mut self, v: chip_create::BleBeaconCreate)2312     pub fn set_ble_beacon(&mut self, v: chip_create::BleBeaconCreate) {
2313         self.chip = ::std::option::Option::Some(chip_create::Chip::BleBeacon(v))
2314     }
2315 
2316     // Mutable pointer to the field.
mut_ble_beacon(&mut self) -> &mut chip_create::BleBeaconCreate2317     pub fn mut_ble_beacon(&mut self) -> &mut chip_create::BleBeaconCreate {
2318         if let ::std::option::Option::Some(chip_create::Chip::BleBeacon(_)) = self.chip {
2319         } else {
2320             self.chip = ::std::option::Option::Some(chip_create::Chip::BleBeacon(chip_create::BleBeaconCreate::new()));
2321         }
2322         match self.chip {
2323             ::std::option::Option::Some(chip_create::Chip::BleBeacon(ref mut v)) => v,
2324             _ => panic!(),
2325         }
2326     }
2327 
2328     // Take field
take_ble_beacon(&mut self) -> chip_create::BleBeaconCreate2329     pub fn take_ble_beacon(&mut self) -> chip_create::BleBeaconCreate {
2330         if self.has_ble_beacon() {
2331             match self.chip.take() {
2332                 ::std::option::Option::Some(chip_create::Chip::BleBeacon(v)) => v,
2333                 _ => panic!(),
2334             }
2335         } else {
2336             chip_create::BleBeaconCreate::new()
2337         }
2338     }
2339 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData2340     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2341         let mut fields = ::std::vec::Vec::with_capacity(7);
2342         let mut oneofs = ::std::vec::Vec::with_capacity(1);
2343         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2344             "kind",
2345             |m: &ChipCreate| { &m.kind },
2346             |m: &mut ChipCreate| { &mut m.kind },
2347         ));
2348         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2349             "address",
2350             |m: &ChipCreate| { &m.address },
2351             |m: &mut ChipCreate| { &mut m.address },
2352         ));
2353         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2354             "name",
2355             |m: &ChipCreate| { &m.name },
2356             |m: &mut ChipCreate| { &mut m.name },
2357         ));
2358         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2359             "manufacturer",
2360             |m: &ChipCreate| { &m.manufacturer },
2361             |m: &mut ChipCreate| { &mut m.manufacturer },
2362         ));
2363         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2364             "product_name",
2365             |m: &ChipCreate| { &m.product_name },
2366             |m: &mut ChipCreate| { &mut m.product_name },
2367         ));
2368         fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, chip_create::BleBeaconCreate>(
2369             "ble_beacon",
2370             ChipCreate::has_ble_beacon,
2371             ChipCreate::ble_beacon,
2372             ChipCreate::mut_ble_beacon,
2373             ChipCreate::set_ble_beacon,
2374         ));
2375         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::configuration::Controller>(
2376             "bt_properties",
2377             |m: &ChipCreate| { &m.bt_properties },
2378             |m: &mut ChipCreate| { &mut m.bt_properties },
2379         ));
2380         oneofs.push(chip_create::Chip::generated_oneof_descriptor_data());
2381         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ChipCreate>(
2382             "ChipCreate",
2383             fields,
2384             oneofs,
2385         )
2386     }
2387 }
2388 
2389 impl ::protobuf::Message for ChipCreate {
2390     const NAME: &'static str = "ChipCreate";
2391 
is_initialized(&self) -> bool2392     fn is_initialized(&self) -> bool {
2393         true
2394     }
2395 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>2396     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2397         while let Some(tag) = is.read_raw_tag_or_eof()? {
2398             match tag {
2399                 8 => {
2400                     self.kind = is.read_enum_or_unknown()?;
2401                 },
2402                 18 => {
2403                     self.address = is.read_string()?;
2404                 },
2405                 26 => {
2406                     self.name = is.read_string()?;
2407                 },
2408                 34 => {
2409                     self.manufacturer = is.read_string()?;
2410                 },
2411                 42 => {
2412                     self.product_name = is.read_string()?;
2413                 },
2414                 50 => {
2415                     self.chip = ::std::option::Option::Some(chip_create::Chip::BleBeacon(is.read_message()?));
2416                 },
2417                 58 => {
2418                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.bt_properties)?;
2419                 },
2420                 tag => {
2421                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2422                 },
2423             };
2424         }
2425         ::std::result::Result::Ok(())
2426     }
2427 
2428     // Compute sizes of nested messages
2429     #[allow(unused_variables)]
compute_size(&self) -> u642430     fn compute_size(&self) -> u64 {
2431         let mut my_size = 0;
2432         if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
2433             my_size += ::protobuf::rt::int32_size(1, self.kind.value());
2434         }
2435         if !self.address.is_empty() {
2436             my_size += ::protobuf::rt::string_size(2, &self.address);
2437         }
2438         if !self.name.is_empty() {
2439             my_size += ::protobuf::rt::string_size(3, &self.name);
2440         }
2441         if !self.manufacturer.is_empty() {
2442             my_size += ::protobuf::rt::string_size(4, &self.manufacturer);
2443         }
2444         if !self.product_name.is_empty() {
2445             my_size += ::protobuf::rt::string_size(5, &self.product_name);
2446         }
2447         if let Some(v) = self.bt_properties.as_ref() {
2448             let len = v.compute_size();
2449             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2450         }
2451         if let ::std::option::Option::Some(ref v) = self.chip {
2452             match v {
2453                 &chip_create::Chip::BleBeacon(ref v) => {
2454                     let len = v.compute_size();
2455                     my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2456                 },
2457             };
2458         }
2459         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2460         self.special_fields.cached_size().set(my_size as u32);
2461         my_size
2462     }
2463 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>2464     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2465         if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
2466             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.kind))?;
2467         }
2468         if !self.address.is_empty() {
2469             os.write_string(2, &self.address)?;
2470         }
2471         if !self.name.is_empty() {
2472             os.write_string(3, &self.name)?;
2473         }
2474         if !self.manufacturer.is_empty() {
2475             os.write_string(4, &self.manufacturer)?;
2476         }
2477         if !self.product_name.is_empty() {
2478             os.write_string(5, &self.product_name)?;
2479         }
2480         if let Some(v) = self.bt_properties.as_ref() {
2481             ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?;
2482         }
2483         if let ::std::option::Option::Some(ref v) = self.chip {
2484             match v {
2485                 &chip_create::Chip::BleBeacon(ref v) => {
2486                     ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
2487                 },
2488             };
2489         }
2490         os.write_unknown_fields(self.special_fields.unknown_fields())?;
2491         ::std::result::Result::Ok(())
2492     }
2493 
special_fields(&self) -> &::protobuf::SpecialFields2494     fn special_fields(&self) -> &::protobuf::SpecialFields {
2495         &self.special_fields
2496     }
2497 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2498     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2499         &mut self.special_fields
2500     }
2501 
new() -> ChipCreate2502     fn new() -> ChipCreate {
2503         ChipCreate::new()
2504     }
2505 
clear(&mut self)2506     fn clear(&mut self) {
2507         self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED);
2508         self.address.clear();
2509         self.name.clear();
2510         self.manufacturer.clear();
2511         self.product_name.clear();
2512         self.chip = ::std::option::Option::None;
2513         self.bt_properties.clear();
2514         self.special_fields.clear();
2515     }
2516 
default_instance() -> &'static ChipCreate2517     fn default_instance() -> &'static ChipCreate {
2518         static instance: ChipCreate = ChipCreate {
2519             kind: ::protobuf::EnumOrUnknown::from_i32(0),
2520             address: ::std::string::String::new(),
2521             name: ::std::string::String::new(),
2522             manufacturer: ::std::string::String::new(),
2523             product_name: ::std::string::String::new(),
2524             bt_properties: ::protobuf::MessageField::none(),
2525             chip: ::std::option::Option::None,
2526             special_fields: ::protobuf::SpecialFields::new(),
2527         };
2528         &instance
2529     }
2530 }
2531 
2532 impl ::protobuf::MessageFull for ChipCreate {
descriptor() -> ::protobuf::reflect::MessageDescriptor2533     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2534         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2535         descriptor.get(|| file_descriptor().message_by_package_relative_name("ChipCreate").unwrap()).clone()
2536     }
2537 }
2538 
2539 impl ::std::fmt::Display for ChipCreate {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2540     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2541         ::protobuf::text_format::fmt(self, f)
2542     }
2543 }
2544 
2545 impl ::protobuf::reflect::ProtobufValue for ChipCreate {
2546     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2547 }
2548 
2549 /// Nested message and enums of message `ChipCreate`
2550 pub mod chip_create {
2551 
2552     #[derive(Clone,PartialEq,Debug)]
2553     #[non_exhaustive]
2554     // @@protoc_insertion_point(oneof:netsim.model.ChipCreate.chip)
2555     pub enum Chip {
2556         // @@protoc_insertion_point(oneof_field:netsim.model.ChipCreate.ble_beacon)
2557         BleBeacon(BleBeaconCreate),
2558     }
2559 
2560     impl ::protobuf::Oneof for Chip {
2561     }
2562 
2563     impl ::protobuf::OneofFull for Chip {
descriptor() -> ::protobuf::reflect::OneofDescriptor2564         fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
2565             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
2566             descriptor.get(|| <super::ChipCreate as ::protobuf::MessageFull>::descriptor().oneof_by_name("chip").unwrap()).clone()
2567         }
2568     }
2569 
2570     impl Chip {
generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData2571         pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
2572             ::protobuf::reflect::GeneratedOneofDescriptorData::new::<Chip>("chip")
2573         }
2574     }
2575     #[derive(PartialEq,Clone,Default,Debug)]
2576     // @@protoc_insertion_point(message:netsim.model.ChipCreate.BleBeaconCreate)
2577     pub struct BleBeaconCreate {
2578         // message fields
2579         // @@protoc_insertion_point(field:netsim.model.ChipCreate.BleBeaconCreate.address)
2580         pub address: ::std::string::String,
2581         // @@protoc_insertion_point(field:netsim.model.ChipCreate.BleBeaconCreate.settings)
2582         pub settings: ::protobuf::MessageField<super::chip::ble_beacon::AdvertiseSettings>,
2583         // @@protoc_insertion_point(field:netsim.model.ChipCreate.BleBeaconCreate.adv_data)
2584         pub adv_data: ::protobuf::MessageField<super::chip::ble_beacon::AdvertiseData>,
2585         // @@protoc_insertion_point(field:netsim.model.ChipCreate.BleBeaconCreate.scan_response)
2586         pub scan_response: ::protobuf::MessageField<super::chip::ble_beacon::AdvertiseData>,
2587         // special fields
2588         // @@protoc_insertion_point(special_field:netsim.model.ChipCreate.BleBeaconCreate.special_fields)
2589         pub special_fields: ::protobuf::SpecialFields,
2590     }
2591 
2592     impl<'a> ::std::default::Default for &'a BleBeaconCreate {
default() -> &'a BleBeaconCreate2593         fn default() -> &'a BleBeaconCreate {
2594             <BleBeaconCreate as ::protobuf::Message>::default_instance()
2595         }
2596     }
2597 
2598     impl BleBeaconCreate {
new() -> BleBeaconCreate2599         pub fn new() -> BleBeaconCreate {
2600             ::std::default::Default::default()
2601         }
2602 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData2603         pub(in super) fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2604             let mut fields = ::std::vec::Vec::with_capacity(4);
2605             let mut oneofs = ::std::vec::Vec::with_capacity(0);
2606             fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2607                 "address",
2608                 |m: &BleBeaconCreate| { &m.address },
2609                 |m: &mut BleBeaconCreate| { &mut m.address },
2610             ));
2611             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::chip::ble_beacon::AdvertiseSettings>(
2612                 "settings",
2613                 |m: &BleBeaconCreate| { &m.settings },
2614                 |m: &mut BleBeaconCreate| { &mut m.settings },
2615             ));
2616             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::chip::ble_beacon::AdvertiseData>(
2617                 "adv_data",
2618                 |m: &BleBeaconCreate| { &m.adv_data },
2619                 |m: &mut BleBeaconCreate| { &mut m.adv_data },
2620             ));
2621             fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::chip::ble_beacon::AdvertiseData>(
2622                 "scan_response",
2623                 |m: &BleBeaconCreate| { &m.scan_response },
2624                 |m: &mut BleBeaconCreate| { &mut m.scan_response },
2625             ));
2626             ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<BleBeaconCreate>(
2627                 "ChipCreate.BleBeaconCreate",
2628                 fields,
2629                 oneofs,
2630             )
2631         }
2632     }
2633 
2634     impl ::protobuf::Message for BleBeaconCreate {
2635         const NAME: &'static str = "BleBeaconCreate";
2636 
is_initialized(&self) -> bool2637         fn is_initialized(&self) -> bool {
2638             true
2639         }
2640 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>2641         fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2642             while let Some(tag) = is.read_raw_tag_or_eof()? {
2643                 match tag {
2644                     10 => {
2645                         self.address = is.read_string()?;
2646                     },
2647                     26 => {
2648                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.settings)?;
2649                     },
2650                     34 => {
2651                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.adv_data)?;
2652                     },
2653                     42 => {
2654                         ::protobuf::rt::read_singular_message_into_field(is, &mut self.scan_response)?;
2655                     },
2656                     tag => {
2657                         ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2658                     },
2659                 };
2660             }
2661             ::std::result::Result::Ok(())
2662         }
2663 
2664         // Compute sizes of nested messages
2665         #[allow(unused_variables)]
compute_size(&self) -> u642666         fn compute_size(&self) -> u64 {
2667             let mut my_size = 0;
2668             if !self.address.is_empty() {
2669                 my_size += ::protobuf::rt::string_size(1, &self.address);
2670             }
2671             if let Some(v) = self.settings.as_ref() {
2672                 let len = v.compute_size();
2673                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2674             }
2675             if let Some(v) = self.adv_data.as_ref() {
2676                 let len = v.compute_size();
2677                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2678             }
2679             if let Some(v) = self.scan_response.as_ref() {
2680                 let len = v.compute_size();
2681                 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2682             }
2683             my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2684             self.special_fields.cached_size().set(my_size as u32);
2685             my_size
2686         }
2687 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>2688         fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2689             if !self.address.is_empty() {
2690                 os.write_string(1, &self.address)?;
2691             }
2692             if let Some(v) = self.settings.as_ref() {
2693                 ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
2694             }
2695             if let Some(v) = self.adv_data.as_ref() {
2696                 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
2697             }
2698             if let Some(v) = self.scan_response.as_ref() {
2699                 ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
2700             }
2701             os.write_unknown_fields(self.special_fields.unknown_fields())?;
2702             ::std::result::Result::Ok(())
2703         }
2704 
special_fields(&self) -> &::protobuf::SpecialFields2705         fn special_fields(&self) -> &::protobuf::SpecialFields {
2706             &self.special_fields
2707         }
2708 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2709         fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2710             &mut self.special_fields
2711         }
2712 
new() -> BleBeaconCreate2713         fn new() -> BleBeaconCreate {
2714             BleBeaconCreate::new()
2715         }
2716 
clear(&mut self)2717         fn clear(&mut self) {
2718             self.address.clear();
2719             self.settings.clear();
2720             self.adv_data.clear();
2721             self.scan_response.clear();
2722             self.special_fields.clear();
2723         }
2724 
default_instance() -> &'static BleBeaconCreate2725         fn default_instance() -> &'static BleBeaconCreate {
2726             static instance: BleBeaconCreate = BleBeaconCreate {
2727                 address: ::std::string::String::new(),
2728                 settings: ::protobuf::MessageField::none(),
2729                 adv_data: ::protobuf::MessageField::none(),
2730                 scan_response: ::protobuf::MessageField::none(),
2731                 special_fields: ::protobuf::SpecialFields::new(),
2732             };
2733             &instance
2734         }
2735     }
2736 
2737     impl ::protobuf::MessageFull for BleBeaconCreate {
descriptor() -> ::protobuf::reflect::MessageDescriptor2738         fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2739             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2740             descriptor.get(|| super::file_descriptor().message_by_package_relative_name("ChipCreate.BleBeaconCreate").unwrap()).clone()
2741         }
2742     }
2743 
2744     impl ::std::fmt::Display for BleBeaconCreate {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2745         fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2746             ::protobuf::text_format::fmt(self, f)
2747         }
2748     }
2749 
2750     impl ::protobuf::reflect::ProtobufValue for BleBeaconCreate {
2751         type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2752     }
2753 }
2754 
2755 #[derive(PartialEq,Clone,Default,Debug)]
2756 // @@protoc_insertion_point(message:netsim.model.Device)
2757 pub struct Device {
2758     // message fields
2759     // @@protoc_insertion_point(field:netsim.model.Device.id)
2760     pub id: u32,
2761     // @@protoc_insertion_point(field:netsim.model.Device.name)
2762     pub name: ::std::string::String,
2763     // @@protoc_insertion_point(field:netsim.model.Device.visible)
2764     pub visible: ::std::option::Option<bool>,
2765     // @@protoc_insertion_point(field:netsim.model.Device.position)
2766     pub position: ::protobuf::MessageField<Position>,
2767     // @@protoc_insertion_point(field:netsim.model.Device.orientation)
2768     pub orientation: ::protobuf::MessageField<Orientation>,
2769     // @@protoc_insertion_point(field:netsim.model.Device.chips)
2770     pub chips: ::std::vec::Vec<Chip>,
2771     // special fields
2772     // @@protoc_insertion_point(special_field:netsim.model.Device.special_fields)
2773     pub special_fields: ::protobuf::SpecialFields,
2774 }
2775 
2776 impl<'a> ::std::default::Default for &'a Device {
default() -> &'a Device2777     fn default() -> &'a Device {
2778         <Device as ::protobuf::Message>::default_instance()
2779     }
2780 }
2781 
2782 impl Device {
new() -> Device2783     pub fn new() -> Device {
2784         ::std::default::Default::default()
2785     }
2786 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData2787     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2788         let mut fields = ::std::vec::Vec::with_capacity(6);
2789         let mut oneofs = ::std::vec::Vec::with_capacity(0);
2790         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2791             "id",
2792             |m: &Device| { &m.id },
2793             |m: &mut Device| { &mut m.id },
2794         ));
2795         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
2796             "name",
2797             |m: &Device| { &m.name },
2798             |m: &mut Device| { &mut m.name },
2799         ));
2800         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
2801             "visible",
2802             |m: &Device| { &m.visible },
2803             |m: &mut Device| { &mut m.visible },
2804         ));
2805         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Position>(
2806             "position",
2807             |m: &Device| { &m.position },
2808             |m: &mut Device| { &mut m.position },
2809         ));
2810         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Orientation>(
2811             "orientation",
2812             |m: &Device| { &m.orientation },
2813             |m: &mut Device| { &mut m.orientation },
2814         ));
2815         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
2816             "chips",
2817             |m: &Device| { &m.chips },
2818             |m: &mut Device| { &mut m.chips },
2819         ));
2820         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Device>(
2821             "Device",
2822             fields,
2823             oneofs,
2824         )
2825     }
2826 }
2827 
2828 impl ::protobuf::Message for Device {
2829     const NAME: &'static str = "Device";
2830 
is_initialized(&self) -> bool2831     fn is_initialized(&self) -> bool {
2832         true
2833     }
2834 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>2835     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
2836         while let Some(tag) = is.read_raw_tag_or_eof()? {
2837             match tag {
2838                 8 => {
2839                     self.id = is.read_uint32()?;
2840                 },
2841                 18 => {
2842                     self.name = is.read_string()?;
2843                 },
2844                 24 => {
2845                     self.visible = ::std::option::Option::Some(is.read_bool()?);
2846                 },
2847                 34 => {
2848                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.position)?;
2849                 },
2850                 42 => {
2851                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.orientation)?;
2852                 },
2853                 50 => {
2854                     self.chips.push(is.read_message()?);
2855                 },
2856                 tag => {
2857                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
2858                 },
2859             };
2860         }
2861         ::std::result::Result::Ok(())
2862     }
2863 
2864     // Compute sizes of nested messages
2865     #[allow(unused_variables)]
compute_size(&self) -> u642866     fn compute_size(&self) -> u64 {
2867         let mut my_size = 0;
2868         if self.id != 0 {
2869             my_size += ::protobuf::rt::uint32_size(1, self.id);
2870         }
2871         if !self.name.is_empty() {
2872             my_size += ::protobuf::rt::string_size(2, &self.name);
2873         }
2874         if let Some(v) = self.visible {
2875             my_size += 1 + 1;
2876         }
2877         if let Some(v) = self.position.as_ref() {
2878             let len = v.compute_size();
2879             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2880         }
2881         if let Some(v) = self.orientation.as_ref() {
2882             let len = v.compute_size();
2883             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2884         }
2885         for value in &self.chips {
2886             let len = value.compute_size();
2887             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
2888         };
2889         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
2890         self.special_fields.cached_size().set(my_size as u32);
2891         my_size
2892     }
2893 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>2894     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
2895         if self.id != 0 {
2896             os.write_uint32(1, self.id)?;
2897         }
2898         if !self.name.is_empty() {
2899             os.write_string(2, &self.name)?;
2900         }
2901         if let Some(v) = self.visible {
2902             os.write_bool(3, v)?;
2903         }
2904         if let Some(v) = self.position.as_ref() {
2905             ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
2906         }
2907         if let Some(v) = self.orientation.as_ref() {
2908             ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
2909         }
2910         for v in &self.chips {
2911             ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
2912         };
2913         os.write_unknown_fields(self.special_fields.unknown_fields())?;
2914         ::std::result::Result::Ok(())
2915     }
2916 
special_fields(&self) -> &::protobuf::SpecialFields2917     fn special_fields(&self) -> &::protobuf::SpecialFields {
2918         &self.special_fields
2919     }
2920 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2921     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2922         &mut self.special_fields
2923     }
2924 
new() -> Device2925     fn new() -> Device {
2926         Device::new()
2927     }
2928 
clear(&mut self)2929     fn clear(&mut self) {
2930         self.id = 0;
2931         self.name.clear();
2932         self.visible = ::std::option::Option::None;
2933         self.position.clear();
2934         self.orientation.clear();
2935         self.chips.clear();
2936         self.special_fields.clear();
2937     }
2938 
default_instance() -> &'static Device2939     fn default_instance() -> &'static Device {
2940         static instance: Device = Device {
2941             id: 0,
2942             name: ::std::string::String::new(),
2943             visible: ::std::option::Option::None,
2944             position: ::protobuf::MessageField::none(),
2945             orientation: ::protobuf::MessageField::none(),
2946             chips: ::std::vec::Vec::new(),
2947             special_fields: ::protobuf::SpecialFields::new(),
2948         };
2949         &instance
2950     }
2951 }
2952 
2953 impl ::protobuf::MessageFull for Device {
descriptor() -> ::protobuf::reflect::MessageDescriptor2954     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2955         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2956         descriptor.get(|| file_descriptor().message_by_package_relative_name("Device").unwrap()).clone()
2957     }
2958 }
2959 
2960 impl ::std::fmt::Display for Device {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2961     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2962         ::protobuf::text_format::fmt(self, f)
2963     }
2964 }
2965 
2966 impl ::protobuf::reflect::ProtobufValue for Device {
2967     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2968 }
2969 
2970 #[derive(PartialEq,Clone,Default,Debug)]
2971 // @@protoc_insertion_point(message:netsim.model.DeviceCreate)
2972 pub struct DeviceCreate {
2973     // message fields
2974     // @@protoc_insertion_point(field:netsim.model.DeviceCreate.name)
2975     pub name: ::std::string::String,
2976     // @@protoc_insertion_point(field:netsim.model.DeviceCreate.position)
2977     pub position: ::protobuf::MessageField<Position>,
2978     // @@protoc_insertion_point(field:netsim.model.DeviceCreate.orientation)
2979     pub orientation: ::protobuf::MessageField<Orientation>,
2980     // @@protoc_insertion_point(field:netsim.model.DeviceCreate.chips)
2981     pub chips: ::std::vec::Vec<ChipCreate>,
2982     // special fields
2983     // @@protoc_insertion_point(special_field:netsim.model.DeviceCreate.special_fields)
2984     pub special_fields: ::protobuf::SpecialFields,
2985 }
2986 
2987 impl<'a> ::std::default::Default for &'a DeviceCreate {
default() -> &'a DeviceCreate2988     fn default() -> &'a DeviceCreate {
2989         <DeviceCreate as ::protobuf::Message>::default_instance()
2990     }
2991 }
2992 
2993 impl DeviceCreate {
new() -> DeviceCreate2994     pub fn new() -> DeviceCreate {
2995         ::std::default::Default::default()
2996     }
2997 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData2998     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
2999         let mut fields = ::std::vec::Vec::with_capacity(4);
3000         let mut oneofs = ::std::vec::Vec::with_capacity(0);
3001         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3002             "name",
3003             |m: &DeviceCreate| { &m.name },
3004             |m: &mut DeviceCreate| { &mut m.name },
3005         ));
3006         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Position>(
3007             "position",
3008             |m: &DeviceCreate| { &m.position },
3009             |m: &mut DeviceCreate| { &mut m.position },
3010         ));
3011         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Orientation>(
3012             "orientation",
3013             |m: &DeviceCreate| { &m.orientation },
3014             |m: &mut DeviceCreate| { &mut m.orientation },
3015         ));
3016         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
3017             "chips",
3018             |m: &DeviceCreate| { &m.chips },
3019             |m: &mut DeviceCreate| { &mut m.chips },
3020         ));
3021         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DeviceCreate>(
3022             "DeviceCreate",
3023             fields,
3024             oneofs,
3025         )
3026     }
3027 }
3028 
3029 impl ::protobuf::Message for DeviceCreate {
3030     const NAME: &'static str = "DeviceCreate";
3031 
is_initialized(&self) -> bool3032     fn is_initialized(&self) -> bool {
3033         true
3034     }
3035 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>3036     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
3037         while let Some(tag) = is.read_raw_tag_or_eof()? {
3038             match tag {
3039                 10 => {
3040                     self.name = is.read_string()?;
3041                 },
3042                 18 => {
3043                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.position)?;
3044                 },
3045                 26 => {
3046                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.orientation)?;
3047                 },
3048                 34 => {
3049                     self.chips.push(is.read_message()?);
3050                 },
3051                 tag => {
3052                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3053                 },
3054             };
3055         }
3056         ::std::result::Result::Ok(())
3057     }
3058 
3059     // Compute sizes of nested messages
3060     #[allow(unused_variables)]
compute_size(&self) -> u643061     fn compute_size(&self) -> u64 {
3062         let mut my_size = 0;
3063         if !self.name.is_empty() {
3064             my_size += ::protobuf::rt::string_size(1, &self.name);
3065         }
3066         if let Some(v) = self.position.as_ref() {
3067             let len = v.compute_size();
3068             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3069         }
3070         if let Some(v) = self.orientation.as_ref() {
3071             let len = v.compute_size();
3072             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3073         }
3074         for value in &self.chips {
3075             let len = value.compute_size();
3076             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3077         };
3078         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3079         self.special_fields.cached_size().set(my_size as u32);
3080         my_size
3081     }
3082 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>3083     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
3084         if !self.name.is_empty() {
3085             os.write_string(1, &self.name)?;
3086         }
3087         if let Some(v) = self.position.as_ref() {
3088             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
3089         }
3090         if let Some(v) = self.orientation.as_ref() {
3091             ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
3092         }
3093         for v in &self.chips {
3094             ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
3095         };
3096         os.write_unknown_fields(self.special_fields.unknown_fields())?;
3097         ::std::result::Result::Ok(())
3098     }
3099 
special_fields(&self) -> &::protobuf::SpecialFields3100     fn special_fields(&self) -> &::protobuf::SpecialFields {
3101         &self.special_fields
3102     }
3103 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields3104     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
3105         &mut self.special_fields
3106     }
3107 
new() -> DeviceCreate3108     fn new() -> DeviceCreate {
3109         DeviceCreate::new()
3110     }
3111 
clear(&mut self)3112     fn clear(&mut self) {
3113         self.name.clear();
3114         self.position.clear();
3115         self.orientation.clear();
3116         self.chips.clear();
3117         self.special_fields.clear();
3118     }
3119 
default_instance() -> &'static DeviceCreate3120     fn default_instance() -> &'static DeviceCreate {
3121         static instance: DeviceCreate = DeviceCreate {
3122             name: ::std::string::String::new(),
3123             position: ::protobuf::MessageField::none(),
3124             orientation: ::protobuf::MessageField::none(),
3125             chips: ::std::vec::Vec::new(),
3126             special_fields: ::protobuf::SpecialFields::new(),
3127         };
3128         &instance
3129     }
3130 }
3131 
3132 impl ::protobuf::MessageFull for DeviceCreate {
descriptor() -> ::protobuf::reflect::MessageDescriptor3133     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
3134         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
3135         descriptor.get(|| file_descriptor().message_by_package_relative_name("DeviceCreate").unwrap()).clone()
3136     }
3137 }
3138 
3139 impl ::std::fmt::Display for DeviceCreate {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3140     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3141         ::protobuf::text_format::fmt(self, f)
3142     }
3143 }
3144 
3145 impl ::protobuf::reflect::ProtobufValue for DeviceCreate {
3146     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
3147 }
3148 
3149 #[derive(PartialEq,Clone,Default,Debug)]
3150 // @@protoc_insertion_point(message:netsim.model.Scene)
3151 pub struct Scene {
3152     // message fields
3153     // @@protoc_insertion_point(field:netsim.model.Scene.devices)
3154     pub devices: ::std::vec::Vec<Device>,
3155     // special fields
3156     // @@protoc_insertion_point(special_field:netsim.model.Scene.special_fields)
3157     pub special_fields: ::protobuf::SpecialFields,
3158 }
3159 
3160 impl<'a> ::std::default::Default for &'a Scene {
default() -> &'a Scene3161     fn default() -> &'a Scene {
3162         <Scene as ::protobuf::Message>::default_instance()
3163     }
3164 }
3165 
3166 impl Scene {
new() -> Scene3167     pub fn new() -> Scene {
3168         ::std::default::Default::default()
3169     }
3170 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData3171     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
3172         let mut fields = ::std::vec::Vec::with_capacity(1);
3173         let mut oneofs = ::std::vec::Vec::with_capacity(0);
3174         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
3175             "devices",
3176             |m: &Scene| { &m.devices },
3177             |m: &mut Scene| { &mut m.devices },
3178         ));
3179         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Scene>(
3180             "Scene",
3181             fields,
3182             oneofs,
3183         )
3184     }
3185 }
3186 
3187 impl ::protobuf::Message for Scene {
3188     const NAME: &'static str = "Scene";
3189 
is_initialized(&self) -> bool3190     fn is_initialized(&self) -> bool {
3191         true
3192     }
3193 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>3194     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
3195         while let Some(tag) = is.read_raw_tag_or_eof()? {
3196             match tag {
3197                 10 => {
3198                     self.devices.push(is.read_message()?);
3199                 },
3200                 tag => {
3201                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3202                 },
3203             };
3204         }
3205         ::std::result::Result::Ok(())
3206     }
3207 
3208     // Compute sizes of nested messages
3209     #[allow(unused_variables)]
compute_size(&self) -> u643210     fn compute_size(&self) -> u64 {
3211         let mut my_size = 0;
3212         for value in &self.devices {
3213             let len = value.compute_size();
3214             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3215         };
3216         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3217         self.special_fields.cached_size().set(my_size as u32);
3218         my_size
3219     }
3220 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>3221     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
3222         for v in &self.devices {
3223             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
3224         };
3225         os.write_unknown_fields(self.special_fields.unknown_fields())?;
3226         ::std::result::Result::Ok(())
3227     }
3228 
special_fields(&self) -> &::protobuf::SpecialFields3229     fn special_fields(&self) -> &::protobuf::SpecialFields {
3230         &self.special_fields
3231     }
3232 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields3233     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
3234         &mut self.special_fields
3235     }
3236 
new() -> Scene3237     fn new() -> Scene {
3238         Scene::new()
3239     }
3240 
clear(&mut self)3241     fn clear(&mut self) {
3242         self.devices.clear();
3243         self.special_fields.clear();
3244     }
3245 
default_instance() -> &'static Scene3246     fn default_instance() -> &'static Scene {
3247         static instance: Scene = Scene {
3248             devices: ::std::vec::Vec::new(),
3249             special_fields: ::protobuf::SpecialFields::new(),
3250         };
3251         &instance
3252     }
3253 }
3254 
3255 impl ::protobuf::MessageFull for Scene {
descriptor() -> ::protobuf::reflect::MessageDescriptor3256     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
3257         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
3258         descriptor.get(|| file_descriptor().message_by_package_relative_name("Scene").unwrap()).clone()
3259     }
3260 }
3261 
3262 impl ::std::fmt::Display for Scene {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3263     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3264         ::protobuf::text_format::fmt(self, f)
3265     }
3266 }
3267 
3268 impl ::protobuf::reflect::ProtobufValue for Scene {
3269     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
3270 }
3271 
3272 #[derive(PartialEq,Clone,Default,Debug)]
3273 // @@protoc_insertion_point(message:netsim.model.Capture)
3274 pub struct Capture {
3275     // message fields
3276     // @@protoc_insertion_point(field:netsim.model.Capture.id)
3277     pub id: u32,
3278     // @@protoc_insertion_point(field:netsim.model.Capture.chip_kind)
3279     pub chip_kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
3280     // @@protoc_insertion_point(field:netsim.model.Capture.device_name)
3281     pub device_name: ::std::string::String,
3282     // @@protoc_insertion_point(field:netsim.model.Capture.state)
3283     pub state: ::std::option::Option<bool>,
3284     // @@protoc_insertion_point(field:netsim.model.Capture.size)
3285     pub size: i32,
3286     // @@protoc_insertion_point(field:netsim.model.Capture.records)
3287     pub records: i32,
3288     // @@protoc_insertion_point(field:netsim.model.Capture.timestamp)
3289     pub timestamp: ::protobuf::MessageField<::protobuf::well_known_types::timestamp::Timestamp>,
3290     // @@protoc_insertion_point(field:netsim.model.Capture.valid)
3291     pub valid: bool,
3292     // special fields
3293     // @@protoc_insertion_point(special_field:netsim.model.Capture.special_fields)
3294     pub special_fields: ::protobuf::SpecialFields,
3295 }
3296 
3297 impl<'a> ::std::default::Default for &'a Capture {
default() -> &'a Capture3298     fn default() -> &'a Capture {
3299         <Capture as ::protobuf::Message>::default_instance()
3300     }
3301 }
3302 
3303 impl Capture {
new() -> Capture3304     pub fn new() -> Capture {
3305         ::std::default::Default::default()
3306     }
3307 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData3308     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
3309         let mut fields = ::std::vec::Vec::with_capacity(8);
3310         let mut oneofs = ::std::vec::Vec::with_capacity(0);
3311         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3312             "id",
3313             |m: &Capture| { &m.id },
3314             |m: &mut Capture| { &mut m.id },
3315         ));
3316         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3317             "chip_kind",
3318             |m: &Capture| { &m.chip_kind },
3319             |m: &mut Capture| { &mut m.chip_kind },
3320         ));
3321         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3322             "device_name",
3323             |m: &Capture| { &m.device_name },
3324             |m: &mut Capture| { &mut m.device_name },
3325         ));
3326         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
3327             "state",
3328             |m: &Capture| { &m.state },
3329             |m: &mut Capture| { &mut m.state },
3330         ));
3331         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3332             "size",
3333             |m: &Capture| { &m.size },
3334             |m: &mut Capture| { &mut m.size },
3335         ));
3336         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3337             "records",
3338             |m: &Capture| { &m.records },
3339             |m: &mut Capture| { &mut m.records },
3340         ));
3341         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ::protobuf::well_known_types::timestamp::Timestamp>(
3342             "timestamp",
3343             |m: &Capture| { &m.timestamp },
3344             |m: &mut Capture| { &mut m.timestamp },
3345         ));
3346         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
3347             "valid",
3348             |m: &Capture| { &m.valid },
3349             |m: &mut Capture| { &mut m.valid },
3350         ));
3351         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Capture>(
3352             "Capture",
3353             fields,
3354             oneofs,
3355         )
3356     }
3357 }
3358 
3359 impl ::protobuf::Message for Capture {
3360     const NAME: &'static str = "Capture";
3361 
is_initialized(&self) -> bool3362     fn is_initialized(&self) -> bool {
3363         true
3364     }
3365 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>3366     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
3367         while let Some(tag) = is.read_raw_tag_or_eof()? {
3368             match tag {
3369                 8 => {
3370                     self.id = is.read_uint32()?;
3371                 },
3372                 16 => {
3373                     self.chip_kind = is.read_enum_or_unknown()?;
3374                 },
3375                 26 => {
3376                     self.device_name = is.read_string()?;
3377                 },
3378                 32 => {
3379                     self.state = ::std::option::Option::Some(is.read_bool()?);
3380                 },
3381                 40 => {
3382                     self.size = is.read_int32()?;
3383                 },
3384                 48 => {
3385                     self.records = is.read_int32()?;
3386                 },
3387                 58 => {
3388                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.timestamp)?;
3389                 },
3390                 64 => {
3391                     self.valid = is.read_bool()?;
3392                 },
3393                 tag => {
3394                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
3395                 },
3396             };
3397         }
3398         ::std::result::Result::Ok(())
3399     }
3400 
3401     // Compute sizes of nested messages
3402     #[allow(unused_variables)]
compute_size(&self) -> u643403     fn compute_size(&self) -> u64 {
3404         let mut my_size = 0;
3405         if self.id != 0 {
3406             my_size += ::protobuf::rt::uint32_size(1, self.id);
3407         }
3408         if self.chip_kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
3409             my_size += ::protobuf::rt::int32_size(2, self.chip_kind.value());
3410         }
3411         if !self.device_name.is_empty() {
3412             my_size += ::protobuf::rt::string_size(3, &self.device_name);
3413         }
3414         if let Some(v) = self.state {
3415             my_size += 1 + 1;
3416         }
3417         if self.size != 0 {
3418             my_size += ::protobuf::rt::int32_size(5, self.size);
3419         }
3420         if self.records != 0 {
3421             my_size += ::protobuf::rt::int32_size(6, self.records);
3422         }
3423         if let Some(v) = self.timestamp.as_ref() {
3424             let len = v.compute_size();
3425             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
3426         }
3427         if self.valid != false {
3428             my_size += 1 + 1;
3429         }
3430         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
3431         self.special_fields.cached_size().set(my_size as u32);
3432         my_size
3433     }
3434 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>3435     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
3436         if self.id != 0 {
3437             os.write_uint32(1, self.id)?;
3438         }
3439         if self.chip_kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) {
3440             os.write_enum(2, ::protobuf::EnumOrUnknown::value(&self.chip_kind))?;
3441         }
3442         if !self.device_name.is_empty() {
3443             os.write_string(3, &self.device_name)?;
3444         }
3445         if let Some(v) = self.state {
3446             os.write_bool(4, v)?;
3447         }
3448         if self.size != 0 {
3449             os.write_int32(5, self.size)?;
3450         }
3451         if self.records != 0 {
3452             os.write_int32(6, self.records)?;
3453         }
3454         if let Some(v) = self.timestamp.as_ref() {
3455             ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?;
3456         }
3457         if self.valid != false {
3458             os.write_bool(8, self.valid)?;
3459         }
3460         os.write_unknown_fields(self.special_fields.unknown_fields())?;
3461         ::std::result::Result::Ok(())
3462     }
3463 
special_fields(&self) -> &::protobuf::SpecialFields3464     fn special_fields(&self) -> &::protobuf::SpecialFields {
3465         &self.special_fields
3466     }
3467 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields3468     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
3469         &mut self.special_fields
3470     }
3471 
new() -> Capture3472     fn new() -> Capture {
3473         Capture::new()
3474     }
3475 
clear(&mut self)3476     fn clear(&mut self) {
3477         self.id = 0;
3478         self.chip_kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED);
3479         self.device_name.clear();
3480         self.state = ::std::option::Option::None;
3481         self.size = 0;
3482         self.records = 0;
3483         self.timestamp.clear();
3484         self.valid = false;
3485         self.special_fields.clear();
3486     }
3487 
default_instance() -> &'static Capture3488     fn default_instance() -> &'static Capture {
3489         static instance: Capture = Capture {
3490             id: 0,
3491             chip_kind: ::protobuf::EnumOrUnknown::from_i32(0),
3492             device_name: ::std::string::String::new(),
3493             state: ::std::option::Option::None,
3494             size: 0,
3495             records: 0,
3496             timestamp: ::protobuf::MessageField::none(),
3497             valid: false,
3498             special_fields: ::protobuf::SpecialFields::new(),
3499         };
3500         &instance
3501     }
3502 }
3503 
3504 impl ::protobuf::MessageFull for Capture {
descriptor() -> ::protobuf::reflect::MessageDescriptor3505     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
3506         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
3507         descriptor.get(|| file_descriptor().message_by_package_relative_name("Capture").unwrap()).clone()
3508     }
3509 }
3510 
3511 impl ::std::fmt::Display for Capture {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result3512     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3513         ::protobuf::text_format::fmt(self, f)
3514     }
3515 }
3516 
3517 impl ::protobuf::reflect::ProtobufValue for Capture {
3518     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
3519 }
3520 
3521 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
3522 // @@protoc_insertion_point(enum:netsim.model.PhyKind)
3523 pub enum PhyKind {
3524     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.NONE)
3525     NONE = 0,
3526     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.BLUETOOTH_CLASSIC)
3527     BLUETOOTH_CLASSIC = 1,
3528     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.BLUETOOTH_LOW_ENERGY)
3529     BLUETOOTH_LOW_ENERGY = 2,
3530     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.WIFI)
3531     WIFI = 3,
3532     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.UWB)
3533     UWB = 4,
3534     // @@protoc_insertion_point(enum_value:netsim.model.PhyKind.WIFI_RTT)
3535     WIFI_RTT = 5,
3536 }
3537 
3538 impl ::protobuf::Enum for PhyKind {
3539     const NAME: &'static str = "PhyKind";
3540 
value(&self) -> i323541     fn value(&self) -> i32 {
3542         *self as i32
3543     }
3544 
from_i32(value: i32) -> ::std::option::Option<PhyKind>3545     fn from_i32(value: i32) -> ::std::option::Option<PhyKind> {
3546         match value {
3547             0 => ::std::option::Option::Some(PhyKind::NONE),
3548             1 => ::std::option::Option::Some(PhyKind::BLUETOOTH_CLASSIC),
3549             2 => ::std::option::Option::Some(PhyKind::BLUETOOTH_LOW_ENERGY),
3550             3 => ::std::option::Option::Some(PhyKind::WIFI),
3551             4 => ::std::option::Option::Some(PhyKind::UWB),
3552             5 => ::std::option::Option::Some(PhyKind::WIFI_RTT),
3553             _ => ::std::option::Option::None
3554         }
3555     }
3556 
3557     const VALUES: &'static [PhyKind] = &[
3558         PhyKind::NONE,
3559         PhyKind::BLUETOOTH_CLASSIC,
3560         PhyKind::BLUETOOTH_LOW_ENERGY,
3561         PhyKind::WIFI,
3562         PhyKind::UWB,
3563         PhyKind::WIFI_RTT,
3564     ];
3565 }
3566 
3567 impl ::protobuf::EnumFull for PhyKind {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor3568     fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
3569         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
3570         descriptor.get(|| file_descriptor().enum_by_package_relative_name("PhyKind").unwrap()).clone()
3571     }
3572 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor3573     fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
3574         let index = *self as usize;
3575         Self::enum_descriptor().value_by_index(index)
3576     }
3577 }
3578 
3579 impl ::std::default::Default for PhyKind {
default() -> Self3580     fn default() -> Self {
3581         PhyKind::NONE
3582     }
3583 }
3584 
3585 impl PhyKind {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData3586     fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
3587         ::protobuf::reflect::GeneratedEnumDescriptorData::new::<PhyKind>("PhyKind")
3588     }
3589 }
3590 
3591 static file_descriptor_proto_data: &'static [u8] = b"\
3592     \n\x12netsim/model.proto\x12\x0cnetsim.model\x1a\x13netsim/common.proto\
3593     \x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1drootcanal/configuration.p\
3594     roto\"4\n\x08Position\x12\x0c\n\x01x\x18\x01\x20\x01(\x02R\x01x\x12\x0c\
3595     \n\x01y\x18\x02\x20\x01(\x02R\x01y\x12\x0c\n\x01z\x18\x03\x20\x01(\x02R\
3596     \x01z\"I\n\x0bOrientation\x12\x10\n\x03yaw\x18\x01\x20\x01(\x02R\x03yaw\
3597     \x12\x14\n\x05pitch\x18\x02\x20\x01(\x02R\x05pitch\x12\x12\n\x04roll\x18\
3598     \x03\x20\x01(\x02R\x04roll\"\xde\x0e\n\x04Chip\x12+\n\x04kind\x18\x01\
3599     \x20\x01(\x0e2\x17.netsim.common.ChipKindR\x04kind\x12\x0e\n\x02id\x18\
3600     \x02\x20\x01(\rR\x02id\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name\x12\
3601     \"\n\x0cmanufacturer\x18\x04\x20\x01(\tR\x0cmanufacturer\x12!\n\x0cprodu\
3602     ct_name\x18\x05\x20\x01(\tR\x0bproductName\x12.\n\x02bt\x18\x06\x20\x01(\
3603     \x0b2\x1c.netsim.model.Chip.BluetoothH\0R\x02bt\x12=\n\nble_beacon\x18\t\
3604     \x20\x01(\x0b2\x1c.netsim.model.Chip.BleBeaconH\0R\tbleBeacon\x12,\n\x03\
3605     uwb\x18\x07\x20\x01(\x0b2\x18.netsim.model.Chip.RadioH\0R\x03uwb\x12.\n\
3606     \x04wifi\x18\x08\x20\x01(\x0b2\x18.netsim.model.Chip.RadioH\0R\x04wifi\
3607     \x123\n\x06offset\x18\x0f\x20\x01(\x0b2\x16.netsim.model.PositionH\x01R\
3608     \x06offset\x88\x01\x01\x1ax\n\x05Radio\x12\x19\n\x05state\x18\x01\x20\
3609     \x01(\x08H\0R\x05state\x88\x01\x01\x12\x14\n\x05range\x18\x02\x20\x01(\
3610     \x02R\x05range\x12\x19\n\x08tx_count\x18\x03\x20\x01(\x05R\x07txCount\
3611     \x12\x19\n\x08rx_count\x18\x04\x20\x01(\x05R\x07rxCountB\x08\n\x06_state\
3612     \x1a\xdc\x01\n\tBluetooth\x127\n\nlow_energy\x18\x01\x20\x01(\x0b2\x18.n\
3613     etsim.model.Chip.RadioR\tlowEnergy\x122\n\x07classic\x18\x02\x20\x01(\
3614     \x0b2\x18.netsim.model.Chip.RadioR\x07classic\x12\x18\n\x07address\x18\
3615     \x03\x20\x01(\tR\x07address\x12H\n\rbt_properties\x18\x04\x20\x01(\x0b2#\
3616     .rootcanal.configuration.ControllerR\x0cbtProperties\x1a\xcf\x08\n\tBleB\
3617     eacon\x12,\n\x02bt\x18\x01\x20\x01(\x0b2\x1c.netsim.model.Chip.Bluetooth\
3618     R\x02bt\x12\x18\n\x07address\x18\x02\x20\x01(\tR\x07address\x12J\n\x08se\
3619     ttings\x18\x03\x20\x01(\x0b2..netsim.model.Chip.BleBeacon.AdvertiseSetti\
3620     ngsR\x08settings\x12E\n\x08adv_data\x18\x04\x20\x01(\x0b2*.netsim.model.\
3621     Chip.BleBeacon.AdvertiseDataR\x07advData\x12O\n\rscan_response\x18\x05\
3622     \x20\x01(\x0b2*.netsim.model.Chip.BleBeacon.AdvertiseDataR\x0cscanRespon\
3623     se\x1a\xee\x03\n\x11AdvertiseSettings\x12e\n\x0eadvertise_mode\x18\x01\
3624     \x20\x01(\x0e2<.netsim.model.Chip.BleBeacon.AdvertiseSettings.AdvertiseM\
3625     odeH\0R\radvertiseMode\x12$\n\x0cmilliseconds\x18\x02\x20\x01(\x04H\0R\
3626     \x0cmilliseconds\x12g\n\x0etx_power_level\x18\x03\x20\x01(\x0e2?.netsim.\
3627     model.Chip.BleBeacon.AdvertiseSettings.AdvertiseTxPowerH\x01R\x0ctxPower\
3628     Level\x12\x12\n\x03dbm\x18\x04\x20\x01(\x05H\x01R\x03dbm\x12\x1c\n\tscan\
3629     nable\x18\x05\x20\x01(\x08R\tscannable\x12\x18\n\x07timeout\x18\x06\x20\
3630     \x01(\x04R\x07timeout\"=\n\rAdvertiseMode\x12\r\n\tLOW_POWER\x10\0\x12\
3631     \x0c\n\x08BALANCED\x10\x01\x12\x0f\n\x0bLOW_LATENCY\x10\x02\"@\n\x10Adve\
3632     rtiseTxPower\x12\r\n\tULTRA_LOW\x10\0\x12\x07\n\x03LOW\x10\x01\x12\n\n\
3633     \x06MEDIUM\x10\x02\x12\x08\n\x04HIGH\x10\x03B\n\n\x08intervalB\n\n\x08tx\
3634     _power\x1a\xa4\x02\n\rAdvertiseData\x12.\n\x13include_device_name\x18\
3635     \x01\x20\x01(\x08R\x11includeDeviceName\x123\n\x16include_tx_power_level\
3636     \x18\x02\x20\x01(\x08R\x13includeTxPowerLevel\x12+\n\x11manufacturer_dat\
3637     a\x18\x03\x20\x01(\x0cR\x10manufacturerData\x12N\n\x08services\x18\x04\
3638     \x20\x03(\x0b22.netsim.model.Chip.BleBeacon.AdvertiseData.ServiceR\x08se\
3639     rvices\x1a1\n\x07Service\x12\x12\n\x04uuid\x18\x01\x20\x01(\tR\x04uuid\
3640     \x12\x12\n\x04data\x18\x02\x20\x01(\x0cR\x04dataB\x06\n\x04chipB\t\n\x07\
3641     _offset\"\xdd\x04\n\nChipCreate\x12+\n\x04kind\x18\x01\x20\x01(\x0e2\x17\
3642     .netsim.common.ChipKindR\x04kind\x12\x18\n\x07address\x18\x02\x20\x01(\t\
3643     R\x07address\x12\x12\n\x04name\x18\x03\x20\x01(\tR\x04name\x12\"\n\x0cma\
3644     nufacturer\x18\x04\x20\x01(\tR\x0cmanufacturer\x12!\n\x0cproduct_name\
3645     \x18\x05\x20\x01(\tR\x0bproductName\x12I\n\nble_beacon\x18\x06\x20\x01(\
3646     \x0b2(.netsim.model.ChipCreate.BleBeaconCreateH\0R\tbleBeacon\x12H\n\rbt\
3647     _properties\x18\x07\x20\x01(\x0b2#.rootcanal.configuration.ControllerR\
3648     \x0cbtProperties\x1a\x8f\x02\n\x0fBleBeaconCreate\x12\x18\n\x07address\
3649     \x18\x01\x20\x01(\tR\x07address\x12J\n\x08settings\x18\x03\x20\x01(\x0b2\
3650     ..netsim.model.Chip.BleBeacon.AdvertiseSettingsR\x08settings\x12E\n\x08a\
3651     dv_data\x18\x04\x20\x01(\x0b2*.netsim.model.Chip.BleBeacon.AdvertiseData\
3652     R\x07advData\x12O\n\rscan_response\x18\x05\x20\x01(\x0b2*.netsim.model.C\
3653     hip.BleBeacon.AdvertiseDataR\x0cscanResponseB\x06\n\x04chip\"\xf2\x01\n\
3654     \x06Device\x12\x0e\n\x02id\x18\x01\x20\x01(\rR\x02id\x12\x12\n\x04name\
3655     \x18\x02\x20\x01(\tR\x04name\x12\x1d\n\x07visible\x18\x03\x20\x01(\x08H\
3656     \0R\x07visible\x88\x01\x01\x122\n\x08position\x18\x04\x20\x01(\x0b2\x16.\
3657     netsim.model.PositionR\x08position\x12;\n\x0borientation\x18\x05\x20\x01\
3658     (\x0b2\x19.netsim.model.OrientationR\x0borientation\x12(\n\x05chips\x18\
3659     \x06\x20\x03(\x0b2\x12.netsim.model.ChipR\x05chipsB\n\n\x08_visible\"\
3660     \xc3\x01\n\x0cDeviceCreate\x12\x12\n\x04name\x18\x01\x20\x01(\tR\x04name\
3661     \x122\n\x08position\x18\x02\x20\x01(\x0b2\x16.netsim.model.PositionR\x08\
3662     position\x12;\n\x0borientation\x18\x03\x20\x01(\x0b2\x19.netsim.model.Or\
3663     ientationR\x0borientation\x12.\n\x05chips\x18\x04\x20\x03(\x0b2\x18.nets\
3664     im.model.ChipCreateR\x05chips\"7\n\x05Scene\x12.\n\x07devices\x18\x01\
3665     \x20\x03(\x0b2\x14.netsim.model.DeviceR\x07devices\"\x93\x02\n\x07Captur\
3666     e\x12\x0e\n\x02id\x18\x01\x20\x01(\rR\x02id\x124\n\tchip_kind\x18\x02\
3667     \x20\x01(\x0e2\x17.netsim.common.ChipKindR\x08chipKind\x12\x1f\n\x0bdevi\
3668     ce_name\x18\x03\x20\x01(\tR\ndeviceName\x12\x19\n\x05state\x18\x04\x20\
3669     \x01(\x08H\0R\x05state\x88\x01\x01\x12\x12\n\x04size\x18\x05\x20\x01(\
3670     \x05R\x04size\x12\x18\n\x07records\x18\x06\x20\x01(\x05R\x07records\x128\
3671     \n\ttimestamp\x18\x07\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttime\
3672     stamp\x12\x14\n\x05valid\x18\x08\x20\x01(\x08R\x05validB\x08\n\x06_state\
3673     *e\n\x07PhyKind\x12\x08\n\x04NONE\x10\0\x12\x15\n\x11BLUETOOTH_CLASSIC\
3674     \x10\x01\x12\x18\n\x14BLUETOOTH_LOW_ENERGY\x10\x02\x12\x08\n\x04WIFI\x10\
3675     \x03\x12\x07\n\x03UWB\x10\x04\x12\x0c\n\x08WIFI_RTT\x10\x05b\x06proto3\
3676 ";
3677 
3678 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto3679 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
3680     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
3681     file_descriptor_proto_lazy.get(|| {
3682         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
3683     })
3684 }
3685 
3686 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor3687 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
3688     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
3689     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
3690     file_descriptor.get(|| {
3691         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
3692             let mut deps = ::std::vec::Vec::with_capacity(3);
3693             deps.push(super::common::file_descriptor().clone());
3694             deps.push(::protobuf::well_known_types::timestamp::file_descriptor().clone());
3695             deps.push(super::configuration::file_descriptor().clone());
3696             let mut messages = ::std::vec::Vec::with_capacity(15);
3697             messages.push(Position::generated_message_descriptor_data());
3698             messages.push(Orientation::generated_message_descriptor_data());
3699             messages.push(Chip::generated_message_descriptor_data());
3700             messages.push(ChipCreate::generated_message_descriptor_data());
3701             messages.push(Device::generated_message_descriptor_data());
3702             messages.push(DeviceCreate::generated_message_descriptor_data());
3703             messages.push(Scene::generated_message_descriptor_data());
3704             messages.push(Capture::generated_message_descriptor_data());
3705             messages.push(chip::Radio::generated_message_descriptor_data());
3706             messages.push(chip::Bluetooth::generated_message_descriptor_data());
3707             messages.push(chip::BleBeacon::generated_message_descriptor_data());
3708             messages.push(chip::ble_beacon::AdvertiseSettings::generated_message_descriptor_data());
3709             messages.push(chip::ble_beacon::AdvertiseData::generated_message_descriptor_data());
3710             messages.push(chip::ble_beacon::advertise_data::Service::generated_message_descriptor_data());
3711             messages.push(chip_create::BleBeaconCreate::generated_message_descriptor_data());
3712             let mut enums = ::std::vec::Vec::with_capacity(3);
3713             enums.push(PhyKind::generated_enum_descriptor_data());
3714             enums.push(chip::ble_beacon::advertise_settings::AdvertiseMode::generated_enum_descriptor_data());
3715             enums.push(chip::ble_beacon::advertise_settings::AdvertiseTxPower::generated_enum_descriptor_data());
3716             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
3717                 file_descriptor_proto(),
3718                 deps,
3719                 messages,
3720                 enums,
3721             )
3722         });
3723         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
3724     })
3725 }
3726