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