4 #include <google/protobuf/api.pb.h>
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
18 PROTOBUF_PRAGMA_INIT_SEG
19 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
27 , source_context_(nullptr)
40 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
45 , request_streaming_(
false)
46 , response_streaming_(
false)
59 ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
71 PROTOBUF_NAMESPACE_CLOSE
125 "\n\031google/protobuf/api.proto\022\017google.prot"
126 "obuf\032$google/protobuf/source_context.pro"
127 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
128 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
129 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
130 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
131 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
132 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
133 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
134 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
135 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
136 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
137 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
138 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
139 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
140 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBv\n\023com.google.pr"
141 "otobufB\010ApiProtoP\001Z,google.golang.org/pr"
142 "otobuf/types/known/apipb\242\002\003GPB\252\002\036Google."
143 "Protobuf.WellKnownTypesb\006proto3"
151 false,
false, 751, descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto,
"google/protobuf/api.proto",
162 PROTOBUF_NAMESPACE_OPEN
173 return *
msg->source_context_;
179 if (GetArenaForAllocation() ==
nullptr &&
source_context_ !=
nullptr) {
185 bool is_message_owned)
186 : ::PROTOBUF_NAMESPACE_ID::
Message(
arena, is_message_owned),
191 if (!is_message_owned) {
197 : ::PROTOBUF_NAMESPACE_ID::
Message(),
198 methods_(
from.methods_),
200 mixins_(
from.mixins_) {
203 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
205 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
206 if (!
from._internal_name().empty()) {
208 GetArenaForAllocation());
211 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
213 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
214 if (!
from._internal_version().empty()) {
216 GetArenaForAllocation());
218 if (
from._internal_has_source_context()) {
229 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
231 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
233 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
235 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
236 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
237 reinterpret_cast<char*
>(&
source_context_) -
reinterpret_cast<char*
>(
this)),
238 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&
syntax_) -
244 if (GetArenaForAllocation() !=
nullptr)
return;
257 Api* _this =
reinterpret_cast< Api*
>(object);
270 (void) cached_has_bits;
275 name_.ClearToEmpty();
277 if (GetArenaForAllocation() ==
nullptr &&
source_context_ !=
nullptr) {
286 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
287 while (!
ctx->Done(&
ptr)) {
293 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 10)) {
303 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 18)) {
309 if (!
ctx->DataAvailable(
ptr))
break;
310 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(
ptr));
316 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 26)) {
322 if (!
ctx->DataAvailable(
ptr))
break;
323 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(
ptr));
329 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 34)) {
339 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 42)) {
347 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 50)) {
353 if (!
ctx->DataAvailable(
ptr))
break;
354 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(
ptr));
360 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 56)) {
371 if ((
tag == 0) || ((
tag & 7) == 4)) {
394 (void) cached_has_bits;
398 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
400 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
401 "google.protobuf.Api.name");
407 for (
unsigned int i = 0,
410 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
415 for (
unsigned int i = 0,
418 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
424 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
426 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
427 "google.protobuf.Api.version");
435 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
436 InternalWriteMessage(
441 for (
unsigned int i = 0,
444 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
451 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
456 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
465 size_t total_size = 0;
469 (void) cached_has_bits;
475 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
msg);
482 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
msg);
489 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
msg);
495 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
509 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
516 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
_internal_syntax());
519 return MaybeComputeUnknownFieldsSize(total_size, &
_cached_size_);
523 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
531 static_cast<const Api &
>(
from));
539 (void) cached_has_bits;
544 if (!
from._internal_name().empty()) {
547 if (!
from._internal_version().empty()) {
550 if (
from._internal_has_source_context()) {
553 if (
from._internal_syntax() != 0) {
561 if (&
from ==
this)
return;
572 auto* lhs_arena = GetArenaForAllocation();
573 auto* rhs_arena = other->GetArenaForAllocation();
578 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
581 &other->
name_, rhs_arena
583 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
612 bool is_message_owned)
613 : ::PROTOBUF_NAMESPACE_ID::
Message(
arena, is_message_owned),
616 if (!is_message_owned) {
622 : ::PROTOBUF_NAMESPACE_ID::
Message(),
626 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
628 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
629 if (!
from._internal_name().empty()) {
631 GetArenaForAllocation());
634 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
636 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
637 if (!
from._internal_request_type_url().empty()) {
639 GetArenaForAllocation());
642 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
644 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
645 if (!
from._internal_response_type_url().empty()) {
647 GetArenaForAllocation());
650 static_cast<size_t>(
reinterpret_cast<char*
>(&
syntax_) -
657 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
659 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
661 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
663 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
665 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
667 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
668 ::memset(
reinterpret_cast<char*
>(
this) +
static_cast<size_t>(
670 0,
static_cast<size_t>(
reinterpret_cast<char*
>(&
syntax_) -
676 if (GetArenaForAllocation() !=
nullptr)
return;
702 (void) cached_has_bits;
705 name_.ClearToEmpty();
709 reinterpret_cast<char*
>(&
syntax_) -
715 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
716 while (!
ctx->Done(&
ptr)) {
722 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 10)) {
732 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 18)) {
742 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 24)) {
750 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 34)) {
760 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 40)) {
768 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 50)) {
774 if (!
ctx->DataAvailable(
ptr))
break;
775 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(
ptr));
781 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 56)) {
792 if ((
tag == 0) || ((
tag & 7) == 4)) {
815 (void) cached_has_bits;
819 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
821 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
822 "google.protobuf.Method.name");
829 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
831 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
832 "google.protobuf.Method.request_type_url");
845 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
847 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
848 "google.protobuf.Method.response_type_url");
860 for (
unsigned int i = 0,
863 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
870 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
875 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
884 size_t total_size = 0;
888 (void) cached_has_bits;
892 for (
const auto&
msg : this->options_) {
894 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
msg);
900 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
907 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
914 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
931 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->
_internal_syntax());
934 return MaybeComputeUnknownFieldsSize(total_size, &
_cached_size_);
938 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
954 (void) cached_has_bits;
957 if (!
from._internal_name().empty()) {
960 if (!
from._internal_request_type_url().empty()) {
963 if (!
from._internal_response_type_url().empty()) {
966 if (
from._internal_request_streaming() != 0) {
969 if (
from._internal_response_streaming() != 0) {
972 if (
from._internal_syntax() != 0) {
980 if (&
from ==
this)
return;
991 auto* lhs_arena = GetArenaForAllocation();
992 auto* rhs_arena = other->GetArenaForAllocation();
995 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
998 &other->
name_, rhs_arena
1000 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1005 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1031 bool is_message_owned)
1032 : ::PROTOBUF_NAMESPACE_ID::
Message(
arena, is_message_owned) {
1034 if (!is_message_owned) {
1040 : ::PROTOBUF_NAMESPACE_ID::
Message() {
1043 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1045 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1046 if (!
from._internal_name().empty()) {
1048 GetArenaForAllocation());
1051 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1053 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1054 if (!
from._internal_root().empty()) {
1056 GetArenaForAllocation());
1063 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1065 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1067 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1069 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1074 if (GetArenaForAllocation() !=
nullptr)
return;
1086 Mixin* _this =
reinterpret_cast< Mixin*
>(object);
1099 (void) cached_has_bits;
1101 name_.ClearToEmpty();
1102 root_.ClearToEmpty();
1107 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1108 while (!
ctx->Done(&
ptr)) {
1114 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 10)) {
1120 goto handle_unusual;
1124 if (PROTOBUF_PREDICT_TRUE(
static_cast<uint8_t>(
tag) == 18)) {
1130 goto handle_unusual;
1133 goto handle_unusual;
1136 if ((
tag == 0) || ((
tag & 7) == 4)) {
1159 (void) cached_has_bits;
1163 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1165 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1166 "google.protobuf.Mixin.name");
1173 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1175 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1176 "google.protobuf.Mixin.root");
1182 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1191 size_t total_size = 0;
1195 (void) cached_has_bits;
1200 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1207 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1211 return MaybeComputeUnknownFieldsSize(total_size, &
_cached_size_);
1215 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
1231 (void) cached_has_bits;
1233 if (!
from._internal_name().empty()) {
1236 if (!
from._internal_root().empty()) {
1244 if (&
from ==
this)
return;
1255 auto* lhs_arena = GetArenaForAllocation();
1256 auto* rhs_arena = other->GetArenaForAllocation();
1258 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1261 &other->
name_, rhs_arena
1263 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1266 &other->
root_, rhs_arena
1277 PROTOBUF_NAMESPACE_CLOSE
1278 PROTOBUF_NAMESPACE_OPEN
1280 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Api >(
arena);
1283 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Method >(
arena);
1286 return Arena::CreateMessageInternal< ::PROTOBUF_NAMESPACE_ID::Mixin >(
arena);
1288 PROTOBUF_NAMESPACE_CLOSE
1291 #include <google/protobuf/port_undef.inc>