|
|
|
@ -107,7 +107,7 @@ static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2 |
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[3]; |
|
|
|
|
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2ftype_2eproto = nullptr; |
|
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2ftype_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
|
|
|
|
const uint32_t TableStruct_google_2fprotobuf_2ftype_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
|
|
|
|
~0u, // no _has_bits_
|
|
|
|
|
PROTOBUF_FIELD_OFFSET(::PROTOBUF_NAMESPACE_ID::Type, _internal_metadata_), |
|
|
|
|
~0u, // no _extensions_
|
|
|
|
@ -372,6 +372,9 @@ Type::Type(const Type& from) |
|
|
|
|
options_(from.options_) { |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
@ -387,6 +390,9 @@ Type::Type(const Type& from) |
|
|
|
|
|
|
|
|
|
inline void Type::SharedCtor() { |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)), |
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - |
|
|
|
@ -418,7 +424,7 @@ void Type::SetCachedSize(int size) const { |
|
|
|
|
|
|
|
|
|
void Type::Clear() { |
|
|
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Type)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -437,12 +443,12 @@ void Type::Clear() { |
|
|
|
|
const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
uint32_t tag; |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Type.name")); |
|
|
|
@ -452,7 +458,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Field fields = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -465,7 +471,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -480,7 +486,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -493,7 +499,7 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
|
case 5: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -501,8 +507,8 @@ const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Syntax syntax = 6;
|
|
|
|
|
case 6: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 48)) { |
|
|
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_syntax(static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
} else |
|
|
|
@ -531,10 +537,10 @@ failure: |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Type::_InternalSerialize( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
uint8_t* Type::_InternalSerialize( |
|
|
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
@ -600,7 +606,7 @@ size_t Type::ByteSizeLong() const { |
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type)
|
|
|
|
|
size_t total_size = 0; |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -665,7 +671,7 @@ void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, |
|
|
|
|
void Type::MergeFrom(const Type& from) { |
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type)
|
|
|
|
|
GOOGLE_DCHECK_NE(&from, this); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
fields_.MergeFrom(from.fields_); |
|
|
|
@ -742,21 +748,33 @@ Field::Field(const Field& from) |
|
|
|
|
options_(from.options_) { |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_type_url().empty()) { |
|
|
|
|
type_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_type_url(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_json_name().empty()) { |
|
|
|
|
json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_json_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_default_value().empty()) { |
|
|
|
|
default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_value(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
@ -769,9 +787,21 @@ Field::Field(const Field& from) |
|
|
|
|
|
|
|
|
|
inline void Field::SharedCtor() { |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&kind_) - reinterpret_cast<char*>(this)), |
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&packed_) - |
|
|
|
@ -805,7 +835,7 @@ void Field::SetCachedSize(int size) const { |
|
|
|
|
|
|
|
|
|
void Field::Clear() { |
|
|
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Field)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -823,13 +853,13 @@ void Field::Clear() { |
|
|
|
|
const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
uint32_t tag; |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) { |
|
|
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_kind(static_cast<::PROTOBUF_NAMESPACE_ID::Field_Kind>(val)); |
|
|
|
|
} else |
|
|
|
@ -837,8 +867,8 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Field.Cardinality cardinality = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
|
|
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_cardinality(static_cast<::PROTOBUF_NAMESPACE_ID::Field_Cardinality>(val)); |
|
|
|
|
} else |
|
|
|
@ -846,7 +876,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// int32 number = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) { |
|
|
|
|
number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -854,7 +884,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// string name = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.name")); |
|
|
|
@ -864,7 +894,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// string type_url = 6;
|
|
|
|
|
case 6: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) { |
|
|
|
|
auto str = _internal_mutable_type_url(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.type_url")); |
|
|
|
@ -874,7 +904,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// int32 oneof_index = 7;
|
|
|
|
|
case 7: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 56)) { |
|
|
|
|
oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -882,7 +912,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// bool packed = 8;
|
|
|
|
|
case 8: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) { |
|
|
|
|
packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -890,7 +920,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 9;
|
|
|
|
|
case 9: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -903,7 +933,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// string json_name = 10;
|
|
|
|
|
case 10: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) { |
|
|
|
|
auto str = _internal_mutable_json_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.json_name")); |
|
|
|
@ -913,7 +943,7 @@ const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte |
|
|
|
|
continue; |
|
|
|
|
// string default_value = 11;
|
|
|
|
|
case 11: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) { |
|
|
|
|
auto str = _internal_mutable_default_value(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.default_value")); |
|
|
|
@ -944,10 +974,10 @@ failure: |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Field::_InternalSerialize( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
uint8_t* Field::_InternalSerialize( |
|
|
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
@ -1042,7 +1072,7 @@ size_t Field::ByteSizeLong() const { |
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field)
|
|
|
|
|
size_t total_size = 0; |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1127,7 +1157,7 @@ void Field::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, |
|
|
|
|
void Field::MergeFrom(const Field& from) { |
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Field)
|
|
|
|
|
GOOGLE_DCHECK_NE(&from, this); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
options_.MergeFrom(from.options_); |
|
|
|
@ -1246,6 +1276,9 @@ Enum::Enum(const Enum& from) |
|
|
|
|
options_(from.options_) { |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
@ -1261,6 +1294,9 @@ Enum::Enum(const Enum& from) |
|
|
|
|
|
|
|
|
|
inline void Enum::SharedCtor() { |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
|
|
|
|
reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)), |
|
|
|
|
0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) - |
|
|
|
@ -1292,7 +1328,7 @@ void Enum::SetCachedSize(int size) const { |
|
|
|
|
|
|
|
|
|
void Enum::Clear() { |
|
|
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Enum)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1310,12 +1346,12 @@ void Enum::Clear() { |
|
|
|
|
const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
uint32_t tag; |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Enum.name")); |
|
|
|
@ -1325,7 +1361,7 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -1338,7 +1374,7 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -1351,7 +1387,7 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
|
|
|
case 4: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -1359,8 +1395,8 @@ const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Syntax syntax = 5;
|
|
|
|
|
case 5: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) { |
|
|
|
|
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
_internal_set_syntax(static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(val)); |
|
|
|
|
} else |
|
|
|
@ -1389,10 +1425,10 @@ failure: |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Enum::_InternalSerialize( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
uint8_t* Enum::_InternalSerialize( |
|
|
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
@ -1448,7 +1484,7 @@ size_t Enum::ByteSizeLong() const { |
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum)
|
|
|
|
|
size_t total_size = 0; |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1505,7 +1541,7 @@ void Enum::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, |
|
|
|
|
void Enum::MergeFrom(const Enum& from) { |
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum)
|
|
|
|
|
GOOGLE_DCHECK_NE(&from, this); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
enumvalue_.MergeFrom(from.enumvalue_); |
|
|
|
@ -1580,6 +1616,9 @@ EnumValue::EnumValue(const EnumValue& from) |
|
|
|
|
options_(from.options_) { |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
@ -1590,6 +1629,9 @@ EnumValue::EnumValue(const EnumValue& from) |
|
|
|
|
|
|
|
|
|
inline void EnumValue::SharedCtor() { |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
number_ = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1617,7 +1659,7 @@ void EnumValue::SetCachedSize(int size) const { |
|
|
|
|
|
|
|
|
|
void EnumValue::Clear() { |
|
|
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1630,12 +1672,12 @@ void EnumValue::Clear() { |
|
|
|
|
const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
uint32_t tag; |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.EnumValue.name")); |
|
|
|
@ -1645,7 +1687,7 @@ const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: |
|
|
|
|
continue; |
|
|
|
|
// int32 number = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) { |
|
|
|
|
number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -1653,7 +1695,7 @@ const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: |
|
|
|
|
continue; |
|
|
|
|
// repeated .google.protobuf.Option options = 3;
|
|
|
|
|
case 3: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { |
|
|
|
|
ptr -= 1; |
|
|
|
|
do { |
|
|
|
|
ptr += 1; |
|
|
|
@ -1687,10 +1729,10 @@ failure: |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* EnumValue::_InternalSerialize( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
uint8_t* EnumValue::_InternalSerialize( |
|
|
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
@ -1729,7 +1771,7 @@ size_t EnumValue::ByteSizeLong() const { |
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue)
|
|
|
|
|
size_t total_size = 0; |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1771,7 +1813,7 @@ void EnumValue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, |
|
|
|
|
void EnumValue::MergeFrom(const EnumValue& from) { |
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValue)
|
|
|
|
|
GOOGLE_DCHECK_NE(&from, this); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
options_.MergeFrom(from.options_); |
|
|
|
@ -1845,6 +1887,9 @@ Option::Option(const Option& from) |
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() { |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
|
|
|
|
|
GetArenaForAllocation()); |
|
|
|
@ -1859,6 +1904,9 @@ Option::Option(const Option& from) |
|
|
|
|
|
|
|
|
|
inline void Option::SharedCtor() { |
|
|
|
|
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
value_ = nullptr; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1887,7 +1935,7 @@ void Option::SetCachedSize(int size) const { |
|
|
|
|
|
|
|
|
|
void Option::Clear() { |
|
|
|
|
// @@protoc_insertion_point(message_clear_start:google.protobuf.Option)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -1902,12 +1950,12 @@ void Option::Clear() { |
|
|
|
|
const char* Option::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
|
|
|
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
|
|
|
|
while (!ctx->Done(&ptr)) { |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 tag; |
|
|
|
|
uint32_t tag; |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
|
|
|
|
switch (tag >> 3) { |
|
|
|
|
// string name = 1;
|
|
|
|
|
case 1: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) { |
|
|
|
|
auto str = _internal_mutable_name(); |
|
|
|
|
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
|
|
|
|
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Option.name")); |
|
|
|
@ -1917,7 +1965,7 @@ const char* Option::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int |
|
|
|
|
continue; |
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
|
case 2: |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
|
|
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { |
|
|
|
|
ptr = ctx->ParseMessage(_internal_mutable_value(), ptr); |
|
|
|
|
CHK_(ptr); |
|
|
|
|
} else |
|
|
|
@ -1946,10 +1994,10 @@ failure: |
|
|
|
|
#undef CHK_ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* Option::_InternalSerialize( |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
uint8_t* Option::_InternalSerialize( |
|
|
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
|
|
|
|
// @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
@ -1982,7 +2030,7 @@ size_t Option::ByteSizeLong() const { |
|
|
|
|
// @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option)
|
|
|
|
|
size_t total_size = 0; |
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
@ -2019,7 +2067,7 @@ void Option::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, |
|
|
|
|
void Option::MergeFrom(const Option& from) { |
|
|
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Option)
|
|
|
|
|
GOOGLE_DCHECK_NE(&from, this); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
|
|
|
|
uint32_t cached_has_bits = 0; |
|
|
|
|
(void) cached_has_bits; |
|
|
|
|
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|