4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhub_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhub_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 "dccl/option_extensions.pb.h"
35 #include "goby/middleware/protobuf/coroner.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fhub_2eproto
50 static const ::google::protobuf::internal::ParseTableField
entries[];
51 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
52 static const ::google::protobuf::internal::ParseTable
schema[3];
55 static const ::google::protobuf::uint32
offsets[];
62 class HubStatusDefaultTypeInternal;
64 class HubStatus_BotOffloadData;
65 class HubStatus_BotOffloadDataDefaultTypeInternal;
67 class HubStatus_KnownBot;
68 class HubStatus_KnownBotDefaultTypeInternal;
98 *
this = ::std::move(from);
102 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
103 if (
this != &from) InternalSwap(&from);
111 return _internal_metadata_.unknown_fields();
114 return _internal_metadata_.mutable_unknown_fields();
117 static const ::google::protobuf::Descriptor*
descriptor();
136 return CreateMaybeMessage<HubStatus_BotOffloadData>(NULL);
140 return CreateMaybeMessage<HubStatus_BotOffloadData>(arena);
142 void CopyFrom(const ::google::protobuf::Message& from)
final;
143 void MergeFrom(const ::google::protobuf::Message& from)
final;
151 ::
google::protobuf::io::CodedInputStream* input) final;
153 ::
google::protobuf::io::CodedOutputStream* output) const final;
155 bool deterministic, ::
google::protobuf::uint8* target) const final;
161 void SetCachedSize(
int size)
const final;
164 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
167 inline void* MaybeArenaPtr()
const {
172 ::google::protobuf::Metadata
GetMetadata() const final;
201 void set_has_bot_id();
202 void clear_has_bot_id();
203 void set_has_data_offload_percentage();
204 void clear_has_data_offload_percentage();
205 void set_has_offload_succeeded();
206 void clear_has_offload_succeeded();
208 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
209 ::
google::protobuf::internal::HasBits<1> _has_bits_;
210 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
211 ::
google::protobuf::uint32 bot_id_;
212 ::
google::protobuf::int32 data_offload_percentage_;
213 bool offload_succeeded_;
232 *
this = ::std::move(from);
235 inline HubStatus_KnownBot&
operator=(HubStatus_KnownBot&& from) noexcept {
236 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
237 if (
this != &from) InternalSwap(&from);
245 return _internal_metadata_.unknown_fields();
248 return _internal_metadata_.mutable_unknown_fields();
251 static const ::google::protobuf::Descriptor*
descriptor();
270 return CreateMaybeMessage<HubStatus_KnownBot>(NULL);
274 return CreateMaybeMessage<HubStatus_KnownBot>(arena);
276 void CopyFrom(const ::google::protobuf::Message& from)
final;
277 void MergeFrom(const ::google::protobuf::Message& from)
final;
285 ::
google::protobuf::io::CodedInputStream* input) final;
287 ::
google::protobuf::io::CodedOutputStream* output) const final;
289 bool deterministic, ::
google::protobuf::uint8* target) const final;
295 void SetCachedSize(
int size)
const final;
298 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
301 inline void* MaybeArenaPtr()
const {
306 ::google::protobuf::Metadata
GetMetadata() const final;
313 bool has_last_status_time() const;
314 void clear_last_status_time();
315 static const
int kLastStatusTimeFieldNumber = 2;
316 ::
google::protobuf::uint64 last_status_time() const;
317 void set_last_status_time(::
google::protobuf::uint64 value);
322 static const
int kIdFieldNumber = 1;
323 ::
google::protobuf::uint32
id() const;
324 void set_id(::
google::protobuf::uint32 value);
330 template<typename Quantity >
331 void set_last_status_time_with_units(Quantity value_w_units)
332 { set_last_status_time(boost::units::quantity<last_status_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
334 template<
typename Quantity >
339 {
return last_status_time_with_units<boost::units::quantity< last_status_time_unit,google::protobuf::uint64 > >(); };
345 void set_has_last_status_time();
346 void clear_has_last_status_time();
349 size_t RequiredFieldsByteSizeFallback()
const;
351 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
352 ::google::protobuf::internal::HasBits<1> _has_bits_;
353 mutable ::google::protobuf::internal::CachedSize _cached_size_;
354 ::google::protobuf::uint64 last_status_time_;
355 ::google::protobuf::uint32 id_;
356 friend struct ::protobuf_jaiabot_2fmessages_2fhub_2eproto::TableStruct;
374 *
this = ::std::move(from);
377 inline HubStatus&
operator=(HubStatus&& from) noexcept {
378 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
379 if (
this != &from) InternalSwap(&from);
387 return _internal_metadata_.unknown_fields();
390 return _internal_metadata_.mutable_unknown_fields();
393 static const ::google::protobuf::Descriptor*
descriptor();
398 return reinterpret_cast<const HubStatus*
>(
412 return CreateMaybeMessage<HubStatus>(NULL);
416 return CreateMaybeMessage<HubStatus>(arena);
418 void CopyFrom(const ::google::protobuf::Message& from)
final;
419 void MergeFrom(const ::google::protobuf::Message& from)
final;
427 ::
google::protobuf::io::CodedInputStream* input) final;
429 ::
google::protobuf::io::CodedOutputStream* output) const final;
431 bool deterministic, ::
google::protobuf::uint8* target) const final;
437 void SetCachedSize(
int size)
const final;
440 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
443 inline void* MaybeArenaPtr()
const {
448 ::google::protobuf::Metadata
GetMetadata() const final;
458 int error_size() const;
460 static const
int kErrorFieldNumber = 5;
462 void set_error(
int index, ::
jaiabot::protobuf::
Error value);
464 const ::
google::protobuf::RepeatedField<
int>& error() const;
465 ::
google::protobuf::RepeatedField<
int>* mutable_error();
468 int warning_size() const;
469 void clear_warning();
470 static const
int kWarningFieldNumber = 6;
474 const ::
google::protobuf::RepeatedField<
int>& warning() const;
475 ::
google::protobuf::RepeatedField<
int>* mutable_warning();
478 int bot_ids_in_radio_file_size() const;
479 void clear_bot_ids_in_radio_file();
480 static const
int kBotIdsInRadioFileFieldNumber = 11;
481 ::
google::protobuf::uint32 bot_ids_in_radio_file(
int index) const;
482 void set_bot_ids_in_radio_file(
int index, ::
google::protobuf::uint32 value);
483 void add_bot_ids_in_radio_file(::
google::protobuf::uint32 value);
484 const ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >&
485 bot_ids_in_radio_file() const;
486 ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >*
487 mutable_bot_ids_in_radio_file();
490 int known_bot_size() const;
491 void clear_known_bot();
492 static const
int kKnownBotFieldNumber = 15;
502 bool has_location() const;
503 void clear_location();
504 static const
int kLocationFieldNumber = 10;
514 bool has_linux_hardware_status() const;
515 void clear_linux_hardware_status();
516 static const
int kLinuxHardwareStatusFieldNumber = 12;
526 bool has_bot_offload() const;
527 void clear_bot_offload();
528 static const
int kBotOffloadFieldNumber = 13;
538 bool has_hub_id() const;
540 static const
int kHubIdFieldNumber = 1;
541 ::
google::protobuf::uint32 hub_id() const;
542 void set_hub_id(::
google::protobuf::uint32 value);
545 bool has_fleet_id() const;
546 void clear_fleet_id();
547 static const
int kFleetIdFieldNumber = 2;
548 ::
google::protobuf::uint32 fleet_id() const;
549 void set_fleet_id(::
google::protobuf::uint32 value);
552 bool has_time() const;
554 static const
int kTimeFieldNumber = 3;
555 ::
google::protobuf::uint64 time() const;
556 void set_time(::
google::protobuf::uint64 value);
559 bool has_received_time() const;
560 void clear_received_time();
561 static const
int kReceivedTimeFieldNumber = 14;
562 ::
google::protobuf::uint64 received_time() const;
563 void set_received_time(::
google::protobuf::uint64 value);
566 bool has_health_state() const;
567 void clear_health_state();
568 static const
int kHealthStateFieldNumber = 4;
569 ::
goby::middleware::protobuf::HealthState health_state() const;
570 void set_health_state(::
goby::middleware::protobuf::HealthState value);
576 template<typename Quantity >
577 void set_time_with_units(Quantity value_w_units)
578 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
580 template<
typename Quantity >
582 {
return Quantity(time() *
time_unit()); };
585 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
587 typedef boost::units::time_dimension received_time_dimension;
589 typedef boost::units::make_scaled_unit<boost::units::unit<received_time_dimension,boost::units::si::system> , boost::units::scale<10, boost::units::static_rational<-6> > >::type
received_time_unit;
591 template<
typename Quantity >
593 { set_received_time(boost::units::quantity<received_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
595 template<
typename Quantity >
600 {
return received_time_with_units<boost::units::quantity< received_time_unit,google::protobuf::uint64 > >(); };
604 void set_has_hub_id();
605 void clear_has_hub_id();
606 void set_has_fleet_id();
607 void clear_has_fleet_id();
609 void clear_has_time();
610 void set_has_health_state();
611 void clear_has_health_state();
612 void set_has_location();
613 void clear_has_location();
614 void set_has_linux_hardware_status();
615 void clear_has_linux_hardware_status();
616 void set_has_bot_offload();
617 void clear_has_bot_offload();
618 void set_has_received_time();
619 void clear_has_received_time();
622 size_t RequiredFieldsByteSizeFallback()
const;
624 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
625 ::google::protobuf::internal::HasBits<1> _has_bits_;
626 mutable ::google::protobuf::internal::CachedSize _cached_size_;
627 ::google::protobuf::RepeatedField<int> error_;
628 ::google::protobuf::RepeatedField<int> warning_;
629 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > bot_ids_in_radio_file_;
630 ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus_KnownBot > known_bot_;
634 ::google::protobuf::uint32 hub_id_;
635 ::google::protobuf::uint32 fleet_id_;
636 ::google::protobuf::uint64 time_;
637 ::google::protobuf::uint64 received_time_;
639 friend struct ::protobuf_jaiabot_2fmessages_2fhub_2eproto::TableStruct;
647 #pragma GCC diagnostic push
648 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
654 return (_has_bits_[0] & 0x00000001u) != 0;
656 inline void HubStatus_BotOffloadData::set_has_bot_id() {
657 _has_bits_[0] |= 0x00000001u;
659 inline void HubStatus_BotOffloadData::clear_has_bot_id() {
660 _has_bits_[0] &= ~0x00000001u;
678 return (_has_bits_[0] & 0x00000002u) != 0;
680 inline void HubStatus_BotOffloadData::set_has_data_offload_percentage() {
681 _has_bits_[0] |= 0x00000002u;
683 inline void HubStatus_BotOffloadData::clear_has_data_offload_percentage() {
684 _has_bits_[0] &= ~0x00000002u;
687 data_offload_percentage_ = 0;
688 clear_has_data_offload_percentage();
692 return data_offload_percentage_;
695 set_has_data_offload_percentage();
696 data_offload_percentage_ = value;
702 return (_has_bits_[0] & 0x00000004u) != 0;
704 inline void HubStatus_BotOffloadData::set_has_offload_succeeded() {
705 _has_bits_[0] |= 0x00000004u;
707 inline void HubStatus_BotOffloadData::clear_has_offload_succeeded() {
708 _has_bits_[0] &= ~0x00000004u;
711 offload_succeeded_ =
false;
712 clear_has_offload_succeeded();
716 return offload_succeeded_;
719 set_has_offload_succeeded();
720 offload_succeeded_ = value;
730 return (_has_bits_[0] & 0x00000002u) != 0;
732 inline void HubStatus_KnownBot::set_has_id() {
733 _has_bits_[0] |= 0x00000002u;
735 inline void HubStatus_KnownBot::clear_has_id() {
736 _has_bits_[0] &= ~0x00000002u;
754 return (_has_bits_[0] & 0x00000001u) != 0;
756 inline void HubStatus_KnownBot::set_has_last_status_time() {
757 _has_bits_[0] |= 0x00000001u;
759 inline void HubStatus_KnownBot::clear_has_last_status_time() {
760 _has_bits_[0] &= ~0x00000001u;
763 last_status_time_ = GOOGLE_ULONGLONG(0);
764 clear_has_last_status_time();
768 return last_status_time_;
771 set_has_last_status_time();
772 last_status_time_ = value;
782 return (_has_bits_[0] & 0x00000008u) != 0;
784 inline void HubStatus::set_has_hub_id() {
785 _has_bits_[0] |= 0x00000008u;
787 inline void HubStatus::clear_has_hub_id() {
788 _has_bits_[0] &= ~0x00000008u;
806 return (_has_bits_[0] & 0x00000010u) != 0;
808 inline void HubStatus::set_has_fleet_id() {
809 _has_bits_[0] |= 0x00000010u;
811 inline void HubStatus::clear_has_fleet_id() {
812 _has_bits_[0] &= ~0x00000010u;
816 clear_has_fleet_id();
830 return (_has_bits_[0] & 0x00000020u) != 0;
832 inline void HubStatus::set_has_time() {
833 _has_bits_[0] |= 0x00000020u;
835 inline void HubStatus::clear_has_time() {
836 _has_bits_[0] &= ~0x00000020u;
839 time_ = GOOGLE_ULONGLONG(0);
854 return (_has_bits_[0] & 0x00000080u) != 0;
856 inline void HubStatus::set_has_health_state() {
857 _has_bits_[0] |= 0x00000080u;
859 inline void HubStatus::clear_has_health_state() {
860 _has_bits_[0] &= ~0x00000080u;
864 clear_has_health_state();
868 return static_cast< ::goby::middleware::protobuf::HealthState
>(health_state_);
871 assert(::goby::middleware::protobuf::HealthState_IsValid(value));
872 set_has_health_state();
873 health_state_ = value;
879 return error_.size();
890 error_.Set(index, value);
898 inline const ::google::protobuf::RepeatedField<int>&
903 inline ::google::protobuf::RepeatedField<int>*
911 return warning_.size();
922 warning_.Set(index, value);
930 inline const ::google::protobuf::RepeatedField<int>&
935 inline ::google::protobuf::RepeatedField<int>*
943 return (_has_bits_[0] & 0x00000001u) != 0;
945 inline void HubStatus::set_has_location() {
946 _has_bits_[0] |= 0x00000001u;
948 inline void HubStatus::clear_has_location() {
949 _has_bits_[0] &= ~0x00000001u;
951 inline const ::jaiabot::protobuf::GeographicCoordinate& HubStatus::_internal_location()
const {
955 const ::jaiabot::protobuf::GeographicCoordinate* p = location_;
962 clear_has_location();
969 if (location_ == NULL) {
970 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArenaNoVirtual());
977 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
978 if (message_arena == NULL) {
979 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(location_);
982 ::google::protobuf::Arena* submessage_arena = NULL;
983 if (message_arena != submessage_arena) {
984 location = ::google::protobuf::internal::GetOwnedMessage(
985 message_arena, location, submessage_arena);
989 clear_has_location();
991 location_ = location;
997 return bot_ids_in_radio_file_.size();
1000 bot_ids_in_radio_file_.Clear();
1004 return bot_ids_in_radio_file_.Get(index);
1007 bot_ids_in_radio_file_.Set(index, value);
1011 bot_ids_in_radio_file_.Add(value);
1014 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1017 return bot_ids_in_radio_file_;
1019 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1022 return &bot_ids_in_radio_file_;
1027 return (_has_bits_[0] & 0x00000002u) != 0;
1029 inline void HubStatus::set_has_linux_hardware_status() {
1030 _has_bits_[0] |= 0x00000002u;
1032 inline void HubStatus::clear_has_linux_hardware_status() {
1033 _has_bits_[0] &= ~0x00000002u;
1035 inline const ::jaiabot::protobuf::LinuxHardwareStatus& HubStatus::_internal_linux_hardware_status()
const {
1036 return *linux_hardware_status_;
1039 const ::jaiabot::protobuf::LinuxHardwareStatus* p = linux_hardware_status_;
1046 clear_has_linux_hardware_status();
1048 linux_hardware_status_ = NULL;
1052 set_has_linux_hardware_status();
1053 if (linux_hardware_status_ == NULL) {
1054 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LinuxHardwareStatus>(GetArenaNoVirtual());
1055 linux_hardware_status_ = p;
1058 return linux_hardware_status_;
1061 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1062 if (message_arena == NULL) {
1063 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(linux_hardware_status_);
1066 ::google::protobuf::Arena* submessage_arena = NULL;
1067 if (message_arena != submessage_arena) {
1071 set_has_linux_hardware_status();
1073 clear_has_linux_hardware_status();
1081 return (_has_bits_[0] & 0x00000004u) != 0;
1083 inline void HubStatus::set_has_bot_offload() {
1084 _has_bits_[0] |= 0x00000004u;
1086 inline void HubStatus::clear_has_bot_offload() {
1087 _has_bits_[0] &= ~0x00000004u;
1090 if (bot_offload_ != NULL) bot_offload_->Clear();
1091 clear_has_bot_offload();
1093 inline const ::jaiabot::protobuf::HubStatus_BotOffloadData& HubStatus::_internal_bot_offload()
const {
1094 return *bot_offload_;
1097 const ::jaiabot::protobuf::HubStatus_BotOffloadData* p = bot_offload_;
1104 clear_has_bot_offload();
1106 bot_offload_ = NULL;
1110 set_has_bot_offload();
1111 if (bot_offload_ == NULL) {
1112 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubStatus_BotOffloadData>(GetArenaNoVirtual());
1116 return bot_offload_;
1119 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1120 if (message_arena == NULL) {
1121 delete bot_offload_;
1124 ::google::protobuf::Arena* submessage_arena = NULL;
1125 if (message_arena != submessage_arena) {
1126 bot_offload = ::google::protobuf::internal::GetOwnedMessage(
1127 message_arena, bot_offload, submessage_arena);
1129 set_has_bot_offload();
1131 clear_has_bot_offload();
1133 bot_offload_ = bot_offload;
1139 return (_has_bits_[0] & 0x00000040u) != 0;
1141 inline void HubStatus::set_has_received_time() {
1142 _has_bits_[0] |= 0x00000040u;
1144 inline void HubStatus::clear_has_received_time() {
1145 _has_bits_[0] &= ~0x00000040u;
1148 received_time_ = GOOGLE_ULONGLONG(0);
1149 clear_has_received_time();
1153 return received_time_;
1156 set_has_received_time();
1157 received_time_ = value;
1163 return known_bot_.size();
1170 return known_bot_.Mutable(index);
1172 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus_KnownBot >*
1179 return known_bot_.Get(index);
1183 return known_bot_.Add();
1185 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus_KnownBot >&
1192 #pragma GCC diagnostic pop
1206 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhub_2eproto