JaiaBot  1.19.0
JaiaBot micro-AUV software
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 < 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
14 #error your headers.
15 #endif
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.
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_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> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
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>
42 // @@protoc_insertion_point(includes)
43 #include <google/protobuf/port_def.inc>
44 #define PROTOBUF_INTERNAL_EXPORT_bin_2fmetadata_2fconfig_2eproto
45 PROTOBUF_NAMESPACE_OPEN
46 namespace internal {
47 class AnyMetadata;
48 } // namespace internal
49 PROTOBUF_NAMESPACE_CLOSE
50 
51 // Internal implementation detail -- do not use these members.
53  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
54  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
56  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
57  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
58  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
59  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
60  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
61  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
62 };
63 extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fmetadata_2fconfig_2eproto;
64 namespace jaiabot {
65 namespace config {
66 class Metadata;
67 class MetadataDefaultTypeInternal;
68 extern MetadataDefaultTypeInternal _Metadata_default_instance_;
69 } // namespace config
70 } // namespace jaiabot
71 PROTOBUF_NAMESPACE_OPEN
72 template<> ::jaiabot::config::Metadata* Arena::CreateMaybeMessage<::jaiabot::config::Metadata>(Arena*);
73 PROTOBUF_NAMESPACE_CLOSE
74 namespace jaiabot {
75 namespace config {
76 
77 // ===================================================================
78 
79 class Metadata PROTOBUF_FINAL :
80  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:jaiabot.config.Metadata) */ {
81  public:
82  inline Metadata() : Metadata(nullptr) {};
83  virtual ~Metadata();
84 
85  Metadata(const Metadata& from);
86  Metadata(Metadata&& from) noexcept
87  : Metadata() {
88  *this = ::std::move(from);
89  }
90 
91  inline Metadata& operator=(const Metadata& from) {
92  CopyFrom(from);
93  return *this;
94  }
95  inline Metadata& operator=(Metadata&& from) noexcept {
96  if (GetArena() == from.GetArena()) {
97  if (this != &from) InternalSwap(&from);
98  } else {
99  CopyFrom(from);
100  }
101  return *this;
102  }
103 
104  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
105  return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
106  }
107  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
108  return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
109  }
110 
111  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
112  return GetDescriptor();
113  }
114  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
115  return GetMetadataStatic().descriptor;
116  }
117  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
118  return GetMetadataStatic().reflection;
119  }
120  static const Metadata& default_instance();
121 
123  kHubId = 21,
124  kBotId = 22,
125  NODE_TYPE_NOT_SET = 0,
126  };
127 
128  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
129  static inline const Metadata* internal_default_instance() {
130  return reinterpret_cast<const Metadata*>(
132  }
133  static constexpr int kIndexInFileMessages =
134  0;
135 
136  friend void swap(Metadata& a, Metadata& b) {
137  a.Swap(&b);
138  }
139  inline void Swap(Metadata* other) {
140  if (other == this) return;
141  if (GetArena() == other->GetArena()) {
142  InternalSwap(other);
143  } else {
144  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
145  }
146  }
147  void UnsafeArenaSwap(Metadata* other) {
148  if (other == this) return;
149  GOOGLE_DCHECK(GetArena() == other->GetArena());
150  InternalSwap(other);
151  }
152 
153  // implements Message ----------------------------------------------
154 
155  inline Metadata* New() const final {
156  return CreateMaybeMessage<Metadata>(nullptr);
157  }
158 
159  Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
160  return CreateMaybeMessage<Metadata>(arena);
161  }
162  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
163  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
164  void CopyFrom(const Metadata& from);
165  void MergeFrom(const Metadata& from);
166  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
167  bool IsInitialized() const final;
168 
169  size_t ByteSizeLong() const final;
170  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
171  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
172  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
173  int GetCachedSize() const final { return _cached_size_.Get(); }
174 
175  private:
176  inline void SharedCtor();
177  inline void SharedDtor();
178  void SetCachedSize(int size) const final;
179  void InternalSwap(Metadata* other);
180  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
181  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
182  return "jaiabot.config.Metadata";
183  }
184  protected:
185  explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena);
186  private:
187  static void ArenaDtor(void* object);
188  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
189  public:
190 
191  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
192  private:
193  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
194  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_bin_2fmetadata_2fconfig_2eproto);
195  return ::descriptor_table_bin_2fmetadata_2fconfig_2eproto.file_level_metadata[kIndexInFileMessages];
196  }
197 
198  public:
199 
200  // nested types ----------------------------------------------------
201 
202  // accessors -------------------------------------------------------
203 
204  enum : int {
205  kAppFieldNumber = 1,
206  kInterprocessFieldNumber = 2,
207  kXbeeFieldNumber = 10,
208  kIsSimulationFieldNumber = 11,
209  kFleetIdFieldNumber = 20,
210  kHubIdFieldNumber = 21,
211  kBotIdFieldNumber = 22,
212  };
213  // optional .goby.middleware.protobuf.AppConfig app = 1;
214  bool has_app() const;
215  private:
216  bool _internal_has_app() const;
217  public:
218  void clear_app();
219  const ::goby::middleware::protobuf::AppConfig& app() const;
220  ::goby::middleware::protobuf::AppConfig* release_app();
221  ::goby::middleware::protobuf::AppConfig* mutable_app();
222  void set_allocated_app(::goby::middleware::protobuf::AppConfig* app);
223  private:
224  const ::goby::middleware::protobuf::AppConfig& _internal_app() const;
225  ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
226  public:
228  ::goby::middleware::protobuf::AppConfig* app);
229  ::goby::middleware::protobuf::AppConfig* unsafe_arena_release_app();
230 
231  // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
232  bool has_interprocess() const;
233  private:
234  bool _internal_has_interprocess() const;
235  public:
237  const ::goby::zeromq::protobuf::InterProcessPortalConfig& interprocess() const;
238  ::goby::zeromq::protobuf::InterProcessPortalConfig* release_interprocess();
239  ::goby::zeromq::protobuf::InterProcessPortalConfig* mutable_interprocess();
240  void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
241  private:
242  const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
243  ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
244  public:
246  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess);
247  ::goby::zeromq::protobuf::InterProcessPortalConfig* unsafe_arena_release_interprocess();
248 
249  // optional .jaiabot.protobuf.XbeeInfo xbee = 10;
250  bool has_xbee() const;
251  private:
252  bool _internal_has_xbee() const;
253  public:
254  void clear_xbee();
255  const ::jaiabot::protobuf::XbeeInfo& xbee() const;
256  ::jaiabot::protobuf::XbeeInfo* release_xbee();
257  ::jaiabot::protobuf::XbeeInfo* mutable_xbee();
258  void set_allocated_xbee(::jaiabot::protobuf::XbeeInfo* xbee);
259  private:
260  const ::jaiabot::protobuf::XbeeInfo& _internal_xbee() const;
261  ::jaiabot::protobuf::XbeeInfo* _internal_mutable_xbee();
262  public:
264  ::jaiabot::protobuf::XbeeInfo* xbee);
265  ::jaiabot::protobuf::XbeeInfo* unsafe_arena_release_xbee();
266 
267  // optional bool is_simulation = 11;
268  bool has_is_simulation() const;
269  private:
270  bool _internal_has_is_simulation() const;
271  public:
273  bool is_simulation() const;
274  void set_is_simulation(bool value);
275  private:
276  bool _internal_is_simulation() const;
277  void _internal_set_is_simulation(bool value);
278  public:
279 
280  // optional uint32 fleet_id = 20;
281  bool has_fleet_id() const;
282  private:
283  bool _internal_has_fleet_id() const;
284  public:
286  ::PROTOBUF_NAMESPACE_ID::uint32 fleet_id() const;
287  void set_fleet_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
288  private:
289  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_fleet_id() const;
290  void _internal_set_fleet_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
291  public:
292 
293  // uint32 hub_id = 21;
294  bool has_hub_id() const;
295  private:
296  bool _internal_has_hub_id() const;
297  public:
298  void clear_hub_id();
299  ::PROTOBUF_NAMESPACE_ID::uint32 hub_id() const;
300  void set_hub_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
301  private:
302  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_hub_id() const;
303  void _internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
304  public:
305 
306  // uint32 bot_id = 22;
307  bool has_bot_id() const;
308  private:
309  bool _internal_has_bot_id() const;
310  public:
311  void clear_bot_id();
312  ::PROTOBUF_NAMESPACE_ID::uint32 bot_id() const;
313  void set_bot_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
314  private:
315  ::PROTOBUF_NAMESPACE_ID::uint32 _internal_bot_id() const;
316  void _internal_set_bot_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
317  public:
318 
321  // @@protoc_insertion_point(class_scope:jaiabot.config.Metadata)
322  private:
323  class _Internal;
324  void set_has_hub_id();
325  void set_has_bot_id();
326 
327  inline bool has_node_type() const;
328  inline void clear_has_node_type();
329 
330  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
331  typedef void InternalArenaConstructable_;
332  typedef void DestructorSkippable_;
333  ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
334  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
335  ::goby::middleware::protobuf::AppConfig* app_;
336  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
337  ::jaiabot::protobuf::XbeeInfo* xbee_;
338  bool is_simulation_;
339  ::PROTOBUF_NAMESPACE_ID::uint32 fleet_id_;
340  union NodeTypeUnion {
341  NodeTypeUnion() {}
342  ::PROTOBUF_NAMESPACE_ID::uint32 hub_id_;
343  ::PROTOBUF_NAMESPACE_ID::uint32 bot_id_;
344  } node_type_;
345  ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
346 
347  friend struct ::TableStruct_bin_2fmetadata_2fconfig_2eproto;
348 };
349 // ===================================================================
350 
351 
352 // ===================================================================
353 
354 #ifdef __GNUC__
355  #pragma GCC diagnostic push
356  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
357 #endif // __GNUC__
358 // Metadata
359 
360 // optional .goby.middleware.protobuf.AppConfig app = 1;
361 inline bool Metadata::_internal_has_app() const {
362  bool value = (_has_bits_[0] & 0x00000001u) != 0;
363  PROTOBUF_ASSUME(!value || app_ != nullptr);
364  return value;
365 }
366 inline bool Metadata::has_app() const {
367  return _internal_has_app();
368 }
369 inline const ::goby::middleware::protobuf::AppConfig& Metadata::_internal_app() const {
370  const ::goby::middleware::protobuf::AppConfig* p = app_;
371  return p != nullptr ? *p : *reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*>(
372  &::goby::middleware::protobuf::_AppConfig_default_instance_);
373 }
374 inline const ::goby::middleware::protobuf::AppConfig& Metadata::app() const {
375  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.app)
376  return _internal_app();
377 }
378 inline void Metadata::unsafe_arena_set_allocated_app(
379  ::goby::middleware::protobuf::AppConfig* app) {
380  if (GetArena() == nullptr) {
381  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
382  }
383  app_ = app;
384  if (app) {
385  _has_bits_[0] |= 0x00000001u;
386  } else {
387  _has_bits_[0] &= ~0x00000001u;
388  }
389  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.app)
390 }
391 inline ::goby::middleware::protobuf::AppConfig* Metadata::release_app() {
392  auto temp = unsafe_arena_release_app();
393  if (GetArena() != nullptr) {
394  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
395  }
396  return temp;
397 }
398 inline ::goby::middleware::protobuf::AppConfig* Metadata::unsafe_arena_release_app() {
399  // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.app)
400  _has_bits_[0] &= ~0x00000001u;
401  ::goby::middleware::protobuf::AppConfig* temp = app_;
402  app_ = nullptr;
403  return temp;
404 }
405 inline ::goby::middleware::protobuf::AppConfig* Metadata::_internal_mutable_app() {
406  _has_bits_[0] |= 0x00000001u;
407  if (app_ == nullptr) {
408  auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArena());
409  app_ = p;
410  }
411  return app_;
412 }
413 inline ::goby::middleware::protobuf::AppConfig* Metadata::mutable_app() {
414  // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.app)
415  return _internal_mutable_app();
416 }
417 inline void Metadata::set_allocated_app(::goby::middleware::protobuf::AppConfig* app) {
418  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
419  if (message_arena == nullptr) {
420  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(app_);
421  }
422  if (app) {
423  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
424  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(app)->GetArena();
425  if (message_arena != submessage_arena) {
426  app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
427  message_arena, app, submessage_arena);
428  }
429  _has_bits_[0] |= 0x00000001u;
430  } else {
431  _has_bits_[0] &= ~0x00000001u;
432  }
433  app_ = app;
434  // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.app)
435 }
436 
437 // optional .goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2;
438 inline bool Metadata::_internal_has_interprocess() const {
439  bool value = (_has_bits_[0] & 0x00000002u) != 0;
440  PROTOBUF_ASSUME(!value || interprocess_ != nullptr);
441  return value;
442 }
443 inline bool Metadata::has_interprocess() const {
444  return _internal_has_interprocess();
445 }
446 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::_internal_interprocess() const {
447  const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
448  return p != nullptr ? *p : *reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*>(
449  &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
450 }
451 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::interprocess() const {
452  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.interprocess)
453  return _internal_interprocess();
454 }
455 inline void Metadata::unsafe_arena_set_allocated_interprocess(
456  ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
457  if (GetArena() == nullptr) {
458  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
459  }
460  interprocess_ = interprocess;
461  if (interprocess) {
462  _has_bits_[0] |= 0x00000002u;
463  } else {
464  _has_bits_[0] &= ~0x00000002u;
465  }
466  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.interprocess)
467 }
468 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::release_interprocess() {
469  auto temp = unsafe_arena_release_interprocess();
470  if (GetArena() != nullptr) {
471  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
472  }
473  return temp;
474 }
475 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::unsafe_arena_release_interprocess() {
476  // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.interprocess)
477  _has_bits_[0] &= ~0x00000002u;
478  ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
479  interprocess_ = nullptr;
480  return temp;
481 }
482 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::_internal_mutable_interprocess() {
483  _has_bits_[0] |= 0x00000002u;
484  if (interprocess_ == nullptr) {
485  auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArena());
486  interprocess_ = p;
487  }
488  return interprocess_;
489 }
490 inline ::goby::zeromq::protobuf::InterProcessPortalConfig* Metadata::mutable_interprocess() {
491  // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.interprocess)
492  return _internal_mutable_interprocess();
493 }
494 inline void Metadata::set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess) {
495  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
496  if (message_arena == nullptr) {
497  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess_);
498  }
499  if (interprocess) {
500  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
501  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interprocess)->GetArena();
502  if (message_arena != submessage_arena) {
503  interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
504  message_arena, interprocess, submessage_arena);
505  }
506  _has_bits_[0] |= 0x00000002u;
507  } else {
508  _has_bits_[0] &= ~0x00000002u;
509  }
510  interprocess_ = interprocess;
511  // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.interprocess)
512 }
513 
514 // optional .jaiabot.protobuf.XbeeInfo xbee = 10;
515 inline bool Metadata::_internal_has_xbee() const {
516  bool value = (_has_bits_[0] & 0x00000004u) != 0;
517  PROTOBUF_ASSUME(!value || xbee_ != nullptr);
518  return value;
519 }
520 inline bool Metadata::has_xbee() const {
521  return _internal_has_xbee();
522 }
523 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee() const {
524  const ::jaiabot::protobuf::XbeeInfo* p = xbee_;
525  return p != nullptr ? *p : *reinterpret_cast<const ::jaiabot::protobuf::XbeeInfo*>(
527 }
528 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::xbee() const {
529  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.xbee)
530  return _internal_xbee();
531 }
532 inline void Metadata::unsafe_arena_set_allocated_xbee(
533  ::jaiabot::protobuf::XbeeInfo* xbee) {
534  if (GetArena() == nullptr) {
535  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(xbee_);
536  }
537  xbee_ = xbee;
538  if (xbee) {
539  _has_bits_[0] |= 0x00000004u;
540  } else {
541  _has_bits_[0] &= ~0x00000004u;
542  }
543  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:jaiabot.config.Metadata.xbee)
544 }
545 inline ::jaiabot::protobuf::XbeeInfo* Metadata::release_xbee() {
546  auto temp = unsafe_arena_release_xbee();
547  if (GetArena() != nullptr) {
548  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
549  }
550  return temp;
551 }
552 inline ::jaiabot::protobuf::XbeeInfo* Metadata::unsafe_arena_release_xbee() {
553  // @@protoc_insertion_point(field_release:jaiabot.config.Metadata.xbee)
554  _has_bits_[0] &= ~0x00000004u;
555  ::jaiabot::protobuf::XbeeInfo* temp = xbee_;
556  xbee_ = nullptr;
557  return temp;
558 }
559 inline ::jaiabot::protobuf::XbeeInfo* Metadata::_internal_mutable_xbee() {
560  _has_bits_[0] |= 0x00000004u;
561  if (xbee_ == nullptr) {
562  auto* p = CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo>(GetArena());
563  xbee_ = p;
564  }
565  return xbee_;
566 }
567 inline ::jaiabot::protobuf::XbeeInfo* Metadata::mutable_xbee() {
568  // @@protoc_insertion_point(field_mutable:jaiabot.config.Metadata.xbee)
569  return _internal_mutable_xbee();
570 }
571 inline void Metadata::set_allocated_xbee(::jaiabot::protobuf::XbeeInfo* xbee) {
572  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
573  if (message_arena == nullptr) {
574  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(xbee_);
575  }
576  if (xbee) {
577  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
578  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(xbee)->GetArena();
579  if (message_arena != submessage_arena) {
580  xbee = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
581  message_arena, xbee, submessage_arena);
582  }
583  _has_bits_[0] |= 0x00000004u;
584  } else {
585  _has_bits_[0] &= ~0x00000004u;
586  }
587  xbee_ = xbee;
588  // @@protoc_insertion_point(field_set_allocated:jaiabot.config.Metadata.xbee)
589 }
590 
591 // optional bool is_simulation = 11;
592 inline bool Metadata::_internal_has_is_simulation() const {
593  bool value = (_has_bits_[0] & 0x00000008u) != 0;
594  return value;
595 }
596 inline bool Metadata::has_is_simulation() const {
597  return _internal_has_is_simulation();
598 }
599 inline void Metadata::clear_is_simulation() {
600  is_simulation_ = false;
601  _has_bits_[0] &= ~0x00000008u;
602 }
603 inline bool Metadata::_internal_is_simulation() const {
604  return is_simulation_;
605 }
606 inline bool Metadata::is_simulation() const {
607  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.is_simulation)
608  return _internal_is_simulation();
609 }
610 inline void Metadata::_internal_set_is_simulation(bool value) {
611  _has_bits_[0] |= 0x00000008u;
612  is_simulation_ = value;
613 }
614 inline void Metadata::set_is_simulation(bool value) {
615  _internal_set_is_simulation(value);
616  // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.is_simulation)
617 }
618 
619 // optional uint32 fleet_id = 20;
620 inline bool Metadata::_internal_has_fleet_id() const {
621  bool value = (_has_bits_[0] & 0x00000010u) != 0;
622  return value;
623 }
624 inline bool Metadata::has_fleet_id() const {
625  return _internal_has_fleet_id();
626 }
627 inline void Metadata::clear_fleet_id() {
628  fleet_id_ = 0u;
629  _has_bits_[0] &= ~0x00000010u;
630 }
631 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::_internal_fleet_id() const {
632  return fleet_id_;
633 }
634 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::fleet_id() const {
635  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.fleet_id)
636  return _internal_fleet_id();
637 }
638 inline void Metadata::_internal_set_fleet_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
639  _has_bits_[0] |= 0x00000010u;
640  fleet_id_ = value;
641 }
642 inline void Metadata::set_fleet_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
643  _internal_set_fleet_id(value);
644  // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.fleet_id)
645 }
646 
647 // uint32 hub_id = 21;
648 inline bool Metadata::_internal_has_hub_id() const {
649  return node_type_case() == kHubId;
650 }
651 inline bool Metadata::has_hub_id() const {
652  return _internal_has_hub_id();
653 }
654 inline void Metadata::set_has_hub_id() {
655  _oneof_case_[0] = kHubId;
656 }
657 inline void Metadata::clear_hub_id() {
658  if (_internal_has_hub_id()) {
659  node_type_.hub_id_ = 0u;
660  clear_has_node_type();
661  }
662 }
663 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::_internal_hub_id() const {
664  if (_internal_has_hub_id()) {
665  return node_type_.hub_id_;
666  }
667  return 0u;
668 }
669 inline void Metadata::_internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
670  if (!_internal_has_hub_id()) {
671  clear_node_type();
672  set_has_hub_id();
673  }
674  node_type_.hub_id_ = value;
675 }
676 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::hub_id() const {
677  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.hub_id)
678  return _internal_hub_id();
679 }
680 inline void Metadata::set_hub_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
681  _internal_set_hub_id(value);
682  // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.hub_id)
683 }
684 
685 // uint32 bot_id = 22;
686 inline bool Metadata::_internal_has_bot_id() const {
687  return node_type_case() == kBotId;
688 }
689 inline bool Metadata::has_bot_id() const {
690  return _internal_has_bot_id();
691 }
692 inline void Metadata::set_has_bot_id() {
693  _oneof_case_[0] = kBotId;
694 }
695 inline void Metadata::clear_bot_id() {
696  if (_internal_has_bot_id()) {
697  node_type_.bot_id_ = 0u;
698  clear_has_node_type();
699  }
700 }
701 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::_internal_bot_id() const {
702  if (_internal_has_bot_id()) {
703  return node_type_.bot_id_;
704  }
705  return 0u;
706 }
707 inline void Metadata::_internal_set_bot_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
708  if (!_internal_has_bot_id()) {
709  clear_node_type();
710  set_has_bot_id();
711  }
712  node_type_.bot_id_ = value;
713 }
714 inline ::PROTOBUF_NAMESPACE_ID::uint32 Metadata::bot_id() const {
715  // @@protoc_insertion_point(field_get:jaiabot.config.Metadata.bot_id)
716  return _internal_bot_id();
717 }
718 inline void Metadata::set_bot_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
719  _internal_set_bot_id(value);
720  // @@protoc_insertion_point(field_set:jaiabot.config.Metadata.bot_id)
721 }
722 
723 inline bool Metadata::has_node_type() const {
724  return node_type_case() != NODE_TYPE_NOT_SET;
725 }
726 inline void Metadata::clear_has_node_type() {
727  _oneof_case_[0] = NODE_TYPE_NOT_SET;
728 }
729 inline Metadata::NodeTypeCase Metadata::node_type_case() const {
730  return Metadata::NodeTypeCase(_oneof_case_[0]);
731 }
732 #ifdef __GNUC__
733  #pragma GCC diagnostic pop
734 #endif // __GNUC__
735 
736 // @@protoc_insertion_point(namespace_scope)
737 
738 } // namespace config
739 } // namespace jaiabot
740 
741 // @@protoc_insertion_point(global_scope)
742 
743 #include <google/protobuf/port_undef.inc>
744 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
NodeTypeCase node_type_case() const
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Definition: config.pb.h:107
void unsafe_arena_set_allocated_xbee(::jaiabot::protobuf::XbeeInfo *xbee)
void set_hub_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::goby::middleware::protobuf::AppConfig & app() const
::PROTOBUF_NAMESPACE_ID::uint32 hub_id() const
void set_bot_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
::jaiabot::protobuf::XbeeInfo * unsafe_arena_release_xbee()
void set_fleet_id(::PROTOBUF_NAMESPACE_ID::uint32 value)
Metadata & operator=(Metadata &&from) noexcept
Definition: config.pb.h:95
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
Metadata & operator=(const Metadata &from)
Definition: config.pb.h:91
::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
Definition: config.pb.h:159
void set_is_simulation(bool value)
void CopyFrom(const Metadata &from)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: config.pb.h:117
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()
Definition: config.pb.h:129
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: config.pb.h:114
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
Definition: config.pb.h:104
::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void Swap(Metadata *other)
Definition: config.pb.h:139
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
::jaiabot::protobuf::XbeeInfo * mutable_xbee()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void UnsafeArenaSwap(Metadata *other)
Definition: config.pb.h:147
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)
::PROTOBUF_NAMESPACE_ID::uint32 fleet_id() const
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Metadata(Metadata &&from) noexcept
Definition: config.pb.h:86
::PROTOBUF_NAMESPACE_ID::uint32 bot_id() const
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
Metadata(const Metadata &from)
friend void swap(Metadata &a, Metadata &b)
Definition: config.pb.h:136
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: config.pb.h:111
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const Metadata &from)
Metadata * New() const final
Definition: config.pb.h:155
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fmetadata_2fconfig_2eproto
MetadataDefaultTypeInternal _Metadata_default_instance_
XbeeInfoDefaultTypeInternal _XbeeInfo_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::jaiabot::udp::protobuf::Config >, 11, false > config
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: config.pb.h:61
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
Definition: config.pb.h:59
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
Definition: config.pb.h:60