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 < 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
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.
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>
33 #include <google/protobuf/extension_set.h>
34 #include <google/protobuf/unknown_field_set.h>
35 #include "goby/acomms/protobuf/driver_base.pb.h"
36 #include "goby/protobuf/option_extensions.pb.h"
37 #include "dccl/option_extensions.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>
43 #include <boost/units/systems/si.hpp>
45 #include <google/protobuf/port_def.inc>
46 #define PROTOBUF_INTERNAL_EXPORT_jaiabot_2fmessages_2fxbee_5fextensions_2eproto
47 PROTOBUF_NAMESPACE_OPEN
51 PROTOBUF_NAMESPACE_CLOSE
55 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
57 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
59 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
61 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata
field_metadata[];
63 static const ::PROTOBUF_NAMESPACE_ID::uint32
offsets[];
69 class ConfigDefaultTypeInternal;
72 class PeerDefaultTypeInternal;
76 PROTOBUF_NAMESPACE_OPEN
77 template<> ::xbee::protobuf::Config* Arena::CreateMaybeMessage<::xbee::protobuf::Config>(Arena*);
78 template<> ::xbee::protobuf::Peer* Arena::CreateMaybeMessage<::xbee::protobuf::Peer>(Arena*);
79 PROTOBUF_NAMESPACE_CLOSE
86 public ::PROTOBUF_NAMESPACE_ID::Message {
88 inline Peer() : Peer(nullptr) {};
94 *
this = ::std::move(from);
102 if (GetArena() == from.GetArena()) {
103 if (
this != &from) InternalSwap(&from);
111 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
114 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
118 return GetDescriptor();
121 return GetMetadataStatic().descriptor;
124 return GetMetadataStatic().reflection;
137 return reinterpret_cast<const Peer*
>(
140 static constexpr
int kIndexInFileMessages =
143 friend void swap(Peer& a, Peer& b) {
146 inline void Swap(Peer* other) {
147 if (other ==
this)
return;
148 if (GetArena() == other->GetArena()) {
151 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
155 if (other ==
this)
return;
156 GOOGLE_DCHECK(GetArena() == other->GetArena());
162 inline Peer*
New() const final {
163 return CreateMaybeMessage<Peer>(
nullptr);
166 Peer*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
167 return CreateMaybeMessage<Peer>(arena);
169 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
170 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
173 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
174 bool IsInitialized() const final;
176 size_t ByteSizeLong() const final;
177 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
178 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
179 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
180 int GetCachedSize() const final {
return _cached_size_.Get(); }
183 inline void SharedCtor();
184 inline void SharedDtor();
185 void SetCachedSize(
int size)
const final;
186 void InternalSwap(Peer* other);
187 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
188 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
189 return "xbee.protobuf.Peer";
192 explicit Peer(::PROTOBUF_NAMESPACE_ID::Arena* arena);
194 static void ArenaDtor(
void*
object);
195 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
200 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
212 kSerialNumberFieldNumber = 2,
213 kNodeIdFieldNumber = 1,
214 kHubIdFieldNumber = 3,
215 kBotIdFieldNumber = 4,
220 bool _internal_has_serial_number()
const;
226 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_serial_number()
const;
227 void _internal_set_serial_number(::PROTOBUF_NAMESPACE_ID::uint64 value);
233 bool _internal_has_node_id()
const;
244 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
245 " string fields are deprecated and will be removed in a"
247 std::
string* unsafe_arena_release_node_id();
248 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
249 "
string fields are deprecated and will be removed in a"
251 void unsafe_arena_set_allocated_node_id(
252 std::
string* node_id);
254 const std::
string& _internal_node_id() const;
255 void _internal_set_node_id(const std::
string& value);
256 std::
string* _internal_mutable_node_id();
260 bool has_hub_id() const;
262 bool _internal_has_hub_id() const;
265 ::PROTOBUF_NAMESPACE_ID::int32 hub_id() const;
266 void set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value);
268 ::PROTOBUF_NAMESPACE_ID::int32 _internal_hub_id() const;
269 void _internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value);
273 bool has_bot_id() const;
275 bool _internal_has_bot_id() const;
278 ::PROTOBUF_NAMESPACE_ID::int32 bot_id() const;
279 void set_bot_id(::PROTOBUF_NAMESPACE_ID::int32 value);
281 ::PROTOBUF_NAMESPACE_ID::int32 _internal_bot_id() const;
282 void _internal_set_bot_id(::PROTOBUF_NAMESPACE_ID::int32 value);
290 void set_has_node_id();
291 void set_has_hub_id();
292 void set_has_bot_id();
294 inline
bool has_id() const;
295 inline
void clear_has_id();
297 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
298 typedef
void InternalArenaConstructable_;
299 typedef
void DestructorSkippable_;
300 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
301 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
302 ::PROTOBUF_NAMESPACE_ID::uint64 serial_number_;
305 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr node_id_;
306 ::PROTOBUF_NAMESPACE_ID::int32 hub_id_;
307 ::PROTOBUF_NAMESPACE_ID::int32 bot_id_;
309 ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
311 friend struct ::TableStruct_jaiabot_2fmessages_2fxbee_5fextensions_2eproto;
316 public ::PROTOBUF_NAMESPACE_ID::Message {
324 *
this = ::std::move(from);
332 if (GetArena() == from.GetArena()) {
333 if (
this != &from) InternalSwap(&from);
341 return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
344 return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
347 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
348 return GetDescriptor();
351 return GetMetadataStatic().descriptor;
354 return GetMetadataStatic().reflection;
360 return reinterpret_cast<const Config*
>(
363 static constexpr
int kIndexInFileMessages =
366 friend void swap(Config& a, Config& b) {
369 inline void Swap(Config* other) {
370 if (other ==
this)
return;
371 if (GetArena() == other->GetArena()) {
374 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
378 if (other ==
this)
return;
379 GOOGLE_DCHECK(GetArena() == other->GetArena());
385 inline Config*
New() const final {
386 return CreateMaybeMessage<Config>(
nullptr);
389 Config*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
390 return CreateMaybeMessage<Config>(arena);
392 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
393 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
396 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
397 bool IsInitialized() const final;
399 size_t ByteSizeLong() const final;
400 const
char* _InternalParse(const
char* ptr, ::PROTOBUF_NAMESPACE_ID::
internal::ParseContext* ctx) final;
401 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
402 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
403 int GetCachedSize() const final {
return _cached_size_.Get(); }
406 inline void SharedCtor();
407 inline void SharedDtor();
408 void SetCachedSize(
int size)
const final;
409 void InternalSwap(Config* other);
410 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
411 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
412 return "xbee.protobuf.Config";
415 explicit Config(::PROTOBUF_NAMESPACE_ID::Arena* arena);
417 static void ArenaDtor(
void*
object);
418 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
423 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
435 kPeersFieldNumber = 2,
436 kXbeeInfoLocationFieldNumber = 5,
437 kXbeeEncryptionPasswordFieldNumber = 8,
438 kHubInfoLocationFieldNumber = 9,
439 kTestCommsFieldNumber = 4,
440 kUseXbeeEncryptionFieldNumber = 7,
441 kHubIdFieldNumber = 6,
442 kNetworkIdFieldNumber = 1,
447 int _internal_peers_size()
const;
451 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >*
454 const ::xbee::protobuf::Peer& _internal_peers(
int index)
const;
455 ::xbee::protobuf::Peer* _internal_add_peers();
457 const ::xbee::protobuf::Peer&
peers(
int index)
const;
459 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >&
465 bool _internal_has_xbee_info_location()
const;
476 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(
"The unsafe_arena_ accessors for"
477 " string fields are deprecated and will be removed in a"
479 std::
string* unsafe_arena_release_xbee_info_location();
480 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
481 "
string fields are deprecated and will be removed in a"
483 void unsafe_arena_set_allocated_xbee_info_location(
484 std::
string* xbee_info_location);
486 const std::
string& _internal_xbee_info_location() const;
487 void _internal_set_xbee_info_location(const std::
string& value);
488 std::
string* _internal_mutable_xbee_info_location();
492 bool has_xbee_encryption_password() const;
494 bool _internal_has_xbee_encryption_password() const;
496 void clear_xbee_encryption_password();
497 const std::
string& xbee_encryption_password() const;
498 void set_xbee_encryption_password(const std::
string& value);
499 void set_xbee_encryption_password(std::
string&& value);
500 void set_xbee_encryption_password(const
char* value);
501 void set_xbee_encryption_password(const
char* value,
size_t size);
502 std::
string* mutable_xbee_encryption_password();
503 std::
string* release_xbee_encryption_password();
504 void set_allocated_xbee_encryption_password(std::
string* xbee_encryption_password);
505 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
506 "
string fields are deprecated and will be removed in a"
508 std::
string* unsafe_arena_release_xbee_encryption_password();
509 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
510 "
string fields are deprecated and will be removed in a"
512 void unsafe_arena_set_allocated_xbee_encryption_password(
513 std::
string* xbee_encryption_password);
515 const std::
string& _internal_xbee_encryption_password() const;
516 void _internal_set_xbee_encryption_password(const std::
string& value);
517 std::
string* _internal_mutable_xbee_encryption_password();
521 bool has_hub_info_location() const;
523 bool _internal_has_hub_info_location() const;
525 void clear_hub_info_location();
526 const std::
string& hub_info_location() const;
527 void set_hub_info_location(const std::
string& value);
528 void set_hub_info_location(std::
string&& value);
529 void set_hub_info_location(const
char* value);
530 void set_hub_info_location(const
char* value,
size_t size);
531 std::
string* mutable_hub_info_location();
532 std::
string* release_hub_info_location();
533 void set_allocated_hub_info_location(std::
string* hub_info_location);
534 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
535 "
string fields are deprecated and will be removed in a"
537 std::
string* unsafe_arena_release_hub_info_location();
538 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
539 "
string fields are deprecated and will be removed in a"
541 void unsafe_arena_set_allocated_hub_info_location(
542 std::
string* hub_info_location);
544 const std::
string& _internal_hub_info_location() const;
545 void _internal_set_hub_info_location(const std::
string& value);
546 std::
string* _internal_mutable_hub_info_location();
550 bool has_test_comms() const;
552 bool _internal_has_test_comms() const;
554 void clear_test_comms();
555 bool test_comms() const;
556 void set_test_comms(
bool value);
558 bool _internal_test_comms() const;
559 void _internal_set_test_comms(
bool value);
563 bool has_use_xbee_encryption() const;
565 bool _internal_has_use_xbee_encryption() const;
567 void clear_use_xbee_encryption();
568 bool use_xbee_encryption() const;
569 void set_use_xbee_encryption(
bool value);
571 bool _internal_use_xbee_encryption() const;
572 void _internal_set_use_xbee_encryption(
bool value);
576 bool has_hub_id() const;
578 bool _internal_has_hub_id() const;
581 ::PROTOBUF_NAMESPACE_ID::int32 hub_id() const;
582 void set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value);
584 ::PROTOBUF_NAMESPACE_ID::int32 _internal_hub_id() const;
585 void _internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value);
589 bool has_network_id() const;
591 bool _internal_has_network_id() const;
593 void clear_network_id();
594 ::PROTOBUF_NAMESPACE_ID::uint64 network_id() const;
595 void set_network_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
597 ::PROTOBUF_NAMESPACE_ID::uint64 _internal_network_id() const;
598 void _internal_set_network_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
605 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
606 typedef
void InternalArenaConstructable_;
607 typedef
void DestructorSkippable_;
608 ::PROTOBUF_NAMESPACE_ID::
internal::HasBits<1> _has_bits_;
609 mutable ::PROTOBUF_NAMESPACE_ID::
internal::CachedSize _cached_size_;
610 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::
xbee::protobuf::Peer > peers_;
612 static ::PROTOBUF_NAMESPACE_ID::
internal::ExplicitlyConstructed<std::
string> _i_give_permission_to_break_this_code_default_xbee_info_location_;
614 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr xbee_info_location_;
615 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr xbee_encryption_password_;
617 static ::PROTOBUF_NAMESPACE_ID::
internal::ExplicitlyConstructed<std::
string> _i_give_permission_to_break_this_code_default_hub_info_location_;
619 ::PROTOBUF_NAMESPACE_ID::
internal::ArenaStringPtr hub_info_location_;
621 bool use_xbee_encryption_;
622 ::PROTOBUF_NAMESPACE_ID::int32 hub_id_;
623 ::PROTOBUF_NAMESPACE_ID::uint64 network_id_;
629 extern ::PROTOBUF_NAMESPACE_ID::
internal::ExtensionIdentifier< ::
goby::acomms::protobuf::DriverConfig,
630 ::PROTOBUF_NAMESPACE_ID::
internal::MessageTypeTraits< ::
xbee::protobuf::Config >, 11, false >
636 #pragma GCC diagnostic push
637 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
642 inline bool Peer::_internal_has_node_id()
const {
643 return id_case() == kNodeId;
645 inline bool Peer::has_node_id()
const {
646 return _internal_has_node_id();
648 inline void Peer::set_has_node_id() {
649 _oneof_case_[0] = kNodeId;
651 inline void Peer::clear_node_id() {
652 if (_internal_has_node_id()) {
653 id_.node_id_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
657 inline const std::string& Peer::node_id()
const {
659 return _internal_node_id();
661 inline void Peer::set_node_id(
const std::string& value) {
662 _internal_set_node_id(value);
665 inline std::string* Peer::mutable_node_id() {
667 return _internal_mutable_node_id();
669 inline const std::string& Peer::_internal_node_id()
const {
670 if (_internal_has_node_id()) {
671 return id_.node_id_.Get();
673 return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
675 inline void Peer::_internal_set_node_id(
const std::string& value) {
676 if (!_internal_has_node_id()) {
679 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
681 id_.node_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
683 inline void Peer::set_node_id(std::string&& value) {
685 if (!_internal_has_node_id()) {
688 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
691 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
694 inline void Peer::set_node_id(
const char* value) {
695 GOOGLE_DCHECK(value !=
nullptr);
696 if (!_internal_has_node_id()) {
699 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
701 id_.node_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
702 ::std::string(value), GetArena());
705 inline void Peer::set_node_id(
const char* value,
707 if (!_internal_has_node_id()) {
710 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
713 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
714 reinterpret_cast<const char*
>(value), size),
718 inline std::string* Peer::_internal_mutable_node_id() {
719 if (!_internal_has_node_id()) {
722 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
724 return id_.node_id_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
726 inline std::string* Peer::release_node_id() {
728 if (_internal_has_node_id()) {
730 return id_.node_id_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
735 inline void Peer::set_allocated_node_id(std::string* node_id) {
739 if (node_id !=
nullptr) {
741 id_.node_id_.UnsafeSetDefault(node_id);
745 inline std::string* Peer::unsafe_arena_release_node_id() {
747 GOOGLE_DCHECK(GetArena() !=
nullptr);
748 if (_internal_has_node_id()) {
750 return id_.node_id_.UnsafeArenaRelease(
751 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
756 inline void Peer::unsafe_arena_set_allocated_node_id(std::string* node_id) {
757 GOOGLE_DCHECK(GetArena() !=
nullptr);
758 if (!_internal_has_node_id()) {
759 id_.node_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
764 id_.node_id_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), node_id, GetArena());
770 inline bool Peer::_internal_has_hub_id()
const {
771 return id_case() == kHubId;
773 inline bool Peer::has_hub_id()
const {
774 return _internal_has_hub_id();
776 inline void Peer::set_has_hub_id() {
777 _oneof_case_[0] = kHubId;
779 inline void Peer::clear_hub_id() {
780 if (_internal_has_hub_id()) {
785 inline ::PROTOBUF_NAMESPACE_ID::int32 Peer::_internal_hub_id()
const {
786 if (_internal_has_hub_id()) {
791 inline void Peer::_internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
792 if (!_internal_has_hub_id()) {
798 inline ::PROTOBUF_NAMESPACE_ID::int32 Peer::hub_id()
const {
800 return _internal_hub_id();
802 inline void Peer::set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
803 _internal_set_hub_id(value);
808 inline bool Peer::_internal_has_bot_id()
const {
809 return id_case() == kBotId;
811 inline bool Peer::has_bot_id()
const {
812 return _internal_has_bot_id();
814 inline void Peer::set_has_bot_id() {
815 _oneof_case_[0] = kBotId;
817 inline void Peer::clear_bot_id() {
818 if (_internal_has_bot_id()) {
823 inline ::PROTOBUF_NAMESPACE_ID::int32 Peer::_internal_bot_id()
const {
824 if (_internal_has_bot_id()) {
829 inline void Peer::_internal_set_bot_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
830 if (!_internal_has_bot_id()) {
836 inline ::PROTOBUF_NAMESPACE_ID::int32 Peer::bot_id()
const {
838 return _internal_bot_id();
840 inline void Peer::set_bot_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
841 _internal_set_bot_id(value);
846 inline bool Peer::_internal_has_serial_number()
const {
847 bool value = (_has_bits_[0] & 0x00000001u) != 0;
850 inline bool Peer::has_serial_number()
const {
851 return _internal_has_serial_number();
853 inline void Peer::clear_serial_number() {
854 serial_number_ = PROTOBUF_ULONGLONG(0);
855 _has_bits_[0] &= ~0x00000001u;
857 inline ::PROTOBUF_NAMESPACE_ID::uint64 Peer::_internal_serial_number()
const {
858 return serial_number_;
860 inline ::PROTOBUF_NAMESPACE_ID::uint64 Peer::serial_number()
const {
862 return _internal_serial_number();
864 inline void Peer::_internal_set_serial_number(::PROTOBUF_NAMESPACE_ID::uint64 value) {
865 _has_bits_[0] |= 0x00000001u;
866 serial_number_ = value;
868 inline void Peer::set_serial_number(::PROTOBUF_NAMESPACE_ID::uint64 value) {
869 _internal_set_serial_number(value);
873 inline bool Peer::has_id()
const {
874 return id_case() != ID_NOT_SET;
876 inline void Peer::clear_has_id() {
877 _oneof_case_[0] = ID_NOT_SET;
879 inline Peer::IdCase Peer::id_case()
const {
880 return Peer::IdCase(_oneof_case_[0]);
887 inline bool Config::_internal_has_network_id()
const {
888 bool value = (_has_bits_[0] & 0x00000040u) != 0;
891 inline bool Config::has_network_id()
const {
892 return _internal_has_network_id();
894 inline void Config::clear_network_id() {
895 network_id_ = PROTOBUF_ULONGLONG(7);
896 _has_bits_[0] &= ~0x00000040u;
898 inline ::PROTOBUF_NAMESPACE_ID::uint64 Config::_internal_network_id()
const {
901 inline ::PROTOBUF_NAMESPACE_ID::uint64 Config::network_id()
const {
903 return _internal_network_id();
905 inline void Config::_internal_set_network_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
906 _has_bits_[0] |= 0x00000040u;
909 inline void Config::set_network_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
910 _internal_set_network_id(value);
915 inline int Config::_internal_peers_size()
const {
916 return peers_.size();
918 inline int Config::peers_size()
const {
919 return _internal_peers_size();
921 inline void Config::clear_peers() {
924 inline ::xbee::protobuf::Peer* Config::mutable_peers(
int index) {
926 return peers_.Mutable(index);
928 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >*
929 Config::mutable_peers() {
933 inline const ::xbee::protobuf::Peer& Config::_internal_peers(
int index)
const {
934 return peers_.Get(index);
936 inline const ::xbee::protobuf::Peer& Config::peers(
int index)
const {
938 return _internal_peers(index);
940 inline ::xbee::protobuf::Peer* Config::_internal_add_peers() {
943 inline ::xbee::protobuf::Peer* Config::add_peers() {
945 return _internal_add_peers();
947 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer >&
948 Config::peers()
const {
954 inline bool Config::_internal_has_test_comms()
const {
955 bool value = (_has_bits_[0] & 0x00000008u) != 0;
958 inline bool Config::has_test_comms()
const {
959 return _internal_has_test_comms();
961 inline void Config::clear_test_comms() {
963 _has_bits_[0] &= ~0x00000008u;
965 inline bool Config::_internal_test_comms()
const {
968 inline bool Config::test_comms()
const {
970 return _internal_test_comms();
972 inline void Config::_internal_set_test_comms(
bool value) {
973 _has_bits_[0] |= 0x00000008u;
976 inline void Config::set_test_comms(
bool value) {
977 _internal_set_test_comms(value);
982 inline bool Config::_internal_has_xbee_info_location()
const {
983 bool value = (_has_bits_[0] & 0x00000001u) != 0;
986 inline bool Config::has_xbee_info_location()
const {
987 return _internal_has_xbee_info_location();
989 inline void Config::clear_xbee_info_location() {
990 xbee_info_location_.ClearToDefault(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), GetArena());
991 _has_bits_[0] &= ~0x00000001u;
993 inline const std::string& Config::xbee_info_location()
const {
995 return _internal_xbee_info_location();
997 inline void Config::set_xbee_info_location(
const std::string& value) {
998 _internal_set_xbee_info_location(value);
1001 inline std::string* Config::mutable_xbee_info_location() {
1003 return _internal_mutable_xbee_info_location();
1005 inline const std::string& Config::_internal_xbee_info_location()
const {
1006 return xbee_info_location_.Get();
1008 inline void Config::_internal_set_xbee_info_location(
const std::string& value) {
1009 _has_bits_[0] |= 0x00000001u;
1010 xbee_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), value, GetArena());
1012 inline void Config::set_xbee_info_location(std::string&& value) {
1013 _has_bits_[0] |= 0x00000001u;
1014 xbee_info_location_.Set(
1015 &::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), ::std::move(value), GetArena());
1018 inline void Config::set_xbee_info_location(
const char* value) {
1019 GOOGLE_DCHECK(value !=
nullptr);
1020 _has_bits_[0] |= 0x00000001u;
1021 xbee_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), ::std::string(value),
1025 inline void Config::set_xbee_info_location(
const char* value,
1027 _has_bits_[0] |= 0x00000001u;
1028 xbee_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), ::std::string(
1029 reinterpret_cast<const char*
>(value), size), GetArena());
1032 inline std::string* Config::_internal_mutable_xbee_info_location() {
1033 _has_bits_[0] |= 0x00000001u;
1034 return xbee_info_location_.Mutable(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), GetArena());
1036 inline std::string* Config::release_xbee_info_location() {
1038 if (!_internal_has_xbee_info_location()) {
1041 _has_bits_[0] &= ~0x00000001u;
1042 return xbee_info_location_.ReleaseNonDefault(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), GetArena());
1044 inline void Config::set_allocated_xbee_info_location(std::string* xbee_info_location) {
1045 if (xbee_info_location !=
nullptr) {
1046 _has_bits_[0] |= 0x00000001u;
1048 _has_bits_[0] &= ~0x00000001u;
1050 xbee_info_location_.SetAllocated(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(), xbee_info_location,
1054 inline std::string* Config::unsafe_arena_release_xbee_info_location() {
1056 GOOGLE_DCHECK(GetArena() !=
nullptr);
1057 _has_bits_[0] &= ~0x00000001u;
1058 return xbee_info_location_.UnsafeArenaRelease(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(),
1061 inline void Config::unsafe_arena_set_allocated_xbee_info_location(
1062 std::string* xbee_info_location) {
1063 GOOGLE_DCHECK(GetArena() !=
nullptr);
1064 if (xbee_info_location !=
nullptr) {
1065 _has_bits_[0] |= 0x00000001u;
1067 _has_bits_[0] &= ~0x00000001u;
1069 xbee_info_location_.UnsafeArenaSetAllocated(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_xbee_info_location_.get(),
1070 xbee_info_location, GetArena());
1075 inline bool Config::_internal_has_hub_id()
const {
1076 bool value = (_has_bits_[0] & 0x00000020u) != 0;
1079 inline bool Config::has_hub_id()
const {
1080 return _internal_has_hub_id();
1082 inline void Config::clear_hub_id() {
1084 _has_bits_[0] &= ~0x00000020u;
1086 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::_internal_hub_id()
const {
1089 inline ::PROTOBUF_NAMESPACE_ID::int32 Config::hub_id()
const {
1091 return _internal_hub_id();
1093 inline void Config::_internal_set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
1094 _has_bits_[0] |= 0x00000020u;
1097 inline void Config::set_hub_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
1098 _internal_set_hub_id(value);
1103 inline bool Config::_internal_has_use_xbee_encryption()
const {
1104 bool value = (_has_bits_[0] & 0x00000010u) != 0;
1107 inline bool Config::has_use_xbee_encryption()
const {
1108 return _internal_has_use_xbee_encryption();
1110 inline void Config::clear_use_xbee_encryption() {
1111 use_xbee_encryption_ =
false;
1112 _has_bits_[0] &= ~0x00000010u;
1114 inline bool Config::_internal_use_xbee_encryption()
const {
1115 return use_xbee_encryption_;
1117 inline bool Config::use_xbee_encryption()
const {
1119 return _internal_use_xbee_encryption();
1121 inline void Config::_internal_set_use_xbee_encryption(
bool value) {
1122 _has_bits_[0] |= 0x00000010u;
1123 use_xbee_encryption_ = value;
1125 inline void Config::set_use_xbee_encryption(
bool value) {
1126 _internal_set_use_xbee_encryption(value);
1131 inline bool Config::_internal_has_xbee_encryption_password()
const {
1132 bool value = (_has_bits_[0] & 0x00000002u) != 0;
1135 inline bool Config::has_xbee_encryption_password()
const {
1136 return _internal_has_xbee_encryption_password();
1138 inline void Config::clear_xbee_encryption_password() {
1139 xbee_encryption_password_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1140 _has_bits_[0] &= ~0x00000002u;
1142 inline const std::string& Config::xbee_encryption_password()
const {
1144 return _internal_xbee_encryption_password();
1146 inline void Config::set_xbee_encryption_password(
const std::string& value) {
1147 _internal_set_xbee_encryption_password(value);
1150 inline std::string* Config::mutable_xbee_encryption_password() {
1152 return _internal_mutable_xbee_encryption_password();
1154 inline const std::string& Config::_internal_xbee_encryption_password()
const {
1155 return xbee_encryption_password_.Get();
1157 inline void Config::_internal_set_xbee_encryption_password(
const std::string& value) {
1158 _has_bits_[0] |= 0x00000002u;
1159 xbee_encryption_password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1161 inline void Config::set_xbee_encryption_password(std::string&& value) {
1162 _has_bits_[0] |= 0x00000002u;
1163 xbee_encryption_password_.Set(
1164 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1167 inline void Config::set_xbee_encryption_password(
const char* value) {
1168 GOOGLE_DCHECK(value !=
nullptr);
1169 _has_bits_[0] |= 0x00000002u;
1170 xbee_encryption_password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1174 inline void Config::set_xbee_encryption_password(
const char* value,
1176 _has_bits_[0] |= 0x00000002u;
1177 xbee_encryption_password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1178 reinterpret_cast<const char*
>(value), size), GetArena());
1181 inline std::string* Config::_internal_mutable_xbee_encryption_password() {
1182 _has_bits_[0] |= 0x00000002u;
1183 return xbee_encryption_password_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1185 inline std::string* Config::release_xbee_encryption_password() {
1187 if (!_internal_has_xbee_encryption_password()) {
1190 _has_bits_[0] &= ~0x00000002u;
1191 return xbee_encryption_password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1193 inline void Config::set_allocated_xbee_encryption_password(std::string* xbee_encryption_password) {
1194 if (xbee_encryption_password !=
nullptr) {
1195 _has_bits_[0] |= 0x00000002u;
1197 _has_bits_[0] &= ~0x00000002u;
1199 xbee_encryption_password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), xbee_encryption_password,
1203 inline std::string* Config::unsafe_arena_release_xbee_encryption_password() {
1205 GOOGLE_DCHECK(GetArena() !=
nullptr);
1206 _has_bits_[0] &= ~0x00000002u;
1207 return xbee_encryption_password_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1210 inline void Config::unsafe_arena_set_allocated_xbee_encryption_password(
1211 std::string* xbee_encryption_password) {
1212 GOOGLE_DCHECK(GetArena() !=
nullptr);
1213 if (xbee_encryption_password !=
nullptr) {
1214 _has_bits_[0] |= 0x00000002u;
1216 _has_bits_[0] &= ~0x00000002u;
1218 xbee_encryption_password_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1219 xbee_encryption_password, GetArena());
1224 inline bool Config::_internal_has_hub_info_location()
const {
1225 bool value = (_has_bits_[0] & 0x00000004u) != 0;
1228 inline bool Config::has_hub_info_location()
const {
1229 return _internal_has_hub_info_location();
1231 inline void Config::clear_hub_info_location() {
1232 hub_info_location_.ClearToDefault(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), GetArena());
1233 _has_bits_[0] &= ~0x00000004u;
1235 inline const std::string& Config::hub_info_location()
const {
1237 return _internal_hub_info_location();
1239 inline void Config::set_hub_info_location(
const std::string& value) {
1240 _internal_set_hub_info_location(value);
1243 inline std::string* Config::mutable_hub_info_location() {
1245 return _internal_mutable_hub_info_location();
1247 inline const std::string& Config::_internal_hub_info_location()
const {
1248 return hub_info_location_.Get();
1250 inline void Config::_internal_set_hub_info_location(
const std::string& value) {
1251 _has_bits_[0] |= 0x00000004u;
1252 hub_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), value, GetArena());
1254 inline void Config::set_hub_info_location(std::string&& value) {
1255 _has_bits_[0] |= 0x00000004u;
1256 hub_info_location_.Set(
1257 &::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), ::std::move(value), GetArena());
1260 inline void Config::set_hub_info_location(
const char* value) {
1261 GOOGLE_DCHECK(value !=
nullptr);
1262 _has_bits_[0] |= 0x00000004u;
1263 hub_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), ::std::string(value),
1267 inline void Config::set_hub_info_location(
const char* value,
1269 _has_bits_[0] |= 0x00000004u;
1270 hub_info_location_.Set(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), ::std::string(
1271 reinterpret_cast<const char*
>(value), size), GetArena());
1274 inline std::string* Config::_internal_mutable_hub_info_location() {
1275 _has_bits_[0] |= 0x00000004u;
1276 return hub_info_location_.Mutable(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), GetArena());
1278 inline std::string* Config::release_hub_info_location() {
1280 if (!_internal_has_hub_info_location()) {
1283 _has_bits_[0] &= ~0x00000004u;
1284 return hub_info_location_.ReleaseNonDefault(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), GetArena());
1286 inline void Config::set_allocated_hub_info_location(std::string* hub_info_location) {
1287 if (hub_info_location !=
nullptr) {
1288 _has_bits_[0] |= 0x00000004u;
1290 _has_bits_[0] &= ~0x00000004u;
1292 hub_info_location_.SetAllocated(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(), hub_info_location,
1296 inline std::string* Config::unsafe_arena_release_hub_info_location() {
1298 GOOGLE_DCHECK(GetArena() !=
nullptr);
1299 _has_bits_[0] &= ~0x00000004u;
1300 return hub_info_location_.UnsafeArenaRelease(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(),
1303 inline void Config::unsafe_arena_set_allocated_hub_info_location(
1304 std::string* hub_info_location) {
1305 GOOGLE_DCHECK(GetArena() !=
nullptr);
1306 if (hub_info_location !=
nullptr) {
1307 _has_bits_[0] |= 0x00000004u;
1309 _has_bits_[0] &= ~0x00000004u;
1311 hub_info_location_.UnsafeArenaSetAllocated(&::xbee::protobuf::Config::_i_give_permission_to_break_this_code_default_hub_info_location_.get(),
1312 hub_info_location, GetArena());
1317 #pragma GCC diagnostic pop
1329 #include <google/protobuf/port_undef.inc>
Config * New() const final
void MergeFrom(const Peer &from)
void clear_xbee_info_location()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
const std::string & xbee_info_location() const
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void CopyFrom(const Config &from)
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet * mutable_unknown_fields()
static const Config * internal_default_instance()
void CopyFrom(const Peer &from)
std::string * mutable_node_id()
std::string * release_node_id()
void MergeFrom(const Config &from)
void set_node_id(const std::string &value)
void set_xbee_info_location(const std::string &value)
std::string * mutable_xbee_info_location()
friend void swap(Peer &a, Peer &b)
Config(const Config &from)
void set_node_id(std::string &&value)
friend void swap(Config &a, Config &b)
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet & unknown_fields() const
void UnsafeArenaSwap(Config *other)
bool has_xbee_info_location() const
void clear_serial_number()
bool has_serial_number() const
Config * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
void set_xbee_info_location(const char *value)
void set_allocated_node_id(std::string *node_id)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer > & peers() const
Config & operator=(const Config &from)
void UnsafeArenaSwap(Peer *other)
static const Config & default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void set_allocated_xbee_info_location(std::string *xbee_info_location)
static const Peer & default_instance()
Peer & operator=(const Peer &from)
Config(Config &&from) noexcept
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xbee::protobuf::Peer > * mutable_peers()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
void set_node_id(const char *value, size_t size)
Peer(::PROTOBUF_NAMESPACE_ID::Arena *arena)
Peer & operator=(Peer &&from) noexcept
void set_serial_number(::PROTOBUF_NAMESPACE_ID::uint64 value)
Peer(Peer &&from) noexcept
Peer * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Config(::PROTOBUF_NAMESPACE_ID::Arena *arena)
static void InitAsDefaultInstance()
::xbee::protobuf::Peer * mutable_peers(int index)
::xbee::protobuf::Peer * add_peers()
::PROTOBUF_NAMESPACE_ID::uint64 serial_number() const
const ::xbee::protobuf::Peer & peers(int index) const
void set_node_id(const char *value)
void set_xbee_info_location(std::string &&value)
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Config & operator=(Config &&from) noexcept
static const Peer * internal_default_instance()
void set_xbee_info_location(const char *value, size_t size)
const std::string & node_id() const
std::string * release_xbee_info_location()
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 ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_jaiabot_2fmessages_2fxbee_5fextensions_2eproto