|
|
|
@ -22,17 +22,18 @@ namespace _pbi = ::google::protobuf::internal; |
|
|
|
|
namespace _fl = ::google::protobuf::internal::field_layout; |
|
|
|
|
namespace google { |
|
|
|
|
namespace protobuf { |
|
|
|
|
template <typename> |
|
|
|
|
|
|
|
|
|
inline constexpr Option::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
value_{nullptr} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR Option::Option(::_pbi::ConstantInitialized) |
|
|
|
|
: _impl_{ |
|
|
|
|
/*decltype(_impl_._has_bits_)*/ {}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
/*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.value_)*/ nullptr, |
|
|
|
|
} {} |
|
|
|
|
: _impl_(::_pbi::ConstantInitialized()) {} |
|
|
|
|
struct OptionDefaultTypeInternal { |
|
|
|
|
PROTOBUF_CONSTEXPR OptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
|
|
|
|
~OptionDefaultTypeInternal() {} |
|
|
|
@ -43,33 +44,32 @@ struct OptionDefaultTypeInternal { |
|
|
|
|
|
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT |
|
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionDefaultTypeInternal _Option_default_instance_; |
|
|
|
|
template <typename> |
|
|
|
|
|
|
|
|
|
inline constexpr Field::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: options_{}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
type_url_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
json_name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
default_value_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
kind_{static_cast< ::google::protobuf::Field_Kind >(0)}, |
|
|
|
|
cardinality_{static_cast< ::google::protobuf::Field_Cardinality >(0)}, |
|
|
|
|
number_{0}, |
|
|
|
|
oneof_index_{0}, |
|
|
|
|
packed_{false}, |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
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_.kind_)*/ 0, |
|
|
|
|
/*decltype(_impl_.cardinality_)*/ 0, |
|
|
|
|
/*decltype(_impl_.number_)*/ 0, |
|
|
|
|
/*decltype(_impl_.oneof_index_)*/ 0, |
|
|
|
|
/*decltype(_impl_.packed_)*/ false, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
} {} |
|
|
|
|
: _impl_(::_pbi::ConstantInitialized()) {} |
|
|
|
|
struct FieldDefaultTypeInternal { |
|
|
|
|
PROTOBUF_CONSTEXPR FieldDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
|
|
|
|
~FieldDefaultTypeInternal() {} |
|
|
|
@ -80,17 +80,19 @@ struct FieldDefaultTypeInternal { |
|
|
|
|
|
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT |
|
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDefaultTypeInternal _Field_default_instance_; |
|
|
|
|
template <typename> |
|
|
|
|
|
|
|
|
|
inline constexpr EnumValue::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: options_{}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
number_{0}, |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR EnumValue::EnumValue(::_pbi::ConstantInitialized) |
|
|
|
|
: _impl_{ |
|
|
|
|
/*decltype(_impl_.options_)*/ {}, |
|
|
|
|
/*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.number_)*/ 0, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
} {} |
|
|
|
|
: _impl_(::_pbi::ConstantInitialized()) {} |
|
|
|
|
struct EnumValueDefaultTypeInternal { |
|
|
|
|
PROTOBUF_CONSTEXPR EnumValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
|
|
|
|
~EnumValueDefaultTypeInternal() {} |
|
|
|
@ -101,25 +103,25 @@ struct EnumValueDefaultTypeInternal { |
|
|
|
|
|
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT |
|
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDefaultTypeInternal _EnumValue_default_instance_; |
|
|
|
|
template <typename> |
|
|
|
|
|
|
|
|
|
inline constexpr Type::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
fields_{}, |
|
|
|
|
oneofs_{}, |
|
|
|
|
options_{}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
edition_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
source_context_{nullptr}, |
|
|
|
|
syntax_{static_cast< ::google::protobuf::Syntax >(0)} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR Type::Type(::_pbi::ConstantInitialized) |
|
|
|
|
: _impl_{ |
|
|
|
|
/*decltype(_impl_._has_bits_)*/ {}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
/*decltype(_impl_.fields_)*/ {}, |
|
|
|
|
/*decltype(_impl_.oneofs_)*/ {}, |
|
|
|
|
/*decltype(_impl_.options_)*/ {}, |
|
|
|
|
/*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.edition_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.source_context_)*/ nullptr, |
|
|
|
|
/*decltype(_impl_.syntax_)*/ 0, |
|
|
|
|
} {} |
|
|
|
|
: _impl_(::_pbi::ConstantInitialized()) {} |
|
|
|
|
struct TypeDefaultTypeInternal { |
|
|
|
|
PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
|
|
|
|
~TypeDefaultTypeInternal() {} |
|
|
|
@ -130,24 +132,24 @@ struct TypeDefaultTypeInternal { |
|
|
|
|
|
|
|
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT |
|
|
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TypeDefaultTypeInternal _Type_default_instance_; |
|
|
|
|
template <typename> |
|
|
|
|
|
|
|
|
|
inline constexpr Enum::Impl_::Impl_( |
|
|
|
|
::_pbi::ConstantInitialized) noexcept |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
enumvalue_{}, |
|
|
|
|
options_{}, |
|
|
|
|
name_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
edition_( |
|
|
|
|
&::google::protobuf::internal::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized()), |
|
|
|
|
source_context_{nullptr}, |
|
|
|
|
syntax_{static_cast< ::google::protobuf::Syntax >(0)} {} |
|
|
|
|
|
|
|
|
|
template <typename> |
|
|
|
|
PROTOBUF_CONSTEXPR Enum::Enum(::_pbi::ConstantInitialized) |
|
|
|
|
: _impl_{ |
|
|
|
|
/*decltype(_impl_._has_bits_)*/ {}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
/*decltype(_impl_.enumvalue_)*/ {}, |
|
|
|
|
/*decltype(_impl_.options_)*/ {}, |
|
|
|
|
/*decltype(_impl_.name_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.edition_)*/ { |
|
|
|
|
&::_pbi::fixed_address_empty_string, |
|
|
|
|
::_pbi::ConstantInitialized{}, |
|
|
|
|
}, |
|
|
|
|
/*decltype(_impl_.source_context_)*/ nullptr, |
|
|
|
|
/*decltype(_impl_.syntax_)*/ 0, |
|
|
|
|
} {} |
|
|
|
|
: _impl_(::_pbi::ConstantInitialized()) {} |
|
|
|
|
struct EnumDefaultTypeInternal { |
|
|
|
|
PROTOBUF_CONSTEXPR EnumDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} |
|
|
|
|
~EnumDefaultTypeInternal() {} |
|
|
|
@ -448,64 +450,52 @@ Type::Type(::google::protobuf::Arena* arena) |
|
|
|
|
SharedCtor(arena); |
|
|
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Type)
|
|
|
|
|
} |
|
|
|
|
Type::Type(const Type& from) : ::google::protobuf::Message() { |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Type::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from) |
|
|
|
|
: _has_bits_{from._has_bits_}, |
|
|
|
|
_cached_size_{0}, |
|
|
|
|
fields_{visibility, arena, from.fields_}, |
|
|
|
|
oneofs_{visibility, arena, from.oneofs_}, |
|
|
|
|
options_{visibility, arena, from.options_}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
edition_(arena, from.edition_) {} |
|
|
|
|
|
|
|
|
|
Type::Type( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
|
const Type& from) |
|
|
|
|
: ::google::protobuf::Message(arena) { |
|
|
|
|
Type* const _this = this; |
|
|
|
|
(void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.fields_){from._impl_.fields_}, |
|
|
|
|
decltype(_impl_.oneofs_){from._impl_.oneofs_}, |
|
|
|
|
decltype(_impl_.options_){from._impl_.options_}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.edition_){}, |
|
|
|
|
decltype(_impl_.source_context_){nullptr}, |
|
|
|
|
decltype(_impl_.syntax_){}, |
|
|
|
|
}; |
|
|
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
_impl_.edition_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.edition_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_edition().empty()) { |
|
|
|
|
_this->_impl_.edition_.Set(from._internal_edition(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
_this->_impl_.source_context_ = new ::google::protobuf::SourceContext(*from._impl_.source_context_); |
|
|
|
|
} |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); |
|
|
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
_impl_.source_context_ = (cached_has_bits & 0x00000001u) |
|
|
|
|
? CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_) |
|
|
|
|
: nullptr; |
|
|
|
|
_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
|
|
|
|
|
} |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Type::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
fields_{visibility, arena}, |
|
|
|
|
oneofs_{visibility, arena}, |
|
|
|
|
options_{visibility, arena}, |
|
|
|
|
name_(arena), |
|
|
|
|
edition_(arena) {} |
|
|
|
|
|
|
|
|
|
inline void Type::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.fields_){arena}, |
|
|
|
|
decltype(_impl_.oneofs_){arena}, |
|
|
|
|
decltype(_impl_.options_){arena}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.edition_){}, |
|
|
|
|
decltype(_impl_.source_context_){nullptr}, |
|
|
|
|
decltype(_impl_.syntax_){0}, |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.edition_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.edition_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
|
::memset(reinterpret_cast<char *>(&_impl_) + |
|
|
|
|
offsetof(Impl_, source_context_), |
|
|
|
|
0, |
|
|
|
|
offsetof(Impl_, syntax_) - |
|
|
|
|
offsetof(Impl_, source_context_) + |
|
|
|
|
sizeof(Impl_::syntax_)); |
|
|
|
|
} |
|
|
|
|
Type::~Type() { |
|
|
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Type)
|
|
|
|
@ -514,12 +504,10 @@ Type::~Type() { |
|
|
|
|
} |
|
|
|
|
inline void Type::SharedDtor() { |
|
|
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
_impl_.fields_.~RepeatedPtrField(); |
|
|
|
|
_internal_mutable_oneofs()->~RepeatedPtrField(); |
|
|
|
|
_impl_.options_.~RepeatedPtrField(); |
|
|
|
|
_impl_.name_.Destroy(); |
|
|
|
|
_impl_.edition_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete _impl_.source_context_; |
|
|
|
|
_impl_.~Impl_(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PROTOBUF_NOINLINE void Type::Clear() { |
|
|
|
@ -838,89 +826,53 @@ Field::Field(::google::protobuf::Arena* arena) |
|
|
|
|
SharedCtor(arena); |
|
|
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Field)
|
|
|
|
|
} |
|
|
|
|
Field::Field(const Field& from) : ::google::protobuf::Message() { |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Field::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from) |
|
|
|
|
: options_{visibility, arena, from.options_}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
type_url_(arena, from.type_url_), |
|
|
|
|
json_name_(arena, from.json_name_), |
|
|
|
|
default_value_(arena, from.default_value_), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
Field::Field( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
|
const Field& from) |
|
|
|
|
: ::google::protobuf::Message(arena) { |
|
|
|
|
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_.kind_){}, |
|
|
|
|
decltype(_impl_.cardinality_){}, |
|
|
|
|
decltype(_impl_.number_){}, |
|
|
|
|
decltype(_impl_.oneof_index_){}, |
|
|
|
|
decltype(_impl_.packed_){}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
}; |
|
|
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
_impl_.type_url_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
_impl_.json_name_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
_impl_.default_value_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
::memcpy(&_impl_.kind_, &from._impl_.kind_, |
|
|
|
|
static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.packed_) - |
|
|
|
|
reinterpret_cast<char*>(&_impl_.kind_)) + sizeof(_impl_.packed_)); |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); |
|
|
|
|
::memcpy(reinterpret_cast<char *>(&_impl_) + |
|
|
|
|
offsetof(Impl_, kind_), |
|
|
|
|
reinterpret_cast<const char *>(&from._impl_) + |
|
|
|
|
offsetof(Impl_, kind_), |
|
|
|
|
offsetof(Impl_, packed_) - |
|
|
|
|
offsetof(Impl_, kind_) + |
|
|
|
|
sizeof(Impl_::packed_)); |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Field)
|
|
|
|
|
} |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Field::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: options_{visibility, arena}, |
|
|
|
|
name_(arena), |
|
|
|
|
type_url_(arena), |
|
|
|
|
json_name_(arena), |
|
|
|
|
default_value_(arena), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
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_.kind_){0}, |
|
|
|
|
decltype(_impl_.cardinality_){0}, |
|
|
|
|
decltype(_impl_.number_){0}, |
|
|
|
|
decltype(_impl_.oneof_index_){0}, |
|
|
|
|
decltype(_impl_.packed_){false}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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_.json_name_.InitDefault(); |
|
|
|
|
#ifdef 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
|
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
|
::memset(reinterpret_cast<char *>(&_impl_) + |
|
|
|
|
offsetof(Impl_, kind_), |
|
|
|
|
0, |
|
|
|
|
offsetof(Impl_, packed_) - |
|
|
|
|
offsetof(Impl_, kind_) + |
|
|
|
|
sizeof(Impl_::packed_)); |
|
|
|
|
} |
|
|
|
|
Field::~Field() { |
|
|
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Field)
|
|
|
|
@ -929,11 +881,11 @@ Field::~Field() { |
|
|
|
|
} |
|
|
|
|
inline void Field::SharedDtor() { |
|
|
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
_impl_.options_.~RepeatedPtrField(); |
|
|
|
|
_impl_.name_.Destroy(); |
|
|
|
|
_impl_.type_url_.Destroy(); |
|
|
|
|
_impl_.json_name_.Destroy(); |
|
|
|
|
_impl_.default_value_.Destroy(); |
|
|
|
|
_impl_.~Impl_(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PROTOBUF_NOINLINE void Field::Clear() { |
|
|
|
@ -1332,62 +1284,50 @@ Enum::Enum(::google::protobuf::Arena* arena) |
|
|
|
|
SharedCtor(arena); |
|
|
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Enum)
|
|
|
|
|
} |
|
|
|
|
Enum::Enum(const Enum& from) : ::google::protobuf::Message() { |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Enum::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from) |
|
|
|
|
: _has_bits_{from._has_bits_}, |
|
|
|
|
_cached_size_{0}, |
|
|
|
|
enumvalue_{visibility, arena, from.enumvalue_}, |
|
|
|
|
options_{visibility, arena, from.options_}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
edition_(arena, from.edition_) {} |
|
|
|
|
|
|
|
|
|
Enum::Enum( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
|
const Enum& from) |
|
|
|
|
: ::google::protobuf::Message(arena) { |
|
|
|
|
Enum* const _this = this; |
|
|
|
|
(void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.enumvalue_){from._impl_.enumvalue_}, |
|
|
|
|
decltype(_impl_.options_){from._impl_.options_}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.edition_){}, |
|
|
|
|
decltype(_impl_.source_context_){nullptr}, |
|
|
|
|
decltype(_impl_.syntax_){}, |
|
|
|
|
}; |
|
|
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
_impl_.edition_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.edition_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
if (!from._internal_edition().empty()) { |
|
|
|
|
_this->_impl_.edition_.Set(from._internal_edition(), _this->GetArenaForAllocation()); |
|
|
|
|
} |
|
|
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
_this->_impl_.source_context_ = new ::google::protobuf::SourceContext(*from._impl_.source_context_); |
|
|
|
|
} |
|
|
|
|
_this->_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); |
|
|
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
_impl_.source_context_ = (cached_has_bits & 0x00000001u) |
|
|
|
|
? CreateMaybeMessage<::google::protobuf::SourceContext>(arena, *from._impl_.source_context_) |
|
|
|
|
: nullptr; |
|
|
|
|
_impl_.syntax_ = from._impl_.syntax_; |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
|
|
|
|
|
} |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Enum::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
enumvalue_{visibility, arena}, |
|
|
|
|
options_{visibility, arena}, |
|
|
|
|
name_(arena), |
|
|
|
|
edition_(arena) {} |
|
|
|
|
|
|
|
|
|
inline void Enum::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.enumvalue_){arena}, |
|
|
|
|
decltype(_impl_.options_){arena}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.edition_){}, |
|
|
|
|
decltype(_impl_.source_context_){nullptr}, |
|
|
|
|
decltype(_impl_.syntax_){0}, |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
_impl_.edition_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.edition_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
|
::memset(reinterpret_cast<char *>(&_impl_) + |
|
|
|
|
offsetof(Impl_, source_context_), |
|
|
|
|
0, |
|
|
|
|
offsetof(Impl_, syntax_) - |
|
|
|
|
offsetof(Impl_, source_context_) + |
|
|
|
|
sizeof(Impl_::syntax_)); |
|
|
|
|
} |
|
|
|
|
Enum::~Enum() { |
|
|
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Enum)
|
|
|
|
@ -1396,11 +1336,10 @@ Enum::~Enum() { |
|
|
|
|
} |
|
|
|
|
inline void Enum::SharedDtor() { |
|
|
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
_impl_.enumvalue_.~RepeatedPtrField(); |
|
|
|
|
_impl_.options_.~RepeatedPtrField(); |
|
|
|
|
_impl_.name_.Destroy(); |
|
|
|
|
_impl_.edition_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete _impl_.source_context_; |
|
|
|
|
_impl_.~Impl_(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PROTOBUF_NOINLINE void Enum::Clear() { |
|
|
|
@ -1696,40 +1635,36 @@ EnumValue::EnumValue(::google::protobuf::Arena* arena) |
|
|
|
|
SharedCtor(arena); |
|
|
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValue)
|
|
|
|
|
} |
|
|
|
|
EnumValue::EnumValue(const EnumValue& from) : ::google::protobuf::Message() { |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from) |
|
|
|
|
: options_{visibility, arena, from.options_}, |
|
|
|
|
name_(arena, from.name_), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
EnumValue::EnumValue( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
|
const EnumValue& from) |
|
|
|
|
: ::google::protobuf::Message(arena) { |
|
|
|
|
EnumValue* const _this = this; |
|
|
|
|
(void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){from._impl_.options_}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.number_){}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
}; |
|
|
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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_.number_ = from._impl_.number_; |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); |
|
|
|
|
_impl_.number_ = from._impl_.number_; |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
|
|
|
|
|
} |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE EnumValue::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: options_{visibility, arena}, |
|
|
|
|
name_(arena), |
|
|
|
|
_cached_size_{0} {} |
|
|
|
|
|
|
|
|
|
inline void EnumValue::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_.options_){arena}, |
|
|
|
|
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
|
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
|
_impl_.number_ = {}; |
|
|
|
|
} |
|
|
|
|
EnumValue::~EnumValue() { |
|
|
|
|
// @@protoc_insertion_point(destructor:google.protobuf.EnumValue)
|
|
|
|
@ -1738,8 +1673,8 @@ EnumValue::~EnumValue() { |
|
|
|
|
} |
|
|
|
|
inline void EnumValue::SharedDtor() { |
|
|
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
_impl_.options_.~RepeatedPtrField(); |
|
|
|
|
_impl_.name_.Destroy(); |
|
|
|
|
_impl_.~Impl_(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PROTOBUF_NOINLINE void EnumValue::Clear() { |
|
|
|
@ -1958,42 +1893,38 @@ Option::Option(::google::protobuf::Arena* arena) |
|
|
|
|
SharedCtor(arena); |
|
|
|
|
// @@protoc_insertion_point(arena_constructor:google.protobuf.Option)
|
|
|
|
|
} |
|
|
|
|
Option::Option(const Option& from) : ::google::protobuf::Message() { |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, |
|
|
|
|
const Impl_& from) |
|
|
|
|
: _has_bits_{from._has_bits_}, |
|
|
|
|
_cached_size_{0}, |
|
|
|
|
name_(arena, from.name_) {} |
|
|
|
|
|
|
|
|
|
Option::Option( |
|
|
|
|
::google::protobuf::Arena* arena, |
|
|
|
|
const Option& from) |
|
|
|
|
: ::google::protobuf::Message(arena) { |
|
|
|
|
Option* const _this = this; |
|
|
|
|
(void)_this; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.value_){nullptr}, |
|
|
|
|
}; |
|
|
|
|
_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( |
|
|
|
|
from._internal_metadata_); |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef 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()); |
|
|
|
|
} |
|
|
|
|
if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { |
|
|
|
|
_this->_impl_.value_ = new ::google::protobuf::Any(*from._impl_.value_); |
|
|
|
|
} |
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); |
|
|
|
|
::uint32_t cached_has_bits = _impl_._has_bits_[0]; |
|
|
|
|
_impl_.value_ = (cached_has_bits & 0x00000001u) |
|
|
|
|
? CreateMaybeMessage<::google::protobuf::Any>(arena, *from._impl_.value_) |
|
|
|
|
: nullptr; |
|
|
|
|
|
|
|
|
|
// @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
|
|
|
|
|
} |
|
|
|
|
inline PROTOBUF_NDEBUG_INLINE Option::Impl_::Impl_( |
|
|
|
|
::google::protobuf::internal::InternalVisibility visibility, |
|
|
|
|
::google::protobuf::Arena* arena) |
|
|
|
|
: _cached_size_{0}, |
|
|
|
|
name_(arena) {} |
|
|
|
|
|
|
|
|
|
inline void Option::SharedCtor(::_pb::Arena* arena) { |
|
|
|
|
(void)arena; |
|
|
|
|
new (&_impl_) Impl_{ |
|
|
|
|
decltype(_impl_._has_bits_){}, |
|
|
|
|
/*decltype(_impl_._cached_size_)*/ {}, |
|
|
|
|
decltype(_impl_.name_){}, |
|
|
|
|
decltype(_impl_.value_){nullptr}, |
|
|
|
|
}; |
|
|
|
|
_impl_.name_.InitDefault(); |
|
|
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
|
|
|
|
_impl_.name_.Set("", GetArenaForAllocation()); |
|
|
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
|
|
|
new (&_impl_) Impl_(internal_visibility(), arena); |
|
|
|
|
_impl_.value_ = {}; |
|
|
|
|
} |
|
|
|
|
Option::~Option() { |
|
|
|
|
// @@protoc_insertion_point(destructor:google.protobuf.Option)
|
|
|
|
@ -2004,6 +1935,7 @@ inline void Option::SharedDtor() { |
|
|
|
|
ABSL_DCHECK(GetArenaForAllocation() == nullptr); |
|
|
|
|
_impl_.name_.Destroy(); |
|
|
|
|
if (this != internal_default_instance()) delete _impl_.value_; |
|
|
|
|
_impl_.~Impl_(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PROTOBUF_NOINLINE void Option::Clear() { |
|
|
|
|