4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
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 3021012 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.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>
39#include <boost/units/quantity.hpp>
40#include <boost/units/absolute.hpp>
41#include <boost/units/dimensionless_type.hpp>
42#include <boost/units/make_scaled_unit.hpp>
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
50PROTOBUF_NAMESPACE_CLOSE
63struct IPGatewayConfigDefaultTypeInternal;
70PROTOBUF_NAMESPACE_OPEN
72PROTOBUF_NAMESPACE_CLOSE
91 static_assert(::std::is_same<T, IPGatewayConfig_ModelType>::value ||
92 ::std::is_integral<T>::value,
93 "Incorrect type passed to function IPGatewayConfig_ModelType_Name.");
94 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
99 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<IPGatewayConfig_ModelType>(
105 public ::PROTOBUF_NAMESPACE_ID::Message {
109 explicit PROTOBUF_CONSTEXPR
IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
114 *
this = ::std::move(from);
122 if (
this == &from)
return *
this;
123 if (GetOwningArena() == from.GetOwningArena()
124 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
125 && GetOwningArena() !=
nullptr
136 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
139 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
165 if (other ==
this)
return;
166 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() !=
nullptr &&
168 GetOwningArena() == other->GetOwningArena()) {
170 if (GetOwningArena() == other->GetOwningArena()) {
174 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
178 if (other ==
this)
return;
179 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
186 return CreateMaybeMessage<IPGatewayConfig>(arena);
188 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
190 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
192 IPGatewayConfig::MergeImpl(*
this, from);
195 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
197 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
203 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
207 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
209 void SetCachedSize(
int size)
const final;
213 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
214 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
215 return "goby.apps.zeromq.acomms.protobuf.IPGatewayConfig";
219 bool is_message_owned =
false);
223 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
243 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
249 static_assert(::std::is_same<T, ModelType>::value ||
250 ::std::is_integral<T>::value,
251 "Incorrect type passed to function ModelType_Name.");
285 int _internal_static_udp_port_size()
const;
289 uint32_t _internal_static_udp_port(
int index)
const;
290 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
291 _internal_static_udp_port()
const;
292 void _internal_add_static_udp_port(uint32_t value);
293 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
294 _internal_mutable_static_udp_port();
299 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
301 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
307 bool _internal_has_local_ipv4_address()
const;
311 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
317 const std::string& _internal_local_ipv4_address()
const;
318 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_local_ipv4_address(
const std::string& value);
319 std::string* _internal_mutable_local_ipv4_address();
325 bool _internal_has_app()
const;
328 const ::goby::middleware::protobuf::AppConfig&
app()
const;
329 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
333 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
343 bool _internal_has_interprocess()
const;
346 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
351 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
361 bool _internal_has_mac_cfg()
const;
364 const ::goby::acomms::protobuf::MACConfig&
mac_cfg()
const;
365 PROTOBUF_NODISCARD ::goby::acomms::protobuf::MACConfig*
release_mac_cfg();
369 const ::goby::acomms::protobuf::MACConfig& _internal_mac_cfg()
const;
379 bool _internal_has_bypass_mac_slot()
const;
382 const ::goby::acomms::protobuf::ModemTransmission&
bypass_mac_slot()
const;
387 const ::goby::acomms::protobuf::ModemTransmission& _internal_bypass_mac_slot()
const;
397 bool _internal_has_cidr_netmask_prefix()
const;
403 uint32_t _internal_cidr_netmask_prefix()
const;
404 void _internal_set_cidr_netmask_prefix(uint32_t value);
410 bool _internal_has_tun_number()
const;
416 int32_t _internal_tun_number()
const;
417 void _internal_set_tun_number(int32_t value);
423 bool _internal_has_dynamic_address_count()
const;
429 uint32_t _internal_dynamic_address_count()
const;
430 void _internal_set_dynamic_address_count(uint32_t value);
436 bool _internal_has_mtu()
const;
439 uint32_t
mtu()
const;
442 uint32_t _internal_mtu()
const;
443 void _internal_set_mtu(uint32_t value);
449 bool _internal_has_bypass_mac()
const;
455 bool _internal_bypass_mac()
const;
456 void _internal_set_bypass_mac(
bool value);
462 bool _internal_has_only_rate()
const;
468 int32_t _internal_only_rate()
const;
469 void _internal_set_only_rate(int32_t value);
475 bool _internal_has_queue_size()
const;
481 int32_t _internal_queue_size()
const;
482 void _internal_set_queue_size(int32_t value);
488 bool _internal_has_enable_broadcast_address()
const;
494 bool _internal_enable_broadcast_address()
const;
495 void _internal_set_enable_broadcast_address(
bool value);
501 bool _internal_has_model_type()
const;
514 bool _internal_has_gamma_autonomy()
const;
520 double _internal_gamma_autonomy()
const;
521 void _internal_set_gamma_autonomy(
double value);
527 bool _internal_has_gamma_collaboration()
const;
533 double _internal_gamma_collaboration()
const;
534 void _internal_set_gamma_collaboration(
double value);
540 bool _internal_has_gateway_id()
const;
546 int32_t _internal_gateway_id()
const;
547 void _internal_set_gateway_id(int32_t value);
553 bool _internal_has_total_ports()
const;
559 int32_t _internal_total_ports()
const;
560 void _internal_set_total_ports(int32_t value);
568 size_t RequiredFieldsByteSizeFallback()
const;
570 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
571 typedef void InternalArenaConstructable_;
572 typedef void DestructorSkippable_;
574 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
575 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
576 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > static_udp_port_;
577 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_ipv4_address_;
582 uint32_t cidr_netmask_prefix_;
584 uint32_t dynamic_address_count_;
589 bool enable_broadcast_address_;
591 double gamma_autonomy_;
592 double gamma_collaboration_;
594 int32_t total_ports_;
597 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto;
605 #pragma GCC diagnostic push
606 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
611inline bool IPGatewayConfig::_internal_has_app()
const {
612 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
613 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
617 return _internal_has_app();
619inline const ::goby::middleware::protobuf::AppConfig& IPGatewayConfig::_internal_app()
const {
620 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
626 return _internal_app();
630 if (GetArenaForAllocation() ==
nullptr) {
631 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
635 _impl_._has_bits_[0] |= 0x00000002u;
637 _impl_._has_bits_[0] &= ~0x00000002u;
642 _impl_._has_bits_[0] &= ~0x00000002u;
645#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
646 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
647 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
648 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
650 if (GetArenaForAllocation() !=
nullptr) {
651 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
658 _impl_._has_bits_[0] &= ~0x00000002u;
663inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::_internal_mutable_app() {
664 _impl_._has_bits_[0] |= 0x00000002u;
665 if (
_impl_.app_ ==
nullptr) {
677 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
678 if (message_arena ==
nullptr) {
679 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
682 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
683 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
684 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
685 if (message_arena != submessage_arena) {
686 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
687 message_arena,
app, submessage_arena);
689 _impl_._has_bits_[0] |= 0x00000002u;
691 _impl_._has_bits_[0] &= ~0x00000002u;
698inline bool IPGatewayConfig::_internal_has_interprocess()
const {
699 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
700 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
704 return _internal_has_interprocess();
706inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& IPGatewayConfig::_internal_interprocess()
const {
707 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
713 return _internal_interprocess();
717 if (GetArenaForAllocation() ==
nullptr) {
718 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
722 _impl_._has_bits_[0] |= 0x00000004u;
724 _impl_._has_bits_[0] &= ~0x00000004u;
729 _impl_._has_bits_[0] &= ~0x00000004u;
731 _impl_.interprocess_ =
nullptr;
732#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
733 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
734 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
735 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
737 if (GetArenaForAllocation() !=
nullptr) {
738 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
745 _impl_._has_bits_[0] &= ~0x00000004u;
747 _impl_.interprocess_ =
nullptr;
750inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::_internal_mutable_interprocess() {
751 _impl_._has_bits_[0] |= 0x00000004u;
752 if (
_impl_.interprocess_ ==
nullptr) {
756 return _impl_.interprocess_;
764 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
765 if (message_arena ==
nullptr) {
766 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
769 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
770 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
771 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
772 if (message_arena != submessage_arena) {
773 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
776 _impl_._has_bits_[0] |= 0x00000004u;
778 _impl_._has_bits_[0] &= ~0x00000004u;
785inline bool IPGatewayConfig::_internal_has_local_ipv4_address()
const {
786 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
790 return _internal_has_local_ipv4_address();
793 _impl_.local_ipv4_address_.ClearToEmpty();
794 _impl_._has_bits_[0] &= ~0x00000001u;
798 return _internal_local_ipv4_address();
800template <
typename ArgT0,
typename... ArgT>
801inline PROTOBUF_ALWAYS_INLINE
803 _impl_._has_bits_[0] |= 0x00000001u;
804 _impl_.local_ipv4_address_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
808 std::string* _s = _internal_mutable_local_ipv4_address();
812inline const std::string& IPGatewayConfig::_internal_local_ipv4_address()
const {
813 return _impl_.local_ipv4_address_.Get();
815inline void IPGatewayConfig::_internal_set_local_ipv4_address(
const std::string& value) {
816 _impl_._has_bits_[0] |= 0x00000001u;
817 _impl_.local_ipv4_address_.Set(value, GetArenaForAllocation());
819inline std::string* IPGatewayConfig::_internal_mutable_local_ipv4_address() {
820 _impl_._has_bits_[0] |= 0x00000001u;
821 return _impl_.local_ipv4_address_.Mutable(GetArenaForAllocation());
825 if (!_internal_has_local_ipv4_address()) {
828 _impl_._has_bits_[0] &= ~0x00000001u;
829 auto* p =
_impl_.local_ipv4_address_.Release();
830#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
831 if (
_impl_.local_ipv4_address_.IsDefault()) {
832 _impl_.local_ipv4_address_.Set(
"", GetArenaForAllocation());
839 _impl_._has_bits_[0] |= 0x00000001u;
841 _impl_._has_bits_[0] &= ~0x00000001u;
844#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
845 if (
_impl_.local_ipv4_address_.IsDefault()) {
846 _impl_.local_ipv4_address_.Set(
"", GetArenaForAllocation());
853inline bool IPGatewayConfig::_internal_has_cidr_netmask_prefix()
const {
854 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
858 return _internal_has_cidr_netmask_prefix();
861 _impl_.cidr_netmask_prefix_ = 0u;
862 _impl_._has_bits_[0] &= ~0x00000020u;
864inline uint32_t IPGatewayConfig::_internal_cidr_netmask_prefix()
const {
865 return _impl_.cidr_netmask_prefix_;
869 return _internal_cidr_netmask_prefix();
871inline void IPGatewayConfig::_internal_set_cidr_netmask_prefix(uint32_t value) {
872 _impl_._has_bits_[0] |= 0x00000020u;
873 _impl_.cidr_netmask_prefix_ = value;
876 _internal_set_cidr_netmask_prefix(value);
881inline bool IPGatewayConfig::_internal_has_tun_number()
const {
882 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
886 return _internal_has_tun_number();
890 _impl_._has_bits_[0] &= ~0x00000040u;
892inline int32_t IPGatewayConfig::_internal_tun_number()
const {
893 return _impl_.tun_number_;
897 return _internal_tun_number();
899inline void IPGatewayConfig::_internal_set_tun_number(int32_t value) {
900 _impl_._has_bits_[0] |= 0x00000040u;
901 _impl_.tun_number_ = value;
904 _internal_set_tun_number(value);
909inline bool IPGatewayConfig::_internal_has_enable_broadcast_address()
const {
910 bool value = (
_impl_._has_bits_[0] & 0x00001000u) != 0;
914 return _internal_has_enable_broadcast_address();
917 _impl_.enable_broadcast_address_ =
true;
918 _impl_._has_bits_[0] &= ~0x00001000u;
920inline bool IPGatewayConfig::_internal_enable_broadcast_address()
const {
921 return _impl_.enable_broadcast_address_;
925 return _internal_enable_broadcast_address();
927inline void IPGatewayConfig::_internal_set_enable_broadcast_address(
bool value) {
928 _impl_._has_bits_[0] |= 0x00001000u;
929 _impl_.enable_broadcast_address_ = value;
932 _internal_set_enable_broadcast_address(value);
937inline bool IPGatewayConfig::_internal_has_dynamic_address_count()
const {
938 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
942 return _internal_has_dynamic_address_count();
945 _impl_.dynamic_address_count_ = 0u;
946 _impl_._has_bits_[0] &= ~0x00000080u;
948inline uint32_t IPGatewayConfig::_internal_dynamic_address_count()
const {
949 return _impl_.dynamic_address_count_;
953 return _internal_dynamic_address_count();
955inline void IPGatewayConfig::_internal_set_dynamic_address_count(uint32_t value) {
956 _impl_._has_bits_[0] |= 0x00000080u;
957 _impl_.dynamic_address_count_ = value;
960 _internal_set_dynamic_address_count(value);
965inline bool IPGatewayConfig::_internal_has_model_type()
const {
966 bool value = (
_impl_._has_bits_[0] & 0x00002000u) != 0;
970 return _internal_has_model_type();
974 _impl_._has_bits_[0] &= ~0x00002000u;
976inline ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::_internal_model_type()
const {
981 return _internal_model_type();
985 _impl_._has_bits_[0] |= 0x00002000u;
986 _impl_.model_type_ = value;
989 _internal_set_model_type(value);
994inline bool IPGatewayConfig::_internal_has_gamma_autonomy()
const {
995 bool value = (
_impl_._has_bits_[0] & 0x00004000u) != 0;
999 return _internal_has_gamma_autonomy();
1002 _impl_.gamma_autonomy_ = 0.75;
1003 _impl_._has_bits_[0] &= ~0x00004000u;
1005inline double IPGatewayConfig::_internal_gamma_autonomy()
const {
1006 return _impl_.gamma_autonomy_;
1010 return _internal_gamma_autonomy();
1012inline void IPGatewayConfig::_internal_set_gamma_autonomy(
double value) {
1013 _impl_._has_bits_[0] |= 0x00004000u;
1014 _impl_.gamma_autonomy_ = value;
1017 _internal_set_gamma_autonomy(value);
1022inline bool IPGatewayConfig::_internal_has_gamma_collaboration()
const {
1023 bool value = (
_impl_._has_bits_[0] & 0x00008000u) != 0;
1027 return _internal_has_gamma_collaboration();
1030 _impl_.gamma_collaboration_ = 0.25;
1031 _impl_._has_bits_[0] &= ~0x00008000u;
1033inline double IPGatewayConfig::_internal_gamma_collaboration()
const {
1034 return _impl_.gamma_collaboration_;
1038 return _internal_gamma_collaboration();
1040inline void IPGatewayConfig::_internal_set_gamma_collaboration(
double value) {
1041 _impl_._has_bits_[0] |= 0x00008000u;
1042 _impl_.gamma_collaboration_ = value;
1045 _internal_set_gamma_collaboration(value);
1050inline bool IPGatewayConfig::_internal_has_gateway_id()
const {
1051 bool value = (
_impl_._has_bits_[0] & 0x00010000u) != 0;
1055 return _internal_has_gateway_id();
1059 _impl_._has_bits_[0] &= ~0x00010000u;
1061inline int32_t IPGatewayConfig::_internal_gateway_id()
const {
1062 return _impl_.gateway_id_;
1066 return _internal_gateway_id();
1068inline void IPGatewayConfig::_internal_set_gateway_id(int32_t value) {
1069 _impl_._has_bits_[0] |= 0x00010000u;
1070 _impl_.gateway_id_ = value;
1073 _internal_set_gateway_id(value);
1078inline bool IPGatewayConfig::_internal_has_total_ports()
const {
1079 bool value = (
_impl_._has_bits_[0] & 0x00020000u) != 0;
1083 return _internal_has_total_ports();
1087 _impl_._has_bits_[0] &= ~0x00020000u;
1089inline int32_t IPGatewayConfig::_internal_total_ports()
const {
1090 return _impl_.total_ports_;
1094 return _internal_total_ports();
1096inline void IPGatewayConfig::_internal_set_total_ports(int32_t value) {
1097 _impl_._has_bits_[0] |= 0x00020000u;
1098 _impl_.total_ports_ = value;
1101 _internal_set_total_ports(value);
1106inline int IPGatewayConfig::_internal_static_udp_port_size()
const {
1107 return _impl_.static_udp_port_.size();
1110 return _internal_static_udp_port_size();
1113 _impl_.static_udp_port_.Clear();
1115inline uint32_t IPGatewayConfig::_internal_static_udp_port(
int index)
const {
1116 return _impl_.static_udp_port_.Get(index);
1120 return _internal_static_udp_port(index);
1123 _impl_.static_udp_port_.Set(index, value);
1126inline void IPGatewayConfig::_internal_add_static_udp_port(uint32_t value) {
1127 _impl_.static_udp_port_.Add(value);
1130 _internal_add_static_udp_port(value);
1133inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1134IPGatewayConfig::_internal_static_udp_port()
const {
1135 return _impl_.static_udp_port_;
1137inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1140 return _internal_static_udp_port();
1142inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1143IPGatewayConfig::_internal_mutable_static_udp_port() {
1144 return &
_impl_.static_udp_port_;
1146inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1149 return _internal_mutable_static_udp_port();
1153inline bool IPGatewayConfig::_internal_has_mac_cfg()
const {
1154 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1155 PROTOBUF_ASSUME(!value ||
_impl_.mac_cfg_ !=
nullptr);
1159 return _internal_has_mac_cfg();
1161inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::_internal_mac_cfg()
const {
1162 const ::goby::acomms::protobuf::MACConfig* p =
_impl_.mac_cfg_;
1168 return _internal_mac_cfg();
1172 if (GetArenaForAllocation() ==
nullptr) {
1173 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.mac_cfg_);
1177 _impl_._has_bits_[0] |= 0x00000008u;
1179 _impl_._has_bits_[0] &= ~0x00000008u;
1184 _impl_._has_bits_[0] &= ~0x00000008u;
1186 _impl_.mac_cfg_ =
nullptr;
1187#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1188 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1189 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1190 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1192 if (GetArenaForAllocation() !=
nullptr) {
1193 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1200 _impl_._has_bits_[0] &= ~0x00000008u;
1202 _impl_.mac_cfg_ =
nullptr;
1205inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::_internal_mutable_mac_cfg() {
1206 _impl_._has_bits_[0] |= 0x00000008u;
1207 if (
_impl_.mac_cfg_ ==
nullptr) {
1219 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1220 if (message_arena ==
nullptr) {
1221 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.mac_cfg_);
1224 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1225 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1226 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
mac_cfg));
1227 if (message_arena != submessage_arena) {
1228 mac_cfg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1229 message_arena,
mac_cfg, submessage_arena);
1231 _impl_._has_bits_[0] |= 0x00000008u;
1233 _impl_._has_bits_[0] &= ~0x00000008u;
1240inline bool IPGatewayConfig::_internal_has_mtu()
const {
1241 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
1245 return _internal_has_mtu();
1249 _impl_._has_bits_[0] &= ~0x00000100u;
1251inline uint32_t IPGatewayConfig::_internal_mtu()
const {
1256 return _internal_mtu();
1258inline void IPGatewayConfig::_internal_set_mtu(uint32_t value) {
1259 _impl_._has_bits_[0] |= 0x00000100u;
1263 _internal_set_mtu(value);
1268inline bool IPGatewayConfig::_internal_has_bypass_mac()
const {
1269 bool value = (
_impl_._has_bits_[0] & 0x00000200u) != 0;
1273 return _internal_has_bypass_mac();
1276 _impl_.bypass_mac_ =
false;
1277 _impl_._has_bits_[0] &= ~0x00000200u;
1279inline bool IPGatewayConfig::_internal_bypass_mac()
const {
1280 return _impl_.bypass_mac_;
1284 return _internal_bypass_mac();
1286inline void IPGatewayConfig::_internal_set_bypass_mac(
bool value) {
1287 _impl_._has_bits_[0] |= 0x00000200u;
1288 _impl_.bypass_mac_ = value;
1291 _internal_set_bypass_mac(value);
1296inline bool IPGatewayConfig::_internal_has_bypass_mac_slot()
const {
1297 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
1298 PROTOBUF_ASSUME(!value ||
_impl_.bypass_mac_slot_ !=
nullptr);
1302 return _internal_has_bypass_mac_slot();
1304inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::_internal_bypass_mac_slot()
const {
1305 const ::goby::acomms::protobuf::ModemTransmission* p =
_impl_.bypass_mac_slot_;
1311 return _internal_bypass_mac_slot();
1315 if (GetArenaForAllocation() ==
nullptr) {
1316 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.bypass_mac_slot_);
1320 _impl_._has_bits_[0] |= 0x00000010u;
1322 _impl_._has_bits_[0] &= ~0x00000010u;
1327 _impl_._has_bits_[0] &= ~0x00000010u;
1329 _impl_.bypass_mac_slot_ =
nullptr;
1330#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1331 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1332 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1333 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1335 if (GetArenaForAllocation() !=
nullptr) {
1336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1343 _impl_._has_bits_[0] &= ~0x00000010u;
1345 _impl_.bypass_mac_slot_ =
nullptr;
1348inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::_internal_mutable_bypass_mac_slot() {
1349 _impl_._has_bits_[0] |= 0x00000010u;
1350 if (
_impl_.bypass_mac_slot_ ==
nullptr) {
1352 _impl_.bypass_mac_slot_ = p;
1354 return _impl_.bypass_mac_slot_;
1362 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1363 if (message_arena ==
nullptr) {
1364 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.bypass_mac_slot_);
1367 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1368 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1369 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
bypass_mac_slot));
1370 if (message_arena != submessage_arena) {
1374 _impl_._has_bits_[0] |= 0x00000010u;
1376 _impl_._has_bits_[0] &= ~0x00000010u;
1383inline bool IPGatewayConfig::_internal_has_queue_size()
const {
1384 bool value = (
_impl_._has_bits_[0] & 0x00000800u) != 0;
1388 return _internal_has_queue_size();
1391 _impl_.queue_size_ = 100;
1392 _impl_._has_bits_[0] &= ~0x00000800u;
1394inline int32_t IPGatewayConfig::_internal_queue_size()
const {
1395 return _impl_.queue_size_;
1399 return _internal_queue_size();
1401inline void IPGatewayConfig::_internal_set_queue_size(int32_t value) {
1402 _impl_._has_bits_[0] |= 0x00000800u;
1403 _impl_.queue_size_ = value;
1406 _internal_set_queue_size(value);
1411inline bool IPGatewayConfig::_internal_has_only_rate()
const {
1412 bool value = (
_impl_._has_bits_[0] & 0x00000400u) != 0;
1416 return _internal_has_only_rate();
1420 _impl_._has_bits_[0] &= ~0x00000400u;
1422inline int32_t IPGatewayConfig::_internal_only_rate()
const {
1423 return _impl_.only_rate_;
1427 return _internal_only_rate();
1429inline void IPGatewayConfig::_internal_set_only_rate(int32_t value) {
1430 _impl_._has_bits_[0] |= 0x00000400u;
1431 _impl_.only_rate_ = value;
1434 _internal_set_only_rate(value);
1439 #pragma GCC diagnostic pop
1450PROTOBUF_NAMESPACE_OPEN
1455 return ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType_descriptor();
1458PROTOBUF_NAMESPACE_CLOSE
1462#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::acomms::protobuf::MACConfig * Arena::CreateMaybeMessage<::goby::acomms::protobuf::MACConfig >(Arena *)
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
bool has_cidr_netmask_prefix() const
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
bool has_gamma_autonomy() const
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ModelType_descriptor()
IPGatewayConfig & operator=(IPGatewayConfig &&from) noexcept
const ::goby::acomms::protobuf::MACConfig & mac_cfg() const
void set_enable_broadcast_address(bool value)
static constexpr ModelType UNIFORM
static const std::string & ModelType_Name(T enum_t_value)
bool has_queue_size() const
PROTOBUF_CONSTEXPR IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
bool has_only_rate() const
void clear_enable_broadcast_address()
void set_allocated_local_ipv4_address(std::string *local_ipv4_address)
void set_bypass_mac(bool value)
PROTOBUF_NODISCARD::goby::acomms::protobuf::MACConfig * release_mac_cfg()
::goby::acomms::protobuf::MACConfig * mutable_mac_cfg()
static bool ModelType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModelType *value)
uint32_t cidr_netmask_prefix() const
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
bool has_interprocess() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
bool has_bypass_mac() const
void add_static_udp_port(uint32_t value)
static const IPGatewayConfig & default_instance()
bool has_enable_broadcast_address() const
void set_mtu(uint32_t value)
const std::string & local_ipv4_address() const
bool has_bypass_mac_slot() const
const ::goby::acomms::protobuf::ModemTransmission & bypass_mac_slot() const
void set_local_ipv4_address(ArgT0 &&arg0, ArgT... args)
void set_gamma_collaboration(double value)
void CopyFrom(const IPGatewayConfig &from)
static constexpr ModelType ModelType_MIN
void set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig *mac_cfg)
void clear_bypass_mac_slot()
static constexpr int ModelType_ARRAYSIZE
int static_udp_port_size() const
void set_gateway_id(int32_t value)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
int32_t queue_size() const
static constexpr ModelType ModelType_MAX
::goby::acomms::protobuf::ModemTransmission * unsafe_arena_release_bypass_mac_slot()
bool has_gateway_id() const
void Swap(IPGatewayConfig *other)
void clear_local_ipv4_address()
static const ClassData _class_data_
void set_queue_size(int32_t value)
void set_tun_number(int32_t value)
::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType model_type() const
static constexpr ModelType AUTONOMY_COLLABORATION
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static bool ModelType_IsValid(int value)
void unsafe_arena_set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig *mac_cfg)
void set_dynamic_address_count(uint32_t value)
void set_model_type(::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType value)
uint32_t dynamic_address_count() const
int32_t gateway_id() const
void clear_gamma_autonomy()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
bool has_local_ipv4_address() const
void set_cidr_netmask_prefix(uint32_t value)
std::string * mutable_local_ipv4_address()
void clear_gamma_collaboration()
void set_allocated_bypass_mac_slot(::goby::acomms::protobuf::ModemTransmission *bypass_mac_slot)
const ::goby::middleware::protobuf::AppConfig & app() const
::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > * mutable_static_udp_port()
IPGatewayConfig(const IPGatewayConfig &from)
void set_only_rate(int32_t value)
static const IPGatewayConfig * internal_default_instance()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::goby::middleware::protobuf::AppConfig * mutable_app()
void clear_cidr_netmask_prefix()
friend void swap(IPGatewayConfig &a, IPGatewayConfig &b)
void MergeFrom(const IPGatewayConfig &from)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > & static_udp_port() const
bool has_gamma_collaboration() const
void unsafe_arena_set_allocated_bypass_mac_slot(::goby::acomms::protobuf::ModemTransmission *bypass_mac_slot)
int32_t total_ports() const
bool enable_broadcast_address() const
void clear_static_udp_port()
bool has_model_type() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void clear_interprocess()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
IPGatewayConfig(IPGatewayConfig &&from) noexcept
size_t ByteSizeLong() const final
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
bool IsInitialized() const final
void set_static_udp_port(int index, uint32_t value)
::goby::acomms::protobuf::ModemTransmission * mutable_bypass_mac_slot()
bool has_total_ports() const
int32_t tun_number() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
static constexpr int kIndexInFileMessages
bool has_tun_number() const
int32_t only_rate() const
IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
IPGatewayConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
PROTOBUF_NODISCARD std::string * release_local_ipv4_address()
~IPGatewayConfig() override
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::acomms::protobuf::MACConfig * unsafe_arena_release_mac_cfg()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
int GetCachedSize() const final
void clear_dynamic_address_count()
void UnsafeArenaSwap(IPGatewayConfig *other)
@ kEnableBroadcastAddressFieldNumber
@ kLocalIpv4AddressFieldNumber
@ kGammaAutonomyFieldNumber
@ kInterprocessFieldNumber
@ kGammaCollaborationFieldNumber
@ kCidrNetmaskPrefixFieldNumber
@ kStaticUdpPortFieldNumber
@ kBypassMacSlotFieldNumber
@ kDynamicAddressCountFieldNumber
void set_gamma_autonomy(double value)
void set_total_ports(int32_t value)
double gamma_collaboration() const
PROTOBUF_NODISCARD::goby::acomms::protobuf::ModemTransmission * release_bypass_mac_slot()
double gamma_autonomy() const
bool has_dynamic_address_count() const
IPGatewayConfig & operator=(const IPGatewayConfig &from)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
const EnumDescriptor * GetEnumDescriptor< ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType >()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
::goby::acomms::protobuf::ModemTransmission * Arena::CreateMaybeMessage<::goby::acomms::protobuf::ModemTransmission >(Arena *)
MACConfigDefaultTypeInternal _MACConfig_default_instance_
ModemTransmissionDefaultTypeInternal _ModemTransmission_default_instance_
bool IPGatewayConfig_ModelType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IPGatewayConfig_ModelType *value)
constexpr IPGatewayConfig_ModelType IPGatewayConfig_ModelType_ModelType_MIN
IPGatewayConfig_ModelType
@ IPGatewayConfig_ModelType_UNIFORM
@ IPGatewayConfig_ModelType_AUTONOMY_COLLABORATION
const std::string & IPGatewayConfig_ModelType_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * IPGatewayConfig_ModelType_descriptor()
constexpr int IPGatewayConfig_ModelType_ModelType_ARRAYSIZE
bool IPGatewayConfig_ModelType_IsValid(int value)
constexpr IPGatewayConfig_ModelType IPGatewayConfig_ModelType_ModelType_MAX
IPGatewayConfigDefaultTypeInternal _IPGatewayConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]