Move `InternalGenerateParseTable_` to `.pb.cc`. This moves `InternalGenerateParseTable_` to the nested `_Internals` class, which is only defined in `.pb.cc`, and renames it to `GenerateParseTable` (now that the `Internal` would be redundant). PiperOrigin-RevId: 967383875
diff --git a/src/google/protobuf/compiler/cpp/message.cc b/src/google/protobuf/compiler/cpp/message.cc index a989e16..877d4fb 100644 --- a/src/google/protobuf/compiler/cpp/message.cc +++ b/src/google/protobuf/compiler/cpp/message.cc
@@ -1381,7 +1381,6 @@ } void MessageGenerator::GenerateMapEntryClassDefinition(io::Printer* p) { - Formatter format(p); absl::flat_hash_map<absl::string_view, std::string> vars; CollectMapInfo(options_, descriptor_, &vars); ABSL_CHECK(HasDescriptorMethods(descriptor_->file(), options_)); @@ -1426,11 +1425,11 @@ friend $globals_type$; $alias_parse_table_type$; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const $pbi$::ClassData* $nonnull$ class_data); $parse_decls$; $decl_annotate$; + class _Internal; + const $pbi$::ClassData* $nonnull$ GetClassData() const PROTOBUF_FINAL; static void* $nonnull$ PlacementNew_( //~ @@ -1439,6 +1438,25 @@ static constexpr auto InternalNewImpl_(); }; )cc"); + + p->Emit({{"has_bit", + [&] { + if (!field_layout_.HasHasbits()) return; + p->Emit(R"cc( + using HasBits = decltype(::std::declval<$Msg$>().$has_bits$); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET($Msg$, _impl_._has_bits_); + )cc"); + }}}, + R"cc( + class $Msg$::_Internal { + public: + $has_bit$; + + static constexpr $Msg$::ParseTableT_ GenerateParseTable( + const $pbi$::ClassData* $nonnull$ class_data); + }; + )cc"); } void MessageGenerator::GenerateImplDefinition(io::Printer* p) { @@ -2234,6 +2252,7 @@ //~ homing. We don't define this constructor, since it is not //~ called. See go/constructor-homing. PROTOBUF_NODEBUG Helpers_(); + static void Clear($pb$::MessageLite& msg); $nodiscard $static::size_t ByteSizeLong(const $pb$::MessageLite& msg); $nodiscard $static $uint8$* $nonnull$ _InternalSerialize( @@ -2244,8 +2263,6 @@ $decl_set_has$; $decl_oneof_has$; $alias_parse_table_type$; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const $pbi$::ClassData* $nonnull$ class_data); $decl_data$; $post_loop_handler$; @@ -5421,10 +5438,13 @@ $oneof$; $required$; $split$; + + static constexpr $Msg$::ParseTableT_ GenerateParseTable( + const $pbi$::ClassData* $nonnull$ class_data); }; )cc"); - p->Emit("\n"); } + p->Emit("\n"); parse_function_generator_->GenerateParseTableHelperDefinition(p); p->Emit("\n");
diff --git a/src/google/protobuf/compiler/cpp/parse_function_generator.cc b/src/google/protobuf/compiler/cpp/parse_function_generator.cc index e25fc3f..e86b71a 100644 --- a/src/google/protobuf/compiler/cpp/parse_function_generator.cc +++ b/src/google/protobuf/compiler/cpp/parse_function_generator.cc
@@ -461,7 +461,7 @@ // insert a newline at every brace, whereas we prefer {{ ... }} here. // clang-format off R"cc( -constexpr $Msg$::ParseTableT_ $Msg$::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr $Msg$::ParseTableT_ $Msg$::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { $table_base$
diff --git a/src/google/protobuf/compiler/csharp/c_sharp_features.pb.cc b/src/google/protobuf/compiler/csharp/c_sharp_features.pb.cc index fe21c17..4d49435 100755 --- a/src/google/protobuf/compiler/csharp/c_sharp_features.pb.cc +++ b/src/google/protobuf/compiler/csharp/c_sharp_features.pb.cc
@@ -38,9 +38,12 @@ using HasBits = decltype(::std::declval<CSharpFeatures>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CSharpFeatures, _impl_._has_bits_); + + static constexpr CSharpFeatures::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CSharpFeatures::ParseTableT_ CSharpFeatures::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CSharpFeatures::ParseTableT_ CSharpFeatures::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CSharpFeatures, _impl_._has_bits_),
diff --git a/src/google/protobuf/compiler/csharp/c_sharp_features.pb.h b/src/google/protobuf/compiler/csharp/c_sharp_features.pb.h index bceef5a..436bbb0 100755 --- a/src/google/protobuf/compiler/csharp/c_sharp_features.pb.h +++ b/src/google/protobuf/compiler/csharp/c_sharp_features.pb.h
@@ -245,6 +245,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -256,8 +257,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/compiler/java/java_features.pb.cc b/src/google/protobuf/compiler/java/java_features.pb.cc index d2b4a39..d65614a 100644 --- a/src/google/protobuf/compiler/java/java_features.pb.cc +++ b/src/google/protobuf/compiler/java/java_features.pb.cc
@@ -37,9 +37,12 @@ namespace pb { class JavaFeatures_NestInFileClassFeature::_Internal { public: + + static constexpr JavaFeatures_NestInFileClassFeature::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr JavaFeatures_NestInFileClassFeature::ParseTableT_ JavaFeatures_NestInFileClassFeature::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr JavaFeatures_NestInFileClassFeature::ParseTableT_ JavaFeatures_NestInFileClassFeature::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(JavaFeatures_NestInFileClassFeature, @@ -123,9 +126,12 @@ using HasBits = decltype(::std::declval<JavaFeatures>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(JavaFeatures, _impl_._has_bits_); + + static constexpr JavaFeatures::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr JavaFeatures::ParseTableT_ JavaFeatures::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr JavaFeatures::ParseTableT_ JavaFeatures::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(JavaFeatures, _impl_._has_bits_),
diff --git a/src/google/protobuf/compiler/java/java_features.pb.h b/src/google/protobuf/compiler/java/java_features.pb.h index d4cfb16..dce8d22 100644 --- a/src/google/protobuf/compiler/java/java_features.pb.h +++ b/src/google/protobuf/compiler/java/java_features.pb.h
@@ -312,6 +312,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -323,8 +324,6 @@ ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -584,6 +583,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -595,8 +595,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 2, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/compiler/plugin.pb.cc b/src/google/protobuf/compiler/plugin.pb.cc index 98a5a14..a7c4780 100644 --- a/src/google/protobuf/compiler/plugin.pb.cc +++ b/src/google/protobuf/compiler/plugin.pb.cc
@@ -46,9 +46,12 @@ using HasBits = decltype(::std::declval<Version>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_); + + static constexpr Version::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr Version::ParseTableT_ Version::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr Version::ParseTableT_ Version::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(Version, _impl_._has_bits_), @@ -169,9 +172,12 @@ using HasBits = decltype(::std::declval<CodeGeneratorResponse_File>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_); + + static constexpr CodeGeneratorResponse_File::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CodeGeneratorResponse_File::ParseTableT_ CodeGeneratorResponse_File::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CodeGeneratorResponse_File::ParseTableT_ CodeGeneratorResponse_File::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse_File, _impl_._has_bits_), @@ -298,9 +304,12 @@ using HasBits = decltype(::std::declval<CodeGeneratorResponse>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_); + + static constexpr CodeGeneratorResponse::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CodeGeneratorResponse::ParseTableT_ CodeGeneratorResponse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CodeGeneratorResponse::ParseTableT_ CodeGeneratorResponse::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CodeGeneratorResponse, _impl_._has_bits_), @@ -437,9 +446,12 @@ using HasBits = decltype(::std::declval<CodeGeneratorRequest>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_); + + static constexpr CodeGeneratorRequest::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CodeGeneratorRequest::ParseTableT_ CodeGeneratorRequest::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CodeGeneratorRequest::ParseTableT_ CodeGeneratorRequest::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CodeGeneratorRequest, _impl_._has_bits_),
diff --git a/src/google/protobuf/compiler/plugin.pb.h b/src/google/protobuf/compiler/plugin.pb.h index 174f467..6808340 100644 --- a/src/google/protobuf/compiler/plugin.pb.h +++ b/src/google/protobuf/compiler/plugin.pb.h
@@ -341,6 +341,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -352,8 +353,6 @@ ::google::protobuf::internal::TcParseTable<2, 4, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -617,6 +616,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -628,8 +628,6 @@ ::google::protobuf::internal::TcParseTable<2, 4, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -922,6 +920,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -933,8 +932,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -1239,6 +1236,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -1250,8 +1248,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 3, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/cpp_features.pb.cc b/src/google/protobuf/cpp_features.pb.cc index 5b97e2f..70e7407 100644 --- a/src/google/protobuf/cpp_features.pb.cc +++ b/src/google/protobuf/cpp_features.pb.cc
@@ -38,9 +38,12 @@ using HasBits = decltype(::std::declval<CppFeatures>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_._has_bits_); + + static constexpr CppFeatures::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CppFeatures::ParseTableT_ CppFeatures::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CppFeatures::ParseTableT_ CppFeatures::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CppFeatures, _impl_._has_bits_),
diff --git a/src/google/protobuf/cpp_features.pb.h b/src/google/protobuf/cpp_features.pb.h index 573ac6e..e348b79 100644 --- a/src/google/protobuf/cpp_features.pb.h +++ b/src/google/protobuf/cpp_features.pb.h
@@ -412,6 +412,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -423,8 +424,6 @@ ::google::protobuf::internal::TcParseTable<2, 4, 2, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/cpp_file_options.pb.cc b/src/google/protobuf/cpp_file_options.pb.cc index 8edde47..6d5f1cc 100644 --- a/src/google/protobuf/cpp_file_options.pb.cc +++ b/src/google/protobuf/cpp_file_options.pb.cc
@@ -39,9 +39,12 @@ using HasBits = decltype(::std::declval<CppFileOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(CppFileOptions, _impl_._has_bits_); + + static constexpr CppFileOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr CppFileOptions::ParseTableT_ CppFileOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr CppFileOptions::ParseTableT_ CppFileOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(CppFileOptions, _impl_._has_bits_),
diff --git a/src/google/protobuf/cpp_file_options.pb.h b/src/google/protobuf/cpp_file_options.pb.h index ecbfedc..7128d28 100644 --- a/src/google/protobuf/cpp_file_options.pb.h +++ b/src/google/protobuf/cpp_file_options.pb.h
@@ -242,6 +242,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -253,8 +254,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 0, 40, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index db44573..09beccb 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc
@@ -110,9 +110,12 @@ static bool MissingRequiredFields(const HasBits& has_bits) { return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; } + + static constexpr UninterpretedOption_NamePart::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr UninterpretedOption_NamePart::ParseTableT_ UninterpretedOption_NamePart::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr UninterpretedOption_NamePart::ParseTableT_ UninterpretedOption_NamePart::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(UninterpretedOption_NamePart, _impl_._has_bits_), @@ -225,9 +228,12 @@ using HasBits = decltype(::std::declval<SourceCodeInfo_Location>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_._has_bits_); + + static constexpr SourceCodeInfo_Location::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr SourceCodeInfo_Location::ParseTableT_ SourceCodeInfo_Location::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr SourceCodeInfo_Location::ParseTableT_ SourceCodeInfo_Location::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(SourceCodeInfo_Location, _impl_._has_bits_), @@ -378,9 +384,12 @@ using HasBits = decltype(::std::declval<GeneratedCodeInfo_Annotation>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_._has_bits_); + + static constexpr GeneratedCodeInfo_Annotation::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr GeneratedCodeInfo_Annotation::ParseTableT_ GeneratedCodeInfo_Annotation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr GeneratedCodeInfo_Annotation::ParseTableT_ GeneratedCodeInfo_Annotation::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo_Annotation, _impl_._has_bits_), @@ -523,9 +532,12 @@ using HasBits = decltype(::std::declval<FieldOptions_FeatureSupport>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FieldOptions_FeatureSupport, _impl_._has_bits_); + + static constexpr FieldOptions_FeatureSupport::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FieldOptions_FeatureSupport::ParseTableT_ FieldOptions_FeatureSupport::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FieldOptions_FeatureSupport::ParseTableT_ FieldOptions_FeatureSupport::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FieldOptions_FeatureSupport, _impl_._has_bits_), @@ -668,9 +680,12 @@ using HasBits = decltype(::std::declval<FieldOptions_EditionDefault>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FieldOptions_EditionDefault, _impl_._has_bits_); + + static constexpr FieldOptions_EditionDefault::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FieldOptions_EditionDefault::ParseTableT_ FieldOptions_EditionDefault::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FieldOptions_EditionDefault::ParseTableT_ FieldOptions_EditionDefault::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FieldOptions_EditionDefault, _impl_._has_bits_), @@ -782,9 +797,12 @@ ; class FeatureSet_VisibilityFeature::_Internal { public: + + static constexpr FeatureSet_VisibilityFeature::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FeatureSet_VisibilityFeature::ParseTableT_ FeatureSet_VisibilityFeature::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FeatureSet_VisibilityFeature::ParseTableT_ FeatureSet_VisibilityFeature::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FeatureSet_VisibilityFeature, @@ -871,9 +889,12 @@ ; class FeatureSet_ProtoLimitsFeature::_Internal { public: + + static constexpr FeatureSet_ProtoLimitsFeature::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FeatureSet_ProtoLimitsFeature::ParseTableT_ FeatureSet_ProtoLimitsFeature::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FeatureSet_ProtoLimitsFeature::ParseTableT_ FeatureSet_ProtoLimitsFeature::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FeatureSet_ProtoLimitsFeature, @@ -963,9 +984,12 @@ using HasBits = decltype(::std::declval<FeatureSet>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FeatureSet, _impl_._has_bits_); + + static constexpr FeatureSet::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FeatureSet::ParseTableT_ FeatureSet::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FeatureSet::ParseTableT_ FeatureSet::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FeatureSet, _impl_._has_bits_), @@ -1142,9 +1166,12 @@ using HasBits = decltype(::std::declval<ExtensionRangeOptions_Declaration>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_._has_bits_); + + static constexpr ExtensionRangeOptions_Declaration::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr ExtensionRangeOptions_Declaration::ParseTableT_ ExtensionRangeOptions_Declaration::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr ExtensionRangeOptions_Declaration::ParseTableT_ ExtensionRangeOptions_Declaration::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions_Declaration, _impl_._has_bits_), @@ -1283,9 +1310,12 @@ using HasBits = decltype(::std::declval<EnumDescriptorProto_EnumReservedRange>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_._has_bits_); + + static constexpr EnumDescriptorProto_EnumReservedRange::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr EnumDescriptorProto_EnumReservedRange::ParseTableT_ EnumDescriptorProto_EnumReservedRange::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr EnumDescriptorProto_EnumReservedRange::ParseTableT_ EnumDescriptorProto_EnumReservedRange::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(EnumDescriptorProto_EnumReservedRange, _impl_._has_bits_), @@ -1396,9 +1426,12 @@ using HasBits = decltype(::std::declval<DescriptorProto_ReservedRange>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_._has_bits_); + + static constexpr DescriptorProto_ReservedRange::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr DescriptorProto_ReservedRange::ParseTableT_ DescriptorProto_ReservedRange::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr DescriptorProto_ReservedRange::ParseTableT_ DescriptorProto_ReservedRange::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(DescriptorProto_ReservedRange, _impl_._has_bits_), @@ -1509,9 +1542,12 @@ using HasBits = decltype(::std::declval<UninterpretedOption>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_._has_bits_); + + static constexpr UninterpretedOption::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr UninterpretedOption::ParseTableT_ UninterpretedOption::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr UninterpretedOption::ParseTableT_ UninterpretedOption::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(UninterpretedOption, _impl_._has_bits_), @@ -1670,9 +1706,12 @@ using HasBits = decltype(::std::declval<SourceCodeInfo>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(SourceCodeInfo, _impl_._has_bits_); + + static constexpr SourceCodeInfo::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr SourceCodeInfo::ParseTableT_ SourceCodeInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr SourceCodeInfo::ParseTableT_ SourceCodeInfo::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(SourceCodeInfo, _impl_._has_bits_), @@ -1782,9 +1821,12 @@ using HasBits = decltype(::std::declval<GeneratedCodeInfo>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo, _impl_._has_bits_); + + static constexpr GeneratedCodeInfo::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr GeneratedCodeInfo::ParseTableT_ GeneratedCodeInfo::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr GeneratedCodeInfo::ParseTableT_ GeneratedCodeInfo::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(GeneratedCodeInfo, _impl_._has_bits_), @@ -1894,9 +1936,12 @@ using HasBits = decltype(::std::declval<FeatureSetDefaults_FeatureSetEditionDefault>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FeatureSetDefaults_FeatureSetEditionDefault, _impl_._has_bits_); + + static constexpr FeatureSetDefaults_FeatureSetEditionDefault::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FeatureSetDefaults_FeatureSetEditionDefault::ParseTableT_ FeatureSetDefaults_FeatureSetEditionDefault::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FeatureSetDefaults_FeatureSetEditionDefault::ParseTableT_ FeatureSetDefaults_FeatureSetEditionDefault::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FeatureSetDefaults_FeatureSetEditionDefault, _impl_._has_bits_), @@ -2019,9 +2064,12 @@ using HasBits = decltype(::std::declval<ServiceOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_._has_bits_); + + static constexpr ServiceOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr ServiceOptions::ParseTableT_ ServiceOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr ServiceOptions::ParseTableT_ ServiceOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(ServiceOptions, _impl_._has_bits_), @@ -2151,9 +2199,12 @@ using HasBits = decltype(::std::declval<OneofOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OneofOptions, _impl_._has_bits_); + + static constexpr OneofOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr OneofOptions::ParseTableT_ OneofOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr OneofOptions::ParseTableT_ OneofOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(OneofOptions, _impl_._has_bits_), @@ -2275,9 +2326,12 @@ using HasBits = decltype(::std::declval<MethodOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_._has_bits_); + + static constexpr MethodOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr MethodOptions::ParseTableT_ MethodOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr MethodOptions::ParseTableT_ MethodOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(MethodOptions, _impl_._has_bits_), @@ -2418,9 +2472,12 @@ using HasBits = decltype(::std::declval<MessageOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_._has_bits_); + + static constexpr MessageOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr MessageOptions::ParseTableT_ MessageOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr MessageOptions::ParseTableT_ MessageOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(MessageOptions, _impl_._has_bits_), @@ -2570,9 +2627,12 @@ using HasBits = decltype(::std::declval<FileOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FileOptions, _impl_._has_bits_); + + static constexpr FileOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FileOptions::ParseTableT_ FileOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FileOptions::ParseTableT_ FileOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FileOptions, _impl_._has_bits_), @@ -2847,9 +2907,12 @@ using HasBits = decltype(::std::declval<FieldOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_._has_bits_); + + static constexpr FieldOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FieldOptions::ParseTableT_ FieldOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FieldOptions::ParseTableT_ FieldOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FieldOptions, _impl_._has_bits_), @@ -3057,9 +3120,12 @@ using HasBits = decltype(::std::declval<FeatureSetDefaults>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FeatureSetDefaults, _impl_._has_bits_); + + static constexpr FeatureSetDefaults::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FeatureSetDefaults::ParseTableT_ FeatureSetDefaults::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FeatureSetDefaults::ParseTableT_ FeatureSetDefaults::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FeatureSetDefaults, _impl_._has_bits_), @@ -3181,9 +3247,12 @@ using HasBits = decltype(::std::declval<ExtensionRangeOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_._has_bits_); + + static constexpr ExtensionRangeOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr ExtensionRangeOptions::ParseTableT_ ExtensionRangeOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr ExtensionRangeOptions::ParseTableT_ ExtensionRangeOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(ExtensionRangeOptions, _impl_._has_bits_), @@ -3326,9 +3395,12 @@ using HasBits = decltype(::std::declval<EnumValueOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_._has_bits_); + + static constexpr EnumValueOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr EnumValueOptions::ParseTableT_ EnumValueOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr EnumValueOptions::ParseTableT_ EnumValueOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(EnumValueOptions, _impl_._has_bits_), @@ -3473,9 +3545,12 @@ using HasBits = decltype(::std::declval<EnumOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_._has_bits_); + + static constexpr EnumOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr EnumOptions::ParseTableT_ EnumOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr EnumOptions::ParseTableT_ EnumOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(EnumOptions, _impl_._has_bits_), @@ -3616,9 +3691,12 @@ using HasBits = decltype(::std::declval<OneofDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_._has_bits_); + + static constexpr OneofDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr OneofDescriptorProto::ParseTableT_ OneofDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr OneofDescriptorProto::ParseTableT_ OneofDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(OneofDescriptorProto, _impl_._has_bits_), @@ -3733,9 +3811,12 @@ using HasBits = decltype(::std::declval<MethodDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_._has_bits_); + + static constexpr MethodDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr MethodDescriptorProto::ParseTableT_ MethodDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr MethodDescriptorProto::ParseTableT_ MethodDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(MethodDescriptorProto, _impl_._has_bits_), @@ -3884,9 +3965,12 @@ using HasBits = decltype(::std::declval<FieldDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_._has_bits_); + + static constexpr FieldDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FieldDescriptorProto::ParseTableT_ FieldDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FieldDescriptorProto::ParseTableT_ FieldDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FieldDescriptorProto, _impl_._has_bits_), @@ -4076,9 +4160,12 @@ using HasBits = decltype(::std::declval<EnumValueDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_._has_bits_); + + static constexpr EnumValueDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr EnumValueDescriptorProto::ParseTableT_ EnumValueDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr EnumValueDescriptorProto::ParseTableT_ EnumValueDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(EnumValueDescriptorProto, _impl_._has_bits_), @@ -4201,9 +4288,12 @@ using HasBits = decltype(::std::declval<DescriptorProto_ExtensionRange>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_._has_bits_); + + static constexpr DescriptorProto_ExtensionRange::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr DescriptorProto_ExtensionRange::ParseTableT_ DescriptorProto_ExtensionRange::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr DescriptorProto_ExtensionRange::ParseTableT_ DescriptorProto_ExtensionRange::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(DescriptorProto_ExtensionRange, _impl_._has_bits_), @@ -4324,9 +4414,12 @@ using HasBits = decltype(::std::declval<ServiceDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_._has_bits_); + + static constexpr ServiceDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr ServiceDescriptorProto::ParseTableT_ ServiceDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr ServiceDescriptorProto::ParseTableT_ ServiceDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(ServiceDescriptorProto, _impl_._has_bits_), @@ -4454,9 +4547,12 @@ using HasBits = decltype(::std::declval<EnumDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_._has_bits_); + + static constexpr EnumDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr EnumDescriptorProto::ParseTableT_ EnumDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr EnumDescriptorProto::ParseTableT_ EnumDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(EnumDescriptorProto, _impl_._has_bits_), @@ -4616,9 +4712,12 @@ using HasBits = decltype(::std::declval<DescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_._has_bits_); + + static constexpr DescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr DescriptorProto::ParseTableT_ DescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr DescriptorProto::ParseTableT_ DescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(DescriptorProto, _impl_._has_bits_), @@ -4841,9 +4940,12 @@ using HasBits = decltype(::std::declval<FileDescriptorProto>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_._has_bits_); + + static constexpr FileDescriptorProto::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FileDescriptorProto::ParseTableT_ FileDescriptorProto::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FileDescriptorProto::ParseTableT_ FileDescriptorProto::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FileDescriptorProto, _impl_._has_bits_), @@ -5086,9 +5188,12 @@ using HasBits = decltype(::std::declval<FileDescriptorSet>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(FileDescriptorSet, _impl_._has_bits_); + + static constexpr FileDescriptorSet::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr FileDescriptorSet::ParseTableT_ FileDescriptorSet::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr FileDescriptorSet::ParseTableT_ FileDescriptorSet::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(FileDescriptorSet, _impl_._has_bits_),
diff --git a/src/google/protobuf/descriptor.pb.h b/src/google/protobuf/descriptor.pb.h index 5e0b9fc..e180112 100644 --- a/src/google/protobuf/descriptor.pb.h +++ b/src/google/protobuf/descriptor.pb.h
@@ -1281,6 +1281,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -1292,8 +1293,6 @@ ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -1589,6 +1588,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -1600,8 +1600,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -1895,6 +1893,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -1906,8 +1905,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -2176,6 +2173,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -2187,8 +2185,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 3, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -2415,6 +2411,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -2426,8 +2423,6 @@ ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -2610,6 +2605,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -2621,8 +2617,6 @@ ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -2786,6 +2780,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -2797,8 +2792,6 @@ ::google::protobuf::internal::TcParseTable<0, 0, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -3430,6 +3423,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -3441,8 +3435,6 @@ ::google::protobuf::internal::TcParseTable<4, 9, 9, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -3715,6 +3707,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -3726,8 +3719,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -3949,6 +3940,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -3960,8 +3952,6 @@ ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -4180,6 +4170,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -4191,8 +4182,6 @@ ::google::protobuf::internal::TcParseTable<1, 2, 0, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -4501,6 +4490,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -4512,8 +4502,6 @@ ::google::protobuf::internal::TcParseTable<3, 7, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -4930,6 +4918,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -4941,8 +4930,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -5159,6 +5146,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -5170,8 +5158,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -5414,6 +5400,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -5425,8 +5412,6 @@ ::google::protobuf::internal::TcParseTable<2, 3, 3, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -5866,6 +5851,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -5877,8 +5863,6 @@ ::google::protobuf::internal::TcParseTable<2, 3, 2, 0, 12>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -6307,6 +6291,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -6318,8 +6303,6 @@ ::google::protobuf::internal::TcParseTable<2, 2, 2, 0, 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -6792,6 +6775,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -6803,8 +6787,6 @@ ::google::protobuf::internal::TcParseTable<3, 4, 3, 0, 12>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -7294,6 +7276,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -7305,8 +7288,6 @@ ::google::protobuf::internal::TcParseTable<3, 7, 2, 0, 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -8038,6 +8019,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -8049,8 +8031,6 @@ ::google::protobuf::internal::TcParseTable<5, 21, 3, 0, 12>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -8756,6 +8736,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -8767,8 +8748,6 @@ ::google::protobuf::internal::TcParseTable<4, 14, 8, 0, 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -9027,6 +9006,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -9038,8 +9018,6 @@ ::google::protobuf::internal::TcParseTable<1, 3, 3, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -9521,6 +9499,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -9532,8 +9511,6 @@ ::google::protobuf::internal::TcParseTable<3, 4, 4, 0, 12>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -10003,6 +9980,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -10014,8 +9992,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 3, 0, 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -10482,6 +10458,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -10493,8 +10470,6 @@ ::google::protobuf::internal::TcParseTable<3, 5, 2, 0, 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -10731,6 +10706,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -10742,8 +10718,6 @@ ::google::protobuf::internal::TcParseTable<1, 2, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -11034,6 +11008,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -11045,8 +11020,6 @@ ::google::protobuf::internal::TcParseTable<3, 6, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -11468,6 +11441,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -11479,8 +11453,6 @@ ::google::protobuf::internal::TcParseTable<4, 11, 3, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -11734,6 +11706,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -11745,8 +11718,6 @@ ::google::protobuf::internal::TcParseTable<2, 3, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -11987,6 +11958,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -11998,8 +11970,6 @@ ::google::protobuf::internal::TcParseTable<2, 3, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -12254,6 +12224,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -12265,8 +12236,6 @@ ::google::protobuf::internal::TcParseTable<2, 3, 2, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -12582,6 +12551,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -12593,8 +12563,6 @@ ::google::protobuf::internal::TcParseTable<3, 6, 4, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -13019,6 +12987,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -13030,8 +12999,6 @@ ::google::protobuf::internal::TcParseTable<4, 11, 9, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -13513,6 +13480,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -13524,8 +13492,6 @@ ::google::protobuf::internal::TcParseTable<4, 14, 7, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite; @@ -13948,6 +13914,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -13959,8 +13926,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 1, 0, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/generated_message_util.h b/src/google/protobuf/generated_message_util.h index dc9a232..3f44890 100644 --- a/src/google/protobuf/generated_message_util.h +++ b/src/google/protobuf/generated_message_util.h
@@ -36,6 +36,7 @@ #include "absl/strings/string_view.h" #include "absl/types/optional.h" #include "google/protobuf/any.h" +#include "google/protobuf/class_data.h" #include "google/protobuf/has_bits.h" #include "google/protobuf/implicit_weak_message.h" #include "google/protobuf/internal_visibility.h" @@ -426,7 +427,7 @@ template <typename T> static constexpr auto GenerateParseTable( const ::google::protobuf::internal::ClassData* class_data) { - return T::InternalGenerateParseTable_(class_data); + return T::_Internal::GenerateParseTable(class_data); } template <typename T>
diff --git a/src/google/protobuf/implicit_weak_message.cc b/src/google/protobuf/implicit_weak_message.cc index e2d43b6..74c9786 100644 --- a/src/google/protobuf/implicit_weak_message.cc +++ b/src/google/protobuf/implicit_weak_message.cc
@@ -7,6 +7,7 @@ #include "google/protobuf/implicit_weak_message.h" +#include "google/protobuf/class_data.h" #include "google/protobuf/generated_message_tctable_decl.h" #include "google/protobuf/message_lite.h" #include "google/protobuf/parse_context.h" @@ -26,6 +27,15 @@ namespace protobuf { namespace internal { +namespace { + +constexpr auto GenerateParseTable(const ClassData* class_data) { + return CreateStubTcParseTable<ImplicitWeakMessage, + ImplicitWeakMessage::ParseImpl>(class_data); +} + +} // namespace + const char* ImplicitWeakMessage::ParseImpl(ImplicitWeakMessage* msg, const char* ptr, ParseContext* ctx) { return ctx->AppendString(ptr, msg->data_); @@ -58,16 +68,12 @@ /*type_name=*/""}; } -constexpr auto ImplicitWeakMessage::InternalGenerateParseTable_( - const ClassData* class_data) { - return CreateStubTcParseTable<ImplicitWeakMessage, ParseImpl>(class_data); -} struct ImplicitWeakMessageDefaultType : MessageGlobalsBase { constexpr ImplicitWeakMessageDefaultType() : MessageGlobalsBase(ImplicitWeakMessage::InternalGenerateClassData_()), _default(ConstantInitialized{}), - _table(ImplicitWeakMessage::InternalGenerateParseTable_(&class_data)) {} + _table(GenerateParseTable(&class_data)) {} ~ImplicitWeakMessageDefaultType() {} union { alignas(kMaxMessageAlignment) ImplicitWeakMessage _default; // NOLINT
diff --git a/src/google/protobuf/implicit_weak_message.h b/src/google/protobuf/implicit_weak_message.h index d31b51e..5103ab7 100644 --- a/src/google/protobuf/implicit_weak_message.h +++ b/src/google/protobuf/implicit_weak_message.h
@@ -88,8 +88,6 @@ const char* ptr, ParseContext* ctx); static constexpr auto InternalGenerateClassData_(); - static constexpr auto InternalGenerateParseTable_( - const ClassData* class_data); private: friend ImplicitWeakMessageDefaultType;
diff --git a/src/google/protobuf/json_enumvalue_options.pb.cc b/src/google/protobuf/json_enumvalue_options.pb.cc index 5d7300b..0d98894 100644 --- a/src/google/protobuf/json_enumvalue_options.pb.cc +++ b/src/google/protobuf/json_enumvalue_options.pb.cc
@@ -39,9 +39,12 @@ using HasBits = decltype(::std::declval<JsonEnumValueOptions>()._impl_._has_bits_); static constexpr ::int32_t kHasBitsOffset = 8 * PROTOBUF_FIELD_OFFSET(JsonEnumValueOptions, _impl_._has_bits_); + + static constexpr JsonEnumValueOptions::ParseTableT_ GenerateParseTable( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); }; -constexpr JsonEnumValueOptions::ParseTableT_ JsonEnumValueOptions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { +constexpr JsonEnumValueOptions::ParseTableT_ JsonEnumValueOptions::_Internal::GenerateParseTable(const ::_pbi::ClassData* class_data) { return ParseTableT_{ { PROTOBUF_FIELD_OFFSET(JsonEnumValueOptions, _impl_._has_bits_),
diff --git a/src/google/protobuf/json_enumvalue_options.pb.h b/src/google/protobuf/json_enumvalue_options.pb.h index 343b27c..1529f06 100644 --- a/src/google/protobuf/json_enumvalue_options.pb.h +++ b/src/google/protobuf/json_enumvalue_options.pb.h
@@ -242,6 +242,7 @@ #if defined(PROTOBUF_CUSTOM_VTABLE) struct Helpers_ { PROTOBUF_NODEBUG Helpers_(); + static void Clear(::google::protobuf::MessageLite& msg); [[nodiscard]] static::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( @@ -253,8 +254,6 @@ ::google::protobuf::internal::TcParseTable<0, 1, 0, 48, 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; friend class ::google::protobuf::MessageLite;
diff --git a/src/google/protobuf/map_entry.h b/src/google/protobuf/map_entry.h index 376d0e7..f97a350 100644 --- a/src/google/protobuf/map_entry.h +++ b/src/google/protobuf/map_entry.h
@@ -100,8 +100,6 @@ using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; - struct _Internal; - protected: friend class google::protobuf::Arena; @@ -123,13 +121,6 @@ } _impl_; }; -template <typename Key, typename Value, WireFormatLite::FieldType kKeyFieldType, - WireFormatLite::FieldType kValueFieldType> -struct MapEntry<Key, Value, kKeyFieldType, kValueFieldType>::_Internal { - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(MapEntry, _impl_._has_bits_); -}; - } // namespace internal } // namespace protobuf } // namespace google