4#ifndef GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_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/acomms/protobuf/driver_base.pb.h"
34#include "goby/protobuf/option_extensions.pb.h"
35#include "dccl/option_extensions.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 <boost/units/systems/si.hpp>
43#include <google/protobuf/port_def.inc>
44#define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fxbee_5fextensions_2eproto
45PROTOBUF_NAMESPACE_OPEN
49PROTOBUF_NAMESPACE_CLOSE
59struct ConfigDefaultTypeInternal;
62struct PeerDefaultTypeInternal;
66PROTOBUF_NAMESPACE_OPEN
69PROTOBUF_NAMESPACE_CLOSE
76 public ::PROTOBUF_NAMESPACE_ID::Message {
80 explicit PROTOBUF_CONSTEXPR
Peer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
85 *
this = ::std::move(from);
93 if (
this == &from)
return *
this;
94 if (GetOwningArena() == from.GetOwningArena()
95 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
96 && GetOwningArena() !=
nullptr
107 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
110 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
113 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
133 return reinterpret_cast<const Peer*
>(
143 if (other ==
this)
return;
144 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
145 if (GetOwningArena() !=
nullptr &&
146 GetOwningArena() == other->GetOwningArena()) {
148 if (GetOwningArena() == other->GetOwningArena()) {
152 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
156 if (other ==
this)
return;
157 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
163 Peer*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
164 return CreateMaybeMessage<Peer>(arena);
166 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
168 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
170 Peer::MergeImpl(*
this, from);
173 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
175 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
181 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
185 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
187 void SetCachedSize(
int size)
const final;
188 void InternalSwap(
Peer* other);
191 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
192 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
193 return "xbee.protobuf.Peer";
196 explicit Peer(::PROTOBUF_NAMESPACE_ID::Arena* arena,
197 bool is_message_owned =
false);
201 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
218 bool _internal_has_serial_number()
const;
224 uint64_t _internal_serial_number()
const;
225 void _internal_set_serial_number(uint64_t value);
231 bool _internal_has_node_id()
const;
234 const std::string&
node_id()
const;
235 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
241 const std::string& _internal_node_id()
const;
242 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_node_id(
const std::string& value);
243 std::string* _internal_mutable_node_id();
249 bool _internal_has_hub_id()
const;
255 int32_t _internal_hub_id()
const;
256 void _internal_set_hub_id(int32_t value);
262 bool _internal_has_bot_id()
const;
268 int32_t _internal_bot_id()
const;
269 void _internal_set_bot_id(int32_t value);
277 void set_has_node_id();
278 void set_has_hub_id();
279 void set_has_bot_id();
281 inline bool has_id()
const;
282 inline void clear_has_id();
284 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
285 typedef void InternalArenaConstructable_;
286 typedef void DestructorSkippable_;
288 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
289 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
290 uint64_t serial_number_;
293 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized
_constinit_;
294 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
node_id_;
298 uint32_t _oneof_case_[1];
302 friend struct ::TableStruct_jaiabot_2fmessages_2fxbee_5fextensions_2eproto;
307 public ::PROTOBUF_NAMESPACE_ID::Message {
311 explicit PROTOBUF_CONSTEXPR
Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
316 *
this = ::std::move(from);
324 if (
this == &from)
return *
this;
325 if (GetOwningArena() == from.GetOwningArena()
326 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
327 && GetOwningArena() !=
nullptr
338 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
341 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
344 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
345 return GetDescriptor();
348 return default_instance().GetMetadata().descriptor;
351 return default_instance().GetMetadata().reflection;
354 return *internal_default_instance();
357 return reinterpret_cast<const Config*
>(
360 static constexpr int kIndexInFileMessages =
367 if (other ==
this)
return;
368 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
369 if (GetOwningArena() !=
nullptr &&
370 GetOwningArena() == other->GetOwningArena()) {
372 if (GetOwningArena() == other->GetOwningArena()) {
376 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
380 if (other ==
this)
return;
381 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
387 Config*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
388 return CreateMaybeMessage<Config>(arena);
390 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
392 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
394 Config::MergeImpl(*
this, from);
397 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
399 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
400 bool IsInitialized() const final;
402 size_t ByteSizeLong() const final;
403 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
404 uint8_t* _InternalSerialize(
405 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
406 int GetCachedSize() const final {
return _impl_._cached_size_.Get(); }
409 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
411 void SetCachedSize(
int size)
const final;
412 void InternalSwap(
Config* other);
415 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
416 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
417 return "xbee.protobuf.Config";
420 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena,
421 bool is_message_owned =
false);
425 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
427 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
434 kPeersFieldNumber = 2,
435 kXbeeInfoLocationFieldNumber = 5,
436 kXbeeEncryptionPasswordFieldNumber = 8,
437 kHubInfoLocationFieldNumber = 9,
438 kTestCommsFieldNumber = 4,
439 kUseXbeeEncryptionFieldNumber = 7,
440 kHubIdFieldNumber = 6,
441 kNetworkIdFieldNumber = 1,
444 int peers_size()
const;
446 int _internal_peers_size()
const;
450 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >*
453 const ::xbee::protobuf::Peer& _internal_peers(
int index)
const;
456 const ::xbee::protobuf::Peer& peers(
int index)
const;
458 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >&
462 bool has_xbee_info_location()
const;
464 bool _internal_has_xbee_info_location()
const;
466 void clear_xbee_info_location();
467 const std::string& xbee_info_location()
const;
468 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
470 std::string* mutable_xbee_info_location();
471 PROTOBUF_NODISCARD std::string* release_xbee_info_location();
472 void set_allocated_xbee_info_location(std::string* xbee_info_location);
474 const std::string& _internal_xbee_info_location()
const;
475 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_xbee_info_location(
const std::string& value);
476 std::string* _internal_mutable_xbee_info_location();
480 bool has_xbee_encryption_password()
const;
482 bool _internal_has_xbee_encryption_password()
const;
484 void clear_xbee_encryption_password();
485 const std::string& xbee_encryption_password()
const;
486 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
488 std::string* mutable_xbee_encryption_password();
489 PROTOBUF_NODISCARD std::string* release_xbee_encryption_password();
490 void set_allocated_xbee_encryption_password(std::string* xbee_encryption_password);
492 const std::string& _internal_xbee_encryption_password()
const;
493 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_xbee_encryption_password(
const std::string& value);
494 std::string* _internal_mutable_xbee_encryption_password();
498 bool has_hub_info_location()
const;
500 bool _internal_has_hub_info_location()
const;
502 void clear_hub_info_location();
503 const std::string& hub_info_location()
const;
504 template <
typename ArgT0 =
const std::string&,
typename... ArgT>
506 std::string* mutable_hub_info_location();
507 PROTOBUF_NODISCARD std::string* release_hub_info_location();
508 void set_allocated_hub_info_location(std::string* hub_info_location);
510 const std::string& _internal_hub_info_location()
const;
511 inline PROTOBUF_ALWAYS_INLINE
void _internal_set_hub_info_location(
const std::string& value);
512 std::string* _internal_mutable_hub_info_location();
516 bool has_test_comms()
const;
518 bool _internal_has_test_comms()
const;
520 void clear_test_comms();
521 bool test_comms()
const;
522 void set_test_comms(
bool value);
524 bool _internal_test_comms()
const;
525 void _internal_set_test_comms(
bool value);
529 bool has_use_xbee_encryption()
const;
531 bool _internal_has_use_xbee_encryption()
const;
533 void clear_use_xbee_encryption();
534 bool use_xbee_encryption()
const;
535 void set_use_xbee_encryption(
bool value);
537 bool _internal_use_xbee_encryption()
const;
538 void _internal_set_use_xbee_encryption(
bool value);
542 bool has_hub_id()
const;
544 bool _internal_has_hub_id()
const;
547 int32_t hub_id()
const;
548 void set_hub_id(int32_t value);
550 int32_t _internal_hub_id()
const;
551 void _internal_set_hub_id(int32_t value);
555 bool has_network_id()
const;
557 bool _internal_has_network_id()
const;
559 void clear_network_id();
560 uint64_t network_id()
const;
561 void set_network_id(uint64_t value);
563 uint64_t _internal_network_id()
const;
564 void _internal_set_network_id(uint64_t value);
571 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
572 typedef void InternalArenaConstructable_;
573 typedef void DestructorSkippable_;
575 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
576 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
577 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer > peers_;
578 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_xbee_info_location_;
579 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr xbee_info_location_;
580 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr xbee_encryption_password_;
581 static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_hub_info_location_;
582 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr hub_info_location_;
584 bool use_xbee_encryption_;
586 uint64_t network_id_;
589 friend struct ::TableStruct_jaiabot_2fmessages_2fxbee_5fextensions_2eproto;
594extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
595 ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::xbee::protobuf::Config >, 11,
false >
601 #pragma GCC diagnostic push
602 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
607inline bool Peer::_internal_has_node_id()
const {
608 return id_case() == kNodeId;
610inline bool Peer::has_node_id()
const {
611 return _internal_has_node_id();
613inline void Peer::set_has_node_id() {
614 _impl_._oneof_case_[0] = kNodeId;
616inline void Peer::clear_node_id() {
617 if (_internal_has_node_id()) {
618 _impl_.id_.node_id_.Destroy();
622inline const std::string& Peer::node_id()
const {
624 return _internal_node_id();
626template <
typename ArgT0,
typename... ArgT>
627inline void Peer::set_node_id(ArgT0&& arg0, ArgT... args) {
628 if (!_internal_has_node_id()) {
631 _impl_.id_.node_id_.InitDefault();
633 _impl_.id_.node_id_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
636inline std::string* Peer::mutable_node_id() {
637 std::string* _s = _internal_mutable_node_id();
641inline const std::string& Peer::_internal_node_id()
const {
642 if (_internal_has_node_id()) {
643 return _impl_.id_.node_id_.Get();
645 return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
647inline void Peer::_internal_set_node_id(
const std::string& value) {
648 if (!_internal_has_node_id()) {
651 _impl_.id_.node_id_.InitDefault();
653 _impl_.id_.node_id_.Set(value, GetArenaForAllocation());
655inline std::string* Peer::_internal_mutable_node_id() {
656 if (!_internal_has_node_id()) {
659 _impl_.id_.node_id_.InitDefault();
661 return _impl_.id_.node_id_.Mutable( GetArenaForAllocation());
663inline std::string* Peer::release_node_id() {
665 if (_internal_has_node_id()) {
667 return _impl_.id_.node_id_.Release();
672inline void Peer::set_allocated_node_id(std::string* node_id) {
676 if (node_id !=
nullptr) {
678 _impl_.id_.node_id_.InitAllocated(node_id, GetArenaForAllocation());
684inline bool Peer::_internal_has_hub_id()
const {
685 return id_case() == kHubId;
687inline bool Peer::has_hub_id()
const {
688 return _internal_has_hub_id();
690inline void Peer::set_has_hub_id() {
691 _impl_._oneof_case_[0] = kHubId;
693inline void Peer::clear_hub_id() {
694 if (_internal_has_hub_id()) {
695 _impl_.id_.hub_id_ = 0;
699inline int32_t Peer::_internal_hub_id()
const {
700 if (_internal_has_hub_id()) {
701 return _impl_.id_.hub_id_;
705inline void Peer::_internal_set_hub_id(int32_t value) {
706 if (!_internal_has_hub_id()) {
710 _impl_.id_.hub_id_ = value;
712inline int32_t Peer::hub_id()
const {
714 return _internal_hub_id();
716inline void Peer::set_hub_id(int32_t value) {
717 _internal_set_hub_id(value);
722inline bool Peer::_internal_has_bot_id()
const {
723 return id_case() == kBotId;
725inline bool Peer::has_bot_id()
const {
726 return _internal_has_bot_id();
728inline void Peer::set_has_bot_id() {
729 _impl_._oneof_case_[0] = kBotId;
731inline void Peer::clear_bot_id() {
732 if (_internal_has_bot_id()) {
733 _impl_.id_.bot_id_ = 0;
737inline int32_t Peer::_internal_bot_id()
const {
738 if (_internal_has_bot_id()) {
739 return _impl_.id_.bot_id_;
743inline void Peer::_internal_set_bot_id(int32_t value) {
744 if (!_internal_has_bot_id()) {
748 _impl_.id_.bot_id_ = value;
750inline int32_t Peer::bot_id()
const {
752 return _internal_bot_id();
754inline void Peer::set_bot_id(int32_t value) {
755 _internal_set_bot_id(value);
760inline bool Peer::_internal_has_serial_number()
const {
761 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
764inline bool Peer::has_serial_number()
const {
765 return _internal_has_serial_number();
767inline void Peer::clear_serial_number() {
768 _impl_.serial_number_ = uint64_t{0u};
769 _impl_._has_bits_[0] &= ~0x00000001u;
771inline uint64_t Peer::_internal_serial_number()
const {
772 return _impl_.serial_number_;
774inline uint64_t Peer::serial_number()
const {
776 return _internal_serial_number();
778inline void Peer::_internal_set_serial_number(uint64_t value) {
779 _impl_._has_bits_[0] |= 0x00000001u;
780 _impl_.serial_number_ = value;
782inline void Peer::set_serial_number(uint64_t value) {
783 _internal_set_serial_number(value);
787inline bool Peer::has_id()
const {
788 return id_case() != ID_NOT_SET;
790inline void Peer::clear_has_id() {
791 _impl_._oneof_case_[0] = ID_NOT_SET;
801inline bool Config::_internal_has_network_id()
const {
802 bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
805inline bool Config::has_network_id()
const {
806 return _internal_has_network_id();
808inline void Config::clear_network_id() {
809 _impl_.network_id_ = uint64_t{7u};
810 _impl_._has_bits_[0] &= ~0x00000040u;
812inline uint64_t Config::_internal_network_id()
const {
813 return _impl_.network_id_;
815inline uint64_t Config::network_id()
const {
817 return _internal_network_id();
819inline void Config::_internal_set_network_id(uint64_t value) {
820 _impl_._has_bits_[0] |= 0x00000040u;
821 _impl_.network_id_ = value;
823inline void Config::set_network_id(uint64_t value) {
824 _internal_set_network_id(value);
829inline int Config::_internal_peers_size()
const {
830 return _impl_.peers_.size();
832inline int Config::peers_size()
const {
833 return _internal_peers_size();
835inline void Config::clear_peers() {
836 _impl_.peers_.Clear();
838inline ::xbee::protobuf::Peer* Config::mutable_peers(
int index) {
840 return _impl_.peers_.Mutable(index);
842inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >*
843Config::mutable_peers() {
845 return &_impl_.peers_;
847inline const ::xbee::protobuf::Peer& Config::_internal_peers(
int index)
const {
848 return _impl_.peers_.Get(index);
850inline const ::xbee::protobuf::Peer& Config::peers(
int index)
const {
852 return _internal_peers(index);
854inline ::xbee::protobuf::Peer* Config::_internal_add_peers() {
855 return _impl_.peers_.Add();
857inline ::xbee::protobuf::Peer* Config::add_peers() {
862inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >&
863Config::peers()
const {
865 return _impl_.peers_;
869inline bool Config::_internal_has_test_comms()
const {
870 bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
873inline bool Config::has_test_comms()
const {
874 return _internal_has_test_comms();
876inline void Config::clear_test_comms() {
877 _impl_.test_comms_ =
false;
878 _impl_._has_bits_[0] &= ~0x00000008u;
880inline bool Config::_internal_test_comms()
const {
881 return _impl_.test_comms_;
883inline bool Config::test_comms()
const {
885 return _internal_test_comms();
887inline void Config::_internal_set_test_comms(
bool value) {
888 _impl_._has_bits_[0] |= 0x00000008u;
889 _impl_.test_comms_ = value;
891inline void Config::set_test_comms(
bool value) {
892 _internal_set_test_comms(value);
897inline bool Config::_internal_has_xbee_info_location()
const {
898 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
901inline bool Config::has_xbee_info_location()
const {
902 return _internal_has_xbee_info_location();
904inline void Config::clear_xbee_info_location() {
905 _impl_.xbee_info_location_.ClearToDefault(::xbee::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_xbee_info_location_, GetArenaForAllocation());
906 _impl_._has_bits_[0] &= ~0x00000001u;
908inline const std::string& Config::xbee_info_location()
const {
910 if (_impl_.xbee_info_location_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_xbee_info_location_.get();
911 return _internal_xbee_info_location();
913template <
typename ArgT0,
typename... ArgT>
914inline PROTOBUF_ALWAYS_INLINE
915void Config::set_xbee_info_location(ArgT0&& arg0, ArgT... args) {
916 _impl_._has_bits_[0] |= 0x00000001u;
917 _impl_.xbee_info_location_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
920inline std::string* Config::mutable_xbee_info_location() {
921 std::string* _s = _internal_mutable_xbee_info_location();
925inline const std::string& Config::_internal_xbee_info_location()
const {
926 return _impl_.xbee_info_location_.Get();
928inline void Config::_internal_set_xbee_info_location(
const std::string& value) {
929 _impl_._has_bits_[0] |= 0x00000001u;
930 _impl_.xbee_info_location_.Set(value, GetArenaForAllocation());
932inline std::string* Config::_internal_mutable_xbee_info_location() {
933 _impl_._has_bits_[0] |= 0x00000001u;
934 return _impl_.xbee_info_location_.Mutable(::xbee::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_xbee_info_location_, GetArenaForAllocation());
936inline std::string* Config::release_xbee_info_location() {
938 if (!_internal_has_xbee_info_location()) {
941 _impl_._has_bits_[0] &= ~0x00000001u;
942 auto* p = _impl_.xbee_info_location_.Release();
945inline void Config::set_allocated_xbee_info_location(std::string* xbee_info_location) {
946 if (xbee_info_location !=
nullptr) {
947 _impl_._has_bits_[0] |= 0x00000001u;
949 _impl_._has_bits_[0] &= ~0x00000001u;
951 _impl_.xbee_info_location_.SetAllocated(xbee_info_location, GetArenaForAllocation());
956inline bool Config::_internal_has_hub_id()
const {
957 bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
960inline bool Config::has_hub_id()
const {
961 return _internal_has_hub_id();
963inline void Config::clear_hub_id() {
965 _impl_._has_bits_[0] &= ~0x00000020u;
967inline int32_t Config::_internal_hub_id()
const {
968 return _impl_.hub_id_;
970inline int32_t Config::hub_id()
const {
972 return _internal_hub_id();
974inline void Config::_internal_set_hub_id(int32_t value) {
975 _impl_._has_bits_[0] |= 0x00000020u;
976 _impl_.hub_id_ = value;
978inline void Config::set_hub_id(int32_t value) {
979 _internal_set_hub_id(value);
984inline bool Config::_internal_has_use_xbee_encryption()
const {
985 bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
988inline bool Config::has_use_xbee_encryption()
const {
989 return _internal_has_use_xbee_encryption();
991inline void Config::clear_use_xbee_encryption() {
992 _impl_.use_xbee_encryption_ =
false;
993 _impl_._has_bits_[0] &= ~0x00000010u;
995inline bool Config::_internal_use_xbee_encryption()
const {
996 return _impl_.use_xbee_encryption_;
998inline bool Config::use_xbee_encryption()
const {
1000 return _internal_use_xbee_encryption();
1002inline void Config::_internal_set_use_xbee_encryption(
bool value) {
1003 _impl_._has_bits_[0] |= 0x00000010u;
1004 _impl_.use_xbee_encryption_ = value;
1006inline void Config::set_use_xbee_encryption(
bool value) {
1007 _internal_set_use_xbee_encryption(value);
1012inline bool Config::_internal_has_xbee_encryption_password()
const {
1013 bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
1016inline bool Config::has_xbee_encryption_password()
const {
1017 return _internal_has_xbee_encryption_password();
1019inline void Config::clear_xbee_encryption_password() {
1020 _impl_.xbee_encryption_password_.ClearToEmpty();
1021 _impl_._has_bits_[0] &= ~0x00000002u;
1023inline const std::string& Config::xbee_encryption_password()
const {
1025 return _internal_xbee_encryption_password();
1027template <
typename ArgT0,
typename... ArgT>
1028inline PROTOBUF_ALWAYS_INLINE
1029void Config::set_xbee_encryption_password(ArgT0&& arg0, ArgT... args) {
1030 _impl_._has_bits_[0] |= 0x00000002u;
1031 _impl_.xbee_encryption_password_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1034inline std::string* Config::mutable_xbee_encryption_password() {
1035 std::string* _s = _internal_mutable_xbee_encryption_password();
1039inline const std::string& Config::_internal_xbee_encryption_password()
const {
1040 return _impl_.xbee_encryption_password_.Get();
1042inline void Config::_internal_set_xbee_encryption_password(
const std::string& value) {
1043 _impl_._has_bits_[0] |= 0x00000002u;
1044 _impl_.xbee_encryption_password_.Set(value, GetArenaForAllocation());
1046inline std::string* Config::_internal_mutable_xbee_encryption_password() {
1047 _impl_._has_bits_[0] |= 0x00000002u;
1048 return _impl_.xbee_encryption_password_.Mutable(GetArenaForAllocation());
1050inline std::string* Config::release_xbee_encryption_password() {
1052 if (!_internal_has_xbee_encryption_password()) {
1055 _impl_._has_bits_[0] &= ~0x00000002u;
1056 auto* p = _impl_.xbee_encryption_password_.Release();
1057#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1058 if (_impl_.xbee_encryption_password_.IsDefault()) {
1059 _impl_.xbee_encryption_password_.Set(
"", GetArenaForAllocation());
1064inline void Config::set_allocated_xbee_encryption_password(std::string* xbee_encryption_password) {
1065 if (xbee_encryption_password !=
nullptr) {
1066 _impl_._has_bits_[0] |= 0x00000002u;
1068 _impl_._has_bits_[0] &= ~0x00000002u;
1070 _impl_.xbee_encryption_password_.SetAllocated(xbee_encryption_password, GetArenaForAllocation());
1071#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1072 if (_impl_.xbee_encryption_password_.IsDefault()) {
1073 _impl_.xbee_encryption_password_.Set(
"", GetArenaForAllocation());
1080inline bool Config::_internal_has_hub_info_location()
const {
1081 bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
1084inline bool Config::has_hub_info_location()
const {
1085 return _internal_has_hub_info_location();
1087inline void Config::clear_hub_info_location() {
1088 _impl_.hub_info_location_.ClearToDefault(::xbee::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_hub_info_location_, GetArenaForAllocation());
1089 _impl_._has_bits_[0] &= ~0x00000004u;
1091inline const std::string& Config::hub_info_location()
const {
1093 if (_impl_.hub_info_location_.IsDefault())
return Impl_::_i_give_permission_to_break_this_code_default_hub_info_location_.get();
1094 return _internal_hub_info_location();
1096template <
typename ArgT0,
typename... ArgT>
1097inline PROTOBUF_ALWAYS_INLINE
1098void Config::set_hub_info_location(ArgT0&& arg0, ArgT... args) {
1099 _impl_._has_bits_[0] |= 0x00000004u;
1100 _impl_.hub_info_location_.Set(
static_cast<ArgT0 &&
>(arg0), args..., GetArenaForAllocation());
1103inline std::string* Config::mutable_hub_info_location() {
1104 std::string* _s = _internal_mutable_hub_info_location();
1108inline const std::string& Config::_internal_hub_info_location()
const {
1109 return _impl_.hub_info_location_.Get();
1111inline void Config::_internal_set_hub_info_location(
const std::string& value) {
1112 _impl_._has_bits_[0] |= 0x00000004u;
1113 _impl_.hub_info_location_.Set(value, GetArenaForAllocation());
1115inline std::string* Config::_internal_mutable_hub_info_location() {
1116 _impl_._has_bits_[0] |= 0x00000004u;
1117 return _impl_.hub_info_location_.Mutable(::xbee::protobuf::Config::Impl_::_i_give_permission_to_break_this_code_default_hub_info_location_, GetArenaForAllocation());
1119inline std::string* Config::release_hub_info_location() {
1121 if (!_internal_has_hub_info_location()) {
1124 _impl_._has_bits_[0] &= ~0x00000004u;
1125 auto* p = _impl_.hub_info_location_.Release();
1128inline void Config::set_allocated_hub_info_location(std::string* hub_info_location) {
1129 if (hub_info_location !=
nullptr) {
1130 _impl_._has_bits_[0] |= 0x00000004u;
1132 _impl_._has_bits_[0] &= ~0x00000004u;
1134 _impl_.hub_info_location_.SetAllocated(hub_info_location, GetArenaForAllocation());
1139 #pragma GCC diagnostic pop
1151#include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
static const ClassData _class_data_
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
static const Config * internal_default_instance()
friend void swap(Config &a, Config &b)
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Config(const Config &from)
void set_xbee_info_location(ArgT0 &&arg0, ArgT... args)
Config & operator=(const Config &from)
Config & operator=(Config &&from) noexcept
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
void UnsafeArenaSwap(Config *other)
PROTOBUF_CONSTEXPR Config(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
void set_xbee_encryption_password(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static const Config & default_instance()
void MergeFrom(const Config &from)
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_hub_info_location(ArgT0 &&arg0, ArgT... args)
void CopyFrom(const Config &from)
Config(Config &&from) noexcept
PROTOBUF_NODISCARD std::string * release_node_id()
size_t ByteSizeLong() const final
Peer & operator=(const Peer &from)
int GetCachedSize() const final
Peer * New(::PROTOBUF_NAMESPACE_ID::Arena *arena=nullptr) const final
static const Peer & default_instance()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
friend void swap(Peer &a, Peer &b)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
Peer & operator=(Peer &&from) noexcept
const std::string & node_id() const
void set_bot_id(int32_t value)
void MergeFrom(const Peer &from)
void set_node_id(ArgT0 &&arg0, ArgT... args)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool has_serial_number() const
void set_allocated_node_id(std::string *node_id)
uint64_t serial_number() const
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
void UnsafeArenaSwap(Peer *other)
bool IsInitialized() const final
void set_serial_number(uint64_t value)
void CopyFrom(const Peer &from)
static constexpr int kIndexInFileMessages
PROTOBUF_CONSTEXPR Peer(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
static const ClassData _class_data_
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
void clear_serial_number()
std::string * mutable_node_id()
Peer(Peer &&from) noexcept
void set_hub_id(int32_t value)
static const Peer * internal_default_instance()
Peer(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned=false)
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
@ kSerialNumberFieldNumber
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
PeerDefaultTypeInternal _Peer_default_instance_
extern ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig, ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::xbee::protobuf::Config >, 11, false > config
ConfigDefaultTypeInternal _Config_default_instance_
static const int kConfigFieldNumber
static const uint32_t offsets[]
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fxbee_5fextensions_2eproto