|
@@ -495,63 +495,63 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
// string name = 1;
|
|
- case 1: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 10) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Type.name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- // repeated .google.protobuf.Field fields = 2;
|
|
|
|
- case 2: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 18) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_fields(), ptr);
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Type.name");
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 18) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
|
|
+ // repeated .google.protobuf.Field fields = 2;
|
|
|
|
+ case 2:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_fields(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// repeated string oneofs = 3;
|
|
// repeated string oneofs = 3;
|
|
- case 3: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 26) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_oneofs(), ptr, ctx, "google.protobuf.Type.oneofs");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 26) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 3:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_oneofs(), ptr, ctx, "google.protobuf.Type.oneofs");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// repeated .google.protobuf.Option options = 4;
|
|
// repeated .google.protobuf.Option options = 4;
|
|
- case 4: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 34) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 34) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 4:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
- case 5: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 42) goto handle_unusual;
|
|
|
|
- ptr = ctx->ParseMessage(mutable_source_context(), ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 5:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
|
|
|
|
+ ptr = ctx->ParseMessage(mutable_source_context(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
- case 6: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 48) goto handle_unusual;
|
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 6:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
|
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
default: {
|
|
default: {
|
|
handle_unusual:
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -560,7 +560,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
|
|
}
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
CHK_(ptr != nullptr);
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
}
|
|
}
|
|
} // switch
|
|
} // switch
|
|
} // while
|
|
} // while
|
|
@@ -1097,82 +1097,82 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
switch (tag >> 3) {
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
- case 1: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 8) goto handle_unusual;
|
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- set_kind(static_cast<PROTOBUF_NAMESPACE_ID::Field_Kind>(val));
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
|
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ set_kind(static_cast<PROTOBUF_NAMESPACE_ID::Field_Kind>(val));
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
- case 2: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 16) goto handle_unusual;
|
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- set_cardinality(static_cast<PROTOBUF_NAMESPACE_ID::Field_Cardinality>(val));
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 2:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ set_cardinality(static_cast<PROTOBUF_NAMESPACE_ID::Field_Cardinality>(val));
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// int32 number = 3;
|
|
// int32 number = 3;
|
|
- case 3: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 24) goto handle_unusual;
|
|
|
|
- number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 3:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
|
|
|
|
+ number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// string name = 4;
|
|
// string name = 4;
|
|
- case 4: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 34) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Field.name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 4:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Field.name");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// string type_url = 6;
|
|
// string type_url = 6;
|
|
- case 6: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 50) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type_url(), ptr, ctx, "google.protobuf.Field.type_url");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 6:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_type_url(), ptr, ctx, "google.protobuf.Field.type_url");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// int32 oneof_index = 7;
|
|
// int32 oneof_index = 7;
|
|
- case 7: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 56) goto handle_unusual;
|
|
|
|
- oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 7:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
|
|
|
|
+ oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// bool packed = 8;
|
|
// bool packed = 8;
|
|
- case 8: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 64) goto handle_unusual;
|
|
|
|
- packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- // repeated .google.protobuf.Option options = 9;
|
|
|
|
- case 9: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 74) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
|
|
+ case 8:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
|
|
|
|
+ packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 74) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
|
|
+ // repeated .google.protobuf.Option options = 9;
|
|
|
|
+ case 9:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 74);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// string json_name = 10;
|
|
// string json_name = 10;
|
|
- case 10: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 82) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_name(), ptr, ctx, "google.protobuf.Field.json_name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 10:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_json_name(), ptr, ctx, "google.protobuf.Field.json_name");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// string default_value = 11;
|
|
// string default_value = 11;
|
|
- case 11: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 90) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_default_value(), ptr, ctx, "google.protobuf.Field.default_value");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 11:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_default_value(), ptr, ctx, "google.protobuf.Field.default_value");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
default: {
|
|
default: {
|
|
handle_unusual:
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -1181,7 +1181,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte
|
|
}
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
CHK_(ptr != nullptr);
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
}
|
|
}
|
|
} // switch
|
|
} // switch
|
|
} // while
|
|
} // while
|
|
@@ -1882,51 +1882,51 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
// string name = 1;
|
|
- case 1: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 10) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Enum.name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- // repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
- case 2: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 18) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_enumvalue(), ptr);
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Enum.name");
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 18) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
|
|
+ // repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
+ case 2:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_enumvalue(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// repeated .google.protobuf.Option options = 3;
|
|
// repeated .google.protobuf.Option options = 3;
|
|
- case 3: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 26) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 26) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 3:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
- case 4: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 34) goto handle_unusual;
|
|
|
|
- ptr = ctx->ParseMessage(mutable_source_context(), ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 4:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
|
|
|
|
+ ptr = ctx->ParseMessage(mutable_source_context(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
- case 5: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 40) goto handle_unusual;
|
|
|
|
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 5:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
|
|
|
|
+ ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
default: {
|
|
default: {
|
|
handle_unusual:
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -1935,7 +1935,7 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter
|
|
}
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
CHK_(ptr != nullptr);
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
}
|
|
}
|
|
} // switch
|
|
} // switch
|
|
} // while
|
|
} // while
|
|
@@ -2389,31 +2389,31 @@ const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
// string name = 1;
|
|
- case 1: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 10) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.EnumValue.name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.EnumValue.name");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// int32 number = 2;
|
|
// int32 number = 2;
|
|
- case 2: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 16) goto handle_unusual;
|
|
|
|
- number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- // repeated .google.protobuf.Option options = 3;
|
|
|
|
- case 3: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 26) goto handle_unusual;
|
|
|
|
- while (true) {
|
|
|
|
- ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
|
|
+ case 2:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
|
|
|
|
+ number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
- if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
- if (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) != 26) break;
|
|
|
|
- ptr += 1;
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
|
|
+ // repeated .google.protobuf.Option options = 3;
|
|
|
|
+ case 3:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
|
|
|
|
+ ptr -= 1;
|
|
|
|
+ do {
|
|
|
|
+ ptr += 1;
|
|
|
|
+ ptr = ctx->ParseMessage(add_options(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ if (!ctx->DataAvailable(ptr)) break;
|
|
|
|
+ } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
default: {
|
|
default: {
|
|
handle_unusual:
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -2422,7 +2422,7 @@ const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::
|
|
}
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
CHK_(ptr != nullptr);
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
}
|
|
}
|
|
} // switch
|
|
} // switch
|
|
} // while
|
|
} // while
|
|
@@ -2828,19 +2828,19 @@ const char* Option::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
|
|
CHK_(ptr);
|
|
CHK_(ptr);
|
|
switch (tag >> 3) {
|
|
switch (tag >> 3) {
|
|
// string name = 1;
|
|
// string name = 1;
|
|
- case 1: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 10) goto handle_unusual;
|
|
|
|
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Option.name");
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 1:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
|
|
|
|
+ ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Option.name");
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
// .google.protobuf.Any value = 2;
|
|
// .google.protobuf.Any value = 2;
|
|
- case 2: {
|
|
|
|
- if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) != 18) goto handle_unusual;
|
|
|
|
- ptr = ctx->ParseMessage(mutable_value(), ptr);
|
|
|
|
- CHK_(ptr);
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
|
|
+ case 2:
|
|
|
|
+ if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
|
|
|
|
+ ptr = ctx->ParseMessage(mutable_value(), ptr);
|
|
|
|
+ CHK_(ptr);
|
|
|
|
+ } else goto handle_unusual;
|
|
|
|
+ continue;
|
|
default: {
|
|
default: {
|
|
handle_unusual:
|
|
handle_unusual:
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
if ((tag & 7) == 4 || tag == 0) {
|
|
@@ -2849,7 +2849,7 @@ const char* Option::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int
|
|
}
|
|
}
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
|
|
CHK_(ptr != nullptr);
|
|
CHK_(ptr != nullptr);
|
|
- break;
|
|
|
|
|
|
+ continue;
|
|
}
|
|
}
|
|
} // switch
|
|
} // switch
|
|
} // while
|
|
} // while
|