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/common.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(Clone,Copy,PartialEq,Eq,Debug,Hash)]
29 // @@protoc_insertion_point(enum:netsim.common.ChipKind)
30 pub enum ChipKind {
31     // @@protoc_insertion_point(enum_value:netsim.common.ChipKind.UNSPECIFIED)
32     UNSPECIFIED = 0,
33     // @@protoc_insertion_point(enum_value:netsim.common.ChipKind.BLUETOOTH)
34     BLUETOOTH = 1,
35     // @@protoc_insertion_point(enum_value:netsim.common.ChipKind.WIFI)
36     WIFI = 2,
37     // @@protoc_insertion_point(enum_value:netsim.common.ChipKind.UWB)
38     UWB = 3,
39     // @@protoc_insertion_point(enum_value:netsim.common.ChipKind.BLUETOOTH_BEACON)
40     BLUETOOTH_BEACON = 4,
41 }
42 
43 impl ::protobuf::Enum for ChipKind {
44     const NAME: &'static str = "ChipKind";
45 
value(&self) -> i3246     fn value(&self) -> i32 {
47         *self as i32
48     }
49 
from_i32(value: i32) -> ::std::option::Option<ChipKind>50     fn from_i32(value: i32) -> ::std::option::Option<ChipKind> {
51         match value {
52             0 => ::std::option::Option::Some(ChipKind::UNSPECIFIED),
53             1 => ::std::option::Option::Some(ChipKind::BLUETOOTH),
54             2 => ::std::option::Option::Some(ChipKind::WIFI),
55             3 => ::std::option::Option::Some(ChipKind::UWB),
56             4 => ::std::option::Option::Some(ChipKind::BLUETOOTH_BEACON),
57             _ => ::std::option::Option::None
58         }
59     }
60 
61     const VALUES: &'static [ChipKind] = &[
62         ChipKind::UNSPECIFIED,
63         ChipKind::BLUETOOTH,
64         ChipKind::WIFI,
65         ChipKind::UWB,
66         ChipKind::BLUETOOTH_BEACON,
67     ];
68 }
69 
70 impl ::protobuf::EnumFull for ChipKind {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor71     fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
72         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
73         descriptor.get(|| file_descriptor().enum_by_package_relative_name("ChipKind").unwrap()).clone()
74     }
75 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor76     fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
77         let index = *self as usize;
78         Self::enum_descriptor().value_by_index(index)
79     }
80 }
81 
82 impl ::std::default::Default for ChipKind {
default() -> Self83     fn default() -> Self {
84         ChipKind::UNSPECIFIED
85     }
86 }
87 
88 impl ChipKind {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData89     fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
90         ::protobuf::reflect::GeneratedEnumDescriptorData::new::<ChipKind>("ChipKind")
91     }
92 }
93 
94 static file_descriptor_proto_data: &'static [u8] = b"\
95     \n\x13netsim/common.proto\x12\rnetsim.common*S\n\x08ChipKind\x12\x0f\n\
96     \x0bUNSPECIFIED\x10\0\x12\r\n\tBLUETOOTH\x10\x01\x12\x08\n\x04WIFI\x10\
97     \x02\x12\x07\n\x03UWB\x10\x03\x12\x14\n\x10BLUETOOTH_BEACON\x10\x04b\x06\
98     proto3\
99 ";
100 
101 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto102 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
103     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
104     file_descriptor_proto_lazy.get(|| {
105         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
106     })
107 }
108 
109 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor110 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
111     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
112     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
113     file_descriptor.get(|| {
114         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
115             let mut deps = ::std::vec::Vec::with_capacity(0);
116             let mut messages = ::std::vec::Vec::with_capacity(0);
117             let mut enums = ::std::vec::Vec::with_capacity(1);
118             enums.push(ChipKind::generated_enum_descriptor_data());
119             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
120                 file_descriptor_proto(),
121                 deps,
122                 messages,
123                 enums,
124             )
125         });
126         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
127     })
128 }
129