4#ifndef GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_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 <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>
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
59struct pTranslatorConfigDefaultTypeInternal;
65PROTOBUF_NAMESPACE_OPEN
67PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
pTranslatorConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
136 if (other ==
this)
return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() !=
nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
141 if (GetOwningArena() == other->GetOwningArena()) {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
149 if (other ==
this)
return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
157 return CreateMaybeMessage<pTranslatorConfig>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 pTranslatorConfig::MergeImpl(*
this, from);
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
168 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
180 void SetCachedSize(
int size)
const final;
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "goby.apps.moos.protobuf.pTranslatorConfig";
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
213 int _internal_load_shared_library_size()
const;
230 const std::string& _internal_load_shared_library(
int index)
const;
231 std::string* _internal_add_load_shared_library();
237 int _internal_load_proto_file_size()
const;
251 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
load_proto_file()
const;
254 const std::string& _internal_load_proto_file(
int index)
const;
255 std::string* _internal_add_load_proto_file();
261 int _internal_translator_entry_size()
const;
265 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >*
268 const ::goby::moos::protobuf::TranslatorEntry& _internal_translator_entry(
int index)
const;
271 const ::goby::moos::protobuf::TranslatorEntry&
translator_entry(
int index)
const;
273 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
279 int _internal_multiplex_create_moos_var_size()
const;
296 const std::string& _internal_multiplex_create_moos_var(
int index)
const;
297 std::string* _internal_add_multiplex_create_moos_var();
303 bool _internal_has_modem_id_lookup_path()
const;
307 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
313 const std::string& _internal_modem_id_lookup_path()
const;
314 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_modem_id_lookup_path(
const std::string& value);
315 std::string* _internal_mutable_modem_id_lookup_path();
321 bool _internal_has_common()
const;
324 const ::goby::moos::protobuf::GobyMOOSAppConfig&
common()
const;
325 PROTOBUF_NODISCARD ::goby::moos::protobuf::GobyMOOSAppConfig*
release_common();
329 const ::goby::moos::protobuf::GobyMOOSAppConfig& _internal_common()
const;
340 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
341 typedef void InternalArenaConstructable_;
342 typedef void DestructorSkippable_;
344 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
345 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
346 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> load_shared_library_;
347 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> load_proto_file_;
348 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry > translator_entry_;
349 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> multiplex_create_moos_var_;
350 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr modem_id_lookup_path_;
354 friend struct ::TableStruct_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto;
362 #pragma GCC diagnostic push
363 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
368inline bool pTranslatorConfig::_internal_has_common()
const {
369 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
370 PROTOBUF_ASSUME(!value ||
_impl_.common_ !=
nullptr);
374 return _internal_has_common();
376inline const ::goby::moos::protobuf::GobyMOOSAppConfig& pTranslatorConfig::_internal_common()
const {
377 const ::goby::moos::protobuf::GobyMOOSAppConfig* p =
_impl_.common_;
383 return _internal_common();
387 if (GetArenaForAllocation() ==
nullptr) {
388 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.common_);
392 _impl_._has_bits_[0] |= 0x00000002u;
394 _impl_._has_bits_[0] &= ~0x00000002u;
399 _impl_._has_bits_[0] &= ~0x00000002u;
402#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
403 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
404 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
405 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
407 if (GetArenaForAllocation() !=
nullptr) {
408 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
415 _impl_._has_bits_[0] &= ~0x00000002u;
420inline ::goby::moos::protobuf::GobyMOOSAppConfig* pTranslatorConfig::_internal_mutable_common() {
421 _impl_._has_bits_[0] |= 0x00000002u;
422 if (
_impl_.common_ ==
nullptr) {
434 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
435 if (message_arena ==
nullptr) {
436 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.common_);
439 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
440 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
441 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
common));
442 if (message_arena != submessage_arena) {
443 common = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
444 message_arena,
common, submessage_arena);
446 _impl_._has_bits_[0] |= 0x00000002u;
448 _impl_._has_bits_[0] &= ~0x00000002u;
455inline int pTranslatorConfig::_internal_load_shared_library_size()
const {
456 return _impl_.load_shared_library_.size();
459 return _internal_load_shared_library_size();
462 _impl_.load_shared_library_.Clear();
465 std::string* _s = _internal_add_load_shared_library();
469inline const std::string& pTranslatorConfig::_internal_load_shared_library(
int index)
const {
470 return _impl_.load_shared_library_.Get(index);
474 return _internal_load_shared_library(index);
478 return _impl_.load_shared_library_.Mutable(index);
481 _impl_.load_shared_library_.Mutable(index)->assign(value);
485 _impl_.load_shared_library_.Mutable(index)->assign(std::move(value));
489 GOOGLE_DCHECK(value !=
nullptr);
490 _impl_.load_shared_library_.Mutable(index)->assign(value);
494 _impl_.load_shared_library_.Mutable(index)->assign(
495 reinterpret_cast<const char*
>(value), size);
498inline std::string* pTranslatorConfig::_internal_add_load_shared_library() {
499 return _impl_.load_shared_library_.Add();
502 _impl_.load_shared_library_.Add()->assign(value);
506 _impl_.load_shared_library_.Add(std::move(value));
510 GOOGLE_DCHECK(value !=
nullptr);
511 _impl_.load_shared_library_.Add()->assign(value);
515 _impl_.load_shared_library_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
518inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
521 return _impl_.load_shared_library_;
523inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
526 return &
_impl_.load_shared_library_;
530inline int pTranslatorConfig::_internal_load_proto_file_size()
const {
531 return _impl_.load_proto_file_.size();
534 return _internal_load_proto_file_size();
537 _impl_.load_proto_file_.Clear();
540 std::string* _s = _internal_add_load_proto_file();
544inline const std::string& pTranslatorConfig::_internal_load_proto_file(
int index)
const {
545 return _impl_.load_proto_file_.Get(index);
549 return _internal_load_proto_file(index);
553 return _impl_.load_proto_file_.Mutable(index);
556 _impl_.load_proto_file_.Mutable(index)->assign(value);
560 _impl_.load_proto_file_.Mutable(index)->assign(std::move(value));
564 GOOGLE_DCHECK(value !=
nullptr);
565 _impl_.load_proto_file_.Mutable(index)->assign(value);
569 _impl_.load_proto_file_.Mutable(index)->assign(
570 reinterpret_cast<const char*
>(value), size);
573inline std::string* pTranslatorConfig::_internal_add_load_proto_file() {
574 return _impl_.load_proto_file_.Add();
577 _impl_.load_proto_file_.Add()->assign(value);
581 _impl_.load_proto_file_.Add(std::move(value));
585 GOOGLE_DCHECK(value !=
nullptr);
586 _impl_.load_proto_file_.Add()->assign(value);
590 _impl_.load_proto_file_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
593inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
596 return _impl_.load_proto_file_;
598inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
601 return &
_impl_.load_proto_file_;
605inline int pTranslatorConfig::_internal_translator_entry_size()
const {
606 return _impl_.translator_entry_.size();
609 return _internal_translator_entry_size();
613 return _impl_.translator_entry_.Mutable(index);
615inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >*
618 return &
_impl_.translator_entry_;
620inline const ::goby::moos::protobuf::TranslatorEntry& pTranslatorConfig::_internal_translator_entry(
int index)
const {
621 return _impl_.translator_entry_.Get(index);
625 return _internal_translator_entry(index);
627inline ::goby::moos::protobuf::TranslatorEntry* pTranslatorConfig::_internal_add_translator_entry() {
628 return _impl_.translator_entry_.Add();
635inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
638 return _impl_.translator_entry_;
642inline bool pTranslatorConfig::_internal_has_modem_id_lookup_path()
const {
643 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
647 return _internal_has_modem_id_lookup_path();
650 _impl_.modem_id_lookup_path_.ClearToEmpty();
651 _impl_._has_bits_[0] &= ~0x00000001u;
655 return _internal_modem_id_lookup_path();
657template <
typename ArgT0,
typename... ArgT>
658inline PROTOBUF_ALWAYS_INLINE
660 _impl_._has_bits_[0] |= 0x00000001u;
661 _impl_.modem_id_lookup_path_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
665 std::string* _s = _internal_mutable_modem_id_lookup_path();
669inline const std::string& pTranslatorConfig::_internal_modem_id_lookup_path()
const {
670 return _impl_.modem_id_lookup_path_.Get();
672inline void pTranslatorConfig::_internal_set_modem_id_lookup_path(
const std::string& value) {
673 _impl_._has_bits_[0] |= 0x00000001u;
674 _impl_.modem_id_lookup_path_.Set(value, GetArenaForAllocation());
676inline std::string* pTranslatorConfig::_internal_mutable_modem_id_lookup_path() {
677 _impl_._has_bits_[0] |= 0x00000001u;
678 return _impl_.modem_id_lookup_path_.Mutable(GetArenaForAllocation());
682 if (!_internal_has_modem_id_lookup_path()) {
685 _impl_._has_bits_[0] &= ~0x00000001u;
686 auto* p =
_impl_.modem_id_lookup_path_.Release();
687#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
688 if (
_impl_.modem_id_lookup_path_.IsDefault()) {
689 _impl_.modem_id_lookup_path_.Set(
"", GetArenaForAllocation());
696 _impl_._has_bits_[0] |= 0x00000001u;
698 _impl_._has_bits_[0] &= ~0x00000001u;
701#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
702 if (
_impl_.modem_id_lookup_path_.IsDefault()) {
703 _impl_.modem_id_lookup_path_.Set(
"", GetArenaForAllocation());
710inline int pTranslatorConfig::_internal_multiplex_create_moos_var_size()
const {
711 return _impl_.multiplex_create_moos_var_.size();
714 return _internal_multiplex_create_moos_var_size();
717 _impl_.multiplex_create_moos_var_.Clear();
720 std::string* _s = _internal_add_multiplex_create_moos_var();
724inline const std::string& pTranslatorConfig::_internal_multiplex_create_moos_var(
int index)
const {
725 return _impl_.multiplex_create_moos_var_.Get(index);
729 return _internal_multiplex_create_moos_var(index);
733 return _impl_.multiplex_create_moos_var_.Mutable(index);
736 _impl_.multiplex_create_moos_var_.Mutable(index)->assign(value);
740 _impl_.multiplex_create_moos_var_.Mutable(index)->assign(std::move(value));
744 GOOGLE_DCHECK(value !=
nullptr);
745 _impl_.multiplex_create_moos_var_.Mutable(index)->assign(value);
749 _impl_.multiplex_create_moos_var_.Mutable(index)->assign(
750 reinterpret_cast<const char*
>(value), size);
753inline std::string* pTranslatorConfig::_internal_add_multiplex_create_moos_var() {
754 return _impl_.multiplex_create_moos_var_.Add();
757 _impl_.multiplex_create_moos_var_.Add()->assign(value);
761 _impl_.multiplex_create_moos_var_.Add(std::move(value));
765 GOOGLE_DCHECK(value !=
nullptr);
766 _impl_.multiplex_create_moos_var_.Add()->assign(value);
770 _impl_.multiplex_create_moos_var_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
773inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
776 return _impl_.multiplex_create_moos_var_;
778inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
781 return &
_impl_.multiplex_create_moos_var_;
785 #pragma GCC diagnostic pop
797#include <google/protobuf/port_undef.inc>
std::string * add_multiplex_create_moos_var()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
void set_multiplex_create_moos_var(int index, const std::string &value)
::goby::moos::protobuf::GobyMOOSAppConfig * unsafe_arena_release_common()
const std::string & modem_id_lookup_path() const
const ::goby::moos::protobuf::GobyMOOSAppConfig & common() const
PROTOBUF_NODISCARD::goby::moos::protobuf::GobyMOOSAppConfig * release_common()
PROTOBUF_CONSTEXPR pTranslatorConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
size_t ByteSizeLong() const final
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & load_proto_file() const
void set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
pTranslatorConfig(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const pTranslatorConfig * internal_default_instance()
void MergeFrom(const pTranslatorConfig &from)
int load_shared_library_size() const
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & load_shared_library() const
friend void swap(pTranslatorConfig &a, pTranslatorConfig &b)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void CopyFrom(const pTranslatorConfig &from)
int multiplex_create_moos_var_size() const
::goby::moos::protobuf::GobyMOOSAppConfig * mutable_common()
void clear_load_proto_file()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry > & translator_entry() const
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
pTranslatorConfig * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
pTranslatorConfig & operator=(const pTranslatorConfig &from)
std::string * mutable_modem_id_lookup_path()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
pTranslatorConfig & operator=(pTranslatorConfig &&from) noexcept
void clear_translator_entry()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_load_proto_file()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_load_shared_library(int index, const std::string &value)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_multiplex_create_moos_var()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > * mutable_load_shared_library()
std::string * add_load_proto_file()
int translator_entry_size() const
int load_proto_file_size() const
@ kLoadProtoFileFieldNumber
@ kLoadSharedLibraryFieldNumber
@ kTranslatorEntryFieldNumber
@ kMultiplexCreateMoosVarFieldNumber
@ kModemIdLookupPathFieldNumber
PROTOBUF_NODISCARD std::string * release_modem_id_lookup_path()
void clear_modem_id_lookup_path()
static constexpr int kIndexInFileMessages
void Swap(pTranslatorConfig *other)
void clear_multiplex_create_moos_var()
static const ClassData _class_data_
static const pTranslatorConfig & default_instance()
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< std::string > & multiplex_create_moos_var() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
::goby::moos::protobuf::TranslatorEntry * add_translator_entry()
void set_modem_id_lookup_path(ArgT0 &&arg0, ArgT... args)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry > * mutable_translator_entry()
void UnsafeArenaSwap(pTranslatorConfig *other)
void unsafe_arena_set_allocated_common(::goby::moos::protobuf::GobyMOOSAppConfig *common)
pTranslatorConfig(pTranslatorConfig &&from) noexcept
bool IsInitialized() const final
void set_load_proto_file(int index, const std::string &value)
std::string * add_load_shared_library()
void set_allocated_modem_id_lookup_path(std::string *modem_id_lookup_path)
~pTranslatorConfig() override
pTranslatorConfig(const pTranslatorConfig &from)
void clear_load_shared_library()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_modem_id_lookup_path() const
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
int GetCachedSize() const final
PROTOBUF_NAMESPACE_OPEN ::goby::moos::protobuf::GobyMOOSAppConfig * Arena::CreateMaybeMessage<::goby::moos::protobuf::GobyMOOSAppConfig >(Arena *)
pTranslatorConfigDefaultTypeInternal _pTranslatorConfig_default_instance_
GobyMOOSAppConfigDefaultTypeInternal _GobyMOOSAppConfig_default_instance_
The global namespace for the Goby project.
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
static const uint32_t offsets[]