|
|
|
@ -215,7 +215,7 @@ Api::Api(const Api& from) |
|
|
|
|
if (!from._internal_version().empty()) { |
|
|
|
|
version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_); |
|
|
|
|
} |
|
|
|
|
if (from.has_source_context()) { |
|
|
|
|
if (from._internal_has_source_context()) { |
|
|
|
|
source_context_ = new PROTOBUF_NAMESPACE_ID::SourceContext(*from.source_context_); |
|
|
|
|
} else { |
|
|
|
|
source_context_ = nullptr; |
|
|
|
@ -272,7 +272,6 @@ void Api::Clear() { |
|
|
|
|
_internal_metadata_.Clear(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
|
|
|
|
const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
@ -293,7 +292,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(add_methods(), ptr); |
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_methods(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
|
|
|
@ -305,7 +304,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(add_options(), ptr); |
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_options(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); |
|
|
|
@ -321,7 +320,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
case 5: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
|
|
|
|
ptr = ctx->ParseMessage(mutable_source_context(), ptr); |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else goto handle_unusual; |
|
|
|
|
continue; |
|
|
|
@ -331,7 +330,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(add_mixins(), ptr); |
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_mixins(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); |
|
|
|
@ -342,7 +341,7 @@ const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
_internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
} else goto handle_unusual; |
|
|
|
|
continue; |
|
|
|
|
default: { |
|
|
|
@ -364,125 +363,6 @@ failure: |
|
|
|
|
goto success; |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
bool Api::MergePartialFromCodedStream( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
|
|
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
// @@protoc_insertion_point(parse_start:google.protobuf.Api)
|
|
|
|
|
for (;;) { |
|
|
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
|
|
|
|
tag = p.first; |
|
|
|
|
if (!p.second) goto handle_unusual; |
|
|
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_name())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Api.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
|
case 2: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
|
|
|
|
input, add_methods())); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
case 3: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
|
|
|
|
input, add_options())); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string version = 4;
|
|
|
|
|
case 4: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_version())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_version().data(), static_cast<int>(this->_internal_version().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Api.version")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
case 5: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
|
|
|
|
input, mutable_source_context())); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Mixin mixins = 6;
|
|
|
|
|
case 6: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
|
|
|
|
input, add_mixins())); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
case 7: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { |
|
|
|
|
int value = 0; |
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
|
|
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
|
|
|
|
input, &value))); |
|
|
|
|
set_syntax(static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(value)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
default: { |
|
|
|
|
handle_unusual: |
|
|
|
|
if (tag == 0) { |
|
|
|
|
goto success; |
|
|
|
|
} |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
|
|
|
|
input, tag, _internal_metadata_.mutable_unknown_fields())); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
success: |
|
|
|
|
// @@protoc_insertion_point(parse_success:google.protobuf.Api)
|
|
|
|
|
return true; |
|
|
|
|
failure: |
|
|
|
|
// @@protoc_insertion_point(parse_failure:google.protobuf.Api)
|
|
|
|
|
return false; |
|
|
|
|
#undef DO_ |
|
|
|
|
} |
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Api::InternalSerializeWithCachedSizesToArray( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
@ -501,19 +381,19 @@ failure: |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
|
for (auto it = this->methods_.pointer_begin(), |
|
|
|
|
end = this->methods_.pointer_end(); it < end; ++it) { |
|
|
|
|
for (unsigned int i = 0, |
|
|
|
|
n = static_cast<unsigned int>(this->_internal_methods_size()); i < n; i++) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
|
|
|
|
InternalWriteMessageToArray(2, **it, target, stream); |
|
|
|
|
InternalWriteMessageToArray(2, this->_internal_methods(i), target, stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
for (auto it = this->options_.pointer_begin(), |
|
|
|
|
end = this->options_.pointer_end(); it < end; ++it) { |
|
|
|
|
for (unsigned int i = 0, |
|
|
|
|
n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
|
|
|
|
InternalWriteMessageToArray(3, **it, target, stream); |
|
|
|
|
InternalWriteMessageToArray(3, this->_internal_options(i), target, stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string version = 4;
|
|
|
|
@ -535,18 +415,18 @@ failure: |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Mixin mixins = 6;
|
|
|
|
|
for (auto it = this->mixins_.pointer_begin(), |
|
|
|
|
end = this->mixins_.pointer_end(); it < end; ++it) { |
|
|
|
|
for (unsigned int i = 0, |
|
|
|
|
n = static_cast<unsigned int>(this->_internal_mixins_size()); i < n; i++) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
|
|
|
|
InternalWriteMessageToArray(6, **it, target, stream); |
|
|
|
|
InternalWriteMessageToArray(6, this->_internal_mixins(i), target, stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this->syntax() != 0) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this->syntax(), target); |
|
|
|
|
7, this->_internal_syntax(), target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -566,21 +446,21 @@ size_t Api::ByteSizeLong() const { |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Method methods = 2;
|
|
|
|
|
total_size += 1UL * this->methods_size(); |
|
|
|
|
total_size += 1UL * this->_internal_methods_size(); |
|
|
|
|
for (const auto& msg : this->methods_) { |
|
|
|
|
total_size += |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
total_size += 1UL * this->options_size(); |
|
|
|
|
total_size += 1UL * this->_internal_options_size(); |
|
|
|
|
for (const auto& msg : this->options_) { |
|
|
|
|
total_size += |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Mixin mixins = 6;
|
|
|
|
|
total_size += 1UL * this->mixins_size(); |
|
|
|
|
total_size += 1UL * this->_internal_mixins_size(); |
|
|
|
|
for (const auto& msg : this->mixins_) { |
|
|
|
|
total_size += |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
|
|
|
@ -610,7 +490,7 @@ size_t Api::ByteSizeLong() const { |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this->syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->syntax()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -656,10 +536,10 @@ void Api::MergeFrom(const Api& from) { |
|
|
|
|
version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_); |
|
|
|
|
} |
|
|
|
|
if (from.has_source_context()) { |
|
|
|
|
mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from.source_context()); |
|
|
|
|
_internal_mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from._internal_source_context()); |
|
|
|
|
} |
|
|
|
|
if (from.syntax() != 0) { |
|
|
|
|
set_syntax(from.syntax()); |
|
|
|
|
_internal_set_syntax(from._internal_syntax()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -785,7 +665,6 @@ void Method::Clear() { |
|
|
|
|
_internal_metadata_.Clear(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
|
|
|
|
const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
@ -834,7 +713,7 @@ const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(add_options(), ptr); |
|
|
|
|
ptr = ctx->ParseMessage(_internal_add_options(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); |
|
|
|
@ -845,7 +724,7 @@ const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
_internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
} else goto handle_unusual; |
|
|
|
|
continue; |
|
|
|
|
default: { |
|
|
|
@ -867,133 +746,6 @@ failure: |
|
|
|
|
goto success; |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
bool Method::MergePartialFromCodedStream( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
|
|
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
// @@protoc_insertion_point(parse_start:google.protobuf.Method)
|
|
|
|
|
for (;;) { |
|
|
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
|
|
|
|
tag = p.first; |
|
|
|
|
if (!p.second) goto handle_unusual; |
|
|
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_name())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Method.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string request_type_url = 2;
|
|
|
|
|
case 2: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_request_type_url())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_request_type_url().data(), static_cast<int>(this->_internal_request_type_url().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Method.request_type_url")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
case 3: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
|
|
|
|
|
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
|
|
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
|
|
|
|
input, &request_streaming_))); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string response_type_url = 4;
|
|
|
|
|
case 4: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_response_type_url())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_response_type_url().data(), static_cast<int>(this->_internal_response_type_url().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Method.response_type_url")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
case 5: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { |
|
|
|
|
|
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
|
|
|
|
bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
|
|
|
|
input, &response_streaming_))); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
|
case 6: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
|
|
|
|
input, add_options())); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
case 7: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { |
|
|
|
|
int value = 0; |
|
|
|
|
DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
|
|
|
|
int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
|
|
|
|
input, &value))); |
|
|
|
|
set_syntax(static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(value)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
default: { |
|
|
|
|
handle_unusual: |
|
|
|
|
if (tag == 0) { |
|
|
|
|
goto success; |
|
|
|
|
} |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
|
|
|
|
input, tag, _internal_metadata_.mutable_unknown_fields())); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
success: |
|
|
|
|
// @@protoc_insertion_point(parse_success:google.protobuf.Method)
|
|
|
|
|
return true; |
|
|
|
|
failure: |
|
|
|
|
// @@protoc_insertion_point(parse_failure:google.protobuf.Method)
|
|
|
|
|
return false; |
|
|
|
|
#undef DO_ |
|
|
|
|
} |
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Method::InternalSerializeWithCachedSizesToArray( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
@ -1024,7 +776,7 @@ failure: |
|
|
|
|
// bool request_streaming = 3;
|
|
|
|
|
if (this->request_streaming() != 0) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->request_streaming(), target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_request_streaming(), target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string response_type_url = 4;
|
|
|
|
@ -1040,22 +792,22 @@ failure: |
|
|
|
|
// bool response_streaming = 5;
|
|
|
|
|
if (this->response_streaming() != 0) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->response_streaming(), target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_response_streaming(), target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
|
for (auto it = this->options_.pointer_begin(), |
|
|
|
|
end = this->options_.pointer_end(); it < end; ++it) { |
|
|
|
|
for (unsigned int i = 0, |
|
|
|
|
n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
|
|
|
|
InternalWriteMessageToArray(6, **it, target, stream); |
|
|
|
|
InternalWriteMessageToArray(6, this->_internal_options(i), target, stream); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this->syntax() != 0) { |
|
|
|
|
stream->EnsureSpace(&target); |
|
|
|
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
|
|
|
|
7, this->syntax(), target); |
|
|
|
|
7, this->_internal_syntax(), target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -1075,7 +827,7 @@ size_t Method::ByteSizeLong() const { |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 6;
|
|
|
|
|
total_size += 1UL * this->options_size(); |
|
|
|
|
total_size += 1UL * this->_internal_options_size(); |
|
|
|
|
for (const auto& msg : this->options_) { |
|
|
|
|
total_size += |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
|
|
|
@ -1115,7 +867,7 @@ size_t Method::ByteSizeLong() const { |
|
|
|
|
// .google.protobuf.Syntax syntax = 7;
|
|
|
|
|
if (this->syntax() != 0) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->syntax()); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -1163,13 +915,13 @@ void Method::MergeFrom(const Method& from) { |
|
|
|
|
response_type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_type_url_); |
|
|
|
|
} |
|
|
|
|
if (from.request_streaming() != 0) { |
|
|
|
|
set_request_streaming(from.request_streaming()); |
|
|
|
|
_internal_set_request_streaming(from._internal_request_streaming()); |
|
|
|
|
} |
|
|
|
|
if (from.response_streaming() != 0) { |
|
|
|
|
set_response_streaming(from.response_streaming()); |
|
|
|
|
_internal_set_response_streaming(from._internal_response_streaming()); |
|
|
|
|
} |
|
|
|
|
if (from.syntax() != 0) { |
|
|
|
|
set_syntax(from.syntax()); |
|
|
|
|
_internal_set_syntax(from._internal_syntax()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1275,7 +1027,6 @@ void Mixin::Clear() { |
|
|
|
|
_internal_metadata_.Clear(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
|
|
|
|
const char* Mixin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
@ -1316,67 +1067,6 @@ failure: |
|
|
|
|
goto success; |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
bool Mixin::MergePartialFromCodedStream( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
|
|
|
|
#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
// @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
|
|
|
|
|
for (;;) { |
|
|
|
|
::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
|
|
|
|
tag = p.first; |
|
|
|
|
if (!p.second) goto handle_unusual; |
|
|
|
|
switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_name())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Mixin.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string root = 2;
|
|
|
|
|
case 2: { |
|
|
|
|
if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
|
|
|
|
input, this->_internal_mutable_root())); |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_root().data(), static_cast<int>(this->_internal_root().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
|
|
|
|
"google.protobuf.Mixin.root")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
default: { |
|
|
|
|
handle_unusual: |
|
|
|
|
if (tag == 0) { |
|
|
|
|
goto success; |
|
|
|
|
} |
|
|
|
|
DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
|
|
|
|
input, tag, _internal_metadata_.mutable_unknown_fields())); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
success: |
|
|
|
|
// @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
|
|
|
|
|
return true; |
|
|
|
|
failure: |
|
|
|
|
// @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
|
|
|
|
|
return false; |
|
|
|
|
#undef DO_ |
|
|
|
|
} |
|
|
|
|
#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Mixin::InternalSerializeWithCachedSizesToArray( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|