|
|
|
@ -24,7 +24,10 @@ PROTOBUF_CONSTEXPR Type::Type( |
|
|
|
|
/*decltype(_impl_.fields_)*/{} |
|
|
|
|
, /*decltype(_impl_.oneofs_)*/{} |
|
|
|
|
, /*decltype(_impl_.options_)*/{} |
|
|
|
|
, /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.source_context_)*/nullptr |
|
|
|
|
, /*decltype(_impl_.syntax_)*/0 |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {} |
|
|
|
@ -41,17 +44,29 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
|
|
|
|
PROTOBUF_CONSTEXPR Field::Field( |
|
|
|
|
::_pbi::ConstantInitialized): _impl_{ |
|
|
|
|
/*decltype(_impl_.options_)*/{} |
|
|
|
|
, /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.type_url_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.json_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.default_value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.type_url_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.json_name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.default_value_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.kind_)*/0 |
|
|
|
|
, /*decltype(_impl_.cardinality_)*/0 |
|
|
|
|
, /* ._impl_.number_ = */ 0 |
|
|
|
|
, /*decltype(_impl_.number_)*/ 0 |
|
|
|
|
|
|
|
|
|
, /* ._impl_.oneof_index_ = */ 0 |
|
|
|
|
, /*decltype(_impl_.oneof_index_)*/ 0 |
|
|
|
|
|
|
|
|
|
, /* ._impl_.packed_ = */ false |
|
|
|
|
, /*decltype(_impl_.packed_)*/ false |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {} |
|
|
|
|
struct FieldDefaultTypeInternal { |
|
|
|
@ -68,7 +83,10 @@ PROTOBUF_CONSTEXPR Enum::Enum( |
|
|
|
|
::_pbi::ConstantInitialized): _impl_{ |
|
|
|
|
/*decltype(_impl_.enumvalue_)*/{} |
|
|
|
|
, /*decltype(_impl_.options_)*/{} |
|
|
|
|
, /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.source_context_)*/nullptr |
|
|
|
|
, /*decltype(_impl_.syntax_)*/0 |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {} |
|
|
|
@ -85,8 +103,11 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
|
|
|
|
PROTOBUF_CONSTEXPR EnumValue::EnumValue( |
|
|
|
|
::_pbi::ConstantInitialized): _impl_{ |
|
|
|
|
/*decltype(_impl_.options_)*/{} |
|
|
|
|
, /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
, /* ._impl_.number_ = */ 0 |
|
|
|
|
, /*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.number_)*/ 0 |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {} |
|
|
|
|
struct EnumValueDefaultTypeInternal { |
|
|
|
@ -101,7 +122,10 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT |
|
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; |
|
|
|
|
PROTOBUF_CONSTEXPR Option::Option( |
|
|
|
|
::_pbi::ConstantInitialized): _impl_{ |
|
|
|
|
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} |
|
|
|
|
/*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_.value_)*/nullptr |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}} {} |
|
|
|
|
struct OptionDefaultTypeInternal { |
|
|
|
@ -417,7 +441,8 @@ Type::Type(const Type& from) |
|
|
|
|
decltype(_impl_.fields_){from._impl_.fields_} |
|
|
|
|
, decltype(_impl_.oneofs_){from._impl_.oneofs_} |
|
|
|
|
, decltype(_impl_.options_){from._impl_.options_} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.source_context_){nullptr} |
|
|
|
|
, decltype(_impl_.syntax_){} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}}; |
|
|
|
@ -425,11 +450,10 @@ Type::Type(const Type& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_source_context()) { |
|
|
|
|
_this->_impl_.source_context_ = new ::PROTOBUF_NAMESPACE_ID::SourceContext(*from._impl_.source_context_); |
|
|
|
@ -444,15 +468,16 @@ inline void Type::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
decltype(_impl_.fields_){arena} |
|
|
|
|
, decltype(_impl_.oneofs_){arena} |
|
|
|
|
, decltype(_impl_.options_){arena} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.source_context_){nullptr} |
|
|
|
|
, decltype(_impl_.syntax_){0} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{} |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Type::~Type() { |
|
|
|
@ -606,12 +631,10 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Type.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
1, this->_internal_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Type.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Field fields = 2;
|
|
|
|
@ -623,12 +646,10 @@ failure: |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
for (int i = 0, n = this->_internal_oneofs_size(); i < n; i++) { |
|
|
|
|
for (int i = 0, n = this->_internal_oneofs_size(); i < n; ++i) { |
|
|
|
|
const auto& s = this->_internal_oneofs(i); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
s.data(), static_cast<int>(s.length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Type.oneofs"); |
|
|
|
|
s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Type.oneofs"); |
|
|
|
|
target = stream->WriteString(3, s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -678,11 +699,9 @@ failure: |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated string oneofs = 3;
|
|
|
|
|
total_size += 1 * |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.oneofs_.size()); |
|
|
|
|
for (int i = 0, n = _impl_.oneofs_.size(); i < n; i++) { |
|
|
|
|
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
_impl_.oneofs_.Get(i)); |
|
|
|
|
total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.oneofs_.size()); |
|
|
|
|
for (int i = 0, n = _impl_.oneofs_.size(); i < n; ++i) { |
|
|
|
|
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(_impl_.oneofs_.Get(i)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.Option options = 4;
|
|
|
|
@ -694,9 +713,8 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.SourceContext source_context = 5;
|
|
|
|
@ -765,10 +783,8 @@ void Type::InternalSwap(Type* other) { |
|
|
|
|
_impl_.fields_.InternalSwap(&other->_impl_.fields_); |
|
|
|
|
_impl_.oneofs_.InternalSwap(&other->_impl_.oneofs_); |
|
|
|
|
_impl_.options_.InternalSwap(&other->_impl_.options_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Type, _impl_.syntax_) |
|
|
|
|
+ sizeof(Type::_impl_.syntax_) |
|
|
|
@ -798,10 +814,14 @@ Field::Field(const Field& from) |
|
|
|
|
Field* const _this = this; (void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){from._impl_.options_} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.type_url_){} |
|
|
|
|
, decltype(_impl_.json_name_){} |
|
|
|
|
, decltype(_impl_.default_value_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.type_url_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.json_name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.default_value_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.kind_){} |
|
|
|
|
, decltype(_impl_.cardinality_){} |
|
|
|
|
, decltype(_impl_.number_) {} |
|
|
|
@ -815,35 +835,31 @@ Field::Field(const Field& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
_impl_.type_url_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.type_url_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.type_url_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_type_url().empty()) { |
|
|
|
|
_this->_impl_.type_url_.Set(from._internal_type_url(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.type_url_.Set(from._internal_type_url(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
_impl_.json_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_json_name().empty()) { |
|
|
|
|
_this->_impl_.json_name_.Set(from._internal_json_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.json_name_.Set(from._internal_json_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
_impl_.default_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_default_value().empty()) { |
|
|
|
|
_this->_impl_.default_value_.Set(from._internal_default_value(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.default_value_.Set(from._internal_default_value(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&_impl_.kind_, &from._impl_.kind_, |
|
|
|
|
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.packed_) - |
|
|
|
@ -855,10 +871,14 @@ inline void Field::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){arena} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.type_url_){} |
|
|
|
|
, decltype(_impl_.json_name_){} |
|
|
|
|
, decltype(_impl_.default_value_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.type_url_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.json_name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.default_value_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.kind_){0} |
|
|
|
|
, decltype(_impl_.cardinality_){0} |
|
|
|
|
, decltype(_impl_.number_) { 0 } |
|
|
|
@ -871,20 +891,20 @@ inline void Field::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.type_url_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.type_url_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.type_url_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.json_name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.json_name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.default_value_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.default_value_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Field::~Field() { |
|
|
|
@ -1089,22 +1109,18 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 4;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Field.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
4, this->_internal_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Field.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(4, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string type_url = 6;
|
|
|
|
|
if (!this->_internal_type_url().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_type_url(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_type_url().data(), static_cast<int>(this->_internal_type_url().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Field.type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
6, this->_internal_type_url(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Field.type_url"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(6, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// int32 oneof_index = 7;
|
|
|
|
@ -1131,22 +1147,18 @@ failure: |
|
|
|
|
|
|
|
|
|
// string json_name = 10;
|
|
|
|
|
if (!this->_internal_json_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_json_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_json_name().data(), static_cast<int>(this->_internal_json_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Field.json_name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
10, this->_internal_json_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Field.json_name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(10, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string default_value = 11;
|
|
|
|
|
if (!this->_internal_default_value().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_default_value(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_default_value().data(), static_cast<int>(this->_internal_default_value().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Field.default_value"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
11, this->_internal_default_value(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Field.default_value"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(11, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
|
|
|
@ -1174,30 +1186,26 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 4;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string type_url = 6;
|
|
|
|
|
if (!this->_internal_type_url().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_type_url()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_type_url()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string json_name = 10;
|
|
|
|
|
if (!this->_internal_json_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_json_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_json_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// string default_value = 11;
|
|
|
|
|
if (!this->_internal_default_value().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_default_value()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_default_value()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Field.Kind kind = 1;
|
|
|
|
@ -1295,22 +1303,14 @@ void Field::InternalSwap(Field* other) { |
|
|
|
|
auto* rhs_arena = other->GetArenaForAllocation(); |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
_impl_.options_.InternalSwap(&other->_impl_.options_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.type_url_, lhs_arena, |
|
|
|
|
&other->_impl_.type_url_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.json_name_, lhs_arena, |
|
|
|
|
&other->_impl_.json_name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.default_value_, lhs_arena, |
|
|
|
|
&other->_impl_.default_value_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.type_url_, lhs_arena, |
|
|
|
|
&other->_impl_.type_url_, rhs_arena); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.json_name_, lhs_arena, |
|
|
|
|
&other->_impl_.json_name_, rhs_arena); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.default_value_, lhs_arena, |
|
|
|
|
&other->_impl_.default_value_, rhs_arena); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Field, _impl_.packed_) |
|
|
|
|
+ sizeof(Field::_impl_.packed_) |
|
|
|
@ -1352,7 +1352,8 @@ Enum::Enum(const Enum& from) |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.enumvalue_){from._impl_.enumvalue_} |
|
|
|
|
, decltype(_impl_.options_){from._impl_.options_} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.source_context_){nullptr} |
|
|
|
|
, decltype(_impl_.syntax_){} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}}; |
|
|
|
@ -1360,11 +1361,10 @@ Enum::Enum(const Enum& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_source_context()) { |
|
|
|
|
_this->_impl_.source_context_ = new ::PROTOBUF_NAMESPACE_ID::SourceContext(*from._impl_.source_context_); |
|
|
|
@ -1378,15 +1378,16 @@ inline void Enum::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.enumvalue_){arena} |
|
|
|
|
, decltype(_impl_.options_){arena} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.source_context_){nullptr} |
|
|
|
|
, decltype(_impl_.syntax_){0} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{} |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Enum::~Enum() { |
|
|
|
@ -1522,12 +1523,10 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Enum.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
1, this->_internal_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Enum.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// repeated .google.protobuf.EnumValue enumvalue = 2;
|
|
|
|
@ -1592,9 +1591,8 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.SourceContext source_context = 4;
|
|
|
|
@ -1661,10 +1659,8 @@ void Enum::InternalSwap(Enum* other) { |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
_impl_.enumvalue_.InternalSwap(&other->_impl_.enumvalue_); |
|
|
|
|
_impl_.options_.InternalSwap(&other->_impl_.options_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap< |
|
|
|
|
PROTOBUF_FIELD_OFFSET(Enum, _impl_.syntax_) |
|
|
|
|
+ sizeof(Enum::_impl_.syntax_) |
|
|
|
@ -1694,7 +1690,8 @@ EnumValue::EnumValue(const EnumValue& from) |
|
|
|
|
EnumValue* const _this = this; (void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){from._impl_.options_} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.number_) {} |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}}; |
|
|
|
@ -1702,11 +1699,10 @@ EnumValue::EnumValue(const EnumValue& from) |
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
_this->_impl_.number_ = from._impl_.number_; |
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
|
|
|
|
@ -1716,15 +1712,16 @@ inline void EnumValue::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){arena} |
|
|
|
|
, decltype(_impl_.name_){} |
|
|
|
|
, decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.number_) { 0 } |
|
|
|
|
|
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{} |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
EnumValue::~EnumValue() { |
|
|
|
@ -1829,12 +1826,10 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.EnumValue.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
1, this->_internal_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.EnumValue.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// int32 number = 2;
|
|
|
|
@ -1877,9 +1872,8 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// int32 number = 2;
|
|
|
|
@ -1933,10 +1927,8 @@ void EnumValue::InternalSwap(EnumValue* other) { |
|
|
|
|
auto* rhs_arena = other->GetArenaForAllocation(); |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
_impl_.options_.InternalSwap(&other->_impl_.options_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena); |
|
|
|
|
|
|
|
|
|
swap(_impl_.number_, other->_impl_.number_); |
|
|
|
|
} |
|
|
|
@ -1972,18 +1964,18 @@ Option::Option(const Option& from) |
|
|
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() { |
|
|
|
|
Option* const _this = this; (void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.name_){} |
|
|
|
|
decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.value_){nullptr} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{}}; |
|
|
|
|
|
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_name().empty()) { |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(),
|
|
|
|
|
_this->GetArenaForAllocation()); |
|
|
|
|
_this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if (from._internal_has_value()) { |
|
|
|
|
_this->_impl_.value_ = new ::PROTOBUF_NAMESPACE_ID::Any(*from._impl_.value_); |
|
|
|
@ -1994,14 +1986,15 @@ Option::Option(const Option& from) |
|
|
|
|
inline void Option::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.name_){} |
|
|
|
|
decltype(_impl_.name_) {} |
|
|
|
|
|
|
|
|
|
, decltype(_impl_.value_){nullptr} |
|
|
|
|
, /*decltype(_impl_._cached_size_)*/{} |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Option::~Option() { |
|
|
|
@ -2094,12 +2087,10 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
const std::string& _s = this->_internal_name(); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
|
|
|
|
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
|
|
|
|
"google.protobuf.Option.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased( |
|
|
|
|
1, this->_internal_name(), target); |
|
|
|
|
_s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "google.protobuf.Option.name"); |
|
|
|
|
target = stream->WriteStringMaybeAliased(1, _s, target); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
@ -2127,9 +2118,8 @@ failure: |
|
|
|
|
|
|
|
|
|
// string name = 1;
|
|
|
|
|
if (!this->_internal_name().empty()) { |
|
|
|
|
total_size += 1 + |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
|
|
|
|
this->_internal_name()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// .google.protobuf.Any value = 2;
|
|
|
|
@ -2183,10 +2173,8 @@ void Option::InternalSwap(Option* other) { |
|
|
|
|
auto* lhs_arena = GetArenaForAllocation(); |
|
|
|
|
auto* rhs_arena = other->GetArenaForAllocation(); |
|
|
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_); |
|
|
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( |
|
|
|
|
&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena |
|
|
|
|
); |
|
|
|
|
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena, |
|
|
|
|
&other->_impl_.name_, rhs_arena); |
|
|
|
|
swap(_impl_.value_, other->_impl_.value_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|