xref: /aosp_15_r20/tools/netsim/rust/proto/src/config.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/config.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:netsim.config.SlirpOptions)
29 pub struct SlirpOptions {
30     // message fields
31     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.disabled)
32     pub disabled: bool,
33     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.ipv4)
34     pub ipv4: ::std::option::Option<bool>,
35     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.restricted)
36     pub restricted: bool,
37     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vnet)
38     pub vnet: ::std::string::String,
39     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhost)
40     pub vhost: ::std::string::String,
41     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vmask)
42     pub vmask: ::std::string::String,
43     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.ipv6)
44     pub ipv6: ::std::option::Option<bool>,
45     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vprefix6)
46     pub vprefix6: ::std::string::String,
47     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vprefixLen)
48     pub vprefixLen: u32,
49     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhost6)
50     pub vhost6: ::std::string::String,
51     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhostname)
52     pub vhostname: ::std::string::String,
53     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.tftpath)
54     pub tftpath: ::std::string::String,
55     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.bootfile)
56     pub bootfile: ::std::string::String,
57     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dhcpstart)
58     pub dhcpstart: ::std::string::String,
59     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dns)
60     pub dns: ::std::string::String,
61     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dns6)
62     pub dns6: ::std::string::String,
63     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.host_dns)
64     pub host_dns: ::std::string::String,
65     // @@protoc_insertion_point(field:netsim.config.SlirpOptions.http_proxy)
66     pub http_proxy: ::std::string::String,
67     // special fields
68     // @@protoc_insertion_point(special_field:netsim.config.SlirpOptions.special_fields)
69     pub special_fields: ::protobuf::SpecialFields,
70 }
71 
72 impl<'a> ::std::default::Default for &'a SlirpOptions {
default() -> &'a SlirpOptions73     fn default() -> &'a SlirpOptions {
74         <SlirpOptions as ::protobuf::Message>::default_instance()
75     }
76 }
77 
78 impl SlirpOptions {
new() -> SlirpOptions79     pub fn new() -> SlirpOptions {
80         ::std::default::Default::default()
81     }
82 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData83     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
84         let mut fields = ::std::vec::Vec::with_capacity(18);
85         let mut oneofs = ::std::vec::Vec::with_capacity(0);
86         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
87             "disabled",
88             |m: &SlirpOptions| { &m.disabled },
89             |m: &mut SlirpOptions| { &mut m.disabled },
90         ));
91         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
92             "ipv4",
93             |m: &SlirpOptions| { &m.ipv4 },
94             |m: &mut SlirpOptions| { &mut m.ipv4 },
95         ));
96         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
97             "restricted",
98             |m: &SlirpOptions| { &m.restricted },
99             |m: &mut SlirpOptions| { &mut m.restricted },
100         ));
101         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
102             "vnet",
103             |m: &SlirpOptions| { &m.vnet },
104             |m: &mut SlirpOptions| { &mut m.vnet },
105         ));
106         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
107             "vhost",
108             |m: &SlirpOptions| { &m.vhost },
109             |m: &mut SlirpOptions| { &mut m.vhost },
110         ));
111         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
112             "vmask",
113             |m: &SlirpOptions| { &m.vmask },
114             |m: &mut SlirpOptions| { &mut m.vmask },
115         ));
116         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
117             "ipv6",
118             |m: &SlirpOptions| { &m.ipv6 },
119             |m: &mut SlirpOptions| { &mut m.ipv6 },
120         ));
121         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
122             "vprefix6",
123             |m: &SlirpOptions| { &m.vprefix6 },
124             |m: &mut SlirpOptions| { &mut m.vprefix6 },
125         ));
126         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
127             "vprefixLen",
128             |m: &SlirpOptions| { &m.vprefixLen },
129             |m: &mut SlirpOptions| { &mut m.vprefixLen },
130         ));
131         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
132             "vhost6",
133             |m: &SlirpOptions| { &m.vhost6 },
134             |m: &mut SlirpOptions| { &mut m.vhost6 },
135         ));
136         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
137             "vhostname",
138             |m: &SlirpOptions| { &m.vhostname },
139             |m: &mut SlirpOptions| { &mut m.vhostname },
140         ));
141         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
142             "tftpath",
143             |m: &SlirpOptions| { &m.tftpath },
144             |m: &mut SlirpOptions| { &mut m.tftpath },
145         ));
146         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
147             "bootfile",
148             |m: &SlirpOptions| { &m.bootfile },
149             |m: &mut SlirpOptions| { &mut m.bootfile },
150         ));
151         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
152             "dhcpstart",
153             |m: &SlirpOptions| { &m.dhcpstart },
154             |m: &mut SlirpOptions| { &mut m.dhcpstart },
155         ));
156         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
157             "dns",
158             |m: &SlirpOptions| { &m.dns },
159             |m: &mut SlirpOptions| { &mut m.dns },
160         ));
161         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
162             "dns6",
163             |m: &SlirpOptions| { &m.dns6 },
164             |m: &mut SlirpOptions| { &mut m.dns6 },
165         ));
166         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
167             "host_dns",
168             |m: &SlirpOptions| { &m.host_dns },
169             |m: &mut SlirpOptions| { &mut m.host_dns },
170         ));
171         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
172             "http_proxy",
173             |m: &SlirpOptions| { &m.http_proxy },
174             |m: &mut SlirpOptions| { &mut m.http_proxy },
175         ));
176         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SlirpOptions>(
177             "SlirpOptions",
178             fields,
179             oneofs,
180         )
181     }
182 }
183 
184 impl ::protobuf::Message for SlirpOptions {
185     const NAME: &'static str = "SlirpOptions";
186 
is_initialized(&self) -> bool187     fn is_initialized(&self) -> bool {
188         true
189     }
190 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>191     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
192         while let Some(tag) = is.read_raw_tag_or_eof()? {
193             match tag {
194                 8 => {
195                     self.disabled = is.read_bool()?;
196                 },
197                 16 => {
198                     self.ipv4 = ::std::option::Option::Some(is.read_bool()?);
199                 },
200                 24 => {
201                     self.restricted = is.read_bool()?;
202                 },
203                 34 => {
204                     self.vnet = is.read_string()?;
205                 },
206                 42 => {
207                     self.vhost = is.read_string()?;
208                 },
209                 50 => {
210                     self.vmask = is.read_string()?;
211                 },
212                 56 => {
213                     self.ipv6 = ::std::option::Option::Some(is.read_bool()?);
214                 },
215                 66 => {
216                     self.vprefix6 = is.read_string()?;
217                 },
218                 72 => {
219                     self.vprefixLen = is.read_uint32()?;
220                 },
221                 82 => {
222                     self.vhost6 = is.read_string()?;
223                 },
224                 90 => {
225                     self.vhostname = is.read_string()?;
226                 },
227                 98 => {
228                     self.tftpath = is.read_string()?;
229                 },
230                 106 => {
231                     self.bootfile = is.read_string()?;
232                 },
233                 114 => {
234                     self.dhcpstart = is.read_string()?;
235                 },
236                 122 => {
237                     self.dns = is.read_string()?;
238                 },
239                 130 => {
240                     self.dns6 = is.read_string()?;
241                 },
242                 138 => {
243                     self.host_dns = is.read_string()?;
244                 },
245                 146 => {
246                     self.http_proxy = is.read_string()?;
247                 },
248                 tag => {
249                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
250                 },
251             };
252         }
253         ::std::result::Result::Ok(())
254     }
255 
256     // Compute sizes of nested messages
257     #[allow(unused_variables)]
compute_size(&self) -> u64258     fn compute_size(&self) -> u64 {
259         let mut my_size = 0;
260         if self.disabled != false {
261             my_size += 1 + 1;
262         }
263         if let Some(v) = self.ipv4 {
264             my_size += 1 + 1;
265         }
266         if self.restricted != false {
267             my_size += 1 + 1;
268         }
269         if !self.vnet.is_empty() {
270             my_size += ::protobuf::rt::string_size(4, &self.vnet);
271         }
272         if !self.vhost.is_empty() {
273             my_size += ::protobuf::rt::string_size(5, &self.vhost);
274         }
275         if !self.vmask.is_empty() {
276             my_size += ::protobuf::rt::string_size(6, &self.vmask);
277         }
278         if let Some(v) = self.ipv6 {
279             my_size += 1 + 1;
280         }
281         if !self.vprefix6.is_empty() {
282             my_size += ::protobuf::rt::string_size(8, &self.vprefix6);
283         }
284         if self.vprefixLen != 0 {
285             my_size += ::protobuf::rt::uint32_size(9, self.vprefixLen);
286         }
287         if !self.vhost6.is_empty() {
288             my_size += ::protobuf::rt::string_size(10, &self.vhost6);
289         }
290         if !self.vhostname.is_empty() {
291             my_size += ::protobuf::rt::string_size(11, &self.vhostname);
292         }
293         if !self.tftpath.is_empty() {
294             my_size += ::protobuf::rt::string_size(12, &self.tftpath);
295         }
296         if !self.bootfile.is_empty() {
297             my_size += ::protobuf::rt::string_size(13, &self.bootfile);
298         }
299         if !self.dhcpstart.is_empty() {
300             my_size += ::protobuf::rt::string_size(14, &self.dhcpstart);
301         }
302         if !self.dns.is_empty() {
303             my_size += ::protobuf::rt::string_size(15, &self.dns);
304         }
305         if !self.dns6.is_empty() {
306             my_size += ::protobuf::rt::string_size(16, &self.dns6);
307         }
308         if !self.host_dns.is_empty() {
309             my_size += ::protobuf::rt::string_size(17, &self.host_dns);
310         }
311         if !self.http_proxy.is_empty() {
312             my_size += ::protobuf::rt::string_size(18, &self.http_proxy);
313         }
314         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
315         self.special_fields.cached_size().set(my_size as u32);
316         my_size
317     }
318 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>319     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
320         if self.disabled != false {
321             os.write_bool(1, self.disabled)?;
322         }
323         if let Some(v) = self.ipv4 {
324             os.write_bool(2, v)?;
325         }
326         if self.restricted != false {
327             os.write_bool(3, self.restricted)?;
328         }
329         if !self.vnet.is_empty() {
330             os.write_string(4, &self.vnet)?;
331         }
332         if !self.vhost.is_empty() {
333             os.write_string(5, &self.vhost)?;
334         }
335         if !self.vmask.is_empty() {
336             os.write_string(6, &self.vmask)?;
337         }
338         if let Some(v) = self.ipv6 {
339             os.write_bool(7, v)?;
340         }
341         if !self.vprefix6.is_empty() {
342             os.write_string(8, &self.vprefix6)?;
343         }
344         if self.vprefixLen != 0 {
345             os.write_uint32(9, self.vprefixLen)?;
346         }
347         if !self.vhost6.is_empty() {
348             os.write_string(10, &self.vhost6)?;
349         }
350         if !self.vhostname.is_empty() {
351             os.write_string(11, &self.vhostname)?;
352         }
353         if !self.tftpath.is_empty() {
354             os.write_string(12, &self.tftpath)?;
355         }
356         if !self.bootfile.is_empty() {
357             os.write_string(13, &self.bootfile)?;
358         }
359         if !self.dhcpstart.is_empty() {
360             os.write_string(14, &self.dhcpstart)?;
361         }
362         if !self.dns.is_empty() {
363             os.write_string(15, &self.dns)?;
364         }
365         if !self.dns6.is_empty() {
366             os.write_string(16, &self.dns6)?;
367         }
368         if !self.host_dns.is_empty() {
369             os.write_string(17, &self.host_dns)?;
370         }
371         if !self.http_proxy.is_empty() {
372             os.write_string(18, &self.http_proxy)?;
373         }
374         os.write_unknown_fields(self.special_fields.unknown_fields())?;
375         ::std::result::Result::Ok(())
376     }
377 
special_fields(&self) -> &::protobuf::SpecialFields378     fn special_fields(&self) -> &::protobuf::SpecialFields {
379         &self.special_fields
380     }
381 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields382     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
383         &mut self.special_fields
384     }
385 
new() -> SlirpOptions386     fn new() -> SlirpOptions {
387         SlirpOptions::new()
388     }
389 
clear(&mut self)390     fn clear(&mut self) {
391         self.disabled = false;
392         self.ipv4 = ::std::option::Option::None;
393         self.restricted = false;
394         self.vnet.clear();
395         self.vhost.clear();
396         self.vmask.clear();
397         self.ipv6 = ::std::option::Option::None;
398         self.vprefix6.clear();
399         self.vprefixLen = 0;
400         self.vhost6.clear();
401         self.vhostname.clear();
402         self.tftpath.clear();
403         self.bootfile.clear();
404         self.dhcpstart.clear();
405         self.dns.clear();
406         self.dns6.clear();
407         self.host_dns.clear();
408         self.http_proxy.clear();
409         self.special_fields.clear();
410     }
411 
default_instance() -> &'static SlirpOptions412     fn default_instance() -> &'static SlirpOptions {
413         static instance: SlirpOptions = SlirpOptions {
414             disabled: false,
415             ipv4: ::std::option::Option::None,
416             restricted: false,
417             vnet: ::std::string::String::new(),
418             vhost: ::std::string::String::new(),
419             vmask: ::std::string::String::new(),
420             ipv6: ::std::option::Option::None,
421             vprefix6: ::std::string::String::new(),
422             vprefixLen: 0,
423             vhost6: ::std::string::String::new(),
424             vhostname: ::std::string::String::new(),
425             tftpath: ::std::string::String::new(),
426             bootfile: ::std::string::String::new(),
427             dhcpstart: ::std::string::String::new(),
428             dns: ::std::string::String::new(),
429             dns6: ::std::string::String::new(),
430             host_dns: ::std::string::String::new(),
431             http_proxy: ::std::string::String::new(),
432             special_fields: ::protobuf::SpecialFields::new(),
433         };
434         &instance
435     }
436 }
437 
438 impl ::protobuf::MessageFull for SlirpOptions {
descriptor() -> ::protobuf::reflect::MessageDescriptor439     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
440         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
441         descriptor.get(|| file_descriptor().message_by_package_relative_name("SlirpOptions").unwrap()).clone()
442     }
443 }
444 
445 impl ::std::fmt::Display for SlirpOptions {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result446     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
447         ::protobuf::text_format::fmt(self, f)
448     }
449 }
450 
451 impl ::protobuf::reflect::ProtobufValue for SlirpOptions {
452     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
453 }
454 
455 #[derive(PartialEq,Clone,Default,Debug)]
456 // @@protoc_insertion_point(message:netsim.config.HostapdOptions)
457 pub struct HostapdOptions {
458     // message fields
459     // @@protoc_insertion_point(field:netsim.config.HostapdOptions.disabled)
460     pub disabled: ::std::option::Option<bool>,
461     // @@protoc_insertion_point(field:netsim.config.HostapdOptions.ssid)
462     pub ssid: ::std::string::String,
463     // @@protoc_insertion_point(field:netsim.config.HostapdOptions.passwd)
464     pub passwd: ::std::string::String,
465     // special fields
466     // @@protoc_insertion_point(special_field:netsim.config.HostapdOptions.special_fields)
467     pub special_fields: ::protobuf::SpecialFields,
468 }
469 
470 impl<'a> ::std::default::Default for &'a HostapdOptions {
default() -> &'a HostapdOptions471     fn default() -> &'a HostapdOptions {
472         <HostapdOptions as ::protobuf::Message>::default_instance()
473     }
474 }
475 
476 impl HostapdOptions {
new() -> HostapdOptions477     pub fn new() -> HostapdOptions {
478         ::std::default::Default::default()
479     }
480 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData481     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
482         let mut fields = ::std::vec::Vec::with_capacity(3);
483         let mut oneofs = ::std::vec::Vec::with_capacity(0);
484         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
485             "disabled",
486             |m: &HostapdOptions| { &m.disabled },
487             |m: &mut HostapdOptions| { &mut m.disabled },
488         ));
489         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
490             "ssid",
491             |m: &HostapdOptions| { &m.ssid },
492             |m: &mut HostapdOptions| { &mut m.ssid },
493         ));
494         fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
495             "passwd",
496             |m: &HostapdOptions| { &m.passwd },
497             |m: &mut HostapdOptions| { &mut m.passwd },
498         ));
499         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<HostapdOptions>(
500             "HostapdOptions",
501             fields,
502             oneofs,
503         )
504     }
505 }
506 
507 impl ::protobuf::Message for HostapdOptions {
508     const NAME: &'static str = "HostapdOptions";
509 
is_initialized(&self) -> bool510     fn is_initialized(&self) -> bool {
511         true
512     }
513 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>514     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
515         while let Some(tag) = is.read_raw_tag_or_eof()? {
516             match tag {
517                 8 => {
518                     self.disabled = ::std::option::Option::Some(is.read_bool()?);
519                 },
520                 18 => {
521                     self.ssid = is.read_string()?;
522                 },
523                 26 => {
524                     self.passwd = is.read_string()?;
525                 },
526                 tag => {
527                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
528                 },
529             };
530         }
531         ::std::result::Result::Ok(())
532     }
533 
534     // Compute sizes of nested messages
535     #[allow(unused_variables)]
compute_size(&self) -> u64536     fn compute_size(&self) -> u64 {
537         let mut my_size = 0;
538         if let Some(v) = self.disabled {
539             my_size += 1 + 1;
540         }
541         if !self.ssid.is_empty() {
542             my_size += ::protobuf::rt::string_size(2, &self.ssid);
543         }
544         if !self.passwd.is_empty() {
545             my_size += ::protobuf::rt::string_size(3, &self.passwd);
546         }
547         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
548         self.special_fields.cached_size().set(my_size as u32);
549         my_size
550     }
551 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>552     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
553         if let Some(v) = self.disabled {
554             os.write_bool(1, v)?;
555         }
556         if !self.ssid.is_empty() {
557             os.write_string(2, &self.ssid)?;
558         }
559         if !self.passwd.is_empty() {
560             os.write_string(3, &self.passwd)?;
561         }
562         os.write_unknown_fields(self.special_fields.unknown_fields())?;
563         ::std::result::Result::Ok(())
564     }
565 
special_fields(&self) -> &::protobuf::SpecialFields566     fn special_fields(&self) -> &::protobuf::SpecialFields {
567         &self.special_fields
568     }
569 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields570     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
571         &mut self.special_fields
572     }
573 
new() -> HostapdOptions574     fn new() -> HostapdOptions {
575         HostapdOptions::new()
576     }
577 
clear(&mut self)578     fn clear(&mut self) {
579         self.disabled = ::std::option::Option::None;
580         self.ssid.clear();
581         self.passwd.clear();
582         self.special_fields.clear();
583     }
584 
default_instance() -> &'static HostapdOptions585     fn default_instance() -> &'static HostapdOptions {
586         static instance: HostapdOptions = HostapdOptions {
587             disabled: ::std::option::Option::None,
588             ssid: ::std::string::String::new(),
589             passwd: ::std::string::String::new(),
590             special_fields: ::protobuf::SpecialFields::new(),
591         };
592         &instance
593     }
594 }
595 
596 impl ::protobuf::MessageFull for HostapdOptions {
descriptor() -> ::protobuf::reflect::MessageDescriptor597     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
598         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
599         descriptor.get(|| file_descriptor().message_by_package_relative_name("HostapdOptions").unwrap()).clone()
600     }
601 }
602 
603 impl ::std::fmt::Display for HostapdOptions {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result604     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
605         ::protobuf::text_format::fmt(self, f)
606     }
607 }
608 
609 impl ::protobuf::reflect::ProtobufValue for HostapdOptions {
610     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
611 }
612 
613 #[derive(PartialEq,Clone,Default,Debug)]
614 // @@protoc_insertion_point(message:netsim.config.WiFi)
615 pub struct WiFi {
616     // message fields
617     // @@protoc_insertion_point(field:netsim.config.WiFi.slirp_options)
618     pub slirp_options: ::protobuf::MessageField<SlirpOptions>,
619     // @@protoc_insertion_point(field:netsim.config.WiFi.hostapd_options)
620     pub hostapd_options: ::protobuf::MessageField<HostapdOptions>,
621     // special fields
622     // @@protoc_insertion_point(special_field:netsim.config.WiFi.special_fields)
623     pub special_fields: ::protobuf::SpecialFields,
624 }
625 
626 impl<'a> ::std::default::Default for &'a WiFi {
default() -> &'a WiFi627     fn default() -> &'a WiFi {
628         <WiFi as ::protobuf::Message>::default_instance()
629     }
630 }
631 
632 impl WiFi {
new() -> WiFi633     pub fn new() -> WiFi {
634         ::std::default::Default::default()
635     }
636 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData637     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
638         let mut fields = ::std::vec::Vec::with_capacity(2);
639         let mut oneofs = ::std::vec::Vec::with_capacity(0);
640         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, SlirpOptions>(
641             "slirp_options",
642             |m: &WiFi| { &m.slirp_options },
643             |m: &mut WiFi| { &mut m.slirp_options },
644         ));
645         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, HostapdOptions>(
646             "hostapd_options",
647             |m: &WiFi| { &m.hostapd_options },
648             |m: &mut WiFi| { &mut m.hostapd_options },
649         ));
650         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<WiFi>(
651             "WiFi",
652             fields,
653             oneofs,
654         )
655     }
656 }
657 
658 impl ::protobuf::Message for WiFi {
659     const NAME: &'static str = "WiFi";
660 
is_initialized(&self) -> bool661     fn is_initialized(&self) -> bool {
662         true
663     }
664 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>665     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
666         while let Some(tag) = is.read_raw_tag_or_eof()? {
667             match tag {
668                 10 => {
669                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.slirp_options)?;
670                 },
671                 18 => {
672                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.hostapd_options)?;
673                 },
674                 tag => {
675                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
676                 },
677             };
678         }
679         ::std::result::Result::Ok(())
680     }
681 
682     // Compute sizes of nested messages
683     #[allow(unused_variables)]
compute_size(&self) -> u64684     fn compute_size(&self) -> u64 {
685         let mut my_size = 0;
686         if let Some(v) = self.slirp_options.as_ref() {
687             let len = v.compute_size();
688             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
689         }
690         if let Some(v) = self.hostapd_options.as_ref() {
691             let len = v.compute_size();
692             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
693         }
694         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
695         self.special_fields.cached_size().set(my_size as u32);
696         my_size
697     }
698 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>699     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
700         if let Some(v) = self.slirp_options.as_ref() {
701             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
702         }
703         if let Some(v) = self.hostapd_options.as_ref() {
704             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
705         }
706         os.write_unknown_fields(self.special_fields.unknown_fields())?;
707         ::std::result::Result::Ok(())
708     }
709 
special_fields(&self) -> &::protobuf::SpecialFields710     fn special_fields(&self) -> &::protobuf::SpecialFields {
711         &self.special_fields
712     }
713 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields714     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
715         &mut self.special_fields
716     }
717 
new() -> WiFi718     fn new() -> WiFi {
719         WiFi::new()
720     }
721 
clear(&mut self)722     fn clear(&mut self) {
723         self.slirp_options.clear();
724         self.hostapd_options.clear();
725         self.special_fields.clear();
726     }
727 
default_instance() -> &'static WiFi728     fn default_instance() -> &'static WiFi {
729         static instance: WiFi = WiFi {
730             slirp_options: ::protobuf::MessageField::none(),
731             hostapd_options: ::protobuf::MessageField::none(),
732             special_fields: ::protobuf::SpecialFields::new(),
733         };
734         &instance
735     }
736 }
737 
738 impl ::protobuf::MessageFull for WiFi {
descriptor() -> ::protobuf::reflect::MessageDescriptor739     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
740         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
741         descriptor.get(|| file_descriptor().message_by_package_relative_name("WiFi").unwrap()).clone()
742     }
743 }
744 
745 impl ::std::fmt::Display for WiFi {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result746     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
747         ::protobuf::text_format::fmt(self, f)
748     }
749 }
750 
751 impl ::protobuf::reflect::ProtobufValue for WiFi {
752     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
753 }
754 
755 #[derive(PartialEq,Clone,Default,Debug)]
756 // @@protoc_insertion_point(message:netsim.config.Bluetooth)
757 pub struct Bluetooth {
758     // message fields
759     // @@protoc_insertion_point(field:netsim.config.Bluetooth.properties)
760     pub properties: ::protobuf::MessageField<super::configuration::Controller>,
761     // @@protoc_insertion_point(field:netsim.config.Bluetooth.disable_address_reuse)
762     pub disable_address_reuse: ::std::option::Option<bool>,
763     // @@protoc_insertion_point(field:netsim.config.Bluetooth.test_beacons)
764     pub test_beacons: ::std::option::Option<bool>,
765     // special fields
766     // @@protoc_insertion_point(special_field:netsim.config.Bluetooth.special_fields)
767     pub special_fields: ::protobuf::SpecialFields,
768 }
769 
770 impl<'a> ::std::default::Default for &'a Bluetooth {
default() -> &'a Bluetooth771     fn default() -> &'a Bluetooth {
772         <Bluetooth as ::protobuf::Message>::default_instance()
773     }
774 }
775 
776 impl Bluetooth {
new() -> Bluetooth777     pub fn new() -> Bluetooth {
778         ::std::default::Default::default()
779     }
780 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData781     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
782         let mut fields = ::std::vec::Vec::with_capacity(3);
783         let mut oneofs = ::std::vec::Vec::with_capacity(0);
784         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::configuration::Controller>(
785             "properties",
786             |m: &Bluetooth| { &m.properties },
787             |m: &mut Bluetooth| { &mut m.properties },
788         ));
789         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
790             "disable_address_reuse",
791             |m: &Bluetooth| { &m.disable_address_reuse },
792             |m: &mut Bluetooth| { &mut m.disable_address_reuse },
793         ));
794         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
795             "test_beacons",
796             |m: &Bluetooth| { &m.test_beacons },
797             |m: &mut Bluetooth| { &mut m.test_beacons },
798         ));
799         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Bluetooth>(
800             "Bluetooth",
801             fields,
802             oneofs,
803         )
804     }
805 }
806 
807 impl ::protobuf::Message for Bluetooth {
808     const NAME: &'static str = "Bluetooth";
809 
is_initialized(&self) -> bool810     fn is_initialized(&self) -> bool {
811         true
812     }
813 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>814     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
815         while let Some(tag) = is.read_raw_tag_or_eof()? {
816             match tag {
817                 10 => {
818                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.properties)?;
819                 },
820                 16 => {
821                     self.disable_address_reuse = ::std::option::Option::Some(is.read_bool()?);
822                 },
823                 24 => {
824                     self.test_beacons = ::std::option::Option::Some(is.read_bool()?);
825                 },
826                 tag => {
827                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
828                 },
829             };
830         }
831         ::std::result::Result::Ok(())
832     }
833 
834     // Compute sizes of nested messages
835     #[allow(unused_variables)]
compute_size(&self) -> u64836     fn compute_size(&self) -> u64 {
837         let mut my_size = 0;
838         if let Some(v) = self.properties.as_ref() {
839             let len = v.compute_size();
840             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
841         }
842         if let Some(v) = self.disable_address_reuse {
843             my_size += 1 + 1;
844         }
845         if let Some(v) = self.test_beacons {
846             my_size += 1 + 1;
847         }
848         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
849         self.special_fields.cached_size().set(my_size as u32);
850         my_size
851     }
852 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>853     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
854         if let Some(v) = self.properties.as_ref() {
855             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
856         }
857         if let Some(v) = self.disable_address_reuse {
858             os.write_bool(2, v)?;
859         }
860         if let Some(v) = self.test_beacons {
861             os.write_bool(3, v)?;
862         }
863         os.write_unknown_fields(self.special_fields.unknown_fields())?;
864         ::std::result::Result::Ok(())
865     }
866 
special_fields(&self) -> &::protobuf::SpecialFields867     fn special_fields(&self) -> &::protobuf::SpecialFields {
868         &self.special_fields
869     }
870 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields871     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
872         &mut self.special_fields
873     }
874 
new() -> Bluetooth875     fn new() -> Bluetooth {
876         Bluetooth::new()
877     }
878 
clear(&mut self)879     fn clear(&mut self) {
880         self.properties.clear();
881         self.disable_address_reuse = ::std::option::Option::None;
882         self.test_beacons = ::std::option::Option::None;
883         self.special_fields.clear();
884     }
885 
default_instance() -> &'static Bluetooth886     fn default_instance() -> &'static Bluetooth {
887         static instance: Bluetooth = Bluetooth {
888             properties: ::protobuf::MessageField::none(),
889             disable_address_reuse: ::std::option::Option::None,
890             test_beacons: ::std::option::Option::None,
891             special_fields: ::protobuf::SpecialFields::new(),
892         };
893         &instance
894     }
895 }
896 
897 impl ::protobuf::MessageFull for Bluetooth {
descriptor() -> ::protobuf::reflect::MessageDescriptor898     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
899         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
900         descriptor.get(|| file_descriptor().message_by_package_relative_name("Bluetooth").unwrap()).clone()
901     }
902 }
903 
904 impl ::std::fmt::Display for Bluetooth {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result905     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
906         ::protobuf::text_format::fmt(self, f)
907     }
908 }
909 
910 impl ::protobuf::reflect::ProtobufValue for Bluetooth {
911     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
912 }
913 
914 #[derive(PartialEq,Clone,Default,Debug)]
915 // @@protoc_insertion_point(message:netsim.config.Capture)
916 pub struct Capture {
917     // message fields
918     // @@protoc_insertion_point(field:netsim.config.Capture.enabled)
919     pub enabled: ::std::option::Option<bool>,
920     // special fields
921     // @@protoc_insertion_point(special_field:netsim.config.Capture.special_fields)
922     pub special_fields: ::protobuf::SpecialFields,
923 }
924 
925 impl<'a> ::std::default::Default for &'a Capture {
default() -> &'a Capture926     fn default() -> &'a Capture {
927         <Capture as ::protobuf::Message>::default_instance()
928     }
929 }
930 
931 impl Capture {
new() -> Capture932     pub fn new() -> Capture {
933         ::std::default::Default::default()
934     }
935 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData936     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
937         let mut fields = ::std::vec::Vec::with_capacity(1);
938         let mut oneofs = ::std::vec::Vec::with_capacity(0);
939         fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>(
940             "enabled",
941             |m: &Capture| { &m.enabled },
942             |m: &mut Capture| { &mut m.enabled },
943         ));
944         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Capture>(
945             "Capture",
946             fields,
947             oneofs,
948         )
949     }
950 }
951 
952 impl ::protobuf::Message for Capture {
953     const NAME: &'static str = "Capture";
954 
is_initialized(&self) -> bool955     fn is_initialized(&self) -> bool {
956         true
957     }
958 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>959     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
960         while let Some(tag) = is.read_raw_tag_or_eof()? {
961             match tag {
962                 8 => {
963                     self.enabled = ::std::option::Option::Some(is.read_bool()?);
964                 },
965                 tag => {
966                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
967                 },
968             };
969         }
970         ::std::result::Result::Ok(())
971     }
972 
973     // Compute sizes of nested messages
974     #[allow(unused_variables)]
compute_size(&self) -> u64975     fn compute_size(&self) -> u64 {
976         let mut my_size = 0;
977         if let Some(v) = self.enabled {
978             my_size += 1 + 1;
979         }
980         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
981         self.special_fields.cached_size().set(my_size as u32);
982         my_size
983     }
984 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>985     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
986         if let Some(v) = self.enabled {
987             os.write_bool(1, v)?;
988         }
989         os.write_unknown_fields(self.special_fields.unknown_fields())?;
990         ::std::result::Result::Ok(())
991     }
992 
special_fields(&self) -> &::protobuf::SpecialFields993     fn special_fields(&self) -> &::protobuf::SpecialFields {
994         &self.special_fields
995     }
996 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields997     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
998         &mut self.special_fields
999     }
1000 
new() -> Capture1001     fn new() -> Capture {
1002         Capture::new()
1003     }
1004 
clear(&mut self)1005     fn clear(&mut self) {
1006         self.enabled = ::std::option::Option::None;
1007         self.special_fields.clear();
1008     }
1009 
default_instance() -> &'static Capture1010     fn default_instance() -> &'static Capture {
1011         static instance: Capture = Capture {
1012             enabled: ::std::option::Option::None,
1013             special_fields: ::protobuf::SpecialFields::new(),
1014         };
1015         &instance
1016     }
1017 }
1018 
1019 impl ::protobuf::MessageFull for Capture {
descriptor() -> ::protobuf::reflect::MessageDescriptor1020     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1021         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1022         descriptor.get(|| file_descriptor().message_by_package_relative_name("Capture").unwrap()).clone()
1023     }
1024 }
1025 
1026 impl ::std::fmt::Display for Capture {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1027     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1028         ::protobuf::text_format::fmt(self, f)
1029     }
1030 }
1031 
1032 impl ::protobuf::reflect::ProtobufValue for Capture {
1033     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1034 }
1035 
1036 #[derive(PartialEq,Clone,Default,Debug)]
1037 // @@protoc_insertion_point(message:netsim.config.Config)
1038 pub struct Config {
1039     // message fields
1040     // @@protoc_insertion_point(field:netsim.config.Config.bluetooth)
1041     pub bluetooth: ::protobuf::MessageField<Bluetooth>,
1042     // @@protoc_insertion_point(field:netsim.config.Config.wifi)
1043     pub wifi: ::protobuf::MessageField<WiFi>,
1044     // @@protoc_insertion_point(field:netsim.config.Config.capture)
1045     pub capture: ::protobuf::MessageField<Capture>,
1046     // special fields
1047     // @@protoc_insertion_point(special_field:netsim.config.Config.special_fields)
1048     pub special_fields: ::protobuf::SpecialFields,
1049 }
1050 
1051 impl<'a> ::std::default::Default for &'a Config {
default() -> &'a Config1052     fn default() -> &'a Config {
1053         <Config as ::protobuf::Message>::default_instance()
1054     }
1055 }
1056 
1057 impl Config {
new() -> Config1058     pub fn new() -> Config {
1059         ::std::default::Default::default()
1060     }
1061 
generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData1062     fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
1063         let mut fields = ::std::vec::Vec::with_capacity(3);
1064         let mut oneofs = ::std::vec::Vec::with_capacity(0);
1065         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Bluetooth>(
1066             "bluetooth",
1067             |m: &Config| { &m.bluetooth },
1068             |m: &mut Config| { &mut m.bluetooth },
1069         ));
1070         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, WiFi>(
1071             "wifi",
1072             |m: &Config| { &m.wifi },
1073             |m: &mut Config| { &mut m.wifi },
1074         ));
1075         fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Capture>(
1076             "capture",
1077             |m: &Config| { &m.capture },
1078             |m: &mut Config| { &mut m.capture },
1079         ));
1080         ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Config>(
1081             "Config",
1082             fields,
1083             oneofs,
1084         )
1085     }
1086 }
1087 
1088 impl ::protobuf::Message for Config {
1089     const NAME: &'static str = "Config";
1090 
is_initialized(&self) -> bool1091     fn is_initialized(&self) -> bool {
1092         true
1093     }
1094 
merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()>1095     fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
1096         while let Some(tag) = is.read_raw_tag_or_eof()? {
1097             match tag {
1098                 10 => {
1099                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.bluetooth)?;
1100                 },
1101                 18 => {
1102                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.wifi)?;
1103                 },
1104                 26 => {
1105                     ::protobuf::rt::read_singular_message_into_field(is, &mut self.capture)?;
1106                 },
1107                 tag => {
1108                     ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
1109                 },
1110             };
1111         }
1112         ::std::result::Result::Ok(())
1113     }
1114 
1115     // Compute sizes of nested messages
1116     #[allow(unused_variables)]
compute_size(&self) -> u641117     fn compute_size(&self) -> u64 {
1118         let mut my_size = 0;
1119         if let Some(v) = self.bluetooth.as_ref() {
1120             let len = v.compute_size();
1121             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1122         }
1123         if let Some(v) = self.wifi.as_ref() {
1124             let len = v.compute_size();
1125             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1126         }
1127         if let Some(v) = self.capture.as_ref() {
1128             let len = v.compute_size();
1129             my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
1130         }
1131         my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
1132         self.special_fields.cached_size().set(my_size as u32);
1133         my_size
1134     }
1135 
write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()>1136     fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
1137         if let Some(v) = self.bluetooth.as_ref() {
1138             ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
1139         }
1140         if let Some(v) = self.wifi.as_ref() {
1141             ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
1142         }
1143         if let Some(v) = self.capture.as_ref() {
1144             ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
1145         }
1146         os.write_unknown_fields(self.special_fields.unknown_fields())?;
1147         ::std::result::Result::Ok(())
1148     }
1149 
special_fields(&self) -> &::protobuf::SpecialFields1150     fn special_fields(&self) -> &::protobuf::SpecialFields {
1151         &self.special_fields
1152     }
1153 
mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields1154     fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
1155         &mut self.special_fields
1156     }
1157 
new() -> Config1158     fn new() -> Config {
1159         Config::new()
1160     }
1161 
clear(&mut self)1162     fn clear(&mut self) {
1163         self.bluetooth.clear();
1164         self.wifi.clear();
1165         self.capture.clear();
1166         self.special_fields.clear();
1167     }
1168 
default_instance() -> &'static Config1169     fn default_instance() -> &'static Config {
1170         static instance: Config = Config {
1171             bluetooth: ::protobuf::MessageField::none(),
1172             wifi: ::protobuf::MessageField::none(),
1173             capture: ::protobuf::MessageField::none(),
1174             special_fields: ::protobuf::SpecialFields::new(),
1175         };
1176         &instance
1177     }
1178 }
1179 
1180 impl ::protobuf::MessageFull for Config {
descriptor() -> ::protobuf::reflect::MessageDescriptor1181     fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
1182         static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
1183         descriptor.get(|| file_descriptor().message_by_package_relative_name("Config").unwrap()).clone()
1184     }
1185 }
1186 
1187 impl ::std::fmt::Display for Config {
fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result1188     fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1189         ::protobuf::text_format::fmt(self, f)
1190     }
1191 }
1192 
1193 impl ::protobuf::reflect::ProtobufValue for Config {
1194     type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
1195 }
1196 
1197 static file_descriptor_proto_data: &'static [u8] = b"\
1198     \n\x13netsim/config.proto\x12\rnetsim.config\x1a\x1drootcanal/configurat\
1199     ion.proto\"\xf4\x03\n\x0cSlirpOptions\x12\x1a\n\x08disabled\x18\x01\x20\
1200     \x01(\x08R\x08disabled\x12\x17\n\x04ipv4\x18\x02\x20\x01(\x08H\0R\x04ipv\
1201     4\x88\x01\x01\x12\x1e\n\nrestricted\x18\x03\x20\x01(\x08R\nrestricted\
1202     \x12\x12\n\x04vnet\x18\x04\x20\x01(\tR\x04vnet\x12\x14\n\x05vhost\x18\
1203     \x05\x20\x01(\tR\x05vhost\x12\x14\n\x05vmask\x18\x06\x20\x01(\tR\x05vmas\
1204     k\x12\x17\n\x04ipv6\x18\x07\x20\x01(\x08H\x01R\x04ipv6\x88\x01\x01\x12\
1205     \x1a\n\x08vprefix6\x18\x08\x20\x01(\tR\x08vprefix6\x12\x1e\n\nvprefixLen\
1206     \x18\t\x20\x01(\rR\nvprefixLen\x12\x16\n\x06vhost6\x18\n\x20\x01(\tR\x06\
1207     vhost6\x12\x1c\n\tvhostname\x18\x0b\x20\x01(\tR\tvhostname\x12\x18\n\x07\
1208     tftpath\x18\x0c\x20\x01(\tR\x07tftpath\x12\x1a\n\x08bootfile\x18\r\x20\
1209     \x01(\tR\x08bootfile\x12\x1c\n\tdhcpstart\x18\x0e\x20\x01(\tR\tdhcpstart\
1210     \x12\x10\n\x03dns\x18\x0f\x20\x01(\tR\x03dns\x12\x12\n\x04dns6\x18\x10\
1211     \x20\x01(\tR\x04dns6\x12\x19\n\x08host_dns\x18\x11\x20\x01(\tR\x07hostDn\
1212     s\x12\x1d\n\nhttp_proxy\x18\x12\x20\x01(\tR\thttpProxyB\x07\n\x05_ipv4B\
1213     \x07\n\x05_ipv6\"j\n\x0eHostapdOptions\x12\x1f\n\x08disabled\x18\x01\x20\
1214     \x01(\x08H\0R\x08disabled\x88\x01\x01\x12\x12\n\x04ssid\x18\x02\x20\x01(\
1215     \tR\x04ssid\x12\x16\n\x06passwd\x18\x03\x20\x01(\tR\x06passwdB\x0b\n\t_d\
1216     isabled\"\x90\x01\n\x04WiFi\x12@\n\rslirp_options\x18\x01\x20\x01(\x0b2\
1217     \x1b.netsim.config.SlirpOptionsR\x0cslirpOptions\x12F\n\x0fhostapd_optio\
1218     ns\x18\x02\x20\x01(\x0b2\x1d.netsim.config.HostapdOptionsR\x0ehostapdOpt\
1219     ions\"\xf0\x01\n\tBluetooth\x12H\n\nproperties\x18\x01\x20\x01(\x0b2#.ro\
1220     otcanal.configuration.ControllerH\0R\nproperties\x88\x01\x01\x127\n\x15d\
1221     isable_address_reuse\x18\x02\x20\x01(\x08H\x01R\x13disableAddressReuse\
1222     \x88\x01\x01\x12&\n\x0ctest_beacons\x18\x03\x20\x01(\x08H\x02R\x0btestBe\
1223     acons\x88\x01\x01B\r\n\x0b_propertiesB\x18\n\x16_disable_address_reuseB\
1224     \x0f\n\r_test_beacons\"4\n\x07Capture\x12\x1d\n\x07enabled\x18\x01\x20\
1225     \x01(\x08H\0R\x07enabled\x88\x01\x01B\n\n\x08_enabled\"\x9b\x01\n\x06Con\
1226     fig\x126\n\tbluetooth\x18\x01\x20\x01(\x0b2\x18.netsim.config.BluetoothR\
1227     \tbluetooth\x12'\n\x04wifi\x18\x02\x20\x01(\x0b2\x13.netsim.config.WiFiR\
1228     \x04wifi\x120\n\x07capture\x18\x03\x20\x01(\x0b2\x16.netsim.config.Captu\
1229     reR\x07captureb\x06proto3\
1230 ";
1231 
1232 /// `FileDescriptorProto` object which was a source for this generated file
file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto1233 fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
1234     static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
1235     file_descriptor_proto_lazy.get(|| {
1236         ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
1237     })
1238 }
1239 
1240 /// `FileDescriptor` object which allows dynamic access to files
file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor1241 pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
1242     static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
1243     static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
1244     file_descriptor.get(|| {
1245         let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
1246             let mut deps = ::std::vec::Vec::with_capacity(1);
1247             deps.push(super::configuration::file_descriptor().clone());
1248             let mut messages = ::std::vec::Vec::with_capacity(6);
1249             messages.push(SlirpOptions::generated_message_descriptor_data());
1250             messages.push(HostapdOptions::generated_message_descriptor_data());
1251             messages.push(WiFi::generated_message_descriptor_data());
1252             messages.push(Bluetooth::generated_message_descriptor_data());
1253             messages.push(Capture::generated_message_descriptor_data());
1254             messages.push(Config::generated_message_descriptor_data());
1255             let mut enums = ::std::vec::Vec::with_capacity(0);
1256             ::protobuf::reflect::GeneratedFileDescriptor::new_generated(
1257                 file_descriptor_proto(),
1258                 deps,
1259                 messages,
1260                 enums,
1261             )
1262         });
1263         ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
1264     })
1265 }
1266