Goby3 3.1.5a
2024.05.23
Loading...
Searching...
No Matches
mosh_relay_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/mosh_relay_config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_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/unknown_field_set.h>
36#include "dccl/option_extensions.pb.h"
37#include <boost/units/quantity.hpp>
38#include <boost/units/absolute.hpp>
39#include <boost/units/dimensionless_type.hpp>
40#include <boost/units/make_scaled_unit.hpp>
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
54extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto;
55namespace goby {
56namespace apps {
57namespace zeromq {
58namespace acomms {
59namespace protobuf {
60class MoshRelayConfig;
61struct MoshRelayConfigDefaultTypeInternal;
62extern MoshRelayConfigDefaultTypeInternal _MoshRelayConfig_default_instance_;
63} // namespace protobuf
64} // namespace acomms
65} // namespace zeromq
66} // namespace apps
67} // namespace goby
68PROTOBUF_NAMESPACE_OPEN
69template<> ::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig* Arena::CreateMaybeMessage<::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig>(Arena*);
70PROTOBUF_NAMESPACE_CLOSE
71namespace goby {
72namespace apps {
73namespace zeromq {
74namespace acomms {
75namespace protobuf {
76
77// ===================================================================
78
79class MoshRelayConfig final :
80 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig) */ {
81 public:
82 inline MoshRelayConfig() : MoshRelayConfig(nullptr) {}
83 ~MoshRelayConfig() override;
84 explicit PROTOBUF_CONSTEXPR MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85
88 : MoshRelayConfig() {
89 *this = ::std::move(from);
90 }
91
93 CopyFrom(from);
94 return *this;
95 }
96 inline MoshRelayConfig& operator=(MoshRelayConfig&& from) noexcept {
97 if (this == &from) return *this;
98 if (GetOwningArena() == from.GetOwningArena()
99 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
100 && GetOwningArena() != nullptr
101 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
102 ) {
103 InternalSwap(&from);
104 } else {
105 CopyFrom(from);
106 }
107 return *this;
108 }
109
110 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
111 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
112 }
113 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
114 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
115 }
116
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
118 return GetDescriptor();
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
121 return default_instance().GetMetadata().descriptor;
122 }
123 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
124 return default_instance().GetMetadata().reflection;
125 }
128 }
130 return reinterpret_cast<const MoshRelayConfig*>(
132 }
133 static constexpr int kIndexInFileMessages =
134 0;
135
137 a.Swap(&b);
138 }
139 inline void Swap(MoshRelayConfig* other) {
140 if (other == this) return;
141 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() != nullptr &&
143 GetOwningArena() == other->GetOwningArena()) {
144 #else // PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() == other->GetOwningArena()) {
146 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
147 InternalSwap(other);
148 } else {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
150 }
151 }
153 if (other == this) return;
154 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
155 InternalSwap(other);
156 }
157
158 // implements Message ----------------------------------------------
159
160 MoshRelayConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
161 return CreateMaybeMessage<MoshRelayConfig>(arena);
162 }
163 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
164 void CopyFrom(const MoshRelayConfig& from);
165 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
166 void MergeFrom( const MoshRelayConfig& from) {
167 MoshRelayConfig::MergeImpl(*this, from);
168 }
169 private:
170 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
171 public:
172 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
173 bool IsInitialized() const final;
174
175 size_t ByteSizeLong() const final;
176 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
178 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
179 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
180
181 private:
182 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
183 void SharedDtor();
184 void SetCachedSize(int size) const final;
185 void InternalSwap(MoshRelayConfig* other);
186
187 private:
188 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
189 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
190 return "goby.apps.zeromq.acomms.protobuf.MoshRelayConfig";
191 }
192 protected:
193 explicit MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
194 bool is_message_owned = false);
195 public:
196
197 static const ClassData _class_data_;
198 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
199
200 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
201
202 // nested types ----------------------------------------------------
203
204 // accessors -------------------------------------------------------
205
206 enum : int {
214 };
215 // optional string ip_address = 3 [default = "127.0.0.1"];
216 bool has_ip_address() const;
217 private:
218 bool _internal_has_ip_address() const;
219 public:
220 void clear_ip_address();
221 const std::string& ip_address() const;
222 template <typename ArgT0 = const std::string&, typename... ArgT>
223 void set_ip_address(ArgT0&& arg0, ArgT... args);
224 std::string* mutable_ip_address();
225 PROTOBUF_NODISCARD std::string* release_ip_address();
226 void set_allocated_ip_address(std::string* ip_address);
227 private:
228 const std::string& _internal_ip_address() const;
229 inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value);
230 std::string* _internal_mutable_ip_address();
231 public:
232
233 // optional .goby.middleware.protobuf.AppConfig app = 1;
234 bool has_app() const;
235 private:
236 bool _internal_has_app() const;
237 public:
238 void clear_app();
239 const ::goby::middleware::protobuf::AppConfig& app() const;
240 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
243 private:
244 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
245 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
246 public:
250
251 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
252 bool has_interprocess() const;
253 private:
254 bool _internal_has_interprocess() const;
255 public:
257 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
258 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
261 private:
262 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
263 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
264 public:
268
269 // optional uint32 udp_port = 4;
270 bool has_udp_port() const;
271 private:
272 bool _internal_has_udp_port() const;
273 public:
274 void clear_udp_port();
275 uint32_t udp_port() const;
276 void set_udp_port(uint32_t value);
277 private:
278 uint32_t _internal_udp_port() const;
279 void _internal_set_udp_port(uint32_t value);
280 public:
281
282 // optional bool bind = 5;
283 bool has_bind() const;
284 private:
285 bool _internal_has_bind() const;
286 public:
287 void clear_bind();
288 bool bind() const;
289 void set_bind(bool value);
290 private:
291 bool _internal_bind() const;
292 void _internal_set_bind(bool value);
293 public:
294
295 // required uint32 src_modem_id = 6;
296 bool has_src_modem_id() const;
297 private:
298 bool _internal_has_src_modem_id() const;
299 public:
300 void clear_src_modem_id();
301 uint32_t src_modem_id() const;
302 void set_src_modem_id(uint32_t value);
303 private:
304 uint32_t _internal_src_modem_id() const;
305 void _internal_set_src_modem_id(uint32_t value);
306 public:
307
308 // required uint32 dest_modem_id = 7;
309 bool has_dest_modem_id() const;
310 private:
311 bool _internal_has_dest_modem_id() const;
312 public:
313 void clear_dest_modem_id();
314 uint32_t dest_modem_id() const;
315 void set_dest_modem_id(uint32_t value);
316 private:
317 uint32_t _internal_dest_modem_id() const;
318 void _internal_set_dest_modem_id(uint32_t value);
319 public:
320
321 // @@protoc_insertion_point(class_scope:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig)
322 private:
323 class _Internal;
324
325 // helper for ByteSizeLong()
326 size_t RequiredFieldsByteSizeFallback() const;
327
328 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
329 typedef void InternalArenaConstructable_;
330 typedef void DestructorSkippable_;
331 struct Impl_ {
332 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
333 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
334 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_ip_address_;
335 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_;
338 uint32_t udp_port_;
339 bool bind_;
340 uint32_t src_modem_id_;
341 uint32_t dest_modem_id_;
342 };
343 union { Impl_ _impl_; };
344 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto;
345};
346// ===================================================================
347
348
349// ===================================================================
350
351#ifdef __GNUC__
352 #pragma GCC diagnostic push
353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
354#endif // __GNUC__
355// MoshRelayConfig
356
357// optional .goby.middleware.protobuf.AppConfig app = 1;
358inline bool MoshRelayConfig::_internal_has_app() const {
359 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
360 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
361 return value;
362}
363inline bool MoshRelayConfig::has_app() const {
364 return _internal_has_app();
365}
366inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::_internal_app() const {
367 const ::goby::middleware::protobuf::AppConfig* p = _impl_.app_;
368 return p != nullptr ? *p : reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&>(
370}
371inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::app() const {
372 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
373 return _internal_app();
374}
377 if (GetArenaForAllocation() == nullptr) {
378 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
379 }
380 _impl_.app_ = app;
381 if (app) {
382 _impl_._has_bits_[0] |= 0x00000002u;
383 } else {
384 _impl_._has_bits_[0] &= ~0x00000002u;
385 }
386 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
387}
388inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::release_app() {
389 _impl_._has_bits_[0] &= ~0x00000002u;
391 _impl_.app_ = nullptr;
392#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
393 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
394 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
395 if (GetArenaForAllocation() == nullptr) { delete old; }
396#else // PROTOBUF_FORCE_COPY_IN_RELEASE
397 if (GetArenaForAllocation() != nullptr) {
398 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
399 }
400#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
401 return temp;
402}
403inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::unsafe_arena_release_app() {
404 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
405 _impl_._has_bits_[0] &= ~0x00000002u;
407 _impl_.app_ = nullptr;
408 return temp;
409}
410inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::_internal_mutable_app() {
411 _impl_._has_bits_[0] |= 0x00000002u;
412 if (_impl_.app_ == nullptr) {
413 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
414 _impl_.app_ = p;
415 }
416 return _impl_.app_;
417}
418inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::mutable_app() {
419 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
420 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
421 return _msg;
422}
424 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
425 if (message_arena == nullptr) {
426 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
427 }
428 if (app) {
429 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
430 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
431 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app));
432 if (message_arena != submessage_arena) {
433 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
434 message_arena, app, submessage_arena);
435 }
436 _impl_._has_bits_[0] |= 0x00000002u;
437 } else {
438 _impl_._has_bits_[0] &= ~0x00000002u;
439 }
440 _impl_.app_ = app;
441 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.app)
442}
443
444// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(.goby.field) = {
445inline bool MoshRelayConfig::_internal_has_interprocess() const {
446 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
447 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
448 return value;
449}
451 return _internal_has_interprocess();
452}
453inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::_internal_interprocess() const {
454 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = _impl_.interprocess_;
455 return p != nullptr ? *p : reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&>(
457}
458inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::interprocess() const {
459 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
460 return _internal_interprocess();
461}
464 if (GetArenaForAllocation() == nullptr) {
465 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
466 }
467 _impl_.interprocess_ = interprocess;
468 if (interprocess) {
469 _impl_._has_bits_[0] |= 0x00000004u;
470 } else {
471 _impl_._has_bits_[0] &= ~0x00000004u;
472 }
473 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
474}
475inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::release_interprocess() {
476 _impl_._has_bits_[0] &= ~0x00000004u;
478 _impl_.interprocess_ = nullptr;
479#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
480 auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
481 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
482 if (GetArenaForAllocation() == nullptr) { delete old; }
483#else // PROTOBUF_FORCE_COPY_IN_RELEASE
484 if (GetArenaForAllocation() != nullptr) {
485 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
486 }
487#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
488 return temp;
489}
490inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::unsafe_arena_release_interprocess() {
491 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
492 _impl_._has_bits_[0] &= ~0x00000004u;
494 _impl_.interprocess_ = nullptr;
495 return temp;
496}
497inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::_internal_mutable_interprocess() {
498 _impl_._has_bits_[0] |= 0x00000004u;
499 if (_impl_.interprocess_ == nullptr) {
501 _impl_.interprocess_ = p;
502 }
503 return _impl_.interprocess_;
504}
505inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::mutable_interprocess() {
506 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
507 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
508 return _msg;
509}
511 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
512 if (message_arena == nullptr) {
513 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
514 }
515 if (interprocess) {
516 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
517 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
518 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess));
519 if (message_arena != submessage_arena) {
520 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
521 message_arena, interprocess, submessage_arena);
522 }
523 _impl_._has_bits_[0] |= 0x00000004u;
524 } else {
525 _impl_._has_bits_[0] &= ~0x00000004u;
526 }
527 _impl_.interprocess_ = interprocess;
528 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.interprocess)
529}
530
531// optional string ip_address = 3 [default = "127.0.0.1"];
532inline bool MoshRelayConfig::_internal_has_ip_address() const {
533 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
534 return value;
535}
537 return _internal_has_ip_address();
538}
540 _impl_.ip_address_.ClearToDefault(::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::Impl_::_i_give_permission_to_break_this_code_default_ip_address_, GetArenaForAllocation());
541 _impl_._has_bits_[0] &= ~0x00000001u;
542}
543inline const std::string& MoshRelayConfig::ip_address() const {
544 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
545 if (_impl_.ip_address_.IsDefault()) return Impl_::_i_give_permission_to_break_this_code_default_ip_address_.get();
546 return _internal_ip_address();
547}
548template <typename ArgT0, typename... ArgT>
549inline PROTOBUF_ALWAYS_INLINE
550void MoshRelayConfig::set_ip_address(ArgT0&& arg0, ArgT... args) {
551 _impl_._has_bits_[0] |= 0x00000001u;
552 _impl_.ip_address_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
553 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
554}
556 std::string* _s = _internal_mutable_ip_address();
557 // @@protoc_insertion_point(field_mutable:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
558 return _s;
559}
560inline const std::string& MoshRelayConfig::_internal_ip_address() const {
561 return _impl_.ip_address_.Get();
562}
563inline void MoshRelayConfig::_internal_set_ip_address(const std::string& value) {
564 _impl_._has_bits_[0] |= 0x00000001u;
565 _impl_.ip_address_.Set(value, GetArenaForAllocation());
566}
567inline std::string* MoshRelayConfig::_internal_mutable_ip_address() {
568 _impl_._has_bits_[0] |= 0x00000001u;
569 return _impl_.ip_address_.Mutable(::goby::apps::zeromq::acomms::protobuf::MoshRelayConfig::Impl_::_i_give_permission_to_break_this_code_default_ip_address_, GetArenaForAllocation());
570}
572 // @@protoc_insertion_point(field_release:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
573 if (!_internal_has_ip_address()) {
574 return nullptr;
575 }
576 _impl_._has_bits_[0] &= ~0x00000001u;
577 auto* p = _impl_.ip_address_.Release();
578 return p;
579}
581 if (ip_address != nullptr) {
582 _impl_._has_bits_[0] |= 0x00000001u;
583 } else {
584 _impl_._has_bits_[0] &= ~0x00000001u;
585 }
586 _impl_.ip_address_.SetAllocated(ip_address, GetArenaForAllocation());
587 // @@protoc_insertion_point(field_set_allocated:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.ip_address)
588}
589
590// optional uint32 udp_port = 4;
591inline bool MoshRelayConfig::_internal_has_udp_port() const {
592 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
593 return value;
594}
595inline bool MoshRelayConfig::has_udp_port() const {
596 return _internal_has_udp_port();
597}
599 _impl_.udp_port_ = 0u;
600 _impl_._has_bits_[0] &= ~0x00000008u;
601}
602inline uint32_t MoshRelayConfig::_internal_udp_port() const {
603 return _impl_.udp_port_;
604}
605inline uint32_t MoshRelayConfig::udp_port() const {
606 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.udp_port)
607 return _internal_udp_port();
608}
609inline void MoshRelayConfig::_internal_set_udp_port(uint32_t value) {
610 _impl_._has_bits_[0] |= 0x00000008u;
611 _impl_.udp_port_ = value;
612}
613inline void MoshRelayConfig::set_udp_port(uint32_t value) {
614 _internal_set_udp_port(value);
615 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.udp_port)
616}
617
618// optional bool bind = 5;
619inline bool MoshRelayConfig::_internal_has_bind() const {
620 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
621 return value;
622}
623inline bool MoshRelayConfig::has_bind() const {
624 return _internal_has_bind();
625}
627 _impl_.bind_ = false;
628 _impl_._has_bits_[0] &= ~0x00000010u;
629}
630inline bool MoshRelayConfig::_internal_bind() const {
631 return _impl_.bind_;
632}
633inline bool MoshRelayConfig::bind() const {
634 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.bind)
635 return _internal_bind();
636}
637inline void MoshRelayConfig::_internal_set_bind(bool value) {
638 _impl_._has_bits_[0] |= 0x00000010u;
639 _impl_.bind_ = value;
640}
641inline void MoshRelayConfig::set_bind(bool value) {
642 _internal_set_bind(value);
643 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.bind)
644}
645
646// required uint32 src_modem_id = 6;
647inline bool MoshRelayConfig::_internal_has_src_modem_id() const {
648 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
649 return value;
650}
652 return _internal_has_src_modem_id();
653}
655 _impl_.src_modem_id_ = 0u;
656 _impl_._has_bits_[0] &= ~0x00000020u;
657}
658inline uint32_t MoshRelayConfig::_internal_src_modem_id() const {
659 return _impl_.src_modem_id_;
660}
661inline uint32_t MoshRelayConfig::src_modem_id() const {
662 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.src_modem_id)
663 return _internal_src_modem_id();
664}
665inline void MoshRelayConfig::_internal_set_src_modem_id(uint32_t value) {
666 _impl_._has_bits_[0] |= 0x00000020u;
667 _impl_.src_modem_id_ = value;
668}
669inline void MoshRelayConfig::set_src_modem_id(uint32_t value) {
670 _internal_set_src_modem_id(value);
671 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.src_modem_id)
672}
673
674// required uint32 dest_modem_id = 7;
675inline bool MoshRelayConfig::_internal_has_dest_modem_id() const {
676 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
677 return value;
678}
680 return _internal_has_dest_modem_id();
681}
683 _impl_.dest_modem_id_ = 0u;
684 _impl_._has_bits_[0] &= ~0x00000040u;
685}
686inline uint32_t MoshRelayConfig::_internal_dest_modem_id() const {
687 return _impl_.dest_modem_id_;
688}
689inline uint32_t MoshRelayConfig::dest_modem_id() const {
690 // @@protoc_insertion_point(field_get:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.dest_modem_id)
691 return _internal_dest_modem_id();
692}
693inline void MoshRelayConfig::_internal_set_dest_modem_id(uint32_t value) {
694 _impl_._has_bits_[0] |= 0x00000040u;
695 _impl_.dest_modem_id_ = value;
696}
697inline void MoshRelayConfig::set_dest_modem_id(uint32_t value) {
698 _internal_set_dest_modem_id(value);
699 // @@protoc_insertion_point(field_set:goby.apps.zeromq.acomms.protobuf.MoshRelayConfig.dest_modem_id)
700}
701
702#ifdef __GNUC__
703 #pragma GCC diagnostic pop
704#endif // __GNUC__
705
706// @@protoc_insertion_point(namespace_scope)
707
708} // namespace protobuf
709} // namespace acomms
710} // namespace zeromq
711} // namespace apps
712} // namespace goby
713
714// @@protoc_insertion_point(global_scope)
715
716#include <google/protobuf/port_undef.inc>
717#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
friend void swap(MoshRelayConfig &a, MoshRelayConfig &b)
MoshRelayConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
::goby::middleware::protobuf::AppConfig * mutable_app()
void CopyFrom(const MoshRelayConfig &from)
void set_ip_address(ArgT0 &&arg0, ArgT... args)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
PROTOBUF_CONSTEXPR MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
MoshRelayConfig & operator=(MoshRelayConfig &&from) noexcept
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
MoshRelayConfig & operator=(const MoshRelayConfig &from)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
MoshRelayConfigDefaultTypeInternal _MoshRelayConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.