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