// This file is generated by rust-protobuf 3.2.0. Do not edit // .proto file is parsed by protoc 3.21.12 // @generated // https://github.com/rust-lang/rust-clippy/issues/702 #![allow(unknown_lints)] #![allow(clippy::all)] #![allow(unused_attributes)] #![cfg_attr(rustfmt, rustfmt::skip)] #![allow(box_pointers)] #![allow(dead_code)] #![allow(missing_docs)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] #![allow(trivial_casts)] #![allow(unused_results)] #![allow(unused_mut)] //! Generated file from `netsim/config.proto` /// Generated files are compatible only with the same version /// of protobuf runtime. const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0; #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.SlirpOptions) pub struct SlirpOptions { // message fields // @@protoc_insertion_point(field:netsim.config.SlirpOptions.disabled) pub disabled: bool, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.ipv4) pub ipv4: ::std::option::Option, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.restricted) pub restricted: bool, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vnet) pub vnet: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhost) pub vhost: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vmask) pub vmask: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.ipv6) pub ipv6: ::std::option::Option, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vprefix6) pub vprefix6: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vprefixLen) pub vprefixLen: u32, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhost6) pub vhost6: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.vhostname) pub vhostname: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.tftpath) pub tftpath: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.bootfile) pub bootfile: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dhcpstart) pub dhcpstart: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dns) pub dns: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.dns6) pub dns6: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.SlirpOptions.host_dns) pub host_dns: ::std::string::String, // special fields // @@protoc_insertion_point(special_field:netsim.config.SlirpOptions.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a SlirpOptions { fn default() -> &'a SlirpOptions { ::default_instance() } } impl SlirpOptions { pub fn new() -> SlirpOptions { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(17); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "disabled", |m: &SlirpOptions| { &m.disabled }, |m: &mut SlirpOptions| { &mut m.disabled }, )); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "ipv4", |m: &SlirpOptions| { &m.ipv4 }, |m: &mut SlirpOptions| { &mut m.ipv4 }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "restricted", |m: &SlirpOptions| { &m.restricted }, |m: &mut SlirpOptions| { &mut m.restricted }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vnet", |m: &SlirpOptions| { &m.vnet }, |m: &mut SlirpOptions| { &mut m.vnet }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vhost", |m: &SlirpOptions| { &m.vhost }, |m: &mut SlirpOptions| { &mut m.vhost }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vmask", |m: &SlirpOptions| { &m.vmask }, |m: &mut SlirpOptions| { &mut m.vmask }, )); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "ipv6", |m: &SlirpOptions| { &m.ipv6 }, |m: &mut SlirpOptions| { &mut m.ipv6 }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vprefix6", |m: &SlirpOptions| { &m.vprefix6 }, |m: &mut SlirpOptions| { &mut m.vprefix6 }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vprefixLen", |m: &SlirpOptions| { &m.vprefixLen }, |m: &mut SlirpOptions| { &mut m.vprefixLen }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vhost6", |m: &SlirpOptions| { &m.vhost6 }, |m: &mut SlirpOptions| { &mut m.vhost6 }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "vhostname", |m: &SlirpOptions| { &m.vhostname }, |m: &mut SlirpOptions| { &mut m.vhostname }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "tftpath", |m: &SlirpOptions| { &m.tftpath }, |m: &mut SlirpOptions| { &mut m.tftpath }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "bootfile", |m: &SlirpOptions| { &m.bootfile }, |m: &mut SlirpOptions| { &mut m.bootfile }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "dhcpstart", |m: &SlirpOptions| { &m.dhcpstart }, |m: &mut SlirpOptions| { &mut m.dhcpstart }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "dns", |m: &SlirpOptions| { &m.dns }, |m: &mut SlirpOptions| { &mut m.dns }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "dns6", |m: &SlirpOptions| { &m.dns6 }, |m: &mut SlirpOptions| { &mut m.dns6 }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "host_dns", |m: &SlirpOptions| { &m.host_dns }, |m: &mut SlirpOptions| { &mut m.host_dns }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "SlirpOptions", fields, oneofs, ) } } impl ::protobuf::Message for SlirpOptions { const NAME: &'static str = "SlirpOptions"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 8 => { self.disabled = is.read_bool()?; }, 16 => { self.ipv4 = ::std::option::Option::Some(is.read_bool()?); }, 24 => { self.restricted = is.read_bool()?; }, 34 => { self.vnet = is.read_string()?; }, 42 => { self.vhost = is.read_string()?; }, 50 => { self.vmask = is.read_string()?; }, 56 => { self.ipv6 = ::std::option::Option::Some(is.read_bool()?); }, 66 => { self.vprefix6 = is.read_string()?; }, 72 => { self.vprefixLen = is.read_uint32()?; }, 82 => { self.vhost6 = is.read_string()?; }, 90 => { self.vhostname = is.read_string()?; }, 98 => { self.tftpath = is.read_string()?; }, 106 => { self.bootfile = is.read_string()?; }, 114 => { self.dhcpstart = is.read_string()?; }, 122 => { self.dns = is.read_string()?; }, 130 => { self.dns6 = is.read_string()?; }, 138 => { self.host_dns = is.read_string()?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if self.disabled != false { my_size += 1 + 1; } if let Some(v) = self.ipv4 { my_size += 1 + 1; } if self.restricted != false { my_size += 1 + 1; } if !self.vnet.is_empty() { my_size += ::protobuf::rt::string_size(4, &self.vnet); } if !self.vhost.is_empty() { my_size += ::protobuf::rt::string_size(5, &self.vhost); } if !self.vmask.is_empty() { my_size += ::protobuf::rt::string_size(6, &self.vmask); } if let Some(v) = self.ipv6 { my_size += 1 + 1; } if !self.vprefix6.is_empty() { my_size += ::protobuf::rt::string_size(8, &self.vprefix6); } if self.vprefixLen != 0 { my_size += ::protobuf::rt::uint32_size(9, self.vprefixLen); } if !self.vhost6.is_empty() { my_size += ::protobuf::rt::string_size(10, &self.vhost6); } if !self.vhostname.is_empty() { my_size += ::protobuf::rt::string_size(11, &self.vhostname); } if !self.tftpath.is_empty() { my_size += ::protobuf::rt::string_size(12, &self.tftpath); } if !self.bootfile.is_empty() { my_size += ::protobuf::rt::string_size(13, &self.bootfile); } if !self.dhcpstart.is_empty() { my_size += ::protobuf::rt::string_size(14, &self.dhcpstart); } if !self.dns.is_empty() { my_size += ::protobuf::rt::string_size(15, &self.dns); } if !self.dns6.is_empty() { my_size += ::protobuf::rt::string_size(16, &self.dns6); } if !self.host_dns.is_empty() { my_size += ::protobuf::rt::string_size(17, &self.host_dns); } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if self.disabled != false { os.write_bool(1, self.disabled)?; } if let Some(v) = self.ipv4 { os.write_bool(2, v)?; } if self.restricted != false { os.write_bool(3, self.restricted)?; } if !self.vnet.is_empty() { os.write_string(4, &self.vnet)?; } if !self.vhost.is_empty() { os.write_string(5, &self.vhost)?; } if !self.vmask.is_empty() { os.write_string(6, &self.vmask)?; } if let Some(v) = self.ipv6 { os.write_bool(7, v)?; } if !self.vprefix6.is_empty() { os.write_string(8, &self.vprefix6)?; } if self.vprefixLen != 0 { os.write_uint32(9, self.vprefixLen)?; } if !self.vhost6.is_empty() { os.write_string(10, &self.vhost6)?; } if !self.vhostname.is_empty() { os.write_string(11, &self.vhostname)?; } if !self.tftpath.is_empty() { os.write_string(12, &self.tftpath)?; } if !self.bootfile.is_empty() { os.write_string(13, &self.bootfile)?; } if !self.dhcpstart.is_empty() { os.write_string(14, &self.dhcpstart)?; } if !self.dns.is_empty() { os.write_string(15, &self.dns)?; } if !self.dns6.is_empty() { os.write_string(16, &self.dns6)?; } if !self.host_dns.is_empty() { os.write_string(17, &self.host_dns)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> SlirpOptions { SlirpOptions::new() } fn clear(&mut self) { self.disabled = false; self.ipv4 = ::std::option::Option::None; self.restricted = false; self.vnet.clear(); self.vhost.clear(); self.vmask.clear(); self.ipv6 = ::std::option::Option::None; self.vprefix6.clear(); self.vprefixLen = 0; self.vhost6.clear(); self.vhostname.clear(); self.tftpath.clear(); self.bootfile.clear(); self.dhcpstart.clear(); self.dns.clear(); self.dns6.clear(); self.host_dns.clear(); self.special_fields.clear(); } fn default_instance() -> &'static SlirpOptions { static instance: SlirpOptions = SlirpOptions { disabled: false, ipv4: ::std::option::Option::None, restricted: false, vnet: ::std::string::String::new(), vhost: ::std::string::String::new(), vmask: ::std::string::String::new(), ipv6: ::std::option::Option::None, vprefix6: ::std::string::String::new(), vprefixLen: 0, vhost6: ::std::string::String::new(), vhostname: ::std::string::String::new(), tftpath: ::std::string::String::new(), bootfile: ::std::string::String::new(), dhcpstart: ::std::string::String::new(), dns: ::std::string::String::new(), dns6: ::std::string::String::new(), host_dns: ::std::string::String::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for SlirpOptions { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("SlirpOptions").unwrap()).clone() } } impl ::std::fmt::Display for SlirpOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for SlirpOptions { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.HostapdOptions) pub struct HostapdOptions { // message fields // @@protoc_insertion_point(field:netsim.config.HostapdOptions.disabled) pub disabled: ::std::option::Option, // @@protoc_insertion_point(field:netsim.config.HostapdOptions.ssid) pub ssid: ::std::string::String, // @@protoc_insertion_point(field:netsim.config.HostapdOptions.passwd) pub passwd: ::std::string::String, // special fields // @@protoc_insertion_point(special_field:netsim.config.HostapdOptions.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a HostapdOptions { fn default() -> &'a HostapdOptions { ::default_instance() } } impl HostapdOptions { pub fn new() -> HostapdOptions { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(3); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "disabled", |m: &HostapdOptions| { &m.disabled }, |m: &mut HostapdOptions| { &mut m.disabled }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "ssid", |m: &HostapdOptions| { &m.ssid }, |m: &mut HostapdOptions| { &mut m.ssid }, )); fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>( "passwd", |m: &HostapdOptions| { &m.passwd }, |m: &mut HostapdOptions| { &mut m.passwd }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "HostapdOptions", fields, oneofs, ) } } impl ::protobuf::Message for HostapdOptions { const NAME: &'static str = "HostapdOptions"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 8 => { self.disabled = ::std::option::Option::Some(is.read_bool()?); }, 18 => { self.ssid = is.read_string()?; }, 26 => { self.passwd = is.read_string()?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.disabled { my_size += 1 + 1; } if !self.ssid.is_empty() { my_size += ::protobuf::rt::string_size(2, &self.ssid); } if !self.passwd.is_empty() { my_size += ::protobuf::rt::string_size(3, &self.passwd); } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.disabled { os.write_bool(1, v)?; } if !self.ssid.is_empty() { os.write_string(2, &self.ssid)?; } if !self.passwd.is_empty() { os.write_string(3, &self.passwd)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> HostapdOptions { HostapdOptions::new() } fn clear(&mut self) { self.disabled = ::std::option::Option::None; self.ssid.clear(); self.passwd.clear(); self.special_fields.clear(); } fn default_instance() -> &'static HostapdOptions { static instance: HostapdOptions = HostapdOptions { disabled: ::std::option::Option::None, ssid: ::std::string::String::new(), passwd: ::std::string::String::new(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for HostapdOptions { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("HostapdOptions").unwrap()).clone() } } impl ::std::fmt::Display for HostapdOptions { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for HostapdOptions { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.WiFi) pub struct WiFi { // message fields // @@protoc_insertion_point(field:netsim.config.WiFi.slirp_options) pub slirp_options: ::protobuf::MessageField, // @@protoc_insertion_point(field:netsim.config.WiFi.hostapd_options) pub hostapd_options: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:netsim.config.WiFi.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a WiFi { fn default() -> &'a WiFi { ::default_instance() } } impl WiFi { pub fn new() -> WiFi { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(2); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, SlirpOptions>( "slirp_options", |m: &WiFi| { &m.slirp_options }, |m: &mut WiFi| { &mut m.slirp_options }, )); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, HostapdOptions>( "hostapd_options", |m: &WiFi| { &m.hostapd_options }, |m: &mut WiFi| { &mut m.hostapd_options }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "WiFi", fields, oneofs, ) } } impl ::protobuf::Message for WiFi { const NAME: &'static str = "WiFi"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.slirp_options)?; }, 18 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.hostapd_options)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.slirp_options.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let Some(v) = self.hostapd_options.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.slirp_options.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } if let Some(v) = self.hostapd_options.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> WiFi { WiFi::new() } fn clear(&mut self) { self.slirp_options.clear(); self.hostapd_options.clear(); self.special_fields.clear(); } fn default_instance() -> &'static WiFi { static instance: WiFi = WiFi { slirp_options: ::protobuf::MessageField::none(), hostapd_options: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for WiFi { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("WiFi").unwrap()).clone() } } impl ::std::fmt::Display for WiFi { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for WiFi { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.Bluetooth) pub struct Bluetooth { // message fields // @@protoc_insertion_point(field:netsim.config.Bluetooth.properties) pub properties: ::protobuf::MessageField, // @@protoc_insertion_point(field:netsim.config.Bluetooth.disable_address_reuse) pub disable_address_reuse: ::std::option::Option, // @@protoc_insertion_point(field:netsim.config.Bluetooth.test_beacons) pub test_beacons: ::std::option::Option, // special fields // @@protoc_insertion_point(special_field:netsim.config.Bluetooth.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Bluetooth { fn default() -> &'a Bluetooth { ::default_instance() } } impl Bluetooth { pub fn new() -> Bluetooth { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(3); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::configuration::Controller>( "properties", |m: &Bluetooth| { &m.properties }, |m: &mut Bluetooth| { &mut m.properties }, )); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "disable_address_reuse", |m: &Bluetooth| { &m.disable_address_reuse }, |m: &mut Bluetooth| { &mut m.disable_address_reuse }, )); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "test_beacons", |m: &Bluetooth| { &m.test_beacons }, |m: &mut Bluetooth| { &mut m.test_beacons }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Bluetooth", fields, oneofs, ) } } impl ::protobuf::Message for Bluetooth { const NAME: &'static str = "Bluetooth"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.properties)?; }, 16 => { self.disable_address_reuse = ::std::option::Option::Some(is.read_bool()?); }, 24 => { self.test_beacons = ::std::option::Option::Some(is.read_bool()?); }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.properties.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let Some(v) = self.disable_address_reuse { my_size += 1 + 1; } if let Some(v) = self.test_beacons { my_size += 1 + 1; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.properties.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } if let Some(v) = self.disable_address_reuse { os.write_bool(2, v)?; } if let Some(v) = self.test_beacons { os.write_bool(3, v)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> Bluetooth { Bluetooth::new() } fn clear(&mut self) { self.properties.clear(); self.disable_address_reuse = ::std::option::Option::None; self.test_beacons = ::std::option::Option::None; self.special_fields.clear(); } fn default_instance() -> &'static Bluetooth { static instance: Bluetooth = Bluetooth { properties: ::protobuf::MessageField::none(), disable_address_reuse: ::std::option::Option::None, test_beacons: ::std::option::Option::None, special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for Bluetooth { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("Bluetooth").unwrap()).clone() } } impl ::std::fmt::Display for Bluetooth { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Bluetooth { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.Capture) pub struct Capture { // message fields // @@protoc_insertion_point(field:netsim.config.Capture.enabled) pub enabled: ::std::option::Option, // special fields // @@protoc_insertion_point(special_field:netsim.config.Capture.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Capture { fn default() -> &'a Capture { ::default_instance() } } impl Capture { pub fn new() -> Capture { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(1); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_option_accessor::<_, _>( "enabled", |m: &Capture| { &m.enabled }, |m: &mut Capture| { &mut m.enabled }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Capture", fields, oneofs, ) } } impl ::protobuf::Message for Capture { const NAME: &'static str = "Capture"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 8 => { self.enabled = ::std::option::Option::Some(is.read_bool()?); }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.enabled { my_size += 1 + 1; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.enabled { os.write_bool(1, v)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> Capture { Capture::new() } fn clear(&mut self) { self.enabled = ::std::option::Option::None; self.special_fields.clear(); } fn default_instance() -> &'static Capture { static instance: Capture = Capture { enabled: ::std::option::Option::None, special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for Capture { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("Capture").unwrap()).clone() } } impl ::std::fmt::Display for Capture { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Capture { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } #[derive(PartialEq,Clone,Default,Debug)] // @@protoc_insertion_point(message:netsim.config.Config) pub struct Config { // message fields // @@protoc_insertion_point(field:netsim.config.Config.bluetooth) pub bluetooth: ::protobuf::MessageField, // @@protoc_insertion_point(field:netsim.config.Config.wifi) pub wifi: ::protobuf::MessageField, // @@protoc_insertion_point(field:netsim.config.Config.capture) pub capture: ::protobuf::MessageField, // special fields // @@protoc_insertion_point(special_field:netsim.config.Config.special_fields) pub special_fields: ::protobuf::SpecialFields, } impl<'a> ::std::default::Default for &'a Config { fn default() -> &'a Config { ::default_instance() } } impl Config { pub fn new() -> Config { ::std::default::Default::default() } fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData { let mut fields = ::std::vec::Vec::with_capacity(3); let mut oneofs = ::std::vec::Vec::with_capacity(0); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Bluetooth>( "bluetooth", |m: &Config| { &m.bluetooth }, |m: &mut Config| { &mut m.bluetooth }, )); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, WiFi>( "wifi", |m: &Config| { &m.wifi }, |m: &mut Config| { &mut m.wifi }, )); fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Capture>( "capture", |m: &Config| { &m.capture }, |m: &mut Config| { &mut m.capture }, )); ::protobuf::reflect::GeneratedMessageDescriptorData::new_2::( "Config", fields, oneofs, ) } } impl ::protobuf::Message for Config { const NAME: &'static str = "Config"; fn is_initialized(&self) -> bool { true } fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> { while let Some(tag) = is.read_raw_tag_or_eof()? { match tag { 10 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.bluetooth)?; }, 18 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.wifi)?; }, 26 => { ::protobuf::rt::read_singular_message_into_field(is, &mut self.capture)?; }, tag => { ::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?; }, }; } ::std::result::Result::Ok(()) } // Compute sizes of nested messages #[allow(unused_variables)] fn compute_size(&self) -> u64 { let mut my_size = 0; if let Some(v) = self.bluetooth.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let Some(v) = self.wifi.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } if let Some(v) = self.capture.as_ref() { let len = v.compute_size(); my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; } my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields()); self.special_fields.cached_size().set(my_size as u32); my_size } fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> { if let Some(v) = self.bluetooth.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(1, v, os)?; } if let Some(v) = self.wifi.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(2, v, os)?; } if let Some(v) = self.capture.as_ref() { ::protobuf::rt::write_message_field_with_cached_size(3, v, os)?; } os.write_unknown_fields(self.special_fields.unknown_fields())?; ::std::result::Result::Ok(()) } fn special_fields(&self) -> &::protobuf::SpecialFields { &self.special_fields } fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields { &mut self.special_fields } fn new() -> Config { Config::new() } fn clear(&mut self) { self.bluetooth.clear(); self.wifi.clear(); self.capture.clear(); self.special_fields.clear(); } fn default_instance() -> &'static Config { static instance: Config = Config { bluetooth: ::protobuf::MessageField::none(), wifi: ::protobuf::MessageField::none(), capture: ::protobuf::MessageField::none(), special_fields: ::protobuf::SpecialFields::new(), }; &instance } } impl ::protobuf::MessageFull for Config { fn descriptor() -> ::protobuf::reflect::MessageDescriptor { static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new(); descriptor.get(|| file_descriptor().message_by_package_relative_name("Config").unwrap()).clone() } } impl ::std::fmt::Display for Config { fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { ::protobuf::text_format::fmt(self, f) } } impl ::protobuf::reflect::ProtobufValue for Config { type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage; } static file_descriptor_proto_data: &'static [u8] = b"\ \n\x13netsim/config.proto\x12\rnetsim.config\x1a\x1drootcanal/configurat\ ion.proto\"\xd5\x03\n\x0cSlirpOptions\x12\x1a\n\x08disabled\x18\x01\x20\ \x01(\x08R\x08disabled\x12\x17\n\x04ipv4\x18\x02\x20\x01(\x08H\0R\x04ipv\ 4\x88\x01\x01\x12\x1e\n\nrestricted\x18\x03\x20\x01(\x08R\nrestricted\ \x12\x12\n\x04vnet\x18\x04\x20\x01(\tR\x04vnet\x12\x14\n\x05vhost\x18\ \x05\x20\x01(\tR\x05vhost\x12\x14\n\x05vmask\x18\x06\x20\x01(\tR\x05vmas\ k\x12\x17\n\x04ipv6\x18\x07\x20\x01(\x08H\x01R\x04ipv6\x88\x01\x01\x12\ \x1a\n\x08vprefix6\x18\x08\x20\x01(\tR\x08vprefix6\x12\x1e\n\nvprefixLen\ \x18\t\x20\x01(\rR\nvprefixLen\x12\x16\n\x06vhost6\x18\n\x20\x01(\tR\x06\ vhost6\x12\x1c\n\tvhostname\x18\x0b\x20\x01(\tR\tvhostname\x12\x18\n\x07\ tftpath\x18\x0c\x20\x01(\tR\x07tftpath\x12\x1a\n\x08bootfile\x18\r\x20\ \x01(\tR\x08bootfile\x12\x1c\n\tdhcpstart\x18\x0e\x20\x01(\tR\tdhcpstart\ \x12\x10\n\x03dns\x18\x0f\x20\x01(\tR\x03dns\x12\x12\n\x04dns6\x18\x10\ \x20\x01(\tR\x04dns6\x12\x19\n\x08host_dns\x18\x11\x20\x01(\tR\x07hostDn\ sB\x07\n\x05_ipv4B\x07\n\x05_ipv6\"j\n\x0eHostapdOptions\x12\x1f\n\x08di\ sabled\x18\x01\x20\x01(\x08H\0R\x08disabled\x88\x01\x01\x12\x12\n\x04ssi\ d\x18\x02\x20\x01(\tR\x04ssid\x12\x16\n\x06passwd\x18\x03\x20\x01(\tR\ \x06passwdB\x0b\n\t_disabled\"\x90\x01\n\x04WiFi\x12@\n\rslirp_options\ \x18\x01\x20\x01(\x0b2\x1b.netsim.config.SlirpOptionsR\x0cslirpOptions\ \x12F\n\x0fhostapd_options\x18\x02\x20\x01(\x0b2\x1d.netsim.config.Hosta\ pdOptionsR\x0ehostapdOptions\"\xf0\x01\n\tBluetooth\x12H\n\nproperties\ \x18\x01\x20\x01(\x0b2#.rootcanal.configuration.ControllerH\0R\nproperti\ es\x88\x01\x01\x127\n\x15disable_address_reuse\x18\x02\x20\x01(\x08H\x01\ R\x13disableAddressReuse\x88\x01\x01\x12&\n\x0ctest_beacons\x18\x03\x20\ \x01(\x08H\x02R\x0btestBeacons\x88\x01\x01B\r\n\x0b_propertiesB\x18\n\ \x16_disable_address_reuseB\x0f\n\r_test_beacons\"4\n\x07Capture\x12\x1d\ \n\x07enabled\x18\x01\x20\x01(\x08H\0R\x07enabled\x88\x01\x01B\n\n\x08_e\ nabled\"\x9b\x01\n\x06Config\x126\n\tbluetooth\x18\x01\x20\x01(\x0b2\x18\ .netsim.config.BluetoothR\tbluetooth\x12'\n\x04wifi\x18\x02\x20\x01(\x0b\ 2\x13.netsim.config.WiFiR\x04wifi\x120\n\x07capture\x18\x03\x20\x01(\x0b\ 2\x16.netsim.config.CaptureR\x07captureb\x06proto3\ "; /// `FileDescriptorProto` object which was a source for this generated file fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto { static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new(); file_descriptor_proto_lazy.get(|| { ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap() }) } /// `FileDescriptor` object which allows dynamic access to files pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor { static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new(); static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new(); file_descriptor.get(|| { let generated_file_descriptor = generated_file_descriptor_lazy.get(|| { let mut deps = ::std::vec::Vec::with_capacity(1); deps.push(super::configuration::file_descriptor().clone()); let mut messages = ::std::vec::Vec::with_capacity(6); messages.push(SlirpOptions::generated_message_descriptor_data()); messages.push(HostapdOptions::generated_message_descriptor_data()); messages.push(WiFi::generated_message_descriptor_data()); messages.push(Bluetooth::generated_message_descriptor_data()); messages.push(Capture::generated_message_descriptor_data()); messages.push(Config::generated_message_descriptor_data()); let mut enums = ::std::vec::Vec::with_capacity(0); ::protobuf::reflect::GeneratedFileDescriptor::new_generated( file_descriptor_proto(), deps, messages, enums, ) }); ::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor) }) }