xref: /aosp_15_r20/tools/netsim/rust/proto/src/stats.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/stats.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.stats.InvalidPacket)
29 pub struct InvalidPacket {
30     // message fields
31     // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.reason)
32     pub reason: ::std::option::Option<::protobuf::EnumOrUnknown<invalid_packet::Reason>>,
33     // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.description)
34     pub description: ::std::option::Option<::std::string::String>,
35     // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.packet)
36     pub packet: ::std::option::Option<::std::vec::Vec<u8>>,
37     // special fields
38     // @@protoc_insertion_point(special_field:netsim.stats.InvalidPacket.special_fields)
39     pub special_fields: ::protobuf::SpecialFields,
40 }
41 
42 impl<'a> ::std::default::Default for &'a InvalidPacket {
default() -> &'a InvalidPacket43     fn default() -> &'a InvalidPacket {
44         <InvalidPacket as ::protobuf::Message>::default_instance()
45     }
46 }
47 
48 impl InvalidPacket {
new() -> InvalidPacket49     pub fn new() -> InvalidPacket {
50         ::std::default::Default::default()
51     }
52 
53     // optional .netsim.stats.InvalidPacket.Reason reason = 1;
54 
reason(&self) -> invalid_packet::Reason55     pub fn reason(&self) -> invalid_packet::Reason {
56         match self.reason {
57             Some(e) => e.enum_value_or(invalid_packet::Reason::UNKNOWN),
58             None => invalid_packet::Reason::UNKNOWN,
59         }
60     }
61 
clear_reason(&mut self)62     pub fn clear_reason(&mut self) {
63         self.reason = ::std::option::Option::None;
64     }
65 
has_reason(&self) -> bool66     pub fn has_reason(&self) -> bool {
67         self.reason.is_some()
68     }
69 
70     // Param is passed by value, moved
set_reason(&mut self, v: invalid_packet::Reason)71     pub fn set_reason(&mut self, v: invalid_packet::Reason) {
72         self.reason = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
73     }
74 
75     // optional string description = 2;
76 
description(&self) -> &str77     pub fn description(&self) -> &str {
78         match self.description.as_ref() {
79             Some(v) => v,
80             None => "",
81         }
82     }
83 
clear_description(&mut self)84     pub fn clear_description(&mut self) {
85         self.description = ::std::option::Option::None;
86     }
87 
has_description(&self) -> bool88     pub fn has_description(&self) -> bool {
89         self.description.is_some()
90     }
91 
92     // Param is passed by value, moved
set_description(&mut self, v: ::std::string::String)93     pub fn set_description(&mut self, v: ::std::string::String) {
94         self.description = ::std::option::Option::Some(v);
95     }
96 
97     // Mutable pointer to the field.
98     // If field is not initialized, it is initialized with default value first.
mut_description(&mut self) -> &mut ::std::string::String99     pub fn mut_description(&mut self) -> &mut ::std::string::String {
100         if self.description.is_none() {
101             self.description = ::std::option::Option::Some(::std::string::String::new());
102         }
103         self.description.as_mut().unwrap()
104     }
105 
106     // Take field
take_description(&mut self) -> ::std::string::String107     pub fn take_description(&mut self) -> ::std::string::String {
108         self.description.take().unwrap_or_else(|| ::std::string::String::new())
109     }
110 
111     // optional bytes packet = 3;
112 
packet(&self) -> &[u8]113     pub fn packet(&self) -> &[u8] {
114         match self.packet.as_ref() {
115             Some(v) => v,
116             None => &[],
117         }
118     }
119 
clear_packet(&mut self)120     pub fn clear_packet(&mut self) {
121         self.packet = ::std::option::Option::None;
122     }
123 
has_packet(&self) -> bool124     pub fn has_packet(&self) -> bool {
125         self.packet.is_some()
126     }
127 
128     // Param is passed by value, moved
set_packet(&mut self, v: ::std::vec::Vec<u8>)129     pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) {
130         self.packet = ::std::option::Option::Some(v);
131     }
132 
133     // Mutable pointer to the field.
134     // If field is not initialized, it is initialized with default value first.
mut_packet(&mut self) -> &mut ::std::vec::Vec<u8>135     pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> {
136         if self.packet.is_none() {
137             self.packet = ::std::option::Option::Some(::std::vec::Vec::new());
138         }
139         self.packet.as_mut().unwrap()
140     }
141 
142     // Take field
take_packet(&mut self) -> ::std::vec::Vec<u8>143     pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> {
144         self.packet.take().unwrap_or_else(|| ::std::vec::Vec::new())
145     }
146 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData147     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
148         let mut fields = ::std::vec::Vec::with_capacity(3);
149         let mut oneofs = ::std::vec::Vec::with_capacity(0);
150         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
151             "reason",
152             |m: &InvalidPacket| { &m.reason },
153             |m: &mut InvalidPacket| { &mut m.reason },
154         ));
155         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
156             "description",
157             |m: &InvalidPacket| { &m.description },
158             |m: &mut InvalidPacket| { &mut m.description },
159         ));
160         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
161             "packet",
162             |m: &InvalidPacket| { &m.packet },
163             |m: &mut InvalidPacket| { &mut m.packet },
164         ));
165         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<InvalidPacket>(
166             "InvalidPacket",
167             fields,
168             oneofs,
169         )
170     }
171 }
172 
173 impl ::protobuf::Message for InvalidPacket {
174     const NAME: &'static str = "InvalidPacket";
175 
is_initialized(&self) -> bool176     fn is_initialized(&self) -> bool {
177         true
178     }
179 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>180     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
181         while let Some(tag) = is.read_raw_tag_or_eof()? {
182             match tag {
183                 8 => {
184                     self.reason = ::std::option::Option::Some(is.read_enum_or_unknown()?);
185                 },
186                 18 => {
187                     self.description = ::std::option::Option::Some(is.read_string()?);
188                 },
189                 26 => {
190                     self.packet = ::std::option::Option::Some(is.read_bytes()?);
191                 },
192                 tag => {
193                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
194                 },
195             };
196         }
197         ::std::result::Result::Ok(())
198     }
199 
200     // Compute sizes of nested messages
201     #[allow(unused_variables)]
compute_size(&self) -> u64202     fn compute_size(&self) -> u64 {
203         let mut my_size = 0;
204         if let Some(v) = self.reason {
205             my_size += ::protobuf::rt::int32_size(1, v.value());
206         }
207         if let Some(v) = self.description.as_ref() {
208             my_size += ::protobuf::rt::string_size(2, &v);
209         }
210         if let Some(v) = self.packet.as_ref() {
211             my_size += ::protobuf::rt::bytes_size(3, &v);
212         }
213         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
214         self.special_fields.cached_size().set(my_size as u32);
215         my_size
216     }
217 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>218     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
219         if let Some(v) = self.reason {
220             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
221         }
222         if let Some(v) = self.description.as_ref() {
223             os.write_string(2, v)?;
224         }
225         if let Some(v) = self.packet.as_ref() {
226             os.write_bytes(3, v)?;
227         }
228         os.write_unknown_fields(self.special_fields.unknown_fields())?;
229         ::std::result::Result::Ok(())
230     }
231 
special_fields(&self) -> &::protobuf::SpecialFields232     fn special_fields(&self) -> &::protobuf::SpecialFields {
233         &self.special_fields
234     }
235 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields236     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
237         &mut self.special_fields
238     }
239 
new() -> InvalidPacket240     fn new() -> InvalidPacket {
241         InvalidPacket::new()
242     }
243 
clear(&mut self)244     fn clear(&mut self) {
245         self.reason = ::std::option::Option::None;
246         self.description = ::std::option::Option::None;
247         self.packet = ::std::option::Option::None;
248         self.special_fields.clear();
249     }
250 
default_instance() -> &'static InvalidPacket251     fn default_instance() -> &'static InvalidPacket {
252         static instance: InvalidPacket = InvalidPacket {
253             reason: ::std::option::Option::None,
254             description: ::std::option::Option::None,
255             packet: ::std::option::Option::None,
256             special_fields: ::protobuf::SpecialFields::new(),
257         };
258         &instance
259     }
260 }
261 
262 impl ::protobuf::MessageFull for InvalidPacket {
descriptor() -> ::protobuf::reflect::MessageDescriptor263     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
264         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
265         descriptor.get(|| file_descriptor().message_by_package_relative_name("InvalidPacket").unwrap()).clone()
266     }
267 }
268 
269 impl ::std::fmt::Display for InvalidPacket {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result270     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
271         ::protobuf::text_format::fmt(self, f)
272     }
273 }
274 
275 impl ::protobuf::reflect::ProtobufValue for InvalidPacket {
276     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
277 }
278 
279 /// Nested message and enums of message `InvalidPacket`
280 pub mod invalid_packet {
281     #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
282     // @@protoc_insertion_point(enum:netsim.stats.InvalidPacket.Reason)
283     pub enum Reason {
284         // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.UNKNOWN)
285         UNKNOWN = 0,
286         // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.PARSE_ERROR)
287         PARSE_ERROR = 1,
288         // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.UNSUPPORTED)
289         UNSUPPORTED = 2,
290         // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.OTHERS)
291         OTHERS = 3,
292         // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.DELAYED)
293         DELAYED = 4,
294     }
295 
296     impl ::protobuf::Enum for Reason {
297         const NAME: &'static str = "Reason";
298 
value(&self) -> i32299         fn value(&self) -> i32 {
300             *self as i32
301         }
302 
from_i32(value: i32) -> ::std::option::Option<Reason>303         fn from_i32(value: i32) -> ::std::option::Option<Reason> {
304             match value {
305                 0 => ::std::option::Option::Some(Reason::UNKNOWN),
306                 1 => ::std::option::Option::Some(Reason::PARSE_ERROR),
307                 2 => ::std::option::Option::Some(Reason::UNSUPPORTED),
308                 3 => ::std::option::Option::Some(Reason::OTHERS),
309                 4 => ::std::option::Option::Some(Reason::DELAYED),
310                 _ => ::std::option::Option::None
311             }
312         }
313 
314         const VALUES: &'static [Reason] = &[
315             Reason::UNKNOWN,
316             Reason::PARSE_ERROR,
317             Reason::UNSUPPORTED,
318             Reason::OTHERS,
319             Reason::DELAYED,
320         ];
321     }
322 
323     impl ::protobuf::EnumFull for Reason {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor324         fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
325             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
326             descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("InvalidPacket.Reason").unwrap()).clone()
327         }
328 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor329         fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
330             let index = *self as usize;
331             Self::enum_descriptor().value_by_index(index)
332         }
333     }
334 
335     impl ::std::default::Default for Reason {
default() -> Self336         fn default() -> Self {
337             Reason::UNKNOWN
338         }
339     }
340 
341     impl Reason {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData342         pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
343             ::protobuf::reflect::GeneratedEnumDescriptorData::new::<Reason>("InvalidPacket.Reason")
344         }
345     }
346 }
347 
348 #[derive(PartialEq,Clone,Default,Debug)]
349 // @@protoc_insertion_point(message:netsim.stats.NetsimRadioStats)
350 pub struct NetsimRadioStats {
351     // message fields
352     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.device_id)
353     pub device_id: ::std::option::Option<u32>,
354     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.kind)
355     pub kind: ::std::option::Option<::protobuf::EnumOrUnknown<netsim_radio_stats::Kind>>,
356     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.duration_secs)
357     pub duration_secs: ::std::option::Option<u64>,
358     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.tx_count)
359     pub tx_count: ::std::option::Option<i32>,
360     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.rx_count)
361     pub rx_count: ::std::option::Option<i32>,
362     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.tx_bytes)
363     pub tx_bytes: ::std::option::Option<i32>,
364     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.rx_bytes)
365     pub rx_bytes: ::std::option::Option<i32>,
366     // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.invalid_packets)
367     pub invalid_packets: ::std::vec::Vec<InvalidPacket>,
368     // special fields
369     // @@protoc_insertion_point(special_field:netsim.stats.NetsimRadioStats.special_fields)
370     pub special_fields: ::protobuf::SpecialFields,
371 }
372 
373 impl<'a> ::std::default::Default for &'a NetsimRadioStats {
default() -> &'a NetsimRadioStats374     fn default() -> &'a NetsimRadioStats {
375         <NetsimRadioStats as ::protobuf::Message>::default_instance()
376     }
377 }
378 
379 impl NetsimRadioStats {
new() -> NetsimRadioStats380     pub fn new() -> NetsimRadioStats {
381         ::std::default::Default::default()
382     }
383 
384     // optional uint32 device_id = 1;
385 
device_id(&self) -> u32386     pub fn device_id(&self) -> u32 {
387         self.device_id.unwrap_or(0)
388     }
389 
clear_device_id(&mut self)390     pub fn clear_device_id(&mut self) {
391         self.device_id = ::std::option::Option::None;
392     }
393 
has_device_id(&self) -> bool394     pub fn has_device_id(&self) -> bool {
395         self.device_id.is_some()
396     }
397 
398     // Param is passed by value, moved
set_device_id(&mut self, v: u32)399     pub fn set_device_id(&mut self, v: u32) {
400         self.device_id = ::std::option::Option::Some(v);
401     }
402 
403     // optional .netsim.stats.NetsimRadioStats.Kind kind = 2;
404 
kind(&self) -> netsim_radio_stats::Kind405     pub fn kind(&self) -> netsim_radio_stats::Kind {
406         match self.kind {
407             Some(e) => e.enum_value_or(netsim_radio_stats::Kind::UNSPECIFIED),
408             None => netsim_radio_stats::Kind::UNSPECIFIED,
409         }
410     }
411 
clear_kind(&mut self)412     pub fn clear_kind(&mut self) {
413         self.kind = ::std::option::Option::None;
414     }
415 
has_kind(&self) -> bool416     pub fn has_kind(&self) -> bool {
417         self.kind.is_some()
418     }
419 
420     // Param is passed by value, moved
set_kind(&mut self, v: netsim_radio_stats::Kind)421     pub fn set_kind(&mut self, v: netsim_radio_stats::Kind) {
422         self.kind = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
423     }
424 
425     // optional uint64 duration_secs = 3;
426 
duration_secs(&self) -> u64427     pub fn duration_secs(&self) -> u64 {
428         self.duration_secs.unwrap_or(0)
429     }
430 
clear_duration_secs(&mut self)431     pub fn clear_duration_secs(&mut self) {
432         self.duration_secs = ::std::option::Option::None;
433     }
434 
has_duration_secs(&self) -> bool435     pub fn has_duration_secs(&self) -> bool {
436         self.duration_secs.is_some()
437     }
438 
439     // Param is passed by value, moved
set_duration_secs(&mut self, v: u64)440     pub fn set_duration_secs(&mut self, v: u64) {
441         self.duration_secs = ::std::option::Option::Some(v);
442     }
443 
444     // optional int32 tx_count = 4;
445 
tx_count(&self) -> i32446     pub fn tx_count(&self) -> i32 {
447         self.tx_count.unwrap_or(0)
448     }
449 
clear_tx_count(&mut self)450     pub fn clear_tx_count(&mut self) {
451         self.tx_count = ::std::option::Option::None;
452     }
453 
has_tx_count(&self) -> bool454     pub fn has_tx_count(&self) -> bool {
455         self.tx_count.is_some()
456     }
457 
458     // Param is passed by value, moved
set_tx_count(&mut self, v: i32)459     pub fn set_tx_count(&mut self, v: i32) {
460         self.tx_count = ::std::option::Option::Some(v);
461     }
462 
463     // optional int32 rx_count = 5;
464 
rx_count(&self) -> i32465     pub fn rx_count(&self) -> i32 {
466         self.rx_count.unwrap_or(0)
467     }
468 
clear_rx_count(&mut self)469     pub fn clear_rx_count(&mut self) {
470         self.rx_count = ::std::option::Option::None;
471     }
472 
has_rx_count(&self) -> bool473     pub fn has_rx_count(&self) -> bool {
474         self.rx_count.is_some()
475     }
476 
477     // Param is passed by value, moved
set_rx_count(&mut self, v: i32)478     pub fn set_rx_count(&mut self, v: i32) {
479         self.rx_count = ::std::option::Option::Some(v);
480     }
481 
482     // optional int32 tx_bytes = 6;
483 
tx_bytes(&self) -> i32484     pub fn tx_bytes(&self) -> i32 {
485         self.tx_bytes.unwrap_or(0)
486     }
487 
clear_tx_bytes(&mut self)488     pub fn clear_tx_bytes(&mut self) {
489         self.tx_bytes = ::std::option::Option::None;
490     }
491 
has_tx_bytes(&self) -> bool492     pub fn has_tx_bytes(&self) -> bool {
493         self.tx_bytes.is_some()
494     }
495 
496     // Param is passed by value, moved
set_tx_bytes(&mut self, v: i32)497     pub fn set_tx_bytes(&mut self, v: i32) {
498         self.tx_bytes = ::std::option::Option::Some(v);
499     }
500 
501     // optional int32 rx_bytes = 7;
502 
rx_bytes(&self) -> i32503     pub fn rx_bytes(&self) -> i32 {
504         self.rx_bytes.unwrap_or(0)
505     }
506 
clear_rx_bytes(&mut self)507     pub fn clear_rx_bytes(&mut self) {
508         self.rx_bytes = ::std::option::Option::None;
509     }
510 
has_rx_bytes(&self) -> bool511     pub fn has_rx_bytes(&self) -> bool {
512         self.rx_bytes.is_some()
513     }
514 
515     // Param is passed by value, moved
set_rx_bytes(&mut self, v: i32)516     pub fn set_rx_bytes(&mut self, v: i32) {
517         self.rx_bytes = ::std::option::Option::Some(v);
518     }
519 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData520     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
521         let mut fields = ::std::vec::Vec::with_capacity(8);
522         let mut oneofs = ::std::vec::Vec::with_capacity(0);
523         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
524             "device_id",
525             |m: &NetsimRadioStats| { &m.device_id },
526             |m: &mut NetsimRadioStats| { &mut m.device_id },
527         ));
528         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
529             "kind",
530             |m: &NetsimRadioStats| { &m.kind },
531             |m: &mut NetsimRadioStats| { &mut m.kind },
532         ));
533         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
534             "duration_secs",
535             |m: &NetsimRadioStats| { &m.duration_secs },
536             |m: &mut NetsimRadioStats| { &mut m.duration_secs },
537         ));
538         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
539             "tx_count",
540             |m: &NetsimRadioStats| { &m.tx_count },
541             |m: &mut NetsimRadioStats| { &mut m.tx_count },
542         ));
543         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
544             "rx_count",
545             |m: &NetsimRadioStats| { &m.rx_count },
546             |m: &mut NetsimRadioStats| { &mut m.rx_count },
547         ));
548         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
549             "tx_bytes",
550             |m: &NetsimRadioStats| { &m.tx_bytes },
551             |m: &mut NetsimRadioStats| { &mut m.tx_bytes },
552         ));
553         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
554             "rx_bytes",
555             |m: &NetsimRadioStats| { &m.rx_bytes },
556             |m: &mut NetsimRadioStats| { &mut m.rx_bytes },
557         ));
558         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
559             "invalid_packets",
560             |m: &NetsimRadioStats| { &m.invalid_packets },
561             |m: &mut NetsimRadioStats| { &mut m.invalid_packets },
562         ));
563         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimRadioStats>(
564             "NetsimRadioStats",
565             fields,
566             oneofs,
567         )
568     }
569 }
570 
571 impl ::protobuf::Message for NetsimRadioStats {
572     const NAME: &'static str = "NetsimRadioStats";
573 
is_initialized(&self) -> bool574     fn is_initialized(&self) -> bool {
575         true
576     }
577 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>578     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
579         while let Some(tag) = is.read_raw_tag_or_eof()? {
580             match tag {
581                 8 => {
582                     self.device_id = ::std::option::Option::Some(is.read_uint32()?);
583                 },
584                 16 => {
585                     self.kind = ::std::option::Option::Some(is.read_enum_or_unknown()?);
586                 },
587                 24 => {
588                     self.duration_secs = ::std::option::Option::Some(is.read_uint64()?);
589                 },
590                 32 => {
591                     self.tx_count = ::std::option::Option::Some(is.read_int32()?);
592                 },
593                 40 => {
594                     self.rx_count = ::std::option::Option::Some(is.read_int32()?);
595                 },
596                 48 => {
597                     self.tx_bytes = ::std::option::Option::Some(is.read_int32()?);
598                 },
599                 56 => {
600                     self.rx_bytes = ::std::option::Option::Some(is.read_int32()?);
601                 },
602                 66 => {
603                     self.invalid_packets.push(is.read_message()?);
604                 },
605                 tag => {
606                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
607                 },
608             };
609         }
610         ::std::result::Result::Ok(())
611     }
612 
613     // Compute sizes of nested messages
614     #[allow(unused_variables)]
compute_size(&self) -> u64615     fn compute_size(&self) -> u64 {
616         let mut my_size = 0;
617         if let Some(v) = self.device_id {
618             my_size += ::protobuf::rt::uint32_size(1, v);
619         }
620         if let Some(v) = self.kind {
621             my_size += ::protobuf::rt::int32_size(2, v.value());
622         }
623         if let Some(v) = self.duration_secs {
624             my_size += ::protobuf::rt::uint64_size(3, v);
625         }
626         if let Some(v) = self.tx_count {
627             my_size += ::protobuf::rt::int32_size(4, v);
628         }
629         if let Some(v) = self.rx_count {
630             my_size += ::protobuf::rt::int32_size(5, v);
631         }
632         if let Some(v) = self.tx_bytes {
633             my_size += ::protobuf::rt::int32_size(6, v);
634         }
635         if let Some(v) = self.rx_bytes {
636             my_size += ::protobuf::rt::int32_size(7, v);
637         }
638         for value in &self.invalid_packets {
639             let len = value.compute_size();
640             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
641         };
642         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
643         self.special_fields.cached_size().set(my_size as u32);
644         my_size
645     }
646 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>647     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
648         if let Some(v) = self.device_id {
649             os.write_uint32(1, v)?;
650         }
651         if let Some(v) = self.kind {
652             os.write_enum(2, ::protobuf::EnumOrUnknown::value(&v))?;
653         }
654         if let Some(v) = self.duration_secs {
655             os.write_uint64(3, v)?;
656         }
657         if let Some(v) = self.tx_count {
658             os.write_int32(4, v)?;
659         }
660         if let Some(v) = self.rx_count {
661             os.write_int32(5, v)?;
662         }
663         if let Some(v) = self.tx_bytes {
664             os.write_int32(6, v)?;
665         }
666         if let Some(v) = self.rx_bytes {
667             os.write_int32(7, v)?;
668         }
669         for v in &self.invalid_packets {
670             ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?;
671         };
672         os.write_unknown_fields(self.special_fields.unknown_fields())?;
673         ::std::result::Result::Ok(())
674     }
675 
special_fields(&self) -> &::protobuf::SpecialFields676     fn special_fields(&self) -> &::protobuf::SpecialFields {
677         &self.special_fields
678     }
679 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields680     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
681         &mut self.special_fields
682     }
683 
new() -> NetsimRadioStats684     fn new() -> NetsimRadioStats {
685         NetsimRadioStats::new()
686     }
687 
clear(&mut self)688     fn clear(&mut self) {
689         self.device_id = ::std::option::Option::None;
690         self.kind = ::std::option::Option::None;
691         self.duration_secs = ::std::option::Option::None;
692         self.tx_count = ::std::option::Option::None;
693         self.rx_count = ::std::option::Option::None;
694         self.tx_bytes = ::std::option::Option::None;
695         self.rx_bytes = ::std::option::Option::None;
696         self.invalid_packets.clear();
697         self.special_fields.clear();
698     }
699 
default_instance() -> &'static NetsimRadioStats700     fn default_instance() -> &'static NetsimRadioStats {
701         static instance: NetsimRadioStats = NetsimRadioStats {
702             device_id: ::std::option::Option::None,
703             kind: ::std::option::Option::None,
704             duration_secs: ::std::option::Option::None,
705             tx_count: ::std::option::Option::None,
706             rx_count: ::std::option::Option::None,
707             tx_bytes: ::std::option::Option::None,
708             rx_bytes: ::std::option::Option::None,
709             invalid_packets: ::std::vec::Vec::new(),
710             special_fields: ::protobuf::SpecialFields::new(),
711         };
712         &instance
713     }
714 }
715 
716 impl ::protobuf::MessageFull for NetsimRadioStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor717     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
718         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
719         descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimRadioStats").unwrap()).clone()
720     }
721 }
722 
723 impl ::std::fmt::Display for NetsimRadioStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result724     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
725         ::protobuf::text_format::fmt(self, f)
726     }
727 }
728 
729 impl ::protobuf::reflect::ProtobufValue for NetsimRadioStats {
730     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
731 }
732 
733 /// Nested message and enums of message `NetsimRadioStats`
734 pub mod netsim_radio_stats {
735     #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
736     // @@protoc_insertion_point(enum:netsim.stats.NetsimRadioStats.Kind)
737     pub enum Kind {
738         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.UNSPECIFIED)
739         UNSPECIFIED = 0,
740         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLUETOOTH_LOW_ENERGY)
741         BLUETOOTH_LOW_ENERGY = 1,
742         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLUETOOTH_CLASSIC)
743         BLUETOOTH_CLASSIC = 2,
744         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLE_BEACON)
745         BLE_BEACON = 3,
746         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.WIFI)
747         WIFI = 4,
748         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.UWB)
749         UWB = 5,
750         // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.NFC)
751         NFC = 6,
752     }
753 
754     impl ::protobuf::Enum for Kind {
755         const NAME: &'static str = "Kind";
756 
value(&self) -> i32757         fn value(&self) -> i32 {
758             *self as i32
759         }
760 
from_i32(value: i32) -> ::std::option::Option<Kind>761         fn from_i32(value: i32) -> ::std::option::Option<Kind> {
762             match value {
763                 0 => ::std::option::Option::Some(Kind::UNSPECIFIED),
764                 1 => ::std::option::Option::Some(Kind::BLUETOOTH_LOW_ENERGY),
765                 2 => ::std::option::Option::Some(Kind::BLUETOOTH_CLASSIC),
766                 3 => ::std::option::Option::Some(Kind::BLE_BEACON),
767                 4 => ::std::option::Option::Some(Kind::WIFI),
768                 5 => ::std::option::Option::Some(Kind::UWB),
769                 6 => ::std::option::Option::Some(Kind::NFC),
770                 _ => ::std::option::Option::None
771             }
772         }
773 
774         const VALUES: &'static [Kind] = &[
775             Kind::UNSPECIFIED,
776             Kind::BLUETOOTH_LOW_ENERGY,
777             Kind::BLUETOOTH_CLASSIC,
778             Kind::BLE_BEACON,
779             Kind::WIFI,
780             Kind::UWB,
781             Kind::NFC,
782         ];
783     }
784 
785     impl ::protobuf::EnumFull for Kind {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor786         fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
787             static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
788             descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("NetsimRadioStats.Kind").unwrap()).clone()
789         }
790 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor791         fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
792             let index = *self as usize;
793             Self::enum_descriptor().value_by_index(index)
794         }
795     }
796 
797     impl ::std::default::Default for Kind {
default() -> Self798         fn default() -> Self {
799             Kind::UNSPECIFIED
800         }
801     }
802 
803     impl Kind {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData804         pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
805             ::protobuf::reflect::GeneratedEnumDescriptorData::new::<Kind>("NetsimRadioStats.Kind")
806         }
807     }
808 }
809 
810 #[derive(PartialEq,Clone,Default,Debug)]
811 // @@protoc_insertion_point(message:netsim.stats.NetsimFrontendStats)
812 pub struct NetsimFrontendStats {
813     // message fields
814     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.get_version)
815     pub get_version: ::std::option::Option<u32>,
816     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.create_device)
817     pub create_device: ::std::option::Option<u32>,
818     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.delete_chip)
819     pub delete_chip: ::std::option::Option<u32>,
820     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.patch_device)
821     pub patch_device: ::std::option::Option<u32>,
822     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.reset)
823     pub reset: ::std::option::Option<u32>,
824     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.list_device)
825     pub list_device: ::std::option::Option<u32>,
826     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.subscribe_device)
827     pub subscribe_device: ::std::option::Option<u32>,
828     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.patch_capture)
829     pub patch_capture: ::std::option::Option<u32>,
830     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.list_capture)
831     pub list_capture: ::std::option::Option<u32>,
832     // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.get_capture)
833     pub get_capture: ::std::option::Option<u32>,
834     // special fields
835     // @@protoc_insertion_point(special_field:netsim.stats.NetsimFrontendStats.special_fields)
836     pub special_fields: ::protobuf::SpecialFields,
837 }
838 
839 impl<'a> ::std::default::Default for &'a NetsimFrontendStats {
default() -> &'a NetsimFrontendStats840     fn default() -> &'a NetsimFrontendStats {
841         <NetsimFrontendStats as ::protobuf::Message>::default_instance()
842     }
843 }
844 
845 impl NetsimFrontendStats {
new() -> NetsimFrontendStats846     pub fn new() -> NetsimFrontendStats {
847         ::std::default::Default::default()
848     }
849 
850     // optional uint32 get_version = 1;
851 
get_version(&self) -> u32852     pub fn get_version(&self) -> u32 {
853         self.get_version.unwrap_or(0)
854     }
855 
clear_get_version(&mut self)856     pub fn clear_get_version(&mut self) {
857         self.get_version = ::std::option::Option::None;
858     }
859 
has_get_version(&self) -> bool860     pub fn has_get_version(&self) -> bool {
861         self.get_version.is_some()
862     }
863 
864     // Param is passed by value, moved
set_get_version(&mut self, v: u32)865     pub fn set_get_version(&mut self, v: u32) {
866         self.get_version = ::std::option::Option::Some(v);
867     }
868 
869     // optional uint32 create_device = 2;
870 
create_device(&self) -> u32871     pub fn create_device(&self) -> u32 {
872         self.create_device.unwrap_or(0)
873     }
874 
clear_create_device(&mut self)875     pub fn clear_create_device(&mut self) {
876         self.create_device = ::std::option::Option::None;
877     }
878 
has_create_device(&self) -> bool879     pub fn has_create_device(&self) -> bool {
880         self.create_device.is_some()
881     }
882 
883     // Param is passed by value, moved
set_create_device(&mut self, v: u32)884     pub fn set_create_device(&mut self, v: u32) {
885         self.create_device = ::std::option::Option::Some(v);
886     }
887 
888     // optional uint32 delete_chip = 3;
889 
delete_chip(&self) -> u32890     pub fn delete_chip(&self) -> u32 {
891         self.delete_chip.unwrap_or(0)
892     }
893 
clear_delete_chip(&mut self)894     pub fn clear_delete_chip(&mut self) {
895         self.delete_chip = ::std::option::Option::None;
896     }
897 
has_delete_chip(&self) -> bool898     pub fn has_delete_chip(&self) -> bool {
899         self.delete_chip.is_some()
900     }
901 
902     // Param is passed by value, moved
set_delete_chip(&mut self, v: u32)903     pub fn set_delete_chip(&mut self, v: u32) {
904         self.delete_chip = ::std::option::Option::Some(v);
905     }
906 
907     // optional uint32 patch_device = 4;
908 
patch_device(&self) -> u32909     pub fn patch_device(&self) -> u32 {
910         self.patch_device.unwrap_or(0)
911     }
912 
clear_patch_device(&mut self)913     pub fn clear_patch_device(&mut self) {
914         self.patch_device = ::std::option::Option::None;
915     }
916 
has_patch_device(&self) -> bool917     pub fn has_patch_device(&self) -> bool {
918         self.patch_device.is_some()
919     }
920 
921     // Param is passed by value, moved
set_patch_device(&mut self, v: u32)922     pub fn set_patch_device(&mut self, v: u32) {
923         self.patch_device = ::std::option::Option::Some(v);
924     }
925 
926     // optional uint32 reset = 5;
927 
reset(&self) -> u32928     pub fn reset(&self) -> u32 {
929         self.reset.unwrap_or(0)
930     }
931 
clear_reset(&mut self)932     pub fn clear_reset(&mut self) {
933         self.reset = ::std::option::Option::None;
934     }
935 
has_reset(&self) -> bool936     pub fn has_reset(&self) -> bool {
937         self.reset.is_some()
938     }
939 
940     // Param is passed by value, moved
set_reset(&mut self, v: u32)941     pub fn set_reset(&mut self, v: u32) {
942         self.reset = ::std::option::Option::Some(v);
943     }
944 
945     // optional uint32 list_device = 6;
946 
list_device(&self) -> u32947     pub fn list_device(&self) -> u32 {
948         self.list_device.unwrap_or(0)
949     }
950 
clear_list_device(&mut self)951     pub fn clear_list_device(&mut self) {
952         self.list_device = ::std::option::Option::None;
953     }
954 
has_list_device(&self) -> bool955     pub fn has_list_device(&self) -> bool {
956         self.list_device.is_some()
957     }
958 
959     // Param is passed by value, moved
set_list_device(&mut self, v: u32)960     pub fn set_list_device(&mut self, v: u32) {
961         self.list_device = ::std::option::Option::Some(v);
962     }
963 
964     // optional uint32 subscribe_device = 7;
965 
subscribe_device(&self) -> u32966     pub fn subscribe_device(&self) -> u32 {
967         self.subscribe_device.unwrap_or(0)
968     }
969 
clear_subscribe_device(&mut self)970     pub fn clear_subscribe_device(&mut self) {
971         self.subscribe_device = ::std::option::Option::None;
972     }
973 
has_subscribe_device(&self) -> bool974     pub fn has_subscribe_device(&self) -> bool {
975         self.subscribe_device.is_some()
976     }
977 
978     // Param is passed by value, moved
set_subscribe_device(&mut self, v: u32)979     pub fn set_subscribe_device(&mut self, v: u32) {
980         self.subscribe_device = ::std::option::Option::Some(v);
981     }
982 
983     // optional uint32 patch_capture = 8;
984 
patch_capture(&self) -> u32985     pub fn patch_capture(&self) -> u32 {
986         self.patch_capture.unwrap_or(0)
987     }
988 
clear_patch_capture(&mut self)989     pub fn clear_patch_capture(&mut self) {
990         self.patch_capture = ::std::option::Option::None;
991     }
992 
has_patch_capture(&self) -> bool993     pub fn has_patch_capture(&self) -> bool {
994         self.patch_capture.is_some()
995     }
996 
997     // Param is passed by value, moved
set_patch_capture(&mut self, v: u32)998     pub fn set_patch_capture(&mut self, v: u32) {
999         self.patch_capture = ::std::option::Option::Some(v);
1000     }
1001 
1002     // optional uint32 list_capture = 9;
1003 
list_capture(&self) -> u321004     pub fn list_capture(&self) -> u32 {
1005         self.list_capture.unwrap_or(0)
1006     }
1007 
clear_list_capture(&mut self)1008     pub fn clear_list_capture(&mut self) {
1009         self.list_capture = ::std::option::Option::None;
1010     }
1011 
has_list_capture(&self) -> bool1012     pub fn has_list_capture(&self) -> bool {
1013         self.list_capture.is_some()
1014     }
1015 
1016     // Param is passed by value, moved
set_list_capture(&mut self, v: u32)1017     pub fn set_list_capture(&mut self, v: u32) {
1018         self.list_capture = ::std::option::Option::Some(v);
1019     }
1020 
1021     // optional uint32 get_capture = 10;
1022 
get_capture(&self) -> u321023     pub fn get_capture(&self) -> u32 {
1024         self.get_capture.unwrap_or(0)
1025     }
1026 
clear_get_capture(&mut self)1027     pub fn clear_get_capture(&mut self) {
1028         self.get_capture = ::std::option::Option::None;
1029     }
1030 
has_get_capture(&self) -> bool1031     pub fn has_get_capture(&self) -> bool {
1032         self.get_capture.is_some()
1033     }
1034 
1035     // Param is passed by value, moved
set_get_capture(&mut self, v: u32)1036     pub fn set_get_capture(&mut self, v: u32) {
1037         self.get_capture = ::std::option::Option::Some(v);
1038     }
1039 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1040     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1041         let mut fields = ::std::vec::Vec::with_capacity(10);
1042         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1043         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1044             "get_version",
1045             |m: &NetsimFrontendStats| { &m.get_version },
1046             |m: &mut NetsimFrontendStats| { &mut m.get_version },
1047         ));
1048         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1049             "create_device",
1050             |m: &NetsimFrontendStats| { &m.create_device },
1051             |m: &mut NetsimFrontendStats| { &mut m.create_device },
1052         ));
1053         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1054             "delete_chip",
1055             |m: &NetsimFrontendStats| { &m.delete_chip },
1056             |m: &mut NetsimFrontendStats| { &mut m.delete_chip },
1057         ));
1058         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1059             "patch_device",
1060             |m: &NetsimFrontendStats| { &m.patch_device },
1061             |m: &mut NetsimFrontendStats| { &mut m.patch_device },
1062         ));
1063         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1064             "reset",
1065             |m: &NetsimFrontendStats| { &m.reset },
1066             |m: &mut NetsimFrontendStats| { &mut m.reset },
1067         ));
1068         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1069             "list_device",
1070             |m: &NetsimFrontendStats| { &m.list_device },
1071             |m: &mut NetsimFrontendStats| { &mut m.list_device },
1072         ));
1073         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1074             "subscribe_device",
1075             |m: &NetsimFrontendStats| { &m.subscribe_device },
1076             |m: &mut NetsimFrontendStats| { &mut m.subscribe_device },
1077         ));
1078         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1079             "patch_capture",
1080             |m: &NetsimFrontendStats| { &m.patch_capture },
1081             |m: &mut NetsimFrontendStats| { &mut m.patch_capture },
1082         ));
1083         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1084             "list_capture",
1085             |m: &NetsimFrontendStats| { &m.list_capture },
1086             |m: &mut NetsimFrontendStats| { &mut m.list_capture },
1087         ));
1088         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1089             "get_capture",
1090             |m: &NetsimFrontendStats| { &m.get_capture },
1091             |m: &mut NetsimFrontendStats| { &mut m.get_capture },
1092         ));
1093         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimFrontendStats>(
1094             "NetsimFrontendStats",
1095             fields,
1096             oneofs,
1097         )
1098     }
1099 }
1100 
1101 impl ::protobuf::Message for NetsimFrontendStats {
1102     const NAME: &'static str = "NetsimFrontendStats";
1103 
is_initialized(&self) -> bool1104     fn is_initialized(&self) -> bool {
1105         true
1106     }
1107 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1108     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1109         while let Some(tag) = is.read_raw_tag_or_eof()? {
1110             match tag {
1111                 8 => {
1112                     self.get_version = ::std::option::Option::Some(is.read_uint32()?);
1113                 },
1114                 16 => {
1115                     self.create_device = ::std::option::Option::Some(is.read_uint32()?);
1116                 },
1117                 24 => {
1118                     self.delete_chip = ::std::option::Option::Some(is.read_uint32()?);
1119                 },
1120                 32 => {
1121                     self.patch_device = ::std::option::Option::Some(is.read_uint32()?);
1122                 },
1123                 40 => {
1124                     self.reset = ::std::option::Option::Some(is.read_uint32()?);
1125                 },
1126                 48 => {
1127                     self.list_device = ::std::option::Option::Some(is.read_uint32()?);
1128                 },
1129                 56 => {
1130                     self.subscribe_device = ::std::option::Option::Some(is.read_uint32()?);
1131                 },
1132                 64 => {
1133                     self.patch_capture = ::std::option::Option::Some(is.read_uint32()?);
1134                 },
1135                 72 => {
1136                     self.list_capture = ::std::option::Option::Some(is.read_uint32()?);
1137                 },
1138                 80 => {
1139                     self.get_capture = ::std::option::Option::Some(is.read_uint32()?);
1140                 },
1141                 tag => {
1142                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1143                 },
1144             };
1145         }
1146         ::std::result::Result::Ok(())
1147     }
1148 
1149     // Compute sizes of nested messages
1150     #[allow(unused_variables)]
compute_size(&self) -> u641151     fn compute_size(&self) -> u64 {
1152         let mut my_size = 0;
1153         if let Some(v) = self.get_version {
1154             my_size += ::protobuf::rt::uint32_size(1, v);
1155         }
1156         if let Some(v) = self.create_device {
1157             my_size += ::protobuf::rt::uint32_size(2, v);
1158         }
1159         if let Some(v) = self.delete_chip {
1160             my_size += ::protobuf::rt::uint32_size(3, v);
1161         }
1162         if let Some(v) = self.patch_device {
1163             my_size += ::protobuf::rt::uint32_size(4, v);
1164         }
1165         if let Some(v) = self.reset {
1166             my_size += ::protobuf::rt::uint32_size(5, v);
1167         }
1168         if let Some(v) = self.list_device {
1169             my_size += ::protobuf::rt::uint32_size(6, v);
1170         }
1171         if let Some(v) = self.subscribe_device {
1172             my_size += ::protobuf::rt::uint32_size(7, v);
1173         }
1174         if let Some(v) = self.patch_capture {
1175             my_size += ::protobuf::rt::uint32_size(8, v);
1176         }
1177         if let Some(v) = self.list_capture {
1178             my_size += ::protobuf::rt::uint32_size(9, v);
1179         }
1180         if let Some(v) = self.get_capture {
1181             my_size += ::protobuf::rt::uint32_size(10, v);
1182         }
1183         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1184         self.special_fields.cached_size().set(my_size as u32);
1185         my_size
1186     }
1187 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1188     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1189         if let Some(v) = self.get_version {
1190             os.write_uint32(1, v)?;
1191         }
1192         if let Some(v) = self.create_device {
1193             os.write_uint32(2, v)?;
1194         }
1195         if let Some(v) = self.delete_chip {
1196             os.write_uint32(3, v)?;
1197         }
1198         if let Some(v) = self.patch_device {
1199             os.write_uint32(4, v)?;
1200         }
1201         if let Some(v) = self.reset {
1202             os.write_uint32(5, v)?;
1203         }
1204         if let Some(v) = self.list_device {
1205             os.write_uint32(6, v)?;
1206         }
1207         if let Some(v) = self.subscribe_device {
1208             os.write_uint32(7, v)?;
1209         }
1210         if let Some(v) = self.patch_capture {
1211             os.write_uint32(8, v)?;
1212         }
1213         if let Some(v) = self.list_capture {
1214             os.write_uint32(9, v)?;
1215         }
1216         if let Some(v) = self.get_capture {
1217             os.write_uint32(10, v)?;
1218         }
1219         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1220         ::std::result::Result::Ok(())
1221     }
1222 
special_fields(&self) -> &::protobuf::SpecialFields1223     fn special_fields(&self) -> &::protobuf::SpecialFields {
1224         &self.special_fields
1225     }
1226 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1227     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1228         &mut self.special_fields
1229     }
1230 
new() -> NetsimFrontendStats1231     fn new() -> NetsimFrontendStats {
1232         NetsimFrontendStats::new()
1233     }
1234 
clear(&mut self)1235     fn clear(&mut self) {
1236         self.get_version = ::std::option::Option::None;
1237         self.create_device = ::std::option::Option::None;
1238         self.delete_chip = ::std::option::Option::None;
1239         self.patch_device = ::std::option::Option::None;
1240         self.reset = ::std::option::Option::None;
1241         self.list_device = ::std::option::Option::None;
1242         self.subscribe_device = ::std::option::Option::None;
1243         self.patch_capture = ::std::option::Option::None;
1244         self.list_capture = ::std::option::Option::None;
1245         self.get_capture = ::std::option::Option::None;
1246         self.special_fields.clear();
1247     }
1248 
default_instance() -> &'static NetsimFrontendStats1249     fn default_instance() -> &'static NetsimFrontendStats {
1250         static instance: NetsimFrontendStats = NetsimFrontendStats {
1251             get_version: ::std::option::Option::None,
1252             create_device: ::std::option::Option::None,
1253             delete_chip: ::std::option::Option::None,
1254             patch_device: ::std::option::Option::None,
1255             reset: ::std::option::Option::None,
1256             list_device: ::std::option::Option::None,
1257             subscribe_device: ::std::option::Option::None,
1258             patch_capture: ::std::option::Option::None,
1259             list_capture: ::std::option::Option::None,
1260             get_capture: ::std::option::Option::None,
1261             special_fields: ::protobuf::SpecialFields::new(),
1262         };
1263         &instance
1264     }
1265 }
1266 
1267 impl ::protobuf::MessageFull for NetsimFrontendStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor1268     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1269         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1270         descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimFrontendStats").unwrap()).clone()
1271     }
1272 }
1273 
1274 impl ::std::fmt::Display for NetsimFrontendStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1275     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1276         ::protobuf::text_format::fmt(self, f)
1277     }
1278 }
1279 
1280 impl ::protobuf::reflect::ProtobufValue for NetsimFrontendStats {
1281     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1282 }
1283 
1284 #[derive(PartialEq,Clone,Default,Debug)]
1285 // @@protoc_insertion_point(message:netsim.stats.NetsimDeviceStats)
1286 pub struct NetsimDeviceStats {
1287     // message fields
1288     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.device_id)
1289     pub device_id: ::std::option::Option<u32>,
1290     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.kind)
1291     pub kind: ::std::option::Option<::std::string::String>,
1292     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.version)
1293     pub version: ::std::option::Option<::std::string::String>,
1294     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.sdk_version)
1295     pub sdk_version: ::std::option::Option<::std::string::String>,
1296     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.build_id)
1297     pub build_id: ::std::option::Option<::std::string::String>,
1298     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.variant)
1299     pub variant: ::std::option::Option<::std::string::String>,
1300     // @@protoc_insertion_point(field:netsim.stats.NetsimDeviceStats.arch)
1301     pub arch: ::std::option::Option<::std::string::String>,
1302     // special fields
1303     // @@protoc_insertion_point(special_field:netsim.stats.NetsimDeviceStats.special_fields)
1304     pub special_fields: ::protobuf::SpecialFields,
1305 }
1306 
1307 impl<'a> ::std::default::Default for &'a NetsimDeviceStats {
default() -> &'a NetsimDeviceStats1308     fn default() -> &'a NetsimDeviceStats {
1309         <NetsimDeviceStats as ::protobuf::Message>::default_instance()
1310     }
1311 }
1312 
1313 impl NetsimDeviceStats {
new() -> NetsimDeviceStats1314     pub fn new() -> NetsimDeviceStats {
1315         ::std::default::Default::default()
1316     }
1317 
1318     // optional uint32 device_id = 1;
1319 
device_id(&self) -> u321320     pub fn device_id(&self) -> u32 {
1321         self.device_id.unwrap_or(0)
1322     }
1323 
clear_device_id(&mut self)1324     pub fn clear_device_id(&mut self) {
1325         self.device_id = ::std::option::Option::None;
1326     }
1327 
has_device_id(&self) -> bool1328     pub fn has_device_id(&self) -> bool {
1329         self.device_id.is_some()
1330     }
1331 
1332     // Param is passed by value, moved
set_device_id(&mut self, v: u32)1333     pub fn set_device_id(&mut self, v: u32) {
1334         self.device_id = ::std::option::Option::Some(v);
1335     }
1336 
1337     // optional string kind = 2;
1338 
kind(&self) -> &str1339     pub fn kind(&self) -> &str {
1340         match self.kind.as_ref() {
1341             Some(v) => v,
1342             None => "",
1343         }
1344     }
1345 
clear_kind(&mut self)1346     pub fn clear_kind(&mut self) {
1347         self.kind = ::std::option::Option::None;
1348     }
1349 
has_kind(&self) -> bool1350     pub fn has_kind(&self) -> bool {
1351         self.kind.is_some()
1352     }
1353 
1354     // Param is passed by value, moved
set_kind(&mut self, v: ::std::string::String)1355     pub fn set_kind(&mut self, v: ::std::string::String) {
1356         self.kind = ::std::option::Option::Some(v);
1357     }
1358 
1359     // Mutable pointer to the field.
1360     // If field is not initialized, it is initialized with default value first.
mut_kind(&mut self) -> &mut ::std::string::String1361     pub fn mut_kind(&mut self) -> &mut ::std::string::String {
1362         if self.kind.is_none() {
1363             self.kind = ::std::option::Option::Some(::std::string::String::new());
1364         }
1365         self.kind.as_mut().unwrap()
1366     }
1367 
1368     // Take field
take_kind(&mut self) -> ::std::string::String1369     pub fn take_kind(&mut self) -> ::std::string::String {
1370         self.kind.take().unwrap_or_else(|| ::std::string::String::new())
1371     }
1372 
1373     // optional string version = 3;
1374 
version(&self) -> &str1375     pub fn version(&self) -> &str {
1376         match self.version.as_ref() {
1377             Some(v) => v,
1378             None => "",
1379         }
1380     }
1381 
clear_version(&mut self)1382     pub fn clear_version(&mut self) {
1383         self.version = ::std::option::Option::None;
1384     }
1385 
has_version(&self) -> bool1386     pub fn has_version(&self) -> bool {
1387         self.version.is_some()
1388     }
1389 
1390     // Param is passed by value, moved
set_version(&mut self, v: ::std::string::String)1391     pub fn set_version(&mut self, v: ::std::string::String) {
1392         self.version = ::std::option::Option::Some(v);
1393     }
1394 
1395     // Mutable pointer to the field.
1396     // If field is not initialized, it is initialized with default value first.
mut_version(&mut self) -> &mut ::std::string::String1397     pub fn mut_version(&mut self) -> &mut ::std::string::String {
1398         if self.version.is_none() {
1399             self.version = ::std::option::Option::Some(::std::string::String::new());
1400         }
1401         self.version.as_mut().unwrap()
1402     }
1403 
1404     // Take field
take_version(&mut self) -> ::std::string::String1405     pub fn take_version(&mut self) -> ::std::string::String {
1406         self.version.take().unwrap_or_else(|| ::std::string::String::new())
1407     }
1408 
1409     // optional string sdk_version = 4;
1410 
sdk_version(&self) -> &str1411     pub fn sdk_version(&self) -> &str {
1412         match self.sdk_version.as_ref() {
1413             Some(v) => v,
1414             None => "",
1415         }
1416     }
1417 
clear_sdk_version(&mut self)1418     pub fn clear_sdk_version(&mut self) {
1419         self.sdk_version = ::std::option::Option::None;
1420     }
1421 
has_sdk_version(&self) -> bool1422     pub fn has_sdk_version(&self) -> bool {
1423         self.sdk_version.is_some()
1424     }
1425 
1426     // Param is passed by value, moved
set_sdk_version(&mut self, v: ::std::string::String)1427     pub fn set_sdk_version(&mut self, v: ::std::string::String) {
1428         self.sdk_version = ::std::option::Option::Some(v);
1429     }
1430 
1431     // Mutable pointer to the field.
1432     // If field is not initialized, it is initialized with default value first.
mut_sdk_version(&mut self) -> &mut ::std::string::String1433     pub fn mut_sdk_version(&mut self) -> &mut ::std::string::String {
1434         if self.sdk_version.is_none() {
1435             self.sdk_version = ::std::option::Option::Some(::std::string::String::new());
1436         }
1437         self.sdk_version.as_mut().unwrap()
1438     }
1439 
1440     // Take field
take_sdk_version(&mut self) -> ::std::string::String1441     pub fn take_sdk_version(&mut self) -> ::std::string::String {
1442         self.sdk_version.take().unwrap_or_else(|| ::std::string::String::new())
1443     }
1444 
1445     // optional string build_id = 5;
1446 
build_id(&self) -> &str1447     pub fn build_id(&self) -> &str {
1448         match self.build_id.as_ref() {
1449             Some(v) => v,
1450             None => "",
1451         }
1452     }
1453 
clear_build_id(&mut self)1454     pub fn clear_build_id(&mut self) {
1455         self.build_id = ::std::option::Option::None;
1456     }
1457 
has_build_id(&self) -> bool1458     pub fn has_build_id(&self) -> bool {
1459         self.build_id.is_some()
1460     }
1461 
1462     // Param is passed by value, moved
set_build_id(&mut self, v: ::std::string::String)1463     pub fn set_build_id(&mut self, v: ::std::string::String) {
1464         self.build_id = ::std::option::Option::Some(v);
1465     }
1466 
1467     // Mutable pointer to the field.
1468     // If field is not initialized, it is initialized with default value first.
mut_build_id(&mut self) -> &mut ::std::string::String1469     pub fn mut_build_id(&mut self) -> &mut ::std::string::String {
1470         if self.build_id.is_none() {
1471             self.build_id = ::std::option::Option::Some(::std::string::String::new());
1472         }
1473         self.build_id.as_mut().unwrap()
1474     }
1475 
1476     // Take field
take_build_id(&mut self) -> ::std::string::String1477     pub fn take_build_id(&mut self) -> ::std::string::String {
1478         self.build_id.take().unwrap_or_else(|| ::std::string::String::new())
1479     }
1480 
1481     // optional string variant = 6;
1482 
variant(&self) -> &str1483     pub fn variant(&self) -> &str {
1484         match self.variant.as_ref() {
1485             Some(v) => v,
1486             None => "",
1487         }
1488     }
1489 
clear_variant(&mut self)1490     pub fn clear_variant(&mut self) {
1491         self.variant = ::std::option::Option::None;
1492     }
1493 
has_variant(&self) -> bool1494     pub fn has_variant(&self) -> bool {
1495         self.variant.is_some()
1496     }
1497 
1498     // Param is passed by value, moved
set_variant(&mut self, v: ::std::string::String)1499     pub fn set_variant(&mut self, v: ::std::string::String) {
1500         self.variant = ::std::option::Option::Some(v);
1501     }
1502 
1503     // Mutable pointer to the field.
1504     // If field is not initialized, it is initialized with default value first.
mut_variant(&mut self) -> &mut ::std::string::String1505     pub fn mut_variant(&mut self) -> &mut ::std::string::String {
1506         if self.variant.is_none() {
1507             self.variant = ::std::option::Option::Some(::std::string::String::new());
1508         }
1509         self.variant.as_mut().unwrap()
1510     }
1511 
1512     // Take field
take_variant(&mut self) -> ::std::string::String1513     pub fn take_variant(&mut self) -> ::std::string::String {
1514         self.variant.take().unwrap_or_else(|| ::std::string::String::new())
1515     }
1516 
1517     // optional string arch = 7;
1518 
arch(&self) -> &str1519     pub fn arch(&self) -> &str {
1520         match self.arch.as_ref() {
1521             Some(v) => v,
1522             None => "",
1523         }
1524     }
1525 
clear_arch(&mut self)1526     pub fn clear_arch(&mut self) {
1527         self.arch = ::std::option::Option::None;
1528     }
1529 
has_arch(&self) -> bool1530     pub fn has_arch(&self) -> bool {
1531         self.arch.is_some()
1532     }
1533 
1534     // Param is passed by value, moved
set_arch(&mut self, v: ::std::string::String)1535     pub fn set_arch(&mut self, v: ::std::string::String) {
1536         self.arch = ::std::option::Option::Some(v);
1537     }
1538 
1539     // Mutable pointer to the field.
1540     // If field is not initialized, it is initialized with default value first.
mut_arch(&mut self) -> &mut ::std::string::String1541     pub fn mut_arch(&mut self) -> &mut ::std::string::String {
1542         if self.arch.is_none() {
1543             self.arch = ::std::option::Option::Some(::std::string::String::new());
1544         }
1545         self.arch.as_mut().unwrap()
1546     }
1547 
1548     // Take field
take_arch(&mut self) -> ::std::string::String1549     pub fn take_arch(&mut self) -> ::std::string::String {
1550         self.arch.take().unwrap_or_else(|| ::std::string::String::new())
1551     }
1552 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1553     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1554         let mut fields = ::std::vec::Vec::with_capacity(7);
1555         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1556         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1557             "device_id",
1558             |m: &NetsimDeviceStats| { &m.device_id },
1559             |m: &mut NetsimDeviceStats| { &mut m.device_id },
1560         ));
1561         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1562             "kind",
1563             |m: &NetsimDeviceStats| { &m.kind },
1564             |m: &mut NetsimDeviceStats| { &mut m.kind },
1565         ));
1566         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1567             "version",
1568             |m: &NetsimDeviceStats| { &m.version },
1569             |m: &mut NetsimDeviceStats| { &mut m.version },
1570         ));
1571         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1572             "sdk_version",
1573             |m: &NetsimDeviceStats| { &m.sdk_version },
1574             |m: &mut NetsimDeviceStats| { &mut m.sdk_version },
1575         ));
1576         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1577             "build_id",
1578             |m: &NetsimDeviceStats| { &m.build_id },
1579             |m: &mut NetsimDeviceStats| { &mut m.build_id },
1580         ));
1581         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1582             "variant",
1583             |m: &NetsimDeviceStats| { &m.variant },
1584             |m: &mut NetsimDeviceStats| { &mut m.variant },
1585         ));
1586         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1587             "arch",
1588             |m: &NetsimDeviceStats| { &m.arch },
1589             |m: &mut NetsimDeviceStats| { &mut m.arch },
1590         ));
1591         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimDeviceStats>(
1592             "NetsimDeviceStats",
1593             fields,
1594             oneofs,
1595         )
1596     }
1597 }
1598 
1599 impl ::protobuf::Message for NetsimDeviceStats {
1600     const NAME: &'static str = "NetsimDeviceStats";
1601 
is_initialized(&self) -> bool1602     fn is_initialized(&self) -> bool {
1603         true
1604     }
1605 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1606     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1607         while let Some(tag) = is.read_raw_tag_or_eof()? {
1608             match tag {
1609                 8 => {
1610                     self.device_id = ::std::option::Option::Some(is.read_uint32()?);
1611                 },
1612                 18 => {
1613                     self.kind = ::std::option::Option::Some(is.read_string()?);
1614                 },
1615                 26 => {
1616                     self.version = ::std::option::Option::Some(is.read_string()?);
1617                 },
1618                 34 => {
1619                     self.sdk_version = ::std::option::Option::Some(is.read_string()?);
1620                 },
1621                 42 => {
1622                     self.build_id = ::std::option::Option::Some(is.read_string()?);
1623                 },
1624                 50 => {
1625                     self.variant = ::std::option::Option::Some(is.read_string()?);
1626                 },
1627                 58 => {
1628                     self.arch = ::std::option::Option::Some(is.read_string()?);
1629                 },
1630                 tag => {
1631                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1632                 },
1633             };
1634         }
1635         ::std::result::Result::Ok(())
1636     }
1637 
1638     // Compute sizes of nested messages
1639     #[allow(unused_variables)]
compute_size(&self) -> u641640     fn compute_size(&self) -> u64 {
1641         let mut my_size = 0;
1642         if let Some(v) = self.device_id {
1643             my_size += ::protobuf::rt::uint32_size(1, v);
1644         }
1645         if let Some(v) = self.kind.as_ref() {
1646             my_size += ::protobuf::rt::string_size(2, &v);
1647         }
1648         if let Some(v) = self.version.as_ref() {
1649             my_size += ::protobuf::rt::string_size(3, &v);
1650         }
1651         if let Some(v) = self.sdk_version.as_ref() {
1652             my_size += ::protobuf::rt::string_size(4, &v);
1653         }
1654         if let Some(v) = self.build_id.as_ref() {
1655             my_size += ::protobuf::rt::string_size(5, &v);
1656         }
1657         if let Some(v) = self.variant.as_ref() {
1658             my_size += ::protobuf::rt::string_size(6, &v);
1659         }
1660         if let Some(v) = self.arch.as_ref() {
1661             my_size += ::protobuf::rt::string_size(7, &v);
1662         }
1663         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1664         self.special_fields.cached_size().set(my_size as u32);
1665         my_size
1666     }
1667 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1668     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1669         if let Some(v) = self.device_id {
1670             os.write_uint32(1, v)?;
1671         }
1672         if let Some(v) = self.kind.as_ref() {
1673             os.write_string(2, v)?;
1674         }
1675         if let Some(v) = self.version.as_ref() {
1676             os.write_string(3, v)?;
1677         }
1678         if let Some(v) = self.sdk_version.as_ref() {
1679             os.write_string(4, v)?;
1680         }
1681         if let Some(v) = self.build_id.as_ref() {
1682             os.write_string(5, v)?;
1683         }
1684         if let Some(v) = self.variant.as_ref() {
1685             os.write_string(6, v)?;
1686         }
1687         if let Some(v) = self.arch.as_ref() {
1688             os.write_string(7, v)?;
1689         }
1690         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1691         ::std::result::Result::Ok(())
1692     }
1693 
special_fields(&self) -> &::protobuf::SpecialFields1694     fn special_fields(&self) -> &::protobuf::SpecialFields {
1695         &self.special_fields
1696     }
1697 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1698     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1699         &mut self.special_fields
1700     }
1701 
new() -> NetsimDeviceStats1702     fn new() -> NetsimDeviceStats {
1703         NetsimDeviceStats::new()
1704     }
1705 
clear(&mut self)1706     fn clear(&mut self) {
1707         self.device_id = ::std::option::Option::None;
1708         self.kind = ::std::option::Option::None;
1709         self.version = ::std::option::Option::None;
1710         self.sdk_version = ::std::option::Option::None;
1711         self.build_id = ::std::option::Option::None;
1712         self.variant = ::std::option::Option::None;
1713         self.arch = ::std::option::Option::None;
1714         self.special_fields.clear();
1715     }
1716 
default_instance() -> &'static NetsimDeviceStats1717     fn default_instance() -> &'static NetsimDeviceStats {
1718         static instance: NetsimDeviceStats = NetsimDeviceStats {
1719             device_id: ::std::option::Option::None,
1720             kind: ::std::option::Option::None,
1721             version: ::std::option::Option::None,
1722             sdk_version: ::std::option::Option::None,
1723             build_id: ::std::option::Option::None,
1724             variant: ::std::option::Option::None,
1725             arch: ::std::option::Option::None,
1726             special_fields: ::protobuf::SpecialFields::new(),
1727         };
1728         &instance
1729     }
1730 }
1731 
1732 impl ::protobuf::MessageFull for NetsimDeviceStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor1733     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1734         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1735         descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimDeviceStats").unwrap()).clone()
1736     }
1737 }
1738 
1739 impl ::std::fmt::Display for NetsimDeviceStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1740     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1741         ::protobuf::text_format::fmt(self, f)
1742     }
1743 }
1744 
1745 impl ::protobuf::reflect::ProtobufValue for NetsimDeviceStats {
1746     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1747 }
1748 
1749 #[derive(PartialEq,Clone,Default,Debug)]
1750 // @@protoc_insertion_point(message:netsim.stats.NetsimStats)
1751 pub struct NetsimStats {
1752     // message fields
1753     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.duration_secs)
1754     pub duration_secs: ::std::option::Option<u64>,
1755     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.device_count)
1756     pub device_count: ::std::option::Option<i32>,
1757     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.peak_concurrent_devices)
1758     pub peak_concurrent_devices: ::std::option::Option<i32>,
1759     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.radio_stats)
1760     pub radio_stats: ::std::vec::Vec<NetsimRadioStats>,
1761     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.version)
1762     pub version: ::std::option::Option<::std::string::String>,
1763     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.frontend_stats)
1764     pub frontend_stats: ::protobuf::MessageField<NetsimFrontendStats>,
1765     // @@protoc_insertion_point(field:netsim.stats.NetsimStats.device_stats)
1766     pub device_stats: ::std::vec::Vec<NetsimDeviceStats>,
1767     // special fields
1768     // @@protoc_insertion_point(special_field:netsim.stats.NetsimStats.special_fields)
1769     pub special_fields: ::protobuf::SpecialFields,
1770 }
1771 
1772 impl<'a> ::std::default::Default for &'a NetsimStats {
default() -> &'a NetsimStats1773     fn default() -> &'a NetsimStats {
1774         <NetsimStats as ::protobuf::Message>::default_instance()
1775     }
1776 }
1777 
1778 impl NetsimStats {
new() -> NetsimStats1779     pub fn new() -> NetsimStats {
1780         ::std::default::Default::default()
1781     }
1782 
1783     // optional uint64 duration_secs = 1;
1784 
duration_secs(&self) -> u641785     pub fn duration_secs(&self) -> u64 {
1786         self.duration_secs.unwrap_or(0)
1787     }
1788 
clear_duration_secs(&mut self)1789     pub fn clear_duration_secs(&mut self) {
1790         self.duration_secs = ::std::option::Option::None;
1791     }
1792 
has_duration_secs(&self) -> bool1793     pub fn has_duration_secs(&self) -> bool {
1794         self.duration_secs.is_some()
1795     }
1796 
1797     // Param is passed by value, moved
set_duration_secs(&mut self, v: u64)1798     pub fn set_duration_secs(&mut self, v: u64) {
1799         self.duration_secs = ::std::option::Option::Some(v);
1800     }
1801 
1802     // optional int32 device_count = 2;
1803 
device_count(&self) -> i321804     pub fn device_count(&self) -> i32 {
1805         self.device_count.unwrap_or(0)
1806     }
1807 
clear_device_count(&mut self)1808     pub fn clear_device_count(&mut self) {
1809         self.device_count = ::std::option::Option::None;
1810     }
1811 
has_device_count(&self) -> bool1812     pub fn has_device_count(&self) -> bool {
1813         self.device_count.is_some()
1814     }
1815 
1816     // Param is passed by value, moved
set_device_count(&mut self, v: i32)1817     pub fn set_device_count(&mut self, v: i32) {
1818         self.device_count = ::std::option::Option::Some(v);
1819     }
1820 
1821     // optional int32 peak_concurrent_devices = 3;
1822 
peak_concurrent_devices(&self) -> i321823     pub fn peak_concurrent_devices(&self) -> i32 {
1824         self.peak_concurrent_devices.unwrap_or(0)
1825     }
1826 
clear_peak_concurrent_devices(&mut self)1827     pub fn clear_peak_concurrent_devices(&mut self) {
1828         self.peak_concurrent_devices = ::std::option::Option::None;
1829     }
1830 
has_peak_concurrent_devices(&self) -> bool1831     pub fn has_peak_concurrent_devices(&self) -> bool {
1832         self.peak_concurrent_devices.is_some()
1833     }
1834 
1835     // Param is passed by value, moved
set_peak_concurrent_devices(&mut self, v: i32)1836     pub fn set_peak_concurrent_devices(&mut self, v: i32) {
1837         self.peak_concurrent_devices = ::std::option::Option::Some(v);
1838     }
1839 
1840     // optional string version = 5;
1841 
version(&self) -> &str1842     pub fn version(&self) -> &str {
1843         match self.version.as_ref() {
1844             Some(v) => v,
1845             None => "",
1846         }
1847     }
1848 
clear_version(&mut self)1849     pub fn clear_version(&mut self) {
1850         self.version = ::std::option::Option::None;
1851     }
1852 
has_version(&self) -> bool1853     pub fn has_version(&self) -> bool {
1854         self.version.is_some()
1855     }
1856 
1857     // Param is passed by value, moved
set_version(&mut self, v: ::std::string::String)1858     pub fn set_version(&mut self, v: ::std::string::String) {
1859         self.version = ::std::option::Option::Some(v);
1860     }
1861 
1862     // Mutable pointer to the field.
1863     // If field is not initialized, it is initialized with default value first.
mut_version(&mut self) -> &mut ::std::string::String1864     pub fn mut_version(&mut self) -> &mut ::std::string::String {
1865         if self.version.is_none() {
1866             self.version = ::std::option::Option::Some(::std::string::String::new());
1867         }
1868         self.version.as_mut().unwrap()
1869     }
1870 
1871     // Take field
take_version(&mut self) -> ::std::string::String1872     pub fn take_version(&mut self) -> ::std::string::String {
1873         self.version.take().unwrap_or_else(|| ::std::string::String::new())
1874     }
1875 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1876     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1877         let mut fields = ::std::vec::Vec::with_capacity(7);
1878         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1879         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1880             "duration_secs",
1881             |m: &NetsimStats| { &m.duration_secs },
1882             |m: &mut NetsimStats| { &mut m.duration_secs },
1883         ));
1884         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1885             "device_count",
1886             |m: &NetsimStats| { &m.device_count },
1887             |m: &mut NetsimStats| { &mut m.device_count },
1888         ));
1889         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1890             "peak_concurrent_devices",
1891             |m: &NetsimStats| { &m.peak_concurrent_devices },
1892             |m: &mut NetsimStats| { &mut m.peak_concurrent_devices },
1893         ));
1894         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1895             "radio_stats",
1896             |m: &NetsimStats| { &m.radio_stats },
1897             |m: &mut NetsimStats| { &mut m.radio_stats },
1898         ));
1899         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1900             "version",
1901             |m: &NetsimStats| { &m.version },
1902             |m: &mut NetsimStats| { &mut m.version },
1903         ));
1904         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, NetsimFrontendStats>(
1905             "frontend_stats",
1906             |m: &NetsimStats| { &m.frontend_stats },
1907             |m: &mut NetsimStats| { &mut m.frontend_stats },
1908         ));
1909         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1910             "device_stats",
1911             |m: &NetsimStats| { &m.device_stats },
1912             |m: &mut NetsimStats| { &mut m.device_stats },
1913         ));
1914         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimStats>(
1915             "NetsimStats",
1916             fields,
1917             oneofs,
1918         )
1919     }
1920 }
1921 
1922 impl ::protobuf::Message for NetsimStats {
1923     const NAME: &'static str = "NetsimStats";
1924 
is_initialized(&self) -> bool1925     fn is_initialized(&self) -> bool {
1926         true
1927     }
1928 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1929     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1930         while let Some(tag) = is.read_raw_tag_or_eof()? {
1931             match tag {
1932                 8 => {
1933                     self.duration_secs = ::std::option::Option::Some(is.read_uint64()?);
1934                 },
1935                 16 => {
1936                     self.device_count = ::std::option::Option::Some(is.read_int32()?);
1937                 },
1938                 24 => {
1939                     self.peak_concurrent_devices = ::std::option::Option::Some(is.read_int32()?);
1940                 },
1941                 34 => {
1942                     self.radio_stats.push(is.read_message()?);
1943                 },
1944                 42 => {
1945                     self.version = ::std::option::Option::Some(is.read_string()?);
1946                 },
1947                 50 => {
1948                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.frontend_stats)?;
1949                 },
1950                 58 => {
1951                     self.device_stats.push(is.read_message()?);
1952                 },
1953                 tag => {
1954                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1955                 },
1956             };
1957         }
1958         ::std::result::Result::Ok(())
1959     }
1960 
1961     // Compute sizes of nested messages
1962     #[allow(unused_variables)]
compute_size(&self) -> u641963     fn compute_size(&self) -> u64 {
1964         let mut my_size = 0;
1965         if let Some(v) = self.duration_secs {
1966             my_size += ::protobuf::rt::uint64_size(1, v);
1967         }
1968         if let Some(v) = self.device_count {
1969             my_size += ::protobuf::rt::int32_size(2, v);
1970         }
1971         if let Some(v) = self.peak_concurrent_devices {
1972             my_size += ::protobuf::rt::int32_size(3, v);
1973         }
1974         for value in &self.radio_stats {
1975             let len = value.compute_size();
1976             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1977         };
1978         if let Some(v) = self.version.as_ref() {
1979             my_size += ::protobuf::rt::string_size(5, &v);
1980         }
1981         if let Some(v) = self.frontend_stats.as_ref() {
1982             let len = v.compute_size();
1983             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1984         }
1985         for value in &self.device_stats {
1986             let len = value.compute_size();
1987             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1988         };
1989         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1990         self.special_fields.cached_size().set(my_size as u32);
1991         my_size
1992     }
1993 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1994     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1995         if let Some(v) = self.duration_secs {
1996             os.write_uint64(1, v)?;
1997         }
1998         if let Some(v) = self.device_count {
1999             os.write_int32(2, v)?;
2000         }
2001         if let Some(v) = self.peak_concurrent_devices {
2002             os.write_int32(3, v)?;
2003         }
2004         for v in &self.radio_stats {
2005             ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
2006         };
2007         if let Some(v) = self.version.as_ref() {
2008             os.write_string(5, v)?;
2009         }
2010         if let Some(v) = self.frontend_stats.as_ref() {
2011             ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
2012         }
2013         for v in &self.device_stats {
2014             ::protobuf::rt::write_message_field_with_cached_size(7, v, os)?;
2015         };
2016         os.write_unknown_fields(self.special_fields.unknown_fields())?;
2017         ::std::result::Result::Ok(())
2018     }
2019 
special_fields(&self) -> &::protobuf::SpecialFields2020     fn special_fields(&self) -> &::protobuf::SpecialFields {
2021         &self.special_fields
2022     }
2023 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields2024     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
2025         &mut self.special_fields
2026     }
2027 
new() -> NetsimStats2028     fn new() -> NetsimStats {
2029         NetsimStats::new()
2030     }
2031 
clear(&mut self)2032     fn clear(&mut self) {
2033         self.duration_secs = ::std::option::Option::None;
2034         self.device_count = ::std::option::Option::None;
2035         self.peak_concurrent_devices = ::std::option::Option::None;
2036         self.radio_stats.clear();
2037         self.version = ::std::option::Option::None;
2038         self.frontend_stats.clear();
2039         self.device_stats.clear();
2040         self.special_fields.clear();
2041     }
2042 
default_instance() -> &'static NetsimStats2043     fn default_instance() -> &'static NetsimStats {
2044         static instance: NetsimStats = NetsimStats {
2045             duration_secs: ::std::option::Option::None,
2046             device_count: ::std::option::Option::None,
2047             peak_concurrent_devices: ::std::option::Option::None,
2048             radio_stats: ::std::vec::Vec::new(),
2049             version: ::std::option::Option::None,
2050             frontend_stats: ::protobuf::MessageField::none(),
2051             device_stats: ::std::vec::Vec::new(),
2052             special_fields: ::protobuf::SpecialFields::new(),
2053         };
2054         &instance
2055     }
2056 }
2057 
2058 impl ::protobuf::MessageFull for NetsimStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor2059     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
2060         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
2061         descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimStats").unwrap()).clone()
2062     }
2063 }
2064 
2065 impl ::std::fmt::Display for NetsimStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result2066     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2067         ::protobuf::text_format::fmt(self, f)
2068     }
2069 }
2070 
2071 impl ::protobuf::reflect::ProtobufValue for NetsimStats {
2072     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
2073 }
2074 
2075 static file_descriptor_proto_data: &'static [u8] = b"\
2076     \n\x12netsim/stats.proto\x12\x0cnetsim.stats\"\xd7\x01\n\rInvalidPacket\
2077     \x12:\n\x06reason\x18\x01\x20\x01(\x0e2\".netsim.stats.InvalidPacket.Rea\
2078     sonR\x06reason\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescripti\
2079     on\x12\x16\n\x06packet\x18\x03\x20\x01(\x0cR\x06packet\"P\n\x06Reason\
2080     \x12\x0b\n\x07UNKNOWN\x10\0\x12\x0f\n\x0bPARSE_ERROR\x10\x01\x12\x0f\n\
2081     \x0bUNSUPPORTED\x10\x02\x12\n\n\x06OTHERS\x10\x03\x12\x0b\n\x07DELAYED\
2082     \x10\x04\"\xb5\x03\n\x10NetsimRadioStats\x12\x1b\n\tdevice_id\x18\x01\
2083     \x20\x01(\rR\x08deviceId\x127\n\x04kind\x18\x02\x20\x01(\x0e2#.netsim.st\
2084     ats.NetsimRadioStats.KindR\x04kind\x12#\n\rduration_secs\x18\x03\x20\x01\
2085     (\x04R\x0cdurationSecs\x12\x19\n\x08tx_count\x18\x04\x20\x01(\x05R\x07tx\
2086     Count\x12\x19\n\x08rx_count\x18\x05\x20\x01(\x05R\x07rxCount\x12\x19\n\
2087     \x08tx_bytes\x18\x06\x20\x01(\x05R\x07txBytes\x12\x19\n\x08rx_bytes\x18\
2088     \x07\x20\x01(\x05R\x07rxBytes\x12D\n\x0finvalid_packets\x18\x08\x20\x03(\
2089     \x0b2\x1b.netsim.stats.InvalidPacketR\x0einvalidPackets\"t\n\x04Kind\x12\
2090     \x0f\n\x0bUNSPECIFIED\x10\0\x12\x18\n\x14BLUETOOTH_LOW_ENERGY\x10\x01\
2091     \x12\x15\n\x11BLUETOOTH_CLASSIC\x10\x02\x12\x0e\n\nBLE_BEACON\x10\x03\
2092     \x12\x08\n\x04WIFI\x10\x04\x12\x07\n\x03UWB\x10\x05\x12\x07\n\x03NFC\x10\
2093     \x06\"\xea\x02\n\x13NetsimFrontendStats\x12\x1f\n\x0bget_version\x18\x01\
2094     \x20\x01(\rR\ngetVersion\x12#\n\rcreate_device\x18\x02\x20\x01(\rR\x0ccr\
2095     eateDevice\x12\x1f\n\x0bdelete_chip\x18\x03\x20\x01(\rR\ndeleteChip\x12!\
2096     \n\x0cpatch_device\x18\x04\x20\x01(\rR\x0bpatchDevice\x12\x14\n\x05reset\
2097     \x18\x05\x20\x01(\rR\x05reset\x12\x1f\n\x0blist_device\x18\x06\x20\x01(\
2098     \rR\nlistDevice\x12)\n\x10subscribe_device\x18\x07\x20\x01(\rR\x0fsubscr\
2099     ibeDevice\x12#\n\rpatch_capture\x18\x08\x20\x01(\rR\x0cpatchCapture\x12!\
2100     \n\x0clist_capture\x18\t\x20\x01(\rR\x0blistCapture\x12\x1f\n\x0bget_cap\
2101     ture\x18\n\x20\x01(\rR\ngetCapture\"\xc8\x01\n\x11NetsimDeviceStats\x12\
2102     \x1b\n\tdevice_id\x18\x01\x20\x01(\rR\x08deviceId\x12\x12\n\x04kind\x18\
2103     \x02\x20\x01(\tR\x04kind\x12\x18\n\x07version\x18\x03\x20\x01(\tR\x07ver\
2104     sion\x12\x1f\n\x0bsdk_version\x18\x04\x20\x01(\tR\nsdkVersion\x12\x19\n\
2105     \x08build_id\x18\x05\x20\x01(\tR\x07buildId\x12\x18\n\x07variant\x18\x06\
2106     \x20\x01(\tR\x07variant\x12\x12\n\x04arch\x18\x07\x20\x01(\tR\x04arch\"\
2107     \xf6\x02\n\x0bNetsimStats\x12#\n\rduration_secs\x18\x01\x20\x01(\x04R\
2108     \x0cdurationSecs\x12!\n\x0cdevice_count\x18\x02\x20\x01(\x05R\x0bdeviceC\
2109     ount\x126\n\x17peak_concurrent_devices\x18\x03\x20\x01(\x05R\x15peakConc\
2110     urrentDevices\x12?\n\x0bradio_stats\x18\x04\x20\x03(\x0b2\x1e.netsim.sta\
2111     ts.NetsimRadioStatsR\nradioStats\x12\x18\n\x07version\x18\x05\x20\x01(\t\
2112     R\x07version\x12H\n\x0efrontend_stats\x18\x06\x20\x01(\x0b2!.netsim.stat\
2113     s.NetsimFrontendStatsR\rfrontendStats\x12B\n\x0cdevice_stats\x18\x07\x20\
2114     \x03(\x0b2\x1f.netsim.stats.NetsimDeviceStatsR\x0bdeviceStats\
2115 ";
2116 
2117 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto2118 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
2119     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
2120     file_descriptor_proto_lazy.get(|| {
2121         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
2122     })
2123 }
2124 
2125 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor2126 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
2127     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
2128     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
2129     file_descriptor.get(|| {
2130         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
2131             let mut deps = ::std::vec::Vec::with_capacity(0);
2132             let mut messages = ::std::vec::Vec::with_capacity(5);
2133             messages.push(InvalidPacket::generated_message_descriptor_data());
2134             messages.push(NetsimRadioStats::generated_message_descriptor_data());
2135             messages.push(NetsimFrontendStats::generated_message_descriptor_data());
2136             messages.push(NetsimDeviceStats::generated_message_descriptor_data());
2137             messages.push(NetsimStats::generated_message_descriptor_data());
2138             let mut enums = ::std::vec::Vec::with_capacity(2);
2139             enums.push(invalid_packet::Reason::generated_enum_descriptor_data());
2140             enums.push(netsim_radio_stats::Kind::generated_enum_descriptor_data());
2141             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
2142                 file_descriptor_proto(),
2143                 deps,
2144                 messages,
2145                 enums,
2146             )
2147         });
2148         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
2149     })
2150 }
2151