4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_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_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
41PROTOBUF_NAMESPACE_OPEN
45PROTOBUF_NAMESPACE_CLOSE
57struct AppConfigDefaultTypeInternal;
60struct SubMessageTypeDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
69PROTOBUF_NAMESPACE_CLOSE
78 public ::PROTOBUF_NAMESPACE_ID::Message {
82 explicit PROTOBUF_CONSTEXPR
AppConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
87 *
this = ::std::move(from);
95 if (
this == &from)
return *
this;
96 if (GetOwningArena() == from.GetOwningArena()
97 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
98 && GetOwningArena() !=
nullptr
109 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
112 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
115 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
128 return reinterpret_cast<const AppConfig*
>(
138 if (other ==
this)
return;
139 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
140 if (GetOwningArena() !=
nullptr &&
141 GetOwningArena() == other->GetOwningArena()) {
143 if (GetOwningArena() == other->GetOwningArena()) {
147 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
151 if (other ==
this)
return;
152 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
158 AppConfig*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
159 return CreateMaybeMessage<AppConfig>(arena);
161 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
163 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
165 AppConfig::MergeImpl(*
this, from);
168 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
170 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
176 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
182 void SetCachedSize(
int size)
const final;
186 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
187 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
188 return "goby.test.moos.protobuf.AppConfig";
191 explicit AppConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena,
192 bool is_message_owned =
false);
196 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
211 bool _internal_has_common()
const;
214 const ::goby::moos::protobuf::GobyMOOSAppConfig&
common()
const;
215 PROTOBUF_NODISCARD ::goby::moos::protobuf::GobyMOOSAppConfig*
release_common();
219 const ::goby::moos::protobuf::GobyMOOSAppConfig& _internal_common()
const;
229 bool _internal_has_submessage()
const;
232 const ::goby::test::moos::protobuf::SubMessageType&
submessage()
const;
233 PROTOBUF_NODISCARD ::goby::test::moos::protobuf::SubMessageType*
release_submessage();
237 const ::goby::test::moos::protobuf::SubMessageType& _internal_submessage()
const;
248 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
249 typedef void InternalArenaConstructable_;
250 typedef void DestructorSkippable_;
252 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
253 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
258 friend struct ::TableStruct_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto;
263 public ::PROTOBUF_NAMESPACE_ID::Message {
267 explicit PROTOBUF_CONSTEXPR
SubMessageType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
272 *
this = ::std::move(from);
280 if (
this == &from)
return *
this;
281 if (GetOwningArena() == from.GetOwningArena()
282 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
283 && GetOwningArena() !=
nullptr
294 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
297 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
300 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
301 return GetDescriptor();
304 return default_instance().GetMetadata().descriptor;
307 return default_instance().GetMetadata().reflection;
310 return *internal_default_instance();
316 static constexpr int kIndexInFileMessages =
323 if (other ==
this)
return;
324 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
325 if (GetOwningArena() !=
nullptr &&
326 GetOwningArena() == other->GetOwningArena()) {
328 if (GetOwningArena() == other->GetOwningArena()) {
332 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
336 if (other ==
this)
return;
337 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
344 return CreateMaybeMessage<SubMessageType>(arena);
346 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
348 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
350 SubMessageType::MergeImpl(*
this, from);
353 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
355 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
356 bool IsInitialized() const final;
359 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
360 uint8_t* _InternalSerialize(
361 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
362 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
365 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
367 void SetCachedSize(
int size)
const final;
371 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
372 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
373 return "goby.test.moos.protobuf.SubMessageType";
377 bool is_message_owned =
false);
381 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
383 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
393 bool has_foo()
const;
395 bool _internal_has_foo()
const;
399 void set_foo(int32_t value);
401 int32_t _internal_foo()
const;
402 void _internal_set_foo(int32_t value);
409 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
410 typedef void InternalArenaConstructable_;
411 typedef void DestructorSkippable_;
413 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
414 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
418 friend struct ::TableStruct_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto;
426 #pragma GCC diagnostic push
427 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
432inline bool AppConfig::_internal_has_common()
const {
433 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
434 PROTOBUF_ASSUME(!value || _impl_.common_ !=
nullptr);
437inline bool AppConfig::has_common()
const {
438 return _internal_has_common();
440inline const ::goby::moos::protobuf::GobyMOOSAppConfig& AppConfig::_internal_common()
const {
441 const ::goby::moos::protobuf::GobyMOOSAppConfig* p = _impl_.common_;
445inline const ::goby::moos::protobuf::GobyMOOSAppConfig& AppConfig::common()
const {
447 return _internal_common();
449inline void AppConfig::unsafe_arena_set_allocated_common(
451 if (GetArenaForAllocation() ==
nullptr) {
452 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.common_);
454 _impl_.common_ = common;
456 _impl_._has_bits_[0] |= 0x00000001u;
458 _impl_._has_bits_[0] &= ~0x00000001u;
462inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::release_common() {
463 _impl_._has_bits_[0] &= ~0x00000001u;
465 _impl_.common_ =
nullptr;
466#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
467 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
468 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
469 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
471 if (GetArenaForAllocation() !=
nullptr) {
472 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
477inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::unsafe_arena_release_common() {
479 _impl_._has_bits_[0] &= ~0x00000001u;
481 _impl_.common_ =
nullptr;
484inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::_internal_mutable_common() {
485 _impl_._has_bits_[0] |= 0x00000001u;
486 if (_impl_.common_ ==
nullptr) {
490 return _impl_.common_;
492inline ::goby::moos::protobuf::GobyMOOSAppConfig* AppConfig::mutable_common() {
498 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
499 if (message_arena ==
nullptr) {
500 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.common_);
503 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
504 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
505 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(common));
506 if (message_arena != submessage_arena) {
507 common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
508 message_arena, common, submessage_arena);
510 _impl_._has_bits_[0] |= 0x00000001u;
512 _impl_._has_bits_[0] &= ~0x00000001u;
514 _impl_.common_ = common;
519inline bool AppConfig::_internal_has_submessage()
const {
520 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
521 PROTOBUF_ASSUME(!value || _impl_.submessage_ !=
nullptr);
524inline bool AppConfig::has_submessage()
const {
525 return _internal_has_submessage();
527inline void AppConfig::clear_submessage() {
528 if (_impl_.submessage_ !=
nullptr) _impl_.submessage_->Clear();
529 _impl_._has_bits_[0] &= ~0x00000002u;
531inline const ::goby::test::moos::protobuf::SubMessageType& AppConfig::_internal_submessage()
const {
532 const ::goby::test::moos::protobuf::SubMessageType* p = _impl_.submessage_;
536inline const ::goby::test::moos::protobuf::SubMessageType& AppConfig::submessage()
const {
538 return _internal_submessage();
540inline void AppConfig::unsafe_arena_set_allocated_submessage(
542 if (GetArenaForAllocation() ==
nullptr) {
543 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(_impl_.submessage_);
545 _impl_.submessage_ = submessage;
547 _impl_._has_bits_[0] |= 0x00000002u;
549 _impl_._has_bits_[0] &= ~0x00000002u;
553inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::release_submessage() {
554 _impl_._has_bits_[0] &= ~0x00000002u;
556 _impl_.submessage_ =
nullptr;
557#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
558 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
559 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
560 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
562 if (GetArenaForAllocation() !=
nullptr) {
563 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
568inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::unsafe_arena_release_submessage() {
570 _impl_._has_bits_[0] &= ~0x00000002u;
572 _impl_.submessage_ =
nullptr;
575inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::_internal_mutable_submessage() {
576 _impl_._has_bits_[0] |= 0x00000002u;
577 if (_impl_.submessage_ ==
nullptr) {
579 _impl_.submessage_ = p;
581 return _impl_.submessage_;
583inline ::goby::test::moos::protobuf::SubMessageType* AppConfig::mutable_submessage() {
589 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
590 if (message_arena ==
nullptr) {
591 delete _impl_.submessage_;
594 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
595 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(submessage);
596 if (message_arena != submessage_arena) {
597 submessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
598 message_arena, submessage, submessage_arena);
600 _impl_._has_bits_[0] |= 0x00000002u;
602 _impl_._has_bits_[0] &= ~0x00000002u;
604 _impl_.submessage_ = submessage;
613inline bool SubMessageType::_internal_has_foo()
const {
614 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
617inline bool SubMessageType::has_foo()
const {
618 return _internal_has_foo();
620inline void SubMessageType::clear_foo() {
622 _impl_._has_bits_[0] &= ~0x00000001u;
624inline int32_t SubMessageType::_internal_foo()
const {
627inline int32_t SubMessageType::foo()
const {
629 return _internal_foo();
631inline void SubMessageType::_internal_set_foo(int32_t value) {
632 _impl_._has_bits_[0] |= 0x00000001u;
635inline void SubMessageType::set_foo(int32_t value) {
636 _internal_set_foo(value);
641 #pragma GCC diagnostic pop
655#include <google/protobuf/port_undef.inc>
void MergeFrom(const AppConfig &from)
bool has_submessage() const
friend void swap(AppConfig &a, AppConfig &b)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
int GetCachedSize() const final
AppConfig(const AppConfig &from)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
AppConfig(AppConfig &&from) noexcept
AppConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_CONSTEXPR AppConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::goby::test::moos::protobuf::SubMessageType & submessage() const
::goby::moos::protobuf::GobyMOOSAppConfig * unsafe_arena_release_common()
static constexpr int kIndexInFileMessages
void Swap(AppConfig *other)
void UnsafeArenaSwap(AppConfig *other)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
const ::goby::moos::protobuf::GobyMOOSAppConfig & common() const
static const AppConfig * internal_default_instance()
size_t ByteSizeLong() const final
AppConfig & operator=(AppConfig &&from) noexcept
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
::goby::moos::protobuf::GobyMOOSAppConfig * mutable_common()
static const AppConfig & default_instance()
void unsafe_arena_set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_submessage(::goby::test::moos::protobuf::SubMessageType *submessage)
AppConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
void unsafe_arena_set_allocated_submessage(::goby::test::moos::protobuf::SubMessageType *submessage)
void CopyFrom(const AppConfig &from)
::goby::test::moos::protobuf::SubMessageType * unsafe_arena_release_submessage()
AppConfig & operator=(const AppConfig &from)
static const ClassData _class_data_
::goby::test::moos::protobuf::SubMessageType * mutable_submessage()
bool IsInitialized() const final
PROTOBUF_NODISCARD::goby::moos::protobuf::GobyMOOSAppConfig * release_common()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD::goby::test::moos::protobuf::SubMessageType * release_submessage()
void UnsafeArenaSwap(SubMessageType *other)
PROTOBUF_CONSTEXPR SubMessageType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void CopyFrom(const SubMessageType &from)
static const SubMessageType & default_instance()
static const SubMessageType * internal_default_instance()
~SubMessageType() override
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
SubMessageType(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
friend void swap(SubMessageType &a, SubMessageType &b)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
void Swap(SubMessageType *other)
SubMessageType & operator=(const SubMessageType &from)
SubMessageType & operator=(SubMessageType &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
SubMessageType(SubMessageType &&from) noexcept
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
static const ClassData _class_data_
SubMessageType * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
void MergeFrom(const SubMessageType &from)
SubMessageType(const SubMessageType &from)
PROTOBUF_NAMESPACE_OPEN ::goby::moos::protobuf::GobyMOOSAppConfig * Arena::CreateMaybeMessage<::goby::moos::protobuf::GobyMOOSAppConfig >(Arena *)
GobyMOOSAppConfigDefaultTypeInternal _GobyMOOSAppConfig_default_instance_
SubMessageTypeDefaultTypeInternal _SubMessageType_default_instance_
AppConfigDefaultTypeInternal _AppConfig_default_instance_
The global namespace for the Goby project.
static const uint32_t offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2ftest_2funit_2fmoos_2fgoby_5fapp_5fconfig_2fconfig_2eproto
::goby::test::moos::protobuf::SubMessageType * Arena::CreateMaybeMessage<::goby::test::moos::protobuf::SubMessageType >(Arena *)