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(box_pointers)]
13 #![allow(dead_code)]
14 #![allow(missing_docs)]
15 #![allow(non_camel_case_types)]
16 #![allow(non_snake_case)]
17 #![allow(non_upper_case_globals)]
18 #![allow(trivial_casts)]
19 #![allow(unused_results)]
20 #![allow(unused_mut)]
21
22 //! Generated file from `netsim/stats.proto`
23
24 /// Generated files are compatible only with the same version
25 /// of protobuf runtime.
26 const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
27
28 #[derive(PartialEq,Clone,Default,Debug)]
29 // @@protoc_insertion_point(message:netsim.stats.InvalidPacket)
30 pub struct InvalidPacket {
31 // message fields
32 // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.reason)
33 pub reason: ::std::option::Option<::protobuf::EnumOrUnknown<invalid_packet::Reason>>,
34 // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.description)
35 pub description: ::std::option::Option<::std::string::String>,
36 // @@protoc_insertion_point(field:netsim.stats.InvalidPacket.packet)
37 pub packet: ::std::option::Option<::std::vec::Vec<u8>>,
38 // special fields
39 // @@protoc_insertion_point(special_field:netsim.stats.InvalidPacket.special_fields)
40 pub special_fields: ::protobuf::SpecialFields,
41 }
42
43 impl<'a> ::std::default::Default for &'a InvalidPacket {
default() -> &'a InvalidPacket44 fn default() -> &'a InvalidPacket {
45 <InvalidPacket as ::protobuf::Message>::default_instance()
46 }
47 }
48
49 impl InvalidPacket {
new() -> InvalidPacket50 pub fn new() -> InvalidPacket {
51 ::std::default::Default::default()
52 }
53
54 // optional .netsim.stats.InvalidPacket.Reason reason = 1;
55
reason(&self) -> invalid_packet::Reason56 pub fn reason(&self) -> invalid_packet::Reason {
57 match self.reason {
58 Some(e) => e.enum_value_or(invalid_packet::Reason::UNKNOWN),
59 None => invalid_packet::Reason::UNKNOWN,
60 }
61 }
62
clear_reason(&mut self)63 pub fn clear_reason(&mut self) {
64 self.reason = ::std::option::Option::None;
65 }
66
has_reason(&self) -> bool67 pub fn has_reason(&self) -> bool {
68 self.reason.is_some()
69 }
70
71 // Param is passed by value, moved
set_reason(&mut self, v: invalid_packet::Reason)72 pub fn set_reason(&mut self, v: invalid_packet::Reason) {
73 self.reason = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
74 }
75
76 // optional string description = 2;
77
description(&self) -> &str78 pub fn description(&self) -> &str {
79 match self.description.as_ref() {
80 Some(v) => v,
81 None => "",
82 }
83 }
84
clear_description(&mut self)85 pub fn clear_description(&mut self) {
86 self.description = ::std::option::Option::None;
87 }
88
has_description(&self) -> bool89 pub fn has_description(&self) -> bool {
90 self.description.is_some()
91 }
92
93 // Param is passed by value, moved
set_description(&mut self, v: ::std::string::String)94 pub fn set_description(&mut self, v: ::std::string::String) {
95 self.description = ::std::option::Option::Some(v);
96 }
97
98 // Mutable pointer to the field.
99 // If field is not initialized, it is initialized with default value first.
mut_description(&mut self) -> &mut ::std::string::String100 pub fn mut_description(&mut self) -> &mut ::std::string::String {
101 if self.description.is_none() {
102 self.description = ::std::option::Option::Some(::std::string::String::new());
103 }
104 self.description.as_mut().unwrap()
105 }
106
107 // Take field
take_description(&mut self) -> ::std::string::String108 pub fn take_description(&mut self) -> ::std::string::String {
109 self.description.take().unwrap_or_else(|| ::std::string::String::new())
110 }
111
112 // optional bytes packet = 3;
113
packet(&self) -> &[u8]114 pub fn packet(&self) -> &[u8] {
115 match self.packet.as_ref() {
116 Some(v) => v,
117 None => &[],
118 }
119 }
120
clear_packet(&mut self)121 pub fn clear_packet(&mut self) {
122 self.packet = ::std::option::Option::None;
123 }
124
has_packet(&self) -> bool125 pub fn has_packet(&self) -> bool {
126 self.packet.is_some()
127 }
128
129 // Param is passed by value, moved
set_packet(&mut self, v: ::std::vec::Vec<u8>)130 pub fn set_packet(&mut self, v: ::std::vec::Vec<u8>) {
131 self.packet = ::std::option::Option::Some(v);
132 }
133
134 // Mutable pointer to the field.
135 // If field is not initialized, it is initialized with default value first.
mut_packet(&mut self) -> &mut ::std::vec::Vec<u8>136 pub fn mut_packet(&mut self) -> &mut ::std::vec::Vec<u8> {
137 if self.packet.is_none() {
138 self.packet = ::std::option::Option::Some(::std::vec::Vec::new());
139 }
140 self.packet.as_mut().unwrap()
141 }
142
143 // Take field
take_packet(&mut self) -> ::std::vec::Vec<u8>144 pub fn take_packet(&mut self) -> ::std::vec::Vec<u8> {
145 self.packet.take().unwrap_or_else(|| ::std::vec::Vec::new())
146 }
147
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData148 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
149 let mut fields = ::std::vec::Vec::with_capacity(3);
150 let mut oneofs = ::std::vec::Vec::with_capacity(0);
151 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
152 "reason",
153 |m: &InvalidPacket| { &m.reason },
154 |m: &mut InvalidPacket| { &mut m.reason },
155 ));
156 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
157 "description",
158 |m: &InvalidPacket| { &m.description },
159 |m: &mut InvalidPacket| { &mut m.description },
160 ));
161 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
162 "packet",
163 |m: &InvalidPacket| { &m.packet },
164 |m: &mut InvalidPacket| { &mut m.packet },
165 ));
166 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<InvalidPacket>(
167 "InvalidPacket",
168 fields,
169 oneofs,
170 )
171 }
172 }
173
174 impl ::protobuf::Message for InvalidPacket {
175 const NAME: &'static str = "InvalidPacket";
176
is_initialized(&self) -> bool177 fn is_initialized(&self) -> bool {
178 true
179 }
180
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>181 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
182 while let Some(tag) = is.read_raw_tag_or_eof()? {
183 match tag {
184 8 => {
185 self.reason = ::std::option::Option::Some(is.read_enum_or_unknown()?);
186 },
187 18 => {
188 self.description = ::std::option::Option::Some(is.read_string()?);
189 },
190 26 => {
191 self.packet = ::std::option::Option::Some(is.read_bytes()?);
192 },
193 tag => {
194 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
195 },
196 };
197 }
198 ::std::result::Result::Ok(())
199 }
200
201 // Compute sizes of nested messages
202 #[allow(unused_variables)]
compute_size(&self) -> u64203 fn compute_size(&self) -> u64 {
204 let mut my_size = 0;
205 if let Some(v) = self.reason {
206 my_size += ::protobuf::rt::int32_size(1, v.value());
207 }
208 if let Some(v) = self.description.as_ref() {
209 my_size += ::protobuf::rt::string_size(2, &v);
210 }
211 if let Some(v) = self.packet.as_ref() {
212 my_size += ::protobuf::rt::bytes_size(3, &v);
213 }
214 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
215 self.special_fields.cached_size().set(my_size as u32);
216 my_size
217 }
218
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>219 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
220 if let Some(v) = self.reason {
221 os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
222 }
223 if let Some(v) = self.description.as_ref() {
224 os.write_string(2, v)?;
225 }
226 if let Some(v) = self.packet.as_ref() {
227 os.write_bytes(3, v)?;
228 }
229 os.write_unknown_fields(self.special_fields.unknown_fields())?;
230 ::std::result::Result::Ok(())
231 }
232
special_fields(&self) -> &::protobuf::SpecialFields233 fn special_fields(&self) -> &::protobuf::SpecialFields {
234 &self.special_fields
235 }
236
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields237 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
238 &mut self.special_fields
239 }
240
new() -> InvalidPacket241 fn new() -> InvalidPacket {
242 InvalidPacket::new()
243 }
244
clear(&mut self)245 fn clear(&mut self) {
246 self.reason = ::std::option::Option::None;
247 self.description = ::std::option::Option::None;
248 self.packet = ::std::option::Option::None;
249 self.special_fields.clear();
250 }
251
default_instance() -> &'static InvalidPacket252 fn default_instance() -> &'static InvalidPacket {
253 static instance: InvalidPacket = InvalidPacket {
254 reason: ::std::option::Option::None,
255 description: ::std::option::Option::None,
256 packet: ::std::option::Option::None,
257 special_fields: ::protobuf::SpecialFields::new(),
258 };
259 &instance
260 }
261 }
262
263 impl ::protobuf::MessageFull for InvalidPacket {
descriptor() -> ::protobuf::reflect::MessageDescriptor264 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
265 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
266 descriptor.get(|| file_descriptor().message_by_package_relative_name("InvalidPacket").unwrap()).clone()
267 }
268 }
269
270 impl ::std::fmt::Display for InvalidPacket {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result271 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
272 ::protobuf::text_format::fmt(self, f)
273 }
274 }
275
276 impl ::protobuf::reflect::ProtobufValue for InvalidPacket {
277 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
278 }
279
280 /// Nested message and enums of message `InvalidPacket`
281 pub mod invalid_packet {
282 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
283 // @@protoc_insertion_point(enum:netsim.stats.InvalidPacket.Reason)
284 pub enum Reason {
285 // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.UNKNOWN)
286 UNKNOWN = 0,
287 // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.PARSE_ERROR)
288 PARSE_ERROR = 1,
289 // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.UNSUPPORTED)
290 UNSUPPORTED = 2,
291 // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.OTHERS)
292 OTHERS = 3,
293 // @@protoc_insertion_point(enum_value:netsim.stats.InvalidPacket.Reason.DELAYED)
294 DELAYED = 4,
295 }
296
297 impl ::protobuf::Enum for Reason {
298 const NAME: &'static str = "Reason";
299
value(&self) -> i32300 fn value(&self) -> i32 {
301 *self as i32
302 }
303
from_i32(value: i32) -> ::std::option::Option<Reason>304 fn from_i32(value: i32) -> ::std::option::Option<Reason> {
305 match value {
306 0 => ::std::option::Option::Some(Reason::UNKNOWN),
307 1 => ::std::option::Option::Some(Reason::PARSE_ERROR),
308 2 => ::std::option::Option::Some(Reason::UNSUPPORTED),
309 3 => ::std::option::Option::Some(Reason::OTHERS),
310 4 => ::std::option::Option::Some(Reason::DELAYED),
311 _ => ::std::option::Option::None
312 }
313 }
314
315 const VALUES: &'static [Reason] = &[
316 Reason::UNKNOWN,
317 Reason::PARSE_ERROR,
318 Reason::UNSUPPORTED,
319 Reason::OTHERS,
320 Reason::DELAYED,
321 ];
322 }
323
324 impl ::protobuf::EnumFull for Reason {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor325 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
326 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
327 descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("InvalidPacket.Reason").unwrap()).clone()
328 }
329
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor330 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
331 let index = *self as usize;
332 Self::enum_descriptor().value_by_index(index)
333 }
334 }
335
336 impl ::std::default::Default for Reason {
default() -> Self337 fn default() -> Self {
338 Reason::UNKNOWN
339 }
340 }
341
342 impl Reason {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData343 pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
344 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<Reason>("InvalidPacket.Reason")
345 }
346 }
347 }
348
349 #[derive(PartialEq,Clone,Default,Debug)]
350 // @@protoc_insertion_point(message:netsim.stats.NetsimRadioStats)
351 pub struct NetsimRadioStats {
352 // message fields
353 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.device_id)
354 pub device_id: ::std::option::Option<u32>,
355 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.kind)
356 pub kind: ::std::option::Option<::protobuf::EnumOrUnknown<netsim_radio_stats::Kind>>,
357 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.duration_secs)
358 pub duration_secs: ::std::option::Option<u64>,
359 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.tx_count)
360 pub tx_count: ::std::option::Option<i32>,
361 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.rx_count)
362 pub rx_count: ::std::option::Option<i32>,
363 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.tx_bytes)
364 pub tx_bytes: ::std::option::Option<i32>,
365 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.rx_bytes)
366 pub rx_bytes: ::std::option::Option<i32>,
367 // @@protoc_insertion_point(field:netsim.stats.NetsimRadioStats.invalid_packets)
368 pub invalid_packets: ::std::vec::Vec<InvalidPacket>,
369 // special fields
370 // @@protoc_insertion_point(special_field:netsim.stats.NetsimRadioStats.special_fields)
371 pub special_fields: ::protobuf::SpecialFields,
372 }
373
374 impl<'a> ::std::default::Default for &'a NetsimRadioStats {
default() -> &'a NetsimRadioStats375 fn default() -> &'a NetsimRadioStats {
376 <NetsimRadioStats as ::protobuf::Message>::default_instance()
377 }
378 }
379
380 impl NetsimRadioStats {
new() -> NetsimRadioStats381 pub fn new() -> NetsimRadioStats {
382 ::std::default::Default::default()
383 }
384
385 // optional uint32 device_id = 1;
386
device_id(&self) -> u32387 pub fn device_id(&self) -> u32 {
388 self.device_id.unwrap_or(0)
389 }
390
clear_device_id(&mut self)391 pub fn clear_device_id(&mut self) {
392 self.device_id = ::std::option::Option::None;
393 }
394
has_device_id(&self) -> bool395 pub fn has_device_id(&self) -> bool {
396 self.device_id.is_some()
397 }
398
399 // Param is passed by value, moved
set_device_id(&mut self, v: u32)400 pub fn set_device_id(&mut self, v: u32) {
401 self.device_id = ::std::option::Option::Some(v);
402 }
403
404 // optional .netsim.stats.NetsimRadioStats.Kind kind = 2;
405
kind(&self) -> netsim_radio_stats::Kind406 pub fn kind(&self) -> netsim_radio_stats::Kind {
407 match self.kind {
408 Some(e) => e.enum_value_or(netsim_radio_stats::Kind::UNSPECIFIED),
409 None => netsim_radio_stats::Kind::UNSPECIFIED,
410 }
411 }
412
clear_kind(&mut self)413 pub fn clear_kind(&mut self) {
414 self.kind = ::std::option::Option::None;
415 }
416
has_kind(&self) -> bool417 pub fn has_kind(&self) -> bool {
418 self.kind.is_some()
419 }
420
421 // Param is passed by value, moved
set_kind(&mut self, v: netsim_radio_stats::Kind)422 pub fn set_kind(&mut self, v: netsim_radio_stats::Kind) {
423 self.kind = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
424 }
425
426 // optional uint64 duration_secs = 3;
427
duration_secs(&self) -> u64428 pub fn duration_secs(&self) -> u64 {
429 self.duration_secs.unwrap_or(0)
430 }
431
clear_duration_secs(&mut self)432 pub fn clear_duration_secs(&mut self) {
433 self.duration_secs = ::std::option::Option::None;
434 }
435
has_duration_secs(&self) -> bool436 pub fn has_duration_secs(&self) -> bool {
437 self.duration_secs.is_some()
438 }
439
440 // Param is passed by value, moved
set_duration_secs(&mut self, v: u64)441 pub fn set_duration_secs(&mut self, v: u64) {
442 self.duration_secs = ::std::option::Option::Some(v);
443 }
444
445 // optional int32 tx_count = 4;
446
tx_count(&self) -> i32447 pub fn tx_count(&self) -> i32 {
448 self.tx_count.unwrap_or(0)
449 }
450
clear_tx_count(&mut self)451 pub fn clear_tx_count(&mut self) {
452 self.tx_count = ::std::option::Option::None;
453 }
454
has_tx_count(&self) -> bool455 pub fn has_tx_count(&self) -> bool {
456 self.tx_count.is_some()
457 }
458
459 // Param is passed by value, moved
set_tx_count(&mut self, v: i32)460 pub fn set_tx_count(&mut self, v: i32) {
461 self.tx_count = ::std::option::Option::Some(v);
462 }
463
464 // optional int32 rx_count = 5;
465
rx_count(&self) -> i32466 pub fn rx_count(&self) -> i32 {
467 self.rx_count.unwrap_or(0)
468 }
469
clear_rx_count(&mut self)470 pub fn clear_rx_count(&mut self) {
471 self.rx_count = ::std::option::Option::None;
472 }
473
has_rx_count(&self) -> bool474 pub fn has_rx_count(&self) -> bool {
475 self.rx_count.is_some()
476 }
477
478 // Param is passed by value, moved
set_rx_count(&mut self, v: i32)479 pub fn set_rx_count(&mut self, v: i32) {
480 self.rx_count = ::std::option::Option::Some(v);
481 }
482
483 // optional int32 tx_bytes = 6;
484
tx_bytes(&self) -> i32485 pub fn tx_bytes(&self) -> i32 {
486 self.tx_bytes.unwrap_or(0)
487 }
488
clear_tx_bytes(&mut self)489 pub fn clear_tx_bytes(&mut self) {
490 self.tx_bytes = ::std::option::Option::None;
491 }
492
has_tx_bytes(&self) -> bool493 pub fn has_tx_bytes(&self) -> bool {
494 self.tx_bytes.is_some()
495 }
496
497 // Param is passed by value, moved
set_tx_bytes(&mut self, v: i32)498 pub fn set_tx_bytes(&mut self, v: i32) {
499 self.tx_bytes = ::std::option::Option::Some(v);
500 }
501
502 // optional int32 rx_bytes = 7;
503
rx_bytes(&self) -> i32504 pub fn rx_bytes(&self) -> i32 {
505 self.rx_bytes.unwrap_or(0)
506 }
507
clear_rx_bytes(&mut self)508 pub fn clear_rx_bytes(&mut self) {
509 self.rx_bytes = ::std::option::Option::None;
510 }
511
has_rx_bytes(&self) -> bool512 pub fn has_rx_bytes(&self) -> bool {
513 self.rx_bytes.is_some()
514 }
515
516 // Param is passed by value, moved
set_rx_bytes(&mut self, v: i32)517 pub fn set_rx_bytes(&mut self, v: i32) {
518 self.rx_bytes = ::std::option::Option::Some(v);
519 }
520
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData521 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
522 let mut fields = ::std::vec::Vec::with_capacity(8);
523 let mut oneofs = ::std::vec::Vec::with_capacity(0);
524 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
525 "device_id",
526 |m: &NetsimRadioStats| { &m.device_id },
527 |m: &mut NetsimRadioStats| { &mut m.device_id },
528 ));
529 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
530 "kind",
531 |m: &NetsimRadioStats| { &m.kind },
532 |m: &mut NetsimRadioStats| { &mut m.kind },
533 ));
534 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
535 "duration_secs",
536 |m: &NetsimRadioStats| { &m.duration_secs },
537 |m: &mut NetsimRadioStats| { &mut m.duration_secs },
538 ));
539 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
540 "tx_count",
541 |m: &NetsimRadioStats| { &m.tx_count },
542 |m: &mut NetsimRadioStats| { &mut m.tx_count },
543 ));
544 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
545 "rx_count",
546 |m: &NetsimRadioStats| { &m.rx_count },
547 |m: &mut NetsimRadioStats| { &mut m.rx_count },
548 ));
549 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
550 "tx_bytes",
551 |m: &NetsimRadioStats| { &m.tx_bytes },
552 |m: &mut NetsimRadioStats| { &mut m.tx_bytes },
553 ));
554 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
555 "rx_bytes",
556 |m: &NetsimRadioStats| { &m.rx_bytes },
557 |m: &mut NetsimRadioStats| { &mut m.rx_bytes },
558 ));
559 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
560 "invalid_packets",
561 |m: &NetsimRadioStats| { &m.invalid_packets },
562 |m: &mut NetsimRadioStats| { &mut m.invalid_packets },
563 ));
564 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimRadioStats>(
565 "NetsimRadioStats",
566 fields,
567 oneofs,
568 )
569 }
570 }
571
572 impl ::protobuf::Message for NetsimRadioStats {
573 const NAME: &'static str = "NetsimRadioStats";
574
is_initialized(&self) -> bool575 fn is_initialized(&self) -> bool {
576 true
577 }
578
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>579 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
580 while let Some(tag) = is.read_raw_tag_or_eof()? {
581 match tag {
582 8 => {
583 self.device_id = ::std::option::Option::Some(is.read_uint32()?);
584 },
585 16 => {
586 self.kind = ::std::option::Option::Some(is.read_enum_or_unknown()?);
587 },
588 24 => {
589 self.duration_secs = ::std::option::Option::Some(is.read_uint64()?);
590 },
591 32 => {
592 self.tx_count = ::std::option::Option::Some(is.read_int32()?);
593 },
594 40 => {
595 self.rx_count = ::std::option::Option::Some(is.read_int32()?);
596 },
597 48 => {
598 self.tx_bytes = ::std::option::Option::Some(is.read_int32()?);
599 },
600 56 => {
601 self.rx_bytes = ::std::option::Option::Some(is.read_int32()?);
602 },
603 66 => {
604 self.invalid_packets.push(is.read_message()?);
605 },
606 tag => {
607 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
608 },
609 };
610 }
611 ::std::result::Result::Ok(())
612 }
613
614 // Compute sizes of nested messages
615 #[allow(unused_variables)]
compute_size(&self) -> u64616 fn compute_size(&self) -> u64 {
617 let mut my_size = 0;
618 if let Some(v) = self.device_id {
619 my_size += ::protobuf::rt::uint32_size(1, v);
620 }
621 if let Some(v) = self.kind {
622 my_size += ::protobuf::rt::int32_size(2, v.value());
623 }
624 if let Some(v) = self.duration_secs {
625 my_size += ::protobuf::rt::uint64_size(3, v);
626 }
627 if let Some(v) = self.tx_count {
628 my_size += ::protobuf::rt::int32_size(4, v);
629 }
630 if let Some(v) = self.rx_count {
631 my_size += ::protobuf::rt::int32_size(5, v);
632 }
633 if let Some(v) = self.tx_bytes {
634 my_size += ::protobuf::rt::int32_size(6, v);
635 }
636 if let Some(v) = self.rx_bytes {
637 my_size += ::protobuf::rt::int32_size(7, v);
638 }
639 for value in &self.invalid_packets {
640 let len = value.compute_size();
641 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
642 };
643 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
644 self.special_fields.cached_size().set(my_size as u32);
645 my_size
646 }
647
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>648 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
649 if let Some(v) = self.device_id {
650 os.write_uint32(1, v)?;
651 }
652 if let Some(v) = self.kind {
653 os.write_enum(2, ::protobuf::EnumOrUnknown::value(&v))?;
654 }
655 if let Some(v) = self.duration_secs {
656 os.write_uint64(3, v)?;
657 }
658 if let Some(v) = self.tx_count {
659 os.write_int32(4, v)?;
660 }
661 if let Some(v) = self.rx_count {
662 os.write_int32(5, v)?;
663 }
664 if let Some(v) = self.tx_bytes {
665 os.write_int32(6, v)?;
666 }
667 if let Some(v) = self.rx_bytes {
668 os.write_int32(7, v)?;
669 }
670 for v in &self.invalid_packets {
671 ::protobuf::rt::write_message_field_with_cached_size(8, v, os)?;
672 };
673 os.write_unknown_fields(self.special_fields.unknown_fields())?;
674 ::std::result::Result::Ok(())
675 }
676
special_fields(&self) -> &::protobuf::SpecialFields677 fn special_fields(&self) -> &::protobuf::SpecialFields {
678 &self.special_fields
679 }
680
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields681 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
682 &mut self.special_fields
683 }
684
new() -> NetsimRadioStats685 fn new() -> NetsimRadioStats {
686 NetsimRadioStats::new()
687 }
688
clear(&mut self)689 fn clear(&mut self) {
690 self.device_id = ::std::option::Option::None;
691 self.kind = ::std::option::Option::None;
692 self.duration_secs = ::std::option::Option::None;
693 self.tx_count = ::std::option::Option::None;
694 self.rx_count = ::std::option::Option::None;
695 self.tx_bytes = ::std::option::Option::None;
696 self.rx_bytes = ::std::option::Option::None;
697 self.invalid_packets.clear();
698 self.special_fields.clear();
699 }
700
default_instance() -> &'static NetsimRadioStats701 fn default_instance() -> &'static NetsimRadioStats {
702 static instance: NetsimRadioStats = NetsimRadioStats {
703 device_id: ::std::option::Option::None,
704 kind: ::std::option::Option::None,
705 duration_secs: ::std::option::Option::None,
706 tx_count: ::std::option::Option::None,
707 rx_count: ::std::option::Option::None,
708 tx_bytes: ::std::option::Option::None,
709 rx_bytes: ::std::option::Option::None,
710 invalid_packets: ::std::vec::Vec::new(),
711 special_fields: ::protobuf::SpecialFields::new(),
712 };
713 &instance
714 }
715 }
716
717 impl ::protobuf::MessageFull for NetsimRadioStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor718 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
719 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
720 descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimRadioStats").unwrap()).clone()
721 }
722 }
723
724 impl ::std::fmt::Display for NetsimRadioStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result725 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
726 ::protobuf::text_format::fmt(self, f)
727 }
728 }
729
730 impl ::protobuf::reflect::ProtobufValue for NetsimRadioStats {
731 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
732 }
733
734 /// Nested message and enums of message `NetsimRadioStats`
735 pub mod netsim_radio_stats {
736 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
737 // @@protoc_insertion_point(enum:netsim.stats.NetsimRadioStats.Kind)
738 pub enum Kind {
739 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.UNSPECIFIED)
740 UNSPECIFIED = 0,
741 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLUETOOTH_LOW_ENERGY)
742 BLUETOOTH_LOW_ENERGY = 1,
743 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLUETOOTH_CLASSIC)
744 BLUETOOTH_CLASSIC = 2,
745 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.BLE_BEACON)
746 BLE_BEACON = 3,
747 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.WIFI)
748 WIFI = 4,
749 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.UWB)
750 UWB = 5,
751 // @@protoc_insertion_point(enum_value:netsim.stats.NetsimRadioStats.Kind.NFC)
752 NFC = 6,
753 }
754
755 impl ::protobuf::Enum for Kind {
756 const NAME: &'static str = "Kind";
757
value(&self) -> i32758 fn value(&self) -> i32 {
759 *self as i32
760 }
761
from_i32(value: i32) -> ::std::option::Option<Kind>762 fn from_i32(value: i32) -> ::std::option::Option<Kind> {
763 match value {
764 0 => ::std::option::Option::Some(Kind::UNSPECIFIED),
765 1 => ::std::option::Option::Some(Kind::BLUETOOTH_LOW_ENERGY),
766 2 => ::std::option::Option::Some(Kind::BLUETOOTH_CLASSIC),
767 3 => ::std::option::Option::Some(Kind::BLE_BEACON),
768 4 => ::std::option::Option::Some(Kind::WIFI),
769 5 => ::std::option::Option::Some(Kind::UWB),
770 6 => ::std::option::Option::Some(Kind::NFC),
771 _ => ::std::option::Option::None
772 }
773 }
774
775 const VALUES: &'static [Kind] = &[
776 Kind::UNSPECIFIED,
777 Kind::BLUETOOTH_LOW_ENERGY,
778 Kind::BLUETOOTH_CLASSIC,
779 Kind::BLE_BEACON,
780 Kind::WIFI,
781 Kind::UWB,
782 Kind::NFC,
783 ];
784 }
785
786 impl ::protobuf::EnumFull for Kind {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor787 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
788 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
789 descriptor.get(|| super::file_descriptor().enum_by_package_relative_name("NetsimRadioStats.Kind").unwrap()).clone()
790 }
791
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor792 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
793 let index = *self as usize;
794 Self::enum_descriptor().value_by_index(index)
795 }
796 }
797
798 impl ::std::default::Default for Kind {
default() -> Self799 fn default() -> Self {
800 Kind::UNSPECIFIED
801 }
802 }
803
804 impl Kind {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData805 pub(in super) fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
806 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<Kind>("NetsimRadioStats.Kind")
807 }
808 }
809 }
810
811 #[derive(PartialEq,Clone,Default,Debug)]
812 // @@protoc_insertion_point(message:netsim.stats.NetsimFrontendStats)
813 pub struct NetsimFrontendStats {
814 // message fields
815 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.get_version)
816 pub get_version: ::std::option::Option<u32>,
817 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.create_device)
818 pub create_device: ::std::option::Option<u32>,
819 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.delete_chip)
820 pub delete_chip: ::std::option::Option<u32>,
821 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.patch_device)
822 pub patch_device: ::std::option::Option<u32>,
823 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.reset)
824 pub reset: ::std::option::Option<u32>,
825 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.list_device)
826 pub list_device: ::std::option::Option<u32>,
827 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.subscribe_device)
828 pub subscribe_device: ::std::option::Option<u32>,
829 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.patch_capture)
830 pub patch_capture: ::std::option::Option<u32>,
831 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.list_capture)
832 pub list_capture: ::std::option::Option<u32>,
833 // @@protoc_insertion_point(field:netsim.stats.NetsimFrontendStats.get_capture)
834 pub get_capture: ::std::option::Option<u32>,
835 // special fields
836 // @@protoc_insertion_point(special_field:netsim.stats.NetsimFrontendStats.special_fields)
837 pub special_fields: ::protobuf::SpecialFields,
838 }
839
840 impl<'a> ::std::default::Default for &'a NetsimFrontendStats {
default() -> &'a NetsimFrontendStats841 fn default() -> &'a NetsimFrontendStats {
842 <NetsimFrontendStats as ::protobuf::Message>::default_instance()
843 }
844 }
845
846 impl NetsimFrontendStats {
new() -> NetsimFrontendStats847 pub fn new() -> NetsimFrontendStats {
848 ::std::default::Default::default()
849 }
850
851 // optional uint32 get_version = 1;
852
get_version(&self) -> u32853 pub fn get_version(&self) -> u32 {
854 self.get_version.unwrap_or(0)
855 }
856
clear_get_version(&mut self)857 pub fn clear_get_version(&mut self) {
858 self.get_version = ::std::option::Option::None;
859 }
860
has_get_version(&self) -> bool861 pub fn has_get_version(&self) -> bool {
862 self.get_version.is_some()
863 }
864
865 // Param is passed by value, moved
set_get_version(&mut self, v: u32)866 pub fn set_get_version(&mut self, v: u32) {
867 self.get_version = ::std::option::Option::Some(v);
868 }
869
870 // optional uint32 create_device = 2;
871
create_device(&self) -> u32872 pub fn create_device(&self) -> u32 {
873 self.create_device.unwrap_or(0)
874 }
875
clear_create_device(&mut self)876 pub fn clear_create_device(&mut self) {
877 self.create_device = ::std::option::Option::None;
878 }
879
has_create_device(&self) -> bool880 pub fn has_create_device(&self) -> bool {
881 self.create_device.is_some()
882 }
883
884 // Param is passed by value, moved
set_create_device(&mut self, v: u32)885 pub fn set_create_device(&mut self, v: u32) {
886 self.create_device = ::std::option::Option::Some(v);
887 }
888
889 // optional uint32 delete_chip = 3;
890
delete_chip(&self) -> u32891 pub fn delete_chip(&self) -> u32 {
892 self.delete_chip.unwrap_or(0)
893 }
894
clear_delete_chip(&mut self)895 pub fn clear_delete_chip(&mut self) {
896 self.delete_chip = ::std::option::Option::None;
897 }
898
has_delete_chip(&self) -> bool899 pub fn has_delete_chip(&self) -> bool {
900 self.delete_chip.is_some()
901 }
902
903 // Param is passed by value, moved
set_delete_chip(&mut self, v: u32)904 pub fn set_delete_chip(&mut self, v: u32) {
905 self.delete_chip = ::std::option::Option::Some(v);
906 }
907
908 // optional uint32 patch_device = 4;
909
patch_device(&self) -> u32910 pub fn patch_device(&self) -> u32 {
911 self.patch_device.unwrap_or(0)
912 }
913
clear_patch_device(&mut self)914 pub fn clear_patch_device(&mut self) {
915 self.patch_device = ::std::option::Option::None;
916 }
917
has_patch_device(&self) -> bool918 pub fn has_patch_device(&self) -> bool {
919 self.patch_device.is_some()
920 }
921
922 // Param is passed by value, moved
set_patch_device(&mut self, v: u32)923 pub fn set_patch_device(&mut self, v: u32) {
924 self.patch_device = ::std::option::Option::Some(v);
925 }
926
927 // optional uint32 reset = 5;
928
reset(&self) -> u32929 pub fn reset(&self) -> u32 {
930 self.reset.unwrap_or(0)
931 }
932
clear_reset(&mut self)933 pub fn clear_reset(&mut self) {
934 self.reset = ::std::option::Option::None;
935 }
936
has_reset(&self) -> bool937 pub fn has_reset(&self) -> bool {
938 self.reset.is_some()
939 }
940
941 // Param is passed by value, moved
set_reset(&mut self, v: u32)942 pub fn set_reset(&mut self, v: u32) {
943 self.reset = ::std::option::Option::Some(v);
944 }
945
946 // optional uint32 list_device = 6;
947
list_device(&self) -> u32948 pub fn list_device(&self) -> u32 {
949 self.list_device.unwrap_or(0)
950 }
951
clear_list_device(&mut self)952 pub fn clear_list_device(&mut self) {
953 self.list_device = ::std::option::Option::None;
954 }
955
has_list_device(&self) -> bool956 pub fn has_list_device(&self) -> bool {
957 self.list_device.is_some()
958 }
959
960 // Param is passed by value, moved
set_list_device(&mut self, v: u32)961 pub fn set_list_device(&mut self, v: u32) {
962 self.list_device = ::std::option::Option::Some(v);
963 }
964
965 // optional uint32 subscribe_device = 7;
966
subscribe_device(&self) -> u32967 pub fn subscribe_device(&self) -> u32 {
968 self.subscribe_device.unwrap_or(0)
969 }
970
clear_subscribe_device(&mut self)971 pub fn clear_subscribe_device(&mut self) {
972 self.subscribe_device = ::std::option::Option::None;
973 }
974
has_subscribe_device(&self) -> bool975 pub fn has_subscribe_device(&self) -> bool {
976 self.subscribe_device.is_some()
977 }
978
979 // Param is passed by value, moved
set_subscribe_device(&mut self, v: u32)980 pub fn set_subscribe_device(&mut self, v: u32) {
981 self.subscribe_device = ::std::option::Option::Some(v);
982 }
983
984 // optional uint32 patch_capture = 8;
985
patch_capture(&self) -> u32986 pub fn patch_capture(&self) -> u32 {
987 self.patch_capture.unwrap_or(0)
988 }
989
clear_patch_capture(&mut self)990 pub fn clear_patch_capture(&mut self) {
991 self.patch_capture = ::std::option::Option::None;
992 }
993
has_patch_capture(&self) -> bool994 pub fn has_patch_capture(&self) -> bool {
995 self.patch_capture.is_some()
996 }
997
998 // Param is passed by value, moved
set_patch_capture(&mut self, v: u32)999 pub fn set_patch_capture(&mut self, v: u32) {
1000 self.patch_capture = ::std::option::Option::Some(v);
1001 }
1002
1003 // optional uint32 list_capture = 9;
1004
list_capture(&self) -> u321005 pub fn list_capture(&self) -> u32 {
1006 self.list_capture.unwrap_or(0)
1007 }
1008
clear_list_capture(&mut self)1009 pub fn clear_list_capture(&mut self) {
1010 self.list_capture = ::std::option::Option::None;
1011 }
1012
has_list_capture(&self) -> bool1013 pub fn has_list_capture(&self) -> bool {
1014 self.list_capture.is_some()
1015 }
1016
1017 // Param is passed by value, moved
set_list_capture(&mut self, v: u32)1018 pub fn set_list_capture(&mut self, v: u32) {
1019 self.list_capture = ::std::option::Option::Some(v);
1020 }
1021
1022 // optional uint32 get_capture = 10;
1023
get_capture(&self) -> u321024 pub fn get_capture(&self) -> u32 {
1025 self.get_capture.unwrap_or(0)
1026 }
1027
clear_get_capture(&mut self)1028 pub fn clear_get_capture(&mut self) {
1029 self.get_capture = ::std::option::Option::None;
1030 }
1031
has_get_capture(&self) -> bool1032 pub fn has_get_capture(&self) -> bool {
1033 self.get_capture.is_some()
1034 }
1035
1036 // Param is passed by value, moved
set_get_capture(&mut self, v: u32)1037 pub fn set_get_capture(&mut self, v: u32) {
1038 self.get_capture = ::std::option::Option::Some(v);
1039 }
1040
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1041 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1042 let mut fields = ::std::vec::Vec::with_capacity(10);
1043 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1044 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1045 "get_version",
1046 |m: &NetsimFrontendStats| { &m.get_version },
1047 |m: &mut NetsimFrontendStats| { &mut m.get_version },
1048 ));
1049 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1050 "create_device",
1051 |m: &NetsimFrontendStats| { &m.create_device },
1052 |m: &mut NetsimFrontendStats| { &mut m.create_device },
1053 ));
1054 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1055 "delete_chip",
1056 |m: &NetsimFrontendStats| { &m.delete_chip },
1057 |m: &mut NetsimFrontendStats| { &mut m.delete_chip },
1058 ));
1059 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1060 "patch_device",
1061 |m: &NetsimFrontendStats| { &m.patch_device },
1062 |m: &mut NetsimFrontendStats| { &mut m.patch_device },
1063 ));
1064 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1065 "reset",
1066 |m: &NetsimFrontendStats| { &m.reset },
1067 |m: &mut NetsimFrontendStats| { &mut m.reset },
1068 ));
1069 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1070 "list_device",
1071 |m: &NetsimFrontendStats| { &m.list_device },
1072 |m: &mut NetsimFrontendStats| { &mut m.list_device },
1073 ));
1074 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1075 "subscribe_device",
1076 |m: &NetsimFrontendStats| { &m.subscribe_device },
1077 |m: &mut NetsimFrontendStats| { &mut m.subscribe_device },
1078 ));
1079 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1080 "patch_capture",
1081 |m: &NetsimFrontendStats| { &m.patch_capture },
1082 |m: &mut NetsimFrontendStats| { &mut m.patch_capture },
1083 ));
1084 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1085 "list_capture",
1086 |m: &NetsimFrontendStats| { &m.list_capture },
1087 |m: &mut NetsimFrontendStats| { &mut m.list_capture },
1088 ));
1089 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1090 "get_capture",
1091 |m: &NetsimFrontendStats| { &m.get_capture },
1092 |m: &mut NetsimFrontendStats| { &mut m.get_capture },
1093 ));
1094 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimFrontendStats>(
1095 "NetsimFrontendStats",
1096 fields,
1097 oneofs,
1098 )
1099 }
1100 }
1101
1102 impl ::protobuf::Message for NetsimFrontendStats {
1103 const NAME: &'static str = "NetsimFrontendStats";
1104
is_initialized(&self) -> bool1105 fn is_initialized(&self) -> bool {
1106 true
1107 }
1108
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1109 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1110 while let Some(tag) = is.read_raw_tag_or_eof()? {
1111 match tag {
1112 8 => {
1113 self.get_version = ::std::option::Option::Some(is.read_uint32()?);
1114 },
1115 16 => {
1116 self.create_device = ::std::option::Option::Some(is.read_uint32()?);
1117 },
1118 24 => {
1119 self.delete_chip = ::std::option::Option::Some(is.read_uint32()?);
1120 },
1121 32 => {
1122 self.patch_device = ::std::option::Option::Some(is.read_uint32()?);
1123 },
1124 40 => {
1125 self.reset = ::std::option::Option::Some(is.read_uint32()?);
1126 },
1127 48 => {
1128 self.list_device = ::std::option::Option::Some(is.read_uint32()?);
1129 },
1130 56 => {
1131 self.subscribe_device = ::std::option::Option::Some(is.read_uint32()?);
1132 },
1133 64 => {
1134 self.patch_capture = ::std::option::Option::Some(is.read_uint32()?);
1135 },
1136 72 => {
1137 self.list_capture = ::std::option::Option::Some(is.read_uint32()?);
1138 },
1139 80 => {
1140 self.get_capture = ::std::option::Option::Some(is.read_uint32()?);
1141 },
1142 tag => {
1143 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1144 },
1145 };
1146 }
1147 ::std::result::Result::Ok(())
1148 }
1149
1150 // Compute sizes of nested messages
1151 #[allow(unused_variables)]
compute_size(&self) -> u641152 fn compute_size(&self) -> u64 {
1153 let mut my_size = 0;
1154 if let Some(v) = self.get_version {
1155 my_size += ::protobuf::rt::uint32_size(1, v);
1156 }
1157 if let Some(v) = self.create_device {
1158 my_size += ::protobuf::rt::uint32_size(2, v);
1159 }
1160 if let Some(v) = self.delete_chip {
1161 my_size += ::protobuf::rt::uint32_size(3, v);
1162 }
1163 if let Some(v) = self.patch_device {
1164 my_size += ::protobuf::rt::uint32_size(4, v);
1165 }
1166 if let Some(v) = self.reset {
1167 my_size += ::protobuf::rt::uint32_size(5, v);
1168 }
1169 if let Some(v) = self.list_device {
1170 my_size += ::protobuf::rt::uint32_size(6, v);
1171 }
1172 if let Some(v) = self.subscribe_device {
1173 my_size += ::protobuf::rt::uint32_size(7, v);
1174 }
1175 if let Some(v) = self.patch_capture {
1176 my_size += ::protobuf::rt::uint32_size(8, v);
1177 }
1178 if let Some(v) = self.list_capture {
1179 my_size += ::protobuf::rt::uint32_size(9, v);
1180 }
1181 if let Some(v) = self.get_capture {
1182 my_size += ::protobuf::rt::uint32_size(10, v);
1183 }
1184 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1185 self.special_fields.cached_size().set(my_size as u32);
1186 my_size
1187 }
1188
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1189 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1190 if let Some(v) = self.get_version {
1191 os.write_uint32(1, v)?;
1192 }
1193 if let Some(v) = self.create_device {
1194 os.write_uint32(2, v)?;
1195 }
1196 if let Some(v) = self.delete_chip {
1197 os.write_uint32(3, v)?;
1198 }
1199 if let Some(v) = self.patch_device {
1200 os.write_uint32(4, v)?;
1201 }
1202 if let Some(v) = self.reset {
1203 os.write_uint32(5, v)?;
1204 }
1205 if let Some(v) = self.list_device {
1206 os.write_uint32(6, v)?;
1207 }
1208 if let Some(v) = self.subscribe_device {
1209 os.write_uint32(7, v)?;
1210 }
1211 if let Some(v) = self.patch_capture {
1212 os.write_uint32(8, v)?;
1213 }
1214 if let Some(v) = self.list_capture {
1215 os.write_uint32(9, v)?;
1216 }
1217 if let Some(v) = self.get_capture {
1218 os.write_uint32(10, v)?;
1219 }
1220 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1221 ::std::result::Result::Ok(())
1222 }
1223
special_fields(&self) -> &::protobuf::SpecialFields1224 fn special_fields(&self) -> &::protobuf::SpecialFields {
1225 &self.special_fields
1226 }
1227
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1228 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1229 &mut self.special_fields
1230 }
1231
new() -> NetsimFrontendStats1232 fn new() -> NetsimFrontendStats {
1233 NetsimFrontendStats::new()
1234 }
1235
clear(&mut self)1236 fn clear(&mut self) {
1237 self.get_version = ::std::option::Option::None;
1238 self.create_device = ::std::option::Option::None;
1239 self.delete_chip = ::std::option::Option::None;
1240 self.patch_device = ::std::option::Option::None;
1241 self.reset = ::std::option::Option::None;
1242 self.list_device = ::std::option::Option::None;
1243 self.subscribe_device = ::std::option::Option::None;
1244 self.patch_capture = ::std::option::Option::None;
1245 self.list_capture = ::std::option::Option::None;
1246 self.get_capture = ::std::option::Option::None;
1247 self.special_fields.clear();
1248 }
1249
default_instance() -> &'static NetsimFrontendStats1250 fn default_instance() -> &'static NetsimFrontendStats {
1251 static instance: NetsimFrontendStats = NetsimFrontendStats {
1252 get_version: ::std::option::Option::None,
1253 create_device: ::std::option::Option::None,
1254 delete_chip: ::std::option::Option::None,
1255 patch_device: ::std::option::Option::None,
1256 reset: ::std::option::Option::None,
1257 list_device: ::std::option::Option::None,
1258 subscribe_device: ::std::option::Option::None,
1259 patch_capture: ::std::option::Option::None,
1260 list_capture: ::std::option::Option::None,
1261 get_capture: ::std::option::Option::None,
1262 special_fields: ::protobuf::SpecialFields::new(),
1263 };
1264 &instance
1265 }
1266 }
1267
1268 impl ::protobuf::MessageFull for NetsimFrontendStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor1269 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1270 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1271 descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimFrontendStats").unwrap()).clone()
1272 }
1273 }
1274
1275 impl ::std::fmt::Display for NetsimFrontendStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1276 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1277 ::protobuf::text_format::fmt(self, f)
1278 }
1279 }
1280
1281 impl ::protobuf::reflect::ProtobufValue for NetsimFrontendStats {
1282 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1283 }
1284
1285 #[derive(PartialEq,Clone,Default,Debug)]
1286 // @@protoc_insertion_point(message:netsim.stats.NetsimStats)
1287 pub struct NetsimStats {
1288 // message fields
1289 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.duration_secs)
1290 pub duration_secs: ::std::option::Option<u64>,
1291 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.device_count)
1292 pub device_count: ::std::option::Option<i32>,
1293 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.peak_concurrent_devices)
1294 pub peak_concurrent_devices: ::std::option::Option<i32>,
1295 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.radio_stats)
1296 pub radio_stats: ::std::vec::Vec<NetsimRadioStats>,
1297 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.version)
1298 pub version: ::std::option::Option<::std::string::String>,
1299 // @@protoc_insertion_point(field:netsim.stats.NetsimStats.frontend_stats)
1300 pub frontend_stats: ::protobuf::MessageField<NetsimFrontendStats>,
1301 // special fields
1302 // @@protoc_insertion_point(special_field:netsim.stats.NetsimStats.special_fields)
1303 pub special_fields: ::protobuf::SpecialFields,
1304 }
1305
1306 impl<'a> ::std::default::Default for &'a NetsimStats {
default() -> &'a NetsimStats1307 fn default() -> &'a NetsimStats {
1308 <NetsimStats as ::protobuf::Message>::default_instance()
1309 }
1310 }
1311
1312 impl NetsimStats {
new() -> NetsimStats1313 pub fn new() -> NetsimStats {
1314 ::std::default::Default::default()
1315 }
1316
1317 // optional uint64 duration_secs = 1;
1318
duration_secs(&self) -> u641319 pub fn duration_secs(&self) -> u64 {
1320 self.duration_secs.unwrap_or(0)
1321 }
1322
clear_duration_secs(&mut self)1323 pub fn clear_duration_secs(&mut self) {
1324 self.duration_secs = ::std::option::Option::None;
1325 }
1326
has_duration_secs(&self) -> bool1327 pub fn has_duration_secs(&self) -> bool {
1328 self.duration_secs.is_some()
1329 }
1330
1331 // Param is passed by value, moved
set_duration_secs(&mut self, v: u64)1332 pub fn set_duration_secs(&mut self, v: u64) {
1333 self.duration_secs = ::std::option::Option::Some(v);
1334 }
1335
1336 // optional int32 device_count = 2;
1337
device_count(&self) -> i321338 pub fn device_count(&self) -> i32 {
1339 self.device_count.unwrap_or(0)
1340 }
1341
clear_device_count(&mut self)1342 pub fn clear_device_count(&mut self) {
1343 self.device_count = ::std::option::Option::None;
1344 }
1345
has_device_count(&self) -> bool1346 pub fn has_device_count(&self) -> bool {
1347 self.device_count.is_some()
1348 }
1349
1350 // Param is passed by value, moved
set_device_count(&mut self, v: i32)1351 pub fn set_device_count(&mut self, v: i32) {
1352 self.device_count = ::std::option::Option::Some(v);
1353 }
1354
1355 // optional int32 peak_concurrent_devices = 3;
1356
peak_concurrent_devices(&self) -> i321357 pub fn peak_concurrent_devices(&self) -> i32 {
1358 self.peak_concurrent_devices.unwrap_or(0)
1359 }
1360
clear_peak_concurrent_devices(&mut self)1361 pub fn clear_peak_concurrent_devices(&mut self) {
1362 self.peak_concurrent_devices = ::std::option::Option::None;
1363 }
1364
has_peak_concurrent_devices(&self) -> bool1365 pub fn has_peak_concurrent_devices(&self) -> bool {
1366 self.peak_concurrent_devices.is_some()
1367 }
1368
1369 // Param is passed by value, moved
set_peak_concurrent_devices(&mut self, v: i32)1370 pub fn set_peak_concurrent_devices(&mut self, v: i32) {
1371 self.peak_concurrent_devices = ::std::option::Option::Some(v);
1372 }
1373
1374 // optional string version = 5;
1375
version(&self) -> &str1376 pub fn version(&self) -> &str {
1377 match self.version.as_ref() {
1378 Some(v) => v,
1379 None => "",
1380 }
1381 }
1382
clear_version(&mut self)1383 pub fn clear_version(&mut self) {
1384 self.version = ::std::option::Option::None;
1385 }
1386
has_version(&self) -> bool1387 pub fn has_version(&self) -> bool {
1388 self.version.is_some()
1389 }
1390
1391 // Param is passed by value, moved
set_version(&mut self, v: ::std::string::String)1392 pub fn set_version(&mut self, v: ::std::string::String) {
1393 self.version = ::std::option::Option::Some(v);
1394 }
1395
1396 // Mutable pointer to the field.
1397 // If field is not initialized, it is initialized with default value first.
mut_version(&mut self) -> &mut ::std::string::String1398 pub fn mut_version(&mut self) -> &mut ::std::string::String {
1399 if self.version.is_none() {
1400 self.version = ::std::option::Option::Some(::std::string::String::new());
1401 }
1402 self.version.as_mut().unwrap()
1403 }
1404
1405 // Take field
take_version(&mut self) -> ::std::string::String1406 pub fn take_version(&mut self) -> ::std::string::String {
1407 self.version.take().unwrap_or_else(|| ::std::string::String::new())
1408 }
1409
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1410 fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1411 let mut fields = ::std::vec::Vec::with_capacity(6);
1412 let mut oneofs = ::std::vec::Vec::with_capacity(0);
1413 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1414 "duration_secs",
1415 |m: &NetsimStats| { &m.duration_secs },
1416 |m: &mut NetsimStats| { &mut m.duration_secs },
1417 ));
1418 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1419 "device_count",
1420 |m: &NetsimStats| { &m.device_count },
1421 |m: &mut NetsimStats| { &mut m.device_count },
1422 ));
1423 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1424 "peak_concurrent_devices",
1425 |m: &NetsimStats| { &m.peak_concurrent_devices },
1426 |m: &mut NetsimStats| { &mut m.peak_concurrent_devices },
1427 ));
1428 fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1429 "radio_stats",
1430 |m: &NetsimStats| { &m.radio_stats },
1431 |m: &mut NetsimStats| { &mut m.radio_stats },
1432 ));
1433 fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1434 "version",
1435 |m: &NetsimStats| { &m.version },
1436 |m: &mut NetsimStats| { &mut m.version },
1437 ));
1438 fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, NetsimFrontendStats>(
1439 "frontend_stats",
1440 |m: &NetsimStats| { &m.frontend_stats },
1441 |m: &mut NetsimStats| { &mut m.frontend_stats },
1442 ));
1443 ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NetsimStats>(
1444 "NetsimStats",
1445 fields,
1446 oneofs,
1447 )
1448 }
1449 }
1450
1451 impl ::protobuf::Message for NetsimStats {
1452 const NAME: &'static str = "NetsimStats";
1453
is_initialized(&self) -> bool1454 fn is_initialized(&self) -> bool {
1455 true
1456 }
1457
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1458 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1459 while let Some(tag) = is.read_raw_tag_or_eof()? {
1460 match tag {
1461 8 => {
1462 self.duration_secs = ::std::option::Option::Some(is.read_uint64()?);
1463 },
1464 16 => {
1465 self.device_count = ::std::option::Option::Some(is.read_int32()?);
1466 },
1467 24 => {
1468 self.peak_concurrent_devices = ::std::option::Option::Some(is.read_int32()?);
1469 },
1470 34 => {
1471 self.radio_stats.push(is.read_message()?);
1472 },
1473 42 => {
1474 self.version = ::std::option::Option::Some(is.read_string()?);
1475 },
1476 50 => {
1477 ::protobuf::rt::read_singular_message_into_field(is, &mut self.frontend_stats)?;
1478 },
1479 tag => {
1480 ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1481 },
1482 };
1483 }
1484 ::std::result::Result::Ok(())
1485 }
1486
1487 // Compute sizes of nested messages
1488 #[allow(unused_variables)]
compute_size(&self) -> u641489 fn compute_size(&self) -> u64 {
1490 let mut my_size = 0;
1491 if let Some(v) = self.duration_secs {
1492 my_size += ::protobuf::rt::uint64_size(1, v);
1493 }
1494 if let Some(v) = self.device_count {
1495 my_size += ::protobuf::rt::int32_size(2, v);
1496 }
1497 if let Some(v) = self.peak_concurrent_devices {
1498 my_size += ::protobuf::rt::int32_size(3, v);
1499 }
1500 for value in &self.radio_stats {
1501 let len = value.compute_size();
1502 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1503 };
1504 if let Some(v) = self.version.as_ref() {
1505 my_size += ::protobuf::rt::string_size(5, &v);
1506 }
1507 if let Some(v) = self.frontend_stats.as_ref() {
1508 let len = v.compute_size();
1509 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1510 }
1511 my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1512 self.special_fields.cached_size().set(my_size as u32);
1513 my_size
1514 }
1515
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1516 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1517 if let Some(v) = self.duration_secs {
1518 os.write_uint64(1, v)?;
1519 }
1520 if let Some(v) = self.device_count {
1521 os.write_int32(2, v)?;
1522 }
1523 if let Some(v) = self.peak_concurrent_devices {
1524 os.write_int32(3, v)?;
1525 }
1526 for v in &self.radio_stats {
1527 ::protobuf::rt::write_message_field_with_cached_size(4, v, os)?;
1528 };
1529 if let Some(v) = self.version.as_ref() {
1530 os.write_string(5, v)?;
1531 }
1532 if let Some(v) = self.frontend_stats.as_ref() {
1533 ::protobuf::rt::write_message_field_with_cached_size(6, v, os)?;
1534 }
1535 os.write_unknown_fields(self.special_fields.unknown_fields())?;
1536 ::std::result::Result::Ok(())
1537 }
1538
special_fields(&self) -> &::protobuf::SpecialFields1539 fn special_fields(&self) -> &::protobuf::SpecialFields {
1540 &self.special_fields
1541 }
1542
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1543 fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1544 &mut self.special_fields
1545 }
1546
new() -> NetsimStats1547 fn new() -> NetsimStats {
1548 NetsimStats::new()
1549 }
1550
clear(&mut self)1551 fn clear(&mut self) {
1552 self.duration_secs = ::std::option::Option::None;
1553 self.device_count = ::std::option::Option::None;
1554 self.peak_concurrent_devices = ::std::option::Option::None;
1555 self.radio_stats.clear();
1556 self.version = ::std::option::Option::None;
1557 self.frontend_stats.clear();
1558 self.special_fields.clear();
1559 }
1560
default_instance() -> &'static NetsimStats1561 fn default_instance() -> &'static NetsimStats {
1562 static instance: NetsimStats = NetsimStats {
1563 duration_secs: ::std::option::Option::None,
1564 device_count: ::std::option::Option::None,
1565 peak_concurrent_devices: ::std::option::Option::None,
1566 radio_stats: ::std::vec::Vec::new(),
1567 version: ::std::option::Option::None,
1568 frontend_stats: ::protobuf::MessageField::none(),
1569 special_fields: ::protobuf::SpecialFields::new(),
1570 };
1571 &instance
1572 }
1573 }
1574
1575 impl ::protobuf::MessageFull for NetsimStats {
descriptor() -> ::protobuf::reflect::MessageDescriptor1576 fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1577 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1578 descriptor.get(|| file_descriptor().message_by_package_relative_name("NetsimStats").unwrap()).clone()
1579 }
1580 }
1581
1582 impl ::std::fmt::Display for NetsimStats {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1583 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1584 ::protobuf::text_format::fmt(self, f)
1585 }
1586 }
1587
1588 impl ::protobuf::reflect::ProtobufValue for NetsimStats {
1589 type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1590 }
1591
1592 static file_descriptor_proto_data: &'static [u8] = b"\
1593 \n\x12netsim/stats.proto\x12\x0cnetsim.stats\"\xd7\x01\n\rInvalidPacket\
1594 \x12:\n\x06reason\x18\x01\x20\x01(\x0e2\".netsim.stats.InvalidPacket.Rea\
1595 sonR\x06reason\x12\x20\n\x0bdescription\x18\x02\x20\x01(\tR\x0bdescripti\
1596 on\x12\x16\n\x06packet\x18\x03\x20\x01(\x0cR\x06packet\"P\n\x06Reason\
1597 \x12\x0b\n\x07UNKNOWN\x10\0\x12\x0f\n\x0bPARSE_ERROR\x10\x01\x12\x0f\n\
1598 \x0bUNSUPPORTED\x10\x02\x12\n\n\x06OTHERS\x10\x03\x12\x0b\n\x07DELAYED\
1599 \x10\x04\"\xb5\x03\n\x10NetsimRadioStats\x12\x1b\n\tdevice_id\x18\x01\
1600 \x20\x01(\rR\x08deviceId\x127\n\x04kind\x18\x02\x20\x01(\x0e2#.netsim.st\
1601 ats.NetsimRadioStats.KindR\x04kind\x12#\n\rduration_secs\x18\x03\x20\x01\
1602 (\x04R\x0cdurationSecs\x12\x19\n\x08tx_count\x18\x04\x20\x01(\x05R\x07tx\
1603 Count\x12\x19\n\x08rx_count\x18\x05\x20\x01(\x05R\x07rxCount\x12\x19\n\
1604 \x08tx_bytes\x18\x06\x20\x01(\x05R\x07txBytes\x12\x19\n\x08rx_bytes\x18\
1605 \x07\x20\x01(\x05R\x07rxBytes\x12D\n\x0finvalid_packets\x18\x08\x20\x03(\
1606 \x0b2\x1b.netsim.stats.InvalidPacketR\x0einvalidPackets\"t\n\x04Kind\x12\
1607 \x0f\n\x0bUNSPECIFIED\x10\0\x12\x18\n\x14BLUETOOTH_LOW_ENERGY\x10\x01\
1608 \x12\x15\n\x11BLUETOOTH_CLASSIC\x10\x02\x12\x0e\n\nBLE_BEACON\x10\x03\
1609 \x12\x08\n\x04WIFI\x10\x04\x12\x07\n\x03UWB\x10\x05\x12\x07\n\x03NFC\x10\
1610 \x06\"\xea\x02\n\x13NetsimFrontendStats\x12\x1f\n\x0bget_version\x18\x01\
1611 \x20\x01(\rR\ngetVersion\x12#\n\rcreate_device\x18\x02\x20\x01(\rR\x0ccr\
1612 eateDevice\x12\x1f\n\x0bdelete_chip\x18\x03\x20\x01(\rR\ndeleteChip\x12!\
1613 \n\x0cpatch_device\x18\x04\x20\x01(\rR\x0bpatchDevice\x12\x14\n\x05reset\
1614 \x18\x05\x20\x01(\rR\x05reset\x12\x1f\n\x0blist_device\x18\x06\x20\x01(\
1615 \rR\nlistDevice\x12)\n\x10subscribe_device\x18\x07\x20\x01(\rR\x0fsubscr\
1616 ibeDevice\x12#\n\rpatch_capture\x18\x08\x20\x01(\rR\x0cpatchCapture\x12!\
1617 \n\x0clist_capture\x18\t\x20\x01(\rR\x0blistCapture\x12\x1f\n\x0bget_cap\
1618 ture\x18\n\x20\x01(\rR\ngetCapture\"\xb2\x02\n\x0bNetsimStats\x12#\n\rdu\
1619 ration_secs\x18\x01\x20\x01(\x04R\x0cdurationSecs\x12!\n\x0cdevice_count\
1620 \x18\x02\x20\x01(\x05R\x0bdeviceCount\x126\n\x17peak_concurrent_devices\
1621 \x18\x03\x20\x01(\x05R\x15peakConcurrentDevices\x12?\n\x0bradio_stats\
1622 \x18\x04\x20\x03(\x0b2\x1e.netsim.stats.NetsimRadioStatsR\nradioStats\
1623 \x12\x18\n\x07version\x18\x05\x20\x01(\tR\x07version\x12H\n\x0efrontend_\
1624 stats\x18\x06\x20\x01(\x0b2!.netsim.stats.NetsimFrontendStatsR\rfrontend\
1625 Stats\
1626 ";
1627
1628 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto1629 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1630 static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
1631 file_descriptor_proto_lazy.get(|| {
1632 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1633 })
1634 }
1635
1636 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor1637 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
1638 static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
1639 static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
1640 file_descriptor.get(|| {
1641 let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
1642 let mut deps = ::std::vec::Vec::with_capacity(0);
1643 let mut messages = ::std::vec::Vec::with_capacity(4);
1644 messages.push(InvalidPacket::generated_message_descriptor_data());
1645 messages.push(NetsimRadioStats::generated_message_descriptor_data());
1646 messages.push(NetsimFrontendStats::generated_message_descriptor_data());
1647 messages.push(NetsimStats::generated_message_descriptor_data());
1648 let mut enums = ::std::vec::Vec::with_capacity(2);
1649 enums.push(invalid_packet::Reason::generated_enum_descriptor_data());
1650 enums.push(netsim_radio_stats::Kind::generated_enum_descriptor_data());
1651 ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
1652 file_descriptor_proto(),
1653 deps,
1654 messages,
1655 enums,
1656 )
1657 });
1658 ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
1659 })
1660 }
1661