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[2];
55 static const ::google::protobuf::uint32
offsets[];
62 class HubStatusDefaultTypeInternal;
64 class HubStatus_BotOffloadData;
65 class HubStatus_BotOffloadDataDefaultTypeInternal;
94 *
this = ::std::move(from);
98 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
99 if (
this != &from) InternalSwap(&from);
107 return _internal_metadata_.unknown_fields();
110 return _internal_metadata_.mutable_unknown_fields();
113 static const ::google::protobuf::Descriptor*
descriptor();
132 return CreateMaybeMessage<HubStatus_BotOffloadData>(NULL);
136 return CreateMaybeMessage<HubStatus_BotOffloadData>(arena);
138 void CopyFrom(const ::google::protobuf::Message& from)
final;
139 void MergeFrom(const ::google::protobuf::Message& from)
final;
147 ::
google::protobuf::io::CodedInputStream* input) final;
149 ::
google::protobuf::io::CodedOutputStream* output) const final;
151 bool deterministic, ::
google::protobuf::uint8* target) const final;
157 void SetCachedSize(
int size)
const final;
160 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
163 inline void* MaybeArenaPtr()
const {
168 ::google::protobuf::Metadata
GetMetadata() const final;
197 void set_has_bot_id();
198 void clear_has_bot_id();
199 void set_has_data_offload_percentage();
200 void clear_has_data_offload_percentage();
201 void set_has_offload_succeeded();
202 void clear_has_offload_succeeded();
204 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
205 ::
google::protobuf::internal::HasBits<1> _has_bits_;
206 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
207 ::
google::protobuf::uint32 bot_id_;
208 ::
google::protobuf::int32 data_offload_percentage_;
209 bool offload_succeeded_;
228 *
this = ::std::move(from);
231 inline HubStatus&
operator=(HubStatus&& from) noexcept {
232 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
233 if (
this != &from) InternalSwap(&from);
241 return _internal_metadata_.unknown_fields();
244 return _internal_metadata_.mutable_unknown_fields();
247 static const ::google::protobuf::Descriptor*
descriptor();
252 return reinterpret_cast<const HubStatus*
>(
266 return CreateMaybeMessage<HubStatus>(NULL);
270 return CreateMaybeMessage<HubStatus>(arena);
272 void CopyFrom(const ::google::protobuf::Message& from)
final;
273 void MergeFrom(const ::google::protobuf::Message& from)
final;
281 ::
google::protobuf::io::CodedInputStream* input) final;
283 ::
google::protobuf::io::CodedOutputStream* output) const final;
285 bool deterministic, ::
google::protobuf::uint8* target) const final;
291 void SetCachedSize(
int size)
const final;
294 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
297 inline void* MaybeArenaPtr()
const {
302 ::google::protobuf::Metadata
GetMetadata() const final;
311 int error_size() const;
313 static const
int kErrorFieldNumber = 5;
315 void set_error(
int index, ::
jaiabot::protobuf::
Error value);
317 const ::
google::protobuf::RepeatedField<
int>& error() const;
318 ::
google::protobuf::RepeatedField<
int>* mutable_error();
321 int warning_size() const;
322 void clear_warning();
323 static const
int kWarningFieldNumber = 6;
327 const ::
google::protobuf::RepeatedField<
int>& warning() const;
328 ::
google::protobuf::RepeatedField<
int>* mutable_warning();
331 int bot_ids_in_radio_file_size() const;
332 void clear_bot_ids_in_radio_file();
333 static const
int kBotIdsInRadioFileFieldNumber = 11;
334 ::
google::protobuf::uint32 bot_ids_in_radio_file(
int index) const;
335 void set_bot_ids_in_radio_file(
int index, ::
google::protobuf::uint32 value);
336 void add_bot_ids_in_radio_file(::
google::protobuf::uint32 value);
337 const ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >&
338 bot_ids_in_radio_file() const;
339 ::
google::protobuf::RepeatedField< ::
google::protobuf::uint32 >*
340 mutable_bot_ids_in_radio_file();
343 bool has_location() const;
344 void clear_location();
345 static const
int kLocationFieldNumber = 10;
355 bool has_linux_hardware_status() const;
356 void clear_linux_hardware_status();
357 static const
int kLinuxHardwareStatusFieldNumber = 12;
367 bool has_bot_offload() const;
368 void clear_bot_offload();
369 static const
int kBotOffloadFieldNumber = 13;
379 bool has_hub_id() const;
381 static const
int kHubIdFieldNumber = 1;
382 ::
google::protobuf::uint32 hub_id() const;
383 void set_hub_id(::
google::protobuf::uint32 value);
386 bool has_fleet_id() const;
387 void clear_fleet_id();
388 static const
int kFleetIdFieldNumber = 2;
389 ::
google::protobuf::uint32 fleet_id() const;
390 void set_fleet_id(::
google::protobuf::uint32 value);
393 bool has_time() const;
395 static const
int kTimeFieldNumber = 3;
396 ::
google::protobuf::uint64 time() const;
397 void set_time(::
google::protobuf::uint64 value);
400 bool has_received_time() const;
401 void clear_received_time();
402 static const
int kReceivedTimeFieldNumber = 14;
403 ::
google::protobuf::uint64 received_time() const;
404 void set_received_time(::
google::protobuf::uint64 value);
407 bool has_health_state() const;
408 void clear_health_state();
409 static const
int kHealthStateFieldNumber = 4;
410 ::
goby::middleware::protobuf::HealthState health_state() const;
411 void set_health_state(::
goby::middleware::protobuf::HealthState value);
417 template<typename Quantity >
418 void set_time_with_units(Quantity value_w_units)
419 { set_time(boost::units::quantity<time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
421 template<
typename Quantity >
423 {
return Quantity(time() *
time_unit()); };
426 {
return time_with_units<boost::units::quantity< time_unit,google::protobuf::uint64 > >(); };
428 typedef boost::units::time_dimension received_time_dimension;
430 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;
432 template<
typename Quantity >
434 { set_received_time(boost::units::quantity<received_time_unit,google::protobuf::uint64 >(value_w_units).value() ); };
436 template<
typename Quantity >
441 {
return received_time_with_units<boost::units::quantity< received_time_unit,google::protobuf::uint64 > >(); };
445 void set_has_hub_id();
446 void clear_has_hub_id();
447 void set_has_fleet_id();
448 void clear_has_fleet_id();
450 void clear_has_time();
451 void set_has_health_state();
452 void clear_has_health_state();
453 void set_has_location();
454 void clear_has_location();
455 void set_has_linux_hardware_status();
456 void clear_has_linux_hardware_status();
457 void set_has_bot_offload();
458 void clear_has_bot_offload();
459 void set_has_received_time();
460 void clear_has_received_time();
463 size_t RequiredFieldsByteSizeFallback()
const;
465 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
466 ::google::protobuf::internal::HasBits<1> _has_bits_;
467 mutable ::google::protobuf::internal::CachedSize _cached_size_;
468 ::google::protobuf::RepeatedField<int> error_;
469 ::google::protobuf::RepeatedField<int> warning_;
470 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > bot_ids_in_radio_file_;
474 ::google::protobuf::uint32 hub_id_;
475 ::google::protobuf::uint32 fleet_id_;
476 ::google::protobuf::uint64 time_;
477 ::google::protobuf::uint64 received_time_;
479 friend struct ::protobuf_jaiabot_2fmessages_2fhub_2eproto::TableStruct;
487 #pragma GCC diagnostic push
488 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
494 return (_has_bits_[0] & 0x00000001u) != 0;
496 inline void HubStatus_BotOffloadData::set_has_bot_id() {
497 _has_bits_[0] |= 0x00000001u;
499 inline void HubStatus_BotOffloadData::clear_has_bot_id() {
500 _has_bits_[0] &= ~0x00000001u;
518 return (_has_bits_[0] & 0x00000002u) != 0;
520 inline void HubStatus_BotOffloadData::set_has_data_offload_percentage() {
521 _has_bits_[0] |= 0x00000002u;
523 inline void HubStatus_BotOffloadData::clear_has_data_offload_percentage() {
524 _has_bits_[0] &= ~0x00000002u;
527 data_offload_percentage_ = 0;
528 clear_has_data_offload_percentage();
532 return data_offload_percentage_;
535 set_has_data_offload_percentage();
536 data_offload_percentage_ = value;
542 return (_has_bits_[0] & 0x00000004u) != 0;
544 inline void HubStatus_BotOffloadData::set_has_offload_succeeded() {
545 _has_bits_[0] |= 0x00000004u;
547 inline void HubStatus_BotOffloadData::clear_has_offload_succeeded() {
548 _has_bits_[0] &= ~0x00000004u;
551 offload_succeeded_ =
false;
552 clear_has_offload_succeeded();
556 return offload_succeeded_;
559 set_has_offload_succeeded();
560 offload_succeeded_ = value;
570 return (_has_bits_[0] & 0x00000008u) != 0;
572 inline void HubStatus::set_has_hub_id() {
573 _has_bits_[0] |= 0x00000008u;
575 inline void HubStatus::clear_has_hub_id() {
576 _has_bits_[0] &= ~0x00000008u;
594 return (_has_bits_[0] & 0x00000010u) != 0;
596 inline void HubStatus::set_has_fleet_id() {
597 _has_bits_[0] |= 0x00000010u;
599 inline void HubStatus::clear_has_fleet_id() {
600 _has_bits_[0] &= ~0x00000010u;
604 clear_has_fleet_id();
618 return (_has_bits_[0] & 0x00000020u) != 0;
620 inline void HubStatus::set_has_time() {
621 _has_bits_[0] |= 0x00000020u;
623 inline void HubStatus::clear_has_time() {
624 _has_bits_[0] &= ~0x00000020u;
627 time_ = GOOGLE_ULONGLONG(0);
642 return (_has_bits_[0] & 0x00000080u) != 0;
644 inline void HubStatus::set_has_health_state() {
645 _has_bits_[0] |= 0x00000080u;
647 inline void HubStatus::clear_has_health_state() {
648 _has_bits_[0] &= ~0x00000080u;
652 clear_has_health_state();
656 return static_cast< ::goby::middleware::protobuf::HealthState
>(health_state_);
659 assert(::goby::middleware::protobuf::HealthState_IsValid(value));
660 set_has_health_state();
661 health_state_ = value;
667 return error_.size();
678 error_.Set(index, value);
686 inline const ::google::protobuf::RepeatedField<int>&
691 inline ::google::protobuf::RepeatedField<int>*
699 return warning_.size();
710 warning_.Set(index, value);
718 inline const ::google::protobuf::RepeatedField<int>&
723 inline ::google::protobuf::RepeatedField<int>*
731 return (_has_bits_[0] & 0x00000001u) != 0;
733 inline void HubStatus::set_has_location() {
734 _has_bits_[0] |= 0x00000001u;
736 inline void HubStatus::clear_has_location() {
737 _has_bits_[0] &= ~0x00000001u;
739 inline const ::jaiabot::protobuf::GeographicCoordinate& HubStatus::_internal_location()
const {
743 const ::jaiabot::protobuf::GeographicCoordinate* p = location_;
750 clear_has_location();
757 if (location_ == NULL) {
758 auto* p = CreateMaybeMessage<::jaiabot::protobuf::GeographicCoordinate>(GetArenaNoVirtual());
765 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
766 if (message_arena == NULL) {
767 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(location_);
770 ::google::protobuf::Arena* submessage_arena = NULL;
771 if (message_arena != submessage_arena) {
772 location = ::google::protobuf::internal::GetOwnedMessage(
773 message_arena, location, submessage_arena);
777 clear_has_location();
779 location_ = location;
785 return bot_ids_in_radio_file_.size();
788 bot_ids_in_radio_file_.Clear();
792 return bot_ids_in_radio_file_.Get(index);
795 bot_ids_in_radio_file_.Set(index, value);
799 bot_ids_in_radio_file_.Add(value);
802 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
805 return bot_ids_in_radio_file_;
807 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
810 return &bot_ids_in_radio_file_;
815 return (_has_bits_[0] & 0x00000002u) != 0;
817 inline void HubStatus::set_has_linux_hardware_status() {
818 _has_bits_[0] |= 0x00000002u;
820 inline void HubStatus::clear_has_linux_hardware_status() {
821 _has_bits_[0] &= ~0x00000002u;
823 inline const ::jaiabot::protobuf::LinuxHardwareStatus& HubStatus::_internal_linux_hardware_status()
const {
824 return *linux_hardware_status_;
827 const ::jaiabot::protobuf::LinuxHardwareStatus* p = linux_hardware_status_;
834 clear_has_linux_hardware_status();
836 linux_hardware_status_ = NULL;
840 set_has_linux_hardware_status();
841 if (linux_hardware_status_ == NULL) {
842 auto* p = CreateMaybeMessage<::jaiabot::protobuf::LinuxHardwareStatus>(GetArenaNoVirtual());
843 linux_hardware_status_ = p;
846 return linux_hardware_status_;
849 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
850 if (message_arena == NULL) {
851 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(linux_hardware_status_);
854 ::google::protobuf::Arena* submessage_arena = NULL;
855 if (message_arena != submessage_arena) {
859 set_has_linux_hardware_status();
861 clear_has_linux_hardware_status();
869 return (_has_bits_[0] & 0x00000004u) != 0;
871 inline void HubStatus::set_has_bot_offload() {
872 _has_bits_[0] |= 0x00000004u;
874 inline void HubStatus::clear_has_bot_offload() {
875 _has_bits_[0] &= ~0x00000004u;
878 if (bot_offload_ != NULL) bot_offload_->Clear();
879 clear_has_bot_offload();
881 inline const ::jaiabot::protobuf::HubStatus_BotOffloadData& HubStatus::_internal_bot_offload()
const {
882 return *bot_offload_;
885 const ::jaiabot::protobuf::HubStatus_BotOffloadData* p = bot_offload_;
892 clear_has_bot_offload();
898 set_has_bot_offload();
899 if (bot_offload_ == NULL) {
900 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubStatus_BotOffloadData>(GetArenaNoVirtual());
907 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
908 if (message_arena == NULL) {
912 ::google::protobuf::Arena* submessage_arena = NULL;
913 if (message_arena != submessage_arena) {
914 bot_offload = ::google::protobuf::internal::GetOwnedMessage(
915 message_arena, bot_offload, submessage_arena);
917 set_has_bot_offload();
919 clear_has_bot_offload();
921 bot_offload_ = bot_offload;
927 return (_has_bits_[0] & 0x00000040u) != 0;
929 inline void HubStatus::set_has_received_time() {
930 _has_bits_[0] |= 0x00000040u;
932 inline void HubStatus::clear_has_received_time() {
933 _has_bits_[0] &= ~0x00000040u;
936 received_time_ = GOOGLE_ULONGLONG(0);
937 clear_has_received_time();
941 return received_time_;
944 set_has_received_time();
945 received_time_ = value;
950 #pragma GCC diagnostic pop
962 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fhub_2eproto