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