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>
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#include <google/protobuf/port_def.inc>
46#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
47PROTOBUF_NAMESPACE_OPEN
51PROTOBUF_NAMESPACE_CLOSE
64struct IPGatewayConfigDefaultTypeInternal;
71PROTOBUF_NAMESPACE_OPEN
73PROTOBUF_NAMESPACE_CLOSE
92 static_assert(::std::is_same<T, IPGatewayConfig_ModelType>::value ||
93 ::std::is_integral<T>::value,
94 "Incorrect type passed to function IPGatewayConfig_ModelType_Name.");
95 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
100 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<IPGatewayConfig_ModelType>(
106 public ::PROTOBUF_NAMESPACE_ID::Message {
110 explicit PROTOBUF_CONSTEXPR
IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
115 *
this = ::std::move(from);
123 if (
this == &from)
return *
this;
124 if (GetOwningArena() == from.GetOwningArena()
125 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
126 && GetOwningArena() !=
nullptr
137 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
140 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
143 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
166 if (other ==
this)
return;
167 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
168 if (GetOwningArena() !=
nullptr &&
169 GetOwningArena() == other->GetOwningArena()) {
171 if (GetOwningArena() == other->GetOwningArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
187 return CreateMaybeMessage<IPGatewayConfig>(arena);
189 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
191 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
193 IPGatewayConfig::MergeImpl(*
this, from);
196 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
198 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
204 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
208 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
210 void SetCachedSize(
int size)
const final;
214 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
215 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
216 return "goby.apps.zeromq.acomms.protobuf.IPGatewayConfig";
220 bool is_message_owned =
false);
224 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
244 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
250 static_assert(::std::is_same<T, ModelType>::value ||
251 ::std::is_integral<T>::value,
252 "Incorrect type passed to function ModelType_Name.");
286 int _internal_static_udp_port_size()
const;
290 uint32_t _internal_static_udp_port(
int index)
const;
291 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
292 _internal_static_udp_port()
const;
293 void _internal_add_static_udp_port(uint32_t value);
294 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
295 _internal_mutable_static_udp_port();
300 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
302 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
308 bool _internal_has_local_ipv4_address()
const;
312 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
318 const std::string& _internal_local_ipv4_address()
const;
319 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_local_ipv4_address(
const std::string& value);
320 std::string* _internal_mutable_local_ipv4_address();
326 bool _internal_has_app()
const;
329 const ::goby::middleware::protobuf::AppConfig&
app()
const;
330 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
334 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
344 bool _internal_has_interprocess()
const;
347 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
352 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
362 bool _internal_has_mac_cfg()
const;
365 const ::goby::acomms::protobuf::MACConfig&
mac_cfg()
const;
366 PROTOBUF_NODISCARD ::goby::acomms::protobuf::MACConfig*
release_mac_cfg();
370 const ::goby::acomms::protobuf::MACConfig& _internal_mac_cfg()
const;
380 bool _internal_has_bypass_mac_slot()
const;
383 const ::goby::acomms::protobuf::ModemTransmission&
bypass_mac_slot()
const;
388 const ::goby::acomms::protobuf::ModemTransmission& _internal_bypass_mac_slot()
const;
398 bool _internal_has_cidr_netmask_prefix()
const;
404 uint32_t _internal_cidr_netmask_prefix()
const;
405 void _internal_set_cidr_netmask_prefix(uint32_t value);
411 bool _internal_has_tun_number()
const;
417 int32_t _internal_tun_number()
const;
418 void _internal_set_tun_number(int32_t value);
424 bool _internal_has_dynamic_address_count()
const;
430 uint32_t _internal_dynamic_address_count()
const;
431 void _internal_set_dynamic_address_count(uint32_t value);
437 bool _internal_has_mtu()
const;
440 uint32_t
mtu()
const;
443 uint32_t _internal_mtu()
const;
444 void _internal_set_mtu(uint32_t value);
450 bool _internal_has_bypass_mac()
const;
456 bool _internal_bypass_mac()
const;
457 void _internal_set_bypass_mac(
bool value);
463 bool _internal_has_only_rate()
const;
469 int32_t _internal_only_rate()
const;
470 void _internal_set_only_rate(int32_t value);
476 bool _internal_has_queue_size()
const;
482 int32_t _internal_queue_size()
const;
483 void _internal_set_queue_size(int32_t value);
489 bool _internal_has_enable_broadcast_address()
const;
495 bool _internal_enable_broadcast_address()
const;
496 void _internal_set_enable_broadcast_address(
bool value);
502 bool _internal_has_model_type()
const;
515 bool _internal_has_gamma_autonomy()
const;
521 double _internal_gamma_autonomy()
const;
522 void _internal_set_gamma_autonomy(
double value);
528 bool _internal_has_gamma_collaboration()
const;
534 double _internal_gamma_collaboration()
const;
535 void _internal_set_gamma_collaboration(
double value);
541 bool _internal_has_gateway_id()
const;
547 int32_t _internal_gateway_id()
const;
548 void _internal_set_gateway_id(int32_t value);
554 bool _internal_has_total_ports()
const;
560 int32_t _internal_total_ports()
const;
561 void _internal_set_total_ports(int32_t value);
569 size_t RequiredFieldsByteSizeFallback()
const;
571 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
572 typedef void InternalArenaConstructable_;
573 typedef void DestructorSkippable_;
575 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
576 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
577 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > static_udp_port_;
578 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr local_ipv4_address_;
583 uint32_t cidr_netmask_prefix_;
585 uint32_t dynamic_address_count_;
590 bool enable_broadcast_address_;
592 double gamma_autonomy_;
593 double gamma_collaboration_;
595 int32_t total_ports_;
598 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto;
606 #pragma GCC diagnostic push
607 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
612inline bool IPGatewayConfig::_internal_has_app()
const {
613 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
614 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
618 return _internal_has_app();
620inline const ::goby::middleware::protobuf::AppConfig& IPGatewayConfig::_internal_app()
const {
621 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
627 return _internal_app();
631 if (GetArenaForAllocation() ==
nullptr) {
632 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
636 _impl_._has_bits_[0] |= 0x00000002u;
638 _impl_._has_bits_[0] &= ~0x00000002u;
643 _impl_._has_bits_[0] &= ~0x00000002u;
646#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
647 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
648 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
649 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
651 if (GetArenaForAllocation() !=
nullptr) {
652 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
659 _impl_._has_bits_[0] &= ~0x00000002u;
664inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::_internal_mutable_app() {
665 _impl_._has_bits_[0] |= 0x00000002u;
666 if (
_impl_.app_ ==
nullptr) {
678 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
679 if (message_arena ==
nullptr) {
680 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
683 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
684 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
685 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
686 if (message_arena != submessage_arena) {
687 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
688 message_arena,
app, submessage_arena);
690 _impl_._has_bits_[0] |= 0x00000002u;
692 _impl_._has_bits_[0] &= ~0x00000002u;
699inline bool IPGatewayConfig::_internal_has_interprocess()
const {
700 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
701 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
705 return _internal_has_interprocess();
707inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& IPGatewayConfig::_internal_interprocess()
const {
708 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
714 return _internal_interprocess();
718 if (GetArenaForAllocation() ==
nullptr) {
719 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
723 _impl_._has_bits_[0] |= 0x00000004u;
725 _impl_._has_bits_[0] &= ~0x00000004u;
730 _impl_._has_bits_[0] &= ~0x00000004u;
732 _impl_.interprocess_ =
nullptr;
733#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
734 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
735 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
736 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
738 if (GetArenaForAllocation() !=
nullptr) {
739 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
746 _impl_._has_bits_[0] &= ~0x00000004u;
748 _impl_.interprocess_ =
nullptr;
751inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::_internal_mutable_interprocess() {
752 _impl_._has_bits_[0] |= 0x00000004u;
753 if (
_impl_.interprocess_ ==
nullptr) {
757 return _impl_.interprocess_;
765 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
766 if (message_arena ==
nullptr) {
767 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
770 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
771 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
772 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
773 if (message_arena != submessage_arena) {
774 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
777 _impl_._has_bits_[0] |= 0x00000004u;
779 _impl_._has_bits_[0] &= ~0x00000004u;
786inline bool IPGatewayConfig::_internal_has_local_ipv4_address()
const {
787 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
791 return _internal_has_local_ipv4_address();
794 _impl_.local_ipv4_address_.ClearToEmpty();
795 _impl_._has_bits_[0] &= ~0x00000001u;
799 return _internal_local_ipv4_address();
801template <
typename ArgT0,
typename... ArgT>
802inline PROTOBUF_ALWAYS_INLINE
804 _impl_._has_bits_[0] |= 0x00000001u;
805 _impl_.local_ipv4_address_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
809 std::string* _s = _internal_mutable_local_ipv4_address();
813inline const std::string& IPGatewayConfig::_internal_local_ipv4_address()
const {
814 return _impl_.local_ipv4_address_.Get();
816inline void IPGatewayConfig::_internal_set_local_ipv4_address(
const std::string& value) {
817 _impl_._has_bits_[0] |= 0x00000001u;
818 _impl_.local_ipv4_address_.Set(value, GetArenaForAllocation());
820inline std::string* IPGatewayConfig::_internal_mutable_local_ipv4_address() {
821 _impl_._has_bits_[0] |= 0x00000001u;
822 return _impl_.local_ipv4_address_.Mutable(GetArenaForAllocation());
826 if (!_internal_has_local_ipv4_address()) {
829 _impl_._has_bits_[0] &= ~0x00000001u;
830 auto* p =
_impl_.local_ipv4_address_.Release();
831#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
832 if (
_impl_.local_ipv4_address_.IsDefault()) {
833 _impl_.local_ipv4_address_.Set(
"", GetArenaForAllocation());
840 _impl_._has_bits_[0] |= 0x00000001u;
842 _impl_._has_bits_[0] &= ~0x00000001u;
845#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
846 if (
_impl_.local_ipv4_address_.IsDefault()) {
847 _impl_.local_ipv4_address_.Set(
"", GetArenaForAllocation());
854inline bool IPGatewayConfig::_internal_has_cidr_netmask_prefix()
const {
855 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
859 return _internal_has_cidr_netmask_prefix();
862 _impl_.cidr_netmask_prefix_ = 0u;
863 _impl_._has_bits_[0] &= ~0x00000020u;
865inline uint32_t IPGatewayConfig::_internal_cidr_netmask_prefix()
const {
866 return _impl_.cidr_netmask_prefix_;
870 return _internal_cidr_netmask_prefix();
872inline void IPGatewayConfig::_internal_set_cidr_netmask_prefix(uint32_t value) {
873 _impl_._has_bits_[0] |= 0x00000020u;
874 _impl_.cidr_netmask_prefix_ = value;
877 _internal_set_cidr_netmask_prefix(value);
882inline bool IPGatewayConfig::_internal_has_tun_number()
const {
883 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
887 return _internal_has_tun_number();
891 _impl_._has_bits_[0] &= ~0x00000040u;
893inline int32_t IPGatewayConfig::_internal_tun_number()
const {
894 return _impl_.tun_number_;
898 return _internal_tun_number();
900inline void IPGatewayConfig::_internal_set_tun_number(int32_t value) {
901 _impl_._has_bits_[0] |= 0x00000040u;
902 _impl_.tun_number_ = value;
905 _internal_set_tun_number(value);
910inline bool IPGatewayConfig::_internal_has_enable_broadcast_address()
const {
911 bool value = (
_impl_._has_bits_[0] & 0x00001000u) != 0;
915 return _internal_has_enable_broadcast_address();
918 _impl_.enable_broadcast_address_ =
true;
919 _impl_._has_bits_[0] &= ~0x00001000u;
921inline bool IPGatewayConfig::_internal_enable_broadcast_address()
const {
922 return _impl_.enable_broadcast_address_;
926 return _internal_enable_broadcast_address();
928inline void IPGatewayConfig::_internal_set_enable_broadcast_address(
bool value) {
929 _impl_._has_bits_[0] |= 0x00001000u;
930 _impl_.enable_broadcast_address_ = value;
933 _internal_set_enable_broadcast_address(value);
938inline bool IPGatewayConfig::_internal_has_dynamic_address_count()
const {
939 bool value = (
_impl_._has_bits_[0] & 0x00000080u) != 0;
943 return _internal_has_dynamic_address_count();
946 _impl_.dynamic_address_count_ = 0u;
947 _impl_._has_bits_[0] &= ~0x00000080u;
949inline uint32_t IPGatewayConfig::_internal_dynamic_address_count()
const {
950 return _impl_.dynamic_address_count_;
954 return _internal_dynamic_address_count();
956inline void IPGatewayConfig::_internal_set_dynamic_address_count(uint32_t value) {
957 _impl_._has_bits_[0] |= 0x00000080u;
958 _impl_.dynamic_address_count_ = value;
961 _internal_set_dynamic_address_count(value);
966inline bool IPGatewayConfig::_internal_has_model_type()
const {
967 bool value = (
_impl_._has_bits_[0] & 0x00002000u) != 0;
971 return _internal_has_model_type();
975 _impl_._has_bits_[0] &= ~0x00002000u;
977inline ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::_internal_model_type()
const {
982 return _internal_model_type();
986 _impl_._has_bits_[0] |= 0x00002000u;
987 _impl_.model_type_ = value;
990 _internal_set_model_type(value);
995inline bool IPGatewayConfig::_internal_has_gamma_autonomy()
const {
996 bool value = (
_impl_._has_bits_[0] & 0x00004000u) != 0;
1000 return _internal_has_gamma_autonomy();
1003 _impl_.gamma_autonomy_ = 0.75;
1004 _impl_._has_bits_[0] &= ~0x00004000u;
1006inline double IPGatewayConfig::_internal_gamma_autonomy()
const {
1007 return _impl_.gamma_autonomy_;
1011 return _internal_gamma_autonomy();
1013inline void IPGatewayConfig::_internal_set_gamma_autonomy(
double value) {
1014 _impl_._has_bits_[0] |= 0x00004000u;
1015 _impl_.gamma_autonomy_ = value;
1018 _internal_set_gamma_autonomy(value);
1023inline bool IPGatewayConfig::_internal_has_gamma_collaboration()
const {
1024 bool value = (
_impl_._has_bits_[0] & 0x00008000u) != 0;
1028 return _internal_has_gamma_collaboration();
1031 _impl_.gamma_collaboration_ = 0.25;
1032 _impl_._has_bits_[0] &= ~0x00008000u;
1034inline double IPGatewayConfig::_internal_gamma_collaboration()
const {
1035 return _impl_.gamma_collaboration_;
1039 return _internal_gamma_collaboration();
1041inline void IPGatewayConfig::_internal_set_gamma_collaboration(
double value) {
1042 _impl_._has_bits_[0] |= 0x00008000u;
1043 _impl_.gamma_collaboration_ = value;
1046 _internal_set_gamma_collaboration(value);
1051inline bool IPGatewayConfig::_internal_has_gateway_id()
const {
1052 bool value = (
_impl_._has_bits_[0] & 0x00010000u) != 0;
1056 return _internal_has_gateway_id();
1060 _impl_._has_bits_[0] &= ~0x00010000u;
1062inline int32_t IPGatewayConfig::_internal_gateway_id()
const {
1063 return _impl_.gateway_id_;
1067 return _internal_gateway_id();
1069inline void IPGatewayConfig::_internal_set_gateway_id(int32_t value) {
1070 _impl_._has_bits_[0] |= 0x00010000u;
1071 _impl_.gateway_id_ = value;
1074 _internal_set_gateway_id(value);
1079inline bool IPGatewayConfig::_internal_has_total_ports()
const {
1080 bool value = (
_impl_._has_bits_[0] & 0x00020000u) != 0;
1084 return _internal_has_total_ports();
1088 _impl_._has_bits_[0] &= ~0x00020000u;
1090inline int32_t IPGatewayConfig::_internal_total_ports()
const {
1091 return _impl_.total_ports_;
1095 return _internal_total_ports();
1097inline void IPGatewayConfig::_internal_set_total_ports(int32_t value) {
1098 _impl_._has_bits_[0] |= 0x00020000u;
1099 _impl_.total_ports_ = value;
1102 _internal_set_total_ports(value);
1107inline int IPGatewayConfig::_internal_static_udp_port_size()
const {
1108 return _impl_.static_udp_port_.size();
1111 return _internal_static_udp_port_size();
1114 _impl_.static_udp_port_.Clear();
1116inline uint32_t IPGatewayConfig::_internal_static_udp_port(
int index)
const {
1117 return _impl_.static_udp_port_.Get(index);
1121 return _internal_static_udp_port(index);
1124 _impl_.static_udp_port_.Set(index, value);
1127inline void IPGatewayConfig::_internal_add_static_udp_port(uint32_t value) {
1128 _impl_.static_udp_port_.Add(value);
1131 _internal_add_static_udp_port(value);
1134inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1135IPGatewayConfig::_internal_static_udp_port()
const {
1136 return _impl_.static_udp_port_;
1138inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1141 return _internal_static_udp_port();
1143inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1144IPGatewayConfig::_internal_mutable_static_udp_port() {
1145 return &
_impl_.static_udp_port_;
1147inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1150 return _internal_mutable_static_udp_port();
1154inline bool IPGatewayConfig::_internal_has_mac_cfg()
const {
1155 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
1156 PROTOBUF_ASSUME(!value ||
_impl_.mac_cfg_ !=
nullptr);
1160 return _internal_has_mac_cfg();
1162inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::_internal_mac_cfg()
const {
1163 const ::goby::acomms::protobuf::MACConfig* p =
_impl_.mac_cfg_;
1169 return _internal_mac_cfg();
1173 if (GetArenaForAllocation() ==
nullptr) {
1174 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.mac_cfg_);
1178 _impl_._has_bits_[0] |= 0x00000008u;
1180 _impl_._has_bits_[0] &= ~0x00000008u;
1185 _impl_._has_bits_[0] &= ~0x00000008u;
1187 _impl_.mac_cfg_ =
nullptr;
1188#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1189 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1190 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1191 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1193 if (GetArenaForAllocation() !=
nullptr) {
1194 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1201 _impl_._has_bits_[0] &= ~0x00000008u;
1203 _impl_.mac_cfg_ =
nullptr;
1206inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::_internal_mutable_mac_cfg() {
1207 _impl_._has_bits_[0] |= 0x00000008u;
1208 if (
_impl_.mac_cfg_ ==
nullptr) {
1220 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1221 if (message_arena ==
nullptr) {
1222 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.mac_cfg_);
1225 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1226 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1227 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
mac_cfg));
1228 if (message_arena != submessage_arena) {
1229 mac_cfg = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1230 message_arena,
mac_cfg, submessage_arena);
1232 _impl_._has_bits_[0] |= 0x00000008u;
1234 _impl_._has_bits_[0] &= ~0x00000008u;
1241inline bool IPGatewayConfig::_internal_has_mtu()
const {
1242 bool value = (
_impl_._has_bits_[0] & 0x00000100u) != 0;
1246 return _internal_has_mtu();
1250 _impl_._has_bits_[0] &= ~0x00000100u;
1252inline uint32_t IPGatewayConfig::_internal_mtu()
const {
1257 return _internal_mtu();
1259inline void IPGatewayConfig::_internal_set_mtu(uint32_t value) {
1260 _impl_._has_bits_[0] |= 0x00000100u;
1264 _internal_set_mtu(value);
1269inline bool IPGatewayConfig::_internal_has_bypass_mac()
const {
1270 bool value = (
_impl_._has_bits_[0] & 0x00000200u) != 0;
1274 return _internal_has_bypass_mac();
1277 _impl_.bypass_mac_ =
false;
1278 _impl_._has_bits_[0] &= ~0x00000200u;
1280inline bool IPGatewayConfig::_internal_bypass_mac()
const {
1281 return _impl_.bypass_mac_;
1285 return _internal_bypass_mac();
1287inline void IPGatewayConfig::_internal_set_bypass_mac(
bool value) {
1288 _impl_._has_bits_[0] |= 0x00000200u;
1289 _impl_.bypass_mac_ = value;
1292 _internal_set_bypass_mac(value);
1297inline bool IPGatewayConfig::_internal_has_bypass_mac_slot()
const {
1298 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
1299 PROTOBUF_ASSUME(!value ||
_impl_.bypass_mac_slot_ !=
nullptr);
1303 return _internal_has_bypass_mac_slot();
1305inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::_internal_bypass_mac_slot()
const {
1306 const ::goby::acomms::protobuf::ModemTransmission* p =
_impl_.bypass_mac_slot_;
1312 return _internal_bypass_mac_slot();
1316 if (GetArenaForAllocation() ==
nullptr) {
1317 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.bypass_mac_slot_);
1321 _impl_._has_bits_[0] |= 0x00000010u;
1323 _impl_._has_bits_[0] &= ~0x00000010u;
1328 _impl_._has_bits_[0] &= ~0x00000010u;
1330 _impl_.bypass_mac_slot_ =
nullptr;
1331#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1332 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
1333 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1334 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
1336 if (GetArenaForAllocation() !=
nullptr) {
1337 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1344 _impl_._has_bits_[0] &= ~0x00000010u;
1346 _impl_.bypass_mac_slot_ =
nullptr;
1349inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::_internal_mutable_bypass_mac_slot() {
1350 _impl_._has_bits_[0] |= 0x00000010u;
1351 if (
_impl_.bypass_mac_slot_ ==
nullptr) {
1353 _impl_.bypass_mac_slot_ = p;
1355 return _impl_.bypass_mac_slot_;
1363 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1364 if (message_arena ==
nullptr) {
1365 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.bypass_mac_slot_);
1368 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1369 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1370 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
bypass_mac_slot));
1371 if (message_arena != submessage_arena) {
1375 _impl_._has_bits_[0] |= 0x00000010u;
1377 _impl_._has_bits_[0] &= ~0x00000010u;
1384inline bool IPGatewayConfig::_internal_has_queue_size()
const {
1385 bool value = (
_impl_._has_bits_[0] & 0x00000800u) != 0;
1389 return _internal_has_queue_size();
1392 _impl_.queue_size_ = 100;
1393 _impl_._has_bits_[0] &= ~0x00000800u;
1395inline int32_t IPGatewayConfig::_internal_queue_size()
const {
1396 return _impl_.queue_size_;
1400 return _internal_queue_size();
1402inline void IPGatewayConfig::_internal_set_queue_size(int32_t value) {
1403 _impl_._has_bits_[0] |= 0x00000800u;
1404 _impl_.queue_size_ = value;
1407 _internal_set_queue_size(value);
1412inline bool IPGatewayConfig::_internal_has_only_rate()
const {
1413 bool value = (
_impl_._has_bits_[0] & 0x00000400u) != 0;
1417 return _internal_has_only_rate();
1421 _impl_._has_bits_[0] &= ~0x00000400u;
1423inline int32_t IPGatewayConfig::_internal_only_rate()
const {
1424 return _impl_.only_rate_;
1428 return _internal_only_rate();
1430inline void IPGatewayConfig::_internal_set_only_rate(int32_t value) {
1431 _impl_._has_bits_[0] |= 0x00000400u;
1432 _impl_.only_rate_ = value;
1435 _internal_set_only_rate(value);
1440 #pragma GCC diagnostic pop
1451PROTOBUF_NAMESPACE_OPEN
1456 return ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType_descriptor();
1459PROTOBUF_NAMESPACE_CLOSE
1463#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
@ kEnableBroadcastAddressFieldNumber
@ kLocalIpv4AddressFieldNumber
@ kGammaAutonomyFieldNumber
@ kInterprocessFieldNumber
@ kGammaCollaborationFieldNumber
@ kCidrNetmaskPrefixFieldNumber
@ kStaticUdpPortFieldNumber
@ kBypassMacSlotFieldNumber
@ kDynamicAddressCountFieldNumber
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)
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[]