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[1];
53 static const ::google::protobuf::uint32
offsets[];
60 class ConfigDefaultTypeInternal;
74 class Config :
public ::google::protobuf::Message {
88 *
this = ::std::move(from);
92 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
93 if (
this != &from) InternalSwap(&from);
101 return _internal_metadata_.unknown_fields();
104 return _internal_metadata_.mutable_unknown_fields();
107 static const ::google::protobuf::Descriptor*
descriptor();
112 return reinterpret_cast<const Config*
>(
126 return CreateMaybeMessage<Config>(NULL);
129 Config*
New(::google::protobuf::Arena* arena)
const final {
130 return CreateMaybeMessage<Config>(arena);
132 void CopyFrom(const ::google::protobuf::Message& from)
final;
133 void MergeFrom(const ::google::protobuf::Message& from)
final;
141 ::
google::protobuf::io::CodedInputStream* input) final;
143 ::
google::protobuf::io::CodedOutputStream* output) const final;
145 bool deterministic, ::
google::protobuf::uint8* target) const final;
151 void SetCachedSize(
int size)
const final;
152 void InternalSwap(
Config* other);
154 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
157 inline void* MaybeArenaPtr()
const {
162 ::google::protobuf::Metadata
GetMetadata() const final;
291 ::google::protobuf::int32
hub_id()
const;
292 void set_hub_id(::google::protobuf::int32 value);
298 ::google::protobuf::int32
fleet_id()
const;
312 ::google::protobuf::uint64
network_id()
const;
317 void set_has_network_id();
318 void clear_has_network_id();
319 void set_has_test_comms();
320 void clear_has_test_comms();
321 void set_has_xbee_info_location();
322 void clear_has_xbee_info_location();
323 void set_has_hub_id();
324 void clear_has_hub_id();
325 void set_has_use_xbee_encryption();
326 void clear_has_use_xbee_encryption();
327 void set_has_xbee_encryption_password();
328 void clear_has_xbee_encryption_password();
329 void set_has_hub_info_location();
330 void clear_has_hub_info_location();
331 void set_has_xbee_mesh_unicast_retries();
332 void clear_has_xbee_mesh_unicast_retries();
333 void set_has_xbee_unicast_mac_retries();
334 void clear_has_xbee_unicast_mac_retries();
335 void set_has_xbee_network_delay_slots();
336 void clear_has_xbee_network_delay_slots();
337 void set_has_xbee_broadcast_multi_transmits();
338 void clear_has_xbee_broadcast_multi_transmits();
339 void set_has_fleet_id();
340 void clear_has_fleet_id();
341 void set_has_subnet_mask();
342 void clear_has_subnet_mask();
345 size_t RequiredFieldsByteSizeFallback()
const;
347 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
348 ::google::protobuf::internal::HasBits<1> _has_bits_;
349 mutable ::google::protobuf::internal::CachedSize _cached_size_;
353 ::google::protobuf::internal::ArenaStringPtr xbee_info_location_;
354 ::google::protobuf::internal::ArenaStringPtr xbee_encryption_password_;
358 ::google::protobuf::internal::ArenaStringPtr hub_info_location_;
362 ::google::protobuf::internal::ArenaStringPtr xbee_mesh_unicast_retries_;
366 ::google::protobuf::internal::ArenaStringPtr xbee_unicast_mac_retries_;
370 ::google::protobuf::internal::ArenaStringPtr xbee_network_delay_slots_;
374 ::google::protobuf::internal::ArenaStringPtr xbee_broadcast_multi_transmits_;
376 bool use_xbee_encryption_;
377 ::google::protobuf::int32 hub_id_;
378 ::google::protobuf::int32 fleet_id_;
379 ::google::protobuf::uint32 subnet_mask_;
380 ::google::protobuf::uint64 network_id_;
381 friend struct ::protobuf_jaiabot_2fmessages_2fxbee_5fextensions_2eproto::TableStruct;
386 extern ::google::protobuf::internal::ExtensionIdentifier< ::goby::acomms::protobuf::DriverConfig,
387 ::google::protobuf::internal::MessageTypeTraits< ::xbee::protobuf::Config >, 11,
false >
393 #pragma GCC diagnostic push
394 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
400 return (_has_bits_[0] & 0x00001000u) != 0;
402 inline void Config::set_has_network_id() {
403 _has_bits_[0] |= 0x00001000u;
405 inline void Config::clear_has_network_id() {
406 _has_bits_[0] &= ~0x00001000u;
409 network_id_ = GOOGLE_ULONGLONG(7);
410 clear_has_network_id();
417 set_has_network_id();
424 return (_has_bits_[0] & 0x00000080u) != 0;
426 inline void Config::set_has_test_comms() {
427 _has_bits_[0] |= 0x00000080u;
429 inline void Config::clear_has_test_comms() {
430 _has_bits_[0] &= ~0x00000080u;
434 clear_has_test_comms();
441 set_has_test_comms();
448 return (_has_bits_[0] & 0x00000001u) != 0;
450 inline void Config::set_has_xbee_info_location() {
451 _has_bits_[0] |= 0x00000001u;
453 inline void Config::clear_has_xbee_info_location() {
454 _has_bits_[0] &= ~0x00000001u;
458 clear_has_xbee_info_location();
462 return xbee_info_location_.GetNoArena();
465 set_has_xbee_info_location();
471 set_has_xbee_info_location();
472 xbee_info_location_.SetNoArena(
478 GOOGLE_DCHECK(value != NULL);
479 set_has_xbee_info_location();
484 set_has_xbee_info_location();
486 ::std::string(
reinterpret_cast<const char*
>(value), size));
490 set_has_xbee_info_location();
499 clear_has_xbee_info_location();
504 set_has_xbee_info_location();
506 clear_has_xbee_info_location();
514 return (_has_bits_[0] & 0x00000200u) != 0;
516 inline void Config::set_has_hub_id() {
517 _has_bits_[0] |= 0x00000200u;
519 inline void Config::clear_has_hub_id() {
520 _has_bits_[0] &= ~0x00000200u;
538 return (_has_bits_[0] & 0x00000100u) != 0;
540 inline void Config::set_has_use_xbee_encryption() {
541 _has_bits_[0] |= 0x00000100u;
543 inline void Config::clear_has_use_xbee_encryption() {
544 _has_bits_[0] &= ~0x00000100u;
547 use_xbee_encryption_ =
false;
548 clear_has_use_xbee_encryption();
552 return use_xbee_encryption_;
555 set_has_use_xbee_encryption();
556 use_xbee_encryption_ = value;
562 return (_has_bits_[0] & 0x00000002u) != 0;
564 inline void Config::set_has_xbee_encryption_password() {
565 _has_bits_[0] |= 0x00000002u;
567 inline void Config::clear_has_xbee_encryption_password() {
568 _has_bits_[0] &= ~0x00000002u;
571 xbee_encryption_password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
572 clear_has_xbee_encryption_password();
576 return xbee_encryption_password_.GetNoArena();
579 set_has_xbee_encryption_password();
580 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
585 set_has_xbee_encryption_password();
586 xbee_encryption_password_.SetNoArena(
587 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
592 GOOGLE_DCHECK(value != NULL);
593 set_has_xbee_encryption_password();
594 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
598 set_has_xbee_encryption_password();
599 xbee_encryption_password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
600 ::std::string(
reinterpret_cast<const char*
>(value), size));
604 set_has_xbee_encryption_password();
606 return xbee_encryption_password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
613 clear_has_xbee_encryption_password();
614 return xbee_encryption_password_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
618 set_has_xbee_encryption_password();
620 clear_has_xbee_encryption_password();
622 xbee_encryption_password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
xbee_encryption_password);
628 return (_has_bits_[0] & 0x00000004u) != 0;
630 inline void Config::set_has_hub_info_location() {
631 _has_bits_[0] |= 0x00000004u;
633 inline void Config::clear_has_hub_info_location() {
634 _has_bits_[0] &= ~0x00000004u;
638 clear_has_hub_info_location();
642 return hub_info_location_.GetNoArena();
645 set_has_hub_info_location();
651 set_has_hub_info_location();
652 hub_info_location_.SetNoArena(
658 GOOGLE_DCHECK(value != NULL);
659 set_has_hub_info_location();
664 set_has_hub_info_location();
666 ::std::string(
reinterpret_cast<const char*
>(value), size));
670 set_has_hub_info_location();
679 clear_has_hub_info_location();
684 set_has_hub_info_location();
686 clear_has_hub_info_location();
694 return (_has_bits_[0] & 0x00000008u) != 0;
696 inline void Config::set_has_xbee_mesh_unicast_retries() {
697 _has_bits_[0] |= 0x00000008u;
699 inline void Config::clear_has_xbee_mesh_unicast_retries() {
700 _has_bits_[0] &= ~0x00000008u;
704 clear_has_xbee_mesh_unicast_retries();
708 return xbee_mesh_unicast_retries_.GetNoArena();
711 set_has_xbee_mesh_unicast_retries();
717 set_has_xbee_mesh_unicast_retries();
718 xbee_mesh_unicast_retries_.SetNoArena(
724 GOOGLE_DCHECK(value != NULL);
725 set_has_xbee_mesh_unicast_retries();
730 set_has_xbee_mesh_unicast_retries();
732 ::std::string(
reinterpret_cast<const char*
>(value), size));
736 set_has_xbee_mesh_unicast_retries();
745 clear_has_xbee_mesh_unicast_retries();
750 set_has_xbee_mesh_unicast_retries();
752 clear_has_xbee_mesh_unicast_retries();
760 return (_has_bits_[0] & 0x00000010u) != 0;
762 inline void Config::set_has_xbee_unicast_mac_retries() {
763 _has_bits_[0] |= 0x00000010u;
765 inline void Config::clear_has_xbee_unicast_mac_retries() {
766 _has_bits_[0] &= ~0x00000010u;
770 clear_has_xbee_unicast_mac_retries();
774 return xbee_unicast_mac_retries_.GetNoArena();
777 set_has_xbee_unicast_mac_retries();
783 set_has_xbee_unicast_mac_retries();
784 xbee_unicast_mac_retries_.SetNoArena(
790 GOOGLE_DCHECK(value != NULL);
791 set_has_xbee_unicast_mac_retries();
796 set_has_xbee_unicast_mac_retries();
798 ::std::string(
reinterpret_cast<const char*
>(value), size));
802 set_has_xbee_unicast_mac_retries();
811 clear_has_xbee_unicast_mac_retries();
816 set_has_xbee_unicast_mac_retries();
818 clear_has_xbee_unicast_mac_retries();
826 return (_has_bits_[0] & 0x00000020u) != 0;
828 inline void Config::set_has_xbee_network_delay_slots() {
829 _has_bits_[0] |= 0x00000020u;
831 inline void Config::clear_has_xbee_network_delay_slots() {
832 _has_bits_[0] &= ~0x00000020u;
836 clear_has_xbee_network_delay_slots();
840 return xbee_network_delay_slots_.GetNoArena();
843 set_has_xbee_network_delay_slots();
849 set_has_xbee_network_delay_slots();
850 xbee_network_delay_slots_.SetNoArena(
856 GOOGLE_DCHECK(value != NULL);
857 set_has_xbee_network_delay_slots();
862 set_has_xbee_network_delay_slots();
864 ::std::string(
reinterpret_cast<const char*
>(value), size));
868 set_has_xbee_network_delay_slots();
877 clear_has_xbee_network_delay_slots();
882 set_has_xbee_network_delay_slots();
884 clear_has_xbee_network_delay_slots();
892 return (_has_bits_[0] & 0x00000040u) != 0;
894 inline void Config::set_has_xbee_broadcast_multi_transmits() {
895 _has_bits_[0] |= 0x00000040u;
897 inline void Config::clear_has_xbee_broadcast_multi_transmits() {
898 _has_bits_[0] &= ~0x00000040u;
902 clear_has_xbee_broadcast_multi_transmits();
906 return xbee_broadcast_multi_transmits_.GetNoArena();
909 set_has_xbee_broadcast_multi_transmits();
915 set_has_xbee_broadcast_multi_transmits();
916 xbee_broadcast_multi_transmits_.SetNoArena(
922 GOOGLE_DCHECK(value != NULL);
923 set_has_xbee_broadcast_multi_transmits();
928 set_has_xbee_broadcast_multi_transmits();
930 ::std::string(
reinterpret_cast<const char*
>(value), size));
934 set_has_xbee_broadcast_multi_transmits();
943 clear_has_xbee_broadcast_multi_transmits();
948 set_has_xbee_broadcast_multi_transmits();
950 clear_has_xbee_broadcast_multi_transmits();
958 return (_has_bits_[0] & 0x00000400u) != 0;
960 inline void Config::set_has_fleet_id() {
961 _has_bits_[0] |= 0x00000400u;
963 inline void Config::clear_has_fleet_id() {
964 _has_bits_[0] &= ~0x00000400u;
968 clear_has_fleet_id();
982 return (_has_bits_[0] & 0x00000800u) != 0;
984 inline void Config::set_has_subnet_mask() {
985 _has_bits_[0] |= 0x00000800u;
987 inline void Config::clear_has_subnet_mask() {
988 _has_bits_[0] &= ~0x00000800u;
992 clear_has_subnet_mask();
999 set_has_subnet_mask();
1000 subnet_mask_ = value;
1005 #pragma GCC diagnostic pop
1015 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fxbee_5fextensions_2eproto