xref: /aosp_15_r20/tools/netsim/rust/proto/src/configuration.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 `rootcanal/configuration.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:rootcanal.configuration.ControllerFeatures)
29 pub struct ControllerFeatures {
30     // message fields
31     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_extended_advertising)
32     pub le_extended_advertising: ::std::option::Option<bool>,
33     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_periodic_advertising)
34     pub le_periodic_advertising: ::std::option::Option<bool>,
35     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.ll_privacy)
36     pub ll_privacy: ::std::option::Option<bool>,
37     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_2m_phy)
38     pub le_2m_phy: ::std::option::Option<bool>,
39     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_coded_phy)
40     pub le_coded_phy: ::std::option::Option<bool>,
41     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerFeatures.le_connected_isochronous_stream)
42     pub le_connected_isochronous_stream: ::std::option::Option<bool>,
43     // special fields
44     // @@protoc_insertion_point(special_field:rootcanal.configuration.ControllerFeatures.special_fields)
45     pub special_fields: ::protobuf::SpecialFields,
46 }
47 
48 impl<'a> ::std::default::Default for &'a ControllerFeatures {
default() -> &'a ControllerFeatures49     fn default() -> &'a ControllerFeatures {
50         <ControllerFeatures as ::protobuf::Message>::default_instance()
51     }
52 }
53 
54 impl ControllerFeatures {
new() -> ControllerFeatures55     pub fn new() -> ControllerFeatures {
56         ::std::default::Default::default()
57     }
58 
59     // optional bool le_extended_advertising = 1;
60 
le_extended_advertising(&self) -> bool61     pub fn le_extended_advertising(&self) -> bool {
62         self.le_extended_advertising.unwrap_or(false)
63     }
64 
clear_le_extended_advertising(&mut self)65     pub fn clear_le_extended_advertising(&mut self) {
66         self.le_extended_advertising = ::std::option::Option::None;
67     }
68 
has_le_extended_advertising(&self) -> bool69     pub fn has_le_extended_advertising(&self) -> bool {
70         self.le_extended_advertising.is_some()
71     }
72 
73     // Param is passed by value, moved
set_le_extended_advertising(&mut self, v: bool)74     pub fn set_le_extended_advertising(&mut self, v: bool) {
75         self.le_extended_advertising = ::std::option::Option::Some(v);
76     }
77 
78     // optional bool le_periodic_advertising = 2;
79 
le_periodic_advertising(&self) -> bool80     pub fn le_periodic_advertising(&self) -> bool {
81         self.le_periodic_advertising.unwrap_or(false)
82     }
83 
clear_le_periodic_advertising(&mut self)84     pub fn clear_le_periodic_advertising(&mut self) {
85         self.le_periodic_advertising = ::std::option::Option::None;
86     }
87 
has_le_periodic_advertising(&self) -> bool88     pub fn has_le_periodic_advertising(&self) -> bool {
89         self.le_periodic_advertising.is_some()
90     }
91 
92     // Param is passed by value, moved
set_le_periodic_advertising(&mut self, v: bool)93     pub fn set_le_periodic_advertising(&mut self, v: bool) {
94         self.le_periodic_advertising = ::std::option::Option::Some(v);
95     }
96 
97     // optional bool ll_privacy = 3;
98 
ll_privacy(&self) -> bool99     pub fn ll_privacy(&self) -> bool {
100         self.ll_privacy.unwrap_or(false)
101     }
102 
clear_ll_privacy(&mut self)103     pub fn clear_ll_privacy(&mut self) {
104         self.ll_privacy = ::std::option::Option::None;
105     }
106 
has_ll_privacy(&self) -> bool107     pub fn has_ll_privacy(&self) -> bool {
108         self.ll_privacy.is_some()
109     }
110 
111     // Param is passed by value, moved
set_ll_privacy(&mut self, v: bool)112     pub fn set_ll_privacy(&mut self, v: bool) {
113         self.ll_privacy = ::std::option::Option::Some(v);
114     }
115 
116     // optional bool le_2m_phy = 4;
117 
le_2m_phy(&self) -> bool118     pub fn le_2m_phy(&self) -> bool {
119         self.le_2m_phy.unwrap_or(false)
120     }
121 
clear_le_2m_phy(&mut self)122     pub fn clear_le_2m_phy(&mut self) {
123         self.le_2m_phy = ::std::option::Option::None;
124     }
125 
has_le_2m_phy(&self) -> bool126     pub fn has_le_2m_phy(&self) -> bool {
127         self.le_2m_phy.is_some()
128     }
129 
130     // Param is passed by value, moved
set_le_2m_phy(&mut self, v: bool)131     pub fn set_le_2m_phy(&mut self, v: bool) {
132         self.le_2m_phy = ::std::option::Option::Some(v);
133     }
134 
135     // optional bool le_coded_phy = 5;
136 
le_coded_phy(&self) -> bool137     pub fn le_coded_phy(&self) -> bool {
138         self.le_coded_phy.unwrap_or(false)
139     }
140 
clear_le_coded_phy(&mut self)141     pub fn clear_le_coded_phy(&mut self) {
142         self.le_coded_phy = ::std::option::Option::None;
143     }
144 
has_le_coded_phy(&self) -> bool145     pub fn has_le_coded_phy(&self) -> bool {
146         self.le_coded_phy.is_some()
147     }
148 
149     // Param is passed by value, moved
set_le_coded_phy(&mut self, v: bool)150     pub fn set_le_coded_phy(&mut self, v: bool) {
151         self.le_coded_phy = ::std::option::Option::Some(v);
152     }
153 
154     // optional bool le_connected_isochronous_stream = 6;
155 
le_connected_isochronous_stream(&self) -> bool156     pub fn le_connected_isochronous_stream(&self) -> bool {
157         self.le_connected_isochronous_stream.unwrap_or(false)
158     }
159 
clear_le_connected_isochronous_stream(&mut self)160     pub fn clear_le_connected_isochronous_stream(&mut self) {
161         self.le_connected_isochronous_stream = ::std::option::Option::None;
162     }
163 
has_le_connected_isochronous_stream(&self) -> bool164     pub fn has_le_connected_isochronous_stream(&self) -> bool {
165         self.le_connected_isochronous_stream.is_some()
166     }
167 
168     // Param is passed by value, moved
set_le_connected_isochronous_stream(&mut self, v: bool)169     pub fn set_le_connected_isochronous_stream(&mut self, v: bool) {
170         self.le_connected_isochronous_stream = ::std::option::Option::Some(v);
171     }
172 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData173     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
174         let mut fields = ::std::vec::Vec::with_capacity(6);
175         let mut oneofs = ::std::vec::Vec::with_capacity(0);
176         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
177             "le_extended_advertising",
178             |m: &ControllerFeatures| { &m.le_extended_advertising },
179             |m: &mut ControllerFeatures| { &mut m.le_extended_advertising },
180         ));
181         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
182             "le_periodic_advertising",
183             |m: &ControllerFeatures| { &m.le_periodic_advertising },
184             |m: &mut ControllerFeatures| { &mut m.le_periodic_advertising },
185         ));
186         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
187             "ll_privacy",
188             |m: &ControllerFeatures| { &m.ll_privacy },
189             |m: &mut ControllerFeatures| { &mut m.ll_privacy },
190         ));
191         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
192             "le_2m_phy",
193             |m: &ControllerFeatures| { &m.le_2m_phy },
194             |m: &mut ControllerFeatures| { &mut m.le_2m_phy },
195         ));
196         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
197             "le_coded_phy",
198             |m: &ControllerFeatures| { &m.le_coded_phy },
199             |m: &mut ControllerFeatures| { &mut m.le_coded_phy },
200         ));
201         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
202             "le_connected_isochronous_stream",
203             |m: &ControllerFeatures| { &m.le_connected_isochronous_stream },
204             |m: &mut ControllerFeatures| { &mut m.le_connected_isochronous_stream },
205         ));
206         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ControllerFeatures>(
207             "ControllerFeatures",
208             fields,
209             oneofs,
210         )
211     }
212 }
213 
214 impl ::protobuf::Message for ControllerFeatures {
215     const NAME: &'static str = "ControllerFeatures";
216 
is_initialized(&self) -> bool217     fn is_initialized(&self) -> bool {
218         true
219     }
220 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>221     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
222         while let Some(tag) = is.read_raw_tag_or_eof()? {
223             match tag {
224                 8 => {
225                     self.le_extended_advertising = ::std::option::Option::Some(is.read_bool()?);
226                 },
227                 16 => {
228                     self.le_periodic_advertising = ::std::option::Option::Some(is.read_bool()?);
229                 },
230                 24 => {
231                     self.ll_privacy = ::std::option::Option::Some(is.read_bool()?);
232                 },
233                 32 => {
234                     self.le_2m_phy = ::std::option::Option::Some(is.read_bool()?);
235                 },
236                 40 => {
237                     self.le_coded_phy = ::std::option::Option::Some(is.read_bool()?);
238                 },
239                 48 => {
240                     self.le_connected_isochronous_stream = ::std::option::Option::Some(is.read_bool()?);
241                 },
242                 tag => {
243                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
244                 },
245             };
246         }
247         ::std::result::Result::Ok(())
248     }
249 
250     // Compute sizes of nested messages
251     #[allow(unused_variables)]
compute_size(&self) -> u64252     fn compute_size(&self) -> u64 {
253         let mut my_size = 0;
254         if let Some(v) = self.le_extended_advertising {
255             my_size += 1 + 1;
256         }
257         if let Some(v) = self.le_periodic_advertising {
258             my_size += 1 + 1;
259         }
260         if let Some(v) = self.ll_privacy {
261             my_size += 1 + 1;
262         }
263         if let Some(v) = self.le_2m_phy {
264             my_size += 1 + 1;
265         }
266         if let Some(v) = self.le_coded_phy {
267             my_size += 1 + 1;
268         }
269         if let Some(v) = self.le_connected_isochronous_stream {
270             my_size += 1 + 1;
271         }
272         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
273         self.special_fields.cached_size().set(my_size as u32);
274         my_size
275     }
276 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>277     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
278         if let Some(v) = self.le_extended_advertising {
279             os.write_bool(1, v)?;
280         }
281         if let Some(v) = self.le_periodic_advertising {
282             os.write_bool(2, v)?;
283         }
284         if let Some(v) = self.ll_privacy {
285             os.write_bool(3, v)?;
286         }
287         if let Some(v) = self.le_2m_phy {
288             os.write_bool(4, v)?;
289         }
290         if let Some(v) = self.le_coded_phy {
291             os.write_bool(5, v)?;
292         }
293         if let Some(v) = self.le_connected_isochronous_stream {
294             os.write_bool(6, v)?;
295         }
296         os.write_unknown_fields(self.special_fields.unknown_fields())?;
297         ::std::result::Result::Ok(())
298     }
299 
special_fields(&self) -> &::protobuf::SpecialFields300     fn special_fields(&self) -> &::protobuf::SpecialFields {
301         &self.special_fields
302     }
303 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields304     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
305         &mut self.special_fields
306     }
307 
new() -> ControllerFeatures308     fn new() -> ControllerFeatures {
309         ControllerFeatures::new()
310     }
311 
clear(&mut self)312     fn clear(&mut self) {
313         self.le_extended_advertising = ::std::option::Option::None;
314         self.le_periodic_advertising = ::std::option::Option::None;
315         self.ll_privacy = ::std::option::Option::None;
316         self.le_2m_phy = ::std::option::Option::None;
317         self.le_coded_phy = ::std::option::Option::None;
318         self.le_connected_isochronous_stream = ::std::option::Option::None;
319         self.special_fields.clear();
320     }
321 
default_instance() -> &'static ControllerFeatures322     fn default_instance() -> &'static ControllerFeatures {
323         static instance: ControllerFeatures = ControllerFeatures {
324             le_extended_advertising: ::std::option::Option::None,
325             le_periodic_advertising: ::std::option::Option::None,
326             ll_privacy: ::std::option::Option::None,
327             le_2m_phy: ::std::option::Option::None,
328             le_coded_phy: ::std::option::Option::None,
329             le_connected_isochronous_stream: ::std::option::Option::None,
330             special_fields: ::protobuf::SpecialFields::new(),
331         };
332         &instance
333     }
334 }
335 
336 impl ::protobuf::MessageFull for ControllerFeatures {
descriptor() -> ::protobuf::reflect::MessageDescriptor337     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
338         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
339         descriptor.get(|| file_descriptor().message_by_package_relative_name("ControllerFeatures").unwrap()).clone()
340     }
341 }
342 
343 impl ::std::fmt::Display for ControllerFeatures {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result344     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
345         ::protobuf::text_format::fmt(self, f)
346     }
347 }
348 
349 impl ::protobuf::reflect::ProtobufValue for ControllerFeatures {
350     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
351 }
352 
353 #[derive(PartialEq,Clone,Default,Debug)]
354 // @@protoc_insertion_point(message:rootcanal.configuration.ControllerQuirks)
355 pub struct ControllerQuirks {
356     // message fields
357     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerQuirks.send_acl_data_before_connection_complete)
358     pub send_acl_data_before_connection_complete: ::std::option::Option<bool>,
359     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerQuirks.has_default_random_address)
360     pub has_default_random_address: ::std::option::Option<bool>,
361     // @@protoc_insertion_point(field:rootcanal.configuration.ControllerQuirks.hardware_error_before_reset)
362     pub hardware_error_before_reset: ::std::option::Option<bool>,
363     // special fields
364     // @@protoc_insertion_point(special_field:rootcanal.configuration.ControllerQuirks.special_fields)
365     pub special_fields: ::protobuf::SpecialFields,
366 }
367 
368 impl<'a> ::std::default::Default for &'a ControllerQuirks {
default() -> &'a ControllerQuirks369     fn default() -> &'a ControllerQuirks {
370         <ControllerQuirks as ::protobuf::Message>::default_instance()
371     }
372 }
373 
374 impl ControllerQuirks {
new() -> ControllerQuirks375     pub fn new() -> ControllerQuirks {
376         ::std::default::Default::default()
377     }
378 
379     // optional bool send_acl_data_before_connection_complete = 1;
380 
send_acl_data_before_connection_complete(&self) -> bool381     pub fn send_acl_data_before_connection_complete(&self) -> bool {
382         self.send_acl_data_before_connection_complete.unwrap_or(false)
383     }
384 
clear_send_acl_data_before_connection_complete(&mut self)385     pub fn clear_send_acl_data_before_connection_complete(&mut self) {
386         self.send_acl_data_before_connection_complete = ::std::option::Option::None;
387     }
388 
has_send_acl_data_before_connection_complete(&self) -> bool389     pub fn has_send_acl_data_before_connection_complete(&self) -> bool {
390         self.send_acl_data_before_connection_complete.is_some()
391     }
392 
393     // Param is passed by value, moved
set_send_acl_data_before_connection_complete(&mut self, v: bool)394     pub fn set_send_acl_data_before_connection_complete(&mut self, v: bool) {
395         self.send_acl_data_before_connection_complete = ::std::option::Option::Some(v);
396     }
397 
398     // optional bool has_default_random_address = 2;
399 
has_default_random_address(&self) -> bool400     pub fn has_default_random_address(&self) -> bool {
401         self.has_default_random_address.unwrap_or(false)
402     }
403 
clear_has_default_random_address(&mut self)404     pub fn clear_has_default_random_address(&mut self) {
405         self.has_default_random_address = ::std::option::Option::None;
406     }
407 
has_has_default_random_address(&self) -> bool408     pub fn has_has_default_random_address(&self) -> bool {
409         self.has_default_random_address.is_some()
410     }
411 
412     // Param is passed by value, moved
set_has_default_random_address(&mut self, v: bool)413     pub fn set_has_default_random_address(&mut self, v: bool) {
414         self.has_default_random_address = ::std::option::Option::Some(v);
415     }
416 
417     // optional bool hardware_error_before_reset = 3;
418 
hardware_error_before_reset(&self) -> bool419     pub fn hardware_error_before_reset(&self) -> bool {
420         self.hardware_error_before_reset.unwrap_or(false)
421     }
422 
clear_hardware_error_before_reset(&mut self)423     pub fn clear_hardware_error_before_reset(&mut self) {
424         self.hardware_error_before_reset = ::std::option::Option::None;
425     }
426 
has_hardware_error_before_reset(&self) -> bool427     pub fn has_hardware_error_before_reset(&self) -> bool {
428         self.hardware_error_before_reset.is_some()
429     }
430 
431     // Param is passed by value, moved
set_hardware_error_before_reset(&mut self, v: bool)432     pub fn set_hardware_error_before_reset(&mut self, v: bool) {
433         self.hardware_error_before_reset = ::std::option::Option::Some(v);
434     }
435 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData436     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
437         let mut fields = ::std::vec::Vec::with_capacity(3);
438         let mut oneofs = ::std::vec::Vec::with_capacity(0);
439         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
440             "send_acl_data_before_connection_complete",
441             |m: &ControllerQuirks| { &m.send_acl_data_before_connection_complete },
442             |m: &mut ControllerQuirks| { &mut m.send_acl_data_before_connection_complete },
443         ));
444         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
445             "has_default_random_address",
446             |m: &ControllerQuirks| { &m.has_default_random_address },
447             |m: &mut ControllerQuirks| { &mut m.has_default_random_address },
448         ));
449         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
450             "hardware_error_before_reset",
451             |m: &ControllerQuirks| { &m.hardware_error_before_reset },
452             |m: &mut ControllerQuirks| { &mut m.hardware_error_before_reset },
453         ));
454         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ControllerQuirks>(
455             "ControllerQuirks",
456             fields,
457             oneofs,
458         )
459     }
460 }
461 
462 impl ::protobuf::Message for ControllerQuirks {
463     const NAME: &'static str = "ControllerQuirks";
464 
is_initialized(&self) -> bool465     fn is_initialized(&self) -> bool {
466         true
467     }
468 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>469     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
470         while let Some(tag) = is.read_raw_tag_or_eof()? {
471             match tag {
472                 8 => {
473                     self.send_acl_data_before_connection_complete = ::std::option::Option::Some(is.read_bool()?);
474                 },
475                 16 => {
476                     self.has_default_random_address = ::std::option::Option::Some(is.read_bool()?);
477                 },
478                 24 => {
479                     self.hardware_error_before_reset = ::std::option::Option::Some(is.read_bool()?);
480                 },
481                 tag => {
482                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
483                 },
484             };
485         }
486         ::std::result::Result::Ok(())
487     }
488 
489     // Compute sizes of nested messages
490     #[allow(unused_variables)]
compute_size(&self) -> u64491     fn compute_size(&self) -> u64 {
492         let mut my_size = 0;
493         if let Some(v) = self.send_acl_data_before_connection_complete {
494             my_size += 1 + 1;
495         }
496         if let Some(v) = self.has_default_random_address {
497             my_size += 1 + 1;
498         }
499         if let Some(v) = self.hardware_error_before_reset {
500             my_size += 1 + 1;
501         }
502         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
503         self.special_fields.cached_size().set(my_size as u32);
504         my_size
505     }
506 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>507     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
508         if let Some(v) = self.send_acl_data_before_connection_complete {
509             os.write_bool(1, v)?;
510         }
511         if let Some(v) = self.has_default_random_address {
512             os.write_bool(2, v)?;
513         }
514         if let Some(v) = self.hardware_error_before_reset {
515             os.write_bool(3, v)?;
516         }
517         os.write_unknown_fields(self.special_fields.unknown_fields())?;
518         ::std::result::Result::Ok(())
519     }
520 
special_fields(&self) -> &::protobuf::SpecialFields521     fn special_fields(&self) -> &::protobuf::SpecialFields {
522         &self.special_fields
523     }
524 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields525     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
526         &mut self.special_fields
527     }
528 
new() -> ControllerQuirks529     fn new() -> ControllerQuirks {
530         ControllerQuirks::new()
531     }
532 
clear(&mut self)533     fn clear(&mut self) {
534         self.send_acl_data_before_connection_complete = ::std::option::Option::None;
535         self.has_default_random_address = ::std::option::Option::None;
536         self.hardware_error_before_reset = ::std::option::Option::None;
537         self.special_fields.clear();
538     }
539 
default_instance() -> &'static ControllerQuirks540     fn default_instance() -> &'static ControllerQuirks {
541         static instance: ControllerQuirks = ControllerQuirks {
542             send_acl_data_before_connection_complete: ::std::option::Option::None,
543             has_default_random_address: ::std::option::Option::None,
544             hardware_error_before_reset: ::std::option::Option::None,
545             special_fields: ::protobuf::SpecialFields::new(),
546         };
547         &instance
548     }
549 }
550 
551 impl ::protobuf::MessageFull for ControllerQuirks {
descriptor() -> ::protobuf::reflect::MessageDescriptor552     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
553         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
554         descriptor.get(|| file_descriptor().message_by_package_relative_name("ControllerQuirks").unwrap()).clone()
555     }
556 }
557 
558 impl ::std::fmt::Display for ControllerQuirks {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result559     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
560         ::protobuf::text_format::fmt(self, f)
561     }
562 }
563 
564 impl ::protobuf::reflect::ProtobufValue for ControllerQuirks {
565     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
566 }
567 
568 #[derive(PartialEq,Clone,Default,Debug)]
569 // @@protoc_insertion_point(message:rootcanal.configuration.VendorFeatures)
570 pub struct VendorFeatures {
571     // message fields
572     // @@protoc_insertion_point(field:rootcanal.configuration.VendorFeatures.csr)
573     pub csr: ::std::option::Option<bool>,
574     // @@protoc_insertion_point(field:rootcanal.configuration.VendorFeatures.android)
575     pub android: ::std::option::Option<bool>,
576     // special fields
577     // @@protoc_insertion_point(special_field:rootcanal.configuration.VendorFeatures.special_fields)
578     pub special_fields: ::protobuf::SpecialFields,
579 }
580 
581 impl<'a> ::std::default::Default for &'a VendorFeatures {
default() -> &'a VendorFeatures582     fn default() -> &'a VendorFeatures {
583         <VendorFeatures as ::protobuf::Message>::default_instance()
584     }
585 }
586 
587 impl VendorFeatures {
new() -> VendorFeatures588     pub fn new() -> VendorFeatures {
589         ::std::default::Default::default()
590     }
591 
592     // optional bool csr = 1;
593 
csr(&self) -> bool594     pub fn csr(&self) -> bool {
595         self.csr.unwrap_or(false)
596     }
597 
clear_csr(&mut self)598     pub fn clear_csr(&mut self) {
599         self.csr = ::std::option::Option::None;
600     }
601 
has_csr(&self) -> bool602     pub fn has_csr(&self) -> bool {
603         self.csr.is_some()
604     }
605 
606     // Param is passed by value, moved
set_csr(&mut self, v: bool)607     pub fn set_csr(&mut self, v: bool) {
608         self.csr = ::std::option::Option::Some(v);
609     }
610 
611     // optional bool android = 2;
612 
android(&self) -> bool613     pub fn android(&self) -> bool {
614         self.android.unwrap_or(false)
615     }
616 
clear_android(&mut self)617     pub fn clear_android(&mut self) {
618         self.android = ::std::option::Option::None;
619     }
620 
has_android(&self) -> bool621     pub fn has_android(&self) -> bool {
622         self.android.is_some()
623     }
624 
625     // Param is passed by value, moved
set_android(&mut self, v: bool)626     pub fn set_android(&mut self, v: bool) {
627         self.android = ::std::option::Option::Some(v);
628     }
629 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData630     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
631         let mut fields = ::std::vec::Vec::with_capacity(2);
632         let mut oneofs = ::std::vec::Vec::with_capacity(0);
633         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
634             "csr",
635             |m: &VendorFeatures| { &m.csr },
636             |m: &mut VendorFeatures| { &mut m.csr },
637         ));
638         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
639             "android",
640             |m: &VendorFeatures| { &m.android },
641             |m: &mut VendorFeatures| { &mut m.android },
642         ));
643         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<VendorFeatures>(
644             "VendorFeatures",
645             fields,
646             oneofs,
647         )
648     }
649 }
650 
651 impl ::protobuf::Message for VendorFeatures {
652     const NAME: &'static str = "VendorFeatures";
653 
is_initialized(&self) -> bool654     fn is_initialized(&self) -> bool {
655         true
656     }
657 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>658     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
659         while let Some(tag) = is.read_raw_tag_or_eof()? {
660             match tag {
661                 8 => {
662                     self.csr = ::std::option::Option::Some(is.read_bool()?);
663                 },
664                 16 => {
665                     self.android = ::std::option::Option::Some(is.read_bool()?);
666                 },
667                 tag => {
668                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
669                 },
670             };
671         }
672         ::std::result::Result::Ok(())
673     }
674 
675     // Compute sizes of nested messages
676     #[allow(unused_variables)]
compute_size(&self) -> u64677     fn compute_size(&self) -> u64 {
678         let mut my_size = 0;
679         if let Some(v) = self.csr {
680             my_size += 1 + 1;
681         }
682         if let Some(v) = self.android {
683             my_size += 1 + 1;
684         }
685         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
686         self.special_fields.cached_size().set(my_size as u32);
687         my_size
688     }
689 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>690     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
691         if let Some(v) = self.csr {
692             os.write_bool(1, v)?;
693         }
694         if let Some(v) = self.android {
695             os.write_bool(2, v)?;
696         }
697         os.write_unknown_fields(self.special_fields.unknown_fields())?;
698         ::std::result::Result::Ok(())
699     }
700 
special_fields(&self) -> &::protobuf::SpecialFields701     fn special_fields(&self) -> &::protobuf::SpecialFields {
702         &self.special_fields
703     }
704 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields705     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
706         &mut self.special_fields
707     }
708 
new() -> VendorFeatures709     fn new() -> VendorFeatures {
710         VendorFeatures::new()
711     }
712 
clear(&mut self)713     fn clear(&mut self) {
714         self.csr = ::std::option::Option::None;
715         self.android = ::std::option::Option::None;
716         self.special_fields.clear();
717     }
718 
default_instance() -> &'static VendorFeatures719     fn default_instance() -> &'static VendorFeatures {
720         static instance: VendorFeatures = VendorFeatures {
721             csr: ::std::option::Option::None,
722             android: ::std::option::Option::None,
723             special_fields: ::protobuf::SpecialFields::new(),
724         };
725         &instance
726     }
727 }
728 
729 impl ::protobuf::MessageFull for VendorFeatures {
descriptor() -> ::protobuf::reflect::MessageDescriptor730     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
731         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
732         descriptor.get(|| file_descriptor().message_by_package_relative_name("VendorFeatures").unwrap()).clone()
733     }
734 }
735 
736 impl ::std::fmt::Display for VendorFeatures {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result737     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
738         ::protobuf::text_format::fmt(self, f)
739     }
740 }
741 
742 impl ::protobuf::reflect::ProtobufValue for VendorFeatures {
743     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
744 }
745 
746 #[derive(PartialEq,Clone,Default,Debug)]
747 // @@protoc_insertion_point(message:rootcanal.configuration.Controller)
748 pub struct Controller {
749     // message fields
750     // @@protoc_insertion_point(field:rootcanal.configuration.Controller.preset)
751     pub preset: ::std::option::Option<::protobuf::EnumOrUnknown<ControllerPreset>>,
752     // @@protoc_insertion_point(field:rootcanal.configuration.Controller.features)
753     pub features: ::protobuf::MessageField<ControllerFeatures>,
754     // @@protoc_insertion_point(field:rootcanal.configuration.Controller.quirks)
755     pub quirks: ::protobuf::MessageField<ControllerQuirks>,
756     // @@protoc_insertion_point(field:rootcanal.configuration.Controller.strict)
757     pub strict: ::std::option::Option<bool>,
758     // @@protoc_insertion_point(field:rootcanal.configuration.Controller.vendor)
759     pub vendor: ::protobuf::MessageField<VendorFeatures>,
760     // special fields
761     // @@protoc_insertion_point(special_field:rootcanal.configuration.Controller.special_fields)
762     pub special_fields: ::protobuf::SpecialFields,
763 }
764 
765 impl<'a> ::std::default::Default for &'a Controller {
default() -> &'a Controller766     fn default() -> &'a Controller {
767         <Controller as ::protobuf::Message>::default_instance()
768     }
769 }
770 
771 impl Controller {
new() -> Controller772     pub fn new() -> Controller {
773         ::std::default::Default::default()
774     }
775 
776     // optional .rootcanal.configuration.ControllerPreset preset = 1;
777 
preset(&self) -> ControllerPreset778     pub fn preset(&self) -> ControllerPreset {
779         match self.preset {
780             Some(e) => e.enum_value_or(ControllerPreset::DEFAULT),
781             None => ControllerPreset::DEFAULT,
782         }
783     }
784 
clear_preset(&mut self)785     pub fn clear_preset(&mut self) {
786         self.preset = ::std::option::Option::None;
787     }
788 
has_preset(&self) -> bool789     pub fn has_preset(&self) -> bool {
790         self.preset.is_some()
791     }
792 
793     // Param is passed by value, moved
set_preset(&mut self, v: ControllerPreset)794     pub fn set_preset(&mut self, v: ControllerPreset) {
795         self.preset = ::std::option::Option::Some(::protobuf::EnumOrUnknown::new(v));
796     }
797 
798     // optional bool strict = 4;
799 
strict(&self) -> bool800     pub fn strict(&self) -> bool {
801         self.strict.unwrap_or(false)
802     }
803 
clear_strict(&mut self)804     pub fn clear_strict(&mut self) {
805         self.strict = ::std::option::Option::None;
806     }
807 
has_strict(&self) -> bool808     pub fn has_strict(&self) -> bool {
809         self.strict.is_some()
810     }
811 
812     // Param is passed by value, moved
set_strict(&mut self, v: bool)813     pub fn set_strict(&mut self, v: bool) {
814         self.strict = ::std::option::Option::Some(v);
815     }
816 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData817     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
818         let mut fields = ::std::vec::Vec::with_capacity(5);
819         let mut oneofs = ::std::vec::Vec::with_capacity(0);
820         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
821             "preset",
822             |m: &Controller| { &m.preset },
823             |m: &mut Controller| { &mut m.preset },
824         ));
825         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ControllerFeatures>(
826             "features",
827             |m: &Controller| { &m.features },
828             |m: &mut Controller| { &mut m.features },
829         ));
830         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, ControllerQuirks>(
831             "quirks",
832             |m: &Controller| { &m.quirks },
833             |m: &mut Controller| { &mut m.quirks },
834         ));
835         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
836             "strict",
837             |m: &Controller| { &m.strict },
838             |m: &mut Controller| { &mut m.strict },
839         ));
840         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, VendorFeatures>(
841             "vendor",
842             |m: &Controller| { &m.vendor },
843             |m: &mut Controller| { &mut m.vendor },
844         ));
845         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Controller>(
846             "Controller",
847             fields,
848             oneofs,
849         )
850     }
851 }
852 
853 impl ::protobuf::Message for Controller {
854     const NAME: &'static str = "Controller";
855 
is_initialized(&self) -> bool856     fn is_initialized(&self) -> bool {
857         true
858     }
859 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>860     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
861         while let Some(tag) = is.read_raw_tag_or_eof()? {
862             match tag {
863                 8 => {
864                     self.preset = ::std::option::Option::Some(is.read_enum_or_unknown()?);
865                 },
866                 18 => {
867                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.features)?;
868                 },
869                 26 => {
870                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.quirks)?;
871                 },
872                 32 => {
873                     self.strict = ::std::option::Option::Some(is.read_bool()?);
874                 },
875                 42 => {
876                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.vendor)?;
877                 },
878                 tag => {
879                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
880                 },
881             };
882         }
883         ::std::result::Result::Ok(())
884     }
885 
886     // Compute sizes of nested messages
887     #[allow(unused_variables)]
compute_size(&self) -> u64888     fn compute_size(&self) -> u64 {
889         let mut my_size = 0;
890         if let Some(v) = self.preset {
891             my_size += ::protobuf::rt::int32_size(1, v.value());
892         }
893         if let Some(v) = self.features.as_ref() {
894             let len = v.compute_size();
895             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
896         }
897         if let Some(v) = self.quirks.as_ref() {
898             let len = v.compute_size();
899             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
900         }
901         if let Some(v) = self.strict {
902             my_size += 1 + 1;
903         }
904         if let Some(v) = self.vendor.as_ref() {
905             let len = v.compute_size();
906             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
907         }
908         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
909         self.special_fields.cached_size().set(my_size as u32);
910         my_size
911     }
912 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>913     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
914         if let Some(v) = self.preset {
915             os.write_enum(1, ::protobuf::EnumOrUnknown::value(&v))?;
916         }
917         if let Some(v) = self.features.as_ref() {
918             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
919         }
920         if let Some(v) = self.quirks.as_ref() {
921             ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
922         }
923         if let Some(v) = self.strict {
924             os.write_bool(4, v)?;
925         }
926         if let Some(v) = self.vendor.as_ref() {
927             ::protobuf::rt::write_message_field_with_cached_size(5, v, os)?;
928         }
929         os.write_unknown_fields(self.special_fields.unknown_fields())?;
930         ::std::result::Result::Ok(())
931     }
932 
special_fields(&self) -> &::protobuf::SpecialFields933     fn special_fields(&self) -> &::protobuf::SpecialFields {
934         &self.special_fields
935     }
936 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields937     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
938         &mut self.special_fields
939     }
940 
new() -> Controller941     fn new() -> Controller {
942         Controller::new()
943     }
944 
clear(&mut self)945     fn clear(&mut self) {
946         self.preset = ::std::option::Option::None;
947         self.features.clear();
948         self.quirks.clear();
949         self.strict = ::std::option::Option::None;
950         self.vendor.clear();
951         self.special_fields.clear();
952     }
953 
default_instance() -> &'static Controller954     fn default_instance() -> &'static Controller {
955         static instance: Controller = Controller {
956             preset: ::std::option::Option::None,
957             features: ::protobuf::MessageField::none(),
958             quirks: ::protobuf::MessageField::none(),
959             strict: ::std::option::Option::None,
960             vendor: ::protobuf::MessageField::none(),
961             special_fields: ::protobuf::SpecialFields::new(),
962         };
963         &instance
964     }
965 }
966 
967 impl ::protobuf::MessageFull for Controller {
descriptor() -> ::protobuf::reflect::MessageDescriptor968     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
969         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
970         descriptor.get(|| file_descriptor().message_by_package_relative_name("Controller").unwrap()).clone()
971     }
972 }
973 
974 impl ::std::fmt::Display for Controller {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result975     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
976         ::protobuf::text_format::fmt(self, f)
977     }
978 }
979 
980 impl ::protobuf::reflect::ProtobufValue for Controller {
981     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
982 }
983 
984 #[derive(PartialEq,Clone,Default,Debug)]
985 // @@protoc_insertion_point(message:rootcanal.configuration.TcpServer)
986 pub struct TcpServer {
987     // message fields
988     // @@protoc_insertion_point(field:rootcanal.configuration.TcpServer.tcp_port)
989     pub tcp_port: ::std::option::Option<i32>,
990     // @@protoc_insertion_point(field:rootcanal.configuration.TcpServer.configuration)
991     pub configuration: ::protobuf::MessageField<Controller>,
992     // special fields
993     // @@protoc_insertion_point(special_field:rootcanal.configuration.TcpServer.special_fields)
994     pub special_fields: ::protobuf::SpecialFields,
995 }
996 
997 impl<'a> ::std::default::Default for &'a TcpServer {
default() -> &'a TcpServer998     fn default() -> &'a TcpServer {
999         <TcpServer as ::protobuf::Message>::default_instance()
1000     }
1001 }
1002 
1003 impl TcpServer {
new() -> TcpServer1004     pub fn new() -> TcpServer {
1005         ::std::default::Default::default()
1006     }
1007 
1008     // required int32 tcp_port = 1;
1009 
tcp_port(&self) -> i321010     pub fn tcp_port(&self) -> i32 {
1011         self.tcp_port.unwrap_or(0)
1012     }
1013 
clear_tcp_port(&mut self)1014     pub fn clear_tcp_port(&mut self) {
1015         self.tcp_port = ::std::option::Option::None;
1016     }
1017 
has_tcp_port(&self) -> bool1018     pub fn has_tcp_port(&self) -> bool {
1019         self.tcp_port.is_some()
1020     }
1021 
1022     // Param is passed by value, moved
set_tcp_port(&mut self, v: i32)1023     pub fn set_tcp_port(&mut self, v: i32) {
1024         self.tcp_port = ::std::option::Option::Some(v);
1025     }
1026 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1027     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1028         let mut fields = ::std::vec::Vec::with_capacity(2);
1029         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1030         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
1031             "tcp_port",
1032             |m: &TcpServer| { &m.tcp_port },
1033             |m: &mut TcpServer| { &mut m.tcp_port },
1034         ));
1035         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Controller>(
1036             "configuration",
1037             |m: &TcpServer| { &m.configuration },
1038             |m: &mut TcpServer| { &mut m.configuration },
1039         ));
1040         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<TcpServer>(
1041             "TcpServer",
1042             fields,
1043             oneofs,
1044         )
1045     }
1046 }
1047 
1048 impl ::protobuf::Message for TcpServer {
1049     const NAME: &'static str = "TcpServer";
1050 
is_initialized(&self) -> bool1051     fn is_initialized(&self) -> bool {
1052         if self.tcp_port.is_none() {
1053             return false;
1054         }
1055         for v in &self.configuration {
1056             if !v.is_initialized() {
1057                 return false;
1058             }
1059         };
1060         true
1061     }
1062 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1063     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1064         while let Some(tag) = is.read_raw_tag_or_eof()? {
1065             match tag {
1066                 8 => {
1067                     self.tcp_port = ::std::option::Option::Some(is.read_int32()?);
1068                 },
1069                 18 => {
1070                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.configuration)?;
1071                 },
1072                 tag => {
1073                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1074                 },
1075             };
1076         }
1077         ::std::result::Result::Ok(())
1078     }
1079 
1080     // Compute sizes of nested messages
1081     #[allow(unused_variables)]
compute_size(&self) -> u641082     fn compute_size(&self) -> u64 {
1083         let mut my_size = 0;
1084         if let Some(v) = self.tcp_port {
1085             my_size += ::protobuf::rt::int32_size(1, v);
1086         }
1087         if let Some(v) = self.configuration.as_ref() {
1088             let len = v.compute_size();
1089             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1090         }
1091         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1092         self.special_fields.cached_size().set(my_size as u32);
1093         my_size
1094     }
1095 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1096     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1097         if let Some(v) = self.tcp_port {
1098             os.write_int32(1, v)?;
1099         }
1100         if let Some(v) = self.configuration.as_ref() {
1101             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1102         }
1103         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1104         ::std::result::Result::Ok(())
1105     }
1106 
special_fields(&self) -> &::protobuf::SpecialFields1107     fn special_fields(&self) -> &::protobuf::SpecialFields {
1108         &self.special_fields
1109     }
1110 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1111     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1112         &mut self.special_fields
1113     }
1114 
new() -> TcpServer1115     fn new() -> TcpServer {
1116         TcpServer::new()
1117     }
1118 
clear(&mut self)1119     fn clear(&mut self) {
1120         self.tcp_port = ::std::option::Option::None;
1121         self.configuration.clear();
1122         self.special_fields.clear();
1123     }
1124 
default_instance() -> &'static TcpServer1125     fn default_instance() -> &'static TcpServer {
1126         static instance: TcpServer = TcpServer {
1127             tcp_port: ::std::option::Option::None,
1128             configuration: ::protobuf::MessageField::none(),
1129             special_fields: ::protobuf::SpecialFields::new(),
1130         };
1131         &instance
1132     }
1133 }
1134 
1135 impl ::protobuf::MessageFull for TcpServer {
descriptor() -> ::protobuf::reflect::MessageDescriptor1136     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1137         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1138         descriptor.get(|| file_descriptor().message_by_package_relative_name("TcpServer").unwrap()).clone()
1139     }
1140 }
1141 
1142 impl ::std::fmt::Display for TcpServer {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1143     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1144         ::protobuf::text_format::fmt(self, f)
1145     }
1146 }
1147 
1148 impl ::protobuf::reflect::ProtobufValue for TcpServer {
1149     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1150 }
1151 
1152 #[derive(PartialEq,Clone,Default,Debug)]
1153 // @@protoc_insertion_point(message:rootcanal.configuration.Configuration)
1154 pub struct Configuration {
1155     // message fields
1156     // @@protoc_insertion_point(field:rootcanal.configuration.Configuration.tcp_server)
1157     pub tcp_server: ::std::vec::Vec<TcpServer>,
1158     // special fields
1159     // @@protoc_insertion_point(special_field:rootcanal.configuration.Configuration.special_fields)
1160     pub special_fields: ::protobuf::SpecialFields,
1161 }
1162 
1163 impl<'a> ::std::default::Default for &'a Configuration {
default() -> &'a Configuration1164     fn default() -> &'a Configuration {
1165         <Configuration as ::protobuf::Message>::default_instance()
1166     }
1167 }
1168 
1169 impl Configuration {
new() -> Configuration1170     pub fn new() -> Configuration {
1171         ::std::default::Default::default()
1172     }
1173 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1174     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1175         let mut fields = ::std::vec::Vec::with_capacity(1);
1176         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1177         fields.push(::protobuf::reflect::rt::v2::make_vec_simpler_accessor::<_, _>(
1178             "tcp_server",
1179             |m: &Configuration| { &m.tcp_server },
1180             |m: &mut Configuration| { &mut m.tcp_server },
1181         ));
1182         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Configuration>(
1183             "Configuration",
1184             fields,
1185             oneofs,
1186         )
1187     }
1188 }
1189 
1190 impl ::protobuf::Message for Configuration {
1191     const NAME: &'static str = "Configuration";
1192 
is_initialized(&self) -> bool1193     fn is_initialized(&self) -> bool {
1194         for v in &self.tcp_server {
1195             if !v.is_initialized() {
1196                 return false;
1197             }
1198         };
1199         true
1200     }
1201 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1202     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1203         while let Some(tag) = is.read_raw_tag_or_eof()? {
1204             match tag {
1205                 10 => {
1206                     self.tcp_server.push(is.read_message()?);
1207                 },
1208                 tag => {
1209                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1210                 },
1211             };
1212         }
1213         ::std::result::Result::Ok(())
1214     }
1215 
1216     // Compute sizes of nested messages
1217     #[allow(unused_variables)]
compute_size(&self) -> u641218     fn compute_size(&self) -> u64 {
1219         let mut my_size = 0;
1220         for value in &self.tcp_server {
1221             let len = value.compute_size();
1222             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1223         };
1224         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1225         self.special_fields.cached_size().set(my_size as u32);
1226         my_size
1227     }
1228 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1229     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1230         for v in &self.tcp_server {
1231             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1232         };
1233         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1234         ::std::result::Result::Ok(())
1235     }
1236 
special_fields(&self) -> &::protobuf::SpecialFields1237     fn special_fields(&self) -> &::protobuf::SpecialFields {
1238         &self.special_fields
1239     }
1240 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1241     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1242         &mut self.special_fields
1243     }
1244 
new() -> Configuration1245     fn new() -> Configuration {
1246         Configuration::new()
1247     }
1248 
clear(&mut self)1249     fn clear(&mut self) {
1250         self.tcp_server.clear();
1251         self.special_fields.clear();
1252     }
1253 
default_instance() -> &'static Configuration1254     fn default_instance() -> &'static Configuration {
1255         static instance: Configuration = Configuration {
1256             tcp_server: ::std::vec::Vec::new(),
1257             special_fields: ::protobuf::SpecialFields::new(),
1258         };
1259         &instance
1260     }
1261 }
1262 
1263 impl ::protobuf::MessageFull for Configuration {
descriptor() -> ::protobuf::reflect::MessageDescriptor1264     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1265         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1266         descriptor.get(|| file_descriptor().message_by_package_relative_name("Configuration").unwrap()).clone()
1267     }
1268 }
1269 
1270 impl ::std::fmt::Display for Configuration {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1271     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1272         ::protobuf::text_format::fmt(self, f)
1273     }
1274 }
1275 
1276 impl ::protobuf::reflect::ProtobufValue for Configuration {
1277     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1278 }
1279 
1280 #[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
1281 // @@protoc_insertion_point(enum:rootcanal.configuration.ControllerPreset)
1282 pub enum ControllerPreset {
1283     // @@protoc_insertion_point(enum_value:rootcanal.configuration.ControllerPreset.DEFAULT)
1284     DEFAULT = 0,
1285     // @@protoc_insertion_point(enum_value:rootcanal.configuration.ControllerPreset.LAIRD_BL654)
1286     LAIRD_BL654 = 1,
1287     // @@protoc_insertion_point(enum_value:rootcanal.configuration.ControllerPreset.CSR_RCK_PTS_DONGLE)
1288     CSR_RCK_PTS_DONGLE = 2,
1289 }
1290 
1291 impl ::protobuf::Enum for ControllerPreset {
1292     const NAME: &'static str = "ControllerPreset";
1293 
value(&self) -> i321294     fn value(&self) -> i32 {
1295         *self as i32
1296     }
1297 
from_i32(value: i32) -> ::std::option::Option<ControllerPreset>1298     fn from_i32(value: i32) -> ::std::option::Option<ControllerPreset> {
1299         match value {
1300             0 => ::std::option::Option::Some(ControllerPreset::DEFAULT),
1301             1 => ::std::option::Option::Some(ControllerPreset::LAIRD_BL654),
1302             2 => ::std::option::Option::Some(ControllerPreset::CSR_RCK_PTS_DONGLE),
1303             _ => ::std::option::Option::None
1304         }
1305     }
1306 
1307     const VALUES: &'static [ControllerPreset] = &[
1308         ControllerPreset::DEFAULT,
1309         ControllerPreset::LAIRD_BL654,
1310         ControllerPreset::CSR_RCK_PTS_DONGLE,
1311     ];
1312 }
1313 
1314 impl ::protobuf::EnumFull for ControllerPreset {
enum_descriptor() -> ::protobuf::reflect::EnumDescriptor1315     fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
1316         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
1317         descriptor.get(|| file_descriptor().enum_by_package_relative_name("ControllerPreset").unwrap()).clone()
1318     }
1319 
descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor1320     fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
1321         let index = *self as usize;
1322         Self::enum_descriptor().value_by_index(index)
1323     }
1324 }
1325 
1326 impl ::std::default::Default for ControllerPreset {
default() -> Self1327     fn default() -> Self {
1328         ControllerPreset::DEFAULT
1329     }
1330 }
1331 
1332 impl ControllerPreset {
generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData1333     fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
1334         ::protobuf::reflect::GeneratedEnumDescriptorData::new::<ControllerPreset>("ControllerPreset")
1335     }
1336 }
1337 
1338 static file_descriptor_proto_data: &'static [u8] = b"\
1339     \n\x1drootcanal/configuration.proto\x12\x17rootcanal.configuration\"\xa8\
1340     \x02\n\x12ControllerFeatures\x126\n\x17le_extended_advertising\x18\x01\
1341     \x20\x01(\x08R\x15leExtendedAdvertising\x126\n\x17le_periodic_advertisin\
1342     g\x18\x02\x20\x01(\x08R\x15lePeriodicAdvertising\x12\x1d\n\nll_privacy\
1343     \x18\x03\x20\x01(\x08R\tllPrivacy\x12\x1a\n\tle_2m_phy\x18\x04\x20\x01(\
1344     \x08R\x07le2mPhy\x12\x20\n\x0cle_coded_phy\x18\x05\x20\x01(\x08R\nleCode\
1345     dPhy\x12E\n\x1fle_connected_isochronous_stream\x18\x06\x20\x01(\x08R\x1c\
1346     leConnectedIsochronousStream\"\xe5\x01\n\x10ControllerQuirks\x12U\n(send\
1347     _acl_data_before_connection_complete\x18\x01\x20\x01(\x08R#sendAclDataBe\
1348     foreConnectionComplete\x12;\n\x1ahas_default_random_address\x18\x02\x20\
1349     \x01(\x08R\x17hasDefaultRandomAddress\x12=\n\x1bhardware_error_before_re\
1350     set\x18\x03\x20\x01(\x08R\x18hardwareErrorBeforeReset\"<\n\x0eVendorFeat\
1351     ures\x12\x10\n\x03csr\x18\x01\x20\x01(\x08R\x03csr\x12\x18\n\x07android\
1352     \x18\x02\x20\x01(\x08R\x07android\"\xb4\x02\n\nController\x12A\n\x06pres\
1353     et\x18\x01\x20\x01(\x0e2).rootcanal.configuration.ControllerPresetR\x06p\
1354     reset\x12G\n\x08features\x18\x02\x20\x01(\x0b2+.rootcanal.configuration.\
1355     ControllerFeaturesR\x08features\x12A\n\x06quirks\x18\x03\x20\x01(\x0b2).\
1356     rootcanal.configuration.ControllerQuirksR\x06quirks\x12\x16\n\x06strict\
1357     \x18\x04\x20\x01(\x08R\x06strict\x12?\n\x06vendor\x18\x05\x20\x01(\x0b2'\
1358     .rootcanal.configuration.VendorFeaturesR\x06vendor\"q\n\tTcpServer\x12\
1359     \x19\n\x08tcp_port\x18\x01\x20\x02(\x05R\x07tcpPort\x12I\n\rconfiguratio\
1360     n\x18\x02\x20\x01(\x0b2#.rootcanal.configuration.ControllerR\rconfigurat\
1361     ion\"R\n\rConfiguration\x12A\n\ntcp_server\x18\x01\x20\x03(\x0b2\".rootc\
1362     anal.configuration.TcpServerR\ttcpServer*H\n\x10ControllerPreset\x12\x0b\
1363     \n\x07DEFAULT\x10\0\x12\x0f\n\x0bLAIRD_BL654\x10\x01\x12\x16\n\x12CSR_RC\
1364     K_PTS_DONGLE\x10\x02B\x02H\x02\
1365 ";
1366 
1367 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto1368 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1369     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
1370     file_descriptor_proto_lazy.get(|| {
1371         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1372     })
1373 }
1374 
1375 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor1376 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
1377     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
1378     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
1379     file_descriptor.get(|| {
1380         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
1381             let mut deps = ::std::vec::Vec::with_capacity(0);
1382             let mut messages = ::std::vec::Vec::with_capacity(6);
1383             messages.push(ControllerFeatures::generated_message_descriptor_data());
1384             messages.push(ControllerQuirks::generated_message_descriptor_data());
1385             messages.push(VendorFeatures::generated_message_descriptor_data());
1386             messages.push(Controller::generated_message_descriptor_data());
1387             messages.push(TcpServer::generated_message_descriptor_data());
1388             messages.push(Configuration::generated_message_descriptor_data());
1389             let mut enums = ::std::vec::Vec::with_capacity(1);
1390             enums.push(ControllerPreset::generated_enum_descriptor_data());
1391             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
1392                 file_descriptor_proto(),
1393                 deps,
1394                 messages,
1395                 enums,
1396             )
1397         });
1398         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
1399     })
1400 }
1401