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);
408 void set_has_bot_status();
409 void clear_has_bot_status();
410 void set_has_engineering_status();
411 void clear_has_engineering_status();
412 void set_has_hub_status();
413 void clear_has_hub_status();
414 void set_has_task_packet();
415 void clear_has_task_packet();
416 void set_has_device_metadata();
417 void clear_has_device_metadata();
418 void set_has_active_mission_plan();
419 void clear_has_active_mission_plan();
421 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
422 ::
google::protobuf::internal::HasBits<1> _has_bits_;
423 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
438 #pragma GCC diagnostic push
439 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
445 return (_has_bits_[0] & 0x00000001u) != 0;
447 inline void ClientToPortalMessage::set_has_engineering_command() {
448 _has_bits_[0] |= 0x00000001u;
450 inline void ClientToPortalMessage::clear_has_engineering_command() {
451 _has_bits_[0] &= ~0x00000001u;
453 inline const ::jaiabot::protobuf::Engineering& ClientToPortalMessage::_internal_engineering_command()
const {
454 return *engineering_command_;
457 const ::jaiabot::protobuf::Engineering* p = engineering_command_;
464 clear_has_engineering_command();
466 engineering_command_ = NULL;
470 set_has_engineering_command();
471 if (engineering_command_ == NULL) {
472 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
473 engineering_command_ = p;
476 return engineering_command_;
479 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
480 if (message_arena == NULL) {
481 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_command_);
484 ::google::protobuf::Arena* submessage_arena = NULL;
485 if (message_arena != submessage_arena) {
489 set_has_engineering_command();
491 clear_has_engineering_command();
499 return (_has_bits_[0] & 0x00000002u) != 0;
501 inline void ClientToPortalMessage::set_has_command() {
502 _has_bits_[0] |= 0x00000002u;
504 inline void ClientToPortalMessage::clear_has_command() {
505 _has_bits_[0] &= ~0x00000002u;
507 inline const ::jaiabot::protobuf::Command& ClientToPortalMessage::_internal_command()
const {
511 const ::jaiabot::protobuf::Command* p = command_;
525 if (command_ == NULL) {
526 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Command>(GetArenaNoVirtual());
533 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
534 if (message_arena == NULL) {
535 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_);
538 ::google::protobuf::Arena* submessage_arena = NULL;
539 if (message_arena != submessage_arena) {
540 command = ::google::protobuf::internal::GetOwnedMessage(
541 message_arena,
command, submessage_arena);
553 return (_has_bits_[0] & 0x00000004u) != 0;
555 inline void ClientToPortalMessage::set_has_command_for_hub() {
556 _has_bits_[0] |= 0x00000004u;
558 inline void ClientToPortalMessage::clear_has_command_for_hub() {
559 _has_bits_[0] &= ~0x00000004u;
561 inline const ::jaiabot::protobuf::CommandForHub& ClientToPortalMessage::_internal_command_for_hub()
const {
562 return *command_for_hub_;
565 const ::jaiabot::protobuf::CommandForHub* p = command_for_hub_;
572 clear_has_command_for_hub();
574 command_for_hub_ = NULL;
578 set_has_command_for_hub();
579 if (command_for_hub_ == NULL) {
580 auto* p = CreateMaybeMessage<::jaiabot::protobuf::CommandForHub>(GetArenaNoVirtual());
581 command_for_hub_ = p;
584 return command_for_hub_;
587 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
588 if (message_arena == NULL) {
589 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(command_for_hub_);
592 ::google::protobuf::Arena* submessage_arena = NULL;
593 if (message_arena != submessage_arena) {
597 set_has_command_for_hub();
599 clear_has_command_for_hub();
607 return (_has_bits_[0] & 0x00000008u) != 0;
609 inline void ClientToPortalMessage::set_has_ping() {
610 _has_bits_[0] |= 0x00000008u;
612 inline void ClientToPortalMessage::clear_has_ping() {
613 _has_bits_[0] &= ~0x00000008u;
635 return (_has_bits_[0] & 0x00000001u) != 0;
637 inline void PortalToClientMessage::set_has_bot_status() {
638 _has_bits_[0] |= 0x00000001u;
640 inline void PortalToClientMessage::clear_has_bot_status() {
641 _has_bits_[0] &= ~0x00000001u;
643 inline const ::jaiabot::protobuf::BotStatus& PortalToClientMessage::_internal_bot_status()
const {
647 const ::jaiabot::protobuf::BotStatus* p = bot_status_;
654 clear_has_bot_status();
660 set_has_bot_status();
661 if (bot_status_ == NULL) {
662 auto* p = CreateMaybeMessage<::jaiabot::protobuf::BotStatus>(GetArenaNoVirtual());
669 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
670 if (message_arena == NULL) {
671 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(bot_status_);
674 ::google::protobuf::Arena* submessage_arena = NULL;
675 if (message_arena != submessage_arena) {
676 bot_status = ::google::protobuf::internal::GetOwnedMessage(
679 set_has_bot_status();
681 clear_has_bot_status();
689 return (_has_bits_[0] & 0x00000002u) != 0;
691 inline void PortalToClientMessage::set_has_engineering_status() {
692 _has_bits_[0] |= 0x00000002u;
694 inline void PortalToClientMessage::clear_has_engineering_status() {
695 _has_bits_[0] &= ~0x00000002u;
697 inline const ::jaiabot::protobuf::Engineering& PortalToClientMessage::_internal_engineering_status()
const {
698 return *engineering_status_;
701 const ::jaiabot::protobuf::Engineering* p = engineering_status_;
708 clear_has_engineering_status();
710 engineering_status_ = NULL;
714 set_has_engineering_status();
715 if (engineering_status_ == NULL) {
716 auto* p = CreateMaybeMessage<::jaiabot::protobuf::Engineering>(GetArenaNoVirtual());
717 engineering_status_ = p;
720 return engineering_status_;
723 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
724 if (message_arena == NULL) {
725 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(engineering_status_);
728 ::google::protobuf::Arena* submessage_arena = NULL;
729 if (message_arena != submessage_arena) {
733 set_has_engineering_status();
735 clear_has_engineering_status();
743 return (_has_bits_[0] & 0x00000004u) != 0;
745 inline void PortalToClientMessage::set_has_hub_status() {
746 _has_bits_[0] |= 0x00000004u;
748 inline void PortalToClientMessage::clear_has_hub_status() {
749 _has_bits_[0] &= ~0x00000004u;
751 inline const ::jaiabot::protobuf::HubStatus& PortalToClientMessage::_internal_hub_status()
const {
755 const ::jaiabot::protobuf::HubStatus* p = hub_status_;
762 clear_has_hub_status();
768 set_has_hub_status();
769 if (hub_status_ == NULL) {
770 auto* p = CreateMaybeMessage<::jaiabot::protobuf::HubStatus>(GetArenaNoVirtual());
777 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
778 if (message_arena == NULL) {
779 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(hub_status_);
782 ::google::protobuf::Arena* submessage_arena = NULL;
783 if (message_arena != submessage_arena) {
784 hub_status = ::google::protobuf::internal::GetOwnedMessage(
787 set_has_hub_status();
789 clear_has_hub_status();
797 return (_has_bits_[0] & 0x00000008u) != 0;
799 inline void PortalToClientMessage::set_has_task_packet() {
800 _has_bits_[0] |= 0x00000008u;
802 inline void PortalToClientMessage::clear_has_task_packet() {
803 _has_bits_[0] &= ~0x00000008u;
805 inline const ::jaiabot::protobuf::TaskPacket& PortalToClientMessage::_internal_task_packet()
const {
806 return *task_packet_;
809 const ::jaiabot::protobuf::TaskPacket* p = task_packet_;
816 clear_has_task_packet();
822 set_has_task_packet();
823 if (task_packet_ == NULL) {
824 auto* p = CreateMaybeMessage<::jaiabot::protobuf::TaskPacket>(GetArenaNoVirtual());
831 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
832 if (message_arena == NULL) {
833 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(task_packet_);
836 ::google::protobuf::Arena* submessage_arena = NULL;
837 if (message_arena != submessage_arena) {
838 task_packet = ::google::protobuf::internal::GetOwnedMessage(
841 set_has_task_packet();
843 clear_has_task_packet();
851 return (_has_bits_[0] & 0x00000010u) != 0;
853 inline void PortalToClientMessage::set_has_device_metadata() {
854 _has_bits_[0] |= 0x00000010u;
856 inline void PortalToClientMessage::clear_has_device_metadata() {
857 _has_bits_[0] &= ~0x00000010u;
859 inline const ::jaiabot::protobuf::DeviceMetadata& PortalToClientMessage::_internal_device_metadata()
const {
860 return *device_metadata_;
863 const ::jaiabot::protobuf::DeviceMetadata* p = device_metadata_;
870 clear_has_device_metadata();
872 device_metadata_ = NULL;
876 set_has_device_metadata();
877 if (device_metadata_ == NULL) {
878 auto* p = CreateMaybeMessage<::jaiabot::protobuf::DeviceMetadata>(GetArenaNoVirtual());
879 device_metadata_ = p;
882 return device_metadata_;
885 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
886 if (message_arena == NULL) {
887 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(device_metadata_);
889 if (device_metadata) {
890 ::google::protobuf::Arena* submessage_arena = NULL;
891 if (message_arena != submessage_arena) {
892 device_metadata = ::google::protobuf::internal::GetOwnedMessage(
893 message_arena, device_metadata, submessage_arena);
895 set_has_device_metadata();
897 clear_has_device_metadata();
899 device_metadata_ = device_metadata;
905 return (_has_bits_[0] & 0x00000020u) != 0;
907 inline void PortalToClientMessage::set_has_active_mission_plan() {
908 _has_bits_[0] |= 0x00000020u;
910 inline void PortalToClientMessage::clear_has_active_mission_plan() {
911 _has_bits_[0] &= ~0x00000020u;
913 inline const ::jaiabot::protobuf::MissionPlan& PortalToClientMessage::_internal_active_mission_plan()
const {
914 return *active_mission_plan_;
917 const ::jaiabot::protobuf::MissionPlan* p = active_mission_plan_;
924 clear_has_active_mission_plan();
926 active_mission_plan_ = NULL;
930 set_has_active_mission_plan();
931 if (active_mission_plan_ == NULL) {
932 auto* p = CreateMaybeMessage<::jaiabot::protobuf::MissionPlan>(GetArenaNoVirtual());
933 active_mission_plan_ = p;
936 return active_mission_plan_;
939 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
940 if (message_arena == NULL) {
941 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(active_mission_plan_);
943 if (active_mission_plan) {
944 ::google::protobuf::Arena* submessage_arena = NULL;
945 if (message_arena != submessage_arena) {
946 active_mission_plan = ::google::protobuf::internal::GetOwnedMessage(
947 message_arena, active_mission_plan, submessage_arena);
949 set_has_active_mission_plan();
951 clear_has_active_mission_plan();
953 active_mission_plan_ = active_mission_plan;
958 #pragma GCC diagnostic pop
970 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2fportal_2eproto