4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2fportal_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2fportal_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"
39 #include <boost/units/quantity.hpp>
40 #include <boost/units/absolute.hpp>
41 #include <boost/units/dimensionless_type.hpp>
42 #include <boost/units/make_scaled_unit.hpp>
44 #include <boost/units/systems/si.hpp>
46 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2fportal_2eproto
51 static const ::google::protobuf::internal::ParseTableField
entries[];
52 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
53 static const ::google::protobuf::internal::ParseTable
schema[2];
56 static const ::google::protobuf::uint32
offsets[];
62 class ClientToPortalMessage;
63 class ClientToPortalMessageDefaultTypeInternal;
65 class PortalToClientMessage;
66 class PortalToClientMessageDefaultTypeInternal;
95 *
this = ::std::move(from);
99 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
100 if (
this != &from) InternalSwap(&from);
108 return _internal_metadata_.unknown_fields();
111 return _internal_metadata_.mutable_unknown_fields();
114 static const ::google::protobuf::Descriptor*
descriptor();
133 return CreateMaybeMessage<ClientToPortalMessage>(NULL);
137 return CreateMaybeMessage<ClientToPortalMessage>(arena);
139 void CopyFrom(const ::google::protobuf::Message& from)
final;
140 void MergeFrom(const ::google::protobuf::Message& from)
final;
148 ::
google::protobuf::io::CodedInputStream* input) final;
150 ::
google::protobuf::io::CodedOutputStream* output) const final;
152 bool deterministic, ::
google::protobuf::uint8* target) const final;
158 void SetCachedSize(
int size)
const final;
161 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
164 inline void* MaybeArenaPtr()
const {
169 ::google::protobuf::Metadata
GetMetadata() const final;
220 void set_has_engineering_command();
221 void clear_has_engineering_command();
222 void set_has_command();
223 void clear_has_command();
224 void set_has_command_for_hub();
225 void clear_has_command_for_hub();
227 void clear_has_ping();
229 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
230 ::
google::protobuf::internal::HasBits<1> _has_bits_;
231 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
254 *
this = ::std::move(from);
257 inline PortalToClientMessage&
operator=(PortalToClientMessage&& from) noexcept {
258 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
259 if (
this != &from) InternalSwap(&from);
267 return _internal_metadata_.unknown_fields();
270 return _internal_metadata_.mutable_unknown_fields();
273 static const ::google::protobuf::Descriptor*
descriptor();
292 return CreateMaybeMessage<PortalToClientMessage>(NULL);
296 return CreateMaybeMessage<PortalToClientMessage>(arena);
298 void CopyFrom(const ::google::protobuf::Message& from)
final;
299 void MergeFrom(const ::google::protobuf::Message& from)
final;
307 ::
google::protobuf::io::CodedInputStream* input) final;
309 ::
google::protobuf::io::CodedOutputStream* output) const final;
311 bool deterministic, ::
google::protobuf::uint8* target) const final;
317 void SetCachedSize(
int size)
const final;
320 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
323 inline void* MaybeArenaPtr()
const {
328 ::google::protobuf::Metadata
GetMetadata() const final;
335 bool has_bot_status() const;
336 void clear_bot_status();
337 static const
int kBotStatusFieldNumber = 1;
347 bool has_engineering_status() const;
348 void clear_engineering_status();
349 static const
int kEngineeringStatusFieldNumber = 2;
359 bool has_hub_status() const;
360 void clear_hub_status();
361 static const
int kHubStatusFieldNumber = 3;
371 bool has_task_packet() const;
372 void clear_task_packet();
373 static const
int kTaskPacketFieldNumber = 4;
383 bool has_device_metadata() const;
384 void clear_device_metadata();
385 static const
int kDeviceMetadataFieldNumber = 5;
395 bool has_active_mission_plan() const;
396 void clear_active_mission_plan();
397 static const
int kActiveMissionPlanFieldNumber = 6;
404 void set_allocated_active_mission_plan(::
jaiabot::protobuf::
MissionPlan* active_mission_plan);
407 bool has_contact_update() const;
408 void clear_contact_update();
409 static const
int kContactUpdateFieldNumber = 7;
420 void set_has_bot_status();
421 void clear_has_bot_status();
422 void set_has_engineering_status();
423 void clear_has_engineering_status();
424 void set_has_hub_status();
425 void clear_has_hub_status();
426 void set_has_task_packet();
427 void clear_has_task_packet();
428 void set_has_device_metadata();
429 void clear_has_device_metadata();
430 void set_has_active_mission_plan();
431 void clear_has_active_mission_plan();
432 void set_has_contact_update();
433 void clear_has_contact_update();
435 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
436 ::
google::protobuf::internal::HasBits<1> _has_bits_;
437 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
453 #pragma GCC diagnostic push
454 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
460 return (_has_bits_[0] & 0x00000001u) != 0;
462 inline void ClientToPortalMessage::set_has_engineering_command() {
463 _has_bits_[0] |= 0x00000001u;
465 inline void ClientToPortalMessage::clear_has_engineering_command() {
466 _has_bits_[0] &= ~0x00000001u;
468 inline const ::jaiabot::protobuf::Engineering& ClientToPortalMessage::_internal_engineering_command()
const {
469 return *engineering_command_;
472 const ::jaiabot::protobuf::Engineering* p = engineering_command_;
479 clear_has_engineering_command();
481 engineering_command_ = NULL;
485 set_has_engineering_command();
486 if (engineering_command_ == NULL) {
487 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
488 engineering_command_ = p;
491 return engineering_command_;
494 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
495 if (message_arena == NULL) {
496 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_command_);
499 ::google::protobuf::Arena* submessage_arena = NULL;
500 if (message_arena != submessage_arena) {
504 set_has_engineering_command();
506 clear_has_engineering_command();
514 return (_has_bits_[0] & 0x00000002u) != 0;
516 inline void ClientToPortalMessage::set_has_command() {
517 _has_bits_[0] |= 0x00000002u;
519 inline void ClientToPortalMessage::clear_has_command() {
520 _has_bits_[0] &= ~0x00000002u;
522 inline const ::jaiabot::protobuf::Command& ClientToPortalMessage::_internal_command()
const {
526 const ::jaiabot::protobuf::Command* p = command_;
540 if (command_ == NULL) {
541 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Command>(GetArenaNoVirtual());
548 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
549 if (message_arena == NULL) {
550 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_);
553 ::google::protobuf::Arena* submessage_arena = NULL;
554 if (message_arena != submessage_arena) {
555 command = ::google::protobuf::internal::GetOwnedMessage(
556 message_arena,
command, submessage_arena);
568 return (_has_bits_[0] & 0x00000004u) != 0;
570 inline void ClientToPortalMessage::set_has_command_for_hub() {
571 _has_bits_[0] |= 0x00000004u;
573 inline void ClientToPortalMessage::clear_has_command_for_hub() {
574 _has_bits_[0] &= ~0x00000004u;
576 inline const ::jaiabot::protobuf::CommandForHub& ClientToPortalMessage::_internal_command_for_hub()
const {
577 return *command_for_hub_;
580 const ::jaiabot::protobuf::CommandForHub* p = command_for_hub_;
587 clear_has_command_for_hub();
589 command_for_hub_ = NULL;
593 set_has_command_for_hub();
594 if (command_for_hub_ == NULL) {
595 auto* p = CreateMaybeMessage<::jaiabot::protobuf::CommandForHub>(GetArenaNoVirtual());
596 command_for_hub_ = p;
599 return command_for_hub_;
602 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
603 if (message_arena == NULL) {
604 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_for_hub_);
607 ::google::protobuf::Arena* submessage_arena = NULL;
608 if (message_arena != submessage_arena) {
612 set_has_command_for_hub();
614 clear_has_command_for_hub();
622 return (_has_bits_[0] & 0x00000008u) != 0;
624 inline void ClientToPortalMessage::set_has_ping() {
625 _has_bits_[0] |= 0x00000008u;
627 inline void ClientToPortalMessage::clear_has_ping() {
628 _has_bits_[0] &= ~0x00000008u;
650 return (_has_bits_[0] & 0x00000001u) != 0;
652 inline void PortalToClientMessage::set_has_bot_status() {
653 _has_bits_[0] |= 0x00000001u;
655 inline void PortalToClientMessage::clear_has_bot_status() {
656 _has_bits_[0] &= ~0x00000001u;
658 inline const ::jaiabot::protobuf::BotStatus& PortalToClientMessage::_internal_bot_status()
const {
662 const ::jaiabot::protobuf::BotStatus* p = bot_status_;
669 clear_has_bot_status();
675 set_has_bot_status();
676 if (bot_status_ == NULL) {
677 auto* p = CreateMaybeMessage<::jaiabot::protobuf::BotStatus>(GetArenaNoVirtual());
684 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
685 if (message_arena == NULL) {
686 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(bot_status_);
689 ::google::protobuf::Arena* submessage_arena = NULL;
690 if (message_arena != submessage_arena) {
691 bot_status = ::google::protobuf::internal::GetOwnedMessage(
694 set_has_bot_status();
696 clear_has_bot_status();
704 return (_has_bits_[0] & 0x00000002u) != 0;
706 inline void PortalToClientMessage::set_has_engineering_status() {
707 _has_bits_[0] |= 0x00000002u;
709 inline void PortalToClientMessage::clear_has_engineering_status() {
710 _has_bits_[0] &= ~0x00000002u;
712 inline const ::jaiabot::protobuf::Engineering& PortalToClientMessage::_internal_engineering_status()
const {
713 return *engineering_status_;
716 const ::jaiabot::protobuf::Engineering* p = engineering_status_;
723 clear_has_engineering_status();
725 engineering_status_ = NULL;
729 set_has_engineering_status();
730 if (engineering_status_ == NULL) {
731 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
732 engineering_status_ = p;
735 return engineering_status_;
738 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
739 if (message_arena == NULL) {
740 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_status_);
743 ::google::protobuf::Arena* submessage_arena = NULL;
744 if (message_arena != submessage_arena) {
748 set_has_engineering_status();
750 clear_has_engineering_status();
758 return (_has_bits_[0] & 0x00000004u) != 0;
760 inline void PortalToClientMessage::set_has_hub_status() {
761 _has_bits_[0] |= 0x00000004u;
763 inline void PortalToClientMessage::clear_has_hub_status() {
764 _has_bits_[0] &= ~0x00000004u;
766 inline const ::jaiabot::protobuf::HubStatus& PortalToClientMessage::_internal_hub_status()
const {
770 const ::jaiabot::protobuf::HubStatus* p = hub_status_;
777 clear_has_hub_status();
783 set_has_hub_status();
784 if (hub_status_ == NULL) {
785 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubStatus>(GetArenaNoVirtual());
792 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
793 if (message_arena == NULL) {
794 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(hub_status_);
797 ::google::protobuf::Arena* submessage_arena = NULL;
798 if (message_arena != submessage_arena) {
799 hub_status = ::google::protobuf::internal::GetOwnedMessage(
802 set_has_hub_status();
804 clear_has_hub_status();
812 return (_has_bits_[0] & 0x00000008u) != 0;
814 inline void PortalToClientMessage::set_has_task_packet() {
815 _has_bits_[0] |= 0x00000008u;
817 inline void PortalToClientMessage::clear_has_task_packet() {
818 _has_bits_[0] &= ~0x00000008u;
820 inline const ::jaiabot::protobuf::TaskPacket& PortalToClientMessage::_internal_task_packet()
const {
821 return *task_packet_;
824 const ::jaiabot::protobuf::TaskPacket* p = task_packet_;
831 clear_has_task_packet();
837 set_has_task_packet();
838 if (task_packet_ == NULL) {
839 auto* p = CreateMaybeMessage<::jaiabot::protobuf::TaskPacket>(GetArenaNoVirtual());
846 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
847 if (message_arena == NULL) {
848 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(task_packet_);
851 ::google::protobuf::Arena* submessage_arena = NULL;
852 if (message_arena != submessage_arena) {
853 task_packet = ::google::protobuf::internal::GetOwnedMessage(
856 set_has_task_packet();
858 clear_has_task_packet();
866 return (_has_bits_[0] & 0x00000010u) != 0;
868 inline void PortalToClientMessage::set_has_device_metadata() {
869 _has_bits_[0] |= 0x00000010u;
871 inline void PortalToClientMessage::clear_has_device_metadata() {
872 _has_bits_[0] &= ~0x00000010u;
874 inline const ::jaiabot::protobuf::DeviceMetadata& PortalToClientMessage::_internal_device_metadata()
const {
875 return *device_metadata_;
878 const ::jaiabot::protobuf::DeviceMetadata* p = device_metadata_;
885 clear_has_device_metadata();
887 device_metadata_ = NULL;
891 set_has_device_metadata();
892 if (device_metadata_ == NULL) {
893 auto* p = CreateMaybeMessage<::jaiabot::protobuf::DeviceMetadata>(GetArenaNoVirtual());
894 device_metadata_ = p;
897 return device_metadata_;
900 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
901 if (message_arena == NULL) {
902 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(device_metadata_);
904 if (device_metadata) {
905 ::google::protobuf::Arena* submessage_arena = NULL;
906 if (message_arena != submessage_arena) {
907 device_metadata = ::google::protobuf::internal::GetOwnedMessage(
908 message_arena, device_metadata, submessage_arena);
910 set_has_device_metadata();
912 clear_has_device_metadata();
914 device_metadata_ = device_metadata;
920 return (_has_bits_[0] & 0x00000020u) != 0;
922 inline void PortalToClientMessage::set_has_active_mission_plan() {
923 _has_bits_[0] |= 0x00000020u;
925 inline void PortalToClientMessage::clear_has_active_mission_plan() {
926 _has_bits_[0] &= ~0x00000020u;
928 inline const ::jaiabot::protobuf::MissionPlan& PortalToClientMessage::_internal_active_mission_plan()
const {
929 return *active_mission_plan_;
932 const ::jaiabot::protobuf::MissionPlan* p = active_mission_plan_;
939 clear_has_active_mission_plan();
941 active_mission_plan_ = NULL;
945 set_has_active_mission_plan();
946 if (active_mission_plan_ == NULL) {
947 auto* p = CreateMaybeMessage<::jaiabot::protobuf::MissionPlan>(GetArenaNoVirtual());
948 active_mission_plan_ = p;
951 return active_mission_plan_;
954 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
955 if (message_arena == NULL) {
956 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(active_mission_plan_);
958 if (active_mission_plan) {
959 ::google::protobuf::Arena* submessage_arena = NULL;
960 if (message_arena != submessage_arena) {
961 active_mission_plan = ::google::protobuf::internal::GetOwnedMessage(
962 message_arena, active_mission_plan, submessage_arena);
964 set_has_active_mission_plan();
966 clear_has_active_mission_plan();
968 active_mission_plan_ = active_mission_plan;
974 return (_has_bits_[0] & 0x00000040u) != 0;
976 inline void PortalToClientMessage::set_has_contact_update() {
977 _has_bits_[0] |= 0x00000040u;
979 inline void PortalToClientMessage::clear_has_contact_update() {
980 _has_bits_[0] &= ~0x00000040u;
982 inline const ::jaiabot::protobuf::ContactUpdate& PortalToClientMessage::_internal_contact_update()
const {
983 return *contact_update_;
986 const ::jaiabot::protobuf::ContactUpdate* p = contact_update_;
993 clear_has_contact_update();
995 contact_update_ = NULL;
999 set_has_contact_update();
1000 if (contact_update_ == NULL) {
1001 auto* p = CreateMaybeMessage<::jaiabot::protobuf::ContactUpdate>(GetArenaNoVirtual());
1002 contact_update_ = p;
1005 return contact_update_;
1008 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1009 if (message_arena == NULL) {
1010 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_update_);
1013 ::google::protobuf::Arena* submessage_arena = NULL;
1014 if (message_arena != submessage_arena) {
1018 set_has_contact_update();
1020 clear_has_contact_update();
1027 #pragma GCC diagnostic pop
1039 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fportal_2eproto