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[13];
53 static const ::google::protobuf::uint32
offsets[];
60 class APIConfigDefaultTypeInternal;
62 class APIConfig_APIKey;
63 class APIConfig_APIKeyDefaultTypeInternal;
65 class APIConfig_StreamingEndpoint;
66 class APIConfig_StreamingEndpointDefaultTypeInternal;
69 class APIErrorDefaultTypeInternal;
72 class APIRequestDefaultTypeInternal;
74 class APIRequest_Nodes;
75 class APIRequest_NodesDefaultTypeInternal;
78 class APIResponseDefaultTypeInternal;
80 class APIResponse_Metadatas;
81 class APIResponse_MetadatasDefaultTypeInternal;
83 class APIResponse_Nodes;
84 class APIResponse_NodesDefaultTypeInternal;
86 class APIResponse_Statuses;
87 class APIResponse_StatusesDefaultTypeInternal;
89 class APIResponse_TaskPackets;
90 class APIResponse_TaskPacketsDefaultTypeInternal;
93 class CommandResultDefaultTypeInternal;
95 class TaskPacketsRequest;
96 class TaskPacketsRequestDefaultTypeInternal;
137 return ::google::protobuf::internal::NameOfEnum(
142 return ::google::protobuf::internal::ParseNamedEnum<APIConfig_APIKey_Permission>(
164 return ::google::protobuf::internal::NameOfEnum(
169 return ::google::protobuf::internal::ParseNamedEnum<APIErrorCode>(
188 *
this = ::std::move(from);
192 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
193 if (
this != &from) InternalSwap(&from);
201 return _internal_metadata_.unknown_fields();
204 return _internal_metadata_.mutable_unknown_fields();
207 static const ::google::protobuf::Descriptor*
descriptor();
226 return CreateMaybeMessage<TaskPacketsRequest>(NULL);
230 return CreateMaybeMessage<TaskPacketsRequest>(arena);
232 void CopyFrom(const ::google::protobuf::Message& from)
final;
233 void MergeFrom(const ::google::protobuf::Message& from)
final;
241 ::
google::protobuf::io::CodedInputStream* input) final;
243 ::
google::protobuf::io::CodedOutputStream* output) const final;
245 bool deterministic, ::
google::protobuf::uint8* target) const final;
251 void SetCachedSize(
int size)
const final;
254 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
257 inline void* MaybeArenaPtr()
const {
262 ::google::protobuf::Metadata
GetMetadata() const final;
284 void set_has_start_time();
285 void clear_has_start_time();
286 void set_has_end_time();
287 void clear_has_end_time();
290 size_t RequiredFieldsByteSizeFallback() const;
292 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
293 ::
google::protobuf::internal::HasBits<1> _has_bits_;
294 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
295 ::
google::protobuf::uint64 start_time_;
296 ::
google::protobuf::uint64 end_time_;
315 *
this = ::std::move(from);
318 inline CommandResult&
operator=(CommandResult&& from) noexcept {
319 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
320 if (
this != &from) InternalSwap(&from);
328 return _internal_metadata_.unknown_fields();
331 return _internal_metadata_.mutable_unknown_fields();
334 static const ::google::protobuf::Descriptor*
descriptor();
353 return CreateMaybeMessage<CommandResult>(NULL);
357 return CreateMaybeMessage<CommandResult>(arena);
359 void CopyFrom(const ::google::protobuf::Message& from)
final;
360 void MergeFrom(const ::google::protobuf::Message& from)
final;
368 ::
google::protobuf::io::CodedInputStream* input) final;
370 ::
google::protobuf::io::CodedOutputStream* output) const final;
372 bool deterministic, ::
google::protobuf::uint8* target) const final;
378 void SetCachedSize(
int size)
const final;
381 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
384 inline void* MaybeArenaPtr()
const {
389 ::google::protobuf::Metadata
GetMetadata() const final;
396 bool has_command_sent() const;
397 void clear_command_sent();
398 static const
int kCommandSentFieldNumber = 1;
399 bool command_sent() const;
400 void set_command_sent(
bool value);
404 void set_has_command_sent();
405 void clear_has_command_sent();
407 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
408 ::
google::protobuf::internal::HasBits<1> _has_bits_;
409 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
429 *
this = ::std::move(from);
432 inline APIError&
operator=(APIError&& from) noexcept {
433 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
434 if (
this != &from) InternalSwap(&from);
442 return _internal_metadata_.unknown_fields();
445 return _internal_metadata_.mutable_unknown_fields();
448 static const ::google::protobuf::Descriptor*
descriptor();
453 return reinterpret_cast<const APIError*
>(
467 return CreateMaybeMessage<APIError>(NULL);
471 return CreateMaybeMessage<APIError>(arena);
473 void CopyFrom(const ::google::protobuf::Message& from)
final;
474 void MergeFrom(const ::google::protobuf::Message& from)
final;
482 ::
google::protobuf::io::CodedInputStream* input) final;
484 ::
google::protobuf::io::CodedOutputStream* output) const final;
486 bool deterministic, ::
google::protobuf::uint8* target) const final;
492 void SetCachedSize(
int size)
const final;
495 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
498 inline void* MaybeArenaPtr()
const {
503 ::google::protobuf::Metadata
GetMetadata() const final;
510 bool has_details() const;
511 void clear_details();
512 static const
int kDetailsFieldNumber = 2;
513 const ::std::
string& details() const;
514 void set_details(const ::std::
string& value);
516 void set_details(::std::string&& value);
518 void set_details(
const char* value);
519 void set_details(
const char* value,
size_t size);
520 ::std::string* mutable_details();
521 ::std::string* release_details();
522 void set_allocated_details(::std::string* details);
525 bool has_code()
const;
527 static const int kCodeFieldNumber = 1;
534 void clear_has_code();
535 void set_has_details();
536 void clear_has_details();
538 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
539 ::google::protobuf::internal::HasBits<1> _has_bits_;
540 mutable ::google::protobuf::internal::CachedSize _cached_size_;
541 ::google::protobuf::internal::ArenaStringPtr details_;
543 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
561 *
this = ::std::move(from);
564 inline APIRequest_Nodes&
operator=(APIRequest_Nodes&& from) noexcept {
565 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
566 if (
this != &from) InternalSwap(&from);
574 return _internal_metadata_.unknown_fields();
577 return _internal_metadata_.mutable_unknown_fields();
580 static const ::google::protobuf::Descriptor*
descriptor();
599 return CreateMaybeMessage<APIRequest_Nodes>(NULL);
603 return CreateMaybeMessage<APIRequest_Nodes>(arena);
605 void CopyFrom(const ::google::protobuf::Message& from)
final;
606 void MergeFrom(const ::google::protobuf::Message& from)
final;
614 ::
google::protobuf::io::CodedInputStream* input) final;
616 ::
google::protobuf::io::CodedOutputStream* output) const final;
618 bool deterministic, ::
google::protobuf::uint8* target) const final;
624 void SetCachedSize(
int size)
const final;
627 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
630 inline void* MaybeArenaPtr()
const {
635 ::google::protobuf::Metadata
GetMetadata() const final;
642 int hubs_size() const;
644 static const
int kHubsFieldNumber = 1;
645 ::
google::protobuf::int32 hubs(
int index) const;
646 void set_hubs(
int index, ::
google::protobuf::int32 value);
647 void add_hubs(::
google::protobuf::int32 value);
648 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
650 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
654 int bots_size() const;
656 static const
int kBotsFieldNumber = 2;
657 ::
google::protobuf::int32 bots(
int index) const;
658 void set_bots(
int index, ::
google::protobuf::int32 value);
659 void add_bots(::
google::protobuf::int32 value);
660 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
662 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
666 bool has_all() const;
668 static const
int kAllFieldNumber = 3;
670 void set_all(
bool value);
675 void clear_has_all();
677 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
678 ::
google::protobuf::internal::HasBits<1> _has_bits_;
679 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
680 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > hubs_;
681 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > bots_;
701 *
this = ::std::move(from);
704 inline APIRequest&
operator=(APIRequest&& from) noexcept {
705 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
706 if (
this != &from) InternalSwap(&from);
714 return _internal_metadata_.unknown_fields();
717 return _internal_metadata_.mutable_unknown_fields();
720 static const ::google::protobuf::Descriptor*
descriptor();
748 return CreateMaybeMessage<APIRequest>(NULL);
752 return CreateMaybeMessage<APIRequest>(arena);
754 void CopyFrom(const ::google::protobuf::Message& from)
final;
755 void MergeFrom(const ::google::protobuf::Message& from)
final;
763 ::
google::protobuf::io::CodedInputStream* input) final;
765 ::
google::protobuf::io::CodedOutputStream* output) const final;
767 bool deterministic, ::
google::protobuf::uint8* target) const final;
773 void SetCachedSize(
int size)
const final;
776 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
779 inline void* MaybeArenaPtr()
const {
784 ::google::protobuf::Metadata
GetMetadata() const final;
793 bool has_api_key() const;
794 void clear_api_key();
795 static const
int kApiKeyFieldNumber = 2;
796 const ::std::
string& api_key() const;
797 void set_api_key(const ::std::
string& value);
799 void set_api_key(::std::string&& value);
801 void set_api_key(
const char* value);
802 void set_api_key(
const char* value,
size_t size);
803 ::std::string* mutable_api_key();
804 ::std::string* release_api_key();
805 void set_allocated_api_key(::std::string* api_key);
808 bool has_target()
const;
810 static const int kTargetFieldNumber = 1;
812 const ::jaiabot::protobuf::APIRequest_Nodes& _internal_target()
const;
814 const ::jaiabot::protobuf::APIRequest_Nodes& target()
const;
820 bool has_status()
const;
822 static const int kStatusFieldNumber = 11;
824 void set_status(
bool value);
827 bool has_metadata()
const;
828 void clear_metadata();
829 static const int kMetadataFieldNumber = 12;
831 void set_metadata(
bool value);
834 bool has_task_packets()
const;
835 void clear_task_packets();
836 static const int kTaskPacketsFieldNumber = 13;
838 const ::jaiabot::protobuf::TaskPacketsRequest& _internal_task_packets()
const;
840 const ::jaiabot::protobuf::TaskPacketsRequest& task_packets()
const;
846 bool has_command()
const;
847 void clear_command();
848 static const int kCommandFieldNumber = 14;
850 const ::jaiabot::protobuf::Command& _internal_command()
const;
852 const ::jaiabot::protobuf::Command& command()
const;
858 bool has_command_for_hub()
const;
859 void clear_command_for_hub();
860 static const int kCommandForHubFieldNumber = 15;
862 const ::jaiabot::protobuf::CommandForHub& _internal_command_for_hub()
const;
864 const ::jaiabot::protobuf::CommandForHub& command_for_hub()
const;
873 void set_has_target();
874 void clear_has_target();
875 void set_has_api_key();
876 void clear_has_api_key();
877 void set_has_status();
878 void set_has_metadata();
879 void set_has_task_packets();
880 void set_has_command();
881 void set_has_command_for_hub();
883 inline bool has_action()
const;
884 inline void clear_has_action();
886 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
887 ::google::protobuf::internal::HasBits<1> _has_bits_;
888 mutable ::google::protobuf::internal::CachedSize _cached_size_;
889 ::google::protobuf::internal::ArenaStringPtr api_key_;
899 ::google::protobuf::uint32 _oneof_case_[1];
901 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
919 *
this = ::std::move(from);
922 inline APIResponse_Nodes&
operator=(APIResponse_Nodes&& from) noexcept {
923 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
924 if (
this != &from) InternalSwap(&from);
932 return _internal_metadata_.unknown_fields();
935 return _internal_metadata_.mutable_unknown_fields();
938 static const ::google::protobuf::Descriptor*
descriptor();
957 return CreateMaybeMessage<APIResponse_Nodes>(NULL);
961 return CreateMaybeMessage<APIResponse_Nodes>(arena);
963 void CopyFrom(const ::google::protobuf::Message& from)
final;
964 void MergeFrom(const ::google::protobuf::Message& from)
final;
972 ::
google::protobuf::io::CodedInputStream* input) final;
974 ::
google::protobuf::io::CodedOutputStream* output) const final;
976 bool deterministic, ::
google::protobuf::uint8* target) const final;
982 void SetCachedSize(
int size)
const final;
985 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
988 inline void* MaybeArenaPtr()
const {
993 ::google::protobuf::Metadata
GetMetadata() const final;
1000 int hubs_size() const;
1002 static const
int kHubsFieldNumber = 1;
1003 ::
google::protobuf::int32 hubs(
int index) const;
1004 void set_hubs(
int index, ::
google::protobuf::int32 value);
1005 void add_hubs(::
google::protobuf::int32 value);
1006 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
1008 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
1012 int bots_size() const;
1014 static const
int kBotsFieldNumber = 2;
1015 ::
google::protobuf::int32 bots(
int index) const;
1016 void set_bots(
int index, ::
google::protobuf::int32 value);
1017 void add_bots(::
google::protobuf::int32 value);
1018 const ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >&
1020 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 >*
1026 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1027 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1028 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1029 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > hubs_;
1030 ::
google::protobuf::RepeatedField< ::
google::protobuf::int32 > bots_;
1049 *
this = ::std::move(from);
1052 inline APIResponse_Statuses&
operator=(APIResponse_Statuses&& from) noexcept {
1053 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1054 if (
this != &from) InternalSwap(&from);
1062 return _internal_metadata_.unknown_fields();
1065 return _internal_metadata_.mutable_unknown_fields();
1068 static const ::google::protobuf::Descriptor*
descriptor();
1087 return CreateMaybeMessage<APIResponse_Statuses>(NULL);
1091 return CreateMaybeMessage<APIResponse_Statuses>(arena);
1093 void CopyFrom(const ::google::protobuf::Message& from)
final;
1094 void MergeFrom(const ::google::protobuf::Message& from)
final;
1102 ::
google::protobuf::io::CodedInputStream* input) final;
1104 ::
google::protobuf::io::CodedOutputStream* output) const final;
1106 bool deterministic, ::
google::protobuf::uint8* target) const final;
1112 void SetCachedSize(
int size)
const final;
1115 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1118 inline void* MaybeArenaPtr()
const {
1123 ::google::protobuf::Metadata
GetMetadata() const final;
1130 int bots_size() const;
1132 static const
int kBotsFieldNumber = 1;
1142 int hubs_size() const;
1144 static const
int kHubsFieldNumber = 2;
1156 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1157 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1158 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1179 *
this = ::std::move(from);
1182 inline APIResponse_Metadatas&
operator=(APIResponse_Metadatas&& from) noexcept {
1183 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1184 if (
this != &from) InternalSwap(&from);
1192 return _internal_metadata_.unknown_fields();
1195 return _internal_metadata_.mutable_unknown_fields();
1198 static const ::google::protobuf::Descriptor*
descriptor();
1217 return CreateMaybeMessage<APIResponse_Metadatas>(NULL);
1221 return CreateMaybeMessage<APIResponse_Metadatas>(arena);
1223 void CopyFrom(const ::google::protobuf::Message& from)
final;
1224 void MergeFrom(const ::google::protobuf::Message& from)
final;
1232 ::
google::protobuf::io::CodedInputStream* input) final;
1234 ::
google::protobuf::io::CodedOutputStream* output) const final;
1236 bool deterministic, ::
google::protobuf::uint8* target) const final;
1242 void SetCachedSize(
int size)
const final;
1245 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1248 inline void* MaybeArenaPtr()
const {
1253 ::google::protobuf::Metadata
GetMetadata() const final;
1260 int hubs_size() const;
1262 static const
int kHubsFieldNumber = 1;
1274 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1275 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1276 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1296 *
this = ::std::move(from);
1299 inline APIResponse_TaskPackets&
operator=(APIResponse_TaskPackets&& from) noexcept {
1300 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1301 if (
this != &from) InternalSwap(&from);
1309 return _internal_metadata_.unknown_fields();
1312 return _internal_metadata_.mutable_unknown_fields();
1315 static const ::google::protobuf::Descriptor*
descriptor();
1334 return CreateMaybeMessage<APIResponse_TaskPackets>(NULL);
1338 return CreateMaybeMessage<APIResponse_TaskPackets>(arena);
1340 void CopyFrom(const ::google::protobuf::Message& from)
final;
1341 void MergeFrom(const ::google::protobuf::Message& from)
final;
1349 ::
google::protobuf::io::CodedInputStream* input) final;
1351 ::
google::protobuf::io::CodedOutputStream* output) const final;
1353 bool deterministic, ::
google::protobuf::uint8* target) const final;
1359 void SetCachedSize(
int size)
const final;
1362 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1365 inline void* MaybeArenaPtr()
const {
1370 ::google::protobuf::Metadata
GetMetadata() const final;
1377 int packets_size() const;
1378 void clear_packets();
1379 static const
int kPacketsFieldNumber = 1;
1391 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1392 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1393 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1413 *
this = ::std::move(from);
1416 inline APIResponse&
operator=(APIResponse&& from) noexcept {
1417 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1418 if (
this != &from) InternalSwap(&from);
1426 return _internal_metadata_.unknown_fields();
1429 return _internal_metadata_.mutable_unknown_fields();
1432 static const ::google::protobuf::Descriptor*
descriptor();
1440 kCommandResult = 14,
1460 return CreateMaybeMessage<APIResponse>(NULL);
1464 return CreateMaybeMessage<APIResponse>(arena);
1466 void CopyFrom(const ::google::protobuf::Message& from)
final;
1467 void MergeFrom(const ::google::protobuf::Message& from)
final;
1475 ::
google::protobuf::io::CodedInputStream* input) final;
1477 ::
google::protobuf::io::CodedOutputStream* output) const final;
1479 bool deterministic, ::
google::protobuf::uint8* target) const final;
1485 void SetCachedSize(
int size)
const final;
1488 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1491 inline void* MaybeArenaPtr()
const {
1496 ::google::protobuf::Metadata
GetMetadata() const final;
1508 bool has_target() const;
1509 void clear_target();
1510 static const
int kTargetFieldNumber = 1;
1520 bool has_request() const;
1521 void clear_request();
1522 static const
int kRequestFieldNumber = 20;
1532 bool has_error() const;
1534 static const
int kErrorFieldNumber = 10;
1544 bool has_status() const;
1545 void clear_status();
1546 static const
int kStatusFieldNumber = 11;
1556 bool has_metadata() const;
1557 void clear_metadata();
1558 static const
int kMetadataFieldNumber = 12;
1568 bool has_task_packets() const;
1569 void clear_task_packets();
1570 static const
int kTaskPacketsFieldNumber = 13;
1580 bool has_command_result() const;
1581 void clear_command_result();
1582 static const
int kCommandResultFieldNumber = 14;
1591 void clear_action();
1595 void set_has_target();
1596 void clear_has_target();
1597 void set_has_error();
1598 void set_has_status();
1599 void set_has_metadata();
1600 void set_has_task_packets();
1601 void set_has_command_result();
1602 void set_has_request();
1603 void clear_has_request();
1605 inline
bool has_action() const;
1606 inline
void clear_has_action();
1608 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1609 ::
google::protobuf::internal::HasBits<1> _has_bits_;
1610 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
1621 ::google::protobuf::uint32 _oneof_case_[1];
1623 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
1641 *
this = ::std::move(from);
1644 inline APIConfig_StreamingEndpoint&
operator=(APIConfig_StreamingEndpoint&& from) noexcept {
1645 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1646 if (
this != &from) InternalSwap(&from);
1654 return _internal_metadata_.unknown_fields();
1657 return _internal_metadata_.mutable_unknown_fields();
1660 static const ::google::protobuf::Descriptor*
descriptor();
1679 return CreateMaybeMessage<APIConfig_StreamingEndpoint>(NULL);
1683 return CreateMaybeMessage<APIConfig_StreamingEndpoint>(arena);
1685 void CopyFrom(const ::google::protobuf::Message& from)
final;
1686 void MergeFrom(const ::google::protobuf::Message& from)
final;
1694 ::
google::protobuf::io::CodedInputStream* input) final;
1696 ::
google::protobuf::io::CodedOutputStream* output) const final;
1698 bool deterministic, ::
google::protobuf::uint8* target) const final;
1704 void SetCachedSize(
int size)
const final;
1707 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1710 inline void* MaybeArenaPtr()
const {
1715 ::google::protobuf::Metadata
GetMetadata() const final;
1722 bool has_hostname() const;
1723 void clear_hostname();
1724 static const
int kHostnameFieldNumber = 2;
1725 const ::std::
string& hostname() const;
1726 void set_hostname(const ::std::
string& value);
1728 void set_hostname(::std::string&& value);
1730 void set_hostname(
const char* value);
1731 void set_hostname(
const char* value,
size_t size);
1732 ::std::string* mutable_hostname();
1733 ::std::string* release_hostname();
1734 void set_allocated_hostname(::std::string* hostname);
1737 bool has_hub_id()
const;
1738 void clear_hub_id();
1739 static const int kHubIdFieldNumber = 1;
1740 ::google::protobuf::int32 hub_id()
const;
1741 void set_hub_id(::google::protobuf::int32 value);
1744 bool has_port()
const;
1746 static const int kPortFieldNumber = 3;
1747 ::google::protobuf::int32 port()
const;
1748 void set_port(::google::protobuf::int32 value);
1752 void set_has_hub_id();
1753 void clear_has_hub_id();
1754 void set_has_hostname();
1755 void clear_has_hostname();
1756 void set_has_port();
1757 void clear_has_port();
1760 size_t RequiredFieldsByteSizeFallback()
const;
1762 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1763 ::google::protobuf::internal::HasBits<1> _has_bits_;
1764 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1765 ::google::protobuf::internal::ArenaStringPtr hostname_;
1766 ::google::protobuf::int32 hub_id_;
1767 ::google::protobuf::int32 port_;
1768 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
1786 *
this = ::std::move(from);
1789 inline APIConfig_APIKey&
operator=(APIConfig_APIKey&& from) noexcept {
1790 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1791 if (
this != &from) InternalSwap(&from);
1799 return _internal_metadata_.unknown_fields();
1802 return _internal_metadata_.mutable_unknown_fields();
1805 static const ::google::protobuf::Descriptor*
descriptor();
1824 return CreateMaybeMessage<APIConfig_APIKey>(NULL);
1828 return CreateMaybeMessage<APIConfig_APIKey>(arena);
1830 void CopyFrom(const ::google::protobuf::Message& from)
final;
1831 void MergeFrom(const ::google::protobuf::Message& from)
final;
1839 ::
google::protobuf::io::CodedInputStream* input) final;
1841 ::
google::protobuf::io::CodedOutputStream* output) const final;
1843 bool deterministic, ::
google::protobuf::uint8* target) const final;
1849 void SetCachedSize(
int size)
const final;
1852 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
1855 inline void* MaybeArenaPtr()
const {
1860 ::google::protobuf::Metadata
GetMetadata() const final;
1881 static inline
bool Permission_IsValid(
int value) {
1888 static const int Permission_ARRAYSIZE =
1890 static inline const ::google::protobuf::EnumDescriptor*
1905 int permission_size()
const;
1906 void clear_permission();
1907 static const int kPermissionFieldNumber = 2;
1911 const ::google::protobuf::RepeatedField<int>& permission()
const;
1912 ::google::protobuf::RepeatedField<int>* mutable_permission();
1915 bool has_private_key()
const;
1916 void clear_private_key();
1917 static const int kPrivateKeyFieldNumber = 1;
1918 const ::std::string& private_key()
const;
1919 void set_private_key(const ::std::string& value);
1921 void set_private_key(::std::string&& value);
1923 void set_private_key(
const char* value);
1924 void set_private_key(
const char* value,
size_t size);
1925 ::std::string* mutable_private_key();
1926 ::std::string* release_private_key();
1927 void set_allocated_private_key(::std::string* private_key);
1931 void set_has_private_key();
1932 void clear_has_private_key();
1934 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1935 ::google::protobuf::internal::HasBits<1> _has_bits_;
1936 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1937 ::google::protobuf::RepeatedField<int> permission_;
1938 ::google::protobuf::internal::ArenaStringPtr private_key_;
1939 friend struct ::protobuf_jaiabot_2fmessages_2frest_5fapi_2eproto::TableStruct;
1957 *
this = ::std::move(from);
1960 inline APIConfig&
operator=(APIConfig&& from) noexcept {
1961 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1962 if (
this != &from) InternalSwap(&from);
1970 return _internal_metadata_.unknown_fields();
1973 return _internal_metadata_.mutable_unknown_fields();
1976 static const ::google::protobuf::Descriptor*
descriptor();
1981 return reinterpret_cast<const APIConfig*
>(
1995 return CreateMaybeMessage<APIConfig>(NULL);
1999 return CreateMaybeMessage<APIConfig>(arena);
2001 void CopyFrom(const ::google::protobuf::Message& from)
final;
2002 void MergeFrom(const ::google::protobuf::Message& from)
final;
2010 ::
google::protobuf::io::CodedInputStream* input) final;
2012 ::
google::protobuf::io::CodedOutputStream* output) const final;
2014 bool deterministic, ::
google::protobuf::uint8* target) const final;
2020 void SetCachedSize(
int size)
const final;
2023 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
2026 inline void* MaybeArenaPtr()
const {
2031 ::google::protobuf::Metadata
GetMetadata() const final;
2041 int streaming_endpoint_size() const;
2042 void clear_streaming_endpoint();
2043 static const
int kStreamingEndpointFieldNumber = 1;
2046 mutable_streaming_endpoint();
2050 streaming_endpoint() const;
2053 int key_size() const;
2055 static const
int kKeyFieldNumber = 4;
2065 bool has_no_key_required() const;
2066 void clear_no_key_required();
2067 static const
int kNoKeyRequiredFieldNumber = 3;
2068 bool no_key_required() const;
2069 void set_no_key_required(
bool value);
2072 bool has_flask_bind_port() const;
2073 void clear_flask_bind_port();
2074 static const
int kFlaskBindPortFieldNumber = 2;
2075 ::
google::protobuf::int32 flask_bind_port() const;
2076 void set_flask_bind_port(::
google::protobuf::int32 value);
2080 void set_has_flask_bind_port();
2081 void clear_has_flask_bind_port();
2082 void set_has_no_key_required();
2083 void clear_has_no_key_required();
2085 ::
google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2086 ::
google::protobuf::internal::HasBits<1> _has_bits_;
2087 mutable ::
google::protobuf::internal::CachedSize _cached_size_;
2090 bool no_key_required_;
2091 ::
google::protobuf::int32 flask_bind_port_;
2100 #pragma GCC diagnostic push
2101 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
2107 return (_has_bits_[0] & 0x00000001u) != 0;
2109 inline void TaskPacketsRequest::set_has_start_time() {
2110 _has_bits_[0] |= 0x00000001u;
2112 inline void TaskPacketsRequest::clear_has_start_time() {
2113 _has_bits_[0] &= ~0x00000001u;
2116 start_time_ = GOOGLE_ULONGLONG(0);
2117 clear_has_start_time();
2124 set_has_start_time();
2125 start_time_ = value;
2131 return (_has_bits_[0] & 0x00000002u) != 0;
2133 inline void TaskPacketsRequest::set_has_end_time() {
2134 _has_bits_[0] |= 0x00000002u;
2136 inline void TaskPacketsRequest::clear_has_end_time() {
2137 _has_bits_[0] &= ~0x00000002u;
2140 end_time_ = GOOGLE_ULONGLONG(0);
2141 clear_has_end_time();
2159 return (_has_bits_[0] & 0x00000001u) != 0;
2161 inline void CommandResult::set_has_command_sent() {
2162 _has_bits_[0] |= 0x00000001u;
2164 inline void CommandResult::clear_has_command_sent() {
2165 _has_bits_[0] &= ~0x00000001u;
2168 command_sent_ =
false;
2169 clear_has_command_sent();
2173 return command_sent_;
2176 set_has_command_sent();
2177 command_sent_ = value;
2187 return (_has_bits_[0] & 0x00000002u) != 0;
2189 inline void APIError::set_has_code() {
2190 _has_bits_[0] |= 0x00000002u;
2192 inline void APIError::clear_has_code() {
2193 _has_bits_[0] &= ~0x00000002u;
2212 return (_has_bits_[0] & 0x00000001u) != 0;
2214 inline void APIError::set_has_details() {
2215 _has_bits_[0] |= 0x00000001u;
2217 inline void APIError::clear_has_details() {
2218 _has_bits_[0] &= ~0x00000001u;
2221 details_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2222 clear_has_details();
2226 return details_.GetNoArena();
2230 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2236 details_.SetNoArena(
2237 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2242 GOOGLE_DCHECK(value != NULL);
2244 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2249 details_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2250 ::std::string(
reinterpret_cast<const char*
>(value), size));
2256 return details_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2260 if (!has_details()) {
2263 clear_has_details();
2264 return details_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2267 if (details != NULL) {
2270 clear_has_details();
2272 details_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), details);
2282 return hubs_.size();
2289 return hubs_.Get(index);
2292 hubs_.Set(index, value);
2299 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2304 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2312 return bots_.size();
2319 return bots_.Get(index);
2322 bots_.Set(index, value);
2329 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2334 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2342 return (_has_bits_[0] & 0x00000001u) != 0;
2344 inline void APIRequest_Nodes::set_has_all() {
2345 _has_bits_[0] |= 0x00000001u;
2347 inline void APIRequest_Nodes::clear_has_all() {
2348 _has_bits_[0] &= ~0x00000001u;
2370 return (_has_bits_[0] & 0x00000002u) != 0;
2372 inline void APIRequest::set_has_target() {
2373 _has_bits_[0] |= 0x00000002u;
2375 inline void APIRequest::clear_has_target() {
2376 _has_bits_[0] &= ~0x00000002u;
2379 if (target_ != NULL) target_->Clear();
2382 inline const ::jaiabot::protobuf::APIRequest_Nodes& APIRequest::_internal_target()
const {
2386 const ::jaiabot::protobuf::APIRequest_Nodes* p = target_;
2400 if (target_ == NULL) {
2401 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIRequest_Nodes>(GetArenaNoVirtual());
2408 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2409 if (message_arena == NULL) {
2413 ::google::protobuf::Arena* submessage_arena = NULL;
2414 if (message_arena != submessage_arena) {
2415 target = ::google::protobuf::internal::GetOwnedMessage(
2416 message_arena, target, submessage_arena);
2428 return (_has_bits_[0] & 0x00000001u) != 0;
2430 inline void APIRequest::set_has_api_key() {
2431 _has_bits_[0] |= 0x00000001u;
2433 inline void APIRequest::clear_has_api_key() {
2434 _has_bits_[0] &= ~0x00000001u;
2437 api_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2438 clear_has_api_key();
2442 return api_key_.GetNoArena();
2446 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
2452 api_key_.SetNoArena(
2453 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2458 GOOGLE_DCHECK(value != NULL);
2460 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2465 api_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2466 ::std::string(
reinterpret_cast<const char*
>(value), size));
2472 return api_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2476 if (!has_api_key()) {
2479 clear_has_api_key();
2480 return api_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2483 if (api_key != NULL) {
2486 clear_has_api_key();
2488 api_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), api_key);
2494 return action_case() == kStatus;
2496 inline void APIRequest::set_has_status() {
2497 _oneof_case_[0] = kStatus;
2501 action_.status_ =
false;
2508 return action_.status_;
2513 if (!has_status()) {
2517 action_.status_ = value;
2523 return action_case() == kMetadata;
2525 inline void APIRequest::set_has_metadata() {
2526 _oneof_case_[0] = kMetadata;
2529 if (has_metadata()) {
2530 action_.metadata_ =
false;
2536 if (has_metadata()) {
2537 return action_.metadata_;
2542 if (!has_metadata()) {
2546 action_.metadata_ = value;
2552 return action_case() == kTaskPackets;
2554 inline void APIRequest::set_has_task_packets() {
2555 _oneof_case_[0] = kTaskPackets;
2558 if (has_task_packets()) {
2559 delete action_.task_packets_;
2563 inline const ::jaiabot::protobuf::TaskPacketsRequest& APIRequest::_internal_task_packets()
const {
2564 return *action_.task_packets_;
2568 if (has_task_packets()) {
2571 action_.task_packets_ = NULL;
2579 return has_task_packets()
2580 ? *action_.task_packets_
2584 if (!has_task_packets()) {
2586 set_has_task_packets();
2587 action_.task_packets_ = CreateMaybeMessage< ::jaiabot::protobuf::TaskPacketsRequest >(
2588 GetArenaNoVirtual());
2591 return action_.task_packets_;
2596 return action_case() == kCommand;
2598 inline void APIRequest::set_has_command() {
2599 _oneof_case_[0] = kCommand;
2601 inline const ::jaiabot::protobuf::Command& APIRequest::_internal_command()
const {
2602 return *action_.command_;
2606 if (has_command()) {
2609 action_.command_ = NULL;
2617 return has_command()
2622 if (!has_command()) {
2625 action_.command_ = CreateMaybeMessage< ::jaiabot::protobuf::Command >(
2626 GetArenaNoVirtual());
2629 return action_.command_;
2634 return action_case() == kCommandForHub;
2636 inline void APIRequest::set_has_command_for_hub() {
2637 _oneof_case_[0] = kCommandForHub;
2639 inline const ::jaiabot::protobuf::CommandForHub& APIRequest::_internal_command_for_hub()
const {
2640 return *action_.command_for_hub_;
2644 if (has_command_for_hub()) {
2647 action_.command_for_hub_ = NULL;
2655 return has_command_for_hub()
2656 ? *action_.command_for_hub_
2660 if (!has_command_for_hub()) {
2662 set_has_command_for_hub();
2663 action_.command_for_hub_ = CreateMaybeMessage< ::jaiabot::protobuf::CommandForHub >(
2664 GetArenaNoVirtual());
2667 return action_.command_for_hub_;
2670 inline bool APIRequest::has_action()
const {
2671 return action_case() != ACTION_NOT_SET;
2673 inline void APIRequest::clear_has_action() {
2674 _oneof_case_[0] = ACTION_NOT_SET;
2685 return hubs_.size();
2692 return hubs_.Get(index);
2695 hubs_.Set(index, value);
2702 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2707 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2715 return bots_.size();
2722 return bots_.Get(index);
2725 bots_.Set(index, value);
2732 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2737 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2749 return bots_.size();
2753 return bots_.Mutable(index);
2755 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::BotStatus >*
2762 return bots_.Get(index);
2768 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::BotStatus >&
2776 return hubs_.size();
2780 return hubs_.Mutable(index);
2782 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus >*
2789 return hubs_.Get(index);
2795 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::HubStatus >&
2807 return hubs_.size();
2811 return hubs_.Mutable(index);
2813 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::DeviceMetadata >*
2820 return hubs_.Get(index);
2826 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::DeviceMetadata >&
2838 return packets_.size();
2842 return packets_.Mutable(index);
2844 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::TaskPacket >*
2851 return packets_.Get(index);
2855 return packets_.Add();
2857 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::TaskPacket >&
2869 return (_has_bits_[0] & 0x00000001u) != 0;
2871 inline void APIResponse::set_has_target() {
2872 _has_bits_[0] |= 0x00000001u;
2874 inline void APIResponse::clear_has_target() {
2875 _has_bits_[0] &= ~0x00000001u;
2878 if (target_ != NULL) target_->Clear();
2881 inline const ::jaiabot::protobuf::APIResponse_Nodes& APIResponse::_internal_target()
const {
2885 const ::jaiabot::protobuf::APIResponse_Nodes* p = target_;
2899 if (target_ == NULL) {
2900 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIResponse_Nodes>(GetArenaNoVirtual());
2907 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
2908 if (message_arena == NULL) {
2912 ::google::protobuf::Arena* submessage_arena = NULL;
2913 if (message_arena != submessage_arena) {
2914 target = ::google::protobuf::internal::GetOwnedMessage(
2915 message_arena, target, submessage_arena);
2927 return action_case() == kError;
2929 inline void APIResponse::set_has_error() {
2930 _oneof_case_[0] = kError;
2934 delete action_.error_;
2938 inline const ::jaiabot::protobuf::APIError& APIResponse::_internal_error()
const {
2939 return *action_.error_;
2946 action_.error_ = NULL;
2962 action_.error_ = CreateMaybeMessage< ::jaiabot::protobuf::APIError >(
2963 GetArenaNoVirtual());
2966 return action_.error_;
2971 return action_case() == kStatus;
2973 inline void APIResponse::set_has_status() {
2974 _oneof_case_[0] = kStatus;
2978 delete action_.status_;
2982 inline const ::jaiabot::protobuf::APIResponse_Statuses& APIResponse::_internal_status()
const {
2983 return *action_.status_;
2990 action_.status_ = NULL;
3003 if (!has_status()) {
3006 action_.status_ = CreateMaybeMessage< ::jaiabot::protobuf::APIResponse_Statuses >(
3007 GetArenaNoVirtual());
3010 return action_.status_;
3015 return action_case() == kMetadata;
3017 inline void APIResponse::set_has_metadata() {
3018 _oneof_case_[0] = kMetadata;
3021 if (has_metadata()) {
3022 delete action_.metadata_;
3026 inline const ::jaiabot::protobuf::APIResponse_Metadatas& APIResponse::_internal_metadata()
const {
3027 return *action_.metadata_;
3031 if (has_metadata()) {
3034 action_.metadata_ = NULL;
3042 return has_metadata()
3043 ? *action_.metadata_
3047 if (!has_metadata()) {
3050 action_.metadata_ = CreateMaybeMessage< ::jaiabot::protobuf::APIResponse_Metadatas >(
3051 GetArenaNoVirtual());
3054 return action_.metadata_;
3059 return action_case() == kTaskPackets;
3061 inline void APIResponse::set_has_task_packets() {
3062 _oneof_case_[0] = kTaskPackets;
3065 if (has_task_packets()) {
3066 delete action_.task_packets_;
3070 inline const ::jaiabot::protobuf::APIResponse_TaskPackets& APIResponse::_internal_task_packets()
const {
3071 return *action_.task_packets_;
3075 if (has_task_packets()) {
3078 action_.task_packets_ = NULL;
3086 return has_task_packets()
3087 ? *action_.task_packets_
3091 if (!has_task_packets()) {
3093 set_has_task_packets();
3094 action_.task_packets_ = CreateMaybeMessage< ::jaiabot::protobuf::APIResponse_TaskPackets >(
3095 GetArenaNoVirtual());
3098 return action_.task_packets_;
3103 return action_case() == kCommandResult;
3105 inline void APIResponse::set_has_command_result() {
3106 _oneof_case_[0] = kCommandResult;
3109 if (has_command_result()) {
3110 delete action_.command_result_;
3114 inline const ::jaiabot::protobuf::CommandResult& APIResponse::_internal_command_result()
const {
3115 return *action_.command_result_;
3119 if (has_command_result()) {
3122 action_.command_result_ = NULL;
3130 return has_command_result()
3131 ? *action_.command_result_
3135 if (!has_command_result()) {
3137 set_has_command_result();
3138 action_.command_result_ = CreateMaybeMessage< ::jaiabot::protobuf::CommandResult >(
3139 GetArenaNoVirtual());
3142 return action_.command_result_;
3147 return (_has_bits_[0] & 0x00000002u) != 0;
3149 inline void APIResponse::set_has_request() {
3150 _has_bits_[0] |= 0x00000002u;
3152 inline void APIResponse::clear_has_request() {
3153 _has_bits_[0] &= ~0x00000002u;
3156 if (request_ != NULL) request_->Clear();
3157 clear_has_request();
3159 inline const ::jaiabot::protobuf::APIRequest& APIResponse::_internal_request()
const {
3163 const ::jaiabot::protobuf::APIRequest* p = request_;
3170 clear_has_request();
3177 if (request_ == NULL) {
3178 auto* p = CreateMaybeMessage<::jaiabot::protobuf::APIRequest>(GetArenaNoVirtual());
3185 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3186 if (message_arena == NULL) {
3190 ::google::protobuf::Arena* submessage_arena = NULL;
3191 if (message_arena != submessage_arena) {
3192 request = ::google::protobuf::internal::GetOwnedMessage(
3193 message_arena, request, submessage_arena);
3197 clear_has_request();
3203 inline bool APIResponse::has_action()
const {
3204 return action_case() != ACTION_NOT_SET;
3206 inline void APIResponse::clear_has_action() {
3207 _oneof_case_[0] = ACTION_NOT_SET;
3218 return (_has_bits_[0] & 0x00000002u) != 0;
3220 inline void APIConfig_StreamingEndpoint::set_has_hub_id() {
3221 _has_bits_[0] |= 0x00000002u;
3223 inline void APIConfig_StreamingEndpoint::clear_has_hub_id() {
3224 _has_bits_[0] &= ~0x00000002u;
3242 return (_has_bits_[0] & 0x00000001u) != 0;
3244 inline void APIConfig_StreamingEndpoint::set_has_hostname() {
3245 _has_bits_[0] |= 0x00000001u;
3247 inline void APIConfig_StreamingEndpoint::clear_has_hostname() {
3248 _has_bits_[0] &= ~0x00000001u;
3251 hostname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3252 clear_has_hostname();
3256 return hostname_.GetNoArena();
3260 hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3266 hostname_.SetNoArena(
3267 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3272 GOOGLE_DCHECK(value != NULL);
3274 hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3279 hostname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3280 ::std::string(
reinterpret_cast<const char*
>(value), size));
3286 return hostname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3290 if (!has_hostname()) {
3293 clear_has_hostname();
3294 return hostname_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3297 if (hostname != NULL) {
3300 clear_has_hostname();
3302 hostname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hostname);
3308 return (_has_bits_[0] & 0x00000004u) != 0;
3310 inline void APIConfig_StreamingEndpoint::set_has_port() {
3311 _has_bits_[0] |= 0x00000004u;
3313 inline void APIConfig_StreamingEndpoint::clear_has_port() {
3314 _has_bits_[0] &= ~0x00000004u;
3336 return (_has_bits_[0] & 0x00000001u) != 0;
3338 inline void APIConfig_APIKey::set_has_private_key() {
3339 _has_bits_[0] |= 0x00000001u;
3341 inline void APIConfig_APIKey::clear_has_private_key() {
3342 _has_bits_[0] &= ~0x00000001u;
3345 private_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3346 clear_has_private_key();
3350 return private_key_.GetNoArena();
3353 set_has_private_key();
3354 private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3359 set_has_private_key();
3360 private_key_.SetNoArena(
3361 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3366 GOOGLE_DCHECK(value != NULL);
3367 set_has_private_key();
3368 private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3372 set_has_private_key();
3373 private_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3374 ::std::string(
reinterpret_cast<const char*
>(value), size));
3378 set_has_private_key();
3380 return private_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3384 if (!has_private_key()) {
3387 clear_has_private_key();
3388 return private_key_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3391 if (private_key != NULL) {
3392 set_has_private_key();
3394 clear_has_private_key();
3396 private_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), private_key);
3402 return permission_.size();
3405 permission_.Clear();
3413 permission_.Set(index, value);
3418 permission_.Add(value);
3421 inline const ::google::protobuf::RepeatedField<int>&
3426 inline ::google::protobuf::RepeatedField<int>*
3429 return &permission_;
3438 return streaming_endpoint_.size();
3441 streaming_endpoint_.Clear();
3445 return streaming_endpoint_.Mutable(index);
3447 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::APIConfig_StreamingEndpoint >*
3450 return &streaming_endpoint_;
3454 return streaming_endpoint_.Get(index);
3458 return streaming_endpoint_.Add();
3460 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::APIConfig_StreamingEndpoint >&
3463 return streaming_endpoint_;
3468 return (_has_bits_[0] & 0x00000002u) != 0;
3470 inline void APIConfig::set_has_flask_bind_port() {
3471 _has_bits_[0] |= 0x00000002u;
3473 inline void APIConfig::clear_has_flask_bind_port() {
3474 _has_bits_[0] &= ~0x00000002u;
3477 flask_bind_port_ = 9092;
3478 clear_has_flask_bind_port();
3482 return flask_bind_port_;
3485 set_has_flask_bind_port();
3486 flask_bind_port_ = value;
3492 return (_has_bits_[0] & 0x00000001u) != 0;
3494 inline void APIConfig::set_has_no_key_required() {
3495 _has_bits_[0] |= 0x00000001u;
3497 inline void APIConfig::clear_has_no_key_required() {
3498 _has_bits_[0] &= ~0x00000001u;
3501 no_key_required_ =
false;
3502 clear_has_no_key_required();
3506 return no_key_required_;
3509 set_has_no_key_required();
3510 no_key_required_ = value;
3523 return key_.Mutable(index);
3525 inline ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::APIConfig_APIKey >*
3530 inline const ::jaiabot::protobuf::APIConfig_APIKey&
APIConfig::key(
int index)
const {
3532 return key_.Get(index);
3538 inline const ::google::protobuf::RepeatedPtrField< ::jaiabot::protobuf::APIConfig_APIKey >&
3545 #pragma GCC diagnostic pop
3578 namespace protobuf {
3582 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::APIConfig_APIKey_Permission>() {
3587 inline const EnumDescriptor* GetEnumDescriptor< ::jaiabot::protobuf::APIErrorCode>() {
3596 #endif // PROTOBUF_INCLUDED_jaiabot_2fmessages_2frest_5fapi_2eproto