4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fzeromq_2fprotobuf_2fgps_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>
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_2fgps_5fconfig_2eproto
44PROTOBUF_NAMESPACE_OPEN
48PROTOBUF_NAMESPACE_CLOSE
60struct GPSDConfigDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
68PROTOBUF_NAMESPACE_CLOSE
77 public ::PROTOBUF_NAMESPACE_ID::Message {
81 explicit PROTOBUF_CONSTEXPR
GPSDConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 *
this = ::std::move(from);
94 if (
this == &from)
return *
this;
95 if (GetOwningArena() == from.GetOwningArena()
96 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97 && GetOwningArena() !=
nullptr
108 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
111 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
137 if (other ==
this)
return;
138 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
139 if (GetOwningArena() !=
nullptr &&
140 GetOwningArena() == other->GetOwningArena()) {
142 if (GetOwningArena() == other->GetOwningArena()) {
146 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
150 if (other ==
this)
return;
151 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
157 GPSDConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
158 return CreateMaybeMessage<GPSDConfig>(arena);
160 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
162 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
164 GPSDConfig::MergeImpl(*
this, from);
167 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
169 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
175 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
179 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
181 void SetCachedSize(
int size)
const final;
185 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
186 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
187 return "goby.apps.zeromq.protobuf.GPSDConfig";
191 bool is_message_owned =
false);
195 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
212 int _internal_device_name_size()
const;
226 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
device_name()
const;
229 const std::string& _internal_device_name(
int index)
const;
230 std::string* _internal_add_device_name();
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_gpsd()
const;
275 const ::goby::middleware::protobuf::TCPClientConfig&
gpsd()
const;
276 PROTOBUF_NODISCARD ::goby::middleware::protobuf::TCPClientConfig*
release_gpsd();
280 const ::goby::middleware::protobuf::TCPClientConfig& _internal_gpsd()
const;
291 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
292 typedef void InternalArenaConstructable_;
293 typedef void DestructorSkippable_;
295 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
296 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
297 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> device_name_;
303 friend struct ::TableStruct_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto;
311 #pragma GCC diagnostic push
312 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
317inline bool GPSDConfig::_internal_has_app()
const {
318 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
319 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
323 return _internal_has_app();
325inline const ::goby::middleware::protobuf::AppConfig& GPSDConfig::_internal_app()
const {
326 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
332 return _internal_app();
336 if (GetArenaForAllocation() ==
nullptr) {
337 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
341 _impl_._has_bits_[0] |= 0x00000001u;
343 _impl_._has_bits_[0] &= ~0x00000001u;
348 _impl_._has_bits_[0] &= ~0x00000001u;
351#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
352 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
353 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
354 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
356 if (GetArenaForAllocation() !=
nullptr) {
357 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
364 _impl_._has_bits_[0] &= ~0x00000001u;
369inline ::goby::middleware::protobuf::AppConfig* GPSDConfig::_internal_mutable_app() {
370 _impl_._has_bits_[0] |= 0x00000001u;
371 if (
_impl_.app_ ==
nullptr) {
383 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
384 if (message_arena ==
nullptr) {
385 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
388 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
389 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
390 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
391 if (message_arena != submessage_arena) {
392 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
393 message_arena,
app, submessage_arena);
395 _impl_._has_bits_[0] |= 0x00000001u;
397 _impl_._has_bits_[0] &= ~0x00000001u;
404inline bool GPSDConfig::_internal_has_interprocess()
const {
405 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
406 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
410 return _internal_has_interprocess();
412inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& GPSDConfig::_internal_interprocess()
const {
413 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
419 return _internal_interprocess();
423 if (GetArenaForAllocation() ==
nullptr) {
424 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
428 _impl_._has_bits_[0] |= 0x00000002u;
430 _impl_._has_bits_[0] &= ~0x00000002u;
435 _impl_._has_bits_[0] &= ~0x00000002u;
437 _impl_.interprocess_ =
nullptr;
438#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
439 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
440 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
441 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
443 if (GetArenaForAllocation() !=
nullptr) {
444 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
451 _impl_._has_bits_[0] &= ~0x00000002u;
453 _impl_.interprocess_ =
nullptr;
456inline ::goby::zeromq::protobuf::InterProcessPortalConfig* GPSDConfig::_internal_mutable_interprocess() {
457 _impl_._has_bits_[0] |= 0x00000002u;
458 if (
_impl_.interprocess_ ==
nullptr) {
462 return _impl_.interprocess_;
470 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
471 if (message_arena ==
nullptr) {
472 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
475 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
476 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
477 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
478 if (message_arena != submessage_arena) {
479 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
482 _impl_._has_bits_[0] |= 0x00000002u;
484 _impl_._has_bits_[0] &= ~0x00000002u;
491inline bool GPSDConfig::_internal_has_gpsd()
const {
492 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
493 PROTOBUF_ASSUME(!value ||
_impl_.gpsd_ !=
nullptr);
497 return _internal_has_gpsd();
499inline const ::goby::middleware::protobuf::TCPClientConfig& GPSDConfig::_internal_gpsd()
const {
500 const ::goby::middleware::protobuf::TCPClientConfig* p =
_impl_.gpsd_;
506 return _internal_gpsd();
510 if (GetArenaForAllocation() ==
nullptr) {
511 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.gpsd_);
515 _impl_._has_bits_[0] |= 0x00000004u;
517 _impl_._has_bits_[0] &= ~0x00000004u;
522 _impl_._has_bits_[0] &= ~0x00000004u;
525#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
526 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
527 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
528 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
530 if (GetArenaForAllocation() !=
nullptr) {
531 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
538 _impl_._has_bits_[0] &= ~0x00000004u;
543inline ::goby::middleware::protobuf::TCPClientConfig* GPSDConfig::_internal_mutable_gpsd() {
544 _impl_._has_bits_[0] |= 0x00000004u;
545 if (
_impl_.gpsd_ ==
nullptr) {
557 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
558 if (message_arena ==
nullptr) {
559 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.gpsd_);
562 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
563 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
564 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
gpsd));
565 if (message_arena != submessage_arena) {
566 gpsd = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
567 message_arena,
gpsd, submessage_arena);
569 _impl_._has_bits_[0] |= 0x00000004u;
571 _impl_._has_bits_[0] &= ~0x00000004u;
578inline int GPSDConfig::_internal_device_name_size()
const {
579 return _impl_.device_name_.size();
582 return _internal_device_name_size();
585 _impl_.device_name_.Clear();
588 std::string* _s = _internal_add_device_name();
592inline const std::string& GPSDConfig::_internal_device_name(
int index)
const {
593 return _impl_.device_name_.Get(index);
597 return _internal_device_name(index);
601 return _impl_.device_name_.Mutable(index);
604 _impl_.device_name_.Mutable(index)->assign(value);
608 _impl_.device_name_.Mutable(index)->assign(std::move(value));
612 GOOGLE_DCHECK(value !=
nullptr);
613 _impl_.device_name_.Mutable(index)->assign(value);
617 _impl_.device_name_.Mutable(index)->assign(
618 reinterpret_cast<const char*
>(value), size);
621inline std::string* GPSDConfig::_internal_add_device_name() {
622 return _impl_.device_name_.Add();
625 _impl_.device_name_.Add()->assign(value);
629 _impl_.device_name_.Add(std::move(value));
633 GOOGLE_DCHECK(value !=
nullptr);
634 _impl_.device_name_.Add()->assign(value);
638 _impl_.device_name_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
641inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
644 return _impl_.device_name_;
646inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
649 return &
_impl_.device_name_;
653 #pragma GCC diagnostic pop
665#include <google/protobuf/port_undef.inc>
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::AppConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::AppConfig >(Arena *)
size_t ByteSizeLong() const final
GPSDConfig & operator=(GPSDConfig &&from) noexcept
std::string * add_device_name()
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
::goby::middleware::protobuf::TCPClientConfig * unsafe_arena_release_gpsd()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const GPSDConfig * internal_default_instance()
::goby::middleware::protobuf::AppConfig * mutable_app()
void UnsafeArenaSwap(GPSDConfig *other)
GPSDConfig & operator=(const GPSDConfig &from)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void unsafe_arena_set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig *gpsd)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & device_name() const
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_device_name()
GPSDConfig(GPSDConfig &&from) noexcept
friend void swap(GPSDConfig &a, GPSDConfig &b)
GPSDConfig(const GPSDConfig &from)
bool has_interprocess() const
void CopyFrom(const GPSDConfig &from)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const GPSDConfig & default_instance()
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static constexpr int kIndexInFileMessages
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_device_name(int index, const std::string &value)
@ kInterprocessFieldNumber
void MergeFrom(const GPSDConfig &from)
int device_name_size() const
GPSDConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
void set_allocated_gpsd(::goby::middleware::protobuf::TCPClientConfig *gpsd)
::goby::middleware::protobuf::TCPClientConfig * mutable_gpsd()
PROTOBUF_CONSTEXPR GPSDConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
int GetCachedSize() const final
void Swap(GPSDConfig *other)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
const ::goby::middleware::protobuf::TCPClientConfig & gpsd() const
GPSDConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
static const ClassData _class_data_
bool IsInitialized() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
const ::goby::middleware::protobuf::AppConfig & app() const
PROTOBUF_NODISCARD::goby::middleware::protobuf::TCPClientConfig * release_gpsd()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
void clear_interprocess()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fzeromq_2fprotobuf_2fgps_5fconfig_2eproto
::goby::zeromq::protobuf::InterProcessPortalConfig * Arena::CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig >(Arena *)
GPSDConfigDefaultTypeInternal _GPSDConfig_default_instance_
TCPClientConfigDefaultTypeInternal _TCPClientConfig_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
InterProcessPortalConfigDefaultTypeInternal _InterProcessPortalConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]
PROTOBUF_NAMESPACE_OPEN ::goby::middleware::protobuf::TCPClientConfig * Arena::CreateMaybeMessage<::goby::middleware::protobuf::TCPClientConfig >(Arena *)