JaiaBot 2.0.0
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
config.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: bin/metadata/config.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
6
7#include <limits>
8#include <string>
9
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
14#error your headers.
15#endif
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.
20#endif
21
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> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
40// @@protoc_insertion_point(includes)
41#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_bin_2fmetadata_2fconfig_2eproto
43PROTOBUF_NAMESPACE_OPEN
44namespace internal {
45class AnyMetadata;
46} // namespace internal
47PROTOBUF_NAMESPACE_CLOSE
48
49// Internal implementation detail -- do not use these members.
51 static const uint32_t offsets[];
52};
53extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fmetadata_2fconfig_2eproto;
54namespace jaiabot {
55namespace config {
56class Metadata;
57struct MetadataDefaultTypeInternal;
58extern MetadataDefaultTypeInternal _Metadata_default_instance_;
59} // namespace config
60} // namespace jaiabot
61PROTOBUF_NAMESPACE_OPEN
62template<> ::jaiabot::config::Metadata* Arena::CreateMaybeMessage<::jaiabot::config::Metadata>(Arena*);
63PROTOBUF_NAMESPACE_CLOSE
64namespace jaiabot {
65namespace config {
66
67// ===================================================================
68
69class Metadata final :
70 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.config.Metadata) */ {
71 public:
72 inline Metadata() : Metadata(nullptr) {}
73 ~Metadata() override;
74 explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
75
76 Metadata(const Metadata& from);
77 Metadata(Metadata&& from) noexcept
78 : Metadata() {
79 *this = ::std::move(from);
80 }
81
82 inline Metadata& operator=(const Metadata& from) {
83 CopyFrom(from);
84 return *this;
85 }
86 inline Metadata& operator=(Metadata&& from) noexcept {
87 if (this == &from) return *this;
88 if (GetOwningArena() == from.GetOwningArena()
89 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90 && GetOwningArena() != nullptr
91 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
92 ) {
93 InternalSwap(&from);
94 } else {
95 CopyFrom(from);
96 }
97 return *this;
98 }
99
100 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
101 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
102 }
103 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
104 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
105 }
106
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
108 return GetDescriptor();
109 }
110 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
111 return default_instance().GetMetadata().descriptor;
112 }
113 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
114 return default_instance().GetMetadata().reflection;
115 }
116 static const Metadata& default_instance() {
118 }
124
125 static inline const Metadata* internal_default_instance() {
126 return reinterpret_cast<const Metadata*>(
128 }
129 static constexpr int kIndexInFileMessages =
130 0;
131
132 friend void swap(Metadata& a, Metadata& b) {
133 a.Swap(&b);
134 }
135 inline void Swap(Metadata* other) {
136 if (other == this) return;
137 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
138 if (GetOwningArena() != nullptr &&
139 GetOwningArena() == other->GetOwningArena()) {
140 #else // PROTOBUF_FORCE_COPY_IN_SWAP
141 if (GetOwningArena() == other->GetOwningArena()) {
142 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
143 InternalSwap(other);
144 } else {
145 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
146 }
147 }
149 if (other == this) return;
150 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 InternalSwap(other);
152 }
153
154 // implements Message ----------------------------------------------
155
156 Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
157 return CreateMaybeMessage<Metadata>(arena);
158 }
159 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
160 void CopyFrom(const Metadata& from);
161 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
162 void MergeFrom( const Metadata& from) {
163 Metadata::MergeImpl(*this, from);
164 }
165 private:
166 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
167 public:
168 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
169 bool IsInitialized() const final;
170
171 size_t ByteSizeLong() const final;
172 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
174 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
175 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
176
177 private:
178 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
179 void SharedDtor();
180 void SetCachedSize(int size) const final;
181 void InternalSwap(Metadata* other);
182
183 private:
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "jaiabot.config.Metadata";
187 }
188 protected:
189 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
190 bool is_message_owned = false);
191 public:
192
193 static const ClassData _class_data_;
194 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
195
196 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
197
198 // nested types ----------------------------------------------------
199
200 // accessors -------------------------------------------------------
201
202 enum : int {
210 };
211 // optional .goby.middleware.protobuf.AppConfig app = 1;
212 bool has_app() const;
213 private:
214 bool _internal_has_app() const;
215 public:
216 void clear_app();
217 const ::goby::middleware::protobuf::AppConfig& app() const;
218 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig* release_app();
219 ::goby::middleware::protobuf::AppConfig* mutable_app();
220 void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
221 private:
222 const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
223 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
224 public:
226 ::goby::middleware::protobuf::AppConfig* app);
227 ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
228
229 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
230 bool has_interprocess() const;
231 private:
232 bool _internal_has_interprocess() const;
233 public:
235 const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
236 PROTOBUF_NODISCARD ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
237 ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
238 void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
239 private:
240 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
241 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
242 public:
244 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
245 ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
246
247 // optional .jaiabot.protobuf.XbeeInfo xbee = 10;
248 bool has_xbee() const;
249 private:
250 bool _internal_has_xbee() const;
251 public:
253 const ::jaiabot::protobuf::XbeeInfo& xbee() const;
254 PROTOBUF_NODISCARD ::jaiabot::protobuf::XbeeInfo* release_xbee();
257 private:
258 const ::jaiabot::protobuf::XbeeInfo& _internal_xbee() const;
259 ::jaiabot::protobuf::XbeeInfo* _internal_mutable_xbee();
260 public:
264
265 // optional bool is_simulation = 11;
266 bool has_is_simulation() const;
267 private:
268 bool _internal_has_is_simulation() const;
269 public:
270 void clear_is_simulation();
271 bool is_simulation() const;
272 void set_is_simulation(bool value);
273 private:
274 bool _internal_is_simulation() const;
275 void _internal_set_is_simulation(bool value);
276 public:
277
278 // optional uint32 fleet_id = 20;
279 bool has_fleet_id() const;
280 private:
281 bool _internal_has_fleet_id() const;
282 public:
283 void clear_fleet_id();
284 uint32_t fleet_id() const;
285 void set_fleet_id(uint32_t value);
286 private:
287 uint32_t _internal_fleet_id() const;
288 void _internal_set_fleet_id(uint32_t value);
289 public:
290
291 // uint32 hub_id = 21;
292 bool has_hub_id() const;
293 private:
294 bool _internal_has_hub_id() const;
295 public:
296 void clear_hub_id();
297 uint32_t hub_id() const;
298 void set_hub_id(uint32_t value);
299 private:
300 uint32_t _internal_hub_id() const;
301 void _internal_set_hub_id(uint32_t value);
302 public:
303
304 // uint32 bot_id = 22;
305 bool has_bot_id() const;
306 private:
307 bool _internal_has_bot_id() const;
308 public:
309 void clear_bot_id();
310 uint32_t bot_id() const;
311 void set_bot_id(uint32_t value);
312 private:
313 uint32_t _internal_bot_id() const;
314 void _internal_set_bot_id(uint32_t value);
315 public:
316
319 // @@protoc_insertion_point(class_scope:jaiabot.config.Metadata)
320 private:
321 class _Internal;
322 void set_has_hub_id();
323 void set_has_bot_id();
324
325 inline bool has_node_type() const;
326 inline void clear_has_node_type();
327
328 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
329 typedef void InternalArenaConstructable_;
330 typedef void DestructorSkippable_;
331 struct Impl_ {
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_;
337 bool is_simulation_;
338 uint32_t fleet_id_;
340 constexpr NodeTypeUnion() : _constinit_{} {}
341 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
342 uint32_t hub_id_;
343 uint32_t bot_id_;
344 } node_type_;
345 uint32_t _oneof_case_[1];
346
347 };
348 union { Impl_ _impl_; };
349 friend struct ::TableStruct_bin_2fmetadata_2fconfig_2eproto;
350};
351// ===================================================================
352
353
354// ===================================================================
355
356#ifdef __GNUC__
357 #pragma GCC diagnostic push
358 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
359#endif // __GNUC__
360// Metadata
361
362// optional .goby.middleware.protobuf.AppConfig app = 1;
363inline bool Metadata::_internal_has_app() const {
364 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
365 PROTOBUF_ASSUME(!value || _impl_.app_ != nullptr);
366 return value;
367}
368inline bool Metadata::has_app() const {
369 return _internal_has_app();
370}
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_);
375}
376inline const ::goby::middleware::protobuf::AppConfig& Metadata::app() const {
377 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.app)
378 return _internal_app();
379}
381 ::goby::middleware::protobuf::AppConfig* app) {
382 if (GetArenaForAllocation() == nullptr) {
383 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
384 }
385 _impl_.app_ = app;
386 if (app) {
387 _impl_._has_bits_[0] |= 0x00000001u;
388 } else {
389 _impl_._has_bits_[0] &= ~0x00000001u;
390 }
391 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.app)
392}
393inline ::goby::middleware::protobuf::AppConfig* Metadata::release_app() {
394 _impl_._has_bits_[0] &= ~0x00000001u;
395 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
396 _impl_.app_ = nullptr;
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; }
401#else // PROTOBUF_FORCE_COPY_IN_RELEASE
402 if (GetArenaForAllocation() != nullptr) {
403 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
404 }
405#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
406 return temp;
407}
408inline ::goby::middleware::protobuf::AppConfig* Metadata::unsafe_arena_release_app() {
409 // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.app)
410 _impl_._has_bits_[0] &= ~0x00000001u;
411 ::goby::middleware::protobuf::AppConfig* temp = _impl_.app_;
412 _impl_.app_ = nullptr;
413 return temp;
414}
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());
419 _impl_.app_ = p;
420 }
421 return _impl_.app_;
422}
423inline ::goby::middleware::protobuf::AppConfig* Metadata::mutable_app() {
424 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
425 // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.app)
426 return _msg;
427}
428inline void Metadata::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
429 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
430 if (message_arena == nullptr) {
431 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_);
432 }
433 if (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);
440 }
441 _impl_._has_bits_[0] |= 0x00000001u;
442 } else {
443 _impl_._has_bits_[0] &= ~0x00000001u;
444 }
445 _impl_.app_ = app;
446 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.app)
447}
448
449// optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
450inline bool Metadata::_internal_has_interprocess() const {
451 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
452 PROTOBUF_ASSUME(!value || _impl_.interprocess_ != nullptr);
453 return value;
454}
455inline bool Metadata::has_interprocess() const {
456 return _internal_has_interprocess();
457}
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_);
462}
463inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::interprocess() const {
464 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.interprocess)
465 return _internal_interprocess();
466}
468 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
469 if (GetArenaForAllocation() == nullptr) {
470 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
471 }
472 _impl_.interprocess_ = interprocess;
473 if (interprocess) {
474 _impl_._has_bits_[0] |= 0x00000002u;
475 } else {
476 _impl_._has_bits_[0] &= ~0x00000002u;
477 }
478 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.interprocess)
479}
480inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::release_interprocess() {
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; }
488#else // PROTOBUF_FORCE_COPY_IN_RELEASE
489 if (GetArenaForAllocation() != nullptr) {
490 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
491 }
492#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
493 return temp;
494}
495inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::unsafe_arena_release_interprocess() {
496 // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.interprocess)
497 _impl_._has_bits_[0] &= ~0x00000002u;
498 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = _impl_.interprocess_;
499 _impl_.interprocess_ = nullptr;
500 return temp;
501}
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());
506 _impl_.interprocess_ = p;
507 }
508 return _impl_.interprocess_;
509}
510inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::mutable_interprocess() {
511 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
512 // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.interprocess)
513 return _msg;
514}
515inline void Metadata::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
516 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
517 if (message_arena == nullptr) {
518 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.interprocess_);
519 }
520 if (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(
526 message_arena, interprocess, submessage_arena);
527 }
528 _impl_._has_bits_[0] |= 0x00000002u;
529 } else {
530 _impl_._has_bits_[0] &= ~0x00000002u;
531 }
532 _impl_.interprocess_ = interprocess;
533 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.interprocess)
534}
535
536// optional .jaiabot.protobuf.XbeeInfo xbee = 10;
537inline bool Metadata::_internal_has_xbee() const {
538 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
539 PROTOBUF_ASSUME(!value || _impl_.xbee_ != nullptr);
540 return value;
541}
542inline bool Metadata::has_xbee() const {
543 return _internal_has_xbee();
544}
545inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee() const {
546 const ::jaiabot::protobuf::XbeeInfo* p = _impl_.xbee_;
547 return p != nullptr ? *p : reinterpret_cast<const ::jaiabot::protobuf::XbeeInfo&>(
549}
550inline const ::jaiabot::protobuf::XbeeInfo& Metadata::xbee() const {
551 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.xbee)
552 return _internal_xbee();
553}
556 if (GetArenaForAllocation() == nullptr) {
557 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xbee_);
558 }
559 _impl_.xbee_ = xbee;
560 if (xbee) {
561 _impl_._has_bits_[0] |= 0x00000004u;
562 } else {
563 _impl_._has_bits_[0] &= ~0x00000004u;
564 }
565 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.xbee)
566}
567inline ::jaiabot::protobuf::XbeeInfo* Metadata::release_xbee() {
568 _impl_._has_bits_[0] &= ~0x00000004u;
570 _impl_.xbee_ = nullptr;
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; }
575#else // PROTOBUF_FORCE_COPY_IN_RELEASE
576 if (GetArenaForAllocation() != nullptr) {
577 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
578 }
579#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
580 return temp;
581}
582inline ::jaiabot::protobuf::XbeeInfo* Metadata::unsafe_arena_release_xbee() {
583 // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.xbee)
584 _impl_._has_bits_[0] &= ~0x00000004u;
586 _impl_.xbee_ = nullptr;
587 return temp;
588}
589inline ::jaiabot::protobuf::XbeeInfo* Metadata::_internal_mutable_xbee() {
590 _impl_._has_bits_[0] |= 0x00000004u;
591 if (_impl_.xbee_ == nullptr) {
592 auto* p = CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo>(GetArenaForAllocation());
593 _impl_.xbee_ = p;
594 }
595 return _impl_.xbee_;
596}
597inline ::jaiabot::protobuf::XbeeInfo* Metadata::mutable_xbee() {
598 ::jaiabot::protobuf::XbeeInfo* _msg = _internal_mutable_xbee();
599 // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.xbee)
600 return _msg;
601}
603 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
604 if (message_arena == nullptr) {
605 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.xbee_);
606 }
607 if (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);
614 }
615 _impl_._has_bits_[0] |= 0x00000004u;
616 } else {
617 _impl_._has_bits_[0] &= ~0x00000004u;
618 }
619 _impl_.xbee_ = xbee;
620 // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.xbee)
621}
622
623// optional bool is_simulation = 11;
624inline bool Metadata::_internal_has_is_simulation() const {
625 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
626 return value;
627}
628inline bool Metadata::has_is_simulation() const {
629 return _internal_has_is_simulation();
630}
632 _impl_.is_simulation_ = false;
633 _impl_._has_bits_[0] &= ~0x00000008u;
634}
635inline bool Metadata::_internal_is_simulation() const {
636 return _impl_.is_simulation_;
637}
638inline bool Metadata::is_simulation() const {
639 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.is_simulation)
640 return _internal_is_simulation();
641}
642inline void Metadata::_internal_set_is_simulation(bool value) {
643 _impl_._has_bits_[0] |= 0x00000008u;
644 _impl_.is_simulation_ = value;
645}
646inline void Metadata::set_is_simulation(bool value) {
647 _internal_set_is_simulation(value);
648 // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.is_simulation)
649}
650
651// optional uint32 fleet_id = 20;
652inline bool Metadata::_internal_has_fleet_id() const {
653 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
654 return value;
655}
656inline bool Metadata::has_fleet_id() const {
657 return _internal_has_fleet_id();
658}
660 _impl_.fleet_id_ = 0u;
661 _impl_._has_bits_[0] &= ~0x00000010u;
662}
663inline uint32_t Metadata::_internal_fleet_id() const {
664 return _impl_.fleet_id_;
665}
666inline uint32_t Metadata::fleet_id() const {
667 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.fleet_id)
668 return _internal_fleet_id();
669}
670inline void Metadata::_internal_set_fleet_id(uint32_t value) {
671 _impl_._has_bits_[0] |= 0x00000010u;
672 _impl_.fleet_id_ = value;
673}
674inline void Metadata::set_fleet_id(uint32_t value) {
675 _internal_set_fleet_id(value);
676 // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.fleet_id)
677}
678
679// uint32 hub_id = 21;
680inline bool Metadata::_internal_has_hub_id() const {
681 return node_type_case() == kHubId;
682}
683inline bool Metadata::has_hub_id() const {
684 return _internal_has_hub_id();
685}
686inline void Metadata::set_has_hub_id() {
687 _impl_._oneof_case_[0] = kHubId;
688}
690 if (_internal_has_hub_id()) {
691 _impl_.node_type_.hub_id_ = 0u;
692 clear_has_node_type();
693 }
694}
695inline uint32_t Metadata::_internal_hub_id() const {
696 if (_internal_has_hub_id()) {
697 return _impl_.node_type_.hub_id_;
698 }
699 return 0u;
700}
701inline void Metadata::_internal_set_hub_id(uint32_t value) {
702 if (!_internal_has_hub_id()) {
704 set_has_hub_id();
705 }
706 _impl_.node_type_.hub_id_ = value;
707}
708inline uint32_t Metadata::hub_id() const {
709 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.hub_id)
710 return _internal_hub_id();
711}
712inline void Metadata::set_hub_id(uint32_t value) {
713 _internal_set_hub_id(value);
714 // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.hub_id)
715}
716
717// uint32 bot_id = 22;
718inline bool Metadata::_internal_has_bot_id() const {
719 return node_type_case() == kBotId;
720}
721inline bool Metadata::has_bot_id() const {
722 return _internal_has_bot_id();
723}
724inline void Metadata::set_has_bot_id() {
725 _impl_._oneof_case_[0] = kBotId;
726}
728 if (_internal_has_bot_id()) {
729 _impl_.node_type_.bot_id_ = 0u;
730 clear_has_node_type();
731 }
732}
733inline uint32_t Metadata::_internal_bot_id() const {
734 if (_internal_has_bot_id()) {
735 return _impl_.node_type_.bot_id_;
736 }
737 return 0u;
738}
739inline void Metadata::_internal_set_bot_id(uint32_t value) {
740 if (!_internal_has_bot_id()) {
742 set_has_bot_id();
743 }
744 _impl_.node_type_.bot_id_ = value;
745}
746inline uint32_t Metadata::bot_id() const {
747 // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.bot_id)
748 return _internal_bot_id();
749}
750inline void Metadata::set_bot_id(uint32_t value) {
751 _internal_set_bot_id(value);
752 // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.bot_id)
753}
754
755inline bool Metadata::has_node_type() const {
757}
758inline void Metadata::clear_has_node_type() {
759 _impl_._oneof_case_[0] = NODE_TYPE_NOT_SET;
760}
762 return Metadata::NodeTypeCase(_impl_._oneof_case_[0]);
763}
764#ifdef __GNUC__
765 #pragma GCC diagnostic pop
766#endif // __GNUC__
767
768// @@protoc_insertion_point(namespace_scope)
769
770} // namespace config
771} // namespace jaiabot
772
773// @@protoc_insertion_point(global_scope)
774
775#include <google/protobuf/port_undef.inc>
776#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition config.pb.h:113
void set_is_simulation(bool value)
Definition config.pb.h:646
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition config.pb.h:380
static const Metadata & default_instance()
Definition config.pb.h:116
void set_hub_id(uint32_t value)
Definition config.pb.h:712
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition config.pb.h:100
void CopyFrom(const Metadata &from)
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
Definition config.pb.h:463
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
bool IsInitialized() const final
void MergeFrom(const Metadata &from)
Definition config.pb.h:162
static constexpr int kIndexInFileMessages
Definition config.pb.h:129
void set_allocated_xbee(::jaiabot::protobuf::XbeeInfo *xbee)
Definition config.pb.h:602
PROTOBUF_NODISCARD::jaiabot::protobuf::XbeeInfo * release_xbee()
Definition config.pb.h:567
const ::jaiabot::protobuf::XbeeInfo & xbee() const
Definition config.pb.h:550
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition config.pb.h:107
bool has_is_simulation() const
Definition config.pb.h:628
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::goby::middleware::protobuf::AppConfig * mutable_app()
Definition config.pb.h:423
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Definition config.pb.h:408
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
Definition config.pb.h:467
uint32_t fleet_id() const
Definition config.pb.h:666
Metadata(Metadata &&from) noexcept
Definition config.pb.h:77
Metadata(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
Definition config.pb.h:480
size_t ByteSizeLong() const final
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
Definition config.pb.h:495
bool has_fleet_id() const
Definition config.pb.h:656
PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
Definition config.pb.h:510
NodeTypeCase node_type_case() const
Definition config.pb.h:761
void UnsafeArenaSwap(Metadata *other)
Definition config.pb.h:148
static const ClassData _class_data_
Definition config.pb.h:193
void unsafe_arena_set_allocated_xbee(::jaiabot::protobuf::XbeeInfo *xbee)
Definition config.pb.h:554
int GetCachedSize() const final
Definition config.pb.h:175
void set_bot_id(uint32_t value)
Definition config.pb.h:750
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
Definition config.pb.h:515
::jaiabot::protobuf::XbeeInfo * mutable_xbee()
Definition config.pb.h:597
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Definition config.pb.h:428
Metadata & operator=(Metadata &&from) noexcept
Definition config.pb.h:86
static const Metadata * internal_default_instance()
Definition config.pb.h:125
void set_fleet_id(uint32_t value)
Definition config.pb.h:674
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
Definition config.pb.h:393
Metadata * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
Definition config.pb.h:156
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
const ::goby::middleware::protobuf::AppConfig & app() const
Definition config.pb.h:376
uint32_t hub_id() const
Definition config.pb.h:708
void Swap(Metadata *other)
Definition config.pb.h:135
uint32_t bot_id() const
Definition config.pb.h:746
::jaiabot::protobuf::XbeeInfo * unsafe_arena_release_xbee()
Definition config.pb.h:582
bool has_interprocess() const
Definition config.pb.h:455
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition config.pb.h:110
Metadata(const Metadata &from)
friend void swap(Metadata &a, Metadata &b)
Definition config.pb.h:132
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition config.pb.h:103
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Metadata & operator=(const Metadata &from)
Definition config.pb.h:82
bool is_simulation() const
Definition config.pb.h:638
::jaiabot::protobuf::XbeeInfo * Arena::CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo >(Arena *)
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fmetadata_2fconfig_2eproto
MetadataDefaultTypeInternal _Metadata_default_instance_
XbeeInfoDefaultTypeInternal _XbeeInfo_default_instance_
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_
Definition config.pb.h:341