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();
110 return reinterpret_cast<const Metadata*
>(
124 return CreateMaybeMessage<Metadata>(NULL);
128 return CreateMaybeMessage<Metadata>(arena);
130 void CopyFrom(const ::google::protobuf::Message& from)
final;
131 void MergeFrom(const ::google::protobuf::Message& from)
final;
139 ::
google::protobuf::io::CodedInputStream* input) final;
141 ::
google::protobuf::io::CodedOutputStream* output) const final;
143 bool deterministic, ::
google::protobuf::uint8* target) const final;
149 void SetCachedSize(
int size)
const final;
152 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
155 inline void* MaybeArenaPtr()
const {
160 ::google::protobuf::Metadata
GetMetadata() const final;
171 const ::
goby::middleware::protobuf::AppConfig& _internal_app() const;
173 const ::
goby::middleware::protobuf::AppConfig&
app() const;
183 const ::
goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess() const;
185 const ::
goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess() const;
195 const ::
jaiabot::protobuf::XbeeInfo& _internal_xbee() const;
212 void clear_has_app();
213 void set_has_interprocess();
214 void clear_has_interprocess();
216 void clear_has_xbee();
217 void set_has_is_simulation();
218 void clear_has_is_simulation();
220 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
221 ::
google::protobuf::internal::HasBits<1> _has_bits_;
222 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
223 ::
goby::middleware::protobuf::AppConfig* app_;
224 ::
goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
225 ::
jaiabot::protobuf::XbeeInfo* xbee_;
235 #pragma GCC diagnostic push
236 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
242 return (_has_bits_[0] & 0x00000001u) != 0;
244 inline void Metadata::set_has_app() {
245 _has_bits_[0] |= 0x00000001u;
247 inline void Metadata::clear_has_app() {
248 _has_bits_[0] &= ~0x00000001u;
250 inline const ::goby::middleware::protobuf::AppConfig& Metadata::_internal_app()
const {
253 inline const ::goby::middleware::protobuf::AppConfig&
Metadata::app()
const {
254 const ::goby::middleware::protobuf::AppConfig* p = app_;
256 return p != NULL ? *p : *
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig*
>(
257 &::goby::middleware::protobuf::_AppConfig_default_instance_);
262 ::goby::middleware::protobuf::AppConfig* temp = app_;
269 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaNoVirtual());
276 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
277 if (message_arena == NULL) {
278 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(app_);
281 ::google::protobuf::Arena* submessage_arena = NULL;
282 if (message_arena != submessage_arena) {
283 app = ::google::protobuf::internal::GetOwnedMessage(
284 message_arena,
app, submessage_arena);
296 return (_has_bits_[0] & 0x00000002u) != 0;
298 inline void Metadata::set_has_interprocess() {
299 _has_bits_[0] |= 0x00000002u;
301 inline void Metadata::clear_has_interprocess() {
302 _has_bits_[0] &= ~0x00000002u;
304 inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& Metadata::_internal_interprocess()
const {
305 return *interprocess_;
308 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p = interprocess_;
310 return p != NULL ? *p : *
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig*
>(
311 &::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
315 clear_has_interprocess();
316 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp = interprocess_;
317 interprocess_ = NULL;
321 set_has_interprocess();
322 if (interprocess_ == NULL) {
323 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaNoVirtual());
327 return interprocess_;
330 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
331 if (message_arena == NULL) {
332 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(interprocess_);
335 ::google::protobuf::Arena* submessage_arena = NULL;
336 if (message_arena != submessage_arena) {
337 interprocess = ::google::protobuf::internal::GetOwnedMessage(
340 set_has_interprocess();
342 clear_has_interprocess();
350 return (_has_bits_[0] & 0x00000004u) != 0;
352 inline void Metadata::set_has_xbee() {
353 _has_bits_[0] |= 0x00000004u;
355 inline void Metadata::clear_has_xbee() {
356 _has_bits_[0] &= ~0x00000004u;
358 inline const ::jaiabot::protobuf::XbeeInfo& Metadata::_internal_xbee()
const {
362 const ::jaiabot::protobuf::XbeeInfo* p = xbee_;
377 auto* p = CreateMaybeMessage<::jaiabot::protobuf::XbeeInfo>(GetArenaNoVirtual());
384 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
385 if (message_arena == NULL) {
386 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(xbee_);
389 ::google::protobuf::Arena* submessage_arena = NULL;
390 if (message_arena != submessage_arena) {
391 xbee = ::google::protobuf::internal::GetOwnedMessage(
392 message_arena,
xbee, submessage_arena);
404 return (_has_bits_[0] & 0x00000008u) != 0;
406 inline void Metadata::set_has_is_simulation() {
407 _has_bits_[0] |= 0x00000008u;
409 inline void Metadata::clear_has_is_simulation() {
410 _has_bits_[0] &= ~0x00000008u;
413 is_simulation_ =
false;
414 clear_has_is_simulation();
418 return is_simulation_;
421 set_has_is_simulation();
422 is_simulation_ = value;
427 #pragma GCC diagnostic pop
437 #endif // PROTOBUF_INCLUDED_bin_2fmetadata_2fconfig_2eproto