4 #ifndef PROTOBUF_INCLUDED_jaiabot_2fmessages_2frest_5fapi_2eproto
5 #define PROTOBUF_INCLUDED_jaiabot_2fmessages_2frest_5fapi_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/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.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 #define PROTOBUF_INTERNAL_EXPORT_protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto
48 static const ::google::protobuf::internal::ParseTableField
entries[];
49 static const ::google::protobuf::internal::AuxillaryParseTableField
aux[];
50 static const ::google::protobuf::internal::ParseTable
schema[9];
53 static const ::google::protobuf::uint32
offsets[];
60 class APIErrorDefaultTypeInternal;
63 class APIRequestDefaultTypeInternal;
65 class APIRequest_Nodes;
66 class APIRequest_NodesDefaultTypeInternal;
69 class APIResponseDefaultTypeInternal;
71 class APIResponse_Nodes;
72 class APIResponse_NodesDefaultTypeInternal;
74 class APIResponse_Statuses;
75 class APIResponse_StatusesDefaultTypeInternal;
77 class APIResponse_TaskPackets;
78 class APIResponse_TaskPacketsDefaultTypeInternal;
81 class CommandResultDefaultTypeInternal;
83 class TaskPacketsRequest;
84 class TaskPacketsRequestDefaultTypeInternal;
123 return ::google::protobuf::internal::NameOfEnum(
128 return ::google::protobuf::internal::ParseNamedEnum<APIErrorCode>(
147 *
this = ::std::move(from);
151 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
152 if (
this != &from) InternalSwap(&from);
160 return _internal_metadata_.unknown_fields();
163 return _internal_metadata_.mutable_unknown_fields();
166 static const ::google::protobuf::Descriptor*
descriptor();
185 return CreateMaybeMessage<TaskPacketsRequest>(NULL);
189 return CreateMaybeMessage<TaskPacketsRequest>(arena);
191 void CopyFrom(const ::google::protobuf::Message& from)
final;
192 void MergeFrom(const ::google::protobuf::Message& from)
final;
200 ::
google::protobuf::io::CodedInputStream* input) final;
202 ::
google::protobuf::io::CodedOutputStream* output) const final;
204 bool deterministic, ::
google::protobuf::uint8* target) const final;
210 void SetCachedSize(
int size)
const final;
213 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
216 inline void* MaybeArenaPtr()
const {
221 ::google::protobuf::Metadata
GetMetadata() const final;
243 void set_has_start_time();
244 void clear_has_start_time();
245 void set_has_end_time();
246 void clear_has_end_time();
249 size_t RequiredFieldsByteSizeFallback() const;
251 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
252 ::
google::protobuf::internal::HasBits<1> _has_bits_;
253 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
254 ::
google::protobuf::uint64 start_time_;
255 ::
google::protobuf::uint64 end_time_;
274 *
this = ::std::move(from);
277 inline CommandResult&
operator=(CommandResult&& from) noexcept {
278 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
279 if (
this != &from) InternalSwap(&from);
287 return _internal_metadata_.unknown_fields();
290 return _internal_metadata_.mutable_unknown_fields();
293 static const ::google::protobuf::Descriptor*
descriptor();
312 return CreateMaybeMessage<CommandResult>(NULL);
316 return CreateMaybeMessage<CommandResult>(arena);
318 void CopyFrom(const ::google::protobuf::Message& from)
final;
319 void MergeFrom(const ::google::protobuf::Message& from)
final;
327 ::
google::protobuf::io::CodedInputStream* input) final;
329 ::
google::protobuf::io::CodedOutputStream* output) const final;
331 bool deterministic, ::
google::protobuf::uint8* target) const final;
337 void SetCachedSize(
int size)
const final;
340 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
343 inline void* MaybeArenaPtr()
const {
348 ::google::protobuf::Metadata
GetMetadata() const final;
355 bool has_command_sent() const;
356 void clear_command_sent();
357 static const
int kCommandSentFieldNumber = 1;
358 bool command_sent() const;
359 void set_command_sent(
bool value);
363 void set_has_command_sent();
364 void clear_has_command_sent();
366 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
367 ::
google::protobuf::internal::HasBits<1> _has_bits_;
368 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
388 *
this = ::std::move(from);
391 inline APIError&
operator=(APIError&& from) noexcept {
392 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
393 if (
this != &from) InternalSwap(&from);
401 return _internal_metadata_.unknown_fields();
404 return _internal_metadata_.mutable_unknown_fields();
407 static const ::google::protobuf::Descriptor*
descriptor();
412 return reinterpret_cast<const APIError*
>(
426 return CreateMaybeMessage<APIError>(NULL);
430 return CreateMaybeMessage<APIError>(arena);
432 void CopyFrom(const ::google::protobuf::Message& from)
final;
433 void MergeFrom(const ::google::protobuf::Message& from)
final;
441 ::
google::protobuf::io::CodedInputStream* input) final;
443 ::
google::protobuf::io::CodedOutputStream* output) const final;
445 bool deterministic, ::
google::protobuf::uint8* target) const final;
451 void SetCachedSize(
int size)
const final;
454 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
457 inline void* MaybeArenaPtr()
const {
462 ::google::protobuf::Metadata
GetMetadata() const final;
469 bool has_details() const;
470 void clear_details();
471 static const
int kDetailsFieldNumber = 2;
472 const ::std::
string& details() const;
473 void set_details(const ::std::
string& value);
475 void set_details(::std::string&& value);
477 void set_details(
const char* value);
478 void set_details(
const char* value,
size_t size);
479 ::std::string* mutable_details();
480 ::std::string* release_details();
481 void set_allocated_details(::std::string* details);
484 bool has_code()
const;
486 static const int kCodeFieldNumber = 1;
493 void clear_has_code();
494 void set_has_details();
495 void clear_has_details();
497 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
498 ::google::protobuf::internal::HasBits<1> _has_bits_;
499 mutable ::google::protobuf::internal::CachedSize _cached_size_;
500 ::google::protobuf::internal::ArenaStringPtr details_;
502 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
520 *
this = ::std::move(from);
523 inline APIRequest_Nodes&
operator=(APIRequest_Nodes&& from) noexcept {
524 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
525 if (
this != &from) InternalSwap(&from);
533 return _internal_metadata_.unknown_fields();
536 return _internal_metadata_.mutable_unknown_fields();
539 static const ::google::protobuf::Descriptor*
descriptor();
558 return CreateMaybeMessage<APIRequest_Nodes>(NULL);
562 return CreateMaybeMessage<APIRequest_Nodes>(arena);
564 void CopyFrom(const ::google::protobuf::Message& from)
final;
565 void MergeFrom(const ::google::protobuf::Message& from)
final;
573 ::
google::protobuf::io::CodedInputStream* input) final;
575 ::
google::protobuf::io::CodedOutputStream* output) const final;
577 bool deterministic, ::
google::protobuf::uint8* target) const final;
583 void SetCachedSize(
int size)
const final;
586 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
589 inline void* MaybeArenaPtr()
const {
594 ::google::protobuf::Metadata
GetMetadata() const final;
601 int hubs_size() const;
603 static const
int kHubsFieldNumber = 1;
604 ::
google::protobuf::int32 hubs(
int index) const;
605 void set_hubs(
int index, ::
google::protobuf::int32 value);
606 void add_hubs(::
google::protobuf::int32 value);
607 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
609 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
613 int bots_size() const;
615 static const
int kBotsFieldNumber = 2;
616 ::
google::protobuf::int32 bots(
int index) const;
617 void set_bots(
int index, ::
google::protobuf::int32 value);
618 void add_bots(::
google::protobuf::int32 value);
619 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
621 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
625 bool has_all() const;
627 static const
int kAllFieldNumber = 3;
629 void set_all(
bool value);
634 void clear_has_all();
636 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
637 ::
google::protobuf::internal::HasBits<1> _has_bits_;
638 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
639 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > hubs_;
640 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > bots_;
660 *
this = ::std::move(from);
663 inline APIRequest&
operator=(APIRequest&& from) noexcept {
664 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
665 if (
this != &from) InternalSwap(&from);
673 return _internal_metadata_.unknown_fields();
676 return _internal_metadata_.mutable_unknown_fields();
679 static const ::google::protobuf::Descriptor*
descriptor();
707 return CreateMaybeMessage<APIRequest>(NULL);
711 return CreateMaybeMessage<APIRequest>(arena);
713 void CopyFrom(const ::google::protobuf::Message& from)
final;
714 void MergeFrom(const ::google::protobuf::Message& from)
final;
722 ::
google::protobuf::io::CodedInputStream* input) final;
724 ::
google::protobuf::io::CodedOutputStream* output) const final;
726 bool deterministic, ::
google::protobuf::uint8* target) const final;
732 void SetCachedSize(
int size)
const final;
735 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
738 inline void* MaybeArenaPtr()
const {
743 ::google::protobuf::Metadata
GetMetadata() const final;
752 bool has_api_key() const;
753 void clear_api_key();
754 static const
int kApiKeyFieldNumber = 2;
755 const ::std::
string& api_key() const;
756 void set_api_key(const ::std::
string& value);
758 void set_api_key(::std::string&& value);
760 void set_api_key(
const char* value);
761 void set_api_key(
const char* value,
size_t size);
762 ::std::string* mutable_api_key();
763 ::std::string* release_api_key();
764 void set_allocated_api_key(::std::string* api_key);
767 bool has_target()
const;
769 static const int kTargetFieldNumber = 1;
771 const ::jaiabot::protobuf::APIRequest_Nodes& _internal_target()
const;
773 const ::jaiabot::protobuf::APIRequest_Nodes& target()
const;
779 bool has_status()
const;
781 static const int kStatusFieldNumber = 11;
783 void set_status(
bool value);
786 bool has_metadata()
const;
787 void clear_metadata();
788 static const int kMetadataFieldNumber = 12;
790 void set_metadata(
bool value);
793 bool has_task_packets()
const;
794 void clear_task_packets();
795 static const int kTaskPacketsFieldNumber = 13;
797 const ::jaiabot::protobuf::TaskPacketsRequest& _internal_task_packets()
const;
799 const ::jaiabot::protobuf::TaskPacketsRequest& task_packets()
const;
805 bool has_command()
const;
806 void clear_command();
807 static const int kCommandFieldNumber = 14;
809 const ::jaiabot::protobuf::Command& _internal_command()
const;
811 const ::jaiabot::protobuf::Command& command()
const;
817 bool has_command_for_hub()
const;
818 void clear_command_for_hub();
819 static const int kCommandForHubFieldNumber = 15;
821 const ::jaiabot::protobuf::CommandForHub& _internal_command_for_hub()
const;
823 const ::jaiabot::protobuf::CommandForHub& command_for_hub()
const;
832 void set_has_target();
833 void clear_has_target();
834 void set_has_api_key();
835 void clear_has_api_key();
836 void set_has_status();
837 void set_has_metadata();
838 void set_has_task_packets();
839 void set_has_command();
840 void set_has_command_for_hub();
842 inline bool has_action()
const;
843 inline void clear_has_action();
845 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
846 ::google::protobuf::internal::HasBits<1> _has_bits_;
847 mutable ::google::protobuf::internal::CachedSize _cached_size_;
848 ::google::protobuf::internal::ArenaStringPtr api_key_;
858 ::google::protobuf::uint32 _oneof_case_[1];
860 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
878 *
this = ::std::move(from);
881 inline APIResponse_Nodes&
operator=(APIResponse_Nodes&& from) noexcept {
882 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
883 if (
this != &from) InternalSwap(&from);
891 return _internal_metadata_.unknown_fields();
894 return _internal_metadata_.mutable_unknown_fields();
897 static const ::google::protobuf::Descriptor*
descriptor();
916 return CreateMaybeMessage<APIResponse_Nodes>(NULL);
920 return CreateMaybeMessage<APIResponse_Nodes>(arena);
922 void CopyFrom(const ::google::protobuf::Message& from)
final;
923 void MergeFrom(const ::google::protobuf::Message& from)
final;
931 ::
google::protobuf::io::CodedInputStream* input) final;
933 ::
google::protobuf::io::CodedOutputStream* output) const final;
935 bool deterministic, ::
google::protobuf::uint8* target) const final;
941 void SetCachedSize(
int size)
const final;
944 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
947 inline void* MaybeArenaPtr()
const {
952 ::google::protobuf::Metadata
GetMetadata() const final;
959 int hubs_size() const;
961 static const
int kHubsFieldNumber = 1;
962 ::
google::protobuf::int32 hubs(
int index) const;
963 void set_hubs(
int index, ::
google::protobuf::int32 value);
964 void add_hubs(::
google::protobuf::int32 value);
965 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
967 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
971 int bots_size() const;
973 static const
int kBotsFieldNumber = 2;
974 ::
google::protobuf::int32 bots(
int index) const;
975 void set_bots(
int index, ::
google::protobuf::int32 value);
976 void add_bots(::
google::protobuf::int32 value);
977 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
979 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
985 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
986 ::
google::protobuf::internal::HasBits<1> _has_bits_;
987 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
988 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > hubs_;
989 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > bots_;
1008 *
this = ::std::move(from);
1011 inline APIResponse_Statuses&
operator=(APIResponse_Statuses&& from) noexcept {
1012 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1013 if (
this != &from) InternalSwap(&from);
1021 return _internal_metadata_.unknown_fields();
1024 return _internal_metadata_.mutable_unknown_fields();
1027 static const ::google::protobuf::Descriptor*
descriptor();
1046 return CreateMaybeMessage<APIResponse_Statuses>(NULL);
1050 return CreateMaybeMessage<APIResponse_Statuses>(arena);
1052 void CopyFrom(const ::google::protobuf::Message& from)
final;
1053 void MergeFrom(const ::google::protobuf::Message& from)
final;
1061 ::
google::protobuf::io::CodedInputStream* input) final;
1063 ::
google::protobuf::io::CodedOutputStream* output) const final;
1065 bool deterministic, ::
google::protobuf::uint8* target) const final;
1071 void SetCachedSize(
int size)
const final;
1074 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1077 inline void* MaybeArenaPtr()
const {
1082 ::google::protobuf::Metadata
GetMetadata() const final;
1089 int bots_size() const;
1091 static const
int kBotsFieldNumber = 1;
1101 int hubs_size() const;
1103 static const
int kHubsFieldNumber = 2;
1115 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1116 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1117 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1138 *
this = ::std::move(from);
1141 inline APIResponse_TaskPackets&
operator=(APIResponse_TaskPackets&& from) noexcept {
1142 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1143 if (
this != &from) InternalSwap(&from);
1151 return _internal_metadata_.unknown_fields();
1154 return _internal_metadata_.mutable_unknown_fields();
1157 static const ::google::protobuf::Descriptor*
descriptor();
1176 return CreateMaybeMessage<APIResponse_TaskPackets>(NULL);
1180 return CreateMaybeMessage<APIResponse_TaskPackets>(arena);
1182 void CopyFrom(const ::google::protobuf::Message& from)
final;
1183 void MergeFrom(const ::google::protobuf::Message& from)
final;
1191 ::
google::protobuf::io::CodedInputStream* input) final;
1193 ::
google::protobuf::io::CodedOutputStream* output) const final;
1195 bool deterministic, ::
google::protobuf::uint8* target) const final;
1201 void SetCachedSize(
int size)
const final;
1204 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1207 inline void* MaybeArenaPtr()
const {
1212 ::google::protobuf::Metadata
GetMetadata() const final;
1219 int packets_size() const;
1220 void clear_packets();
1221 static const
int kPacketsFieldNumber = 1;
1233 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1234 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1235 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1255 *
this = ::std::move(from);
1258 inline APIResponse&
operator=(APIResponse&& from) noexcept {
1259 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1260 if (
this != &from) InternalSwap(&from);
1268 return _internal_metadata_.unknown_fields();
1271 return _internal_metadata_.mutable_unknown_fields();
1274 static const ::google::protobuf::Descriptor*
descriptor();
1282 kCommandResult = 14,
1302 return CreateMaybeMessage<APIResponse>(NULL);
1306 return CreateMaybeMessage<APIResponse>(arena);
1308 void CopyFrom(const ::google::protobuf::Message& from)
final;
1309 void MergeFrom(const ::google::protobuf::Message& from)
final;
1317 ::
google::protobuf::io::CodedInputStream* input) final;
1319 ::
google::protobuf::io::CodedOutputStream* output) const final;
1321 bool deterministic, ::
google::protobuf::uint8* target) const final;
1327 void SetCachedSize(
int size)
const final;
1330 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1333 inline void* MaybeArenaPtr()
const {
1338 ::google::protobuf::Metadata
GetMetadata() const final;
1349 bool has_target() const;
1350 void clear_target();
1351 static const
int kTargetFieldNumber = 1;
1361 bool has_request() const;
1362 void clear_request();
1363 static const
int kRequestFieldNumber = 20;
1373 bool has_error() const;
1375 static const
int kErrorFieldNumber = 10;
1385 bool has_status() const;
1386 void clear_status();
1387 static const
int kStatusFieldNumber = 11;
1397 bool has_metadata() const;
1398 void clear_metadata();
1399 static const
int kMetadataFieldNumber = 12;
1409 bool has_task_packets() const;
1410 void clear_task_packets();
1411 static const
int kTaskPacketsFieldNumber = 13;
1421 bool has_command_result() const;
1422 void clear_command_result();
1423 static const
int kCommandResultFieldNumber = 14;
1432 void clear_action();
1436 void set_has_target();
1437 void clear_has_target();
1438 void set_has_error();
1439 void set_has_status();
1440 void set_has_metadata();
1441 void set_has_task_packets();
1442 void set_has_command_result();
1443 void set_has_request();
1444 void clear_has_request();
1446 inline
bool has_action() const;
1447 inline
void clear_has_action();
1449 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1450 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1451 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1462 ::google::protobuf::uint32 _oneof_case_[1];
1464 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
1472 #pragma GCC diagnostic push
1473 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1479 return (_has_bits_[0] & 0x00000001u) != 0;
1481 inline void TaskPacketsRequest::set_has_start_time() {
1482 _has_bits_[0] |= 0x00000001u;
1484 inline void TaskPacketsRequest::clear_has_start_time() {
1485 _has_bits_[0] &= ~0x00000001u;
1488 start_time_ = GOOGLE_ULONGLONG(0);
1489 clear_has_start_time();
1496 set_has_start_time();
1497 start_time_ = value;
1503 return (_has_bits_[0] & 0x00000002u) != 0;
1505 inline void TaskPacketsRequest::set_has_end_time() {
1506 _has_bits_[0] |= 0x00000002u;
1508 inline void TaskPacketsRequest::clear_has_end_time() {
1509 _has_bits_[0] &= ~0x00000002u;
1512 end_time_ = GOOGLE_ULONGLONG(0);
1513 clear_has_end_time();
1531 return (_has_bits_[0] & 0x00000001u) != 0;
1533 inline void CommandResult::set_has_command_sent() {
1534 _has_bits_[0] |= 0x00000001u;
1536 inline void CommandResult::clear_has_command_sent() {
1537 _has_bits_[0] &= ~0x00000001u;
1540 command_sent_ =
false;
1541 clear_has_command_sent();
1545 return command_sent_;
1548 set_has_command_sent();
1549 command_sent_ = value;
1559 return (_has_bits_[0] & 0x00000002u) != 0;
1561 inline void APIError::set_has_code() {
1562 _has_bits_[0] |= 0x00000002u;
1564 inline void APIError::clear_has_code() {
1565 _has_bits_[0] &= ~0x00000002u;
1584 return (_has_bits_[0] & 0x00000001u) != 0;
1586 inline void APIError::set_has_details() {
1587 _has_bits_[0] |= 0x00000001u;
1589 inline void APIError::clear_has_details() {
1590 _has_bits_[0] &= ~0x00000001u;
1593 details_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1594 clear_has_details();
1598 return details_.GetNoArena();
1602 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1608 details_.SetNoArena(
1609 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1614 GOOGLE_DCHECK(value != NULL);
1616 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1621 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1622 ::std::string(
reinterpret_cast<const char*
>(value), size));
1628 return details_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1632 if (!has_details()) {
1635 clear_has_details();
1636 return details_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1639 if (details != NULL) {
1642 clear_has_details();
1644 details_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), details);
1654 return hubs_.size();
1661 return hubs_.Get(index);
1664 hubs_.Set(index, value);
1671 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1676 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1684 return bots_.size();
1691 return bots_.Get(index);
1694 bots_.Set(index, value);
1701 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1706 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1714 return (_has_bits_[0] & 0x00000001u) != 0;
1716 inline void APIRequest_Nodes::set_has_all() {
1717 _has_bits_[0] |= 0x00000001u;
1719 inline void APIRequest_Nodes::clear_has_all() {
1720 _has_bits_[0] &= ~0x00000001u;
1742 return (_has_bits_[0] & 0x00000002u) != 0;
1744 inline void APIRequest::set_has_target() {
1745 _has_bits_[0] |= 0x00000002u;
1747 inline void APIRequest::clear_has_target() {
1748 _has_bits_[0] &= ~0x00000002u;
1751 if (target_ != NULL) target_->Clear();
1754 inline const ::jaiabot::protobuf::APIRequest_Nodes& APIRequest::_internal_target()
const {
1758 const ::jaiabot::protobuf::APIRequest_Nodes* p = target_;
1772 if (target_ == NULL) {
1773 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIRequest_Nodes>(GetArenaNoVirtual());
1780 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1781 if (message_arena == NULL) {
1785 ::google::protobuf::Arena* submessage_arena = NULL;
1786 if (message_arena != submessage_arena) {
1787 target = ::google::protobuf::internal::GetOwnedMessage(
1788 message_arena, target, submessage_arena);
1800 return (_has_bits_[0] & 0x00000001u) != 0;
1802 inline void APIRequest::set_has_api_key() {
1803 _has_bits_[0] |= 0x00000001u;
1805 inline void APIRequest::clear_has_api_key() {
1806 _has_bits_[0] &= ~0x00000001u;
1809 api_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1810 clear_has_api_key();
1814 return api_key_.GetNoArena();
1818 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1824 api_key_.SetNoArena(
1825 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1830 GOOGLE_DCHECK(value != NULL);
1832 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1837 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1838 ::std::string(
reinterpret_cast<const char*
>(value), size));
1844 return api_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1848 if (!has_api_key()) {
1851 clear_has_api_key();
1852 return api_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1855 if (api_key != NULL) {
1858 clear_has_api_key();
1860 api_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), api_key);
1866 return action_case() == kStatus;
1868 inline void APIRequest::set_has_status() {
1869 _oneof_case_[0] = kStatus;
1873 action_.status_ =
false;
1880 return action_.status_;
1885 if (!has_status()) {
1889 action_.status_ = value;
1895 return action_case() == kMetadata;
1897 inline void APIRequest::set_has_metadata() {
1898 _oneof_case_[0] = kMetadata;
1901 if (has_metadata()) {
1902 action_.metadata_ =
false;
1908 if (has_metadata()) {
1909 return action_.metadata_;
1914 if (!has_metadata()) {
1918 action_.metadata_ = value;
1924 return action_case() == kTaskPackets;
1926 inline void APIRequest::set_has_task_packets() {
1927 _oneof_case_[0] = kTaskPackets;
1930 if (has_task_packets()) {
1931 delete action_.task_packets_;
1935 inline const ::jaiabot::protobuf::TaskPacketsRequest& APIRequest::_internal_task_packets()
const {
1936 return *action_.task_packets_;
1940 if (has_task_packets()) {
1943 action_.task_packets_ = NULL;
1951 return has_task_packets()
1952 ? *action_.task_packets_
1956 if (!has_task_packets()) {
1958 set_has_task_packets();
1959 action_.task_packets_ = CreateMaybeMessage< ::jaiabot::protobuf::TaskPacketsRequest >(
1960 GetArenaNoVirtual());
1963 return action_.task_packets_;
1968 return action_case() == kCommand;
1970 inline void APIRequest::set_has_command() {
1971 _oneof_case_[0] = kCommand;
1973 inline const ::jaiabot::protobuf::Command& APIRequest::_internal_command()
const {
1974 return *action_.command_;
1978 if (has_command()) {
1981 action_.command_ = NULL;
1989 return has_command()
1994 if (!has_command()) {
1997 action_.command_ = CreateMaybeMessage< ::jaiabot::protobuf::Command >(
1998 GetArenaNoVirtual());
2001 return action_.command_;
2006 return action_case() == kCommandForHub;
2008 inline void APIRequest::set_has_command_for_hub() {
2009 _oneof_case_[0] = kCommandForHub;
2011 inline const ::jaiabot::protobuf::CommandForHub& APIRequest::_internal_command_for_hub()
const {
2012 return *action_.command_for_hub_;
2016 if (has_command_for_hub()) {
2019 action_.command_for_hub_ = NULL;
2027 return has_command_for_hub()
2028 ? *action_.command_for_hub_
2032 if (!has_command_for_hub()) {
2034 set_has_command_for_hub();
2035 action_.command_for_hub_ = CreateMaybeMessage< ::jaiabot::protobuf::CommandForHub >(
2036 GetArenaNoVirtual());
2039 return action_.command_for_hub_;
2042 inline bool APIRequest::has_action()
const {
2043 return action_case() != ACTION_NOT_SET;
2045 inline void APIRequest::clear_has_action() {
2046 _oneof_case_[0] = ACTION_NOT_SET;
2057 return hubs_.size();
2064 return hubs_.Get(index);
2067 hubs_.Set(index, value);
2074 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2079 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2087 return bots_.size();
2094 return bots_.Get(index);
2097 bots_.Set(index, value);
2104 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2109 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2121 return bots_.size();
2125 return bots_.Mutable(index);
2127 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::BotStatus >*
2134 return bots_.Get(index);
2140 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::BotStatus >&
2148 return hubs_.size();
2152 return hubs_.Mutable(index);
2154 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus >*
2161 return hubs_.Get(index);
2167 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus >&
2179 return packets_.size();
2183 return packets_.Mutable(index);
2185 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::TaskPacket >*
2192 return packets_.Get(index);
2196 return packets_.Add();
2198 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::TaskPacket >&
2210 return (_has_bits_[0] & 0x00000001u) != 0;
2212 inline void APIResponse::set_has_target() {
2213 _has_bits_[0] |= 0x00000001u;
2215 inline void APIResponse::clear_has_target() {
2216 _has_bits_[0] &= ~0x00000001u;
2219 if (target_ != NULL) target_->Clear();
2222 inline const ::jaiabot::protobuf::APIResponse_Nodes& APIResponse::_internal_target()
const {
2226 const ::jaiabot::protobuf::APIResponse_Nodes* p = target_;
2240 if (target_ == NULL) {
2241 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIResponse_Nodes>(GetArenaNoVirtual());
2248 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2249 if (message_arena == NULL) {
2253 ::google::protobuf::Arena* submessage_arena = NULL;
2254 if (message_arena != submessage_arena) {
2255 target = ::google::protobuf::internal::GetOwnedMessage(
2256 message_arena, target, submessage_arena);
2268 return action_case() == kError;
2270 inline void APIResponse::set_has_error() {
2271 _oneof_case_[0] = kError;
2275 delete action_.error_;
2279 inline const ::jaiabot::protobuf::APIError& APIResponse::_internal_error()
const {
2280 return *action_.error_;
2287 action_.error_ = NULL;
2303 action_.error_ = CreateMaybeMessage< ::jaiabot::protobuf::APIError >(
2304 GetArenaNoVirtual());
2307 return action_.error_;
2312 return action_case() == kStatus;
2314 inline void APIResponse::set_has_status() {
2315 _oneof_case_[0] = kStatus;
2319 delete action_.status_;
2323 inline const ::jaiabot::protobuf::APIResponse_Statuses& APIResponse::_internal_status()
const {
2324 return *action_.status_;
2331 action_.status_ = NULL;
2344 if (!has_status()) {
2347 action_.status_ = CreateMaybeMessage< ::jaiabot::protobuf::APIResponse_Statuses >(
2348 GetArenaNoVirtual());
2351 return action_.status_;
2356 return action_case() == kMetadata;
2358 inline void APIResponse::set_has_metadata() {
2359 _oneof_case_[0] = kMetadata;
2361 inline const ::jaiabot::protobuf::DeviceMetadata& APIResponse::_internal_metadata()
const {
2362 return *action_.metadata_;
2366 if (has_metadata()) {
2369 action_.metadata_ = NULL;
2377 return has_metadata()
2378 ? *action_.metadata_
2382 if (!has_metadata()) {
2385 action_.metadata_ = CreateMaybeMessage< ::jaiabot::protobuf::DeviceMetadata >(
2386 GetArenaNoVirtual());
2389 return action_.metadata_;
2394 return action_case() == kTaskPackets;
2396 inline void APIResponse::set_has_task_packets() {
2397 _oneof_case_[0] = kTaskPackets;
2400 if (has_task_packets()) {
2401 delete action_.task_packets_;
2405 inline const ::jaiabot::protobuf::APIResponse_TaskPackets& APIResponse::_internal_task_packets()
const {
2406 return *action_.task_packets_;
2410 if (has_task_packets()) {
2413 action_.task_packets_ = NULL;
2421 return has_task_packets()
2422 ? *action_.task_packets_
2426 if (!has_task_packets()) {
2428 set_has_task_packets();
2429 action_.task_packets_ = CreateMaybeMessage< ::jaiabot::protobuf::APIResponse_TaskPackets >(
2430 GetArenaNoVirtual());
2433 return action_.task_packets_;
2438 return action_case() == kCommandResult;
2440 inline void APIResponse::set_has_command_result() {
2441 _oneof_case_[0] = kCommandResult;
2444 if (has_command_result()) {
2445 delete action_.command_result_;
2449 inline const ::jaiabot::protobuf::CommandResult& APIResponse::_internal_command_result()
const {
2450 return *action_.command_result_;
2454 if (has_command_result()) {
2457 action_.command_result_ = NULL;
2465 return has_command_result()
2466 ? *action_.command_result_
2470 if (!has_command_result()) {
2472 set_has_command_result();
2473 action_.command_result_ = CreateMaybeMessage< ::jaiabot::protobuf::CommandResult >(
2474 GetArenaNoVirtual());
2477 return action_.command_result_;
2482 return (_has_bits_[0] & 0x00000002u) != 0;
2484 inline void APIResponse::set_has_request() {
2485 _has_bits_[0] |= 0x00000002u;
2487 inline void APIResponse::clear_has_request() {
2488 _has_bits_[0] &= ~0x00000002u;
2491 if (request_ != NULL) request_->Clear();
2492 clear_has_request();
2494 inline const ::jaiabot::protobuf::APIRequest& APIResponse::_internal_request()
const {
2498 const ::jaiabot::protobuf::APIRequest* p = request_;
2505 clear_has_request();
2512 if (request_ == NULL) {
2513 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIRequest>(GetArenaNoVirtual());
2520 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2521 if (message_arena == NULL) {
2525 ::google::protobuf::Arena* submessage_arena = NULL;
2526 if (message_arena != submessage_arena) {
2527 request = ::google::protobuf::internal::GetOwnedMessage(
2528 message_arena, request, submessage_arena);
2532 clear_has_request();
2538 inline bool APIResponse::has_action()
const {
2539 return action_case() != ACTION_NOT_SET;
2541 inline void APIResponse::clear_has_action() {
2542 _oneof_case_[0] = ACTION_NOT_SET;
2548 #pragma GCC diagnostic pop
2573 namespace protobuf {
2577 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::APIErrorCode>() {
2586 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2frest_5fapi_2eproto