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 `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 }
40
41 impl ::protobuf::Enum for ChipKind {
42 const NAME: &'static str = "ChipKind";
43
value(&self) -> i3244 fn value(&self) -> i32 {
45 *self as i32
46 }
47
from_i32(value: i32) -> ::std::option::Option<ChipKind>48 fn from_i32(value: i32) -> ::std::option::Option<ChipKind> {
49 match value {
50 0 => ::std::option::Option::Some(ChipKind::UNSPECIFIED),
51 1 => ::std::option::Option::Some(ChipKind::BLUETOOTH),
52 2 => ::std::option::Option::Some(ChipKind::WIFI),
53 3 => ::std::option::Option::Some(ChipKind::UWB),
54 _ => ::std::option::Option::None
55 }
56 }
57
58 const VALUES: &'static [ChipKind] = &[
59 ChipKind::UNSPECIFIED,
60 ChipKind::BLUETOOTH,
61 ChipKind::WIFI,
62 ChipKind::UWB,
63 ];
64 }
65
66 impl ::protobuf::EnumFull for ChipKind {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor67 fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
68 static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
69 descriptor.get(|| file_descriptor().enum_by_package_relative_name("ChipKind").unwrap()).clone()
70 }
71
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor72 fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
73 let index = *self as usize;
74 Self::enum_descriptor().value_by_index(index)
75 }
76 }
77
78 impl ::std::default::Default for ChipKind {
default() -> Self79 fn default() -> Self {
80 ChipKind::UNSPECIFIED
81 }
82 }
83
84 impl ChipKind {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData85 fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
86 ::protobuf::reflect::GeneratedEnumDescriptorData::new::<ChipKind>("ChipKind")
87 }
88 }
89
90 static file_descriptor_proto_data: &'static [u8] = b"\
91 \n\x0ccommon.proto\x12\rnetsim.common*=\n\x08ChipKind\x12\x0f\n\x0bUNSPE\
92 CIFIED\x10\0\x12\r\n\tBLUETOOTH\x10\x01\x12\x08\n\x04WIFI\x10\x02\x12\
93 \x07\n\x03UWB\x10\x03b\x06proto3\
94 ";
95
96 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto97 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
98 static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
99 file_descriptor_proto_lazy.get(|| {
100 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
101 })
102 }
103
104 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor105 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
106 static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
107 static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
108 file_descriptor.get(|| {
109 let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
110 let mut deps = ::std::vec::Vec::with_capacity(0);
111 let mut messages = ::std::vec::Vec::with_capacity(0);
112 let mut enums = ::std::vec::Vec::with_capacity(1);
113 enums.push(ChipKind::generated_enum_descriptor_data());
114 ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
115 file_descriptor_proto(),
116 deps,
117 messages,
118 enums,
119 )
120 });
121 ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
122 })
123 }
124