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 < 3012000
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 3012004 < 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_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "goby/middleware/protobuf/app_config.pb.h"
36 #include "goby/zeromq/protobuf/interprocess_config.pb.h"
38 #include <boost/units/quantity.hpp>
39 #include <boost/units/absolute.hpp>
40 #include <boost/units/dimensionless_type.hpp>
41 #include <boost/units/make_scaled_unit.hpp>
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_bin_2fmetadata_2fconfig_2eproto
45 PROTOBUF_NAMESPACE_OPEN
49 PROTOBUF_NAMESPACE_CLOSE
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
55 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
61 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
67 class MetadataDefaultTypeInternal;
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::jaiabot::config::Metadata* Arena::CreateMaybeMessage<::jaiabot::config::Metadata>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
79 class Metadata PROTOBUF_FINAL :
80 public ::PROTOBUF_NAMESPACE_ID::Message {
88 *
this = ::std::move(from);
95 inline Metadata&
operator=(Metadata&& from) noexcept {
96 if (GetArena() == from.GetArena()) {
97 if (
this != &from) InternalSwap(&from);
105 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
108 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
111 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
112 return GetDescriptor();
115 return GetMetadataStatic().descriptor;
118 return GetMetadataStatic().reflection;
124 return reinterpret_cast<const Metadata*
>(
127 static constexpr
int kIndexInFileMessages =
130 friend void swap(Metadata& a, Metadata& b) {
133 inline void Swap(Metadata* other) {
134 if (other ==
this)
return;
135 if (GetArena() == other->GetArena()) {
138 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
142 if (other ==
this)
return;
143 GOOGLE_DCHECK(GetArena() == other->GetArena());
149 inline Metadata*
New() const final {
150 return CreateMaybeMessage<Metadata>(
nullptr);
153 Metadata*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
154 return CreateMaybeMessage<Metadata>(arena);
156 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
157 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
160 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
161 bool IsInitialized() const final;
163 size_t ByteSizeLong() const final;
164 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
165 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
166 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
167 int GetCachedSize() const final {
return _cached_size_.Get(); }
170 inline void SharedCtor();
171 inline void SharedDtor();
172 void SetCachedSize(
int size)
const final;
173 void InternalSwap(Metadata* other);
174 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
175 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
176 return "jaiabot.config.Metadata";
179 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena);
181 static void ArenaDtor(
void*
object);
182 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
187 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
200 kInterprocessFieldNumber = 2,
201 kXbeeFieldNumber = 10,
202 kIsSimulationFieldNumber = 11,
207 bool _internal_has_app()
const;
210 const ::goby::middleware::protobuf::AppConfig&
app()
const;
215 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
216 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
219 ::goby::middleware::protobuf::AppConfig* app);
225 bool _internal_has_interprocess()
const;
228 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
233 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
234 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
237 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
243 bool _internal_has_xbee()
const;
246 const ::jaiabot::protobuf::XbeeInfo&
xbee()
const;
251 const ::jaiabot::protobuf::XbeeInfo& _internal_xbee()
const;
252 ::jaiabot::protobuf::XbeeInfo* _internal_mutable_xbee();
255 ::jaiabot::protobuf::XbeeInfo*
xbee);
261 bool _internal_has_is_simulation()
const;
267 bool _internal_is_simulation()
const;
268 void _internal_set_is_simulation(
bool value);
275 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
276 typedef void InternalArenaConstructable_;
277 typedef void DestructorSkippable_;
278 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
279 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
280 ::goby::middleware::protobuf::AppConfig* app_;
281 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
282 ::jaiabot::protobuf::XbeeInfo* xbee_;
284 friend struct ::TableStruct_bin_2fmetadata_2fconfig_2eproto;
292 #pragma GCC diagnostic push
293 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
298 inline bool Metadata::_internal_has_app()
const {
299 bool value = (_has_bits_[0] & 0x00000001u) != 0;
300 PROTOBUF_ASSUME(!value || app_ !=
nullptr);
303 inline bool Metadata::has_app()
const {
304 return _internal_has_app();
306 inline const ::goby::middleware::protobuf::AppConfig& Metadata::_internal_app()
const {
307 const ::goby::middleware::protobuf::AppConfig* p = app_;
308 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
309 &::goby::middleware::protobuf::_AppConfig_default_instance_);
311 inline const ::goby::middleware::protobuf::AppConfig& Metadata::app()
const {
313 return _internal_app();
315 inline void Metadata::unsafe_arena_set_allocated_app(
316 ::goby::middleware::protobuf::AppConfig* app) {
317 if (GetArena() ==
nullptr) {
318 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
322 _has_bits_[0] |= 0x00000001u;
324 _has_bits_[0] &= ~0x00000001u;
328 inline ::goby::middleware::protobuf::AppConfig* Metadata::release_app() {
329 auto temp = unsafe_arena_release_app();
330 if (GetArena() !=
nullptr) {
331 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
335 inline ::goby::middleware::protobuf::AppConfig* Metadata::unsafe_arena_release_app() {
337 _has_bits_[0] &= ~0x00000001u;
338 ::goby::middleware::protobuf::AppConfig* temp = app_;
342 inline ::goby::middleware::protobuf::AppConfig* Metadata::_internal_mutable_app() {
343 _has_bits_[0] |= 0x00000001u;
344 if (app_ ==
nullptr) {
345 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
350 inline ::goby::middleware::protobuf::AppConfig* Metadata::mutable_app() {
352 return _internal_mutable_app();
354 inline void Metadata::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
355 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
356 if (message_arena ==
nullptr) {
357 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app_);
360 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
361 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(app)->GetArena();
362 if (message_arena != submessage_arena) {
363 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
364 message_arena, app, submessage_arena);
366 _has_bits_[0] |= 0x00000001u;
368 _has_bits_[0] &= ~0x00000001u;
375 inline bool Metadata::_internal_has_interprocess()
const {
376 bool value = (_has_bits_[0] & 0x00000002u) != 0;
377 PROTOBUF_ASSUME(!value || interprocess_ !=
nullptr);
380 inline bool Metadata::has_interprocess()
const {
381 return _internal_has_interprocess();
383 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::_internal_interprocess()
const {
384 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
385 return p !=
nullptr ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
386 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
388 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::interprocess()
const {
390 return _internal_interprocess();
392 inline void Metadata::unsafe_arena_set_allocated_interprocess(
393 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
394 if (GetArena() ==
nullptr) {
395 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
397 interprocess_ = interprocess;
399 _has_bits_[0] |= 0x00000002u;
401 _has_bits_[0] &= ~0x00000002u;
405 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::release_interprocess() {
406 auto temp = unsafe_arena_release_interprocess();
407 if (GetArena() !=
nullptr) {
408 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
412 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::unsafe_arena_release_interprocess() {
414 _has_bits_[0] &= ~0x00000002u;
415 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
416 interprocess_ =
nullptr;
419 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::_internal_mutable_interprocess() {
420 _has_bits_[0] |= 0x00000002u;
421 if (interprocess_ ==
nullptr) {
422 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
425 return interprocess_;
427 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::mutable_interprocess() {
429 return _internal_mutable_interprocess();
431 inline void Metadata::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
432 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
433 if (message_arena ==
nullptr) {
434 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess_);
437 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
438 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(interprocess)->GetArena();
439 if (message_arena != submessage_arena) {
440 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
441 message_arena, interprocess, submessage_arena);
443 _has_bits_[0] |= 0x00000002u;
445 _has_bits_[0] &= ~0x00000002u;
447 interprocess_ = interprocess;
452 inline bool Metadata::_internal_has_xbee()
const {
453 bool value = (_has_bits_[0] & 0x00000004u) != 0;
454 PROTOBUF_ASSUME(!value || xbee_ !=
nullptr);
457 inline bool Metadata::has_xbee()
const {
458 return _internal_has_xbee();
460 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee()
const {
461 const ::jaiabot::protobuf::XbeeInfo* p = xbee_;
462 return p !=
nullptr ? *p : *
reinterpret_cast<const ::jaiabot::protobuf::XbeeInfo*
>(
465 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::xbee()
const {
467 return _internal_xbee();
469 inline void Metadata::unsafe_arena_set_allocated_xbee(
470 ::jaiabot::protobuf::XbeeInfo*
xbee) {
471 if (GetArena() ==
nullptr) {
472 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(xbee_);
476 _has_bits_[0] |= 0x00000004u;
478 _has_bits_[0] &= ~0x00000004u;
482 inline ::jaiabot::protobuf::XbeeInfo* Metadata::release_xbee() {
483 auto temp = unsafe_arena_release_xbee();
484 if (GetArena() !=
nullptr) {
485 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
489 inline ::jaiabot::protobuf::XbeeInfo* Metadata::unsafe_arena_release_xbee() {
491 _has_bits_[0] &= ~0x00000004u;
492 ::jaiabot::protobuf::XbeeInfo* temp = xbee_;
496 inline ::jaiabot::protobuf::XbeeInfo* Metadata::_internal_mutable_xbee() {
497 _has_bits_[0] |= 0x00000004u;
498 if (xbee_ ==
nullptr) {
499 auto* p = CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo>(GetArena());
504 inline ::jaiabot::protobuf::XbeeInfo* Metadata::mutable_xbee() {
506 return _internal_mutable_xbee();
508 inline void Metadata::set_allocated_xbee(::jaiabot::protobuf::XbeeInfo*
xbee) {
509 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
510 if (message_arena ==
nullptr) {
511 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(xbee_);
514 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
515 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
xbee)->GetArena();
516 if (message_arena != submessage_arena) {
517 xbee = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
518 message_arena,
xbee, submessage_arena);
520 _has_bits_[0] |= 0x00000004u;
522 _has_bits_[0] &= ~0x00000004u;
529 inline bool Metadata::_internal_has_is_simulation()
const {
530 bool value = (_has_bits_[0] & 0x00000008u) != 0;
533 inline bool Metadata::has_is_simulation()
const {
534 return _internal_has_is_simulation();
536 inline void Metadata::clear_is_simulation() {
537 is_simulation_ =
false;
538 _has_bits_[0] &= ~0x00000008u;
540 inline bool Metadata::_internal_is_simulation()
const {
541 return is_simulation_;
543 inline bool Metadata::is_simulation()
const {
545 return _internal_is_simulation();
547 inline void Metadata::_internal_set_is_simulation(
bool value) {
548 _has_bits_[0] |= 0x00000008u;
549 is_simulation_ = value;
551 inline void Metadata::set_is_simulation(
bool value) {
552 _internal_set_is_simulation(value);
557 #pragma GCC diagnostic pop
567 #include <google/protobuf/port_undef.inc>
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
bool is_simulation() const
void unsafe_arena_set_allocated_xbee(::jaiabot::protobuf::XbeeInfo *xbee)
bool has_interprocess() const
void clear_is_simulation()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::middleware::protobuf::AppConfig & app() const
static void InitAsDefaultInstance()
void clear_interprocess()
::jaiabot::protobuf::XbeeInfo * unsafe_arena_release_xbee()
bool has_is_simulation() const
Metadata & operator=(Metadata &&from) noexcept
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Metadata & operator=(const Metadata &from)
::goby::middleware::protobuf::AppConfig * release_app()
::jaiabot::protobuf::XbeeInfo * release_xbee()
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
Metadata * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_is_simulation(bool value)
void CopyFrom(const Metadata &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::jaiabot::protobuf::XbeeInfo & xbee() const
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const Metadata * internal_default_instance()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void Swap(Metadata *other)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
::jaiabot::protobuf::XbeeInfo * mutable_xbee()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(Metadata *other)
void set_allocated_xbee(::jaiabot::protobuf::XbeeInfo *xbee)
static const Metadata & default_instance()
::goby::middleware::protobuf::AppConfig * mutable_app()
Metadata(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Metadata(Metadata &&from) noexcept
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Metadata(const Metadata &from)
friend void swap(Metadata &a, Metadata &b)
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Metadata &from)
Metadata * New() const final
MetadataDefaultTypeInternal _Metadata_default_instance_
XbeeInfoDefaultTypeInternal _XbeeInfo_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::xbee::protobuf::Config >, 11, false > config