diff --git a/src/google/protobuf/compiler/cpp/options.h b/src/google/protobuf/compiler/cpp/options.h index adbcdfe36f086..11e5274e64534 100644 --- a/src/google/protobuf/compiler/cpp/options.h +++ b/src/google/protobuf/compiler/cpp/options.h @@ -67,7 +67,7 @@ struct Options { std::string annotation_guard_name; FieldListenerOptions field_listener_options; EnforceOptimizeMode enforce_mode = EnforceOptimizeMode::kNoEnforcement; - enum { kTCTableNever, kTCTableAlways } tctable_mode = kTCTableNever; + enum { kTCTableNever, kTCTableAlways } tctable_mode = kTCTableAlways; int num_cc_files = 0; bool safe_boundary_check = false; bool proto_h = false; diff --git a/src/google/protobuf/compiler/plugin.pb.cc b/src/google/protobuf/compiler/plugin.pb.cc index a76908291534c..b7f17a8e6aa1d 100644 --- a/src/google/protobuf/compiler/plugin.pb.cc +++ b/src/google/protobuf/compiler/plugin.pb.cc @@ -11,6 +11,7 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -18,6 +19,7 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace protobuf { namespace compiler { @@ -394,80 +396,64 @@ PROTOBUF_NOINLINE void Version::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* Version::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 major = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_major(&has_bits); - _impl_.major_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 minor = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_minor(&has_bits); - _impl_.minor_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 patch = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_patch(&has_bits); - _impl_.patch_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string suffix = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_suffix(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.Version.suffix"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* Version::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 47, 2> Version::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967280, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_Version_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional string suffix = 4; + {::_pbi::TcParser::FastSS1, + {34, 0, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_)}}, + // optional int32 major = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.major_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.major_)}}, + // optional int32 minor = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.minor_), 2>(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_)}}, + // optional int32 patch = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Version, _impl_.patch_), 3>(), + {24, 3, 0, PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 major = 1; + {PROTOBUF_FIELD_OFFSET(Version, _impl_.major_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 minor = 2; + {PROTOBUF_FIELD_OFFSET(Version, _impl_.minor_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 patch = 3; + {PROTOBUF_FIELD_OFFSET(Version, _impl_.patch_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string suffix = 4; + {PROTOBUF_FIELD_OFFSET(Version, _impl_.suffix_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\40\0\0\0\6\0\0\0" + "google.protobuf.compiler.Version" + "suffix" + }}, +}; + ::uint8_t* Version::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.Version) @@ -727,91 +713,70 @@ PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* CodeGeneratorRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated string file_to_generate = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_mutable_file_to_generate()->Add(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.file_to_generate"); - #endif // !NDEBUG - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional string parameter = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_parameter(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorRequest.parameter"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.compiler.Version compiler_version = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_compiler_version(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.FileDescriptorProto proto_file = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 122)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_proto_file()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<122>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* CodeGeneratorRequest::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 4, 2, 79, 2> CodeGeneratorRequest::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_), + 0, // no _extensions_ + 15, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294950904, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CodeGeneratorRequest_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated string file_to_generate = 1; + {::_pbi::TcParser::FastSR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_)}}, + // optional string parameter = 2; + {::_pbi::TcParser::FastSS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_)}}, + // optional .google.protobuf.compiler.Version compiler_version = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.protobuf.FileDescriptorProto proto_file = 15; + {::_pbi::TcParser::FastMtR1, + {122, 63, 1, PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string file_to_generate = 1; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.file_to_generate_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)}, + // optional string parameter = 2; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.parameter_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.compiler.Version compiler_version = 3; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.compiler_version_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.FileDescriptorProto proto_file = 15; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_.proto_file_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::compiler::Version>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()}, + }}, {{ + "\55\20\11\0\0\0\0\0" + "google.protobuf.compiler.CodeGeneratorRequest" + "file_to_generate" + "parameter" + }}, +}; + ::uint8_t* CodeGeneratorRequest::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorRequest) @@ -1105,85 +1070,66 @@ PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* CodeGeneratorResponse_File::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string insertion_point = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_insertion_point(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string content = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 122)) { - auto str = _internal_mutable_content(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.File.content"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 130)) { - ptr = ctx->ParseMessage(_internal_mutable_generated_code_info(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* CodeGeneratorResponse_File::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 1, 86, 2> CodeGeneratorResponse_File::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_), + 0, // no _extensions_ + 16, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294918140, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CodeGeneratorResponse_File_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; + {::_pbi::TcParser::FastMtS2, + {386, 3, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_)}}, + // optional string insertion_point = 2; + {::_pbi::TcParser::FastSS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_)}}, + // optional string content = 15; + {::_pbi::TcParser::FastSS1, + {122, 2, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string insertion_point = 2; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.insertion_point_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string content = 15; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.content_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_.generated_code_info_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::GeneratedCodeInfo>()}, + }}, {{ + "\63\4\17\7\0\0\0\0" + "google.protobuf.compiler.CodeGeneratorResponse.File" + "name" + "insertion_point" + "content" + }}, +}; + ::uint8_t* CodeGeneratorResponse_File::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse.File) @@ -1426,74 +1372,59 @@ PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* CodeGeneratorResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string error = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_error(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.compiler.CodeGeneratorResponse.error"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional uint64 supported_features = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_supported_features(&has_bits); - _impl_.supported_features_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 122)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_file()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<122>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* CodeGeneratorResponse::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 1, 60, 2> CodeGeneratorResponse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_), + 0, // no _extensions_ + 15, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294950908, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_CodeGeneratorResponse_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string error = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_)}}, + // optional uint64 supported_features = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(CodeGeneratorResponse, _impl_.supported_features_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_)}}, + // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; + {::_pbi::TcParser::FastMtR1, + {122, 63, 0, PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string error = 1; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.error_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional uint64 supported_features = 2; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.supported_features_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; + {PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_.file_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::compiler::CodeGeneratorResponse_File>()}, + }}, {{ + "\56\5\0\0\0\0\0\0" + "google.protobuf.compiler.CodeGeneratorResponse" + "error" + }}, +}; + ::uint8_t* CodeGeneratorResponse::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.compiler.CodeGeneratorResponse) diff --git a/src/google/protobuf/compiler/plugin.pb.h b/src/google/protobuf/compiler/plugin.pb.h index 6ca1d3bb55421..e24f387ed053d 100644 --- a/src/google/protobuf/compiler/plugin.pb.h +++ b/src/google/protobuf/compiler/plugin.pb.h @@ -24,6 +24,7 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -310,6 +311,8 @@ class PROTOC_EXPORT Version final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 0, 47, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -539,6 +542,8 @@ class PROTOC_EXPORT CodeGeneratorRequest final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 4, 2, 79, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -756,6 +761,8 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 4, 1, 86, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -974,6 +981,8 @@ class PROTOC_EXPORT CodeGeneratorResponse final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 60, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index b2ccbc431ce5e..79dc662ba7529 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -11,6 +11,7 @@ #include "google/protobuf/generated_message_reflection.h" #include "google/protobuf/reflection_ops.h" #include "google/protobuf/wire_format.h" +#include "google/protobuf/generated_message_tctable_impl.h" // @@protoc_insertion_point(includes) // Must be included last. @@ -18,6 +19,7 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; +namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace protobuf { PROTOBUF_CONSTEXPR FileDescriptorSet::FileDescriptorSet(::_pbi::ConstantInitialized) @@ -2037,49 +2039,42 @@ PROTOBUF_NOINLINE void FileDescriptorSet::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* FileDescriptorSet::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.FileDescriptorProto file = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_file()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* FileDescriptorSet::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<0, 1, 1, 0, 2> FileDescriptorSet::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_FileDescriptorSet_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .google.protobuf.FileDescriptorProto file = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorSet, _impl_.file_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.protobuf.FileDescriptorProto file = 1; + {PROTOBUF_FIELD_OFFSET(FileDescriptorSet, _impl_.file_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::FileDescriptorProto>()}, + }}, {{ + }}, +}; + ::uint8_t* FileDescriptorSet::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorSet) @@ -2368,215 +2363,129 @@ PROTOBUF_NOINLINE void FileDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* FileDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string package = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_package(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.package"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated string dependency = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_mutable_dependency()->Add(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.dependency"); - #endif // !NDEBUG - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.DescriptorProto message_type = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_message_type()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<34>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_enum_type()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<42>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.ServiceDescriptorProto service = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_service()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.FieldDescriptorProto extension = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_extension()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<58>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FileOptions options = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.SourceCodeInfo source_code_info = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_source_code_info(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated int32 public_dependency = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { - ptr -= 1; - do { - ptr += 1; - _internal_mutable_public_dependency()->Add(::google::protobuf::internal::ReadVarint32(&ptr)); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<80>(ptr)); - } else if (static_cast<::uint8_t>(tag) == 82) { - ptr = ::google::protobuf::internal::PackedInt32Parser(_internal_mutable_public_dependency(), ptr, ctx); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated int32 weak_dependency = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) { - ptr -= 1; - do { - ptr += 1; - _internal_mutable_weak_dependency()->Add(::google::protobuf::internal::ReadVarint32(&ptr)); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<88>(ptr)); - } else if (static_cast<::uint8_t>(tag) == 90) { - ptr = ::google::protobuf::internal::PackedInt32Parser(_internal_mutable_weak_dependency(), ptr, ctx); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string syntax = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) { - auto str = _internal_mutable_syntax(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.syntax"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string edition = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 106)) { - auto str = _internal_mutable_edition(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileDescriptorProto.edition"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* FileDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<4, 13, 6, 86, 2> FileDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 13, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294959104, // skipmap + offsetof(decltype(_table_), field_entries), + 13, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_FileDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.name_)}}, + // optional string package = 2; + {::_pbi::TcParser::FastSS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.package_)}}, + // repeated string dependency = 3; + {::_pbi::TcParser::FastSR1, + {26, 63, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.dependency_)}}, + // repeated .google.protobuf.DescriptorProto message_type = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.message_type_)}}, + // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 1, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.enum_type_)}}, + // repeated .google.protobuf.ServiceDescriptorProto service = 6; + {::_pbi::TcParser::FastMtR1, + {50, 63, 2, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.service_)}}, + // repeated .google.protobuf.FieldDescriptorProto extension = 7; + {::_pbi::TcParser::FastMtR1, + {58, 63, 3, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.extension_)}}, + // optional .google.protobuf.FileOptions options = 8; + {::_pbi::TcParser::FastMtS1, + {66, 4, 4, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.options_)}}, + // optional .google.protobuf.SourceCodeInfo source_code_info = 9; + {::_pbi::TcParser::FastMtS1, + {74, 5, 5, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.source_code_info_)}}, + // repeated int32 public_dependency = 10; + {::_pbi::TcParser::FastV32R1, + {80, 63, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.public_dependency_)}}, + // repeated int32 weak_dependency = 11; + {::_pbi::TcParser::FastV32R1, + {88, 63, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.weak_dependency_)}}, + // optional string syntax = 12; + {::_pbi::TcParser::FastSS1, + {98, 2, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.syntax_)}}, + // optional string edition = 13; + {::_pbi::TcParser::FastSS1, + {106, 3, 0, PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.edition_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string package = 2; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.package_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated string dependency = 3; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.dependency_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)}, + // repeated .google.protobuf.DescriptorProto message_type = 4; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.message_type_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.EnumDescriptorProto enum_type = 5; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.enum_type_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.ServiceDescriptorProto service = 6; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.service_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.FieldDescriptorProto extension = 7; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.extension_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.FileOptions options = 8; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 4, 4, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.SourceCodeInfo source_code_info = 9; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.source_code_info_), _Internal::kHasBitsOffset + 5, 5, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated int32 public_dependency = 10; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.public_dependency_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kInt32)}, + // repeated int32 weak_dependency = 11; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.weak_dependency_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kInt32)}, + // optional string syntax = 12; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.syntax_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string edition = 13; + {PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_.edition_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::DescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::EnumDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::ServiceDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::FieldDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::FileOptions>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::SourceCodeInfo>()}, + }}, {{ + "\43\4\7\12\0\0\0\0\0\0\0\0\6\7\0\0" + "google.protobuf.FileDescriptorProto" + "name" + "package" + "dependency" + "syntax" + "edition" + }}, +}; + ::uint8_t* FileDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileDescriptorProto) @@ -3002,66 +2911,55 @@ PROTOBUF_NOINLINE void DescriptorProto_ExtensionRange::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* DescriptorProto_ExtensionRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 start = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_start(&has_bits); - _impl_.start_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 end = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_end(&has_bits); - _impl_.end_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.ExtensionRangeOptions options = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* DescriptorProto_ExtensionRange::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 3, 1, 0, 2> DescriptorProto_ExtensionRange::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_DescriptorProto_ExtensionRange_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int32 start = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DescriptorProto_ExtensionRange, _impl_.start_), 1>(), + {8, 1, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.start_)}}, + // optional int32 end = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DescriptorProto_ExtensionRange, _impl_.end_), 2>(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.end_)}}, + // optional .google.protobuf.ExtensionRangeOptions options = 3; + {::_pbi::TcParser::FastMtS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.options_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 start = 1; + {PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.start_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 end = 2; + {PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.end_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .google.protobuf.ExtensionRangeOptions options = 3; + {PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_.options_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::ExtensionRangeOptions>()}, + }}, {{ + }}, +}; + ::uint8_t* DescriptorProto_ExtensionRange::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ExtensionRange) @@ -3262,57 +3160,48 @@ PROTOBUF_NOINLINE void DescriptorProto_ReservedRange::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* DescriptorProto_ReservedRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 start = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_start(&has_bits); - _impl_.start_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 end = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_end(&has_bits); - _impl_.end_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* DescriptorProto_ReservedRange::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<1, 2, 0, 0, 2> DescriptorProto_ReservedRange::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_DescriptorProto_ReservedRange_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional int32 end = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DescriptorProto_ReservedRange, _impl_.end_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_.end_)}}, + // optional int32 start = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(DescriptorProto_ReservedRange, _impl_.start_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_.start_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 start = 1; + {PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_.start_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 end = 2; + {PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_.end_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* DescriptorProto_ReservedRange::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto.ReservedRange) @@ -3556,175 +3445,113 @@ PROTOBUF_NOINLINE void DescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* DescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.DescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.FieldDescriptorProto field = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_field()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.DescriptorProto nested_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_nested_type()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<26>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_enum_type()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<34>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_extension_range()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<42>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.FieldDescriptorProto extension = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_extension()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.MessageOptions options = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_oneof_decl()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<66>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_reserved_range()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<74>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated string reserved_name = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_mutable_reserved_name()->Add(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.DescriptorProto.reserved_name"); - #endif // !NDEBUG - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<82>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* DescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<4, 10, 8, 65, 2> DescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 10, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966272, // skipmap + offsetof(decltype(_table_), field_entries), + 10, // num_field_entries + 8, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_DescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.name_)}}, + // repeated .google.protobuf.FieldDescriptorProto field = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.field_)}}, + // repeated .google.protobuf.DescriptorProto nested_type = 3; + {::_pbi::TcParser::FastMtR1, + {26, 63, 1, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.nested_type_)}}, + // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 2, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.enum_type_)}}, + // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + {::_pbi::TcParser::FastMtR1, + {42, 63, 3, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.extension_range_)}}, + // repeated .google.protobuf.FieldDescriptorProto extension = 6; + {::_pbi::TcParser::FastMtR1, + {50, 63, 4, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.extension_)}}, + // optional .google.protobuf.MessageOptions options = 7; + {::_pbi::TcParser::FastMtS1, + {58, 1, 5, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.options_)}}, + // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + {::_pbi::TcParser::FastMtR1, + {66, 63, 6, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.oneof_decl_)}}, + // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + {::_pbi::TcParser::FastMtR1, + {74, 63, 7, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.reserved_range_)}}, + // repeated string reserved_name = 10; + {::_pbi::TcParser::FastSR1, + {82, 63, 0, PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.reserved_name_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated .google.protobuf.FieldDescriptorProto field = 2; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.field_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.DescriptorProto nested_type = 3; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.nested_type_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.EnumDescriptorProto enum_type = 4; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.enum_type_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.extension_range_), -1, 3, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.FieldDescriptorProto extension = 6; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.extension_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.MessageOptions options = 7; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 1, 5, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.oneof_decl_), -1, 6, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.reserved_range_), -1, 7, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated string reserved_name = 10; + {PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_.reserved_name_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::FieldDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::DescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::EnumDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::DescriptorProto_ExtensionRange>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::FieldDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::MessageOptions>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::OneofDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::DescriptorProto_ReservedRange>()}, + }}, {{ + "\37\4\0\0\0\0\0\0\0\0\15\0\0\0\0\0" + "google.protobuf.DescriptorProto" + "name" + "reserved_name" + }}, +}; + ::uint8_t* DescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DescriptorProto) @@ -4120,103 +3947,78 @@ PROTOBUF_NOINLINE void ExtensionRangeOptions_Declaration::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* ExtensionRangeOptions_Declaration::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 number = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_number(&has_bits); - _impl_.number_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string full_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_full_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.ExtensionRangeOptions.Declaration.full_name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.ExtensionRangeOptions.Declaration.type"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional bool is_repeated = 4 [deprecated = true]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _Internal::set_has_is_repeated(&has_bits); - _impl_.is_repeated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool reserved = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _Internal::set_has_reserved(&has_bits); - _impl_.reserved_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool repeated = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _Internal::set_has_repeated(&has_bits); - _impl_.repeated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* ExtensionRangeOptions_Declaration::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 6, 0, 71, 2> ExtensionRangeOptions_Declaration::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_ExtensionRangeOptions_Declaration_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional int32 number = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(ExtensionRangeOptions_Declaration, _impl_.number_), 2>(), + {8, 2, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.number_)}}, + // optional string full_name = 2; + {::_pbi::TcParser::FastSS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.full_name_)}}, + // optional string type = 3; + {::_pbi::TcParser::FastSS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.type_)}}, + // optional bool is_repeated = 4 [deprecated = true]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.is_repeated_)}}, + // optional bool reserved = 5; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.reserved_)}}, + // optional bool repeated = 6; + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.repeated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 number = 1; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.number_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string full_name = 2; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.full_name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string type = 3; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional bool is_repeated = 4 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.is_repeated_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool reserved = 5; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.reserved_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool repeated = 6; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_.repeated_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\61\0\11\4\0\0\0\0" + "google.protobuf.ExtensionRangeOptions.Declaration" + "full_name" + "type" + }}, +}; + ::uint8_t* ExtensionRangeOptions_Declaration::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ExtensionRangeOptions.Declaration) @@ -4478,84 +4280,55 @@ PROTOBUF_NOINLINE void ExtensionRangeOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* ExtensionRangeOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [retention = RETENTION_SOURCE]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_declaration()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::ExtensionRangeOptions_VerificationState_IsValid(static_cast(val)))) { - _internal_set_verification(static_cast<::google::protobuf::ExtensionRangeOptions_VerificationState>(val)); - } else { - ::google::protobuf::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* ExtensionRangeOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<1, 3, 3, 0, 7> ExtensionRangeOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_._extensions_), + 999, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967289, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ExtensionRangeOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [retention = RETENTION_SOURCE]; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_.declaration_)}}, + // optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; + {::_pbi::TcParser::FastEr0S1, + {24, 0, 1, PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_.verification_)}}, + }}, {{ + 999, 0, 1, + 65534, 2, + 65535, 65535 + }}, {{ + // repeated .google.protobuf.ExtensionRangeOptions.Declaration declaration = 2 [retention = RETENTION_SOURCE]; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_.declaration_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_.verification_), _Internal::kHasBitsOffset + 0, 1, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_.uninterpreted_option_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::ExtensionRangeOptions_Declaration>()}, + {0, 2}, + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* ExtensionRangeOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ExtensionRangeOptions) @@ -4906,169 +4679,114 @@ PROTOBUF_NOINLINE void FieldDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* FieldDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string extendee = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_extendee(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.extendee"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional int32 number = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_number(&has_bits); - _impl_.number_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldDescriptorProto.Label label = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldDescriptorProto_Label_IsValid(static_cast(val)))) { - _internal_set_label(static_cast<::google::protobuf::FieldDescriptorProto_Label>(val)); - } else { - ::google::protobuf::internal::WriteVarint(4, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldDescriptorProto.Type type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldDescriptorProto_Type_IsValid(static_cast(val)))) { - _internal_set_type(static_cast<::google::protobuf::FieldDescriptorProto_Type>(val)); - } else { - ::google::protobuf::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional string type_name = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - auto str = _internal_mutable_type_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.type_name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string default_value = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_default_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.default_value"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldOptions options = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 oneof_index = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) { - _Internal::set_has_oneof_index(&has_bits); - _impl_.oneof_index_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string json_name = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) { - auto str = _internal_mutable_json_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FieldDescriptorProto.json_name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional bool proto3_optional = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) { - _Internal::set_has_proto3_optional(&has_bits); - _impl_.proto3_optional_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* FieldDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<4, 11, 3, 96, 2> FieldDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 17, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294900736, // skipmap + offsetof(decltype(_table_), field_entries), + 11, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_FieldDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.name_)}}, + // optional string extendee = 2; + {::_pbi::TcParser::FastSS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.extendee_)}}, + // optional int32 number = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FieldDescriptorProto, _impl_.number_), 6>(), + {24, 6, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.number_)}}, + // optional .google.protobuf.FieldDescriptorProto.Label label = 4; + {::_pbi::TcParser::FastEr1S1, + {32, 9, 3, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.label_)}}, + // optional .google.protobuf.FieldDescriptorProto.Type type = 5; + {::_pbi::TcParser::FastEr1S1, + {40, 10, 18, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.type_)}}, + // optional string type_name = 6; + {::_pbi::TcParser::FastSS1, + {50, 2, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.type_name_)}}, + // optional string default_value = 7; + {::_pbi::TcParser::FastSS1, + {58, 3, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.default_value_)}}, + // optional .google.protobuf.FieldOptions options = 8; + {::_pbi::TcParser::FastMtS1, + {66, 5, 2, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.options_)}}, + // optional int32 oneof_index = 9; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(FieldDescriptorProto, _impl_.oneof_index_), 7>(), + {72, 7, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.oneof_index_)}}, + // optional string json_name = 10; + {::_pbi::TcParser::FastSS1, + {82, 4, 0, PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.json_name_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string extendee = 2; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.extendee_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional int32 number = 3; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.number_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .google.protobuf.FieldDescriptorProto.Label label = 4; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.label_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .google.protobuf.FieldDescriptorProto.Type type = 5; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.type_), _Internal::kHasBitsOffset + 10, 1, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional string type_name = 6; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.type_name_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string default_value = 7; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.default_value_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.FieldOptions options = 8; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 5, 2, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional int32 oneof_index = 9; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.oneof_index_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional string json_name = 10; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.json_name_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional bool proto3_optional = 17; + {PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_.proto3_optional_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, {{ + {1, 3}, + {1, 18}, + {::_pbi::TcParser::GetTable<::google::protobuf::FieldOptions>()}, + }}, {{ + "\44\4\10\0\0\0\11\15\0\0\11\0\0\0\0\0" + "google.protobuf.FieldDescriptorProto" + "name" + "extendee" + "type_name" + "default_value" + "json_name" + }}, +}; + ::uint8_t* FieldDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldDescriptorProto) @@ -5450,59 +5168,51 @@ PROTOBUF_NOINLINE void OneofDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* OneofDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.OneofDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.OneofOptions options = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* OneofDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<1, 2, 1, 49, 2> OneofDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_OneofDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional .google.protobuf.OneofOptions options = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_.options_)}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.OneofOptions options = 2; + {PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::OneofOptions>()}, + }}, {{ + "\44\4\0\0\0\0\0\0" + "google.protobuf.OneofDescriptorProto" + "name" + }}, +}; + ::uint8_t* OneofDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofDescriptorProto) @@ -5686,57 +5396,48 @@ PROTOBUF_NOINLINE void EnumDescriptorProto_EnumReservedRange::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* EnumDescriptorProto_EnumReservedRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 start = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_start(&has_bits); - _impl_.start_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 end = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_end(&has_bits); - _impl_.end_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* EnumDescriptorProto_EnumReservedRange::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<1, 2, 0, 0, 2> EnumDescriptorProto_EnumReservedRange::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_EnumDescriptorProto_EnumReservedRange_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional int32 end = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumDescriptorProto_EnumReservedRange, _impl_.end_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_.end_)}}, + // optional int32 start = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumDescriptorProto_EnumReservedRange, _impl_.start_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_.start_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional int32 start = 1; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_.start_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 end = 2; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_.end_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; + ::uint8_t* EnumDescriptorProto_EnumReservedRange::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto.EnumReservedRange) @@ -5960,105 +5661,75 @@ PROTOBUF_NOINLINE void EnumDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* EnumDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.EnumDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.EnumValueDescriptorProto value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_value()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.EnumOptions options = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_reserved_range()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<34>(ptr)); - } else { - goto handle_unusual; - } - continue; - // repeated string reserved_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_mutable_reserved_name()->Add(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.EnumDescriptorProto.reserved_name"); - #endif // !NDEBUG - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<42>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* EnumDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 5, 3, 61, 2> EnumDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 3, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_EnumDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.name_)}}, + // repeated .google.protobuf.EnumValueDescriptorProto value = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.value_)}}, + // optional .google.protobuf.EnumOptions options = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.options_)}}, + // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; + {::_pbi::TcParser::FastMtR1, + {34, 63, 2, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.reserved_range_)}}, + // repeated string reserved_name = 5; + {::_pbi::TcParser::FastSR1, + {42, 63, 0, PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.reserved_name_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated .google.protobuf.EnumValueDescriptorProto value = 2; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.value_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.EnumOptions options = 3; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.reserved_range_), -1, 2, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated string reserved_name = 5; + {PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_.reserved_name_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::EnumValueDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::EnumOptions>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::EnumDescriptorProto_EnumReservedRange>()}, + }}, {{ + "\43\4\0\0\0\15\0\0" + "google.protobuf.EnumDescriptorProto" + "name" + "reserved_name" + }}, +}; + ::uint8_t* EnumDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumDescriptorProto) @@ -6335,69 +6006,58 @@ PROTOBUF_NOINLINE void EnumValueDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* EnumValueDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.EnumValueDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional int32 number = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_number(&has_bits); - _impl_.number_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.EnumValueOptions options = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* EnumValueDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 3, 1, 53, 2> EnumValueDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_EnumValueDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.name_)}}, + // optional int32 number = 2; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumValueDescriptorProto, _impl_.number_), 2>(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.number_)}}, + // optional .google.protobuf.EnumValueOptions options = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.options_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional int32 number = 2; + {PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.number_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .google.protobuf.EnumValueOptions options = 3; + {PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::EnumValueOptions>()}, + }}, {{ + "\50\4\0\0\0\0\0\0" + "google.protobuf.EnumValueDescriptorProto" + "name" + }}, +}; + ::uint8_t* EnumValueDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueDescriptorProto) @@ -6639,73 +6299,59 @@ PROTOBUF_NOINLINE void ServiceDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* ServiceDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.ServiceDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.MethodDescriptorProto method = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_method()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.ServiceOptions options = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* ServiceDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 3, 2, 51, 2> ServiceDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967288, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ServiceDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.name_)}}, + // repeated .google.protobuf.MethodDescriptorProto method = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.method_)}}, + // optional .google.protobuf.ServiceOptions options = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 1, PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.options_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated .google.protobuf.MethodDescriptorProto method = 2; + {PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.method_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional .google.protobuf.ServiceOptions options = 3; + {PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::MethodDescriptorProto>()}, + {::_pbi::TcParser::GetTable<::google::protobuf::ServiceOptions>()}, + }}, {{ + "\46\4\0\0\0\0\0\0" + "google.protobuf.ServiceDescriptorProto" + "name" + }}, +}; + ::uint8_t* ServiceDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceDescriptorProto) @@ -6996,105 +6642,79 @@ PROTOBUF_NOINLINE void MethodDescriptorProto::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* MethodDescriptorProto::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.name"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string input_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_input_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.input_type"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string output_type = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_output_type(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.MethodDescriptorProto.output_type"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.MethodOptions options = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool client_streaming = 5 [default = false]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _Internal::set_has_client_streaming(&has_bits); - _impl_.client_streaming_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool server_streaming = 6 [default = false]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _Internal::set_has_server_streaming(&has_bits); - _impl_.server_streaming_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* MethodDescriptorProto::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 6, 1, 71, 2> MethodDescriptorProto::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967232, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_MethodDescriptorProto_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string name = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.name_)}}, + // optional string input_type = 2; + {::_pbi::TcParser::FastSS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.input_type_)}}, + // optional string output_type = 3; + {::_pbi::TcParser::FastSS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.output_type_)}}, + // optional .google.protobuf.MethodOptions options = 4; + {::_pbi::TcParser::FastMtS1, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.options_)}}, + // optional bool client_streaming = 5 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.client_streaming_)}}, + // optional bool server_streaming = 6 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.server_streaming_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // optional string name = 1; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string input_type = 2; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.input_type_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string output_type = 3; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.output_type_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.MethodOptions options = 4; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.options_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional bool client_streaming = 5 [default = false]; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.client_streaming_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool server_streaming = 6 [default = false]; + {PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_.server_streaming_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::MethodOptions>()}, + }}, {{ + "\45\4\12\13\0\0\0\0" + "google.protobuf.MethodDescriptorProto" + "name" + "input_type" + "output_type" + }}, +}; + ::uint8_t* MethodDescriptorProto::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodDescriptorProto) @@ -7624,290 +7244,183 @@ PROTOBUF_NOINLINE void FileOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* FileOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string java_package = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_java_package(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.java_package"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string java_outer_classname = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - auto str = _internal_mutable_java_outer_classname(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.java_outer_classname"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FileOptions_OptimizeMode_IsValid(static_cast(val)))) { - _internal_set_optimize_for(static_cast<::google::protobuf::FileOptions_OptimizeMode>(val)); - } else { - ::google::protobuf::internal::WriteVarint(9, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional bool java_multiple_files = 10 [default = false]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { - _Internal::set_has_java_multiple_files(&has_bits); - _impl_.java_multiple_files_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string go_package = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) { - auto str = _internal_mutable_go_package(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.go_package"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional bool cc_generic_services = 16 [default = false]; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) { - _Internal::set_has_cc_generic_services(&has_bits); - _impl_.cc_generic_services_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool java_generic_services = 17 [default = false]; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) { - _Internal::set_has_java_generic_services(&has_bits); - _impl_.java_generic_services_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool py_generic_services = 18 [default = false]; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 144)) { - _Internal::set_has_py_generic_services(&has_bits); - _impl_.py_generic_services_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 160)) { - _Internal::set_has_java_generate_equals_and_hash(&has_bits); - _impl_.java_generate_equals_and_hash_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated = 23 [default = false]; - case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 184)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool java_string_check_utf8 = 27 [default = false]; - case 27: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 216)) { - _Internal::set_has_java_string_check_utf8(&has_bits); - _impl_.java_string_check_utf8_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool cc_enable_arenas = 31 [default = true]; - case 31: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 248)) { - _Internal::set_has_cc_enable_arenas(&has_bits); - _impl_.cc_enable_arenas_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string objc_class_prefix = 36; - case 36: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_objc_class_prefix(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.objc_class_prefix"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string csharp_namespace = 37; - case 37: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { - auto str = _internal_mutable_csharp_namespace(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.csharp_namespace"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string swift_prefix = 39; - case 39: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_swift_prefix(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.swift_prefix"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string php_class_prefix = 40; - case 40: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - auto str = _internal_mutable_php_class_prefix(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_class_prefix"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string php_namespace = 41; - case 41: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { - auto str = _internal_mutable_php_namespace(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_namespace"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional bool php_generic_services = 42 [default = false]; - case 42: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { - _Internal::set_has_php_generic_services(&has_bits); - _impl_.php_generic_services_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string php_metadata_namespace = 44; - case 44: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) { - auto str = _internal_mutable_php_metadata_namespace(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.php_metadata_namespace"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string ruby_package = 45; - case 45: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 106)) { - auto str = _internal_mutable_ruby_package(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.FileOptions.ruby_package"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* FileOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<5, 21, 2, 202, 12> FileOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FileOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(FileOptions, _impl_._extensions_), + 999, 248, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 3149166718, // skipmap + offsetof(decltype(_table_), field_entries), + 21, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_FileOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional string java_package = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_package_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional string java_outer_classname = 8; + {::_pbi::TcParser::FastSS1, + {66, 1, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_outer_classname_)}}, + // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + {::_pbi::TcParser::FastEr1S1, + {72, 18, 3, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.optimize_for_)}}, + // optional bool java_multiple_files = 10 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 10, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_multiple_files_)}}, + // optional string go_package = 11; + {::_pbi::TcParser::FastSS1, + {90, 2, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.go_package_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool cc_generic_services = 16 [default = false]; + {::_pbi::TcParser::FastV8S2, + {384, 13, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.cc_generic_services_)}}, + // optional bool java_generic_services = 17 [default = false]; + {::_pbi::TcParser::FastV8S2, + {392, 14, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_generic_services_)}}, + // optional bool py_generic_services = 18 [default = false]; + {::_pbi::TcParser::FastV8S2, + {400, 15, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.py_generic_services_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + {::_pbi::TcParser::FastV8S2, + {416, 11, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_generate_equals_and_hash_)}}, + // optional string csharp_namespace = 37; + {::_pbi::TcParser::FastSS2, + {682, 4, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.csharp_namespace_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool deprecated = 23 [default = false]; + {::_pbi::TcParser::FastV8S2, + {440, 17, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.deprecated_)}}, + // optional string php_class_prefix = 40; + {::_pbi::TcParser::FastSS2, + {706, 6, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_class_prefix_)}}, + // optional string php_namespace = 41; + {::_pbi::TcParser::FastSS2, + {714, 7, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_namespace_)}}, + // optional bool php_generic_services = 42 [default = false]; + {::_pbi::TcParser::FastV8S2, + {720, 16, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_generic_services_)}}, + // optional bool java_string_check_utf8 = 27 [default = false]; + {::_pbi::TcParser::FastV8S2, + {472, 12, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_string_check_utf8_)}}, + // optional string php_metadata_namespace = 44; + {::_pbi::TcParser::FastSS2, + {738, 8, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_metadata_namespace_)}}, + // optional string ruby_package = 45; + {::_pbi::TcParser::FastSS2, + {746, 9, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.ruby_package_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool cc_enable_arenas = 31 [default = true]; + {::_pbi::TcParser::FastV8S2, + {504, 19, 0, PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.cc_enable_arenas_)}}, + }}, {{ + 36, 0, 1, + 64644, 12,999, 0, 1, + 65534, 20, + 65535, 65535 + }}, {{ + // optional string java_package = 1; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_package_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string java_outer_classname = 8; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_outer_classname_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.optimize_for_), _Internal::kHasBitsOffset + 18, 0, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool java_multiple_files = 10 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_multiple_files_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string go_package = 11; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.go_package_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional bool cc_generic_services = 16 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.cc_generic_services_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool java_generic_services = 17 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_generic_services_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool py_generic_services = 18 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.py_generic_services_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool java_generate_equals_and_hash = 20 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_generate_equals_and_hash_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated = 23 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 17, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool java_string_check_utf8 = 27 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.java_string_check_utf8_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool cc_enable_arenas = 31 [default = true]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.cc_enable_arenas_), _Internal::kHasBitsOffset + 19, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string objc_class_prefix = 36; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.objc_class_prefix_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string csharp_namespace = 37; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.csharp_namespace_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string swift_prefix = 39; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.swift_prefix_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string php_class_prefix = 40; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_class_prefix_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string php_namespace = 41; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_namespace_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional bool php_generic_services = 42 [default = false]; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_generic_services_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional string php_metadata_namespace = 44; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.php_metadata_namespace_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string ruby_package = 45; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.ruby_package_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(FileOptions, _impl_.uninterpreted_option_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {1, 3}, + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + "\33\14\24\0\0\12\0\0\0\0\0\0\0\21\20\14\20\15\0\26\14\0\0\0" + "google.protobuf.FileOptions" + "java_package" + "java_outer_classname" + "go_package" + "objc_class_prefix" + "csharp_namespace" + "swift_prefix" + "php_class_prefix" + "php_namespace" + "php_metadata_namespace" + "ruby_package" + }}, +}; + ::uint8_t* FileOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FileOptions) @@ -8474,106 +7987,72 @@ PROTOBUF_NOINLINE void MessageOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* MessageOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool message_set_wire_format = 1 [default = false]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_message_set_wire_format(&has_bits); - _impl_.message_set_wire_format_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool no_standard_descriptor_accessor = 2 [default = false]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_no_standard_descriptor_accessor(&has_bits); - _impl_.no_standard_descriptor_accessor_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated = 3 [default = false]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool map_entry = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) { - _Internal::set_has_map_entry(&has_bits); - _impl_.map_entry_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) { - _Internal::set_has_deprecated_legacy_json_field_conflicts(&has_bits); - _impl_.deprecated_legacy_json_field_conflicts_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* MessageOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 6, 1, 0, 7> MessageOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_._extensions_), + 999, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294966200, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_MessageOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bool message_set_wire_format = 1 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.message_set_wire_format_)}}, + // optional bool no_standard_descriptor_accessor = 2 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.no_standard_descriptor_accessor_)}}, + // optional bool deprecated = 3 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 2, 0, PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.deprecated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool map_entry = 7; + {::_pbi::TcParser::SingularVarintNoZag1(), + {56, 3, 0, PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.map_entry_)}}, + }}, {{ + 999, 0, 1, + 65534, 5, + 65535, 65535 + }}, {{ + // optional bool message_set_wire_format = 1 [default = false]; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.message_set_wire_format_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool no_standard_descriptor_accessor = 2 [default = false]; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.no_standard_descriptor_accessor_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated = 3 [default = false]; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool map_entry = 7; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.map_entry_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.deprecated_legacy_json_field_conflicts_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_.uninterpreted_option_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* MessageOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MessageOptions) @@ -8897,194 +8376,113 @@ PROTOBUF_NOINLINE void FieldOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* FieldOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldOptions_CType_IsValid(static_cast(val)))) { - _internal_set_ctype(static_cast<::google::protobuf::FieldOptions_CType>(val)); - } else { - ::google::protobuf::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional bool packed = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_packed(&has_bits); - _impl_.packed_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated = 3 [default = false]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool lazy = 5 [default = false]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _Internal::set_has_lazy(&has_bits); - _impl_.lazy_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldOptions_JSType_IsValid(static_cast(val)))) { - _internal_set_jstype(static_cast<::google::protobuf::FieldOptions_JSType>(val)); - } else { - ::google::protobuf::internal::WriteVarint(6, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional bool weak = 10 [default = false]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 80)) { - _Internal::set_has_weak(&has_bits); - _impl_.weak_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool unverified_lazy = 15 [default = false]; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 120)) { - _Internal::set_has_unverified_lazy(&has_bits); - _impl_.unverified_lazy_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool debug_redact = 16 [default = false]; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 128)) { - _Internal::set_has_debug_redact(&has_bits); - _impl_.debug_redact_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldOptions.OptionRetention retention = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 136)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldOptions_OptionRetention_IsValid(static_cast(val)))) { - _internal_set_retention(static_cast<::google::protobuf::FieldOptions_OptionRetention>(val)); - } else { - ::google::protobuf::internal::WriteVarint(17, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.FieldOptions.OptionTargetType target_obsolete_do_not_use = 18 [deprecated = true]; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 144)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldOptions_OptionTargetType_IsValid(static_cast(val)))) { - _internal_set_target_obsolete_do_not_use(static_cast<::google::protobuf::FieldOptions_OptionTargetType>(val)); - } else { - ::google::protobuf::internal::WriteVarint(18, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 152)) { - ptr -= 2; - do { - ptr += 2; - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::FieldOptions_OptionTargetType_IsValid(static_cast(val)))) { - _internal_mutable_targets()->Add(static_cast<::google::protobuf::FieldOptions_OptionTargetType>(val)); - } else { - ::google::protobuf::internal::WriteVarint(19, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<152>(ptr)); - } else if (static_cast<::uint8_t>(tag) == 154) { - ptr = ::google::protobuf::internal::PackedEnumParser<::google::protobuf::UnknownFieldSet>(_internal_mutable_targets(), ptr, ctx, ::google::protobuf::FieldOptions_OptionTargetType_IsValid, &_internal_metadata_, 19); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* FieldOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<4, 12, 6, 0, 7> FieldOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_._extensions_), + 999, 120, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294458824, // skipmap + offsetof(decltype(_table_), field_entries), + 12, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_FieldOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional bool debug_redact = 16 [default = false]; + {::_pbi::TcParser::FastV8S2, + {384, 7, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.debug_redact_)}}, + // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + {::_pbi::TcParser::FastEr0S1, + {8, 0, 2, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.ctype_)}}, + // optional bool packed = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 2, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.packed_)}}, + // optional bool deprecated = 3 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 5, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.deprecated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool lazy = 5 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {40, 3, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.lazy_)}}, + // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + {::_pbi::TcParser::FastEr0S1, + {48, 1, 2, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.jstype_)}}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 5, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.uninterpreted_option_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool weak = 10 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {80, 6, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.weak_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool unverified_lazy = 15 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {120, 4, 0, PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.unverified_lazy_)}}, + }}, {{ + 999, 0, 1, + 65534, 11, + 65535, 65535 + }}, {{ + // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.ctype_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool packed = 2; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.packed_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated = 3 [default = false]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool lazy = 5 [default = false]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.lazy_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.jstype_), _Internal::kHasBitsOffset + 1, 1, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional bool weak = 10 [default = false]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.weak_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool unverified_lazy = 15 [default = false]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.unverified_lazy_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool debug_redact = 16 [default = false]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.debug_redact_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .google.protobuf.FieldOptions.OptionRetention retention = 17; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.retention_), _Internal::kHasBitsOffset + 8, 2, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // optional .google.protobuf.FieldOptions.OptionTargetType target_obsolete_do_not_use = 18 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.target_obsolete_do_not_use_), _Internal::kHasBitsOffset + 9, 3, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.targets_), -1, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_.uninterpreted_option_), -1, 5, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {0, 3}, + {0, 3}, + {0, 3}, + {0, 10}, + {0, 10}, + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* FieldOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FieldOptions) @@ -9442,54 +8840,44 @@ PROTOBUF_NOINLINE void OneofOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* OneofOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* OneofOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<0, 1, 1, 0, 7> OneofOptions::_table_ = { + { + 0, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(OneofOptions, _impl_._extensions_), + 999, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_OneofOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 0, PROTOBUF_FIELD_OFFSET(OneofOptions, _impl_.uninterpreted_option_)}}, + }}, {{ + 999, 0, 1, + 65534, 0, + 65535, 65535 + }}, {{ + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(OneofOptions, _impl_.uninterpreted_option_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* OneofOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.OneofOptions) @@ -9676,86 +9064,66 @@ PROTOBUF_NOINLINE void EnumOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* EnumOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool allow_alias = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_allow_alias(&has_bits); - _impl_.allow_alias_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated = 3 [default = false]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { - _Internal::set_has_deprecated_legacy_json_field_conflicts(&has_bits); - _impl_.deprecated_legacy_json_field_conflicts_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* EnumOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 4, 1, 0, 7> EnumOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_._extensions_), + 999, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967257, // skipmap + offsetof(decltype(_table_), field_entries), + 4, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_EnumOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool allow_alias = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 0, 0, PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.allow_alias_)}}, + // optional bool deprecated = 3 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.deprecated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {48, 2, 0, PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.deprecated_legacy_json_field_conflicts_)}}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 0, PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.uninterpreted_option_)}}, + }}, {{ + 999, 0, 1, + 65534, 3, + 65535, 65535 + }}, {{ + // optional bool allow_alias = 2; + {PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.allow_alias_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated = 3 [default = false]; + {PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; + {PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.deprecated_legacy_json_field_conflicts_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_.uninterpreted_option_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* EnumOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumOptions) @@ -9988,66 +9356,52 @@ PROTOBUF_NOINLINE void EnumValueOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* EnumValueOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool deprecated = 1 [default = false]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* EnumValueOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 2, 1, 0, 7> EnumValueOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_._extensions_), + 999, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_EnumValueOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bool deprecated = 1 [default = false]; + {::_pbi::TcParser::SingularVarintNoZag1(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_.deprecated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_.uninterpreted_option_)}}, + }}, {{ + 999, 0, 1, + 65534, 1, + 65535, 65535 + }}, {{ + // optional bool deprecated = 1 [default = false]; + {PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_.uninterpreted_option_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* EnumValueOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValueOptions) @@ -10239,66 +9593,53 @@ PROTOBUF_NOINLINE void ServiceOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* ServiceOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool deprecated = 33 [default = false]; - case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* ServiceOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 2, 1, 0, 12> ServiceOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_._extensions_), + 999, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_ServiceOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bool deprecated = 33 [default = false]; + {::_pbi::TcParser::FastV8S2, + {648, 0, 0, PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_.deprecated_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 0, PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_.uninterpreted_option_)}}, + }}, {{ + 33, 0, 1, + 65534, 0,999, 0, 1, + 65534, 1, + 65535, 65535 + }}, {{ + // optional bool deprecated = 33 [default = false]; + {PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_.uninterpreted_option_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* ServiceOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ServiceOptions) @@ -10502,80 +9843,59 @@ PROTOBUF_NOINLINE void MethodOptions::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* MethodOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool deprecated = 33 [default = false]; - case 33: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { - _Internal::set_has_deprecated(&has_bits); - _impl_.deprecated_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; - case 34: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(static_cast(val)))) { - _internal_set_idempotency_level(static_cast<::google::protobuf::MethodOptions_IdempotencyLevel>(val)); - } else { - ::google::protobuf::internal::WriteVarint(34, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; - case 999: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_mutable_uninterpreted_option()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<7994>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - if ((8000u <= tag)) { - ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); - CHK_(ptr != nullptr); - continue; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* MethodOptions::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<2, 3, 2, 0, 12> MethodOptions::_table_ = { + { + PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_._extensions_), + 999, 24, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_entries), + 3, // num_field_entries + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_MethodOptions_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // optional bool deprecated = 33 [default = false]; + {::_pbi::TcParser::FastV8S2, + {648, 0, 0, PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.deprecated_)}}, + // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + {::_pbi::TcParser::FastEr0S2, + {656, 1, 2, PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.idempotency_level_)}}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {::_pbi::TcParser::FastMtR2, + {16058, 63, 1, PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.uninterpreted_option_)}}, + }}, {{ + 33, 0, 1, + 65532, 0,999, 0, 1, + 65534, 2, + 65535, 65535 + }}, {{ + // optional bool deprecated = 33 [default = false]; + {PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.deprecated_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; + {PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.idempotency_level_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; + {PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_.uninterpreted_option_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {0, 3}, + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption>()}, + }}, {{ + }}, +}; + ::uint8_t* MethodOptions::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.MethodOptions) @@ -10808,60 +10128,51 @@ PROTOBUF_NOINLINE void UninterpretedOption_NamePart::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* UninterpretedOption_NamePart::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // required string name_part = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - auto str = _internal_mutable_name_part(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.NamePart.name_part"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // required bool is_extension = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { - _Internal::set_has_is_extension(&has_bits); - _impl_.is_extension_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* UninterpretedOption_NamePart::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<1, 2, 0, 62, 2> UninterpretedOption_NamePart::_table_ = { + { + PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967292, // skipmap + offsetof(decltype(_table_), field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_UninterpretedOption_NamePart_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // required bool is_extension = 2; + {::_pbi::TcParser::SingularVarintNoZag1(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_.is_extension_)}}, + // required string name_part = 1; + {::_pbi::TcParser::FastSS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_.name_part_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // required string name_part = 1; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_.name_part_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // required bool is_extension = 2; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_.is_extension_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + // no aux_entries + {{ + "\54\11\0\0\0\0\0\0" + "google.protobuf.UninterpretedOption.NamePart" + "name_part" + }}, +}; + ::uint8_t* UninterpretedOption_NamePart::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption.NamePart) @@ -11137,117 +10448,83 @@ PROTOBUF_NOINLINE void UninterpretedOption::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* UninterpretedOption::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_name()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<18>(ptr)); - } else { - goto handle_unusual; - } - continue; - // optional string identifier_value = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_identifier_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.identifier_value"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional uint64 positive_int_value = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _Internal::set_has_positive_int_value(&has_bits); - _impl_.positive_int_value_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int64 negative_int_value = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - _Internal::set_has_negative_int_value(&has_bits); - _impl_.negative_int_value_ = ::google::protobuf::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional double double_value = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 49)) { - _Internal::set_has_double_value(&has_bits); - _impl_.double_value_ = ::google::protobuf::internal::UnalignedLoad(ptr); - ptr += sizeof(double); - } else { - goto handle_unusual; - } - continue; - // optional bytes string_value = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { - auto str = _internal_mutable_string_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string aggregate_value = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) { - auto str = _internal_mutable_aggregate_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.UninterpretedOption.aggregate_value"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* UninterpretedOption::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 7, 1, 75, 2> UninterpretedOption::_table_ = { + { + PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_._has_bits_), + 0, // no _extensions_ + 8, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967041, // skipmap + offsetof(decltype(_table_), field_entries), + 7, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_UninterpretedOption_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // optional string aggregate_value = 8; + {::_pbi::TcParser::FastSS1, + {66, 2, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.aggregate_value_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + {::_pbi::TcParser::FastMtR1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.name_)}}, + // optional string identifier_value = 3; + {::_pbi::TcParser::FastSS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.identifier_value_)}}, + // optional uint64 positive_int_value = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UninterpretedOption, _impl_.positive_int_value_), 3>(), + {32, 3, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.positive_int_value_)}}, + // optional int64 negative_int_value = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(UninterpretedOption, _impl_.negative_int_value_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.negative_int_value_)}}, + // optional double double_value = 6; + {::_pbi::TcParser::FastF64S1, + {49, 5, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.double_value_)}}, + // optional bytes string_value = 7; + {::_pbi::TcParser::FastBS1, + {58, 1, 0, PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.string_value_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.name_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // optional string identifier_value = 3; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.identifier_value_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional uint64 positive_int_value = 4; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.positive_int_value_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // optional int64 negative_int_value = 5; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.negative_int_value_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // optional double double_value = 6; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.double_value_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // optional bytes string_value = 7; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.string_value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, + // optional string aggregate_value = 8; + {PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_.aggregate_value_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::UninterpretedOption_NamePart>()}, + }}, {{ + "\43\0\20\0\0\0\0\17" + "google.protobuf.UninterpretedOption" + "identifier_value" + "aggregate_value" + }}, +}; + ::uint8_t* UninterpretedOption::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UninterpretedOption) @@ -11569,105 +10846,74 @@ PROTOBUF_NOINLINE void SourceCodeInfo_Location::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* SourceCodeInfo_Location::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 path = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ::google::protobuf::internal::PackedInt32Parser(_internal_mutable_path(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 8) { - _internal_mutable_path()->Add(::google::protobuf::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // repeated int32 span = 2 [packed = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - ptr = ::google::protobuf::internal::PackedInt32Parser(_internal_mutable_span(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 16) { - _internal_mutable_span()->Add(::google::protobuf::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string leading_comments = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { - auto str = _internal_mutable_leading_comments(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.leading_comments"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional string trailing_comments = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { - auto str = _internal_mutable_trailing_comments(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.trailing_comments"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // repeated string leading_detached_comments = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - auto str = _internal_mutable_leading_detached_comments()->Add(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.SourceCodeInfo.Location.leading_detached_comments"); - #endif // !NDEBUG - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<50>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* SourceCodeInfo_Location::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 5, 0, 106, 2> SourceCodeInfo_Location::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967248, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + &_SourceCodeInfo_Location_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated int32 path = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.path_)}}, + // repeated int32 span = 2 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {18, 63, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.span_)}}, + // optional string leading_comments = 3; + {::_pbi::TcParser::FastSS1, + {26, 0, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.leading_comments_)}}, + // optional string trailing_comments = 4; + {::_pbi::TcParser::FastSS1, + {34, 1, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.trailing_comments_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated string leading_detached_comments = 6; + {::_pbi::TcParser::FastSR1, + {50, 63, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.leading_detached_comments_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 path = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.path_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + // repeated int32 span = 2 [packed = true]; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.span_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + // optional string leading_comments = 3; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.leading_comments_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional string trailing_comments = 4; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.trailing_comments_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // repeated string leading_detached_comments = 6; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_.leading_detached_comments_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)}, + }}, + // no aux_entries + {{ + "\47\0\0\20\21\31\0\0" + "google.protobuf.SourceCodeInfo.Location" + "leading_comments" + "trailing_comments" + "leading_detached_comments" + }}, +}; + ::uint8_t* SourceCodeInfo_Location::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo.Location) @@ -11906,49 +11152,42 @@ PROTOBUF_NOINLINE void SourceCodeInfo::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* SourceCodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.SourceCodeInfo.Location location = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_location()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* SourceCodeInfo::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<0, 1, 1, 0, 2> SourceCodeInfo::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_SourceCodeInfo_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .google.protobuf.SourceCodeInfo.Location location = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(SourceCodeInfo, _impl_.location_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.protobuf.SourceCodeInfo.Location location = 1; + {PROTOBUF_FIELD_OFFSET(SourceCodeInfo, _impl_.location_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::SourceCodeInfo_Location>()}, + }}, {{ + }}, +}; + ::uint8_t* SourceCodeInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.SourceCodeInfo) @@ -12140,96 +11379,72 @@ PROTOBUF_NOINLINE void GeneratedCodeInfo_Annotation::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* GeneratedCodeInfo_Annotation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 path = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr = ::google::protobuf::internal::PackedInt32Parser(_internal_mutable_path(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::uint8_t>(tag) == 8) { - _internal_mutable_path()->Add(::google::protobuf::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional string source_file = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { - auto str = _internal_mutable_source_file(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - #ifndef NDEBUG - ::_pbi::VerifyUTF8(str, "google.protobuf.GeneratedCodeInfo.Annotation.source_file"); - #endif // !NDEBUG - } else { - goto handle_unusual; - } - continue; - // optional int32 begin = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { - _Internal::set_has_begin(&has_bits); - _impl_.begin_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional int32 end = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) { - _Internal::set_has_end(&has_bits); - _impl_.end_ = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else { - goto handle_unusual; - } - continue; - // optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { - ::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::google::protobuf::GeneratedCodeInfo_Annotation_Semantic_IsValid(static_cast(val)))) { - _internal_set_semantic(static_cast<::google::protobuf::GeneratedCodeInfo_Annotation_Semantic>(val)); - } else { - ::google::protobuf::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _impl_._has_bits_.Or(has_bits); +const char* GeneratedCodeInfo_Annotation::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<3, 5, 1, 64, 2> GeneratedCodeInfo_Annotation::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_._has_bits_), + 0, // no _extensions_ + 5, 56, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967264, // skipmap + offsetof(decltype(_table_), field_entries), + 5, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GeneratedCodeInfo_Annotation_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + // repeated int32 path = 1 [packed = true]; + {::_pbi::TcParser::FastV32P1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.path_)}}, + // optional string source_file = 2; + {::_pbi::TcParser::FastSS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.source_file_)}}, + // optional int32 begin = 3; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GeneratedCodeInfo_Annotation, _impl_.begin_), 1>(), + {24, 1, 0, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.begin_)}}, + // optional int32 end = 4; + {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(GeneratedCodeInfo_Annotation, _impl_.end_), 2>(), + {32, 2, 0, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.end_)}}, + // optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; + {::_pbi::TcParser::FastEr0S1, + {40, 3, 2, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.semantic_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated int32 path = 1 [packed = true]; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.path_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kPackedInt32)}, + // optional string source_file = 2; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.source_file_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)}, + // optional int32 begin = 3; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.begin_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional int32 end = 4; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.end_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_.semantic_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, + }}, {{ + {0, 3}, + }}, {{ + "\54\0\13\0\0\0\0\0" + "google.protobuf.GeneratedCodeInfo.Annotation" + "source_file" + }}, +}; + ::uint8_t* GeneratedCodeInfo_Annotation::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo.Annotation) @@ -12461,49 +11676,42 @@ PROTOBUF_NOINLINE void GeneratedCodeInfo::Clear() { _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } -const char* GeneratedCodeInfo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - ::uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_mutable_annotation()->Add(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::google::protobuf::internal::ExpectTag<10>(ptr)); - } else { - goto handle_unusual; - } - continue; - default: - goto handle_unusual; - } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: +const char* GeneratedCodeInfo::_InternalParse( + const char* ptr, ::_pbi::ParseContext* ctx) { + ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header); return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ } + +constexpr ::_pbi::TcParseTable<0, 1, 1, 0, 2> GeneratedCodeInfo::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967294, // skipmap + offsetof(decltype(_table_), field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + &_GeneratedCodeInfo_default_instance_._instance, + ::_pbi::TcParser::GenericFallback, // fallback + }, {{ + // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + {::_pbi::TcParser::FastMtR1, + {10, 63, 0, PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo, _impl_.annotation_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; + {PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo, _impl_.annotation_), 0, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, {{ + {::_pbi::TcParser::GetTable<::google::protobuf::GeneratedCodeInfo_Annotation>()}, + }}, {{ + }}, +}; + ::uint8_t* GeneratedCodeInfo::_InternalSerialize( ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.GeneratedCodeInfo) diff --git a/src/google/protobuf/descriptor.pb.h b/src/google/protobuf/descriptor.pb.h index 678630aaf3012..0fa478e4d5f2d 100644 --- a/src/google/protobuf/descriptor.pb.h +++ b/src/google/protobuf/descriptor.pb.h @@ -24,6 +24,7 @@ #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/arena.h" #include "google/protobuf/arenastring.h" +#include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/metadata_lite.h" #include "google/protobuf/generated_message_reflection.h" @@ -673,6 +674,8 @@ class PROTOBUF_EXPORT FileDescriptorSet final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -1063,6 +1066,8 @@ class PROTOBUF_EXPORT FileDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 13, 6, 86, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -1259,6 +1264,8 @@ class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -1429,6 +1436,8 @@ class PROTOBUF_EXPORT DescriptorProto_ReservedRange final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -1773,6 +1782,8 @@ class PROTOBUF_EXPORT DescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 10, 8, 65, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -2010,6 +2021,8 @@ class PROTOBUF_EXPORT ExtensionRangeOptions_Declaration final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, 0, 71, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -2382,6 +2395,8 @@ class PROTOBUF_EXPORT ExtensionRangeOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 3, 3, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -2753,6 +2768,8 @@ class PROTOBUF_EXPORT FieldDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 11, 3, 96, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -2941,6 +2958,8 @@ class PROTOBUF_EXPORT OneofDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 1, 49, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -3110,6 +3129,8 @@ class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -3358,6 +3379,8 @@ class PROTOBUF_EXPORT EnumDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 3, 61, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -3552,6 +3575,8 @@ class PROTOBUF_EXPORT EnumValueDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 1, 53, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -3751,6 +3776,8 @@ class PROTOBUF_EXPORT ServiceDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 2, 51, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -3991,6 +4018,8 @@ class PROTOBUF_EXPORT MethodDescriptorProto final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, 1, 71, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -4631,6 +4660,8 @@ class PROTOBUF_EXPORT FileOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<5, 21, 2, 202, 12> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -5027,6 +5058,8 @@ class PROTOBUF_EXPORT MessageOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 6, 1, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -5579,6 +5612,8 @@ class PROTOBUF_EXPORT FieldOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<4, 12, 6, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -5906,6 +5941,8 @@ class PROTOBUF_EXPORT OneofOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -6257,6 +6294,8 @@ class PROTOBUF_EXPORT EnumOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 4, 1, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -6588,6 +6627,8 @@ class PROTOBUF_EXPORT EnumValueOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 2, 1, 0, 7> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -6917,6 +6958,8 @@ class PROTOBUF_EXPORT ServiceOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 2, 1, 0, 12> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -7279,6 +7322,8 @@ class PROTOBUF_EXPORT MethodOptions final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<2, 3, 2, 0, 12> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -7460,6 +7505,8 @@ class PROTOBUF_EXPORT UninterpretedOption_NamePart final : // helper for ByteSizeLong() ::size_t RequiredFieldsByteSizeFallback() const; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<1, 2, 0, 62, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -7716,6 +7763,8 @@ class PROTOBUF_EXPORT UninterpretedOption final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 7, 1, 75, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -7969,6 +8018,8 @@ class PROTOBUF_EXPORT SourceCodeInfo_Location final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 0, 106, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -8140,6 +8191,8 @@ class PROTOBUF_EXPORT SourceCodeInfo final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -8377,6 +8430,8 @@ class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<3, 5, 1, 64, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; @@ -8547,6 +8602,8 @@ class PROTOBUF_EXPORT GeneratedCodeInfo final : private: class _Internal; + friend class ::google::protobuf::internal::TcParser; + static const ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2> _table_; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_;