Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
ip_gateway_config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: goby/zeromq/protobuf/ip_gateway_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
43// @@protoc_insertion_point(includes)
44#include <google/protobuf/port_def.inc>
45#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
46PROTOBUF_NAMESPACE_OPEN
47namespace internal {
48class AnyMetadata;
49} // namespace internal
50PROTOBUF_NAMESPACE_CLOSE
51
52// Internal implementation detail -- do not use these members.
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto;
57namespace goby {
58namespace apps {
59namespace zeromq {
60namespace acomms {
61namespace protobuf {
62class IPGatewayConfig;
63struct IPGatewayConfigDefaultTypeInternal;
64extern IPGatewayConfigDefaultTypeInternal _IPGatewayConfig_default_instance_;
65} // namespace protobuf
66} // namespace acomms
67} // namespace zeromq
68} // namespace apps
69} // namespace goby
70PROTOBUF_NAMESPACE_OPEN
71template<> ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig>(Arena*);
72PROTOBUF_NAMESPACE_CLOSE
73namespace goby {
74namespace apps {
75namespace zeromq {
76namespace acomms {
77namespace protobuf {
78
87
88const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IPGatewayConfig_ModelType_descriptor();
89template<typename T>
90inline const std::string& IPGatewayConfig_ModelType_Name(T enum_t_value) {
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(
96}
98 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, IPGatewayConfig_ModelType* value) {
99 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<IPGatewayConfig_ModelType>(
101}
102// ===================================================================
103
104class IPGatewayConfig final :
105 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig) */ {
106 public:
107 inline IPGatewayConfig() : IPGatewayConfig(nullptr) {}
109 explicit PROTOBUF_CONSTEXPR IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
110
113 : IPGatewayConfig() {
114 *this = ::std::move(from);
115 }
116
118 CopyFrom(from);
119 return *this;
120 }
121 inline IPGatewayConfig& operator=(IPGatewayConfig&& from) noexcept {
122 if (this == &from) return *this;
123 if (GetOwningArena() == from.GetOwningArena()
124 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
125 && GetOwningArena() != nullptr
126 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
127 ) {
128 InternalSwap(&from);
129 } else {
130 CopyFrom(from);
131 }
132 return *this;
133 }
134
135 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
136 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
137 }
138 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
139 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
140 }
141
142 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
143 return GetDescriptor();
144 }
145 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
146 return default_instance().GetMetadata().descriptor;
147 }
148 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
149 return default_instance().GetMetadata().reflection;
150 }
153 }
155 return reinterpret_cast<const IPGatewayConfig*>(
157 }
158 static constexpr int kIndexInFileMessages =
159 0;
160
162 a.Swap(&b);
163 }
164 inline void Swap(IPGatewayConfig* other) {
165 if (other == this) return;
166 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
167 if (GetOwningArena() != nullptr &&
168 GetOwningArena() == other->GetOwningArena()) {
169 #else // PROTOBUF_FORCE_COPY_IN_SWAP
170 if (GetOwningArena() == other->GetOwningArena()) {
171 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
172 InternalSwap(other);
173 } else {
174 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
175 }
176 }
178 if (other == this) return;
179 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
180 InternalSwap(other);
181 }
182
183 // implements Message ----------------------------------------------
184
185 IPGatewayConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
186 return CreateMaybeMessage<IPGatewayConfig>(arena);
187 }
188 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
189 void CopyFrom(const IPGatewayConfig& from);
190 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
191 void MergeFrom( const IPGatewayConfig& from) {
192 IPGatewayConfig::MergeImpl(*this, from);
193 }
194 private:
195 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
196 public:
197 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
198 bool IsInitialized() const final;
199
200 size_t ByteSizeLong() const final;
201 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
203 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
204 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
205
206 private:
207 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
208 void SharedDtor();
209 void SetCachedSize(int size) const final;
210 void InternalSwap(IPGatewayConfig* other);
211
212 private:
213 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
214 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
215 return "goby.apps.zeromq.acomms.protobuf.IPGatewayConfig";
216 }
217 protected:
218 explicit IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
219 bool is_message_owned = false);
220 public:
221
222 static const ClassData _class_data_;
223 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
224
225 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
226
227 // nested types ----------------------------------------------------
228
230 static constexpr ModelType UNIFORM =
234 static inline bool ModelType_IsValid(int value) {
236 }
237 static constexpr ModelType ModelType_MIN =
239 static constexpr ModelType ModelType_MAX =
241 static constexpr int ModelType_ARRAYSIZE =
243 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
247 template<typename T>
248 static inline const std::string& ModelType_Name(T enum_t_value) {
249 static_assert(::std::is_same<T, ModelType>::value ||
250 ::std::is_integral<T>::value,
251 "Incorrect type passed to function ModelType_Name.");
252 return IPGatewayConfig_ModelType_Name(enum_t_value);
253 }
254 static inline bool ModelType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
255 ModelType* value) {
256 return IPGatewayConfig_ModelType_Parse(name, value);
257 }
258
259 // accessors -------------------------------------------------------
260
261 enum : int {
281 };
282 // repeated uint32 static_udp_port = 21;
283 int static_udp_port_size() const;
284 private:
285 int _internal_static_udp_port_size() const;
286 public:
288 private:
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();
295 public:
296 uint32_t static_udp_port(int index) const;
297 void set_static_udp_port(int index, uint32_t value);
298 void add_static_udp_port(uint32_t value);
299 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
300 static_udp_port() const;
301 ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
303
304 // required string local_ipv4_address = 3;
305 bool has_local_ipv4_address() const;
306 private:
307 bool _internal_has_local_ipv4_address() const;
308 public:
310 const std::string& local_ipv4_address() const;
311 template <typename ArgT0 = const std::string&, typename... ArgT>
312 void set_local_ipv4_address(ArgT0&& arg0, ArgT... args);
313 std::string* mutable_local_ipv4_address();
314 PROTOBUF_NODISCARD std::string* release_local_ipv4_address();
316 private:
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();
320 public:
321
322 // optional .goby.middleware.protobuf.AppConfig app = 1;
323 bool has_app() const;
324 private:
325 bool _internal_has_app() const;
326 public:
327 void clear_app();
328 const ::goby::middleware::protobuf::AppConfig& app() const;
329 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
332 private:
333 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
334 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
335 public:
339
340 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
341 bool has_interprocess() const;
342 private:
343 bool _internal_has_interprocess() const;
344 public:
346 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
347 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
350 private:
351 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
352 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
353 public:
357
358 // optional .goby.acomms.protobuf.MACConfig mac_cfg = 30;
359 bool has_mac_cfg() const;
360 private:
361 bool _internal_has_mac_cfg() const;
362 public:
364 const ::goby::acomms::protobuf::MACConfig& mac_cfg() const;
365 PROTOBUF_NODISCARD ::goby::acomms::protobuf::MACConfig* release_mac_cfg();
368 private:
369 const ::goby::acomms::protobuf::MACConfig& _internal_mac_cfg() const;
370 ::goby::acomms::protobuf::MACConfig* _internal_mutable_mac_cfg();
371 public:
375
376 // optional .goby.acomms.protobuf.ModemTransmission bypass_mac_slot = 33;
377 bool has_bypass_mac_slot() const;
378 private:
379 bool _internal_has_bypass_mac_slot() const;
380 public:
382 const ::goby::acomms::protobuf::ModemTransmission& bypass_mac_slot() const;
383 PROTOBUF_NODISCARD ::goby::acomms::protobuf::ModemTransmission* release_bypass_mac_slot();
386 private:
387 const ::goby::acomms::protobuf::ModemTransmission& _internal_bypass_mac_slot() const;
388 ::goby::acomms::protobuf::ModemTransmission* _internal_mutable_bypass_mac_slot();
389 public:
393
394 // required uint32 cidr_netmask_prefix = 4;
395 bool has_cidr_netmask_prefix() const;
396 private:
397 bool _internal_has_cidr_netmask_prefix() const;
398 public:
400 uint32_t cidr_netmask_prefix() const;
401 void set_cidr_netmask_prefix(uint32_t value);
402 private:
403 uint32_t _internal_cidr_netmask_prefix() const;
404 void _internal_set_cidr_netmask_prefix(uint32_t value);
405 public:
406
407 // optional int32 tun_number = 5;
408 bool has_tun_number() const;
409 private:
410 bool _internal_has_tun_number() const;
411 public:
412 void clear_tun_number();
413 int32_t tun_number() const;
414 void set_tun_number(int32_t value);
415 private:
416 int32_t _internal_tun_number() const;
417 void _internal_set_tun_number(int32_t value);
418 public:
419
420 // optional uint32 dynamic_address_count = 11 [default = 0];
421 bool has_dynamic_address_count() const;
422 private:
423 bool _internal_has_dynamic_address_count() const;
424 public:
426 uint32_t dynamic_address_count() const;
427 void set_dynamic_address_count(uint32_t value);
428 private:
429 uint32_t _internal_dynamic_address_count() const;
430 void _internal_set_dynamic_address_count(uint32_t value);
431 public:
432
433 // required uint32 mtu = 31;
434 bool has_mtu() const;
435 private:
436 bool _internal_has_mtu() const;
437 public:
438 void clear_mtu();
439 uint32_t mtu() const;
440 void set_mtu(uint32_t value);
441 private:
442 uint32_t _internal_mtu() const;
443 void _internal_set_mtu(uint32_t value);
444 public:
445
446 // optional bool bypass_mac = 32 [default = false];
447 bool has_bypass_mac() const;
448 private:
449 bool _internal_has_bypass_mac() const;
450 public:
451 void clear_bypass_mac();
452 bool bypass_mac() const;
453 void set_bypass_mac(bool value);
454 private:
455 bool _internal_bypass_mac() const;
456 void _internal_set_bypass_mac(bool value);
457 public:
458
459 // optional int32 only_rate = 50;
460 bool has_only_rate() const;
461 private:
462 bool _internal_has_only_rate() const;
463 public:
464 void clear_only_rate();
465 int32_t only_rate() const;
466 void set_only_rate(int32_t value);
467 private:
468 int32_t _internal_only_rate() const;
469 void _internal_set_only_rate(int32_t value);
470 public:
471
472 // optional int32 queue_size = 40 [default = 100];
473 bool has_queue_size() const;
474 private:
475 bool _internal_has_queue_size() const;
476 public:
477 void clear_queue_size();
478 int32_t queue_size() const;
479 void set_queue_size(int32_t value);
480 private:
481 int32_t _internal_queue_size() const;
482 void _internal_set_queue_size(int32_t value);
483 public:
484
485 // optional bool enable_broadcast_address = 10 [default = true];
486 bool has_enable_broadcast_address() const;
487 private:
488 bool _internal_has_enable_broadcast_address() const;
489 public:
491 bool enable_broadcast_address() const;
492 void set_enable_broadcast_address(bool value);
493 private:
494 bool _internal_enable_broadcast_address() const;
495 void _internal_set_enable_broadcast_address(bool value);
496 public:
497
498 // optional .goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.ModelType model_type = 12 [default = UNIFORM];
499 bool has_model_type() const;
500 private:
501 bool _internal_has_model_type() const;
502 public:
503 void clear_model_type();
506 private:
509 public:
510
511 // optional double gamma_autonomy = 13 [default = 0.75];
512 bool has_gamma_autonomy() const;
513 private:
514 bool _internal_has_gamma_autonomy() const;
515 public:
517 double gamma_autonomy() const;
518 void set_gamma_autonomy(double value);
519 private:
520 double _internal_gamma_autonomy() const;
521 void _internal_set_gamma_autonomy(double value);
522 public:
523
524 // optional double gamma_collaboration = 14 [default = 0.25];
525 bool has_gamma_collaboration() const;
526 private:
527 bool _internal_has_gamma_collaboration() const;
528 public:
530 double gamma_collaboration() const;
531 void set_gamma_collaboration(double value);
532 private:
533 double _internal_gamma_collaboration() const;
534 void _internal_set_gamma_collaboration(double value);
535 public:
536
537 // optional int32 gateway_id = 15 [default = 1];
538 bool has_gateway_id() const;
539 private:
540 bool _internal_has_gateway_id() const;
541 public:
542 void clear_gateway_id();
543 int32_t gateway_id() const;
544 void set_gateway_id(int32_t value);
545 private:
546 int32_t _internal_gateway_id() const;
547 void _internal_set_gateway_id(int32_t value);
548 public:
549
550 // optional int32 total_ports = 20 [default = 1];
551 bool has_total_ports() const;
552 private:
553 bool _internal_has_total_ports() const;
554 public:
555 void clear_total_ports();
556 int32_t total_ports() const;
557 void set_total_ports(int32_t value);
558 private:
559 int32_t _internal_total_ports() const;
560 void _internal_set_total_ports(int32_t value);
561 public:
562
563 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig)
564 private:
565 class _Internal;
566
567 // helper for ByteSizeLong()
568 size_t RequiredFieldsByteSizeFallback() const;
569
570 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
571 typedef void InternalArenaConstructable_;
572 typedef void DestructorSkippable_;
573 struct Impl_ {
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_;
583 int32_t tun_number_;
584 uint32_t dynamic_address_count_;
585 uint32_t mtu_;
586 bool bypass_mac_;
587 int32_t only_rate_;
588 int32_t queue_size_;
589 bool enable_broadcast_address_;
590 int model_type_;
591 double gamma_autonomy_;
592 double gamma_collaboration_;
593 int32_t gateway_id_;
594 int32_t total_ports_;
595 };
596 union { Impl_ _impl_; };
597 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto;
598};
599// ===================================================================
600
601
602// ===================================================================
603
604#ifdef __GNUC__
605 #pragma GCC diagnostic push
606 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
607#endif // __GNUC__
608// IPGatewayConfig
609
610// optional .goby.middleware.protobuf.AppConfig app = 1;
611inline bool IPGatewayConfig::_internal_has_app() const {
612 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
613 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
614 return value;
615}
616inline bool IPGatewayConfig::has_app() const {
617 return _internal_has_app();
618}
619inline const ::goby::middleware::protobuf::AppConfig& IPGatewayConfig::_internal_app() const {
620 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
621 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
623}
624inline const ::goby::middleware::protobuf::AppConfig& IPGatewayConfig::app() const {
625 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.app)
626 return _internal_app();
627}
630 if (GetArenaForAllocation() == nullptr) {
631 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
632 }
633 _impl_.app_ = app;
634 if (app) {
635 _impl_._has_bits_[0] |= 0x00000002u;
636 } else {
637 _impl_._has_bits_[0] &= ~0x00000002u;
638 }
639 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.app)
640}
641inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::release_app() {
642 _impl_._has_bits_[0] &= ~0x00000002u;
644 _impl_.app_ = nullptr;
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; }
649#else // PROTOBUF_FORCE_COPY_IN_RELEASE
650 if (GetArenaForAllocation() != nullptr) {
651 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
652 }
653#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
654 return temp;
655}
656inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::unsafe_arena_release_app() {
657 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.app)
658 _impl_._has_bits_[0] &= ~0x00000002u;
660 _impl_.app_ = nullptr;
661 return temp;
662}
663inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::_internal_mutable_app() {
664 _impl_._has_bits_[0] |= 0x00000002u;
665 if (_impl_.app_ == nullptr) {
666 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
667 _impl_.app_ = p;
668 }
669 return _impl_.app_;
670}
671inline ::goby::middleware::protobuf::AppConfig* IPGatewayConfig::mutable_app() {
672 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
673 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.app)
674 return _msg;
675}
677 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
678 if (message_arena == nullptr) {
679 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
680 }
681 if (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);
688 }
689 _impl_._has_bits_[0] |= 0x00000002u;
690 } else {
691 _impl_._has_bits_[0] &= ~0x00000002u;
692 }
693 _impl_.app_ = app;
694 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.app)
695}
696
697// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
698inline bool IPGatewayConfig::_internal_has_interprocess() const {
699 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
700 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
701 return value;
702}
704 return _internal_has_interprocess();
705}
706inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& IPGatewayConfig::_internal_interprocess() const {
707 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
708 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
710}
711inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& IPGatewayConfig::interprocess() const {
712 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.interprocess)
713 return _internal_interprocess();
714}
717 if (GetArenaForAllocation() == nullptr) {
718 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
719 }
720 _impl_.interprocess_ = interprocess;
721 if (interprocess) {
722 _impl_._has_bits_[0] |= 0x00000004u;
723 } else {
724 _impl_._has_bits_[0] &= ~0x00000004u;
725 }
726 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.interprocess)
727}
728inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::release_interprocess() {
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; }
736#else // PROTOBUF_FORCE_COPY_IN_RELEASE
737 if (GetArenaForAllocation() != nullptr) {
738 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
739 }
740#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
741 return temp;
742}
743inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::unsafe_arena_release_interprocess() {
744 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.interprocess)
745 _impl_._has_bits_[0] &= ~0x00000004u;
747 _impl_.interprocess_ = nullptr;
748 return temp;
749}
750inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::_internal_mutable_interprocess() {
751 _impl_._has_bits_[0] |= 0x00000004u;
752 if (_impl_.interprocess_ == nullptr) {
754 _impl_.interprocess_ = p;
755 }
756 return _impl_.interprocess_;
757}
758inline ::goby::zeromq::protobuf::InterProcessPortalConfig* IPGatewayConfig::mutable_interprocess() {
759 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
760 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.interprocess)
761 return _msg;
762}
764 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
765 if (message_arena == nullptr) {
766 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
767 }
768 if (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(
774 message_arena, interprocess, submessage_arena);
775 }
776 _impl_._has_bits_[0] |= 0x00000004u;
777 } else {
778 _impl_._has_bits_[0] &= ~0x00000004u;
779 }
780 _impl_.interprocess_ = interprocess;
781 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.interprocess)
782}
783
784// required string local_ipv4_address = 3;
785inline bool IPGatewayConfig::_internal_has_local_ipv4_address() const {
786 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
787 return value;
788}
790 return _internal_has_local_ipv4_address();
791}
793 _impl_.local_ipv4_address_.ClearToEmpty();
794 _impl_._has_bits_[0] &= ~0x00000001u;
795}
796inline const std::string& IPGatewayConfig::local_ipv4_address() const {
797 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
798 return _internal_local_ipv4_address();
799}
800template <typename ArgT0, typename... ArgT>
801inline PROTOBUF_ALWAYS_INLINE
802void IPGatewayConfig::set_local_ipv4_address(ArgT0&& arg0, ArgT... args) {
803 _impl_._has_bits_[0] |= 0x00000001u;
804 _impl_.local_ipv4_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
805 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
806}
808 std::string* _s = _internal_mutable_local_ipv4_address();
809 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
810 return _s;
811}
812inline const std::string& IPGatewayConfig::_internal_local_ipv4_address() const {
813 return _impl_.local_ipv4_address_.Get();
814}
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());
818}
819inline std::string* IPGatewayConfig::_internal_mutable_local_ipv4_address() {
820 _impl_._has_bits_[0] |= 0x00000001u;
821 return _impl_.local_ipv4_address_.Mutable(GetArenaForAllocation());
822}
824 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
825 if (!_internal_has_local_ipv4_address()) {
826 return nullptr;
827 }
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());
833 }
834#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
835 return p;
836}
838 if (local_ipv4_address != nullptr) {
839 _impl_._has_bits_[0] |= 0x00000001u;
840 } else {
841 _impl_._has_bits_[0] &= ~0x00000001u;
842 }
843 _impl_.local_ipv4_address_.SetAllocated(local_ipv4_address, GetArenaForAllocation());
844#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
845 if (_impl_.local_ipv4_address_.IsDefault()) {
846 _impl_.local_ipv4_address_.Set("", GetArenaForAllocation());
847 }
848#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
849 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.local_ipv4_address)
850}
851
852// required uint32 cidr_netmask_prefix = 4;
853inline bool IPGatewayConfig::_internal_has_cidr_netmask_prefix() const {
854 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
855 return value;
856}
858 return _internal_has_cidr_netmask_prefix();
859}
861 _impl_.cidr_netmask_prefix_ = 0u;
862 _impl_._has_bits_[0] &= ~0x00000020u;
863}
864inline uint32_t IPGatewayConfig::_internal_cidr_netmask_prefix() const {
865 return _impl_.cidr_netmask_prefix_;
866}
868 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.cidr_netmask_prefix)
869 return _internal_cidr_netmask_prefix();
870}
871inline void IPGatewayConfig::_internal_set_cidr_netmask_prefix(uint32_t value) {
872 _impl_._has_bits_[0] |= 0x00000020u;
873 _impl_.cidr_netmask_prefix_ = value;
874}
875inline void IPGatewayConfig::set_cidr_netmask_prefix(uint32_t value) {
876 _internal_set_cidr_netmask_prefix(value);
877 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.cidr_netmask_prefix)
878}
879
880// optional int32 tun_number = 5;
881inline bool IPGatewayConfig::_internal_has_tun_number() const {
882 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
883 return value;
884}
886 return _internal_has_tun_number();
887}
889 _impl_.tun_number_ = 0;
890 _impl_._has_bits_[0] &= ~0x00000040u;
891}
892inline int32_t IPGatewayConfig::_internal_tun_number() const {
893 return _impl_.tun_number_;
894}
895inline int32_t IPGatewayConfig::tun_number() const {
896 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.tun_number)
897 return _internal_tun_number();
898}
899inline void IPGatewayConfig::_internal_set_tun_number(int32_t value) {
900 _impl_._has_bits_[0] |= 0x00000040u;
901 _impl_.tun_number_ = value;
902}
903inline void IPGatewayConfig::set_tun_number(int32_t value) {
904 _internal_set_tun_number(value);
905 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.tun_number)
906}
907
908// optional bool enable_broadcast_address = 10 [default = true];
909inline bool IPGatewayConfig::_internal_has_enable_broadcast_address() const {
910 bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
911 return value;
912}
914 return _internal_has_enable_broadcast_address();
915}
917 _impl_.enable_broadcast_address_ = true;
918 _impl_._has_bits_[0] &= ~0x00001000u;
919}
920inline bool IPGatewayConfig::_internal_enable_broadcast_address() const {
921 return _impl_.enable_broadcast_address_;
922}
924 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.enable_broadcast_address)
925 return _internal_enable_broadcast_address();
926}
927inline void IPGatewayConfig::_internal_set_enable_broadcast_address(bool value) {
928 _impl_._has_bits_[0] |= 0x00001000u;
929 _impl_.enable_broadcast_address_ = value;
930}
932 _internal_set_enable_broadcast_address(value);
933 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.enable_broadcast_address)
934}
935
936// optional uint32 dynamic_address_count = 11 [default = 0];
937inline bool IPGatewayConfig::_internal_has_dynamic_address_count() const {
938 bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
939 return value;
940}
942 return _internal_has_dynamic_address_count();
943}
945 _impl_.dynamic_address_count_ = 0u;
946 _impl_._has_bits_[0] &= ~0x00000080u;
947}
948inline uint32_t IPGatewayConfig::_internal_dynamic_address_count() const {
949 return _impl_.dynamic_address_count_;
950}
952 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.dynamic_address_count)
953 return _internal_dynamic_address_count();
954}
955inline void IPGatewayConfig::_internal_set_dynamic_address_count(uint32_t value) {
956 _impl_._has_bits_[0] |= 0x00000080u;
957 _impl_.dynamic_address_count_ = value;
958}
960 _internal_set_dynamic_address_count(value);
961 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.dynamic_address_count)
962}
963
964// optional .goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.ModelType model_type = 12 [default = UNIFORM];
965inline bool IPGatewayConfig::_internal_has_model_type() const {
966 bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
967 return value;
968}
970 return _internal_has_model_type();
971}
973 _impl_.model_type_ = 1;
974 _impl_._has_bits_[0] &= ~0x00002000u;
975}
976inline ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::_internal_model_type() const {
978}
979inline ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType IPGatewayConfig::model_type() const {
980 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.model_type)
981 return _internal_model_type();
982}
983inline void IPGatewayConfig::_internal_set_model_type(::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType value) {
985 _impl_._has_bits_[0] |= 0x00002000u;
986 _impl_.model_type_ = value;
987}
989 _internal_set_model_type(value);
990 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.model_type)
991}
992
993// optional double gamma_autonomy = 13 [default = 0.75];
994inline bool IPGatewayConfig::_internal_has_gamma_autonomy() const {
995 bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
996 return value;
997}
999 return _internal_has_gamma_autonomy();
1000}
1002 _impl_.gamma_autonomy_ = 0.75;
1003 _impl_._has_bits_[0] &= ~0x00004000u;
1004}
1005inline double IPGatewayConfig::_internal_gamma_autonomy() const {
1006 return _impl_.gamma_autonomy_;
1007}
1008inline double IPGatewayConfig::gamma_autonomy() const {
1009 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gamma_autonomy)
1010 return _internal_gamma_autonomy();
1011}
1012inline void IPGatewayConfig::_internal_set_gamma_autonomy(double value) {
1013 _impl_._has_bits_[0] |= 0x00004000u;
1014 _impl_.gamma_autonomy_ = value;
1015}
1016inline void IPGatewayConfig::set_gamma_autonomy(double value) {
1017 _internal_set_gamma_autonomy(value);
1018 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gamma_autonomy)
1019}
1020
1021// optional double gamma_collaboration = 14 [default = 0.25];
1022inline bool IPGatewayConfig::_internal_has_gamma_collaboration() const {
1023 bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
1024 return value;
1025}
1027 return _internal_has_gamma_collaboration();
1028}
1030 _impl_.gamma_collaboration_ = 0.25;
1031 _impl_._has_bits_[0] &= ~0x00008000u;
1032}
1033inline double IPGatewayConfig::_internal_gamma_collaboration() const {
1034 return _impl_.gamma_collaboration_;
1035}
1037 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gamma_collaboration)
1038 return _internal_gamma_collaboration();
1039}
1040inline void IPGatewayConfig::_internal_set_gamma_collaboration(double value) {
1041 _impl_._has_bits_[0] |= 0x00008000u;
1042 _impl_.gamma_collaboration_ = value;
1043}
1045 _internal_set_gamma_collaboration(value);
1046 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gamma_collaboration)
1047}
1048
1049// optional int32 gateway_id = 15 [default = 1];
1050inline bool IPGatewayConfig::_internal_has_gateway_id() const {
1051 bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
1052 return value;
1053}
1055 return _internal_has_gateway_id();
1056}
1058 _impl_.gateway_id_ = 1;
1059 _impl_._has_bits_[0] &= ~0x00010000u;
1060}
1061inline int32_t IPGatewayConfig::_internal_gateway_id() const {
1062 return _impl_.gateway_id_;
1063}
1064inline int32_t IPGatewayConfig::gateway_id() const {
1065 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gateway_id)
1066 return _internal_gateway_id();
1067}
1068inline void IPGatewayConfig::_internal_set_gateway_id(int32_t value) {
1069 _impl_._has_bits_[0] |= 0x00010000u;
1070 _impl_.gateway_id_ = value;
1071}
1072inline void IPGatewayConfig::set_gateway_id(int32_t value) {
1073 _internal_set_gateway_id(value);
1074 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.gateway_id)
1075}
1076
1077// optional int32 total_ports = 20 [default = 1];
1078inline bool IPGatewayConfig::_internal_has_total_ports() const {
1079 bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
1080 return value;
1081}
1083 return _internal_has_total_ports();
1084}
1086 _impl_.total_ports_ = 1;
1087 _impl_._has_bits_[0] &= ~0x00020000u;
1088}
1089inline int32_t IPGatewayConfig::_internal_total_ports() const {
1090 return _impl_.total_ports_;
1091}
1092inline int32_t IPGatewayConfig::total_ports() const {
1093 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.total_ports)
1094 return _internal_total_ports();
1095}
1096inline void IPGatewayConfig::_internal_set_total_ports(int32_t value) {
1097 _impl_._has_bits_[0] |= 0x00020000u;
1098 _impl_.total_ports_ = value;
1099}
1100inline void IPGatewayConfig::set_total_ports(int32_t value) {
1101 _internal_set_total_ports(value);
1102 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.total_ports)
1103}
1104
1105// repeated uint32 static_udp_port = 21;
1106inline int IPGatewayConfig::_internal_static_udp_port_size() const {
1107 return _impl_.static_udp_port_.size();
1108}
1110 return _internal_static_udp_port_size();
1111}
1113 _impl_.static_udp_port_.Clear();
1114}
1115inline uint32_t IPGatewayConfig::_internal_static_udp_port(int index) const {
1116 return _impl_.static_udp_port_.Get(index);
1117}
1118inline uint32_t IPGatewayConfig::static_udp_port(int index) const {
1119 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.static_udp_port)
1120 return _internal_static_udp_port(index);
1121}
1122inline void IPGatewayConfig::set_static_udp_port(int index, uint32_t value) {
1123 _impl_.static_udp_port_.Set(index, value);
1124 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.static_udp_port)
1125}
1126inline void IPGatewayConfig::_internal_add_static_udp_port(uint32_t value) {
1127 _impl_.static_udp_port_.Add(value);
1128}
1129inline void IPGatewayConfig::add_static_udp_port(uint32_t value) {
1130 _internal_add_static_udp_port(value);
1131 // @@protoc_insertion_point(field_add:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.static_udp_port)
1132}
1133inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1134IPGatewayConfig::_internal_static_udp_port() const {
1135 return _impl_.static_udp_port_;
1136}
1137inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >&
1139 // @@protoc_insertion_point(field_list:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.static_udp_port)
1140 return _internal_static_udp_port();
1141}
1142inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1143IPGatewayConfig::_internal_mutable_static_udp_port() {
1144 return &_impl_.static_udp_port_;
1145}
1146inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t >*
1148 // @@protoc_insertion_point(field_mutable_list:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.static_udp_port)
1149 return _internal_mutable_static_udp_port();
1150}
1151
1152// optional .goby.acomms.protobuf.MACConfig mac_cfg = 30;
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);
1156 return value;
1157}
1158inline bool IPGatewayConfig::has_mac_cfg() const {
1159 return _internal_has_mac_cfg();
1160}
1161inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::_internal_mac_cfg() const {
1162 const ::goby::acomms::protobuf::MACConfig* p = _impl_.mac_cfg_;
1163 return p != nullptr ? *p : reinterpret_cast<const ::goby::acomms::protobuf::MACConfig&>(
1165}
1166inline const ::goby::acomms::protobuf::MACConfig& IPGatewayConfig::mac_cfg() const {
1167 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mac_cfg)
1168 return _internal_mac_cfg();
1169}
1172 if (GetArenaForAllocation() == nullptr) {
1173 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.mac_cfg_);
1174 }
1175 _impl_.mac_cfg_ = mac_cfg;
1176 if (mac_cfg) {
1177 _impl_._has_bits_[0] |= 0x00000008u;
1178 } else {
1179 _impl_._has_bits_[0] &= ~0x00000008u;
1180 }
1181 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mac_cfg)
1182}
1183inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::release_mac_cfg() {
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; }
1191#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1192 if (GetArenaForAllocation() != nullptr) {
1193 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1194 }
1195#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1196 return temp;
1197}
1198inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::unsafe_arena_release_mac_cfg() {
1199 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mac_cfg)
1200 _impl_._has_bits_[0] &= ~0x00000008u;
1202 _impl_.mac_cfg_ = nullptr;
1203 return temp;
1204}
1205inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::_internal_mutable_mac_cfg() {
1206 _impl_._has_bits_[0] |= 0x00000008u;
1207 if (_impl_.mac_cfg_ == nullptr) {
1208 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::MACConfig>(GetArenaForAllocation());
1209 _impl_.mac_cfg_ = p;
1210 }
1211 return _impl_.mac_cfg_;
1212}
1213inline ::goby::acomms::protobuf::MACConfig* IPGatewayConfig::mutable_mac_cfg() {
1214 ::goby::acomms::protobuf::MACConfig* _msg = _internal_mutable_mac_cfg();
1215 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mac_cfg)
1216 return _msg;
1217}
1219 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1220 if (message_arena == nullptr) {
1221 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.mac_cfg_);
1222 }
1223 if (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);
1230 }
1231 _impl_._has_bits_[0] |= 0x00000008u;
1232 } else {
1233 _impl_._has_bits_[0] &= ~0x00000008u;
1234 }
1235 _impl_.mac_cfg_ = mac_cfg;
1236 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mac_cfg)
1237}
1238
1239// required uint32 mtu = 31;
1240inline bool IPGatewayConfig::_internal_has_mtu() const {
1241 bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
1242 return value;
1243}
1244inline bool IPGatewayConfig::has_mtu() const {
1245 return _internal_has_mtu();
1246}
1248 _impl_.mtu_ = 0u;
1249 _impl_._has_bits_[0] &= ~0x00000100u;
1250}
1251inline uint32_t IPGatewayConfig::_internal_mtu() const {
1252 return _impl_.mtu_;
1253}
1254inline uint32_t IPGatewayConfig::mtu() const {
1255 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mtu)
1256 return _internal_mtu();
1257}
1258inline void IPGatewayConfig::_internal_set_mtu(uint32_t value) {
1259 _impl_._has_bits_[0] |= 0x00000100u;
1260 _impl_.mtu_ = value;
1261}
1262inline void IPGatewayConfig::set_mtu(uint32_t value) {
1263 _internal_set_mtu(value);
1264 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.mtu)
1265}
1266
1267// optional bool bypass_mac = 32 [default = false];
1268inline bool IPGatewayConfig::_internal_has_bypass_mac() const {
1269 bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
1270 return value;
1271}
1273 return _internal_has_bypass_mac();
1274}
1276 _impl_.bypass_mac_ = false;
1277 _impl_._has_bits_[0] &= ~0x00000200u;
1278}
1279inline bool IPGatewayConfig::_internal_bypass_mac() const {
1280 return _impl_.bypass_mac_;
1281}
1282inline bool IPGatewayConfig::bypass_mac() const {
1283 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac)
1284 return _internal_bypass_mac();
1285}
1286inline void IPGatewayConfig::_internal_set_bypass_mac(bool value) {
1287 _impl_._has_bits_[0] |= 0x00000200u;
1288 _impl_.bypass_mac_ = value;
1289}
1290inline void IPGatewayConfig::set_bypass_mac(bool value) {
1291 _internal_set_bypass_mac(value);
1292 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac)
1293}
1294
1295// optional .goby.acomms.protobuf.ModemTransmission bypass_mac_slot = 33;
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);
1299 return value;
1300}
1302 return _internal_has_bypass_mac_slot();
1303}
1304inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::_internal_bypass_mac_slot() const {
1305 const ::goby::acomms::protobuf::ModemTransmission* p = _impl_.bypass_mac_slot_;
1306 return p != nullptr ? *p : reinterpret_cast<const ::goby::acomms::protobuf::ModemTransmission&>(
1308}
1309inline const ::goby::acomms::protobuf::ModemTransmission& IPGatewayConfig::bypass_mac_slot() const {
1310 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
1311 return _internal_bypass_mac_slot();
1312}
1315 if (GetArenaForAllocation() == nullptr) {
1316 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.bypass_mac_slot_);
1317 }
1318 _impl_.bypass_mac_slot_ = bypass_mac_slot;
1319 if (bypass_mac_slot) {
1320 _impl_._has_bits_[0] |= 0x00000010u;
1321 } else {
1322 _impl_._has_bits_[0] &= ~0x00000010u;
1323 }
1324 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
1325}
1326inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::release_bypass_mac_slot() {
1327 _impl_._has_bits_[0] &= ~0x00000010u;
1328 ::goby::acomms::protobuf::ModemTransmission* temp = _impl_.bypass_mac_slot_;
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; }
1334#else // PROTOBUF_FORCE_COPY_IN_RELEASE
1335 if (GetArenaForAllocation() != nullptr) {
1336 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1337 }
1338#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
1339 return temp;
1340}
1341inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::unsafe_arena_release_bypass_mac_slot() {
1342 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
1343 _impl_._has_bits_[0] &= ~0x00000010u;
1344 ::goby::acomms::protobuf::ModemTransmission* temp = _impl_.bypass_mac_slot_;
1345 _impl_.bypass_mac_slot_ = nullptr;
1346 return temp;
1347}
1348inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::_internal_mutable_bypass_mac_slot() {
1349 _impl_._has_bits_[0] |= 0x00000010u;
1350 if (_impl_.bypass_mac_slot_ == nullptr) {
1351 auto* p = CreateMaybeMessage<::goby::acomms::protobuf::ModemTransmission>(GetArenaForAllocation());
1352 _impl_.bypass_mac_slot_ = p;
1353 }
1354 return _impl_.bypass_mac_slot_;
1355}
1356inline ::goby::acomms::protobuf::ModemTransmission* IPGatewayConfig::mutable_bypass_mac_slot() {
1357 ::goby::acomms::protobuf::ModemTransmission* _msg = _internal_mutable_bypass_mac_slot();
1358 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
1359 return _msg;
1360}
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_);
1365 }
1366 if (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) {
1371 bypass_mac_slot = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1372 message_arena, bypass_mac_slot, submessage_arena);
1373 }
1374 _impl_._has_bits_[0] |= 0x00000010u;
1375 } else {
1376 _impl_._has_bits_[0] &= ~0x00000010u;
1377 }
1378 _impl_.bypass_mac_slot_ = bypass_mac_slot;
1379 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.bypass_mac_slot)
1380}
1381
1382// optional int32 queue_size = 40 [default = 100];
1383inline bool IPGatewayConfig::_internal_has_queue_size() const {
1384 bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
1385 return value;
1386}
1388 return _internal_has_queue_size();
1389}
1391 _impl_.queue_size_ = 100;
1392 _impl_._has_bits_[0] &= ~0x00000800u;
1393}
1394inline int32_t IPGatewayConfig::_internal_queue_size() const {
1395 return _impl_.queue_size_;
1396}
1397inline int32_t IPGatewayConfig::queue_size() const {
1398 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.queue_size)
1399 return _internal_queue_size();
1400}
1401inline void IPGatewayConfig::_internal_set_queue_size(int32_t value) {
1402 _impl_._has_bits_[0] |= 0x00000800u;
1403 _impl_.queue_size_ = value;
1404}
1405inline void IPGatewayConfig::set_queue_size(int32_t value) {
1406 _internal_set_queue_size(value);
1407 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.queue_size)
1408}
1409
1410// optional int32 only_rate = 50;
1411inline bool IPGatewayConfig::_internal_has_only_rate() const {
1412 bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
1413 return value;
1414}
1416 return _internal_has_only_rate();
1417}
1419 _impl_.only_rate_ = 0;
1420 _impl_._has_bits_[0] &= ~0x00000400u;
1421}
1422inline int32_t IPGatewayConfig::_internal_only_rate() const {
1423 return _impl_.only_rate_;
1424}
1425inline int32_t IPGatewayConfig::only_rate() const {
1426 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.only_rate)
1427 return _internal_only_rate();
1428}
1429inline void IPGatewayConfig::_internal_set_only_rate(int32_t value) {
1430 _impl_._has_bits_[0] |= 0x00000400u;
1431 _impl_.only_rate_ = value;
1432}
1433inline void IPGatewayConfig::set_only_rate(int32_t value) {
1434 _internal_set_only_rate(value);
1435 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.IPGatewayConfig.only_rate)
1436}
1437
1438#ifdef __GNUC__
1439 #pragma GCC diagnostic pop
1440#endif // __GNUC__
1441
1442// @@protoc_insertion_point(namespace_scope)
1443
1444} // namespace protobuf
1445} // namespace acomms
1446} // namespace zeromq
1447} // namespace apps
1448} // namespace goby
1449
1450PROTOBUF_NAMESPACE_OPEN
1451
1452template <> struct is_proto_enum< ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType> : ::std::true_type {};
1453template <>
1455 return ::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType_descriptor();
1456}
1457
1458PROTOBUF_NAMESPACE_CLOSE
1459
1460// @@protoc_insertion_point(global_scope)
1461
1462#include <google/protobuf/port_undef.inc>
1463#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fip_5fgateway_5fconfig_2eproto
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 *)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * ModelType_descriptor()
IPGatewayConfig & operator=(IPGatewayConfig &&from) noexcept
const ::goby::acomms::protobuf::MACConfig & mac_cfg() const
static const std::string & ModelType_Name(T enum_t_value)
PROTOBUF_CONSTEXPR IPGatewayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_allocated_local_ipv4_address(std::string *local_ipv4_address)
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)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const ::goby::acomms::protobuf::ModemTransmission & bypass_mac_slot() const
void set_local_ipv4_address(ArgT0 &&arg0, ArgT... args)
void CopyFrom(const IPGatewayConfig &from)
void set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig *mac_cfg)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::goby::acomms::protobuf::ModemTransmission * unsafe_arena_release_bypass_mac_slot()
::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType model_type() const
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void unsafe_arena_set_allocated_mac_cfg(::goby::acomms::protobuf::MACConfig *mac_cfg)
void set_model_type(::goby::apps::zeromq::acomms::protobuf::IPGatewayConfig_ModelType value)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
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()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
::goby::middleware::protobuf::AppConfig * mutable_app()
friend void swap(IPGatewayConfig &a, IPGatewayConfig &b)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint32_t > & static_udp_port() const
void unsafe_arena_set_allocated_bypass_mac_slot(::goby::acomms::protobuf::ModemTransmission *bypass_mac_slot)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
::goby::acomms::protobuf::ModemTransmission * mutable_bypass_mac_slot()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
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()
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
PROTOBUF_NODISCARD::goby::acomms::protobuf::ModemTransmission * release_bypass_mac_slot()
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
const std::string & IPGatewayConfig_ModelType_Name(T enum_t_value)
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * IPGatewayConfig_ModelType_descriptor()
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.