@ -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)