4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3021000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
16#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_util.h>
27#include <google/protobuf/metadata_lite.h>
28#include <google/protobuf/generated_message_reflection.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/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>
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
61struct MoshRelayConfigDefaultTypeInternal;
68PROTOBUF_NAMESPACE_OPEN
70PROTOBUF_NAMESPACE_CLOSE
80 public ::PROTOBUF_NAMESPACE_ID::Message {
84 explicit PROTOBUF_CONSTEXPR
MoshRelayConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
89 *
this = ::std::move(from);
97 if (
this == &from)
return *
this;
98 if (GetOwningArena() == from.GetOwningArena()
99 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
100 && GetOwningArena() !=
nullptr
111 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
114 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
140 if (other ==
this)
return;
141 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
142 if (GetOwningArena() !=
nullptr &&
143 GetOwningArena() == other->GetOwningArena()) {
145 if (GetOwningArena() == other->GetOwningArena()) {
149 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
153 if (other ==
this)
return;
154 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
161 return CreateMaybeMessage<MoshRelayConfig>(arena);
163 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
165 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
167 MoshRelayConfig::MergeImpl(*
this, from);
170 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
172 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
178 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
182 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
184 void SetCachedSize(
int size)
const final;
188 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
189 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
190 return "goby.apps.zeromq.acomms.protobuf.MoshRelayConfig";
194 bool is_message_owned =
false);
198 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
218 bool _internal_has_ip_address()
const;
222 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
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();
236 bool _internal_has_app()
const;
239 const ::goby::middleware::protobuf::AppConfig&
app()
const;
240 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
244 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
254 bool _internal_has_interprocess()
const;
257 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
262 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
272 bool _internal_has_udp_port()
const;
278 uint32_t _internal_udp_port()
const;
279 void _internal_set_udp_port(uint32_t value);
285 bool _internal_has_bind()
const;
291 bool _internal_bind()
const;
292 void _internal_set_bind(
bool value);
298 bool _internal_has_src_modem_id()
const;
304 uint32_t _internal_src_modem_id()
const;
305 void _internal_set_src_modem_id(uint32_t value);
311 bool _internal_has_dest_modem_id()
const;
317 uint32_t _internal_dest_modem_id()
const;
318 void _internal_set_dest_modem_id(uint32_t value);
326 size_t RequiredFieldsByteSizeFallback()
const;
328 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
329 typedef void InternalArenaConstructable_;
330 typedef void DestructorSkippable_;
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_;
340 uint32_t src_modem_id_;
341 uint32_t dest_modem_id_;
344 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fmosh_5frelay_5fconfig_2eproto;
352 #pragma GCC diagnostic push
353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
358inline bool MoshRelayConfig::_internal_has_app()
const {
359 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
360 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
364 return _internal_has_app();
366inline const ::goby::middleware::protobuf::AppConfig& MoshRelayConfig::_internal_app()
const {
367 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
373 return _internal_app();
377 if (GetArenaForAllocation() ==
nullptr) {
378 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
382 _impl_._has_bits_[0] |= 0x00000002u;
384 _impl_._has_bits_[0] &= ~0x00000002u;
389 _impl_._has_bits_[0] &= ~0x00000002u;
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; }
397 if (GetArenaForAllocation() !=
nullptr) {
398 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
405 _impl_._has_bits_[0] &= ~0x00000002u;
410inline ::goby::middleware::protobuf::AppConfig* MoshRelayConfig::_internal_mutable_app() {
411 _impl_._has_bits_[0] |= 0x00000002u;
412 if (
_impl_.app_ ==
nullptr) {
424 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
425 if (message_arena ==
nullptr) {
426 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.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);
436 _impl_._has_bits_[0] |= 0x00000002u;
438 _impl_._has_bits_[0] &= ~0x00000002u;
445inline bool MoshRelayConfig::_internal_has_interprocess()
const {
446 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
447 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
451 return _internal_has_interprocess();
453inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& MoshRelayConfig::_internal_interprocess()
const {
454 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
460 return _internal_interprocess();
464 if (GetArenaForAllocation() ==
nullptr) {
465 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
469 _impl_._has_bits_[0] |= 0x00000004u;
471 _impl_._has_bits_[0] &= ~0x00000004u;
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; }
484 if (GetArenaForAllocation() !=
nullptr) {
485 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
492 _impl_._has_bits_[0] &= ~0x00000004u;
494 _impl_.interprocess_ =
nullptr;
497inline ::goby::zeromq::protobuf::InterProcessPortalConfig* MoshRelayConfig::_internal_mutable_interprocess() {
498 _impl_._has_bits_[0] |= 0x00000004u;
499 if (
_impl_.interprocess_ ==
nullptr) {
503 return _impl_.interprocess_;
511 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
512 if (message_arena ==
nullptr) {
513 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.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(
523 _impl_._has_bits_[0] |= 0x00000004u;
525 _impl_._has_bits_[0] &= ~0x00000004u;
532inline bool MoshRelayConfig::_internal_has_ip_address()
const {
533 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
537 return _internal_has_ip_address();
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;
545 if (
_impl_.ip_address_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_ip_address_.get();
546 return _internal_ip_address();
548template <
typename ArgT0,
typename... ArgT>
549inline PROTOBUF_ALWAYS_INLINE
551 _impl_._has_bits_[0] |= 0x00000001u;
552 _impl_.ip_address_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
556 std::string* _s = _internal_mutable_ip_address();
560inline const std::string& MoshRelayConfig::_internal_ip_address()
const {
561 return _impl_.ip_address_.Get();
563inline void MoshRelayConfig::_internal_set_ip_address(
const std::string& value) {
564 _impl_._has_bits_[0] |= 0x00000001u;
565 _impl_.ip_address_.Set(value, GetArenaForAllocation());
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());
573 if (!_internal_has_ip_address()) {
576 _impl_._has_bits_[0] &= ~0x00000001u;
577 auto* p =
_impl_.ip_address_.Release();
582 _impl_._has_bits_[0] |= 0x00000001u;
584 _impl_._has_bits_[0] &= ~0x00000001u;
591inline bool MoshRelayConfig::_internal_has_udp_port()
const {
592 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
596 return _internal_has_udp_port();
600 _impl_._has_bits_[0] &= ~0x00000008u;
602inline uint32_t MoshRelayConfig::_internal_udp_port()
const {
607 return _internal_udp_port();
609inline void MoshRelayConfig::_internal_set_udp_port(uint32_t value) {
610 _impl_._has_bits_[0] |= 0x00000008u;
614 _internal_set_udp_port(value);
619inline bool MoshRelayConfig::_internal_has_bind()
const {
620 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
624 return _internal_has_bind();
628 _impl_._has_bits_[0] &= ~0x00000010u;
630inline bool MoshRelayConfig::_internal_bind()
const {
635 return _internal_bind();
637inline void MoshRelayConfig::_internal_set_bind(
bool value) {
638 _impl_._has_bits_[0] |= 0x00000010u;
642 _internal_set_bind(value);
647inline bool MoshRelayConfig::_internal_has_src_modem_id()
const {
648 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
652 return _internal_has_src_modem_id();
655 _impl_.src_modem_id_ = 0u;
656 _impl_._has_bits_[0] &= ~0x00000020u;
658inline uint32_t MoshRelayConfig::_internal_src_modem_id()
const {
659 return _impl_.src_modem_id_;
663 return _internal_src_modem_id();
665inline void MoshRelayConfig::_internal_set_src_modem_id(uint32_t value) {
666 _impl_._has_bits_[0] |= 0x00000020u;
667 _impl_.src_modem_id_ = value;
670 _internal_set_src_modem_id(value);
675inline bool MoshRelayConfig::_internal_has_dest_modem_id()
const {
676 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
680 return _internal_has_dest_modem_id();
683 _impl_.dest_modem_id_ = 0u;
684 _impl_._has_bits_[0] &= ~0x00000040u;
686inline uint32_t MoshRelayConfig::_internal_dest_modem_id()
const {
687 return _impl_.dest_modem_id_;
691 return _internal_dest_modem_id();
693inline void MoshRelayConfig::_internal_set_dest_modem_id(uint32_t value) {
694 _impl_._has_bits_[0] |= 0x00000040u;
695 _impl_.dest_modem_id_ = value;
698 _internal_set_dest_modem_id(value);
703 #pragma GCC diagnostic pop
716#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
void clear_src_modem_id()
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
void set_bind(bool value)
int GetCachedSize() const final
void UnsafeArenaSwap(MoshRelayConfig *other)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool IsInitialized() const 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 MergeFrom(const MoshRelayConfig &from)
uint32_t src_modem_id() const
MoshRelayConfig(const MoshRelayConfig &from)
size_t ByteSizeLong() const final
bool has_ip_address() const
void CopyFrom(const MoshRelayConfig &from)
void set_ip_address(ArgT0 &&arg0, ArgT... args)
static constexpr int kIndexInFileMessages
@ kInterprocessFieldNumber
@ kDestModemIdFieldNumber
std::string * mutable_ip_address()
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
bool has_dest_modem_id() const
uint32_t udp_port() const
void set_dest_modem_id(uint32_t value)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
bool has_src_modem_id() const
PROTOBUF_NODISCARD std::string * release_ip_address()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
static const MoshRelayConfig * internal_default_instance()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
~MoshRelayConfig() override
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
static const ClassData _class_data_
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void clear_interprocess()
void set_udp_port(uint32_t value)
MoshRelayConfig(MoshRelayConfig &&from) noexcept
const std::string & ip_address() const
bool has_interprocess() const
uint32_t dest_modem_id() const
bool has_udp_port() const
static const MoshRelayConfig & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void set_allocated_ip_address(std::string *ip_address)
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 Swap(MoshRelayConfig *other)
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
void set_src_modem_id(uint32_t value)
void clear_dest_modem_id()
::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.
static const uint32_t offsets[]