4#ifndef GOOGLE_PROTOBUF_INCLUDED_bin_2fengineering_2fconfig_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_bin_2fengineering_2fconfig_2eproto
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
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.
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>
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"
35#include "goby/middleware/protobuf/transporter_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#include <google/protobuf/port_def.inc>
42#define PROTOBUF_INTERNAL_EXPORT_bin_2fengineering_2fconfig_2eproto
43PROTOBUF_NAMESPACE_OPEN
47PROTOBUF_NAMESPACE_CLOSE
56class JaiabotEngineering;
57struct JaiabotEngineeringDefaultTypeInternal;
61PROTOBUF_NAMESPACE_OPEN
63PROTOBUF_NAMESPACE_CLOSE
70 public ::PROTOBUF_NAMESPACE_ID::Message {
74 explicit PROTOBUF_CONSTEXPR
JaiabotEngineering(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
79 *
this = ::std::move(from);
87 if (
this == &from)
return *
this;
88 if (GetOwningArena() == from.GetOwningArena()
89 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90 && GetOwningArena() !=
nullptr
101 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
104 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
107 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
130 if (other ==
this)
return;
131 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
132 if (GetOwningArena() !=
nullptr &&
133 GetOwningArena() == other->GetOwningArena()) {
135 if (GetOwningArena() == other->GetOwningArena()) {
139 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
143 if (other ==
this)
return;
144 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
151 return CreateMaybeMessage<JaiabotEngineering>(arena);
153 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
155 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
157 JaiabotEngineering::MergeImpl(*
this, from);
160 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
162 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
168 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
172 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
174 void SetCachedSize(
int size)
const final;
178 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
179 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
180 return "jaiabot.config.JaiabotEngineering";
184 bool is_message_owned =
false);
188 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
206 bool _internal_has_app()
const;
209 const ::goby::middleware::protobuf::AppConfig&
app()
const;
210 PROTOBUF_NODISCARD ::goby::middleware::protobuf::AppConfig*
release_app();
211 ::goby::middleware::protobuf::AppConfig*
mutable_app();
214 const ::goby::middleware::protobuf::AppConfig& _internal_app()
const;
215 ::goby::middleware::protobuf::AppConfig* _internal_mutable_app();
218 ::goby::middleware::protobuf::AppConfig*
app);
224 bool _internal_has_interprocess()
const;
227 const ::goby::zeromq::protobuf::InterProcessPortalConfig&
interprocess()
const;
232 const ::goby::zeromq::protobuf::InterProcessPortalConfig& _internal_interprocess()
const;
233 ::goby::zeromq::protobuf::InterProcessPortalConfig* _internal_mutable_interprocess();
236 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess);
242 bool _internal_has_command_sub_cfg()
const;
245 const ::goby::middleware::protobuf::TransporterConfig&
command_sub_cfg()
const;
250 const ::goby::middleware::protobuf::TransporterConfig& _internal_command_sub_cfg()
const;
251 ::goby::middleware::protobuf::TransporterConfig* _internal_mutable_command_sub_cfg();
260 bool _internal_has_bot_id()
const;
266 int32_t _internal_bot_id()
const;
267 void _internal_set_bot_id(int32_t value);
273 bool _internal_has_subnet_mask()
const;
279 uint32_t _internal_subnet_mask()
const;
280 void _internal_set_subnet_mask(uint32_t value);
288 size_t RequiredFieldsByteSizeFallback()
const;
290 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
291 typedef void InternalArenaConstructable_;
292 typedef void DestructorSkippable_;
294 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
295 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
296 ::goby::middleware::protobuf::AppConfig* app_;
297 ::goby::zeromq::protobuf::InterProcessPortalConfig* interprocess_;
298 ::goby::middleware::protobuf::TransporterConfig* command_sub_cfg_;
300 uint32_t subnet_mask_;
303 friend struct ::TableStruct_bin_2fengineering_2fconfig_2eproto;
311 #pragma GCC diagnostic push
312 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
317inline bool JaiabotEngineering::_internal_has_app()
const {
318 bool value = (
_impl_._has_bits_[0] & 0x00000001u) != 0;
319 PROTOBUF_ASSUME(!value ||
_impl_.app_ !=
nullptr);
323 return _internal_has_app();
325inline const ::goby::middleware::protobuf::AppConfig& JaiabotEngineering::_internal_app()
const {
326 const ::goby::middleware::protobuf::AppConfig* p =
_impl_.app_;
327 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::AppConfig&
>(
328 ::goby::middleware::protobuf::_AppConfig_default_instance_);
332 return _internal_app();
335 ::goby::middleware::protobuf::AppConfig*
app) {
336 if (GetArenaForAllocation() ==
nullptr) {
337 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
341 _impl_._has_bits_[0] |= 0x00000001u;
343 _impl_._has_bits_[0] &= ~0x00000001u;
348 _impl_._has_bits_[0] &= ~0x00000001u;
349 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
351#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
352 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
353 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
354 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
356 if (GetArenaForAllocation() !=
nullptr) {
357 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
364 _impl_._has_bits_[0] &= ~0x00000001u;
365 ::goby::middleware::protobuf::AppConfig* temp =
_impl_.app_;
369inline ::goby::middleware::protobuf::AppConfig* JaiabotEngineering::_internal_mutable_app() {
370 _impl_._has_bits_[0] |= 0x00000001u;
371 if (
_impl_.app_ ==
nullptr) {
372 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::AppConfig>(GetArenaForAllocation());
378 ::goby::middleware::protobuf::AppConfig* _msg = _internal_mutable_app();
383 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
384 if (message_arena ==
nullptr) {
385 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.app_);
388 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
389 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
390 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
app));
391 if (message_arena != submessage_arena) {
392 app = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
393 message_arena,
app, submessage_arena);
395 _impl_._has_bits_[0] |= 0x00000001u;
397 _impl_._has_bits_[0] &= ~0x00000001u;
404inline bool JaiabotEngineering::_internal_has_interprocess()
const {
405 bool value = (
_impl_._has_bits_[0] & 0x00000002u) != 0;
406 PROTOBUF_ASSUME(!value ||
_impl_.interprocess_ !=
nullptr);
410 return _internal_has_interprocess();
412inline const ::goby::zeromq::protobuf::InterProcessPortalConfig& JaiabotEngineering::_internal_interprocess()
const {
413 const ::goby::zeromq::protobuf::InterProcessPortalConfig* p =
_impl_.interprocess_;
414 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::zeromq::protobuf::InterProcessPortalConfig&
>(
415 ::goby::zeromq::protobuf::_InterProcessPortalConfig_default_instance_);
419 return _internal_interprocess();
422 ::goby::zeromq::protobuf::InterProcessPortalConfig*
interprocess) {
423 if (GetArenaForAllocation() ==
nullptr) {
424 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
428 _impl_._has_bits_[0] |= 0x00000002u;
430 _impl_._has_bits_[0] &= ~0x00000002u;
435 _impl_._has_bits_[0] &= ~0x00000002u;
436 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
437 _impl_.interprocess_ =
nullptr;
438#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
439 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
440 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
441 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
443 if (GetArenaForAllocation() !=
nullptr) {
444 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
451 _impl_._has_bits_[0] &= ~0x00000002u;
452 ::goby::zeromq::protobuf::InterProcessPortalConfig* temp =
_impl_.interprocess_;
453 _impl_.interprocess_ =
nullptr;
456inline ::goby::zeromq::protobuf::InterProcessPortalConfig* JaiabotEngineering::_internal_mutable_interprocess() {
457 _impl_._has_bits_[0] |= 0x00000002u;
458 if (
_impl_.interprocess_ ==
nullptr) {
459 auto* p = CreateMaybeMessage<::goby::zeromq::protobuf::InterProcessPortalConfig>(GetArenaForAllocation());
462 return _impl_.interprocess_;
465 ::goby::zeromq::protobuf::InterProcessPortalConfig* _msg = _internal_mutable_interprocess();
470 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
471 if (message_arena ==
nullptr) {
472 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.interprocess_);
475 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
476 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
477 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
interprocess));
478 if (message_arena != submessage_arena) {
479 interprocess = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
482 _impl_._has_bits_[0] |= 0x00000002u;
484 _impl_._has_bits_[0] &= ~0x00000002u;
491inline bool JaiabotEngineering::_internal_has_bot_id()
const {
492 bool value = (
_impl_._has_bits_[0] & 0x00000008u) != 0;
496 return _internal_has_bot_id();
500 _impl_._has_bits_[0] &= ~0x00000008u;
502inline int32_t JaiabotEngineering::_internal_bot_id()
const {
507 return _internal_bot_id();
509inline void JaiabotEngineering::_internal_set_bot_id(int32_t value) {
510 _impl_._has_bits_[0] |= 0x00000008u;
514 _internal_set_bot_id(value);
519inline bool JaiabotEngineering::_internal_has_command_sub_cfg()
const {
520 bool value = (
_impl_._has_bits_[0] & 0x00000004u) != 0;
521 PROTOBUF_ASSUME(!value ||
_impl_.command_sub_cfg_ !=
nullptr);
525 return _internal_has_command_sub_cfg();
527inline const ::goby::middleware::protobuf::TransporterConfig& JaiabotEngineering::_internal_command_sub_cfg()
const {
528 const ::goby::middleware::protobuf::TransporterConfig* p =
_impl_.command_sub_cfg_;
529 return p !=
nullptr ? *p :
reinterpret_cast<const ::goby::middleware::protobuf::TransporterConfig&
>(
530 ::goby::middleware::protobuf::_TransporterConfig_default_instance_);
534 return _internal_command_sub_cfg();
538 if (GetArenaForAllocation() ==
nullptr) {
539 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.command_sub_cfg_);
543 _impl_._has_bits_[0] |= 0x00000004u;
545 _impl_._has_bits_[0] &= ~0x00000004u;
550 _impl_._has_bits_[0] &= ~0x00000004u;
551 ::goby::middleware::protobuf::TransporterConfig* temp =
_impl_.command_sub_cfg_;
552 _impl_.command_sub_cfg_ =
nullptr;
553#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
554 auto* old =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(temp);
555 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
556 if (GetArenaForAllocation() ==
nullptr) {
delete old; }
558 if (GetArenaForAllocation() !=
nullptr) {
559 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
566 _impl_._has_bits_[0] &= ~0x00000004u;
567 ::goby::middleware::protobuf::TransporterConfig* temp =
_impl_.command_sub_cfg_;
568 _impl_.command_sub_cfg_ =
nullptr;
571inline ::goby::middleware::protobuf::TransporterConfig* JaiabotEngineering::_internal_mutable_command_sub_cfg() {
572 _impl_._has_bits_[0] |= 0x00000004u;
573 if (
_impl_.command_sub_cfg_ ==
nullptr) {
574 auto* p = CreateMaybeMessage<::goby::middleware::protobuf::TransporterConfig>(GetArenaForAllocation());
575 _impl_.command_sub_cfg_ = p;
577 return _impl_.command_sub_cfg_;
580 ::goby::middleware::protobuf::TransporterConfig* _msg = _internal_mutable_command_sub_cfg();
585 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
586 if (message_arena ==
nullptr) {
587 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
_impl_.command_sub_cfg_);
590 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
591 ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
592 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*
>(
command_sub_cfg));
593 if (message_arena != submessage_arena) {
597 _impl_._has_bits_[0] |= 0x00000004u;
599 _impl_._has_bits_[0] &= ~0x00000004u;
606inline bool JaiabotEngineering::_internal_has_subnet_mask()
const {
607 bool value = (
_impl_._has_bits_[0] & 0x00000010u) != 0;
611 return _internal_has_subnet_mask();
615 _impl_._has_bits_[0] &= ~0x00000010u;
617inline uint32_t JaiabotEngineering::_internal_subnet_mask()
const {
618 return _impl_.subnet_mask_;
622 return _internal_subnet_mask();
624inline void JaiabotEngineering::_internal_set_subnet_mask(uint32_t value) {
625 _impl_._has_bits_[0] |= 0x00000010u;
626 _impl_.subnet_mask_ = value;
629 _internal_set_subnet_mask(value);
634 #pragma GCC diagnostic pop
644#include <google/protobuf/port_undef.inc>
JaiabotEngineering(const JaiabotEngineering &from)
void MergeFrom(const JaiabotEngineering &from)
JaiabotEngineering * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
size_t ByteSizeLong() const final
const ::goby::zeromq::protobuf::InterProcessPortalConfig & interprocess() const
static const JaiabotEngineering * internal_default_instance()
bool has_command_sub_cfg() const
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_NODISCARD::goby::middleware::protobuf::TransporterConfig * release_command_sub_cfg()
~JaiabotEngineering() override
void clear_command_sub_cfg()
void set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
void set_subnet_mask(uint32_t value)
PROTOBUF_CONSTEXPR JaiabotEngineering(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
static const ClassData _class_data_
::goby::zeromq::protobuf::InterProcessPortalConfig * unsafe_arena_release_interprocess()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
static constexpr int kIndexInFileMessages
void unsafe_arena_set_allocated_interprocess(::goby::zeromq::protobuf::InterProcessPortalConfig *interprocess)
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
bool IsInitialized() const final
void unsafe_arena_set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
JaiabotEngineering & operator=(const JaiabotEngineering &from)
void UnsafeArenaSwap(JaiabotEngineering *other)
void set_allocated_app(::goby::middleware::protobuf::AppConfig *app)
::goby::middleware::protobuf::TransporterConfig * mutable_command_sub_cfg()
bool has_subnet_mask() const
friend void swap(JaiabotEngineering &a, JaiabotEngineering &b)
JaiabotEngineering(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
::goby::zeromq::protobuf::InterProcessPortalConfig * mutable_interprocess()
JaiabotEngineering & operator=(JaiabotEngineering &&from) noexcept
JaiabotEngineering(JaiabotEngineering &&from) noexcept
void unsafe_arena_set_allocated_command_sub_cfg(::goby::middleware::protobuf::TransporterConfig *command_sub_cfg)
const ::goby::middleware::protobuf::TransporterConfig & command_sub_cfg() const
PROTOBUF_NODISCARD::goby::zeromq::protobuf::InterProcessPortalConfig * release_interprocess()
void clear_interprocess()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_command_sub_cfg(::goby::middleware::protobuf::TransporterConfig *command_sub_cfg)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
@ kInterprocessFieldNumber
@ kCommandSubCfgFieldNumber
void Swap(JaiabotEngineering *other)
void CopyFrom(const JaiabotEngineering &from)
int GetCachedSize() const final
const ::goby::middleware::protobuf::AppConfig & app() const
uint32_t subnet_mask() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::goby::middleware::protobuf::TransporterConfig * unsafe_arena_release_command_sub_cfg()
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
bool has_interprocess() const
::goby::middleware::protobuf::AppConfig * unsafe_arena_release_app()
PROTOBUF_NODISCARD::goby::middleware::protobuf::AppConfig * release_app()
static const JaiabotEngineering & default_instance()
void set_bot_id(int32_t value)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
::goby::middleware::protobuf::AppConfig * mutable_app()
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_bin_2fengineering_2fconfig_2eproto
JaiabotEngineeringDefaultTypeInternal _JaiabotEngineering_default_instance_
static const uint32_t offsets[]