4 #ifndef PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
5 #define PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_bin_2fmetadata_2fconfig_2eproto
46 static const ::google::protobuf::internal::ParseTableField
entries[];
47 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
48 static const ::google::protobuf::internal::ParseTable
schema[1];
51 static const ::google::protobuf::uint32
offsets[];
58 class MetadataDefaultTypeInternal;
72 class Metadata :
public ::google::protobuf::Message {
86 *
this = ::std::move(from);
90 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
91 if (
this != &from) InternalSwap(&from);
99 return _internal_metadata_.unknown_fields();
102 return _internal_metadata_.mutable_unknown_fields();
105 static const ::google::protobuf::Descriptor*
descriptor();
116 return reinterpret_cast<const Metadata*
>(
130 return CreateMaybeMessage<Metadata>(NULL);
134 return CreateMaybeMessage<Metadata>(arena);
136 void CopyFrom(const ::google::protobuf::Message& from)
final;
137 void MergeFrom(const ::google::protobuf::Message& from)
final;
145 ::
google::protobuf::io::CodedInputStream* input) final;
147 ::
google::protobuf::io::CodedOutputStream* output) const final;
149 bool deterministic, ::
google::protobuf::uint8* target) const final;
155 void SetCachedSize(
int size)
const final;
158 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
161 inline void* MaybeArenaPtr()
const {
166 ::google::protobuf::Metadata
GetMetadata() const final;
177 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
179 const ::
goby::middleware::protobuf::AppConfig&
app() const;
189 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
191 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
201 const ::
jaiabot::protobuf::XbeeInfo& _internal_xbee() const;
241 void clear_has_app();
242 void set_has_interprocess();
243 void clear_has_interprocess();
245 void clear_has_xbee();
246 void set_has_is_simulation();
247 void clear_has_is_simulation();
248 void set_has_fleet_id();
249 void clear_has_fleet_id();
250 void set_has_hub_id();
251 void set_has_bot_id();
253 inline
bool has_node_type() const;
254 inline
void clear_has_node_type();
256 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257 ::
google::protobuf::internal::HasBits<1> _has_bits_;
258 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
259 ::
goby::middleware::protobuf::AppConfig* app_;
260 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
261 ::
jaiabot::protobuf::XbeeInfo* xbee_;
263 ::
google::protobuf::uint32 fleet_id_;
264 union NodeTypeUnion {
266 ::google::protobuf::uint32 hub_id_;
267 ::google::protobuf::uint32 bot_id_;
269 ::google::protobuf::uint32 _oneof_case_[1];
271 friend struct ::protobuf_bin_2fmetadata_2fconfig_2eproto::TableStruct;
279 #pragma GCC diagnostic push
280 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
286 return (_has_bits_[0] & 0x00000001u) != 0;
288 inline void Metadata::set_has_app() {
289 _has_bits_[0] |= 0x00000001u;
291 inline void Metadata::clear_has_app() {
292 _has_bits_[0] &= ~0x00000001u;
294 inline const ::goby::middleware::protobuf::AppConfig& Metadata::_internal_app()
const {
297 inline const ::goby::middleware::protobuf::AppConfig&
Metadata::app()
const {
298 const ::goby::middleware::protobuf::AppConfig* p = app_;
300 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
301 &::goby::middleware::protobuf::_AppConfig_default_instance_);
306 ::goby::middleware::protobuf::AppConfig* temp = app_;
313 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
320 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
321 if (message_arena == NULL) {
322 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
325 ::google::protobuf::Arena* submessage_arena = NULL;
326 if (message_arena != submessage_arena) {
327 app = ::google::protobuf::internal::GetOwnedMessage(
328 message_arena,
app, submessage_arena);
340 return (_has_bits_[0] & 0x00000002u) != 0;
342 inline void Metadata::set_has_interprocess() {
343 _has_bits_[0] |= 0x00000002u;
345 inline void Metadata::clear_has_interprocess() {
346 _has_bits_[0] &= ~0x00000002u;
348 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::_internal_interprocess()
const {
349 return *interprocess_;
352 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
354 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
355 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
359 clear_has_interprocess();
360 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
361 interprocess_ = NULL;
365 set_has_interprocess();
366 if (interprocess_ == NULL) {
367 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
371 return interprocess_;
374 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
375 if (message_arena == NULL) {
376 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
379 ::google::protobuf::Arena* submessage_arena = NULL;
380 if (message_arena != submessage_arena) {
381 interprocess = ::google::protobuf::internal::GetOwnedMessage(
384 set_has_interprocess();
386 clear_has_interprocess();
394 return (_has_bits_[0] & 0x00000004u) != 0;
396 inline void Metadata::set_has_xbee() {
397 _has_bits_[0] |= 0x00000004u;
399 inline void Metadata::clear_has_xbee() {
400 _has_bits_[0] &= ~0x00000004u;
402 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee()
const {
406 const ::jaiabot::protobuf::XbeeInfo* p = xbee_;
421 auto* p = CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo>(GetArenaNoVirtual());
428 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
429 if (message_arena == NULL) {
430 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(xbee_);
433 ::google::protobuf::Arena* submessage_arena = NULL;
434 if (message_arena != submessage_arena) {
435 xbee = ::google::protobuf::internal::GetOwnedMessage(
436 message_arena,
xbee, submessage_arena);
448 return (_has_bits_[0] & 0x00000008u) != 0;
450 inline void Metadata::set_has_is_simulation() {
451 _has_bits_[0] |= 0x00000008u;
453 inline void Metadata::clear_has_is_simulation() {
454 _has_bits_[0] &= ~0x00000008u;
457 is_simulation_ =
false;
458 clear_has_is_simulation();
462 return is_simulation_;
465 set_has_is_simulation();
466 is_simulation_ = value;
472 return (_has_bits_[0] & 0x00000010u) != 0;
474 inline void Metadata::set_has_fleet_id() {
475 _has_bits_[0] |= 0x00000010u;
477 inline void Metadata::clear_has_fleet_id() {
478 _has_bits_[0] &= ~0x00000010u;
482 clear_has_fleet_id();
498 inline void Metadata::set_has_hub_id() {
503 node_type_.hub_id_ = 0u;
504 clear_has_node_type();
510 return node_type_.hub_id_;
519 node_type_.hub_id_ = value;
527 inline void Metadata::set_has_bot_id() {
532 node_type_.bot_id_ = 0u;
533 clear_has_node_type();
539 return node_type_.bot_id_;
548 node_type_.bot_id_ = value;
552 inline bool Metadata::has_node_type()
const {
555 inline void Metadata::clear_has_node_type() {
562 #pragma GCC diagnostic pop
572 #endif // PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto