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;
195 const ::jaiabot::protobuf::Engineering& _internal_engineering_command()
const;
207 const ::jaiabot::protobuf::Command& _internal_command()
const;
209 const ::jaiabot::protobuf::Command&
command()
const;
219 const ::jaiabot::protobuf::CommandForHub& _internal_command_for_hub()
const;
235 void set_has_engineering_command();
236 void clear_has_engineering_command();
237 void set_has_command();
238 void clear_has_command();
239 void set_has_command_for_hub();
240 void clear_has_command_for_hub();
242 void clear_has_ping();
243 void set_has_client_id();
244 void clear_has_client_id();
246 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
247 ::google::protobuf::internal::HasBits<1> _has_bits_;
248 mutable ::google::protobuf::internal::CachedSize _cached_size_;
249 ::google::protobuf::internal::ArenaStringPtr client_id_;
254 friend struct ::protobuf_jaiabot_2fmessages_2fportal_2eproto::TableStruct;
272 *
this = ::std::move(from);
276 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
277 if (
this != &from) InternalSwap(&from);
285 return _internal_metadata_.unknown_fields();
288 return _internal_metadata_.mutable_unknown_fields();
291 static const ::google::protobuf::Descriptor*
descriptor();
310 return CreateMaybeMessage<PortalToClientMessage>(NULL);
314 return CreateMaybeMessage<PortalToClientMessage>(arena);
316 void CopyFrom(const ::google::protobuf::Message& from)
final;
317 void MergeFrom(const ::google::protobuf::Message& from)
final;
325 ::
google::protobuf::io::CodedInputStream* input) final;
327 ::
google::protobuf::io::CodedOutputStream* output) const final;
329 bool deterministic, ::
google::protobuf::uint8* target) const final;
335 void SetCachedSize(
int size)
const final;
338 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
341 inline void* MaybeArenaPtr()
const {
346 ::google::protobuf::Metadata
GetMetadata() const final;
438 void set_has_bot_status();
439 void clear_has_bot_status();
440 void set_has_engineering_status();
441 void clear_has_engineering_status();
442 void set_has_hub_status();
443 void clear_has_hub_status();
444 void set_has_task_packet();
445 void clear_has_task_packet();
446 void set_has_device_metadata();
447 void clear_has_device_metadata();
448 void set_has_active_mission_plan();
449 void clear_has_active_mission_plan();
450 void set_has_contact_update();
451 void clear_has_contact_update();
453 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
454 ::
google::protobuf::internal::HasBits<1> _has_bits_;
455 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
471 #pragma GCC diagnostic push
472 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
478 return (_has_bits_[0] & 0x00000002u) != 0;
480 inline void ClientToPortalMessage::set_has_engineering_command() {
481 _has_bits_[0] |= 0x00000002u;
483 inline void ClientToPortalMessage::clear_has_engineering_command() {
484 _has_bits_[0] &= ~0x00000002u;
486 inline const ::jaiabot::protobuf::Engineering& ClientToPortalMessage::_internal_engineering_command()
const {
487 return *engineering_command_;
490 const ::jaiabot::protobuf::Engineering* p = engineering_command_;
497 clear_has_engineering_command();
499 engineering_command_ = NULL;
503 set_has_engineering_command();
504 if (engineering_command_ == NULL) {
505 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
506 engineering_command_ = p;
509 return engineering_command_;
512 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
513 if (message_arena == NULL) {
514 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_command_);
517 ::google::protobuf::Arena* submessage_arena = NULL;
518 if (message_arena != submessage_arena) {
522 set_has_engineering_command();
524 clear_has_engineering_command();
532 return (_has_bits_[0] & 0x00000004u) != 0;
534 inline void ClientToPortalMessage::set_has_command() {
535 _has_bits_[0] |= 0x00000004u;
537 inline void ClientToPortalMessage::clear_has_command() {
538 _has_bits_[0] &= ~0x00000004u;
540 inline const ::jaiabot::protobuf::Command& ClientToPortalMessage::_internal_command()
const {
544 const ::jaiabot::protobuf::Command* p = command_;
558 if (command_ == NULL) {
559 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Command>(GetArenaNoVirtual());
566 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
567 if (message_arena == NULL) {
568 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_);
571 ::google::protobuf::Arena* submessage_arena = NULL;
572 if (message_arena != submessage_arena) {
573 command = ::google::protobuf::internal::GetOwnedMessage(
574 message_arena, command, submessage_arena);
586 return (_has_bits_[0] & 0x00000008u) != 0;
588 inline void ClientToPortalMessage::set_has_command_for_hub() {
589 _has_bits_[0] |= 0x00000008u;
591 inline void ClientToPortalMessage::clear_has_command_for_hub() {
592 _has_bits_[0] &= ~0x00000008u;
594 inline const ::jaiabot::protobuf::CommandForHub& ClientToPortalMessage::_internal_command_for_hub()
const {
595 return *command_for_hub_;
598 const ::jaiabot::protobuf::CommandForHub* p = command_for_hub_;
605 clear_has_command_for_hub();
607 command_for_hub_ = NULL;
611 set_has_command_for_hub();
612 if (command_for_hub_ == NULL) {
613 auto* p = CreateMaybeMessage<::jaiabot::protobuf::CommandForHub>(GetArenaNoVirtual());
614 command_for_hub_ = p;
617 return command_for_hub_;
620 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
621 if (message_arena == NULL) {
622 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_for_hub_);
624 if (command_for_hub) {
625 ::google::protobuf::Arena* submessage_arena = NULL;
626 if (message_arena != submessage_arena) {
627 command_for_hub = ::google::protobuf::internal::GetOwnedMessage(
628 message_arena, command_for_hub, submessage_arena);
630 set_has_command_for_hub();
632 clear_has_command_for_hub();
634 command_for_hub_ = command_for_hub;
640 return (_has_bits_[0] & 0x00000010u) != 0;
642 inline void ClientToPortalMessage::set_has_ping() {
643 _has_bits_[0] |= 0x00000010u;
645 inline void ClientToPortalMessage::clear_has_ping() {
646 _has_bits_[0] &= ~0x00000010u;
664 return (_has_bits_[0] & 0x00000001u) != 0;
666 inline void ClientToPortalMessage::set_has_client_id() {
667 _has_bits_[0] |= 0x00000001u;
669 inline void ClientToPortalMessage::clear_has_client_id() {
670 _has_bits_[0] &= ~0x00000001u;
673 client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
674 clear_has_client_id();
678 return client_id_.GetNoArena();
682 client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
688 client_id_.SetNoArena(
689 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
694 GOOGLE_DCHECK(value != NULL);
696 client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
701 client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
702 ::std::string(
reinterpret_cast<const char*
>(value), size));
708 return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
712 if (!has_client_id()) {
715 clear_has_client_id();
716 return client_id_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
719 if (client_id != NULL) {
722 clear_has_client_id();
724 client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id);
734 return (_has_bits_[0] & 0x00000001u) != 0;
736 inline void PortalToClientMessage::set_has_bot_status() {
737 _has_bits_[0] |= 0x00000001u;
739 inline void PortalToClientMessage::clear_has_bot_status() {
740 _has_bits_[0] &= ~0x00000001u;
742 inline const ::jaiabot::protobuf::BotStatus& PortalToClientMessage::_internal_bot_status()
const {
746 const ::jaiabot::protobuf::BotStatus* p = bot_status_;
753 clear_has_bot_status();
759 set_has_bot_status();
760 if (bot_status_ == NULL) {
761 auto* p = CreateMaybeMessage<::jaiabot::protobuf::BotStatus>(GetArenaNoVirtual());
768 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
769 if (message_arena == NULL) {
770 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(bot_status_);
773 ::google::protobuf::Arena* submessage_arena = NULL;
774 if (message_arena != submessage_arena) {
775 bot_status = ::google::protobuf::internal::GetOwnedMessage(
778 set_has_bot_status();
780 clear_has_bot_status();
788 return (_has_bits_[0] & 0x00000002u) != 0;
790 inline void PortalToClientMessage::set_has_engineering_status() {
791 _has_bits_[0] |= 0x00000002u;
793 inline void PortalToClientMessage::clear_has_engineering_status() {
794 _has_bits_[0] &= ~0x00000002u;
796 inline const ::jaiabot::protobuf::Engineering& PortalToClientMessage::_internal_engineering_status()
const {
797 return *engineering_status_;
800 const ::jaiabot::protobuf::Engineering* p = engineering_status_;
807 clear_has_engineering_status();
809 engineering_status_ = NULL;
813 set_has_engineering_status();
814 if (engineering_status_ == NULL) {
815 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
816 engineering_status_ = p;
819 return engineering_status_;
822 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
823 if (message_arena == NULL) {
824 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_status_);
827 ::google::protobuf::Arena* submessage_arena = NULL;
828 if (message_arena != submessage_arena) {
832 set_has_engineering_status();
834 clear_has_engineering_status();
842 return (_has_bits_[0] & 0x00000004u) != 0;
844 inline void PortalToClientMessage::set_has_hub_status() {
845 _has_bits_[0] |= 0x00000004u;
847 inline void PortalToClientMessage::clear_has_hub_status() {
848 _has_bits_[0] &= ~0x00000004u;
850 inline const ::jaiabot::protobuf::HubStatus& PortalToClientMessage::_internal_hub_status()
const {
854 const ::jaiabot::protobuf::HubStatus* p = hub_status_;
861 clear_has_hub_status();
867 set_has_hub_status();
868 if (hub_status_ == NULL) {
869 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubStatus>(GetArenaNoVirtual());
876 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
877 if (message_arena == NULL) {
878 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(hub_status_);
881 ::google::protobuf::Arena* submessage_arena = NULL;
882 if (message_arena != submessage_arena) {
883 hub_status = ::google::protobuf::internal::GetOwnedMessage(
886 set_has_hub_status();
888 clear_has_hub_status();
896 return (_has_bits_[0] & 0x00000008u) != 0;
898 inline void PortalToClientMessage::set_has_task_packet() {
899 _has_bits_[0] |= 0x00000008u;
901 inline void PortalToClientMessage::clear_has_task_packet() {
902 _has_bits_[0] &= ~0x00000008u;
904 inline const ::jaiabot::protobuf::TaskPacket& PortalToClientMessage::_internal_task_packet()
const {
905 return *task_packet_;
908 const ::jaiabot::protobuf::TaskPacket* p = task_packet_;
915 clear_has_task_packet();
921 set_has_task_packet();
922 if (task_packet_ == NULL) {
923 auto* p = CreateMaybeMessage<::jaiabot::protobuf::TaskPacket>(GetArenaNoVirtual());
930 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
931 if (message_arena == NULL) {
932 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(task_packet_);
935 ::google::protobuf::Arena* submessage_arena = NULL;
936 if (message_arena != submessage_arena) {
937 task_packet = ::google::protobuf::internal::GetOwnedMessage(
940 set_has_task_packet();
942 clear_has_task_packet();
950 return (_has_bits_[0] & 0x00000010u) != 0;
952 inline void PortalToClientMessage::set_has_device_metadata() {
953 _has_bits_[0] |= 0x00000010u;
955 inline void PortalToClientMessage::clear_has_device_metadata() {
956 _has_bits_[0] &= ~0x00000010u;
958 inline const ::jaiabot::protobuf::DeviceMetadata& PortalToClientMessage::_internal_device_metadata()
const {
959 return *device_metadata_;
962 const ::jaiabot::protobuf::DeviceMetadata* p = device_metadata_;
969 clear_has_device_metadata();
971 device_metadata_ = NULL;
975 set_has_device_metadata();
976 if (device_metadata_ == NULL) {
977 auto* p = CreateMaybeMessage<::jaiabot::protobuf::DeviceMetadata>(GetArenaNoVirtual());
978 device_metadata_ = p;
981 return device_metadata_;
984 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
985 if (message_arena == NULL) {
986 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(device_metadata_);
989 ::google::protobuf::Arena* submessage_arena = NULL;
990 if (message_arena != submessage_arena) {
994 set_has_device_metadata();
996 clear_has_device_metadata();
1004 return (_has_bits_[0] & 0x00000020u) != 0;
1006 inline void PortalToClientMessage::set_has_active_mission_plan() {
1007 _has_bits_[0] |= 0x00000020u;
1009 inline void PortalToClientMessage::clear_has_active_mission_plan() {
1010 _has_bits_[0] &= ~0x00000020u;
1012 inline const ::jaiabot::protobuf::MissionPlan& PortalToClientMessage::_internal_active_mission_plan()
const {
1013 return *active_mission_plan_;
1016 const ::jaiabot::protobuf::MissionPlan* p = active_mission_plan_;
1023 clear_has_active_mission_plan();
1025 active_mission_plan_ = NULL;
1029 set_has_active_mission_plan();
1030 if (active_mission_plan_ == NULL) {
1031 auto* p = CreateMaybeMessage<::jaiabot::protobuf::MissionPlan>(GetArenaNoVirtual());
1032 active_mission_plan_ = p;
1035 return active_mission_plan_;
1038 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1039 if (message_arena == NULL) {
1040 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(active_mission_plan_);
1043 ::google::protobuf::Arena* submessage_arena = NULL;
1044 if (message_arena != submessage_arena) {
1048 set_has_active_mission_plan();
1050 clear_has_active_mission_plan();
1058 return (_has_bits_[0] & 0x00000040u) != 0;
1060 inline void PortalToClientMessage::set_has_contact_update() {
1061 _has_bits_[0] |= 0x00000040u;
1063 inline void PortalToClientMessage::clear_has_contact_update() {
1064 _has_bits_[0] &= ~0x00000040u;
1066 inline const ::jaiabot::protobuf::ContactUpdate& PortalToClientMessage::_internal_contact_update()
const {
1067 return *contact_update_;
1070 const ::jaiabot::protobuf::ContactUpdate* p = contact_update_;
1077 clear_has_contact_update();
1079 contact_update_ = NULL;
1083 set_has_contact_update();
1084 if (contact_update_ == NULL) {
1085 auto* p = CreateMaybeMessage<::jaiabot::protobuf::ContactUpdate>(GetArenaNoVirtual());
1086 contact_update_ = p;
1089 return contact_update_;
1092 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1093 if (message_arena == NULL) {
1094 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(contact_update_);
1097 ::google::protobuf::Arena* submessage_arena = NULL;
1098 if (message_arena != submessage_arena) {
1102 set_has_contact_update();
1104 clear_has_contact_update();
1111 #pragma GCC diagnostic pop
1123 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fportal_2eproto