4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_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>
24#include <google/protobuf/arena.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>
29#include <google/protobuf/message.h>
30#include <google/protobuf/repeated_field.h>
31#include <google/protobuf/extension_set.h>
32#include <google/protobuf/unknown_field_set.h>
33#include "goby/middleware/protobuf/app_config.pb.h"
34#include "goby/zeromq/protobuf/interprocess_config.pb.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_bin_2fmetadata_2fconfig_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
57struct MetadataDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
70 public ::PROTOBUF_NAMESPACE_ID::Message {
74 explicit PROTOBUF_CONSTEXPR
Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
79 *
this = ::std::move(from);
87 if (
this == &from)
return *
this;
88 if (GetOwningArena() == from.GetOwningArena()
89 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90 && GetOwningArena() !=
nullptr
101 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
126 return reinterpret_cast<const Metadata*
>(
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());
156 Metadata*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
157 return CreateMaybeMessage<Metadata>(arena);
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
163 Metadata::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 "jaiabot.config.Metadata";
189 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned =
false);
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
214 bool _internal_has_app()
const;
217 const ::goby::middleware::protobuf::AppConfig&
app()
const;
218 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
219 ::goby::middleware::protobuf::AppConfig*
mutable_app();
222 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
223 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
226 ::goby::middleware::protobuf::AppConfig*
app);
232 bool _internal_has_interprocess()
const;
235 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
240 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
241 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
244 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess);
250 bool _internal_has_xbee()
const;
253 const ::jaiabot::protobuf::XbeeInfo&
xbee()
const;
254 PROTOBUF_NODISCARD ::jaiabot::protobuf::XbeeInfo*
release_xbee();
258 const ::jaiabot::protobuf::XbeeInfo& _internal_xbee()
const;
268 bool _internal_has_is_simulation()
const;
274 bool _internal_is_simulation()
const;
275 void _internal_set_is_simulation(
bool value);
281 bool _internal_has_fleet_id()
const;
287 uint32_t _internal_fleet_id()
const;
288 void _internal_set_fleet_id(uint32_t value);
294 bool _internal_has_hub_id()
const;
300 uint32_t _internal_hub_id()
const;
301 void _internal_set_hub_id(uint32_t value);
307 bool _internal_has_bot_id()
const;
313 uint32_t _internal_bot_id()
const;
314 void _internal_set_bot_id(uint32_t value);
322 void set_has_hub_id();
323 void set_has_bot_id();
325 inline bool has_node_type()
const;
326 inline void clear_has_node_type();
328 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
329 typedef void InternalArenaConstructable_;
330 typedef void DestructorSkippable_;
332 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
333 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
334 ::goby::middleware::protobuf::AppConfig* app_;
335 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
341 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
_constinit_;
345 uint32_t _oneof_case_[1];
349 friend struct ::TableStruct_bin_2fmetadata_2fconfig_2eproto;
357 #pragma GCC diagnostic push
358 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
363inline bool Metadata::_internal_has_app()
const {
364 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
365 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
369 return _internal_has_app();
371inline const ::goby::middleware::protobuf::AppConfig& Metadata::_internal_app()
const {
372 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
373 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&
>(
374 ::goby::middleware::protobuf::_AppConfig_default_instance_);
376inline const ::goby::middleware::protobuf::AppConfig&
Metadata::app()
const {
378 return _internal_app();
381 ::goby::middleware::protobuf::AppConfig*
app) {
382 if (GetArenaForAllocation() ==
nullptr) {
383 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
387 _impl_._has_bits_[0] |= 0x00000001u;
389 _impl_._has_bits_[0] &= ~0x00000001u;
394 _impl_._has_bits_[0] &= ~0x00000001u;
395 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
397#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
398 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
399 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
400 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
402 if (GetArenaForAllocation() !=
nullptr) {
403 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
410 _impl_._has_bits_[0] &= ~0x00000001u;
411 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
415inline ::goby::middleware::protobuf::AppConfig* Metadata::_internal_mutable_app() {
416 _impl_._has_bits_[0] |= 0x00000001u;
417 if (
_impl_.app_ ==
nullptr) {
418 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
424 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
429 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
430 if (message_arena ==
nullptr) {
431 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
434 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
435 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
436 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
437 if (message_arena != submessage_arena) {
438 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
439 message_arena,
app, submessage_arena);
441 _impl_._has_bits_[0] |= 0x00000001u;
443 _impl_._has_bits_[0] &= ~0x00000001u;
450inline bool Metadata::_internal_has_interprocess()
const {
451 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
452 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
456 return _internal_has_interprocess();
458inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::_internal_interprocess()
const {
459 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
460 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&
>(
461 ::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
465 return _internal_interprocess();
468 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess) {
469 if (GetArenaForAllocation() ==
nullptr) {
470 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
474 _impl_._has_bits_[0] |= 0x00000002u;
476 _impl_._has_bits_[0] &= ~0x00000002u;
481 _impl_._has_bits_[0] &= ~0x00000002u;
482 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
483 _impl_.interprocess_ =
nullptr;
484#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
485 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
486 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
487 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
489 if (GetArenaForAllocation() !=
nullptr) {
490 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
497 _impl_._has_bits_[0] &= ~0x00000002u;
498 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
499 _impl_.interprocess_ =
nullptr;
502inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::_internal_mutable_interprocess() {
503 _impl_._has_bits_[0] |= 0x00000002u;
504 if (
_impl_.interprocess_ ==
nullptr) {
505 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaForAllocation());
508 return _impl_.interprocess_;
511 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
516 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
517 if (message_arena ==
nullptr) {
518 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
521 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
522 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
523 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
524 if (message_arena != submessage_arena) {
525 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
528 _impl_._has_bits_[0] |= 0x00000002u;
530 _impl_._has_bits_[0] &= ~0x00000002u;
537inline bool Metadata::_internal_has_xbee()
const {
538 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
539 PROTOBUF_ASSUME(!value ||
_impl_.xbee_ !=
nullptr);
543 return _internal_has_xbee();
545inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee()
const {
546 const ::jaiabot::protobuf::XbeeInfo* p =
_impl_.xbee_;
552 return _internal_xbee();
556 if (GetArenaForAllocation() ==
nullptr) {
557 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.xbee_);
561 _impl_._has_bits_[0] |= 0x00000004u;
563 _impl_._has_bits_[0] &= ~0x00000004u;
568 _impl_._has_bits_[0] &= ~0x00000004u;
571#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
572 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
573 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
574 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
576 if (GetArenaForAllocation() !=
nullptr) {
577 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
584 _impl_._has_bits_[0] &= ~0x00000004u;
589inline ::jaiabot::protobuf::XbeeInfo* Metadata::_internal_mutable_xbee() {
590 _impl_._has_bits_[0] |= 0x00000004u;
591 if (
_impl_.xbee_ ==
nullptr) {
603 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
604 if (message_arena ==
nullptr) {
605 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.xbee_);
608 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
609 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
610 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
xbee));
611 if (message_arena != submessage_arena) {
612 xbee = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
613 message_arena,
xbee, submessage_arena);
615 _impl_._has_bits_[0] |= 0x00000004u;
617 _impl_._has_bits_[0] &= ~0x00000004u;
624inline bool Metadata::_internal_has_is_simulation()
const {
625 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
629 return _internal_has_is_simulation();
632 _impl_.is_simulation_ =
false;
633 _impl_._has_bits_[0] &= ~0x00000008u;
635inline bool Metadata::_internal_is_simulation()
const {
636 return _impl_.is_simulation_;
640 return _internal_is_simulation();
642inline void Metadata::_internal_set_is_simulation(
bool value) {
643 _impl_._has_bits_[0] |= 0x00000008u;
644 _impl_.is_simulation_ = value;
647 _internal_set_is_simulation(value);
652inline bool Metadata::_internal_has_fleet_id()
const {
653 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
657 return _internal_has_fleet_id();
661 _impl_._has_bits_[0] &= ~0x00000010u;
663inline uint32_t Metadata::_internal_fleet_id()
const {
668 return _internal_fleet_id();
670inline void Metadata::_internal_set_fleet_id(uint32_t value) {
671 _impl_._has_bits_[0] |= 0x00000010u;
675 _internal_set_fleet_id(value);
680inline bool Metadata::_internal_has_hub_id()
const {
684 return _internal_has_hub_id();
686inline void Metadata::set_has_hub_id() {
690 if (_internal_has_hub_id()) {
691 _impl_.node_type_.hub_id_ = 0u;
692 clear_has_node_type();
695inline uint32_t Metadata::_internal_hub_id()
const {
696 if (_internal_has_hub_id()) {
697 return _impl_.node_type_.hub_id_;
701inline void Metadata::_internal_set_hub_id(uint32_t value) {
702 if (!_internal_has_hub_id()) {
706 _impl_.node_type_.hub_id_ = value;
710 return _internal_hub_id();
713 _internal_set_hub_id(value);
718inline bool Metadata::_internal_has_bot_id()
const {
722 return _internal_has_bot_id();
724inline void Metadata::set_has_bot_id() {
728 if (_internal_has_bot_id()) {
729 _impl_.node_type_.bot_id_ = 0u;
730 clear_has_node_type();
733inline uint32_t Metadata::_internal_bot_id()
const {
734 if (_internal_has_bot_id()) {
735 return _impl_.node_type_.bot_id_;
739inline void Metadata::_internal_set_bot_id(uint32_t value) {
740 if (!_internal_has_bot_id()) {
744 _impl_.node_type_.bot_id_ = value;
748 return _internal_bot_id();
751 _internal_set_bot_id(value);
755inline bool Metadata::has_node_type()
const {
758inline void Metadata::clear_has_node_type() {
765 #pragma GCC diagnostic pop
775#include <google/protobuf/port_undef.inc>
MetadataDefaultTypeInternal _Metadata_default_instance_
XbeeInfoDefaultTypeInternal _XbeeInfo_default_instance_