|
|
|
@ -11,6 +11,7 @@ |
|
|
|
|
#include "google/protobuf/generated_message_reflection.h" |
|
|
|
|
#include "google/protobuf/reflection_ops.h" |
|
|
|
|
#include "google/protobuf/wire_format.h" |
|
|
|
|
#include "google/protobuf/generated_message_tctable_impl.h" |
|
|
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
|
|
|
|
|
|
// Must be included last.
|
|
|
|
@ -18,6 +19,7 @@ |
|
|
|
|
PROTOBUF_PRAGMA_INIT_SEG |
|
|
|
|
namespace _pb = ::google::protobuf; |
|
|
|
|
namespace _pbi = ::google::protobuf::internal; |
|
|
|
|
namespace _fl = ::google::protobuf::internal::field_layout; |
|
|
|
|
namespace google { |
|
|
|
|
namespace protobuf { |
|
|
|
|
PROTOBUF_CONSTEXPR Type::Type(::_pbi::ConstantInitialized) |
|
|
|
@ -575,122 +577,87 @@ PROTOBUF_NOINLINE void Type::Clear() { |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const char* Type::_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) { |
|
|
|
|
// 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); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Type.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Field fields = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_fields()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<18>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
auto str = _internal_mutable_oneofs()->Add(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Type.oneofs")); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<26>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_options()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<34>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
case 5: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
|
|
|
case 6: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) { |
|
|
|
|
::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_syntax(static_cast<::google::protobuf::Syntax>(val)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string edition = 7;
|
|
|
|
|
case 7: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) { |
|
|
|
|
auto str = _internal_mutable_edition(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Type.edition")); |
|
|
|
|
} 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* Type::_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, 7, 3, 46, 2> Type::_table_ = { |
|
|
|
|
{ |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Type, _impl_._has_bits_), |
|
|
|
|
0, // no _extensions_
|
|
|
|
|
7, 56, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
|
4294967168, // skipmap
|
|
|
|
|
offsetof(decltype(_table_), field_entries), |
|
|
|
|
7, // num_field_entries
|
|
|
|
|
3, // num_aux_entries
|
|
|
|
|
offsetof(decltype(_table_), aux_entries), |
|
|
|
|
&_Type_default_instance_._instance, |
|
|
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
|
|
|
}, {{ |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Type, _impl_.name_)}}, |
|
|
|
|
// repeated .google.protobuf.Field fields = 2;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Type, _impl_.fields_)}}, |
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
{::_pbi::TcParser::FastUR1, |
|
|
|
|
{26, 63, 0, PROTOBUF_FIELD_OFFSET(Type, _impl_.oneofs_)}}, |
|
|
|
|
// repeated .google.protobuf.Option options = 4;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{34, 63, 1, PROTOBUF_FIELD_OFFSET(Type, _impl_.options_)}}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
{::_pbi::TcParser::FastMtS1, |
|
|
|
|
{42, 0, 2, PROTOBUF_FIELD_OFFSET(Type, _impl_.source_context_)}}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Type, _impl_.syntax_), 63>(), |
|
|
|
|
{48, 63, 0, PROTOBUF_FIELD_OFFSET(Type, _impl_.syntax_)}}, |
|
|
|
|
// string edition = 7;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{58, 63, 0, PROTOBUF_FIELD_OFFSET(Type, _impl_.edition_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.name_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// repeated .google.protobuf.Field fields = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.fields_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.oneofs_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, |
|
|
|
|
// repeated .google.protobuf.Option options = 4;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.options_), -1, 1, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.source_context_), _Internal::kHasBitsOffset + 0, 2, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.syntax_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
// string edition = 7;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Type, _impl_.edition_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Field>()}, |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::SourceContext>()}, |
|
|
|
|
}}, {{ |
|
|
|
|
"\24\4\0\6\0\0\0\7" |
|
|
|
|
"google.protobuf.Type" |
|
|
|
|
"name" |
|
|
|
|
"oneofs" |
|
|
|
|
"edition" |
|
|
|
|
}}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
::uint8_t* Type::_InternalSerialize( |
|
|
|
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
|
|
|
|
@ -1024,140 +991,109 @@ PROTOBUF_NOINLINE void Field::Clear() { |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const char* Field::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::uint32_t tag; |
|
|
|
|
ptr = ::_pbi::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) { |
|
|
|
|
::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_kind(static_cast<::google::protobuf::Field_Kind>(val)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { |
|
|
|
|
::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_cardinality(static_cast<::google::protobuf::Field_Cardinality>(val)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// int32 number = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) { |
|
|
|
|
_impl_.number_ = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string name = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Field.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string type_url = 6;
|
|
|
|
|
case 6: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { |
|
|
|
|
auto str = _internal_mutable_type_url(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Field.type_url")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// int32 oneof_index = 7;
|
|
|
|
|
case 7: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) { |
|
|
|
|
_impl_.oneof_index_ = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// bool packed = 8;
|
|
|
|
|
case 8: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) { |
|
|
|
|
_impl_.packed_ = ::google::protobuf::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 9;
|
|
|
|
|
case 9: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_options()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<74>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string json_name = 10;
|
|
|
|
|
case 10: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) { |
|
|
|
|
auto str = _internal_mutable_json_name(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Field.json_name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string default_value = 11;
|
|
|
|
|
case 11: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) { |
|
|
|
|
auto str = _internal_mutable_default_value(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Field.default_value")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
default: |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} // switch
|
|
|
|
|
handle_unusual: |
|
|
|
|
if ((tag == 0) || ((tag & 7) == 4)) { |
|
|
|
|
CHK_(ptr); |
|
|
|
|
ctx->SetLastTag(tag); |
|
|
|
|
goto message_done; |
|
|
|
|
} |
|
|
|
|
ptr = UnknownFieldParse( |
|
|
|
|
tag, |
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), |
|
|
|
|
ptr, ctx); |
|
|
|
|
CHK_(ptr != nullptr); |
|
|
|
|
} // while
|
|
|
|
|
message_done: |
|
|
|
|
const char* Field::_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<4, 10, 1, 72, 2> Field::_table_ = { |
|
|
|
|
{ |
|
|
|
|
0, // no _has_bits_
|
|
|
|
|
0, // no _extensions_
|
|
|
|
|
11, 120, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
|
4294965264, // skipmap
|
|
|
|
|
offsetof(decltype(_table_), field_entries), |
|
|
|
|
10, // num_field_entries
|
|
|
|
|
1, // num_aux_entries
|
|
|
|
|
offsetof(decltype(_table_), aux_entries), |
|
|
|
|
&_Field_default_instance_._instance, |
|
|
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
|
|
|
}, {{ |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Field, _impl_.kind_), 63>(), |
|
|
|
|
{8, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.kind_)}}, |
|
|
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Field, _impl_.cardinality_), 63>(), |
|
|
|
|
{16, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.cardinality_)}}, |
|
|
|
|
// int32 number = 3;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Field, _impl_.number_), 63>(), |
|
|
|
|
{24, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.number_)}}, |
|
|
|
|
// string name = 4;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{34, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.name_)}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string type_url = 6;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{50, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.type_url_)}}, |
|
|
|
|
// int32 oneof_index = 7;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Field, _impl_.oneof_index_), 63>(), |
|
|
|
|
{56, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.oneof_index_)}}, |
|
|
|
|
// bool packed = 8;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Field, _impl_.packed_), 63>(), |
|
|
|
|
{64, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.packed_)}}, |
|
|
|
|
// repeated .google.protobuf.Option options = 9;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{74, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.options_)}}, |
|
|
|
|
// string json_name = 10;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{82, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.json_name_)}}, |
|
|
|
|
// string default_value = 11;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{90, 63, 0, PROTOBUF_FIELD_OFFSET(Field, _impl_.default_value_)}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.kind_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.cardinality_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
// int32 number = 3;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.number_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kInt32)}, |
|
|
|
|
// string name = 4;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.name_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// string type_url = 6;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.type_url_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// int32 oneof_index = 7;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.oneof_index_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kInt32)}, |
|
|
|
|
// bool packed = 8;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.packed_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kBool)}, |
|
|
|
|
// repeated .google.protobuf.Option options = 9;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.options_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// string json_name = 10;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.json_name_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// string default_value = 11;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Field, _impl_.default_value_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
|
}}, {{ |
|
|
|
|
"\25\0\0\0\4\10\0\0\0\11\15\0\0\0\0\0" |
|
|
|
|
"google.protobuf.Field" |
|
|
|
|
"name" |
|
|
|
|
"type_url" |
|
|
|
|
"json_name" |
|
|
|
|
"default_value" |
|
|
|
|
}}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
::uint8_t* Field::_InternalSerialize( |
|
|
|
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
|
|
|
|
@ -1526,106 +1462,81 @@ PROTOBUF_NOINLINE void Enum::Clear() { |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const char* Enum::_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) { |
|
|
|
|
// 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); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Enum.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_enumvalue()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<18>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_options()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<26>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
|
|
|
case 5: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) { |
|
|
|
|
::int32_t val = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_syntax(static_cast<::google::protobuf::Syntax>(val)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// string edition = 6;
|
|
|
|
|
case 6: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) { |
|
|
|
|
auto str = _internal_mutable_edition(); |
|
|
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Enum.edition")); |
|
|
|
|
} 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* Enum::_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, 6, 3, 40, 2> Enum::_table_ = { |
|
|
|
|
{ |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Enum, _impl_._has_bits_), |
|
|
|
|
0, // no _extensions_
|
|
|
|
|
6, 56, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
|
4294967232, // skipmap
|
|
|
|
|
offsetof(decltype(_table_), field_entries), |
|
|
|
|
6, // num_field_entries
|
|
|
|
|
3, // num_aux_entries
|
|
|
|
|
offsetof(decltype(_table_), aux_entries), |
|
|
|
|
&_Enum_default_instance_._instance, |
|
|
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
|
|
|
}, {{ |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Enum, _impl_.name_)}}, |
|
|
|
|
// repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{18, 63, 0, PROTOBUF_FIELD_OFFSET(Enum, _impl_.enumvalue_)}}, |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{26, 63, 1, PROTOBUF_FIELD_OFFSET(Enum, _impl_.options_)}}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
|
|
|
{::_pbi::TcParser::FastMtS1, |
|
|
|
|
{34, 0, 2, PROTOBUF_FIELD_OFFSET(Enum, _impl_.source_context_)}}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Enum, _impl_.syntax_), 63>(), |
|
|
|
|
{40, 63, 0, PROTOBUF_FIELD_OFFSET(Enum, _impl_.syntax_)}}, |
|
|
|
|
// string edition = 6;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{50, 63, 0, PROTOBUF_FIELD_OFFSET(Enum, _impl_.edition_)}}, |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.name_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.enumvalue_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.options_), -1, 1, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.source_context_), _Internal::kHasBitsOffset + 0, 2, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.syntax_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kOpenEnum)}, |
|
|
|
|
// string edition = 6;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Enum, _impl_.edition_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::EnumValue>()}, |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::SourceContext>()}, |
|
|
|
|
}}, {{ |
|
|
|
|
"\24\4\0\0\0\0\7\0" |
|
|
|
|
"google.protobuf.Enum" |
|
|
|
|
"name" |
|
|
|
|
"edition" |
|
|
|
|
}}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
::uint8_t* Enum::_InternalSerialize( |
|
|
|
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
|
|
|
|
@ -1884,69 +1795,59 @@ PROTOBUF_NOINLINE void EnumValue::Clear() { |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const char* EnumValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::uint32_t tag; |
|
|
|
|
ptr = ::_pbi::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// 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); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.EnumValue.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// int32 number = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) { |
|
|
|
|
_impl_.number_ = ::google::protobuf::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_options()->Add(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
if (!ctx->DataAvailable(ptr)) break; |
|
|
|
|
} while (::google::protobuf::internal::ExpectTag<26>(ptr)); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
default: |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} // switch
|
|
|
|
|
handle_unusual: |
|
|
|
|
if ((tag == 0) || ((tag & 7) == 4)) { |
|
|
|
|
CHK_(ptr); |
|
|
|
|
ctx->SetLastTag(tag); |
|
|
|
|
goto message_done; |
|
|
|
|
} |
|
|
|
|
ptr = UnknownFieldParse( |
|
|
|
|
tag, |
|
|
|
|
_internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(), |
|
|
|
|
ptr, ctx); |
|
|
|
|
CHK_(ptr != nullptr); |
|
|
|
|
} // while
|
|
|
|
|
message_done: |
|
|
|
|
const char* EnumValue::_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, 38, 2> EnumValue::_table_ = { |
|
|
|
|
{ |
|
|
|
|
0, // no _has_bits_
|
|
|
|
|
0, // no _extensions_
|
|
|
|
|
3, 24, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
|
4294967288, // skipmap
|
|
|
|
|
offsetof(decltype(_table_), field_entries), |
|
|
|
|
3, // num_field_entries
|
|
|
|
|
1, // num_aux_entries
|
|
|
|
|
offsetof(decltype(_table_), aux_entries), |
|
|
|
|
&_EnumValue_default_instance_._instance, |
|
|
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
|
|
|
}, {{ |
|
|
|
|
{::_pbi::TcParser::MiniParse, {}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.name_)}}, |
|
|
|
|
// int32 number = 2;
|
|
|
|
|
{::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(EnumValue, _impl_.number_), 63>(), |
|
|
|
|
{16, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.number_)}}, |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
{::_pbi::TcParser::FastMtR1, |
|
|
|
|
{26, 63, 0, PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.options_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.name_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// int32 number = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.number_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kInt32)}, |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(EnumValue, _impl_.options_), 0, 0, |
|
|
|
|
(0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Option>()}, |
|
|
|
|
}}, {{ |
|
|
|
|
"\31\4\0\0\0\0\0\0" |
|
|
|
|
"google.protobuf.EnumValue" |
|
|
|
|
"name" |
|
|
|
|
}}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
::uint8_t* EnumValue::_InternalSerialize( |
|
|
|
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
|
|
|
|
@ -2163,57 +2064,52 @@ PROTOBUF_NOINLINE void Option::Clear() { |
|
|
|
|
_internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const char* Option::_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) { |
|
|
|
|
// 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); |
|
|
|
|
CHK_(::_pbi::VerifyUTF8(str, "google.protobuf.Option.name")); |
|
|
|
|
} else { |
|
|
|
|
goto handle_unusual; |
|
|
|
|
} |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_value(), 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* Option::_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<1, 2, 1, 35, 2> Option::_table_ = { |
|
|
|
|
{ |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Option, _impl_._has_bits_), |
|
|
|
|
0, // no _extensions_
|
|
|
|
|
2, 8, // max_field_number, fast_idx_mask
|
|
|
|
|
offsetof(decltype(_table_), field_lookup_table), |
|
|
|
|
4294967292, // skipmap
|
|
|
|
|
offsetof(decltype(_table_), field_entries), |
|
|
|
|
2, // num_field_entries
|
|
|
|
|
1, // num_aux_entries
|
|
|
|
|
offsetof(decltype(_table_), aux_entries), |
|
|
|
|
&_Option_default_instance_._instance, |
|
|
|
|
::_pbi::TcParser::GenericFallback, // fallback
|
|
|
|
|
}, {{ |
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
|
{::_pbi::TcParser::FastMtS1, |
|
|
|
|
{18, 0, 0, PROTOBUF_FIELD_OFFSET(Option, _impl_.value_)}}, |
|
|
|
|
// string name = 1;
|
|
|
|
|
{::_pbi::TcParser::FastUS1, |
|
|
|
|
{10, 63, 0, PROTOBUF_FIELD_OFFSET(Option, _impl_.name_)}}, |
|
|
|
|
}}, {{ |
|
|
|
|
65535, 65535 |
|
|
|
|
}}, {{ |
|
|
|
|
// string name = 1;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Option, _impl_.name_), -1, 0, |
|
|
|
|
(0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)}, |
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
|
{PROTOBUF_FIELD_OFFSET(Option, _impl_.value_), _Internal::kHasBitsOffset + 0, 0, |
|
|
|
|
(0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, |
|
|
|
|
}}, {{ |
|
|
|
|
{::_pbi::TcParser::GetTable<::google::protobuf::Any>()}, |
|
|
|
|
}}, {{ |
|
|
|
|
"\26\4\0\0\0\0\0\0" |
|
|
|
|
"google.protobuf.Option" |
|
|
|
|
"name" |
|
|
|
|
}}, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
::uint8_t* Option::_InternalSerialize( |
|
|
|
|
::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
|
|
|
|
|