4 #ifndef PROTOBUF_INCLUDED_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
5 #define PROTOBUF_INCLUDED_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[1];
60 class pTranslatorConfigDefaultTypeInternal;
92 *
this = ::std::move(from);
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
105 return _internal_metadata_.unknown_fields();
108 return _internal_metadata_.mutable_unknown_fields();
111 static const ::google::protobuf::Descriptor*
descriptor();
130 return CreateMaybeMessage<pTranslatorConfig>(NULL);
134 return CreateMaybeMessage<pTranslatorConfig>(arena);
136 void CopyFrom(const ::google::protobuf::Message& from)
final;
137 void MergeFrom(const ::google::protobuf::Message& from)
final;
145 ::
google::protobuf::io::CodedInputStream* input) final;
147 ::
google::protobuf::io::CodedOutputStream* output) const final;
149 bool deterministic, ::
google::protobuf::uint8* target) const final;
155 void SetCachedSize(
int size)
const final;
158 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
161 inline void* MaybeArenaPtr()
const {
213 const ::google::protobuf::RepeatedPtrField< ::std::string>&
load_proto_file()
const;
223 const ::goby::moos::protobuf::TranslatorEntry&
translator_entry(
int index)
const;
225 const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
270 const ::goby::moos::protobuf::GobyMOOSAppConfig& _internal_common()
const;
272 const ::goby::moos::protobuf::GobyMOOSAppConfig&
common()
const;
279 void set_has_common();
280 void clear_has_common();
281 void set_has_modem_id_lookup_path();
282 void clear_has_modem_id_lookup_path();
284 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
285 ::google::protobuf::internal::HasBits<1> _has_bits_;
286 mutable ::google::protobuf::internal::CachedSize _cached_size_;
291 ::google::protobuf::internal::ArenaStringPtr modem_id_lookup_path_;
293 friend struct ::protobuf_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto::TableStruct;
301 #pragma GCC diagnostic push
302 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
308 return (_has_bits_[0] & 0x00000002u) != 0;
310 inline void pTranslatorConfig::set_has_common() {
311 _has_bits_[0] |= 0x00000002u;
313 inline void pTranslatorConfig::clear_has_common() {
314 _has_bits_[0] &= ~0x00000002u;
316 inline const ::goby::moos::protobuf::GobyMOOSAppConfig& pTranslatorConfig::_internal_common()
const {
320 const ::goby::moos::protobuf::GobyMOOSAppConfig* p = common_;
334 if (common_ == NULL) {
335 auto* p = CreateMaybeMessage<::goby::moos::protobuf::GobyMOOSAppConfig>(GetArenaNoVirtual());
343 if (message_arena == NULL) {
348 if (message_arena != submessage_arena) {
349 common = ::google::protobuf::internal::GetOwnedMessage(
350 message_arena,
common, submessage_arena);
362 return load_shared_library_.size();
365 load_shared_library_.Clear();
369 return load_shared_library_.Get(index);
373 return load_shared_library_.Mutable(index);
377 load_shared_library_.Mutable(index)->assign(value);
382 load_shared_library_.Mutable(index)->assign(std::move(value));
386 GOOGLE_DCHECK(value != NULL);
387 load_shared_library_.Mutable(index)->assign(value);
391 load_shared_library_.Mutable(index)->assign(
392 reinterpret_cast<const char*
>(value), size);
397 return load_shared_library_.Add();
400 load_shared_library_.Add()->assign(value);
405 load_shared_library_.Add(std::move(value));
410 GOOGLE_DCHECK(value != NULL);
411 load_shared_library_.Add()->assign(value);
415 load_shared_library_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
418 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
421 return load_shared_library_;
423 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
426 return &load_shared_library_;
431 return load_proto_file_.size();
434 load_proto_file_.Clear();
438 return load_proto_file_.Get(index);
442 return load_proto_file_.Mutable(index);
446 load_proto_file_.Mutable(index)->assign(value);
451 load_proto_file_.Mutable(index)->assign(std::move(value));
455 GOOGLE_DCHECK(value != NULL);
456 load_proto_file_.Mutable(index)->assign(value);
460 load_proto_file_.Mutable(index)->assign(
461 reinterpret_cast<const char*
>(value), size);
466 return load_proto_file_.Add();
469 load_proto_file_.Add()->assign(value);
474 load_proto_file_.Add(std::move(value));
479 GOOGLE_DCHECK(value != NULL);
480 load_proto_file_.Add()->assign(value);
484 load_proto_file_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
487 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
490 return load_proto_file_;
492 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
495 return &load_proto_file_;
500 return translator_entry_.size();
504 return translator_entry_.Mutable(index);
506 inline ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >*
509 return &translator_entry_;
513 return translator_entry_.Get(index);
517 return translator_entry_.Add();
519 inline const ::google::protobuf::RepeatedPtrField< ::goby::moos::protobuf::TranslatorEntry >&
522 return translator_entry_;
527 return (_has_bits_[0] & 0x00000001u) != 0;
529 inline void pTranslatorConfig::set_has_modem_id_lookup_path() {
530 _has_bits_[0] |= 0x00000001u;
532 inline void pTranslatorConfig::clear_has_modem_id_lookup_path() {
533 _has_bits_[0] &= ~0x00000001u;
537 clear_has_modem_id_lookup_path();
541 return modem_id_lookup_path_.GetNoArena();
544 set_has_modem_id_lookup_path();
550 set_has_modem_id_lookup_path();
551 modem_id_lookup_path_.SetNoArena(
557 GOOGLE_DCHECK(value != NULL);
558 set_has_modem_id_lookup_path();
563 set_has_modem_id_lookup_path();
565 ::std::string(
reinterpret_cast<const char*
>(value), size));
569 set_has_modem_id_lookup_path();
578 clear_has_modem_id_lookup_path();
583 set_has_modem_id_lookup_path();
585 clear_has_modem_id_lookup_path();
593 return multiplex_create_moos_var_.size();
596 multiplex_create_moos_var_.Clear();
600 return multiplex_create_moos_var_.Get(index);
604 return multiplex_create_moos_var_.Mutable(index);
608 multiplex_create_moos_var_.Mutable(index)->assign(value);
613 multiplex_create_moos_var_.Mutable(index)->assign(std::move(value));
617 GOOGLE_DCHECK(value != NULL);
618 multiplex_create_moos_var_.Mutable(index)->assign(value);
622 multiplex_create_moos_var_.Mutable(index)->assign(
623 reinterpret_cast<const char*
>(value), size);
628 return multiplex_create_moos_var_.Add();
631 multiplex_create_moos_var_.Add()->assign(value);
636 multiplex_create_moos_var_.Add(std::move(value));
641 GOOGLE_DCHECK(value != NULL);
642 multiplex_create_moos_var_.Add()->assign(value);
646 multiplex_create_moos_var_.Add()->assign(
reinterpret_cast<const char*
>(value), size);
649 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
652 return multiplex_create_moos_var_;
654 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
657 return &multiplex_create_moos_var_;
661 #pragma GCC diagnostic pop
673 #endif // PROTOBUF_INCLUDED_goby_2fapps_2fmoos_2fpTranslator_2fpTranslator_5fconfig_2eproto