4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fudpm_2fprotobuf_2finterprocess_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fudpm_2fprotobuf_2finterprocess_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>
34#include <boost/units/quantity.hpp>
35#include <boost/units/absolute.hpp>
36#include <boost/units/dimensionless_type.hpp>
37#include <boost/units/make_scaled_unit.hpp>
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_goby_2fudpm_2fprotobuf_2finterprocess_5fconfig_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
56struct InterProcessPortalConfigDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
71 public ::PROTOBUF_NAMESPACE_ID::Message {
80 *
this = ::std::move(from);
88 if (
this == &from)
return *
this;
89 if (GetOwningArena() == from.GetOwningArena()
90 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
91 && GetOwningArena() !=
nullptr
102 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
105 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
108 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
131 if (other ==
this)
return;
132 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
133 if (GetOwningArena() !=
nullptr &&
134 GetOwningArena() == other->GetOwningArena()) {
136 if (GetOwningArena() == other->GetOwningArena()) {
140 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
144 if (other ==
this)
return;
145 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
152 return CreateMaybeMessage<InterProcessPortalConfig>(arena);
154 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
156 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
158 InterProcessPortalConfig::MergeImpl(*
this, from);
161 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
163 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
169 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
175 void SetCachedSize(
int size)
const final;
179 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
180 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
181 return "goby.udpm.protobuf.InterProcessPortalConfig";
185 bool is_message_owned =
false);
189 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
209 bool _internal_has_platform()
const;
212 const std::string&
platform()
const;
213 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
219 const std::string& _internal_platform()
const;
220 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_platform(
const std::string& value);
221 std::string* _internal_mutable_platform();
227 bool _internal_has_listen_address()
const;
231 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
237 const std::string& _internal_listen_address()
const;
238 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_listen_address(
const std::string& value);
239 std::string* _internal_mutable_listen_address();
245 bool _internal_has_multicast_address()
const;
249 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
255 const std::string& _internal_multicast_address()
const;
256 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_multicast_address(
const std::string& value);
257 std::string* _internal_mutable_multicast_address();
263 bool _internal_has_client_name()
const;
267 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
273 const std::string& _internal_client_name()
const;
274 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_client_name(
const std::string& value);
275 std::string* _internal_mutable_client_name();
281 bool _internal_has_max_send_rate_bytes_per_second()
const;
287 uint32_t _internal_max_send_rate_bytes_per_second()
const;
288 void _internal_set_max_send_rate_bytes_per_second(uint32_t value);
294 bool _internal_has_multicast_port()
const;
300 uint32_t _internal_multicast_port()
const;
301 void _internal_set_multicast_port(uint32_t value);
307 bool _internal_has_udp_payload_bytes()
const;
313 uint32_t _internal_udp_payload_bytes()
const;
314 void _internal_set_udp_payload_bytes(uint32_t value);
321 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
322 typedef void InternalArenaConstructable_;
323 typedef void DestructorSkippable_;
325 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
326 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
327 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_platform_;
328 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_;
329 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_listen_address_;
330 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr listen_address_;
331 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_multicast_address_;
332 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr multicast_address_;
333 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_name_;
334 uint32_t max_send_rate_bytes_per_second_;
335 uint32_t multicast_port_;
336 uint32_t udp_payload_bytes_;
339 friend struct ::TableStruct_goby_2fudpm_2fprotobuf_2finterprocess_5fconfig_2eproto;
347 #pragma GCC diagnostic push
348 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
353inline bool InterProcessPortalConfig::_internal_has_platform()
const {
354 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
358 return _internal_has_platform();
361 _impl_.platform_.ClearToDefault(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_platform_, GetArenaForAllocation());
362 _impl_._has_bits_[0] &= ~0x00000001u;
366 if (
_impl_.platform_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_platform_.get();
367 return _internal_platform();
369template <
typename ArgT0,
typename... ArgT>
370inline PROTOBUF_ALWAYS_INLINE
372 _impl_._has_bits_[0] |= 0x00000001u;
373 _impl_.platform_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
377 std::string* _s = _internal_mutable_platform();
381inline const std::string& InterProcessPortalConfig::_internal_platform()
const {
382 return _impl_.platform_.Get();
384inline void InterProcessPortalConfig::_internal_set_platform(
const std::string& value) {
385 _impl_._has_bits_[0] |= 0x00000001u;
386 _impl_.platform_.Set(value, GetArenaForAllocation());
388inline std::string* InterProcessPortalConfig::_internal_mutable_platform() {
389 _impl_._has_bits_[0] |= 0x00000001u;
390 return _impl_.platform_.Mutable(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_platform_, GetArenaForAllocation());
394 if (!_internal_has_platform()) {
397 _impl_._has_bits_[0] &= ~0x00000001u;
398 auto* p =
_impl_.platform_.Release();
403 _impl_._has_bits_[0] |= 0x00000001u;
405 _impl_._has_bits_[0] &= ~0x00000001u;
412inline bool InterProcessPortalConfig::_internal_has_listen_address()
const {
413 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
417 return _internal_has_listen_address();
420 _impl_.listen_address_.ClearToDefault(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_listen_address_, GetArenaForAllocation());
421 _impl_._has_bits_[0] &= ~0x00000002u;
425 if (
_impl_.listen_address_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_listen_address_.get();
426 return _internal_listen_address();
428template <
typename ArgT0,
typename... ArgT>
429inline PROTOBUF_ALWAYS_INLINE
431 _impl_._has_bits_[0] |= 0x00000002u;
432 _impl_.listen_address_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
436 std::string* _s = _internal_mutable_listen_address();
440inline const std::string& InterProcessPortalConfig::_internal_listen_address()
const {
441 return _impl_.listen_address_.Get();
443inline void InterProcessPortalConfig::_internal_set_listen_address(
const std::string& value) {
444 _impl_._has_bits_[0] |= 0x00000002u;
445 _impl_.listen_address_.Set(value, GetArenaForAllocation());
447inline std::string* InterProcessPortalConfig::_internal_mutable_listen_address() {
448 _impl_._has_bits_[0] |= 0x00000002u;
449 return _impl_.listen_address_.Mutable(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_listen_address_, GetArenaForAllocation());
453 if (!_internal_has_listen_address()) {
456 _impl_._has_bits_[0] &= ~0x00000002u;
457 auto* p =
_impl_.listen_address_.Release();
462 _impl_._has_bits_[0] |= 0x00000002u;
464 _impl_._has_bits_[0] &= ~0x00000002u;
471inline bool InterProcessPortalConfig::_internal_has_multicast_address()
const {
472 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
476 return _internal_has_multicast_address();
479 _impl_.multicast_address_.ClearToDefault(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_multicast_address_, GetArenaForAllocation());
480 _impl_._has_bits_[0] &= ~0x00000004u;
484 if (
_impl_.multicast_address_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_multicast_address_.get();
485 return _internal_multicast_address();
487template <
typename ArgT0,
typename... ArgT>
488inline PROTOBUF_ALWAYS_INLINE
490 _impl_._has_bits_[0] |= 0x00000004u;
491 _impl_.multicast_address_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
495 std::string* _s = _internal_mutable_multicast_address();
499inline const std::string& InterProcessPortalConfig::_internal_multicast_address()
const {
500 return _impl_.multicast_address_.Get();
502inline void InterProcessPortalConfig::_internal_set_multicast_address(
const std::string& value) {
503 _impl_._has_bits_[0] |= 0x00000004u;
504 _impl_.multicast_address_.Set(value, GetArenaForAllocation());
506inline std::string* InterProcessPortalConfig::_internal_mutable_multicast_address() {
507 _impl_._has_bits_[0] |= 0x00000004u;
508 return _impl_.multicast_address_.Mutable(::goby::udpm::protobuf::InterProcessPortalConfig::Impl_::_i_give_permission_to_break_this_code_default_multicast_address_, GetArenaForAllocation());
512 if (!_internal_has_multicast_address()) {
515 _impl_._has_bits_[0] &= ~0x00000004u;
516 auto* p =
_impl_.multicast_address_.Release();
521 _impl_._has_bits_[0] |= 0x00000004u;
523 _impl_._has_bits_[0] &= ~0x00000004u;
530inline bool InterProcessPortalConfig::_internal_has_multicast_port()
const {
531 bool value = (
_impl_._has_bits_[0] & 0x00000020u) != 0;
535 return _internal_has_multicast_port();
538 _impl_.multicast_port_ = 11144u;
539 _impl_._has_bits_[0] &= ~0x00000020u;
541inline uint32_t InterProcessPortalConfig::_internal_multicast_port()
const {
542 return _impl_.multicast_port_;
546 return _internal_multicast_port();
548inline void InterProcessPortalConfig::_internal_set_multicast_port(uint32_t value) {
549 _impl_._has_bits_[0] |= 0x00000020u;
550 _impl_.multicast_port_ = value;
553 _internal_set_multicast_port(value);
558inline bool InterProcessPortalConfig::_internal_has_udp_payload_bytes()
const {
559 bool value = (
_impl_._has_bits_[0] & 0x00000040u) != 0;
563 return _internal_has_udp_payload_bytes();
566 _impl_.udp_payload_bytes_ = 1472u;
567 _impl_._has_bits_[0] &= ~0x00000040u;
569inline uint32_t InterProcessPortalConfig::_internal_udp_payload_bytes()
const {
570 return _impl_.udp_payload_bytes_;
574 return _internal_udp_payload_bytes();
576inline void InterProcessPortalConfig::_internal_set_udp_payload_bytes(uint32_t value) {
577 _impl_._has_bits_[0] |= 0x00000040u;
578 _impl_.udp_payload_bytes_ = value;
581 _internal_set_udp_payload_bytes(value);
586inline bool InterProcessPortalConfig::_internal_has_max_send_rate_bytes_per_second()
const {
587 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
591 return _internal_has_max_send_rate_bytes_per_second();
594 _impl_.max_send_rate_bytes_per_second_ = 0u;
595 _impl_._has_bits_[0] &= ~0x00000010u;
597inline uint32_t InterProcessPortalConfig::_internal_max_send_rate_bytes_per_second()
const {
598 return _impl_.max_send_rate_bytes_per_second_;
602 return _internal_max_send_rate_bytes_per_second();
604inline void InterProcessPortalConfig::_internal_set_max_send_rate_bytes_per_second(uint32_t value) {
605 _impl_._has_bits_[0] |= 0x00000010u;
606 _impl_.max_send_rate_bytes_per_second_ = value;
609 _internal_set_max_send_rate_bytes_per_second(value);
614inline bool InterProcessPortalConfig::_internal_has_client_name()
const {
615 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
619 return _internal_has_client_name();
622 _impl_.client_name_.ClearToEmpty();
623 _impl_._has_bits_[0] &= ~0x00000008u;
627 return _internal_client_name();
629template <
typename ArgT0,
typename... ArgT>
630inline PROTOBUF_ALWAYS_INLINE
632 _impl_._has_bits_[0] |= 0x00000008u;
633 _impl_.client_name_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
637 std::string* _s = _internal_mutable_client_name();
641inline const std::string& InterProcessPortalConfig::_internal_client_name()
const {
642 return _impl_.client_name_.Get();
644inline void InterProcessPortalConfig::_internal_set_client_name(
const std::string& value) {
645 _impl_._has_bits_[0] |= 0x00000008u;
646 _impl_.client_name_.Set(value, GetArenaForAllocation());
648inline std::string* InterProcessPortalConfig::_internal_mutable_client_name() {
649 _impl_._has_bits_[0] |= 0x00000008u;
650 return _impl_.client_name_.Mutable(GetArenaForAllocation());
654 if (!_internal_has_client_name()) {
657 _impl_._has_bits_[0] &= ~0x00000008u;
658 auto* p =
_impl_.client_name_.Release();
659#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
660 if (
_impl_.client_name_.IsDefault()) {
661 _impl_.client_name_.Set(
"", GetArenaForAllocation());
668 _impl_._has_bits_[0] |= 0x00000008u;
670 _impl_._has_bits_[0] &= ~0x00000008u;
673#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
674 if (
_impl_.client_name_.IsDefault()) {
675 _impl_.client_name_.Set(
"", GetArenaForAllocation());
682 #pragma GCC diagnostic pop
693#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void Swap(InterProcessPortalConfig *other)
void MergeFrom(const InterProcessPortalConfig &from)
std::string * mutable_platform()
void CopyFrom(const InterProcessPortalConfig &from)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void UnsafeArenaSwap(InterProcessPortalConfig *other)
void set_max_send_rate_bytes_per_second(uint32_t value)
PROTOBUF_NODISCARD std::string * release_listen_address()
uint32_t multicast_port() const
PROTOBUF_NODISCARD std::string * release_platform()
void clear_multicast_port()
InterProcessPortalConfig()
static const InterProcessPortalConfig & default_instance()
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const std::string & listen_address() const
void set_udp_payload_bytes(uint32_t value)
uint32_t max_send_rate_bytes_per_second() const
bool has_client_name() const
void set_platform(ArgT0 &&arg0, ArgT... args)
static constexpr int kIndexInFileMessages
void clear_listen_address()
static const InterProcessPortalConfig * internal_default_instance()
InterProcessPortalConfig(const InterProcessPortalConfig &from)
const std::string & platform() const
bool has_platform() const
InterProcessPortalConfig & operator=(InterProcessPortalConfig &&from) noexcept
bool has_listen_address() const
friend void swap(InterProcessPortalConfig &a, InterProcessPortalConfig &b)
const std::string & client_name() const
std::string * mutable_listen_address()
void set_allocated_client_name(std::string *client_name)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_udp_payload_bytes() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
size_t ByteSizeLong() const final
int GetCachedSize() const final
void set_multicast_port(uint32_t value)
uint32_t udp_payload_bytes() const
void clear_udp_payload_bytes()
void set_listen_address(ArgT0 &&arg0, ArgT... args)
std::string * mutable_client_name()
PROTOBUF_NODISCARD std::string * release_multicast_address()
bool has_multicast_port() const
static const ClassData _class_data_
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
InterProcessPortalConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
InterProcessPortalConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_client_name(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
bool IsInitialized() const final
std::string * mutable_multicast_address()
const std::string & multicast_address() const
void set_allocated_multicast_address(std::string *multicast_address)
void set_allocated_listen_address(std::string *listen_address)
InterProcessPortalConfig(InterProcessPortalConfig &&from) noexcept
InterProcessPortalConfig & operator=(const InterProcessPortalConfig &from)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void clear_max_send_rate_bytes_per_second()
void set_multicast_address(ArgT0 &&arg0, ArgT... args)
void set_allocated_platform(std::string *platform)
PROTOBUF_CONSTEXPR InterProcessPortalConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void clear_multicast_address()
PROTOBUF_NODISCARD std::string * release_client_name()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
@ kUdpPayloadBytesFieldNumber
@ kListenAddressFieldNumber
@ kMaxSendRateBytesPerSecondFieldNumber
@ kMulticastPortFieldNumber
@ kMulticastAddressFieldNumber
bool has_max_send_rate_bytes_per_second() const
~InterProcessPortalConfig() override
bool has_multicast_address() const
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fudpm_2fprotobuf_2finterprocess_5fconfig_2eproto