4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_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/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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fxbee_5fextensions_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[2];
53 static const ::google::protobuf::uint32
offsets[];
60 class ConfigDefaultTypeInternal;
63 class PeerDefaultTypeInternal;
78 class Peer :
public ::google::protobuf::Message {
92 *
this = ::std::move(from);
96 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
97 if (
this != &from) InternalSwap(&from);
105 return _internal_metadata_.unknown_fields();
108 return _internal_metadata_.mutable_unknown_fields();
111 static const ::google::protobuf::Descriptor*
descriptor();
123 return reinterpret_cast<const Peer*
>(
137 return CreateMaybeMessage<Peer>(NULL);
140 Peer*
New(::google::protobuf::Arena* arena)
const final {
141 return CreateMaybeMessage<Peer>(arena);
143 void CopyFrom(const ::google::protobuf::Message& from)
final;
144 void MergeFrom(const ::google::protobuf::Message& from)
final;
152 ::
google::protobuf::io::CodedInputStream* input) final;
154 ::
google::protobuf::io::CodedOutputStream* output) const final;
156 bool deterministic, ::
google::protobuf::uint8* target) const final;
162 void SetCachedSize(
int size)
const final;
163 void InternalSwap(
Peer* other);
165 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
168 inline void* MaybeArenaPtr()
const {
173 ::google::protobuf::Metadata
GetMetadata() const final;
190 const ::std::
string&
node_id() const;
205 ::google::protobuf::int32
hub_id()
const;
206 void set_hub_id(::google::protobuf::int32 value);
212 ::google::protobuf::int32
bot_id()
const;
213 void set_bot_id(::google::protobuf::int32 value);
219 void set_has_node_id();
220 void set_has_hub_id();
221 void set_has_bot_id();
222 void set_has_serial_number();
223 void clear_has_serial_number();
225 inline bool has_id()
const;
226 inline void clear_has_id();
228 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
229 ::google::protobuf::internal::HasBits<1> _has_bits_;
230 mutable ::google::protobuf::internal::CachedSize _cached_size_;
231 ::google::protobuf::uint64 serial_number_;
234 ::google::protobuf::internal::ArenaStringPtr node_id_;
235 ::google::protobuf::int32 hub_id_;
236 ::google::protobuf::int32 bot_id_;
238 ::google::protobuf::uint32 _oneof_case_[1];
240 friend struct ::protobuf_jaiabot_2fmessages_2fxbee_5fextensions_2eproto::TableStruct;
244 class Config :
public ::google::protobuf::Message {
258 *
this = ::std::move(from);
262 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
263 if (
this != &from) InternalSwap(&from);
271 return _internal_metadata_.unknown_fields();
274 return _internal_metadata_.mutable_unknown_fields();
277 static const ::google::protobuf::Descriptor*
descriptor();
282 return reinterpret_cast<const Config*
>(
296 return CreateMaybeMessage<Config>(NULL);
299 Config*
New(::google::protobuf::Arena* arena)
const final {
300 return CreateMaybeMessage<Config>(arena);
302 void CopyFrom(const ::google::protobuf::Message& from)
final;
303 void MergeFrom(const ::google::protobuf::Message& from)
final;
311 ::
google::protobuf::io::CodedInputStream* input) final;
313 ::
google::protobuf::io::CodedOutputStream* output) const final;
315 bool deterministic, ::
google::protobuf::uint8* target) const final;
321 void SetCachedSize(
int size)
const final;
322 void InternalSwap(
Config* other);
324 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
327 inline void* MaybeArenaPtr()
const {
332 ::google::protobuf::Metadata
GetMetadata() const final;
347 const ::
google::protobuf::RepeatedPtrField< ::
xbee::protobuf::
Peer >&
413 ::google::protobuf::int32
hub_id()
const;
414 void set_hub_id(::google::protobuf::int32 value);
420 ::google::protobuf::uint64
network_id()
const;
425 void set_has_network_id();
426 void clear_has_network_id();
427 void set_has_test_comms();
428 void clear_has_test_comms();
429 void set_has_xbee_info_location();
430 void clear_has_xbee_info_location();
431 void set_has_hub_id();
432 void clear_has_hub_id();
433 void set_has_use_xbee_encryption();
434 void clear_has_use_xbee_encryption();
435 void set_has_xbee_encryption_password();
436 void clear_has_xbee_encryption_password();
437 void set_has_hub_info_location();
438 void clear_has_hub_info_location();
440 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
441 ::google::protobuf::internal::HasBits<1> _has_bits_;
442 mutable ::google::protobuf::internal::CachedSize _cached_size_;
443 ::google::protobuf::RepeatedPtrField< ::xbee::protobuf::Peer > peers_;
447 ::google::protobuf::internal::ArenaStringPtr xbee_info_location_;
448 ::google::protobuf::internal::ArenaStringPtr xbee_encryption_password_;
452 ::google::protobuf::internal::ArenaStringPtr hub_info_location_;
454 bool use_xbee_encryption_;
455 ::google::protobuf::int32 hub_id_;
456 ::google::protobuf::uint64 network_id_;
457 friend struct ::protobuf_jaiabot_2fmessages_2fxbee_5fextensions_2eproto::TableStruct;
462 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
463 ::google::protobuf::internal::MessageTypeTraits< ::xbee::protobuf::Config >, 11,
false >
469 #pragma GCC diagnostic push
470 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
478 inline void Peer::set_has_node_id() {
483 id_.node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
490 return id_.node_id_.GetNoArena();
492 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
499 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
501 id_.node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
510 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
512 id_.node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
517 GOOGLE_DCHECK(value != NULL);
521 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
523 id_.node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
524 ::std::string(value));
531 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
533 id_.node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
534 reinterpret_cast<const char*
>(value), size));
541 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
544 return id_.node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
550 return id_.node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
557 id_.node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
562 id_.node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
node_id);
571 inline void Peer::set_has_hub_id() {
600 inline void Peer::set_has_bot_id() {
627 return (_has_bits_[0] & 0x00000001u) != 0;
629 inline void Peer::set_has_serial_number() {
630 _has_bits_[0] |= 0x00000001u;
632 inline void Peer::clear_has_serial_number() {
633 _has_bits_[0] &= ~0x00000001u;
636 serial_number_ = GOOGLE_ULONGLONG(0);
637 clear_has_serial_number();
641 return serial_number_;
644 set_has_serial_number();
645 serial_number_ = value;
649 inline bool Peer::has_id()
const {
652 inline void Peer::clear_has_id() {
664 return (_has_bits_[0] & 0x00000040u) != 0;
666 inline void Config::set_has_network_id() {
667 _has_bits_[0] |= 0x00000040u;
669 inline void Config::clear_has_network_id() {
670 _has_bits_[0] &= ~0x00000040u;
673 network_id_ = GOOGLE_ULONGLONG(7);
674 clear_has_network_id();
681 set_has_network_id();
688 return peers_.size();
695 return peers_.Mutable(index);
697 inline ::google::protobuf::RepeatedPtrField< ::xbee::protobuf::Peer >*
704 return peers_.Get(index);
710 inline const ::google::protobuf::RepeatedPtrField< ::xbee::protobuf::Peer >&
718 return (_has_bits_[0] & 0x00000008u) != 0;
720 inline void Config::set_has_test_comms() {
721 _has_bits_[0] |= 0x00000008u;
723 inline void Config::clear_has_test_comms() {
724 _has_bits_[0] &= ~0x00000008u;
728 clear_has_test_comms();
735 set_has_test_comms();
742 return (_has_bits_[0] & 0x00000001u) != 0;
744 inline void Config::set_has_xbee_info_location() {
745 _has_bits_[0] |= 0x00000001u;
747 inline void Config::clear_has_xbee_info_location() {
748 _has_bits_[0] &= ~0x00000001u;
752 clear_has_xbee_info_location();
756 return xbee_info_location_.GetNoArena();
759 set_has_xbee_info_location();
765 set_has_xbee_info_location();
766 xbee_info_location_.SetNoArena(
772 GOOGLE_DCHECK(value != NULL);
773 set_has_xbee_info_location();
778 set_has_xbee_info_location();
780 ::std::string(
reinterpret_cast<const char*
>(value), size));
784 set_has_xbee_info_location();
793 clear_has_xbee_info_location();
798 set_has_xbee_info_location();
800 clear_has_xbee_info_location();
808 return (_has_bits_[0] & 0x00000020u) != 0;
810 inline void Config::set_has_hub_id() {
811 _has_bits_[0] |= 0x00000020u;
813 inline void Config::clear_has_hub_id() {
814 _has_bits_[0] &= ~0x00000020u;
832 return (_has_bits_[0] & 0x00000010u) != 0;
834 inline void Config::set_has_use_xbee_encryption() {
835 _has_bits_[0] |= 0x00000010u;
837 inline void Config::clear_has_use_xbee_encryption() {
838 _has_bits_[0] &= ~0x00000010u;
841 use_xbee_encryption_ =
false;
842 clear_has_use_xbee_encryption();
846 return use_xbee_encryption_;
849 set_has_use_xbee_encryption();
850 use_xbee_encryption_ = value;
856 return (_has_bits_[0] & 0x00000002u) != 0;
858 inline void Config::set_has_xbee_encryption_password() {
859 _has_bits_[0] |= 0x00000002u;
861 inline void Config::clear_has_xbee_encryption_password() {
862 _has_bits_[0] &= ~0x00000002u;
865 xbee_encryption_password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
866 clear_has_xbee_encryption_password();
870 return xbee_encryption_password_.GetNoArena();
873 set_has_xbee_encryption_password();
874 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
879 set_has_xbee_encryption_password();
880 xbee_encryption_password_.SetNoArena(
881 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
886 GOOGLE_DCHECK(value != NULL);
887 set_has_xbee_encryption_password();
888 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
892 set_has_xbee_encryption_password();
893 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
894 ::std::string(
reinterpret_cast<const char*
>(value), size));
898 set_has_xbee_encryption_password();
900 return xbee_encryption_password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
907 clear_has_xbee_encryption_password();
908 return xbee_encryption_password_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
912 set_has_xbee_encryption_password();
914 clear_has_xbee_encryption_password();
916 xbee_encryption_password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
xbee_encryption_password);
922 return (_has_bits_[0] & 0x00000004u) != 0;
924 inline void Config::set_has_hub_info_location() {
925 _has_bits_[0] |= 0x00000004u;
927 inline void Config::clear_has_hub_info_location() {
928 _has_bits_[0] &= ~0x00000004u;
932 clear_has_hub_info_location();
936 return hub_info_location_.GetNoArena();
939 set_has_hub_info_location();
945 set_has_hub_info_location();
946 hub_info_location_.SetNoArena(
952 GOOGLE_DCHECK(value != NULL);
953 set_has_hub_info_location();
958 set_has_hub_info_location();
960 ::std::string(
reinterpret_cast<const char*
>(value), size));
964 set_has_hub_info_location();
973 clear_has_hub_info_location();
978 set_has_hub_info_location();
980 clear_has_hub_info_location();
987 #pragma GCC diagnostic pop
999 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_2eproto