4 #ifndef PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
37 #include "dccl/option_extensions.pb.h"
40 #include <boost/units/quantity.hpp>
41 #include <boost/units/absolute.hpp>
42 #include <boost/units/dimensionless_type.hpp>
43 #include <boost/units/make_scaled_unit.hpp>
45 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[1];
64 class IPGatewayConfig;
65 class IPGatewayConfigDefaultTypeInternal;
94 return ::google::protobuf::internal::NameOfEnum(
99 return ::google::protobuf::internal::ParseNamedEnum<IPGatewayConfig_ModelType>(
118 *
this = ::std::move(from);
122 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
123 if (
this != &from) InternalSwap(&from);
131 return _internal_metadata_.unknown_fields();
134 return _internal_metadata_.mutable_unknown_fields();
137 static const ::google::protobuf::Descriptor*
descriptor();
156 return CreateMaybeMessage<IPGatewayConfig>(NULL);
160 return CreateMaybeMessage<IPGatewayConfig>(arena);
162 void CopyFrom(const ::google::protobuf::Message& from)
final;
163 void MergeFrom(const ::google::protobuf::Message& from)
final;
171 ::
google::protobuf::io::CodedInputStream* input) final;
173 ::
google::protobuf::io::CodedOutputStream* output) const final;
175 bool deterministic, ::
google::protobuf::uint8* target) const final;
181 void SetCachedSize(
int size)
const final;
184 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
187 inline void* MaybeArenaPtr()
const {
210 static inline const ::google::protobuf::EnumDescriptor*
231 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
256 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
258 const ::goby::middleware::protobuf::AppConfig&
app()
const;
268 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
270 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
280 const ::goby::acomms::protobuf::MACConfig& _internal_mac_cfg()
const;
282 const ::goby::acomms::protobuf::MACConfig&
mac_cfg()
const;
292 const ::goby::acomms::protobuf::ModemTransmission& _internal_bypass_mac_slot()
const;
294 const ::goby::acomms::protobuf::ModemTransmission&
bypass_mac_slot()
const;
393 void clear_has_app();
394 void set_has_interprocess();
395 void clear_has_interprocess();
396 void set_has_local_ipv4_address();
397 void clear_has_local_ipv4_address();
398 void set_has_cidr_netmask_prefix();
399 void clear_has_cidr_netmask_prefix();
400 void set_has_tun_number();
401 void clear_has_tun_number();
402 void set_has_enable_broadcast_address();
403 void clear_has_enable_broadcast_address();
404 void set_has_dynamic_address_count();
405 void clear_has_dynamic_address_count();
406 void set_has_model_type();
407 void clear_has_model_type();
408 void set_has_gamma_autonomy();
409 void clear_has_gamma_autonomy();
410 void set_has_gamma_collaboration();
411 void clear_has_gamma_collaboration();
412 void set_has_gateway_id();
413 void clear_has_gateway_id();
414 void set_has_total_ports();
415 void clear_has_total_ports();
416 void set_has_mac_cfg();
417 void clear_has_mac_cfg();
419 void clear_has_mtu();
420 void set_has_bypass_mac();
421 void clear_has_bypass_mac();
422 void set_has_bypass_mac_slot();
423 void clear_has_bypass_mac_slot();
424 void set_has_queue_size();
425 void clear_has_queue_size();
426 void set_has_only_rate();
427 void clear_has_only_rate();
430 size_t RequiredFieldsByteSizeFallback()
const;
432 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
433 ::google::protobuf::internal::HasBits<1> _has_bits_;
434 mutable ::google::protobuf::internal::CachedSize _cached_size_;
436 ::google::protobuf::internal::ArenaStringPtr local_ipv4_address_;
448 bool enable_broadcast_address_;
450 double gamma_autonomy_;
451 double gamma_collaboration_;
454 friend struct ::protobuf_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto::TableStruct;
462 #pragma GCC diagnostic push
463 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
469 return (_has_bits_[0] & 0x00000002u) != 0;
471 inline void IPGatewayConfig::set_has_app() {
472 _has_bits_[0] |= 0x00000002u;
474 inline void IPGatewayConfig::clear_has_app() {
475 _has_bits_[0] &= ~0x00000002u;
477 inline const ::goby::middleware::protobuf::AppConfig& IPGatewayConfig::_internal_app()
const {
481 const ::goby::middleware::protobuf::AppConfig* p = app_;
496 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
504 if (message_arena == NULL) {
509 if (message_arena != submessage_arena) {
510 app = ::google::protobuf::internal::GetOwnedMessage(
511 message_arena,
app, submessage_arena);
523 return (_has_bits_[0] & 0x00000004u) != 0;
525 inline void IPGatewayConfig::set_has_interprocess() {
526 _has_bits_[0] |= 0x00000004u;
528 inline void IPGatewayConfig::clear_has_interprocess() {
529 _has_bits_[0] &= ~0x00000004u;
531 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& IPGatewayConfig::_internal_interprocess()
const {
532 return *interprocess_;
535 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
542 clear_has_interprocess();
544 interprocess_ = NULL;
548 set_has_interprocess();
549 if (interprocess_ == NULL) {
550 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
554 return interprocess_;
558 if (message_arena == NULL) {
563 if (message_arena != submessage_arena) {
564 interprocess = ::google::protobuf::internal::GetOwnedMessage(
567 set_has_interprocess();
569 clear_has_interprocess();
577 return (_has_bits_[0] & 0x00000001u) != 0;
579 inline void IPGatewayConfig::set_has_local_ipv4_address() {
580 _has_bits_[0] |= 0x00000001u;
582 inline void IPGatewayConfig::clear_has_local_ipv4_address() {
583 _has_bits_[0] &= ~0x00000001u;
587 clear_has_local_ipv4_address();
591 return local_ipv4_address_.GetNoArena();
594 set_has_local_ipv4_address();
600 set_has_local_ipv4_address();
601 local_ipv4_address_.SetNoArena(
607 GOOGLE_DCHECK(value != NULL);
608 set_has_local_ipv4_address();
613 set_has_local_ipv4_address();
615 ::std::string(
reinterpret_cast<const char*
>(value), size));
619 set_has_local_ipv4_address();
628 clear_has_local_ipv4_address();
633 set_has_local_ipv4_address();
635 clear_has_local_ipv4_address();
643 return (_has_bits_[0] & 0x00000020u) != 0;
645 inline void IPGatewayConfig::set_has_cidr_netmask_prefix() {
646 _has_bits_[0] |= 0x00000020u;
648 inline void IPGatewayConfig::clear_has_cidr_netmask_prefix() {
649 _has_bits_[0] &= ~0x00000020u;
652 cidr_netmask_prefix_ = 0u;
653 clear_has_cidr_netmask_prefix();
657 return cidr_netmask_prefix_;
660 set_has_cidr_netmask_prefix();
661 cidr_netmask_prefix_ = value;
667 return (_has_bits_[0] & 0x00000040u) != 0;
669 inline void IPGatewayConfig::set_has_tun_number() {
670 _has_bits_[0] |= 0x00000040u;
672 inline void IPGatewayConfig::clear_has_tun_number() {
673 _has_bits_[0] &= ~0x00000040u;
677 clear_has_tun_number();
684 set_has_tun_number();
691 return (_has_bits_[0] & 0x00001000u) != 0;
693 inline void IPGatewayConfig::set_has_enable_broadcast_address() {
694 _has_bits_[0] |= 0x00001000u;
696 inline void IPGatewayConfig::clear_has_enable_broadcast_address() {
697 _has_bits_[0] &= ~0x00001000u;
700 enable_broadcast_address_ =
true;
701 clear_has_enable_broadcast_address();
705 return enable_broadcast_address_;
708 set_has_enable_broadcast_address();
709 enable_broadcast_address_ = value;
715 return (_has_bits_[0] & 0x00000080u) != 0;
717 inline void IPGatewayConfig::set_has_dynamic_address_count() {
718 _has_bits_[0] |= 0x00000080u;
720 inline void IPGatewayConfig::clear_has_dynamic_address_count() {
721 _has_bits_[0] &= ~0x00000080u;
724 dynamic_address_count_ = 0u;
725 clear_has_dynamic_address_count();
729 return dynamic_address_count_;
732 set_has_dynamic_address_count();
733 dynamic_address_count_ = value;
739 return (_has_bits_[0] & 0x00002000u) != 0;
741 inline void IPGatewayConfig::set_has_model_type() {
742 _has_bits_[0] |= 0x00002000u;
744 inline void IPGatewayConfig::clear_has_model_type() {
745 _has_bits_[0] &= ~0x00002000u;
749 clear_has_model_type();
757 set_has_model_type();
764 return (_has_bits_[0] & 0x00004000u) != 0;
766 inline void IPGatewayConfig::set_has_gamma_autonomy() {
767 _has_bits_[0] |= 0x00004000u;
769 inline void IPGatewayConfig::clear_has_gamma_autonomy() {
770 _has_bits_[0] &= ~0x00004000u;
773 gamma_autonomy_ = 0.75;
774 clear_has_gamma_autonomy();
778 return gamma_autonomy_;
781 set_has_gamma_autonomy();
782 gamma_autonomy_ = value;
788 return (_has_bits_[0] & 0x00008000u) != 0;
790 inline void IPGatewayConfig::set_has_gamma_collaboration() {
791 _has_bits_[0] |= 0x00008000u;
793 inline void IPGatewayConfig::clear_has_gamma_collaboration() {
794 _has_bits_[0] &= ~0x00008000u;
797 gamma_collaboration_ = 0.25;
798 clear_has_gamma_collaboration();
802 return gamma_collaboration_;
805 set_has_gamma_collaboration();
806 gamma_collaboration_ = value;
812 return (_has_bits_[0] & 0x00010000u) != 0;
814 inline void IPGatewayConfig::set_has_gateway_id() {
815 _has_bits_[0] |= 0x00010000u;
817 inline void IPGatewayConfig::clear_has_gateway_id() {
818 _has_bits_[0] &= ~0x00010000u;
822 clear_has_gateway_id();
829 set_has_gateway_id();
836 return (_has_bits_[0] & 0x00020000u) != 0;
838 inline void IPGatewayConfig::set_has_total_ports() {
839 _has_bits_[0] |= 0x00020000u;
841 inline void IPGatewayConfig::clear_has_total_ports() {
842 _has_bits_[0] &= ~0x00020000u;
846 clear_has_total_ports();
853 set_has_total_ports();
854 total_ports_ = value;
860 return static_udp_port_.size();
863 static_udp_port_.Clear();
867 return static_udp_port_.Get(index);
870 static_udp_port_.Set(index, value);
874 static_udp_port_.Add(value);
877 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
880 return static_udp_port_;
882 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
885 return &static_udp_port_;
890 return (_has_bits_[0] & 0x00000008u) != 0;
892 inline void IPGatewayConfig::set_has_mac_cfg() {
893 _has_bits_[0] |= 0x00000008u;
895 inline void IPGatewayConfig::clear_has_mac_cfg() {
896 _has_bits_[0] &= ~0x00000008u;
898 inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::_internal_mac_cfg()
const {
902 const ::goby::acomms::protobuf::MACConfig* p = mac_cfg_;
916 if (mac_cfg_ == NULL) {
917 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::MACConfig>(GetArenaNoVirtual());
925 if (message_arena == NULL) {
930 if (message_arena != submessage_arena) {
931 mac_cfg = ::google::protobuf::internal::GetOwnedMessage(
932 message_arena,
mac_cfg, submessage_arena);
944 return (_has_bits_[0] & 0x00000100u) != 0;
946 inline void IPGatewayConfig::set_has_mtu() {
947 _has_bits_[0] |= 0x00000100u;
949 inline void IPGatewayConfig::clear_has_mtu() {
950 _has_bits_[0] &= ~0x00000100u;
968 return (_has_bits_[0] & 0x00000200u) != 0;
970 inline void IPGatewayConfig::set_has_bypass_mac() {
971 _has_bits_[0] |= 0x00000200u;
973 inline void IPGatewayConfig::clear_has_bypass_mac() {
974 _has_bits_[0] &= ~0x00000200u;
978 clear_has_bypass_mac();
985 set_has_bypass_mac();
992 return (_has_bits_[0] & 0x00000010u) != 0;
994 inline void IPGatewayConfig::set_has_bypass_mac_slot() {
995 _has_bits_[0] |= 0x00000010u;
997 inline void IPGatewayConfig::clear_has_bypass_mac_slot() {
998 _has_bits_[0] &= ~0x00000010u;
1000 inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::_internal_bypass_mac_slot()
const {
1001 return *bypass_mac_slot_;
1004 const ::goby::acomms::protobuf::ModemTransmission* p = bypass_mac_slot_;
1011 clear_has_bypass_mac_slot();
1013 bypass_mac_slot_ = NULL;
1017 set_has_bypass_mac_slot();
1018 if (bypass_mac_slot_ == NULL) {
1019 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::ModemTransmission>(GetArenaNoVirtual());
1020 bypass_mac_slot_ = p;
1023 return bypass_mac_slot_;
1027 if (message_arena == NULL) {
1032 if (message_arena != submessage_arena) {
1036 set_has_bypass_mac_slot();
1038 clear_has_bypass_mac_slot();
1046 return (_has_bits_[0] & 0x00000800u) != 0;
1048 inline void IPGatewayConfig::set_has_queue_size() {
1049 _has_bits_[0] |= 0x00000800u;
1051 inline void IPGatewayConfig::clear_has_queue_size() {
1052 _has_bits_[0] &= ~0x00000800u;
1056 clear_has_queue_size();
1063 set_has_queue_size();
1064 queue_size_ = value;
1070 return (_has_bits_[0] & 0x00000400u) != 0;
1072 inline void IPGatewayConfig::set_has_only_rate() {
1073 _has_bits_[0] |= 0x00000400u;
1075 inline void IPGatewayConfig::clear_has_only_rate() {
1076 _has_bits_[0] &= ~0x00000400u;
1080 clear_has_only_rate();
1087 set_has_only_rate();
1093 #pragma GCC diagnostic pop
1105 namespace protobuf {
1109 inline const EnumDescriptor* GetEnumDescriptor< ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType>() {
1118 #endif // PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto