diff --git a/src/google/protobuf/compiler/plugin.pb.cc b/src/google/protobuf/compiler/plugin.pb.cc index 82390588f4..5396c98d1d 100644 --- a/src/google/protobuf/compiler/plugin.pb.cc +++ b/src/google/protobuf/compiler/plugin.pb.cc @@ -23,19 +23,20 @@ namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace protobuf { namespace compiler { - template + +inline constexpr Version::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + suffix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + major_{0}, + minor_{0}, + patch_{0} {} + +template PROTOBUF_CONSTEXPR Version::Version(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.suffix_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.major_)*/ 0, - /*decltype(_impl_.minor_)*/ 0, - /*decltype(_impl_.patch_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct VersionDefaultTypeInternal { PROTOBUF_CONSTEXPR VersionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~VersionDefaultTypeInternal() {} @@ -46,25 +47,24 @@ struct VersionDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VersionDefaultTypeInternal _Version_default_instance_; - template + +inline constexpr CodeGeneratorResponse_File::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + insertion_point_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + content_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + generated_code_info_{nullptr} {} + +template PROTOBUF_CONSTEXPR CodeGeneratorResponse_File::CodeGeneratorResponse_File(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.insertion_point_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.content_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.generated_code_info_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct CodeGeneratorResponse_FileDefaultTypeInternal { PROTOBUF_CONSTEXPR CodeGeneratorResponse_FileDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CodeGeneratorResponse_FileDefaultTypeInternal() {} @@ -75,18 +75,19 @@ struct CodeGeneratorResponse_FileDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponse_FileDefaultTypeInternal _CodeGeneratorResponse_File_default_instance_; - template + +inline constexpr CodeGeneratorResponse::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + file_{}, + error_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + supported_features_{::uint64_t{0u}} {} + +template PROTOBUF_CONSTEXPR CodeGeneratorResponse::CodeGeneratorResponse(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.file_)*/ {}, - /*decltype(_impl_.error_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.supported_features_)*/ ::uint64_t{0u}, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct CodeGeneratorResponseDefaultTypeInternal { PROTOBUF_CONSTEXPR CodeGeneratorResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CodeGeneratorResponseDefaultTypeInternal() {} @@ -97,20 +98,21 @@ struct CodeGeneratorResponseDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOC_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CodeGeneratorResponseDefaultTypeInternal _CodeGeneratorResponse_default_instance_; - template + +inline constexpr CodeGeneratorRequest::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + file_to_generate_{}, + proto_file_{}, + source_file_descriptors_{}, + parameter_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + compiler_version_{nullptr} {} + +template PROTOBUF_CONSTEXPR CodeGeneratorRequest::CodeGeneratorRequest(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.file_to_generate_)*/ {}, - /*decltype(_impl_.proto_file_)*/ {}, - /*decltype(_impl_.source_file_descriptors_)*/ {}, - /*decltype(_impl_.parameter_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.compiler_version_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct CodeGeneratorRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR CodeGeneratorRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CodeGeneratorRequestDefaultTypeInternal() {} @@ -325,46 +327,46 @@ Version::Version(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.Version) } -Version::Version(const Version& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + suffix_(arena, from.suffix_) {} + +Version::Version( + ::google::protobuf::Arena* arena, + const Version& from) + : ::google::protobuf::Message(arena) { Version* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.suffix_){}, - decltype(_impl_.major_){}, - decltype(_impl_.minor_){}, - decltype(_impl_.patch_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.suffix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.suffix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.suffix_.Set(from._internal_suffix(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.major_, &from._impl_.major_, - static_cast<::size_t>(reinterpret_cast(&_impl_.patch_) - - reinterpret_cast(&_impl_.major_)) + sizeof(_impl_.patch_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, major_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, major_), + offsetof(Impl_, patch_) - + offsetof(Impl_, major_) + + sizeof(Impl_::patch_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.Version) } +inline PROTOBUF_NDEBUG_INLINE Version::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + suffix_(arena) {} + inline void Version::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.suffix_){}, - decltype(_impl_.major_){0}, - decltype(_impl_.minor_){0}, - decltype(_impl_.patch_){0}, - }; - _impl_.suffix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.suffix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, major_), + 0, + offsetof(Impl_, patch_) - + offsetof(Impl_, major_) + + sizeof(Impl_::patch_)); } Version::~Version() { // @@protoc_insertion_point(destructor:google.protobuf.compiler.Version) @@ -374,6 +376,7 @@ Version::~Version() { inline void Version::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.suffix_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void Version::Clear() { @@ -639,48 +642,44 @@ CodeGeneratorRequest::CodeGeneratorRequest(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorRequest) } -CodeGeneratorRequest::CodeGeneratorRequest(const CodeGeneratorRequest& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + file_to_generate_{visibility, arena, from.file_to_generate_}, + proto_file_{visibility, arena, from.proto_file_}, + source_file_descriptors_{visibility, arena, from.source_file_descriptors_}, + parameter_(arena, from.parameter_) {} + +CodeGeneratorRequest::CodeGeneratorRequest( + ::google::protobuf::Arena* arena, + const CodeGeneratorRequest& from) + : ::google::protobuf::Message(arena) { CodeGeneratorRequest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.file_to_generate_){from._impl_.file_to_generate_}, - decltype(_impl_.proto_file_){from._impl_.proto_file_}, - decltype(_impl_.source_file_descriptors_){from._impl_.source_file_descriptors_}, - decltype(_impl_.parameter_){}, - decltype(_impl_.compiler_version_){nullptr}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.parameter_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.parameter_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.parameter_.Set(from._internal_parameter(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.compiler_version_ = new ::google::protobuf::compiler::Version(*from._impl_.compiler_version_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.compiler_version_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::compiler::Version>(arena, *from._impl_.compiler_version_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorRequest) } +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorRequest::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + file_to_generate_{visibility, arena}, + proto_file_{visibility, arena}, + source_file_descriptors_{visibility, arena}, + parameter_(arena) {} + inline void CodeGeneratorRequest::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.file_to_generate_){arena}, - decltype(_impl_.proto_file_){arena}, - decltype(_impl_.source_file_descriptors_){arena}, - decltype(_impl_.parameter_){}, - decltype(_impl_.compiler_version_){nullptr}, - }; - _impl_.parameter_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.parameter_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.compiler_version_ = {}; } CodeGeneratorRequest::~CodeGeneratorRequest() { // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorRequest) @@ -689,11 +688,9 @@ CodeGeneratorRequest::~CodeGeneratorRequest() { } inline void CodeGeneratorRequest::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_file_to_generate()->~RepeatedPtrField(); - _impl_.proto_file_.~RepeatedPtrField(); - _impl_.source_file_descriptors_.~RepeatedPtrField(); _impl_.parameter_.Destroy(); if (this != internal_default_instance()) delete _impl_.compiler_version_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void CodeGeneratorRequest::Clear() { @@ -994,68 +991,42 @@ CodeGeneratorResponse_File::CodeGeneratorResponse_File(::google::protobuf::Arena SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse.File) } -CodeGeneratorResponse_File::CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::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_), + insertion_point_(arena, from.insertion_point_), + content_(arena, from.content_) {} + +CodeGeneratorResponse_File::CodeGeneratorResponse_File( + ::google::protobuf::Arena* arena, + const CodeGeneratorResponse_File& from) + : ::google::protobuf::Message(arena) { CodeGeneratorResponse_File* 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_.insertion_point_){}, - decltype(_impl_.content_){}, - decltype(_impl_.generated_code_info_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.insertion_point_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.insertion_point_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.insertion_point_.Set(from._internal_insertion_point(), _this->GetArenaForAllocation()); - } - _impl_.content_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.content_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.content_.Set(from._internal_content(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) { - _this->_impl_.generated_code_info_ = new ::google::protobuf::GeneratedCodeInfo(*from._impl_.generated_code_info_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.generated_code_info_ = (cached_has_bits & 0x00000008u) + ? CreateMaybeMessage<::google::protobuf::GeneratedCodeInfo>(arena, *from._impl_.generated_code_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse.File) } +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse_File::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena), + insertion_point_(arena), + content_(arena) {} + inline void CodeGeneratorResponse_File::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){}, - decltype(_impl_.insertion_point_){}, - decltype(_impl_.content_){}, - decltype(_impl_.generated_code_info_){nullptr}, - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.insertion_point_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.insertion_point_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.content_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.content_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.generated_code_info_ = {}; } CodeGeneratorResponse_File::~CodeGeneratorResponse_File() { // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse.File) @@ -1068,6 +1039,7 @@ inline void CodeGeneratorResponse_File::SharedDtor() { _impl_.insertion_point_.Destroy(); _impl_.content_.Destroy(); if (this != internal_default_instance()) delete _impl_.generated_code_info_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void CodeGeneratorResponse_File::Clear() { @@ -1332,42 +1304,37 @@ CodeGeneratorResponse::CodeGeneratorResponse(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.compiler.CodeGeneratorResponse) } -CodeGeneratorResponse::CodeGeneratorResponse(const CodeGeneratorResponse& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + file_{visibility, arena, from.file_}, + error_(arena, from.error_) {} + +CodeGeneratorResponse::CodeGeneratorResponse( + ::google::protobuf::Arena* arena, + const CodeGeneratorResponse& from) + : ::google::protobuf::Message(arena) { CodeGeneratorResponse* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.file_){from._impl_.file_}, - decltype(_impl_.error_){}, - decltype(_impl_.supported_features_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.error_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.error_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.error_.Set(from._internal_error(), _this->GetArenaForAllocation()); - } - _this->_impl_.supported_features_ = from._impl_.supported_features_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.supported_features_ = from._impl_.supported_features_; // @@protoc_insertion_point(copy_constructor:google.protobuf.compiler.CodeGeneratorResponse) } +inline PROTOBUF_NDEBUG_INLINE CodeGeneratorResponse::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + file_{visibility, arena}, + error_(arena) {} + inline void CodeGeneratorResponse::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.file_){arena}, - decltype(_impl_.error_){}, - decltype(_impl_.supported_features_){::uint64_t{0u}}, - }; - _impl_.error_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.error_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.supported_features_ = {}; } CodeGeneratorResponse::~CodeGeneratorResponse() { // @@protoc_insertion_point(destructor:google.protobuf.compiler.CodeGeneratorResponse) @@ -1376,8 +1343,8 @@ CodeGeneratorResponse::~CodeGeneratorResponse() { } inline void CodeGeneratorResponse::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.file_.~RepeatedPtrField(); _impl_.error_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void CodeGeneratorResponse::Clear() { diff --git a/src/google/protobuf/compiler/plugin.pb.h b/src/google/protobuf/compiler/plugin.pb.h index 4fa6bbbde0..eeb64ac57f 100644 --- a/src/google/protobuf/compiler/plugin.pb.h +++ b/src/google/protobuf/compiler/plugin.pb.h @@ -127,16 +127,14 @@ class PROTOC_EXPORT Version final : template explicit PROTOBUF_CONSTEXPR Version(::google::protobuf::internal::ConstantInitialized); - Version(const Version& from); + Version(::google::protobuf::Arena* arena, const Version& from); + inline Version(const Version& from) + : Version(nullptr, from) {} Version(Version&& from) noexcept : Version() { *this = ::std::move(from); } - inline Version(::google::protobuf::Arena* arena, const Version& from) - : Version(arena) { - MergeFrom(from); - } inline Version& operator=(const Version& from) { CopyFrom(from); return *this; @@ -317,10 +315,19 @@ class PROTOC_EXPORT Version final : 2, 4, 0, 47, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOC_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr suffix_; @@ -341,16 +348,14 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final : template explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse_File(::google::protobuf::internal::ConstantInitialized); - CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from); + CodeGeneratorResponse_File(::google::protobuf::Arena* arena, const CodeGeneratorResponse_File& from); + inline CodeGeneratorResponse_File(const CodeGeneratorResponse_File& from) + : CodeGeneratorResponse_File(nullptr, from) {} CodeGeneratorResponse_File(CodeGeneratorResponse_File&& from) noexcept : CodeGeneratorResponse_File() { *this = ::std::move(from); } - inline CodeGeneratorResponse_File(::google::protobuf::Arena* arena, const CodeGeneratorResponse_File& from) - : CodeGeneratorResponse_File(arena) { - MergeFrom(from); - } inline CodeGeneratorResponse_File& operator=(const CodeGeneratorResponse_File& from) { CopyFrom(from); return *this; @@ -547,10 +552,19 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final : 2, 4, 1, 86, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOC_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -571,16 +585,14 @@ class PROTOC_EXPORT CodeGeneratorResponse final : template explicit PROTOBUF_CONSTEXPR CodeGeneratorResponse(::google::protobuf::internal::ConstantInitialized); - CodeGeneratorResponse(const CodeGeneratorResponse& from); + CodeGeneratorResponse(::google::protobuf::Arena* arena, const CodeGeneratorResponse& from); + inline CodeGeneratorResponse(const CodeGeneratorResponse& from) + : CodeGeneratorResponse(nullptr, from) {} CodeGeneratorResponse(CodeGeneratorResponse&& from) noexcept : CodeGeneratorResponse() { *this = ::std::move(from); } - inline CodeGeneratorResponse(::google::protobuf::Arena* arena, const CodeGeneratorResponse& from) - : CodeGeneratorResponse(arena) { - MergeFrom(from); - } inline CodeGeneratorResponse& operator=(const CodeGeneratorResponse& from) { CopyFrom(from); return *this; @@ -779,10 +791,19 @@ class PROTOC_EXPORT CodeGeneratorResponse final : 2, 3, 1, 60, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOC_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File > file_; @@ -802,16 +823,14 @@ class PROTOC_EXPORT CodeGeneratorRequest final : template explicit PROTOBUF_CONSTEXPR CodeGeneratorRequest(::google::protobuf::internal::ConstantInitialized); - CodeGeneratorRequest(const CodeGeneratorRequest& from); + CodeGeneratorRequest(::google::protobuf::Arena* arena, const CodeGeneratorRequest& from); + inline CodeGeneratorRequest(const CodeGeneratorRequest& from) + : CodeGeneratorRequest(nullptr, from) {} CodeGeneratorRequest(CodeGeneratorRequest&& from) noexcept : CodeGeneratorRequest() { *this = ::std::move(from); } - inline CodeGeneratorRequest(::google::protobuf::Arena* arena, const CodeGeneratorRequest& from) - : CodeGeneratorRequest(arena) { - MergeFrom(from); - } inline CodeGeneratorRequest& operator=(const CodeGeneratorRequest& from) { CopyFrom(from); return *this; @@ -1039,10 +1058,19 @@ class PROTOC_EXPORT CodeGeneratorRequest final : 3, 5, 3, 79, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOC_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField file_to_generate_; diff --git a/src/google/protobuf/cpp_features.pb.cc b/src/google/protobuf/cpp_features.pb.cc index 7ea5da87c0..7ed369fa31 100644 --- a/src/google/protobuf/cpp_features.pb.cc +++ b/src/google/protobuf/cpp_features.pb.cc @@ -21,14 +21,16 @@ namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace pb { - template + +inline constexpr CppFeatures::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + legacy_closed_enum_{false}, + utf8_validation_{static_cast< ::pb::CppFeatures_Utf8Validation >(0)} {} + +template PROTOBUF_CONSTEXPR CppFeatures::CppFeatures(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.legacy_closed_enum_)*/ false, - /*decltype(_impl_.utf8_validation_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct CppFeaturesDefaultTypeInternal { PROTOBUF_CONSTEXPR CppFeaturesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~CppFeaturesDefaultTypeInternal() {} @@ -160,20 +162,24 @@ CppFeatures::CppFeatures(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:pb.CppFeatures) } -CppFeatures::CppFeatures(const CppFeatures& from) - : ::google::protobuf::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:pb.CppFeatures) +CppFeatures::CppFeatures( + ::google::protobuf::Arena* arena, const CppFeatures& from) + : CppFeatures(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE CppFeatures::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + inline void CppFeatures::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.legacy_closed_enum_){false}, - decltype(_impl_.utf8_validation_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, legacy_closed_enum_), + 0, + offsetof(Impl_, utf8_validation_) - + offsetof(Impl_, legacy_closed_enum_) + + sizeof(Impl_::utf8_validation_)); } CppFeatures::~CppFeatures() { // @@protoc_insertion_point(destructor:pb.CppFeatures) @@ -182,6 +188,7 @@ CppFeatures::~CppFeatures() { } inline void CppFeatures::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void CppFeatures::Clear() { diff --git a/src/google/protobuf/cpp_features.pb.h b/src/google/protobuf/cpp_features.pb.h index 50826d993f..4e501679ab 100644 --- a/src/google/protobuf/cpp_features.pb.h +++ b/src/google/protobuf/cpp_features.pb.h @@ -111,16 +111,14 @@ class PROTOBUF_EXPORT CppFeatures final : template explicit PROTOBUF_CONSTEXPR CppFeatures(::google::protobuf::internal::ConstantInitialized); - CppFeatures(const CppFeatures& from); + CppFeatures(::google::protobuf::Arena* arena, const CppFeatures& from); + inline CppFeatures(const CppFeatures& from) + : CppFeatures(nullptr, from) {} CppFeatures(CppFeatures&& from) noexcept : CppFeatures() { *this = ::std::move(from); } - inline CppFeatures(::google::protobuf::Arena* arena, const CppFeatures& from) - : CppFeatures(arena) { - MergeFrom(from); - } inline CppFeatures& operator=(const CppFeatures& from) { CopyFrom(from); return *this; @@ -293,10 +291,19 @@ class PROTOBUF_EXPORT CppFeatures final : 1, 2, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; bool legacy_closed_enum_; diff --git a/src/google/protobuf/descriptor.pb.cc b/src/google/protobuf/descriptor.pb.cc index 3fac811db7..930daee0d9 100644 --- a/src/google/protobuf/descriptor.pb.cc +++ b/src/google/protobuf/descriptor.pb.cc @@ -22,17 +22,18 @@ namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; namespace google { namespace protobuf { - template + +inline constexpr UninterpretedOption_NamePart::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_part_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + is_extension_{false} {} + +template PROTOBUF_CONSTEXPR UninterpretedOption_NamePart::UninterpretedOption_NamePart(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_part_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.is_extension_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct UninterpretedOption_NamePartDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr UninterpretedOption_NamePartDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -48,25 +49,25 @@ struct UninterpretedOption_NamePartDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_; - template + +inline constexpr SourceCodeInfo_Location::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + path_{}, + _path_cached_byte_size_{0}, + span_{}, + _span_cached_byte_size_{0}, + leading_detached_comments_{}, + leading_comments_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + trailing_comments_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template PROTOBUF_CONSTEXPR SourceCodeInfo_Location::SourceCodeInfo_Location(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.path_)*/ {}, - /* _impl_._path_cached_byte_size_ = */ {0}, - /*decltype(_impl_.span_)*/ {}, - /* _impl_._span_cached_byte_size_ = */ {0}, - /*decltype(_impl_.leading_detached_comments_)*/ {}, - /*decltype(_impl_.leading_comments_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.trailing_comments_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct SourceCodeInfo_LocationDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr SourceCodeInfo_LocationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -82,21 +83,22 @@ struct SourceCodeInfo_LocationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_; - template + +inline constexpr GeneratedCodeInfo_Annotation::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + path_{}, + _path_cached_byte_size_{0}, + source_file_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + begin_{0}, + end_{0}, + semantic_{static_cast< ::google::protobuf::GeneratedCodeInfo_Annotation_Semantic >(0)} {} + +template PROTOBUF_CONSTEXPR GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.path_)*/ {}, - /* _impl_._path_cached_byte_size_ = */ {0}, - /*decltype(_impl_.source_file_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.begin_)*/ 0, - /*decltype(_impl_.end_)*/ 0, - /*decltype(_impl_.semantic_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct GeneratedCodeInfo_AnnotationDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr GeneratedCodeInfo_AnnotationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -112,21 +114,21 @@ struct GeneratedCodeInfo_AnnotationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_; - template + +inline constexpr FieldOptions_EditionDefault::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + edition_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + edition_enum_{static_cast< ::google::protobuf::Edition >(0)} {} + +template PROTOBUF_CONSTEXPR FieldOptions_EditionDefault::FieldOptions_EditionDefault(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.edition_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.value_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.edition_enum_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FieldOptions_EditionDefaultDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FieldOptions_EditionDefaultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -142,18 +144,19 @@ struct FieldOptions_EditionDefaultDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldOptions_EditionDefaultDefaultTypeInternal _FieldOptions_EditionDefault_default_instance_; - template + +inline constexpr FeatureSet::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + field_presence_{static_cast< ::google::protobuf::FeatureSet_FieldPresence >(0)}, + enum_type_{static_cast< ::google::protobuf::FeatureSet_EnumType >(0)}, + repeated_field_encoding_{static_cast< ::google::protobuf::FeatureSet_RepeatedFieldEncoding >(0)}, + message_encoding_{static_cast< ::google::protobuf::FeatureSet_MessageEncoding >(0)}, + json_format_{static_cast< ::google::protobuf::FeatureSet_JsonFormat >(0)} {} + +template PROTOBUF_CONSTEXPR FeatureSet::FeatureSet(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.field_presence_)*/ 0, - /*decltype(_impl_.enum_type_)*/ 0, - /*decltype(_impl_.repeated_field_encoding_)*/ 0, - /*decltype(_impl_.message_encoding_)*/ 0, - /*decltype(_impl_.json_format_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FeatureSetDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FeatureSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -169,23 +172,23 @@ struct FeatureSetDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeatureSetDefaultTypeInternal _FeatureSet_default_instance_; - template + +inline constexpr ExtensionRangeOptions_Declaration::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + full_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + number_{0}, + reserved_{false}, + repeated_{false} {} + +template PROTOBUF_CONSTEXPR ExtensionRangeOptions_Declaration::ExtensionRangeOptions_Declaration(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.full_name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.type_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.number_)*/ 0, - /*decltype(_impl_.reserved_)*/ false, - /*decltype(_impl_.repeated_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct ExtensionRangeOptions_DeclarationDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr ExtensionRangeOptions_DeclarationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -201,14 +204,16 @@ struct ExtensionRangeOptions_DeclarationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtensionRangeOptions_DeclarationDefaultTypeInternal _ExtensionRangeOptions_Declaration_default_instance_; - template + +inline constexpr EnumDescriptorProto_EnumReservedRange::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + start_{0}, + end_{0} {} + +template PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.start_)*/ 0, - /*decltype(_impl_.end_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -224,14 +229,16 @@ struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_; - template + +inline constexpr DescriptorProto_ReservedRange::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + start_{0}, + end_{0} {} + +template PROTOBUF_CONSTEXPR DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.start_)*/ 0, - /*decltype(_impl_.end_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct DescriptorProto_ReservedRangeDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr DescriptorProto_ReservedRangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -247,28 +254,27 @@ struct DescriptorProto_ReservedRangeDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_; - template + +inline constexpr UninterpretedOption::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_{}, + identifier_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + string_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + aggregate_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + positive_int_value_{::uint64_t{0u}}, + negative_int_value_{::int64_t{0}}, + double_value_{0} {} + +template PROTOBUF_CONSTEXPR UninterpretedOption::UninterpretedOption(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ {}, - /*decltype(_impl_.identifier_value_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.string_value_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.aggregate_value_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.positive_int_value_)*/ ::uint64_t{0u}, - /*decltype(_impl_.negative_int_value_)*/ ::int64_t{0}, - /*decltype(_impl_.double_value_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct UninterpretedOptionDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr UninterpretedOptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -284,12 +290,15 @@ struct UninterpretedOptionDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_; - template + +inline constexpr SourceCodeInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : location_{}, + _cached_size_{0} {} + +template PROTOBUF_CONSTEXPR SourceCodeInfo::SourceCodeInfo(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_.location_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct SourceCodeInfoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr SourceCodeInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -305,12 +314,15 @@ struct SourceCodeInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_; - template + +inline constexpr GeneratedCodeInfo::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : annotation_{}, + _cached_size_{0} {} + +template PROTOBUF_CONSTEXPR GeneratedCodeInfo::GeneratedCodeInfo(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_.annotation_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct GeneratedCodeInfoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr GeneratedCodeInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -326,18 +338,19 @@ struct GeneratedCodeInfoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_; - template + +inline constexpr FeatureSetDefaults_FeatureSetEditionDefault::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + edition_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + features_{nullptr}, + edition_enum_{static_cast< ::google::protobuf::Edition >(0)} {} + +template PROTOBUF_CONSTEXPR FeatureSetDefaults_FeatureSetEditionDefault::FeatureSetDefaults_FeatureSetEditionDefault(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.edition_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.edition_enum_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FeatureSetDefaults_FeatureSetEditionDefaultDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FeatureSetDefaults_FeatureSetEditionDefaultDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -353,16 +366,17 @@ struct FeatureSetDefaults_FeatureSetEditionDefaultDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeatureSetDefaults_FeatureSetEditionDefaultDefaultTypeInternal _FeatureSetDefaults_FeatureSetEditionDefault_default_instance_; - template + +inline constexpr ServiceOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr}, + deprecated_{false} {} + +template PROTOBUF_CONSTEXPR ServiceOptions::ServiceOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.deprecated_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct ServiceOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr ServiceOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -378,15 +392,16 @@ struct ServiceOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_; - template + +inline constexpr OneofOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr} {} + +template PROTOBUF_CONSTEXPR OneofOptions::OneofOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct OneofOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr OneofOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -402,17 +417,18 @@ struct OneofOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_; - template + +inline constexpr MethodOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr}, + deprecated_{false}, + idempotency_level_{static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(0)} {} + +template PROTOBUF_CONSTEXPR MethodOptions::MethodOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.idempotency_level_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct MethodOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr MethodOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -428,20 +444,21 @@ struct MethodOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_; - template + +inline constexpr MessageOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr}, + message_set_wire_format_{false}, + no_standard_descriptor_accessor_{false}, + deprecated_{false}, + map_entry_{false}, + deprecated_legacy_json_field_conflicts_{false} {} + +template PROTOBUF_CONSTEXPR MessageOptions::MessageOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.message_set_wire_format_)*/ false, - /*decltype(_impl_.no_standard_descriptor_accessor_)*/ false, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.map_entry_)*/ false, - /*decltype(_impl_.deprecated_legacy_json_field_conflicts_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct MessageOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr MessageOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -457,65 +474,56 @@ struct MessageOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_; - template + +inline constexpr FileOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + java_package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + java_outer_classname_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + go_package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + objc_class_prefix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + csharp_namespace_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + swift_prefix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + php_class_prefix_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + php_namespace_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + php_metadata_namespace_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + ruby_package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + features_{nullptr}, + java_multiple_files_{false}, + java_generate_equals_and_hash_{false}, + java_string_check_utf8_{false}, + cc_generic_services_{false}, + java_generic_services_{false}, + py_generic_services_{false}, + php_generic_services_{false}, + deprecated_{false}, + optimize_for_{static_cast< ::google::protobuf::FileOptions_OptimizeMode >(1)}, + cc_enable_arenas_{true} {} + +template PROTOBUF_CONSTEXPR FileOptions::FileOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.java_package_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.java_outer_classname_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.go_package_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.objc_class_prefix_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.csharp_namespace_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.swift_prefix_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.php_class_prefix_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.php_namespace_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.php_metadata_namespace_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.ruby_package_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.java_multiple_files_)*/ false, - /*decltype(_impl_.java_generate_equals_and_hash_)*/ false, - /*decltype(_impl_.java_string_check_utf8_)*/ false, - /*decltype(_impl_.cc_generic_services_)*/ false, - /*decltype(_impl_.java_generic_services_)*/ false, - /*decltype(_impl_.py_generic_services_)*/ false, - /*decltype(_impl_.php_generic_services_)*/ false, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.optimize_for_)*/ 1, - /*decltype(_impl_.cc_enable_arenas_)*/ true, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FileOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FileOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -531,26 +539,27 @@ struct FileOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileOptionsDefaultTypeInternal _FileOptions_default_instance_; - template + +inline constexpr FieldOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + targets_{}, + edition_defaults_{}, + uninterpreted_option_{}, + features_{nullptr}, + ctype_{static_cast< ::google::protobuf::FieldOptions_CType >(0)}, + jstype_{static_cast< ::google::protobuf::FieldOptions_JSType >(0)}, + packed_{false}, + lazy_{false}, + unverified_lazy_{false}, + deprecated_{false}, + weak_{false}, + debug_redact_{false}, + retention_{static_cast< ::google::protobuf::FieldOptions_OptionRetention >(0)} {} + +template PROTOBUF_CONSTEXPR FieldOptions::FieldOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.targets_)*/ {}, - /*decltype(_impl_.edition_defaults_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.ctype_)*/ 0, - /*decltype(_impl_.jstype_)*/ 0, - /*decltype(_impl_.packed_)*/ false, - /*decltype(_impl_.lazy_)*/ false, - /*decltype(_impl_.unverified_lazy_)*/ false, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.weak_)*/ false, - /*decltype(_impl_.debug_redact_)*/ false, - /*decltype(_impl_.retention_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FieldOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FieldOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -566,23 +575,23 @@ struct FieldOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_; - template + +inline constexpr FeatureSetDefaults::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + defaults_{}, + minimum_edition_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + maximum_edition_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + minimum_edition_enum_{static_cast< ::google::protobuf::Edition >(0)}, + maximum_edition_enum_{static_cast< ::google::protobuf::Edition >(0)} {} + +template PROTOBUF_CONSTEXPR FeatureSetDefaults::FeatureSetDefaults(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.defaults_)*/ {}, - /*decltype(_impl_.minimum_edition_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.maximum_edition_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.minimum_edition_enum_)*/ 0, - /*decltype(_impl_.maximum_edition_enum_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FeatureSetDefaultsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FeatureSetDefaultsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -598,17 +607,18 @@ struct FeatureSetDefaultsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FeatureSetDefaultsDefaultTypeInternal _FeatureSetDefaults_default_instance_; - template + +inline constexpr ExtensionRangeOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + declaration_{}, + uninterpreted_option_{}, + features_{nullptr}, + verification_{static_cast< ::google::protobuf::ExtensionRangeOptions_VerificationState >(1)} {} + +template PROTOBUF_CONSTEXPR ExtensionRangeOptions::ExtensionRangeOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.declaration_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.verification_)*/ 1, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct ExtensionRangeOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr ExtensionRangeOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -624,17 +634,18 @@ struct ExtensionRangeOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_; - template + +inline constexpr EnumValueOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr}, + deprecated_{false}, + debug_redact_{false} {} + +template PROTOBUF_CONSTEXPR EnumValueOptions::EnumValueOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.debug_redact_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct EnumValueOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr EnumValueOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -650,18 +661,19 @@ struct EnumValueOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_; - template + +inline constexpr EnumOptions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + uninterpreted_option_{}, + features_{nullptr}, + allow_alias_{false}, + deprecated_{false}, + deprecated_legacy_json_field_conflicts_{false} {} + +template PROTOBUF_CONSTEXPR EnumOptions::EnumOptions(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._extensions_)*/ {}, - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.uninterpreted_option_)*/ {}, - /*decltype(_impl_.features_)*/ nullptr, - /*decltype(_impl_.allow_alias_)*/ false, - /*decltype(_impl_.deprecated_)*/ false, - /*decltype(_impl_.deprecated_legacy_json_field_conflicts_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct EnumOptionsDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr EnumOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -677,17 +689,18 @@ struct EnumOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_; - template + +inline constexpr OneofDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr} {} + +template PROTOBUF_CONSTEXPR OneofDescriptorProto::OneofDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct OneofDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr OneofDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -703,27 +716,26 @@ struct OneofDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_; - template + +inline constexpr MethodDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + input_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + output_type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr}, + client_streaming_{false}, + server_streaming_{false} {} + +template PROTOBUF_CONSTEXPR MethodDescriptorProto::MethodDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.input_type_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.output_type_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - /*decltype(_impl_.client_streaming_)*/ false, - /*decltype(_impl_.server_streaming_)*/ false, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct MethodDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr MethodDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -739,38 +751,35 @@ struct MethodDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_; - template + +inline constexpr FieldDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + extendee_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + type_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + default_value_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + json_name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr}, + number_{0}, + oneof_index_{0}, + proto3_optional_{false}, + label_{static_cast< ::google::protobuf::FieldDescriptorProto_Label >(1)}, + type_{static_cast< ::google::protobuf::FieldDescriptorProto_Type >(1)} {} + +template PROTOBUF_CONSTEXPR FieldDescriptorProto::FieldDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.extendee_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.type_name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.default_value_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.json_name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - /*decltype(_impl_.number_)*/ 0, - /*decltype(_impl_.oneof_index_)*/ 0, - /*decltype(_impl_.proto3_optional_)*/ false, - /*decltype(_impl_.label_)*/ 1, - /*decltype(_impl_.type_)*/ 1, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FieldDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FieldDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -786,18 +795,19 @@ struct FieldDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_; - template + +inline constexpr EnumValueDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr}, + number_{0} {} + +template PROTOBUF_CONSTEXPR EnumValueDescriptorProto::EnumValueDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - /*decltype(_impl_.number_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct EnumValueDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr EnumValueDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -813,15 +823,17 @@ struct EnumValueDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_; - template + +inline constexpr DescriptorProto_ExtensionRange::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + options_{nullptr}, + start_{0}, + end_{0} {} + +template PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.options_)*/ nullptr, - /*decltype(_impl_.start_)*/ 0, - /*decltype(_impl_.end_)*/ 0, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct DescriptorProto_ExtensionRangeDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr DescriptorProto_ExtensionRangeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -837,18 +849,19 @@ struct DescriptorProto_ExtensionRangeDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_; - template + +inline constexpr ServiceDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + method_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr} {} + +template PROTOBUF_CONSTEXPR ServiceDescriptorProto::ServiceDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.method_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct ServiceDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr ServiceDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -864,20 +877,21 @@ struct ServiceDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_; - template + +inline constexpr EnumDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + value_{}, + reserved_range_{}, + reserved_name_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr} {} + +template PROTOBUF_CONSTEXPR EnumDescriptorProto::EnumDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.value_)*/ {}, - /*decltype(_impl_.reserved_range_)*/ {}, - /*decltype(_impl_.reserved_name_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct EnumDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr EnumDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -893,25 +907,26 @@ struct EnumDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_; - template + +inline constexpr DescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + field_{}, + nested_type_{}, + enum_type_{}, + extension_range_{}, + extension_{}, + oneof_decl_{}, + reserved_range_{}, + reserved_name_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr} {} + +template PROTOBUF_CONSTEXPR DescriptorProto::DescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.field_)*/ {}, - /*decltype(_impl_.nested_type_)*/ {}, - /*decltype(_impl_.enum_type_)*/ {}, - /*decltype(_impl_.extension_range_)*/ {}, - /*decltype(_impl_.extension_)*/ {}, - /*decltype(_impl_.oneof_decl_)*/ {}, - /*decltype(_impl_.reserved_range_)*/ {}, - /*decltype(_impl_.reserved_name_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct DescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr DescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -927,37 +942,35 @@ struct DescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_; - template + +inline constexpr FileDescriptorProto::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + dependency_{}, + message_type_{}, + enum_type_{}, + service_{}, + extension_{}, + public_dependency_{}, + weak_dependency_{}, + name_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + package_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + syntax_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + edition_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + options_{nullptr}, + source_code_info_{nullptr} {} + +template PROTOBUF_CONSTEXPR FileDescriptorProto::FileDescriptorProto(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_._has_bits_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - /*decltype(_impl_.dependency_)*/ {}, - /*decltype(_impl_.message_type_)*/ {}, - /*decltype(_impl_.enum_type_)*/ {}, - /*decltype(_impl_.service_)*/ {}, - /*decltype(_impl_.extension_)*/ {}, - /*decltype(_impl_.public_dependency_)*/ {}, - /*decltype(_impl_.weak_dependency_)*/ {}, - /*decltype(_impl_.name_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.package_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.syntax_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.edition_)*/ { - &::_pbi::fixed_address_empty_string, - ::_pbi::ConstantInitialized{}, - }, - /*decltype(_impl_.options_)*/ nullptr, - /*decltype(_impl_.source_code_info_)*/ nullptr, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FileDescriptorProtoDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FileDescriptorProtoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -973,12 +986,15 @@ struct FileDescriptorProtoDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_EXPORT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_; - template + +inline constexpr FileDescriptorSet::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : file_{}, + _cached_size_{0} {} + +template PROTOBUF_CONSTEXPR FileDescriptorSet::FileDescriptorSet(::_pbi::ConstantInitialized) - : _impl_{ - /*decltype(_impl_.file_)*/ {}, - /*decltype(_impl_._cached_size_)*/ {}, - } {} + : _impl_(::_pbi::ConstantInitialized()) {} struct FileDescriptorSetDefaultTypeInternal { #if defined(PROTOBUF_CONSTINIT_DEFAULT_INSTANCES) constexpr FileDescriptorSetDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -2334,24 +2350,32 @@ FileDescriptorSet::FileDescriptorSet(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorSet) } -FileDescriptorSet::FileDescriptorSet(const FileDescriptorSet& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FileDescriptorSet::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : file_{visibility, arena, from.file_}, + _cached_size_{0} {} + +FileDescriptorSet::FileDescriptorSet( + ::google::protobuf::Arena* arena, + const FileDescriptorSet& from) + : ::google::protobuf::Message(arena) { FileDescriptorSet* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.file_){from._impl_.file_}, - /*decltype(_impl_._cached_size_)*/ {}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorSet) } +inline PROTOBUF_NDEBUG_INLINE FileDescriptorSet::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : file_{visibility, arena}, + _cached_size_{0} {} + inline void FileDescriptorSet::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.file_){arena}, - /*decltype(_impl_._cached_size_)*/ {}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); } FileDescriptorSet::~FileDescriptorSet() { // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorSet) @@ -2360,7 +2384,7 @@ FileDescriptorSet::~FileDescriptorSet() { } inline void FileDescriptorSet::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.file_.~RepeatedPtrField(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FileDescriptorSet::Clear() { @@ -2538,100 +2562,66 @@ FileDescriptorProto::FileDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FileDescriptorProto) } -FileDescriptorProto::FileDescriptorProto(const FileDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FileDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + dependency_{visibility, arena, from.dependency_}, + message_type_{visibility, arena, from.message_type_}, + enum_type_{visibility, arena, from.enum_type_}, + service_{visibility, arena, from.service_}, + extension_{visibility, arena, from.extension_}, + public_dependency_{visibility, arena, from.public_dependency_}, + weak_dependency_{visibility, arena, from.weak_dependency_}, + name_(arena, from.name_), + package_(arena, from.package_), + syntax_(arena, from.syntax_), + edition_(arena, from.edition_) {} + +FileDescriptorProto::FileDescriptorProto( + ::google::protobuf::Arena* arena, + const FileDescriptorProto& from) + : ::google::protobuf::Message(arena) { FileDescriptorProto* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.dependency_){from._impl_.dependency_}, - decltype(_impl_.message_type_){from._impl_.message_type_}, - decltype(_impl_.enum_type_){from._impl_.enum_type_}, - decltype(_impl_.service_){from._impl_.service_}, - decltype(_impl_.extension_){from._impl_.extension_}, - decltype(_impl_.public_dependency_){from._impl_.public_dependency_}, - decltype(_impl_.weak_dependency_){from._impl_.weak_dependency_}, - decltype(_impl_.name_){}, - decltype(_impl_.package_){}, - decltype(_impl_.syntax_){}, - decltype(_impl_.edition_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.source_code_info_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.package_.Set(from._internal_package(), _this->GetArenaForAllocation()); - } - _impl_.syntax_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.syntax_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.syntax_.Set(from._internal_syntax(), _this->GetArenaForAllocation()); - } - _impl_.edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) { - _this->_impl_.edition_.Set(from._internal_edition(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000010u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::FileOptions(*from._impl_.options_); - } - if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) { - _this->_impl_.source_code_info_ = new ::google::protobuf::SourceCodeInfo(*from._impl_.source_code_info_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000010u) + ? CreateMaybeMessage<::google::protobuf::FileOptions>(arena, *from._impl_.options_) + : nullptr; + _impl_.source_code_info_ = (cached_has_bits & 0x00000020u) + ? CreateMaybeMessage<::google::protobuf::SourceCodeInfo>(arena, *from._impl_.source_code_info_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.FileDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE FileDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + dependency_{visibility, arena}, + message_type_{visibility, arena}, + enum_type_{visibility, arena}, + service_{visibility, arena}, + extension_{visibility, arena}, + public_dependency_{visibility, arena}, + weak_dependency_{visibility, arena}, + name_(arena), + package_(arena), + syntax_(arena), + edition_(arena) {} + inline void FileDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.dependency_){arena}, - decltype(_impl_.message_type_){arena}, - decltype(_impl_.enum_type_){arena}, - decltype(_impl_.service_){arena}, - decltype(_impl_.extension_){arena}, - decltype(_impl_.public_dependency_){arena}, - decltype(_impl_.weak_dependency_){arena}, - decltype(_impl_.name_){}, - decltype(_impl_.package_){}, - decltype(_impl_.syntax_){}, - decltype(_impl_.edition_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.source_code_info_){nullptr}, - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.syntax_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.syntax_.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(&_impl_) + + offsetof(Impl_, options_), + 0, + offsetof(Impl_, source_code_info_) - + offsetof(Impl_, options_) + + sizeof(Impl_::source_code_info_)); } FileDescriptorProto::~FileDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.FileDescriptorProto) @@ -2640,19 +2630,13 @@ FileDescriptorProto::~FileDescriptorProto() { } inline void FileDescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _internal_mutable_dependency()->~RepeatedPtrField(); - _impl_.message_type_.~RepeatedPtrField(); - _impl_.enum_type_.~RepeatedPtrField(); - _impl_.service_.~RepeatedPtrField(); - _impl_.extension_.~RepeatedPtrField(); - _impl_.public_dependency_.~RepeatedField(); - _impl_.weak_dependency_.~RepeatedField(); _impl_.name_.Destroy(); _impl_.package_.Destroy(); _impl_.syntax_.Destroy(); _impl_.edition_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; if (this != internal_default_instance()) delete _impl_.source_code_info_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FileDescriptorProto::Clear() { @@ -3176,36 +3160,48 @@ DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(::google::protobu SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ExtensionRange) } -DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE DescriptorProto_ExtensionRange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +DescriptorProto_ExtensionRange::DescriptorProto_ExtensionRange( + ::google::protobuf::Arena* arena, + const DescriptorProto_ExtensionRange& from) + : ::google::protobuf::Message(arena) { DescriptorProto_ExtensionRange* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.start_){}, - decltype(_impl_.end_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::ExtensionRangeOptions(*from._impl_.options_); - } - ::memcpy(&_impl_.start_, &from._impl_.start_, - static_cast<::size_t>(reinterpret_cast(&_impl_.end_) - - reinterpret_cast(&_impl_.start_)) + sizeof(_impl_.end_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::ExtensionRangeOptions>(arena, *from._impl_.options_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, start_), + offsetof(Impl_, end_) - + offsetof(Impl_, start_) + + sizeof(Impl_::end_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ExtensionRange) } +inline PROTOBUF_NDEBUG_INLINE DescriptorProto_ExtensionRange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + inline void DescriptorProto_ExtensionRange::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.start_){0}, - decltype(_impl_.end_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, options_), + 0, + offsetof(Impl_, end_) - + offsetof(Impl_, options_) + + sizeof(Impl_::end_)); } DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ExtensionRange) @@ -3215,6 +3211,7 @@ DescriptorProto_ExtensionRange::~DescriptorProto_ExtensionRange() { inline void DescriptorProto_ExtensionRange::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void DescriptorProto_ExtensionRange::Clear() { @@ -3444,20 +3441,24 @@ DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(::google::protobuf: SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto.ReservedRange) } -DescriptorProto_ReservedRange::DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from) - : ::google::protobuf::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto.ReservedRange) +DescriptorProto_ReservedRange::DescriptorProto_ReservedRange( + ::google::protobuf::Arena* arena, const DescriptorProto_ReservedRange& from) + : DescriptorProto_ReservedRange(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE DescriptorProto_ReservedRange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + inline void DescriptorProto_ReservedRange::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.start_){0}, - decltype(_impl_.end_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_), + 0, + offsetof(Impl_, end_) - + offsetof(Impl_, start_) + + sizeof(Impl_::end_)); } DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto.ReservedRange) @@ -3466,6 +3467,7 @@ DescriptorProto_ReservedRange::~DescriptorProto_ReservedRange() { } inline void DescriptorProto_ReservedRange::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void DescriptorProto_ReservedRange::Clear() { @@ -3667,58 +3669,54 @@ DescriptorProto::DescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.DescriptorProto) } -DescriptorProto::DescriptorProto(const DescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE DescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + field_{visibility, arena, from.field_}, + nested_type_{visibility, arena, from.nested_type_}, + enum_type_{visibility, arena, from.enum_type_}, + extension_range_{visibility, arena, from.extension_range_}, + extension_{visibility, arena, from.extension_}, + oneof_decl_{visibility, arena, from.oneof_decl_}, + reserved_range_{visibility, arena, from.reserved_range_}, + reserved_name_{visibility, arena, from.reserved_name_}, + name_(arena, from.name_) {} + +DescriptorProto::DescriptorProto( + ::google::protobuf::Arena* arena, + const DescriptorProto& from) + : ::google::protobuf::Message(arena) { DescriptorProto* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.field_){from._impl_.field_}, - decltype(_impl_.nested_type_){from._impl_.nested_type_}, - decltype(_impl_.enum_type_){from._impl_.enum_type_}, - decltype(_impl_.extension_range_){from._impl_.extension_range_}, - decltype(_impl_.extension_){from._impl_.extension_}, - decltype(_impl_.oneof_decl_){from._impl_.oneof_decl_}, - decltype(_impl_.reserved_range_){from._impl_.reserved_range_}, - decltype(_impl_.reserved_name_){from._impl_.reserved_name_}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::MessageOptions(*from._impl_.options_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::MessageOptions>(arena, *from._impl_.options_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.DescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE DescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + field_{visibility, arena}, + nested_type_{visibility, arena}, + enum_type_{visibility, arena}, + extension_range_{visibility, arena}, + extension_{visibility, arena}, + oneof_decl_{visibility, arena}, + reserved_range_{visibility, arena}, + reserved_name_{visibility, arena}, + name_(arena) {} + inline void DescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.field_){arena}, - decltype(_impl_.nested_type_){arena}, - decltype(_impl_.enum_type_){arena}, - decltype(_impl_.extension_range_){arena}, - decltype(_impl_.extension_){arena}, - decltype(_impl_.oneof_decl_){arena}, - decltype(_impl_.reserved_range_){arena}, - decltype(_impl_.reserved_name_){arena}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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_.options_ = {}; } DescriptorProto::~DescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.DescriptorProto) @@ -3727,16 +3725,9 @@ DescriptorProto::~DescriptorProto() { } inline void DescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.field_.~RepeatedPtrField(); - _impl_.nested_type_.~RepeatedPtrField(); - _impl_.enum_type_.~RepeatedPtrField(); - _impl_.extension_range_.~RepeatedPtrField(); - _impl_.extension_.~RepeatedPtrField(); - _impl_.oneof_decl_.~RepeatedPtrField(); - _impl_.reserved_range_.~RepeatedPtrField(); - _internal_mutable_reserved_name()->~RepeatedPtrField(); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void DescriptorProto::Clear() { @@ -4171,59 +4162,48 @@ ExtensionRangeOptions_Declaration::ExtensionRangeOptions_Declaration(::google::p SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.ExtensionRangeOptions.Declaration) } -ExtensionRangeOptions_Declaration::ExtensionRangeOptions_Declaration(const ExtensionRangeOptions_Declaration& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE ExtensionRangeOptions_Declaration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + full_name_(arena, from.full_name_), + type_(arena, from.type_) {} + +ExtensionRangeOptions_Declaration::ExtensionRangeOptions_Declaration( + ::google::protobuf::Arena* arena, + const ExtensionRangeOptions_Declaration& from) + : ::google::protobuf::Message(arena) { ExtensionRangeOptions_Declaration* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.full_name_){}, - decltype(_impl_.type_){}, - decltype(_impl_.number_){}, - decltype(_impl_.reserved_){}, - decltype(_impl_.repeated_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.full_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.full_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.full_name_.Set(from._internal_full_name(), _this->GetArenaForAllocation()); - } - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.type_.Set(from._internal_type(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.number_, &from._impl_.number_, - static_cast<::size_t>(reinterpret_cast(&_impl_.repeated_) - - reinterpret_cast(&_impl_.number_)) + sizeof(_impl_.repeated_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, number_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, number_), + offsetof(Impl_, repeated_) - + offsetof(Impl_, number_) + + sizeof(Impl_::repeated_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.ExtensionRangeOptions.Declaration) } +inline PROTOBUF_NDEBUG_INLINE ExtensionRangeOptions_Declaration::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + full_name_(arena), + type_(arena) {} + inline void ExtensionRangeOptions_Declaration::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.full_name_){}, - decltype(_impl_.type_){}, - decltype(_impl_.number_){0}, - decltype(_impl_.reserved_){false}, - decltype(_impl_.repeated_){false}, - }; - _impl_.full_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.full_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, number_), + 0, + offsetof(Impl_, repeated_) - + offsetof(Impl_, number_) + + sizeof(Impl_::repeated_)); } ExtensionRangeOptions_Declaration::~ExtensionRangeOptions_Declaration() { // @@protoc_insertion_point(destructor:google.protobuf.ExtensionRangeOptions.Declaration) @@ -4234,6 +4214,7 @@ inline void ExtensionRangeOptions_Declaration::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.full_name_.Destroy(); _impl_.type_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void ExtensionRangeOptions_Declaration::Clear() { @@ -4522,40 +4503,45 @@ ExtensionRangeOptions::ExtensionRangeOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.ExtensionRangeOptions) } -ExtensionRangeOptions::ExtensionRangeOptions(const ExtensionRangeOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE ExtensionRangeOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + declaration_{visibility, arena, from.declaration_}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +ExtensionRangeOptions::ExtensionRangeOptions( + ::google::protobuf::Arena* arena, + const ExtensionRangeOptions& from) + : ::google::protobuf::Message(arena) { ExtensionRangeOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.declaration_){from._impl_.declaration_}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.verification_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - _this->_impl_.verification_ = from._impl_.verification_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + _impl_.verification_ = from._impl_.verification_; // @@protoc_insertion_point(copy_constructor:google.protobuf.ExtensionRangeOptions) } +inline PROTOBUF_NDEBUG_INLINE ExtensionRangeOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + declaration_{visibility, arena}, + uninterpreted_option_{visibility, arena}, + verification_{static_cast< ::google::protobuf::ExtensionRangeOptions_VerificationState >(1)} {} + inline void ExtensionRangeOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.declaration_){arena}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.verification_){1}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.features_ = {}; } ExtensionRangeOptions::~ExtensionRangeOptions() { // @@protoc_insertion_point(destructor:google.protobuf.ExtensionRangeOptions) @@ -4564,10 +4550,8 @@ ExtensionRangeOptions::~ExtensionRangeOptions() { } inline void ExtensionRangeOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.declaration_.~RepeatedPtrField(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void ExtensionRangeOptions::Clear() { @@ -4872,107 +4856,60 @@ FieldDescriptorProto::FieldDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldDescriptorProto) } -FieldDescriptorProto::FieldDescriptorProto(const FieldDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FieldDescriptorProto::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_), + extendee_(arena, from.extendee_), + type_name_(arena, from.type_name_), + default_value_(arena, from.default_value_), + json_name_(arena, from.json_name_) {} + +FieldDescriptorProto::FieldDescriptorProto( + ::google::protobuf::Arena* arena, + const FieldDescriptorProto& from) + : ::google::protobuf::Message(arena) { FieldDescriptorProto* 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_.extendee_){}, - decltype(_impl_.type_name_){}, - decltype(_impl_.default_value_){}, - decltype(_impl_.json_name_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.number_){}, - decltype(_impl_.oneof_index_){}, - decltype(_impl_.proto3_optional_){}, - decltype(_impl_.label_){}, - decltype(_impl_.type_){}, - }; _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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.extendee_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.extendee_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.extendee_.Set(from._internal_extendee(), _this->GetArenaForAllocation()); - } - _impl_.type_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.type_name_.Set(from._internal_type_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._impl_._has_bits_[0] & 0x00000008u) != 0) { - _this->_impl_.default_value_.Set(from._internal_default_value(), _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._impl_._has_bits_[0] & 0x00000010u) != 0) { - _this->_impl_.json_name_.Set(from._internal_json_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::FieldOptions(*from._impl_.options_); - } - ::memcpy(&_impl_.number_, &from._impl_.number_, - static_cast<::size_t>(reinterpret_cast(&_impl_.type_) - - reinterpret_cast(&_impl_.number_)) + sizeof(_impl_.type_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000020u) + ? CreateMaybeMessage<::google::protobuf::FieldOptions>(arena, *from._impl_.options_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, number_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, number_), + offsetof(Impl_, type_) - + offsetof(Impl_, number_) + + sizeof(Impl_::type_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE FieldDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena), + extendee_(arena), + type_name_(arena), + default_value_(arena), + json_name_(arena), + label_{static_cast< ::google::protobuf::FieldDescriptorProto_Label >(1)}, + type_{static_cast< ::google::protobuf::FieldDescriptorProto_Type >(1)} {} + inline void FieldDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){}, - decltype(_impl_.extendee_){}, - decltype(_impl_.type_name_){}, - decltype(_impl_.default_value_){}, - decltype(_impl_.json_name_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.number_){0}, - decltype(_impl_.oneof_index_){0}, - decltype(_impl_.proto3_optional_){false}, - decltype(_impl_.label_){1}, - decltype(_impl_.type_){1}, - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.extendee_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.extendee_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.type_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_.json_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.json_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, options_), + 0, + offsetof(Impl_, proto3_optional_) - + offsetof(Impl_, options_) + + sizeof(Impl_::proto3_optional_)); } FieldDescriptorProto::~FieldDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.FieldDescriptorProto) @@ -4987,6 +4924,7 @@ inline void FieldDescriptorProto::SharedDtor() { _impl_.default_value_.Destroy(); _impl_.json_name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FieldDescriptorProto::Clear() { @@ -5450,42 +5388,38 @@ OneofDescriptorProto::OneofDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofDescriptorProto) } -OneofDescriptorProto::OneofDescriptorProto(const OneofDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE OneofDescriptorProto::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_) {} + +OneofDescriptorProto::OneofDescriptorProto( + ::google::protobuf::Arena* arena, + const OneofDescriptorProto& from) + : ::google::protobuf::Message(arena) { OneofDescriptorProto* 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_.options_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::OneofOptions(*from._impl_.options_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::OneofOptions>(arena, *from._impl_.options_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE OneofDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + inline void OneofDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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_.options_ = {}; } OneofDescriptorProto::~OneofDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.OneofDescriptorProto) @@ -5496,6 +5430,7 @@ inline void OneofDescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void OneofDescriptorProto::Clear() { @@ -5704,20 +5639,24 @@ EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(::g SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange) } -EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from) - : ::google::protobuf::Message(), _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto.EnumReservedRange) +EnumDescriptorProto_EnumReservedRange::EnumDescriptorProto_EnumReservedRange( + ::google::protobuf::Arena* arena, const EnumDescriptorProto_EnumReservedRange& from) + : EnumDescriptorProto_EnumReservedRange(arena) { + MergeFrom(from); } +inline PROTOBUF_NDEBUG_INLINE EnumDescriptorProto_EnumReservedRange::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0} {} + inline void EnumDescriptorProto_EnumReservedRange::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.start_){0}, - decltype(_impl_.end_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, start_), + 0, + offsetof(Impl_, end_) - + offsetof(Impl_, start_) + + sizeof(Impl_::end_)); } EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() { // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto.EnumReservedRange) @@ -5726,6 +5665,7 @@ EnumDescriptorProto_EnumReservedRange::~EnumDescriptorProto_EnumReservedRange() } inline void EnumDescriptorProto_EnumReservedRange::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void EnumDescriptorProto_EnumReservedRange::Clear() { @@ -5927,48 +5867,44 @@ EnumDescriptorProto::EnumDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumDescriptorProto) } -EnumDescriptorProto::EnumDescriptorProto(const EnumDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE EnumDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + value_{visibility, arena, from.value_}, + reserved_range_{visibility, arena, from.reserved_range_}, + reserved_name_{visibility, arena, from.reserved_name_}, + name_(arena, from.name_) {} + +EnumDescriptorProto::EnumDescriptorProto( + ::google::protobuf::Arena* arena, + const EnumDescriptorProto& from) + : ::google::protobuf::Message(arena) { EnumDescriptorProto* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.value_){from._impl_.value_}, - decltype(_impl_.reserved_range_){from._impl_.reserved_range_}, - decltype(_impl_.reserved_name_){from._impl_.reserved_name_}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::EnumOptions(*from._impl_.options_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::EnumOptions>(arena, *from._impl_.options_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE EnumDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + value_{visibility, arena}, + reserved_range_{visibility, arena}, + reserved_name_{visibility, arena}, + name_(arena) {} + inline void EnumDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.value_){arena}, - decltype(_impl_.reserved_range_){arena}, - decltype(_impl_.reserved_name_){arena}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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_.options_ = {}; } EnumDescriptorProto::~EnumDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.EnumDescriptorProto) @@ -5977,11 +5913,9 @@ EnumDescriptorProto::~EnumDescriptorProto() { } inline void EnumDescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.value_.~RepeatedPtrField(); - _impl_.reserved_range_.~RepeatedPtrField(); - _internal_mutable_reserved_name()->~RepeatedPtrField(); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void EnumDescriptorProto::Clear() { @@ -6276,45 +6210,44 @@ EnumValueDescriptorProto::EnumValueDescriptorProto(::google::protobuf::Arena* ar SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueDescriptorProto) } -EnumValueDescriptorProto::EnumValueDescriptorProto(const EnumValueDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE EnumValueDescriptorProto::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_) {} + +EnumValueDescriptorProto::EnumValueDescriptorProto( + ::google::protobuf::Arena* arena, + const EnumValueDescriptorProto& from) + : ::google::protobuf::Message(arena) { EnumValueDescriptorProto* 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_.options_){nullptr}, - decltype(_impl_.number_){}, - }; _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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::EnumValueOptions(*from._impl_.options_); - } - _this->_impl_.number_ = from._impl_.number_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::EnumValueOptions>(arena, *from._impl_.options_) + : nullptr; + _impl_.number_ = from._impl_.number_; // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE EnumValueDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena) {} + inline void EnumValueDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.number_){0}, - }; - _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); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, options_), + 0, + offsetof(Impl_, number_) - + offsetof(Impl_, options_) + + sizeof(Impl_::number_)); } EnumValueDescriptorProto::~EnumValueDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.EnumValueDescriptorProto) @@ -6325,6 +6258,7 @@ inline void EnumValueDescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void EnumValueDescriptorProto::Clear() { @@ -6567,44 +6501,40 @@ ServiceDescriptorProto::ServiceDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceDescriptorProto) } -ServiceDescriptorProto::ServiceDescriptorProto(const ServiceDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE ServiceDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + method_{visibility, arena, from.method_}, + name_(arena, from.name_) {} + +ServiceDescriptorProto::ServiceDescriptorProto( + ::google::protobuf::Arena* arena, + const ServiceDescriptorProto& from) + : ::google::protobuf::Message(arena) { ServiceDescriptorProto* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.method_){from._impl_.method_}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::ServiceOptions(*from._impl_.options_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::ServiceOptions>(arena, *from._impl_.options_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE ServiceDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + method_{visibility, arena}, + name_(arena) {} + inline void ServiceDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.method_){arena}, - decltype(_impl_.name_){}, - decltype(_impl_.options_){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_.options_ = {}; } ServiceDescriptorProto::~ServiceDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.ServiceDescriptorProto) @@ -6613,9 +6543,9 @@ ServiceDescriptorProto::~ServiceDescriptorProto() { } inline void ServiceDescriptorProto::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.method_.~RepeatedPtrField(); _impl_.name_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void ServiceDescriptorProto::Clear() { @@ -6868,75 +6798,54 @@ MethodDescriptorProto::MethodDescriptorProto(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodDescriptorProto) } -MethodDescriptorProto::MethodDescriptorProto(const MethodDescriptorProto& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE MethodDescriptorProto::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_), + input_type_(arena, from.input_type_), + output_type_(arena, from.output_type_) {} + +MethodDescriptorProto::MethodDescriptorProto( + ::google::protobuf::Arena* arena, + const MethodDescriptorProto& from) + : ::google::protobuf::Message(arena) { MethodDescriptorProto* 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_.input_type_){}, - decltype(_impl_.output_type_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.client_streaming_){}, - decltype(_impl_.server_streaming_){}, - }; _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._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_.Set(from._internal_name(), _this->GetArenaForAllocation()); - } - _impl_.input_type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.input_type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.input_type_.Set(from._internal_input_type(), _this->GetArenaForAllocation()); - } - _impl_.output_type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.output_type_.Set(from._internal_output_type(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) { - _this->_impl_.options_ = new ::google::protobuf::MethodOptions(*from._impl_.options_); - } - ::memcpy(&_impl_.client_streaming_, &from._impl_.client_streaming_, - static_cast<::size_t>(reinterpret_cast(&_impl_.server_streaming_) - - reinterpret_cast(&_impl_.client_streaming_)) + sizeof(_impl_.server_streaming_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.options_ = (cached_has_bits & 0x00000008u) + ? CreateMaybeMessage<::google::protobuf::MethodOptions>(arena, *from._impl_.options_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, client_streaming_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, client_streaming_), + offsetof(Impl_, server_streaming_) - + offsetof(Impl_, client_streaming_) + + sizeof(Impl_::server_streaming_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodDescriptorProto) } +inline PROTOBUF_NDEBUG_INLINE MethodDescriptorProto::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_(arena), + input_type_(arena), + output_type_(arena) {} + inline void MethodDescriptorProto::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){}, - decltype(_impl_.input_type_){}, - decltype(_impl_.output_type_){}, - decltype(_impl_.options_){nullptr}, - decltype(_impl_.client_streaming_){false}, - decltype(_impl_.server_streaming_){false}, - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.input_type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.input_type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_type_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.output_type_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, options_), + 0, + offsetof(Impl_, server_streaming_) - + offsetof(Impl_, options_) + + sizeof(Impl_::server_streaming_)); } MethodDescriptorProto::~MethodDescriptorProto() { // @@protoc_insertion_point(destructor:google.protobuf.MethodDescriptorProto) @@ -6949,6 +6858,7 @@ inline void MethodDescriptorProto::SharedDtor() { _impl_.input_type_.Destroy(); _impl_.output_type_.Destroy(); if (this != internal_default_instance()) delete _impl_.options_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void MethodDescriptorProto::Clear() { @@ -7329,188 +7239,75 @@ FileOptions::FileOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FileOptions) } -FileOptions::FileOptions(const FileOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FileOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_}, + java_package_(arena, from.java_package_), + java_outer_classname_(arena, from.java_outer_classname_), + go_package_(arena, from.go_package_), + objc_class_prefix_(arena, from.objc_class_prefix_), + csharp_namespace_(arena, from.csharp_namespace_), + swift_prefix_(arena, from.swift_prefix_), + php_class_prefix_(arena, from.php_class_prefix_), + php_namespace_(arena, from.php_namespace_), + php_metadata_namespace_(arena, from.php_metadata_namespace_), + ruby_package_(arena, from.ruby_package_) {} + +FileOptions::FileOptions( + ::google::protobuf::Arena* arena, + const FileOptions& from) + : ::google::protobuf::Message(arena) { FileOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.java_package_){}, - decltype(_impl_.java_outer_classname_){}, - decltype(_impl_.go_package_){}, - decltype(_impl_.objc_class_prefix_){}, - decltype(_impl_.csharp_namespace_){}, - decltype(_impl_.swift_prefix_){}, - decltype(_impl_.php_class_prefix_){}, - decltype(_impl_.php_namespace_){}, - decltype(_impl_.php_metadata_namespace_){}, - decltype(_impl_.ruby_package_){}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.java_multiple_files_){}, - decltype(_impl_.java_generate_equals_and_hash_){}, - decltype(_impl_.java_string_check_utf8_){}, - decltype(_impl_.cc_generic_services_){}, - decltype(_impl_.java_generic_services_){}, - decltype(_impl_.py_generic_services_){}, - decltype(_impl_.php_generic_services_){}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.optimize_for_){}, - decltype(_impl_.cc_enable_arenas_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - _impl_.java_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.java_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.java_package_.Set(from._internal_java_package(), _this->GetArenaForAllocation()); - } - _impl_.java_outer_classname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.java_outer_classname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.java_outer_classname_.Set(from._internal_java_outer_classname(), _this->GetArenaForAllocation()); - } - _impl_.go_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.go_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.go_package_.Set(from._internal_go_package(), _this->GetArenaForAllocation()); - } - _impl_.objc_class_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.objc_class_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000008u) != 0) { - _this->_impl_.objc_class_prefix_.Set(from._internal_objc_class_prefix(), _this->GetArenaForAllocation()); - } - _impl_.csharp_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.csharp_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000010u) != 0) { - _this->_impl_.csharp_namespace_.Set(from._internal_csharp_namespace(), _this->GetArenaForAllocation()); - } - _impl_.swift_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.swift_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000020u) != 0) { - _this->_impl_.swift_prefix_.Set(from._internal_swift_prefix(), _this->GetArenaForAllocation()); - } - _impl_.php_class_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_class_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000040u) != 0) { - _this->_impl_.php_class_prefix_.Set(from._internal_php_class_prefix(), _this->GetArenaForAllocation()); - } - _impl_.php_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000080u) != 0) { - _this->_impl_.php_namespace_.Set(from._internal_php_namespace(), _this->GetArenaForAllocation()); - } - _impl_.php_metadata_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000100u) != 0) { - _this->_impl_.php_metadata_namespace_.Set(from._internal_php_metadata_namespace(), _this->GetArenaForAllocation()); - } - _impl_.ruby_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ruby_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000200u) != 0) { - _this->_impl_.ruby_package_.Set(from._internal_ruby_package(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000400u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.java_multiple_files_, &from._impl_.java_multiple_files_, - static_cast<::size_t>(reinterpret_cast(&_impl_.cc_enable_arenas_) - - reinterpret_cast(&_impl_.java_multiple_files_)) + sizeof(_impl_.cc_enable_arenas_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000400u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, java_multiple_files_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, java_multiple_files_), + offsetof(Impl_, cc_enable_arenas_) - + offsetof(Impl_, java_multiple_files_) + + sizeof(Impl_::cc_enable_arenas_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FileOptions) } +inline PROTOBUF_NDEBUG_INLINE FileOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena}, + java_package_(arena), + java_outer_classname_(arena), + go_package_(arena), + objc_class_prefix_(arena), + csharp_namespace_(arena), + swift_prefix_(arena), + php_class_prefix_(arena), + php_namespace_(arena), + php_metadata_namespace_(arena), + ruby_package_(arena), + optimize_for_{static_cast< ::google::protobuf::FileOptions_OptimizeMode >(1)}, + cc_enable_arenas_{true} {} + inline void FileOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.java_package_){}, - decltype(_impl_.java_outer_classname_){}, - decltype(_impl_.go_package_){}, - decltype(_impl_.objc_class_prefix_){}, - decltype(_impl_.csharp_namespace_){}, - decltype(_impl_.swift_prefix_){}, - decltype(_impl_.php_class_prefix_){}, - decltype(_impl_.php_namespace_){}, - decltype(_impl_.php_metadata_namespace_){}, - decltype(_impl_.ruby_package_){}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.java_multiple_files_){false}, - decltype(_impl_.java_generate_equals_and_hash_){false}, - decltype(_impl_.java_string_check_utf8_){false}, - decltype(_impl_.cc_generic_services_){false}, - decltype(_impl_.java_generic_services_){false}, - decltype(_impl_.py_generic_services_){false}, - decltype(_impl_.php_generic_services_){false}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.optimize_for_){1}, - decltype(_impl_.cc_enable_arenas_){true}, - }; - _impl_.java_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.java_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.java_outer_classname_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.java_outer_classname_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.go_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.go_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.objc_class_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.objc_class_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.csharp_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.csharp_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.swift_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.swift_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_class_prefix_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_class_prefix_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_metadata_namespace_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ruby_package_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.ruby_package_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, deprecated_) - + offsetof(Impl_, features_) + + sizeof(Impl_::deprecated_)); } FileOptions::~FileOptions() { // @@protoc_insertion_point(destructor:google.protobuf.FileOptions) @@ -7519,8 +7316,6 @@ FileOptions::~FileOptions() { } inline void FileOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); _impl_.java_package_.Destroy(); _impl_.java_outer_classname_.Destroy(); _impl_.go_package_.Destroy(); @@ -7532,6 +7327,7 @@ inline void FileOptions::SharedDtor() { _impl_.php_metadata_namespace_.Destroy(); _impl_.ruby_package_.Destroy(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FileOptions::Clear() { @@ -8301,48 +8097,53 @@ MessageOptions::MessageOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.MessageOptions) } -MessageOptions::MessageOptions(const MessageOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE MessageOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +MessageOptions::MessageOptions( + ::google::protobuf::Arena* arena, + const MessageOptions& from) + : ::google::protobuf::Message(arena) { MessageOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.message_set_wire_format_){}, - decltype(_impl_.no_standard_descriptor_accessor_){}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.map_entry_){}, - decltype(_impl_.deprecated_legacy_json_field_conflicts_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.message_set_wire_format_, &from._impl_.message_set_wire_format_, - static_cast<::size_t>(reinterpret_cast(&_impl_.deprecated_legacy_json_field_conflicts_) - - reinterpret_cast(&_impl_.message_set_wire_format_)) + sizeof(_impl_.deprecated_legacy_json_field_conflicts_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, message_set_wire_format_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, message_set_wire_format_), + offsetof(Impl_, deprecated_legacy_json_field_conflicts_) - + offsetof(Impl_, message_set_wire_format_) + + sizeof(Impl_::deprecated_legacy_json_field_conflicts_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.MessageOptions) } +inline PROTOBUF_NDEBUG_INLINE MessageOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void MessageOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.message_set_wire_format_){false}, - decltype(_impl_.no_standard_descriptor_accessor_){false}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.map_entry_){false}, - decltype(_impl_.deprecated_legacy_json_field_conflicts_){false}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, deprecated_legacy_json_field_conflicts_) - + offsetof(Impl_, features_) + + sizeof(Impl_::deprecated_legacy_json_field_conflicts_)); } MessageOptions::~MessageOptions() { // @@protoc_insertion_point(destructor:google.protobuf.MessageOptions) @@ -8351,9 +8152,8 @@ MessageOptions::~MessageOptions() { } inline void MessageOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void MessageOptions::Clear() { @@ -8683,53 +8483,37 @@ FieldOptions_EditionDefault::FieldOptions_EditionDefault(::google::protobuf::Are SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions.EditionDefault) } -FieldOptions_EditionDefault::FieldOptions_EditionDefault(const FieldOptions_EditionDefault& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FieldOptions_EditionDefault::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + edition_(arena, from.edition_), + value_(arena, from.value_) {} + +FieldOptions_EditionDefault::FieldOptions_EditionDefault( + ::google::protobuf::Arena* arena, + const FieldOptions_EditionDefault& from) + : ::google::protobuf::Message(arena) { FieldOptions_EditionDefault* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.edition_){}, - decltype(_impl_.value_){}, - decltype(_impl_.edition_enum_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.edition_.Set(from._internal_edition(), _this->GetArenaForAllocation()); - } - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.value_.Set(from._internal_value(), _this->GetArenaForAllocation()); - } - _this->_impl_.edition_enum_ = from._impl_.edition_enum_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.edition_enum_ = from._impl_.edition_enum_; // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions.EditionDefault) } +inline PROTOBUF_NDEBUG_INLINE FieldOptions_EditionDefault::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + edition_(arena), + value_(arena) {} + inline void FieldOptions_EditionDefault::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.edition_){}, - decltype(_impl_.value_){}, - decltype(_impl_.edition_enum_){0}, - }; - _impl_.edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.edition_enum_ = {}; } FieldOptions_EditionDefault::~FieldOptions_EditionDefault() { // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions.EditionDefault) @@ -8740,6 +8524,7 @@ inline void FieldOptions_EditionDefault::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.edition_.Destroy(); _impl_.value_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FieldOptions_EditionDefault::Clear() { @@ -8999,60 +8784,57 @@ FieldOptions::FieldOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FieldOptions) } -FieldOptions::FieldOptions(const FieldOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FieldOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + targets_{visibility, arena, from.targets_}, + edition_defaults_{visibility, arena, from.edition_defaults_}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +FieldOptions::FieldOptions( + ::google::protobuf::Arena* arena, + const FieldOptions& from) + : ::google::protobuf::Message(arena) { FieldOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.targets_){from._internal_targets()}, - decltype(_impl_.edition_defaults_){from._impl_.edition_defaults_}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.ctype_){}, - decltype(_impl_.jstype_){}, - decltype(_impl_.packed_){}, - decltype(_impl_.lazy_){}, - decltype(_impl_.unverified_lazy_){}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.weak_){}, - decltype(_impl_.debug_redact_){}, - decltype(_impl_.retention_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.ctype_, &from._impl_.ctype_, - static_cast<::size_t>(reinterpret_cast(&_impl_.retention_) - - reinterpret_cast(&_impl_.ctype_)) + sizeof(_impl_.retention_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, ctype_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, ctype_), + offsetof(Impl_, retention_) - + offsetof(Impl_, ctype_) + + sizeof(Impl_::retention_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FieldOptions) } +inline PROTOBUF_NDEBUG_INLINE FieldOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + targets_{visibility, arena}, + edition_defaults_{visibility, arena}, + uninterpreted_option_{visibility, arena} {} + inline void FieldOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.targets_){arena}, - decltype(_impl_.edition_defaults_){arena}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.ctype_){0}, - decltype(_impl_.jstype_){0}, - decltype(_impl_.packed_){false}, - decltype(_impl_.lazy_){false}, - decltype(_impl_.unverified_lazy_){false}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.weak_){false}, - decltype(_impl_.debug_redact_){false}, - decltype(_impl_.retention_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, retention_) - + offsetof(Impl_, features_) + + sizeof(Impl_::retention_)); } FieldOptions::~FieldOptions() { // @@protoc_insertion_point(destructor:google.protobuf.FieldOptions) @@ -9061,11 +8843,8 @@ FieldOptions::~FieldOptions() { } inline void FieldOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _internal_mutable_targets()->~RepeatedField(); - _impl_.edition_defaults_.~RepeatedPtrField(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FieldOptions::Clear() { @@ -9548,35 +9327,41 @@ OneofOptions::OneofOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.OneofOptions) } -OneofOptions::OneofOptions(const OneofOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE OneofOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +OneofOptions::OneofOptions( + ::google::protobuf::Arena* arena, + const OneofOptions& from) + : ::google::protobuf::Message(arena) { OneofOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; // @@protoc_insertion_point(copy_constructor:google.protobuf.OneofOptions) } +inline PROTOBUF_NDEBUG_INLINE OneofOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void OneofOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.features_ = {}; } OneofOptions::~OneofOptions() { // @@protoc_insertion_point(destructor:google.protobuf.OneofOptions) @@ -9585,9 +9370,8 @@ OneofOptions::~OneofOptions() { } inline void OneofOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void OneofOptions::Clear() { @@ -9808,44 +9592,53 @@ EnumOptions::EnumOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumOptions) } -EnumOptions::EnumOptions(const EnumOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE EnumOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +EnumOptions::EnumOptions( + ::google::protobuf::Arena* arena, + const EnumOptions& from) + : ::google::protobuf::Message(arena) { EnumOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.allow_alias_){}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.deprecated_legacy_json_field_conflicts_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.allow_alias_, &from._impl_.allow_alias_, - static_cast<::size_t>(reinterpret_cast(&_impl_.deprecated_legacy_json_field_conflicts_) - - reinterpret_cast(&_impl_.allow_alias_)) + sizeof(_impl_.deprecated_legacy_json_field_conflicts_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, allow_alias_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, allow_alias_), + offsetof(Impl_, deprecated_legacy_json_field_conflicts_) - + offsetof(Impl_, allow_alias_) + + sizeof(Impl_::deprecated_legacy_json_field_conflicts_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumOptions) } +inline PROTOBUF_NDEBUG_INLINE EnumOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void EnumOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.allow_alias_){false}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.deprecated_legacy_json_field_conflicts_){false}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, deprecated_legacy_json_field_conflicts_) - + offsetof(Impl_, features_) + + sizeof(Impl_::deprecated_legacy_json_field_conflicts_)); } EnumOptions::~EnumOptions() { // @@protoc_insertion_point(destructor:google.protobuf.EnumOptions) @@ -9854,9 +9647,8 @@ EnumOptions::~EnumOptions() { } inline void EnumOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void EnumOptions::Clear() { @@ -10150,42 +9942,53 @@ EnumValueOptions::EnumValueOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValueOptions) } -EnumValueOptions::EnumValueOptions(const EnumValueOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE EnumValueOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +EnumValueOptions::EnumValueOptions( + ::google::protobuf::Arena* arena, + const EnumValueOptions& from) + : ::google::protobuf::Message(arena) { EnumValueOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.debug_redact_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.deprecated_, &from._impl_.deprecated_, - static_cast<::size_t>(reinterpret_cast(&_impl_.debug_redact_) - - reinterpret_cast(&_impl_.deprecated_)) + sizeof(_impl_.debug_redact_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, deprecated_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, deprecated_), + offsetof(Impl_, debug_redact_) - + offsetof(Impl_, deprecated_) + + sizeof(Impl_::debug_redact_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValueOptions) } +inline PROTOBUF_NDEBUG_INLINE EnumValueOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void EnumValueOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.debug_redact_){false}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, debug_redact_) - + offsetof(Impl_, features_) + + sizeof(Impl_::debug_redact_)); } EnumValueOptions::~EnumValueOptions() { // @@protoc_insertion_point(destructor:google.protobuf.EnumValueOptions) @@ -10194,9 +9997,8 @@ EnumValueOptions::~EnumValueOptions() { } inline void EnumValueOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void EnumValueOptions::Clear() { @@ -10469,38 +10271,47 @@ ServiceOptions::ServiceOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.ServiceOptions) } -ServiceOptions::ServiceOptions(const ServiceOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE ServiceOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +ServiceOptions::ServiceOptions( + ::google::protobuf::Arena* arena, + const ServiceOptions& from) + : ::google::protobuf::Message(arena) { ServiceOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - _this->_impl_.deprecated_ = from._impl_.deprecated_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + _impl_.deprecated_ = from._impl_.deprecated_; // @@protoc_insertion_point(copy_constructor:google.protobuf.ServiceOptions) } +inline PROTOBUF_NDEBUG_INLINE ServiceOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void ServiceOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){false}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, deprecated_) - + offsetof(Impl_, features_) + + sizeof(Impl_::deprecated_)); } ServiceOptions::~ServiceOptions() { // @@protoc_insertion_point(destructor:google.protobuf.ServiceOptions) @@ -10509,9 +10320,8 @@ ServiceOptions::~ServiceOptions() { } inline void ServiceOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void ServiceOptions::Clear() { @@ -10762,42 +10572,53 @@ MethodOptions::MethodOptions(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.MethodOptions) } -MethodOptions::MethodOptions(const MethodOptions& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE MethodOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena, from.uninterpreted_option_} {} + +MethodOptions::MethodOptions( + ::google::protobuf::Arena* arena, + const MethodOptions& from) + : ::google::protobuf::Message(arena) { MethodOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){from._impl_.uninterpreted_option_}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){}, - decltype(_impl_.idempotency_level_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - ::memcpy(&_impl_.deprecated_, &from._impl_.deprecated_, - static_cast<::size_t>(reinterpret_cast(&_impl_.idempotency_level_) - - reinterpret_cast(&_impl_.deprecated_)) + sizeof(_impl_.idempotency_level_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000001u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, deprecated_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, deprecated_), + offsetof(Impl_, idempotency_level_) - + offsetof(Impl_, deprecated_) + + sizeof(Impl_::idempotency_level_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.MethodOptions) } +inline PROTOBUF_NDEBUG_INLINE MethodOptions::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0}, + uninterpreted_option_{visibility, arena} {} + inline void MethodOptions::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.uninterpreted_option_){arena}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.deprecated_){false}, - decltype(_impl_.idempotency_level_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, idempotency_level_) - + offsetof(Impl_, features_) + + sizeof(Impl_::idempotency_level_)); } MethodOptions::~MethodOptions() { // @@protoc_insertion_point(destructor:google.protobuf.MethodOptions) @@ -10806,9 +10627,8 @@ MethodOptions::~MethodOptions() { } inline void MethodOptions::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); - _impl_.uninterpreted_option_.~RepeatedPtrField(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void MethodOptions::Clear() { @@ -11085,40 +10905,35 @@ UninterpretedOption_NamePart::UninterpretedOption_NamePart(::google::protobuf::A SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption.NamePart) } -UninterpretedOption_NamePart::UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE UninterpretedOption_NamePart::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_part_(arena, from.name_part_) {} + +UninterpretedOption_NamePart::UninterpretedOption_NamePart( + ::google::protobuf::Arena* arena, + const UninterpretedOption_NamePart& from) + : ::google::protobuf::Message(arena) { UninterpretedOption_NamePart* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_part_){}, - decltype(_impl_.is_extension_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.name_part_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_part_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.name_part_.Set(from._internal_name_part(), _this->GetArenaForAllocation()); - } - _this->_impl_.is_extension_ = from._impl_.is_extension_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_.is_extension_ = from._impl_.is_extension_; // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption.NamePart) } +inline PROTOBUF_NDEBUG_INLINE UninterpretedOption_NamePart::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_part_(arena) {} + inline void UninterpretedOption_NamePart::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_part_){}, - decltype(_impl_.is_extension_){false}, - }; - _impl_.name_part_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_part_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + _impl_.is_extension_ = {}; } UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption.NamePart) @@ -11128,6 +10943,7 @@ UninterpretedOption_NamePart::~UninterpretedOption_NamePart() { inline void UninterpretedOption_NamePart::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.name_part_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void UninterpretedOption_NamePart::Clear() { @@ -11341,74 +11157,52 @@ UninterpretedOption::UninterpretedOption(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.UninterpretedOption) } -UninterpretedOption::UninterpretedOption(const UninterpretedOption& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE UninterpretedOption::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + name_{visibility, arena, from.name_}, + identifier_value_(arena, from.identifier_value_), + string_value_(arena, from.string_value_), + aggregate_value_(arena, from.aggregate_value_) {} + +UninterpretedOption::UninterpretedOption( + ::google::protobuf::Arena* arena, + const UninterpretedOption& from) + : ::google::protobuf::Message(arena) { UninterpretedOption* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){from._impl_.name_}, - decltype(_impl_.identifier_value_){}, - decltype(_impl_.string_value_){}, - decltype(_impl_.aggregate_value_){}, - decltype(_impl_.positive_int_value_){}, - decltype(_impl_.negative_int_value_){}, - decltype(_impl_.double_value_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.identifier_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.identifier_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.identifier_value_.Set(from._internal_identifier_value(), _this->GetArenaForAllocation()); - } - _impl_.string_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.string_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.string_value_.Set(from._internal_string_value(), _this->GetArenaForAllocation()); - } - _impl_.aggregate_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.aggregate_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) { - _this->_impl_.aggregate_value_.Set(from._internal_aggregate_value(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.positive_int_value_, &from._impl_.positive_int_value_, - static_cast<::size_t>(reinterpret_cast(&_impl_.double_value_) - - reinterpret_cast(&_impl_.positive_int_value_)) + sizeof(_impl_.double_value_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, positive_int_value_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, positive_int_value_), + offsetof(Impl_, double_value_) - + offsetof(Impl_, positive_int_value_) + + sizeof(Impl_::double_value_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.UninterpretedOption) } +inline PROTOBUF_NDEBUG_INLINE UninterpretedOption::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + name_{visibility, arena}, + identifier_value_(arena), + string_value_(arena), + aggregate_value_(arena) {} + inline void UninterpretedOption::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.name_){arena}, - decltype(_impl_.identifier_value_){}, - decltype(_impl_.string_value_){}, - decltype(_impl_.aggregate_value_){}, - decltype(_impl_.positive_int_value_){::uint64_t{0u}}, - decltype(_impl_.negative_int_value_){::int64_t{0}}, - decltype(_impl_.double_value_){0}, - }; - _impl_.identifier_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.identifier_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.string_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.string_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.aggregate_value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.aggregate_value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, positive_int_value_), + 0, + offsetof(Impl_, double_value_) - + offsetof(Impl_, positive_int_value_) + + sizeof(Impl_::double_value_)); } UninterpretedOption::~UninterpretedOption() { // @@protoc_insertion_point(destructor:google.protobuf.UninterpretedOption) @@ -11417,10 +11211,10 @@ UninterpretedOption::~UninterpretedOption() { } inline void UninterpretedOption::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.~RepeatedPtrField(); _impl_.identifier_value_.Destroy(); _impl_.string_value_.Destroy(); _impl_.aggregate_value_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void UninterpretedOption::Clear() { @@ -11765,41 +11559,47 @@ FeatureSet::FeatureSet(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSet) } -FeatureSet::FeatureSet(const FeatureSet& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FeatureSet::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _extensions_{visibility, arena}, + _has_bits_{from._has_bits_}, + _cached_size_{0} {} + +FeatureSet::FeatureSet( + ::google::protobuf::Arena* arena, + const FeatureSet& from) + : ::google::protobuf::Message(arena) { FeatureSet* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {}, - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.field_presence_){}, - decltype(_impl_.enum_type_){}, - decltype(_impl_.repeated_field_encoding_){}, - decltype(_impl_.message_encoding_){}, - decltype(_impl_.json_format_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_._extensions_.MergeFrom(internal_default_instance(), - from._impl_._extensions_); - ::memcpy(&_impl_.field_presence_, &from._impl_.field_presence_, - static_cast<::size_t>(reinterpret_cast(&_impl_.json_format_) - - reinterpret_cast(&_impl_.field_presence_)) + sizeof(_impl_.json_format_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + _impl_._extensions_.MergeFrom(this, from._impl_._extensions_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, field_presence_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, field_presence_), + offsetof(Impl_, json_format_) - + offsetof(Impl_, field_presence_) + + sizeof(Impl_::json_format_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FeatureSet) } +inline PROTOBUF_NDEBUG_INLINE FeatureSet::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _extensions_{visibility, arena}, + _cached_size_{0} {} + inline void FeatureSet::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - /*decltype(_impl_._extensions_)*/ {::_pbi::ArenaInitialized(), arena}, - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.field_presence_){0}, - decltype(_impl_.enum_type_){0}, - decltype(_impl_.repeated_field_encoding_){0}, - decltype(_impl_.message_encoding_){0}, - decltype(_impl_.json_format_){0}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, field_presence_), + 0, + offsetof(Impl_, json_format_) - + offsetof(Impl_, field_presence_) + + sizeof(Impl_::json_format_)); } FeatureSet::~FeatureSet() { // @@protoc_insertion_point(destructor:google.protobuf.FeatureSet) @@ -11808,7 +11608,7 @@ FeatureSet::~FeatureSet() { } inline void FeatureSet::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_._extensions_.~ExtensionSet(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FeatureSet::Clear() { @@ -12097,45 +11897,44 @@ FeatureSetDefaults_FeatureSetEditionDefault::FeatureSetDefaults_FeatureSetEditio SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) } -FeatureSetDefaults_FeatureSetEditionDefault::FeatureSetDefaults_FeatureSetEditionDefault(const FeatureSetDefaults_FeatureSetEditionDefault& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FeatureSetDefaults_FeatureSetEditionDefault::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + edition_(arena, from.edition_) {} + +FeatureSetDefaults_FeatureSetEditionDefault::FeatureSetDefaults_FeatureSetEditionDefault( + ::google::protobuf::Arena* arena, + const FeatureSetDefaults_FeatureSetEditionDefault& from) + : ::google::protobuf::Message(arena) { FeatureSetDefaults_FeatureSetEditionDefault* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.edition_){}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.edition_enum_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.edition_.Set(from._internal_edition(), _this->GetArenaForAllocation()); - } - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.features_ = new ::google::protobuf::FeatureSet(*from._impl_.features_); - } - _this->_impl_.edition_enum_ = from._impl_.edition_enum_; + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::uint32_t cached_has_bits = _impl_._has_bits_[0]; + _impl_.features_ = (cached_has_bits & 0x00000002u) + ? CreateMaybeMessage<::google::protobuf::FeatureSet>(arena, *from._impl_.features_) + : nullptr; + _impl_.edition_enum_ = from._impl_.edition_enum_; // @@protoc_insertion_point(copy_constructor:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) } +inline PROTOBUF_NDEBUG_INLINE FeatureSetDefaults_FeatureSetEditionDefault::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + edition_(arena) {} + inline void FeatureSetDefaults_FeatureSetEditionDefault::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.edition_){}, - decltype(_impl_.features_){nullptr}, - decltype(_impl_.edition_enum_){0}, - }; - _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(&_impl_) + + offsetof(Impl_, features_), + 0, + offsetof(Impl_, edition_enum_) - + offsetof(Impl_, features_) + + sizeof(Impl_::edition_enum_)); } FeatureSetDefaults_FeatureSetEditionDefault::~FeatureSetDefaults_FeatureSetEditionDefault() { // @@protoc_insertion_point(destructor:google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault) @@ -12146,6 +11945,7 @@ inline void FeatureSetDefaults_FeatureSetEditionDefault::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); _impl_.edition_.Destroy(); if (this != internal_default_instance()) delete _impl_.features_; + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FeatureSetDefaults_FeatureSetEditionDefault::Clear() { @@ -12391,59 +12191,50 @@ FeatureSetDefaults::FeatureSetDefaults(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.FeatureSetDefaults) } -FeatureSetDefaults::FeatureSetDefaults(const FeatureSetDefaults& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE FeatureSetDefaults::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + defaults_{visibility, arena, from.defaults_}, + minimum_edition_(arena, from.minimum_edition_), + maximum_edition_(arena, from.maximum_edition_) {} + +FeatureSetDefaults::FeatureSetDefaults( + ::google::protobuf::Arena* arena, + const FeatureSetDefaults& from) + : ::google::protobuf::Message(arena) { FeatureSetDefaults* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.defaults_){from._impl_.defaults_}, - decltype(_impl_.minimum_edition_){}, - decltype(_impl_.maximum_edition_){}, - decltype(_impl_.minimum_edition_enum_){}, - decltype(_impl_.maximum_edition_enum_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.minimum_edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.minimum_edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.minimum_edition_.Set(from._internal_minimum_edition(), _this->GetArenaForAllocation()); - } - _impl_.maximum_edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.maximum_edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.maximum_edition_.Set(from._internal_maximum_edition(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.minimum_edition_enum_, &from._impl_.minimum_edition_enum_, - static_cast<::size_t>(reinterpret_cast(&_impl_.maximum_edition_enum_) - - reinterpret_cast(&_impl_.minimum_edition_enum_)) + sizeof(_impl_.maximum_edition_enum_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, minimum_edition_enum_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, minimum_edition_enum_), + offsetof(Impl_, maximum_edition_enum_) - + offsetof(Impl_, minimum_edition_enum_) + + sizeof(Impl_::maximum_edition_enum_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.FeatureSetDefaults) } +inline PROTOBUF_NDEBUG_INLINE FeatureSetDefaults::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + defaults_{visibility, arena}, + minimum_edition_(arena), + maximum_edition_(arena) {} + inline void FeatureSetDefaults::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.defaults_){arena}, - decltype(_impl_.minimum_edition_){}, - decltype(_impl_.maximum_edition_){}, - decltype(_impl_.minimum_edition_enum_){0}, - decltype(_impl_.maximum_edition_enum_){0}, - }; - _impl_.minimum_edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.minimum_edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.maximum_edition_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.maximum_edition_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, minimum_edition_enum_), + 0, + offsetof(Impl_, maximum_edition_enum_) - + offsetof(Impl_, minimum_edition_enum_) + + sizeof(Impl_::maximum_edition_enum_)); } FeatureSetDefaults::~FeatureSetDefaults() { // @@protoc_insertion_point(destructor:google.protobuf.FeatureSetDefaults) @@ -12452,9 +12243,9 @@ FeatureSetDefaults::~FeatureSetDefaults() { } inline void FeatureSetDefaults::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.defaults_.~RepeatedPtrField(); _impl_.minimum_edition_.Destroy(); _impl_.maximum_edition_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void FeatureSetDefaults::Clear() { @@ -12747,60 +12538,45 @@ SourceCodeInfo_Location::SourceCodeInfo_Location(::google::protobuf::Arena* aren SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo.Location) } -SourceCodeInfo_Location::SourceCodeInfo_Location(const SourceCodeInfo_Location& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE SourceCodeInfo_Location::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + path_{visibility, arena, from.path_}, + _path_cached_byte_size_{0}, + span_{visibility, arena, from.span_}, + _span_cached_byte_size_{0}, + leading_detached_comments_{visibility, arena, from.leading_detached_comments_}, + leading_comments_(arena, from.leading_comments_), + trailing_comments_(arena, from.trailing_comments_) {} + +SourceCodeInfo_Location::SourceCodeInfo_Location( + ::google::protobuf::Arena* arena, + const SourceCodeInfo_Location& from) + : ::google::protobuf::Message(arena) { SourceCodeInfo_Location* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.path_){from._impl_.path_}, - /* _impl_._path_cached_byte_size_ = */ {0}, - decltype(_impl_.span_){from._impl_.span_}, - /* _impl_._span_cached_byte_size_ = */ {0}, - decltype(_impl_.leading_detached_comments_){from._impl_.leading_detached_comments_}, - decltype(_impl_.leading_comments_){}, - decltype(_impl_.trailing_comments_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.leading_comments_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.leading_comments_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.leading_comments_.Set(from._internal_leading_comments(), _this->GetArenaForAllocation()); - } - _impl_.trailing_comments_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.trailing_comments_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) { - _this->_impl_.trailing_comments_.Set(from._internal_trailing_comments(), _this->GetArenaForAllocation()); - } + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo.Location) } +inline PROTOBUF_NDEBUG_INLINE SourceCodeInfo_Location::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + path_{visibility, arena}, + _path_cached_byte_size_{0}, + span_{visibility, arena}, + _span_cached_byte_size_{0}, + leading_detached_comments_{visibility, arena}, + leading_comments_(arena), + trailing_comments_(arena) {} + inline void SourceCodeInfo_Location::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.path_){arena}, - /* _impl_._path_cached_byte_size_ = */ {0}, - decltype(_impl_.span_){arena}, - /* _impl_._span_cached_byte_size_ = */ {0}, - decltype(_impl_.leading_detached_comments_){arena}, - decltype(_impl_.leading_comments_){}, - decltype(_impl_.trailing_comments_){}, - }; - _impl_.leading_comments_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.leading_comments_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.trailing_comments_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.trailing_comments_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); } SourceCodeInfo_Location::~SourceCodeInfo_Location() { // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo.Location) @@ -12809,11 +12585,9 @@ SourceCodeInfo_Location::~SourceCodeInfo_Location() { } inline void SourceCodeInfo_Location::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.path_.~RepeatedField(); - _impl_.span_.~RepeatedField(); - _internal_mutable_leading_detached_comments()->~RepeatedPtrField(); _impl_.leading_comments_.Destroy(); _impl_.trailing_comments_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void SourceCodeInfo_Location::Clear() { @@ -13099,24 +12873,32 @@ SourceCodeInfo::SourceCodeInfo(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.SourceCodeInfo) } -SourceCodeInfo::SourceCodeInfo(const SourceCodeInfo& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE SourceCodeInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : location_{visibility, arena, from.location_}, + _cached_size_{0} {} + +SourceCodeInfo::SourceCodeInfo( + ::google::protobuf::Arena* arena, + const SourceCodeInfo& from) + : ::google::protobuf::Message(arena) { SourceCodeInfo* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.location_){from._impl_.location_}, - /*decltype(_impl_._cached_size_)*/ {}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); // @@protoc_insertion_point(copy_constructor:google.protobuf.SourceCodeInfo) } +inline PROTOBUF_NDEBUG_INLINE SourceCodeInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : location_{visibility, arena}, + _cached_size_{0} {} + inline void SourceCodeInfo::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.location_){arena}, - /*decltype(_impl_._cached_size_)*/ {}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); } SourceCodeInfo::~SourceCodeInfo() { // @@protoc_insertion_point(destructor:google.protobuf.SourceCodeInfo) @@ -13125,7 +12907,7 @@ SourceCodeInfo::~SourceCodeInfo() { } inline void SourceCodeInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.location_.~RepeatedPtrField(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void SourceCodeInfo::Clear() { @@ -13287,50 +13069,50 @@ GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(::google::protobuf::A SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo.Annotation) } -GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE GeneratedCodeInfo_Annotation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + path_{visibility, arena, from.path_}, + _path_cached_byte_size_{0}, + source_file_(arena, from.source_file_) {} + +GeneratedCodeInfo_Annotation::GeneratedCodeInfo_Annotation( + ::google::protobuf::Arena* arena, + const GeneratedCodeInfo_Annotation& from) + : ::google::protobuf::Message(arena) { GeneratedCodeInfo_Annotation* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){from._impl_._has_bits_}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.path_){from._impl_.path_}, - /* _impl_._path_cached_byte_size_ = */ {0}, - decltype(_impl_.source_file_){}, - decltype(_impl_.begin_){}, - decltype(_impl_.end_){}, - decltype(_impl_.semantic_){}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); - _impl_.source_file_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_file_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) { - _this->_impl_.source_file_.Set(from._internal_source_file(), _this->GetArenaForAllocation()); - } - ::memcpy(&_impl_.begin_, &from._impl_.begin_, - static_cast<::size_t>(reinterpret_cast(&_impl_.semantic_) - - reinterpret_cast(&_impl_.begin_)) + sizeof(_impl_.semantic_)); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); + ::memcpy(reinterpret_cast(&_impl_) + + offsetof(Impl_, begin_), + reinterpret_cast(&from._impl_) + + offsetof(Impl_, begin_), + offsetof(Impl_, semantic_) - + offsetof(Impl_, begin_) + + sizeof(Impl_::semantic_)); // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo.Annotation) } +inline PROTOBUF_NDEBUG_INLINE GeneratedCodeInfo_Annotation::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : _cached_size_{0}, + path_{visibility, arena}, + _path_cached_byte_size_{0}, + source_file_(arena) {} + inline void GeneratedCodeInfo_Annotation::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_._has_bits_){}, - /*decltype(_impl_._cached_size_)*/ {}, - decltype(_impl_.path_){arena}, - /* _impl_._path_cached_byte_size_ = */ {0}, - decltype(_impl_.source_file_){}, - decltype(_impl_.begin_){0}, - decltype(_impl_.end_){0}, - decltype(_impl_.semantic_){0}, - }; - _impl_.source_file_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.source_file_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + new (&_impl_) Impl_(internal_visibility(), arena); + ::memset(reinterpret_cast(&_impl_) + + offsetof(Impl_, begin_), + 0, + offsetof(Impl_, semantic_) - + offsetof(Impl_, begin_) + + sizeof(Impl_::semantic_)); } GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo.Annotation) @@ -13339,8 +13121,8 @@ GeneratedCodeInfo_Annotation::~GeneratedCodeInfo_Annotation() { } inline void GeneratedCodeInfo_Annotation::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.path_.~RepeatedField(); _impl_.source_file_.Destroy(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void GeneratedCodeInfo_Annotation::Clear() { @@ -13618,24 +13400,32 @@ GeneratedCodeInfo::GeneratedCodeInfo(::google::protobuf::Arena* arena) SharedCtor(arena); // @@protoc_insertion_point(arena_constructor:google.protobuf.GeneratedCodeInfo) } -GeneratedCodeInfo::GeneratedCodeInfo(const GeneratedCodeInfo& from) : ::google::protobuf::Message() { +inline PROTOBUF_NDEBUG_INLINE GeneratedCodeInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena, + const Impl_& from) + : annotation_{visibility, arena, from.annotation_}, + _cached_size_{0} {} + +GeneratedCodeInfo::GeneratedCodeInfo( + ::google::protobuf::Arena* arena, + const GeneratedCodeInfo& from) + : ::google::protobuf::Message(arena) { GeneratedCodeInfo* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.annotation_){from._impl_.annotation_}, - /*decltype(_impl_._cached_size_)*/ {}, - }; _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); + new (&_impl_) Impl_(internal_visibility(), arena, from._impl_); // @@protoc_insertion_point(copy_constructor:google.protobuf.GeneratedCodeInfo) } +inline PROTOBUF_NDEBUG_INLINE GeneratedCodeInfo::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena) + : annotation_{visibility, arena}, + _cached_size_{0} {} + inline void GeneratedCodeInfo::SharedCtor(::_pb::Arena* arena) { - (void)arena; - new (&_impl_) Impl_{ - decltype(_impl_.annotation_){arena}, - /*decltype(_impl_._cached_size_)*/ {}, - }; + new (&_impl_) Impl_(internal_visibility(), arena); } GeneratedCodeInfo::~GeneratedCodeInfo() { // @@protoc_insertion_point(destructor:google.protobuf.GeneratedCodeInfo) @@ -13644,7 +13434,7 @@ GeneratedCodeInfo::~GeneratedCodeInfo() { } inline void GeneratedCodeInfo::SharedDtor() { ABSL_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.annotation_.~RepeatedPtrField(); + _impl_.~Impl_(); } PROTOBUF_NOINLINE void GeneratedCodeInfo::Clear() { diff --git a/src/google/protobuf/descriptor.pb.h b/src/google/protobuf/descriptor.pb.h index 33c8b39f3b..ac017d0fbd 100644 --- a/src/google/protobuf/descriptor.pb.h +++ b/src/google/protobuf/descriptor.pb.h @@ -676,16 +676,14 @@ class PROTOBUF_EXPORT UninterpretedOption_NamePart final : template explicit PROTOBUF_CONSTEXPR UninterpretedOption_NamePart(::google::protobuf::internal::ConstantInitialized); - UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from); + UninterpretedOption_NamePart(::google::protobuf::Arena* arena, const UninterpretedOption_NamePart& from); + inline UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from) + : UninterpretedOption_NamePart(nullptr, from) {} UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept : UninterpretedOption_NamePart() { *this = ::std::move(from); } - inline UninterpretedOption_NamePart(::google::protobuf::Arena* arena, const UninterpretedOption_NamePart& from) - : UninterpretedOption_NamePart(arena) { - MergeFrom(from); - } inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) { CopyFrom(from); return *this; @@ -842,10 +840,19 @@ class PROTOBUF_EXPORT UninterpretedOption_NamePart final : 1, 2, 0, 62, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_part_; @@ -864,16 +871,14 @@ class PROTOBUF_EXPORT SourceCodeInfo_Location final : template explicit PROTOBUF_CONSTEXPR SourceCodeInfo_Location(::google::protobuf::internal::ConstantInitialized); - SourceCodeInfo_Location(const SourceCodeInfo_Location& from); + SourceCodeInfo_Location(::google::protobuf::Arena* arena, const SourceCodeInfo_Location& from); + inline SourceCodeInfo_Location(const SourceCodeInfo_Location& from) + : SourceCodeInfo_Location(nullptr, from) {} SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept : SourceCodeInfo_Location() { *this = ::std::move(from); } - inline SourceCodeInfo_Location(::google::protobuf::Arena* arena, const SourceCodeInfo_Location& from) - : SourceCodeInfo_Location(arena) { - MergeFrom(from); - } inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) { CopyFrom(from); return *this; @@ -1103,10 +1108,19 @@ class PROTOBUF_EXPORT SourceCodeInfo_Location final : 3, 5, 0, 106, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::int32_t> path_; @@ -1130,16 +1144,14 @@ class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final : template explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo_Annotation(::google::protobuf::internal::ConstantInitialized); - GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from); + GeneratedCodeInfo_Annotation(::google::protobuf::Arena* arena, const GeneratedCodeInfo_Annotation& from); + inline GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from) + : GeneratedCodeInfo_Annotation(nullptr, from) {} GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept : GeneratedCodeInfo_Annotation() { *this = ::std::move(from); } - inline GeneratedCodeInfo_Annotation(::google::protobuf::Arena* arena, const GeneratedCodeInfo_Annotation& from) - : GeneratedCodeInfo_Annotation(arena) { - MergeFrom(from); - } inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) { CopyFrom(from); return *this; @@ -1360,10 +1372,19 @@ class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final : 3, 5, 1, 64, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedField<::int32_t> path_; @@ -1386,16 +1407,14 @@ class PROTOBUF_EXPORT FieldOptions_EditionDefault final : template explicit PROTOBUF_CONSTEXPR FieldOptions_EditionDefault(::google::protobuf::internal::ConstantInitialized); - FieldOptions_EditionDefault(const FieldOptions_EditionDefault& from); + FieldOptions_EditionDefault(::google::protobuf::Arena* arena, const FieldOptions_EditionDefault& from); + inline FieldOptions_EditionDefault(const FieldOptions_EditionDefault& from) + : FieldOptions_EditionDefault(nullptr, from) {} FieldOptions_EditionDefault(FieldOptions_EditionDefault&& from) noexcept : FieldOptions_EditionDefault() { *this = ::std::move(from); } - inline FieldOptions_EditionDefault(::google::protobuf::Arena* arena, const FieldOptions_EditionDefault& from) - : FieldOptions_EditionDefault(arena) { - MergeFrom(from); - } inline FieldOptions_EditionDefault& operator=(const FieldOptions_EditionDefault& from) { CopyFrom(from); return *this; @@ -1570,10 +1589,19 @@ class PROTOBUF_EXPORT FieldOptions_EditionDefault final : 2, 3, 1, 64, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr edition_; @@ -1593,16 +1621,14 @@ class PROTOBUF_EXPORT FeatureSet final : template explicit PROTOBUF_CONSTEXPR FeatureSet(::google::protobuf::internal::ConstantInitialized); - FeatureSet(const FeatureSet& from); + FeatureSet(::google::protobuf::Arena* arena, const FeatureSet& from); + inline FeatureSet(const FeatureSet& from) + : FeatureSet(nullptr, from) {} FeatureSet(FeatureSet&& from) noexcept : FeatureSet() { *this = ::std::move(from); } - inline FeatureSet(::google::protobuf::Arena* arena, const FeatureSet& from) - : FeatureSet(arena) { - MergeFrom(from); - } inline FeatureSet& operator=(const FeatureSet& from) { CopyFrom(from); return *this; @@ -2046,10 +2072,19 @@ class PROTOBUF_EXPORT FeatureSet final : 3, 5, 5, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -2073,16 +2108,14 @@ class PROTOBUF_EXPORT ExtensionRangeOptions_Declaration final : template explicit PROTOBUF_CONSTEXPR ExtensionRangeOptions_Declaration(::google::protobuf::internal::ConstantInitialized); - ExtensionRangeOptions_Declaration(const ExtensionRangeOptions_Declaration& from); + ExtensionRangeOptions_Declaration(::google::protobuf::Arena* arena, const ExtensionRangeOptions_Declaration& from); + inline ExtensionRangeOptions_Declaration(const ExtensionRangeOptions_Declaration& from) + : ExtensionRangeOptions_Declaration(nullptr, from) {} ExtensionRangeOptions_Declaration(ExtensionRangeOptions_Declaration&& from) noexcept : ExtensionRangeOptions_Declaration() { *this = ::std::move(from); } - inline ExtensionRangeOptions_Declaration(::google::protobuf::Arena* arena, const ExtensionRangeOptions_Declaration& from) - : ExtensionRangeOptions_Declaration(arena) { - MergeFrom(from); - } inline ExtensionRangeOptions_Declaration& operator=(const ExtensionRangeOptions_Declaration& from) { CopyFrom(from); return *this; @@ -2281,10 +2314,19 @@ class PROTOBUF_EXPORT ExtensionRangeOptions_Declaration final : 3, 5, 0, 71, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr full_name_; @@ -2306,16 +2348,14 @@ class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final : template explicit PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRange(::google::protobuf::internal::ConstantInitialized); - EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from); + EnumDescriptorProto_EnumReservedRange(::google::protobuf::Arena* arena, const EnumDescriptorProto_EnumReservedRange& from); + inline EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from) + : EnumDescriptorProto_EnumReservedRange(nullptr, from) {} EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept : EnumDescriptorProto_EnumReservedRange() { *this = ::std::move(from); } - inline EnumDescriptorProto_EnumReservedRange(::google::protobuf::Arena* arena, const EnumDescriptorProto_EnumReservedRange& from) - : EnumDescriptorProto_EnumReservedRange(arena) { - MergeFrom(from); - } inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) { CopyFrom(from); return *this; @@ -2466,10 +2506,19 @@ class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final : 1, 2, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::int32_t start_; @@ -2488,16 +2537,14 @@ class PROTOBUF_EXPORT DescriptorProto_ReservedRange final : template explicit PROTOBUF_CONSTEXPR DescriptorProto_ReservedRange(::google::protobuf::internal::ConstantInitialized); - DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from); + DescriptorProto_ReservedRange(::google::protobuf::Arena* arena, const DescriptorProto_ReservedRange& from); + inline DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from) + : DescriptorProto_ReservedRange(nullptr, from) {} DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept : DescriptorProto_ReservedRange() { *this = ::std::move(from); } - inline DescriptorProto_ReservedRange(::google::protobuf::Arena* arena, const DescriptorProto_ReservedRange& from) - : DescriptorProto_ReservedRange(arena) { - MergeFrom(from); - } inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) { CopyFrom(from); return *this; @@ -2648,10 +2695,19 @@ class PROTOBUF_EXPORT DescriptorProto_ReservedRange final : 1, 2, 0, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::int32_t start_; @@ -2670,16 +2726,14 @@ class PROTOBUF_EXPORT UninterpretedOption final : template explicit PROTOBUF_CONSTEXPR UninterpretedOption(::google::protobuf::internal::ConstantInitialized); - UninterpretedOption(const UninterpretedOption& from); + UninterpretedOption(::google::protobuf::Arena* arena, const UninterpretedOption& from); + inline UninterpretedOption(const UninterpretedOption& from) + : UninterpretedOption(nullptr, from) {} UninterpretedOption(UninterpretedOption&& from) noexcept : UninterpretedOption() { *this = ::std::move(from); } - inline UninterpretedOption(::google::protobuf::Arena* arena, const UninterpretedOption& from) - : UninterpretedOption(arena) { - MergeFrom(from); - } inline UninterpretedOption& operator=(const UninterpretedOption& from) { CopyFrom(from); return *this; @@ -2917,10 +2971,19 @@ class PROTOBUF_EXPORT UninterpretedOption final : 3, 7, 1, 75, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_; @@ -2944,16 +3007,14 @@ class PROTOBUF_EXPORT SourceCodeInfo final : template explicit PROTOBUF_CONSTEXPR SourceCodeInfo(::google::protobuf::internal::ConstantInitialized); - SourceCodeInfo(const SourceCodeInfo& from); + SourceCodeInfo(::google::protobuf::Arena* arena, const SourceCodeInfo& from); + inline SourceCodeInfo(const SourceCodeInfo& from) + : SourceCodeInfo(nullptr, from) {} SourceCodeInfo(SourceCodeInfo&& from) noexcept : SourceCodeInfo() { *this = ::std::move(from); } - inline SourceCodeInfo(::google::protobuf::Arena* arena, const SourceCodeInfo& from) - : SourceCodeInfo(arena) { - MergeFrom(from); - } inline SourceCodeInfo& operator=(const SourceCodeInfo& from) { CopyFrom(from); return *this; @@ -3101,10 +3162,19 @@ class PROTOBUF_EXPORT SourceCodeInfo final : 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -3121,16 +3191,14 @@ class PROTOBUF_EXPORT GeneratedCodeInfo final : template explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo(::google::protobuf::internal::ConstantInitialized); - GeneratedCodeInfo(const GeneratedCodeInfo& from); + GeneratedCodeInfo(::google::protobuf::Arena* arena, const GeneratedCodeInfo& from); + inline GeneratedCodeInfo(const GeneratedCodeInfo& from) + : GeneratedCodeInfo(nullptr, from) {} GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept : GeneratedCodeInfo() { *this = ::std::move(from); } - inline GeneratedCodeInfo(::google::protobuf::Arena* arena, const GeneratedCodeInfo& from) - : GeneratedCodeInfo(arena) { - MergeFrom(from); - } inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) { CopyFrom(from); return *this; @@ -3278,10 +3346,19 @@ class PROTOBUF_EXPORT GeneratedCodeInfo final : 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation > annotation_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER @@ -3298,16 +3375,14 @@ class PROTOBUF_EXPORT FeatureSetDefaults_FeatureSetEditionDefault final : template explicit PROTOBUF_CONSTEXPR FeatureSetDefaults_FeatureSetEditionDefault(::google::protobuf::internal::ConstantInitialized); - FeatureSetDefaults_FeatureSetEditionDefault(const FeatureSetDefaults_FeatureSetEditionDefault& from); + FeatureSetDefaults_FeatureSetEditionDefault(::google::protobuf::Arena* arena, const FeatureSetDefaults_FeatureSetEditionDefault& from); + inline FeatureSetDefaults_FeatureSetEditionDefault(const FeatureSetDefaults_FeatureSetEditionDefault& from) + : FeatureSetDefaults_FeatureSetEditionDefault(nullptr, from) {} FeatureSetDefaults_FeatureSetEditionDefault(FeatureSetDefaults_FeatureSetEditionDefault&& from) noexcept : FeatureSetDefaults_FeatureSetEditionDefault() { *this = ::std::move(from); } - inline FeatureSetDefaults_FeatureSetEditionDefault(::google::protobuf::Arena* arena, const FeatureSetDefaults_FeatureSetEditionDefault& from) - : FeatureSetDefaults_FeatureSetEditionDefault(arena) { - MergeFrom(from); - } inline FeatureSetDefaults_FeatureSetEditionDefault& operator=(const FeatureSetDefaults_FeatureSetEditionDefault& from) { CopyFrom(from); return *this; @@ -3480,10 +3555,19 @@ class PROTOBUF_EXPORT FeatureSetDefaults_FeatureSetEditionDefault final : 2, 3, 2, 75, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr edition_; @@ -3503,16 +3587,14 @@ class PROTOBUF_EXPORT ServiceOptions final : template explicit PROTOBUF_CONSTEXPR ServiceOptions(::google::protobuf::internal::ConstantInitialized); - ServiceOptions(const ServiceOptions& from); + ServiceOptions(::google::protobuf::Arena* arena, const ServiceOptions& from); + inline ServiceOptions(const ServiceOptions& from) + : ServiceOptions(nullptr, from) {} ServiceOptions(ServiceOptions&& from) noexcept : ServiceOptions() { *this = ::std::move(from); } - inline ServiceOptions(::google::protobuf::Arena* arena, const ServiceOptions& from) - : ServiceOptions(arena) { - MergeFrom(from); - } inline ServiceOptions& operator=(const ServiceOptions& from) { CopyFrom(from); return *this; @@ -3837,10 +3919,19 @@ class PROTOBUF_EXPORT ServiceOptions final : 2, 3, 2, 0, 12> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -3862,16 +3953,14 @@ class PROTOBUF_EXPORT OneofOptions final : template explicit PROTOBUF_CONSTEXPR OneofOptions(::google::protobuf::internal::ConstantInitialized); - OneofOptions(const OneofOptions& from); + OneofOptions(::google::protobuf::Arena* arena, const OneofOptions& from); + inline OneofOptions(const OneofOptions& from) + : OneofOptions(nullptr, from) {} OneofOptions(OneofOptions&& from) noexcept : OneofOptions() { *this = ::std::move(from); } - inline OneofOptions(::google::protobuf::Arena* arena, const OneofOptions& from) - : OneofOptions(arena) { - MergeFrom(from); - } inline OneofOptions& operator=(const OneofOptions& from) { CopyFrom(from); return *this; @@ -4184,10 +4273,19 @@ class PROTOBUF_EXPORT OneofOptions final : 2, 2, 2, 0, 7> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -4208,16 +4306,14 @@ class PROTOBUF_EXPORT MethodOptions final : template explicit PROTOBUF_CONSTEXPR MethodOptions(::google::protobuf::internal::ConstantInitialized); - MethodOptions(const MethodOptions& from); + MethodOptions(::google::protobuf::Arena* arena, const MethodOptions& from); + inline MethodOptions(const MethodOptions& from) + : MethodOptions(nullptr, from) {} MethodOptions(MethodOptions&& from) noexcept : MethodOptions() { *this = ::std::move(from); } - inline MethodOptions(::google::protobuf::Arena* arena, const MethodOptions& from) - : MethodOptions(arena) { - MergeFrom(from); - } inline MethodOptions& operator=(const MethodOptions& from) { CopyFrom(from); return *this; @@ -4575,10 +4671,19 @@ class PROTOBUF_EXPORT MethodOptions final : 3, 4, 3, 0, 12> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -4601,16 +4706,14 @@ class PROTOBUF_EXPORT MessageOptions final : template explicit PROTOBUF_CONSTEXPR MessageOptions(::google::protobuf::internal::ConstantInitialized); - MessageOptions(const MessageOptions& from); + MessageOptions(::google::protobuf::Arena* arena, const MessageOptions& from); + inline MessageOptions(const MessageOptions& from) + : MessageOptions(nullptr, from) {} MessageOptions(MessageOptions&& from) noexcept : MessageOptions() { *this = ::std::move(from); } - inline MessageOptions(::google::protobuf::Arena* arena, const MessageOptions& from) - : MessageOptions(arena) { - MergeFrom(from); - } inline MessageOptions& operator=(const MessageOptions& from) { CopyFrom(from); return *this; @@ -4983,10 +5086,19 @@ class PROTOBUF_EXPORT MessageOptions final : 3, 7, 2, 0, 7> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5012,16 +5124,14 @@ class PROTOBUF_EXPORT FileOptions final : template explicit PROTOBUF_CONSTEXPR FileOptions(::google::protobuf::internal::ConstantInitialized); - FileOptions(const FileOptions& from); + FileOptions(::google::protobuf::Arena* arena, const FileOptions& from); + inline FileOptions(const FileOptions& from) + : FileOptions(nullptr, from) {} FileOptions(FileOptions&& from) noexcept : FileOptions() { *this = ::std::move(from); } - inline FileOptions(::google::protobuf::Arena* arena, const FileOptions& from) - : FileOptions(arena) { - MergeFrom(from); - } inline FileOptions& operator=(const FileOptions& from) { CopyFrom(from); return *this; @@ -5655,10 +5765,19 @@ class PROTOBUF_EXPORT FileOptions final : 5, 22, 3, 202, 12> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -5699,16 +5818,14 @@ class PROTOBUF_EXPORT FieldOptions final : template explicit PROTOBUF_CONSTEXPR FieldOptions(::google::protobuf::internal::ConstantInitialized); - FieldOptions(const FieldOptions& from); + FieldOptions(::google::protobuf::Arena* arena, const FieldOptions& from); + inline FieldOptions(const FieldOptions& from) + : FieldOptions(nullptr, from) {} FieldOptions(FieldOptions&& from) noexcept : FieldOptions() { *this = ::std::move(from); } - inline FieldOptions(::google::protobuf::Arena* arena, const FieldOptions& from) - : FieldOptions(arena) { - MergeFrom(from); - } inline FieldOptions& operator=(const FieldOptions& from) { CopyFrom(from); return *this; @@ -6261,10 +6378,19 @@ class PROTOBUF_EXPORT FieldOptions final : 4, 13, 7, 0, 7> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6296,16 +6422,14 @@ class PROTOBUF_EXPORT FeatureSetDefaults final : template explicit PROTOBUF_CONSTEXPR FeatureSetDefaults(::google::protobuf::internal::ConstantInitialized); - FeatureSetDefaults(const FeatureSetDefaults& from); + FeatureSetDefaults(::google::protobuf::Arena* arena, const FeatureSetDefaults& from); + inline FeatureSetDefaults(const FeatureSetDefaults& from) + : FeatureSetDefaults(nullptr, from) {} FeatureSetDefaults(FeatureSetDefaults&& from) noexcept : FeatureSetDefaults() { *this = ::std::move(from); } - inline FeatureSetDefaults(::google::protobuf::Arena* arena, const FeatureSetDefaults& from) - : FeatureSetDefaults(arena) { - MergeFrom(from); - } inline FeatureSetDefaults& operator=(const FeatureSetDefaults& from) { CopyFrom(from); return *this; @@ -6513,10 +6637,19 @@ class PROTOBUF_EXPORT FeatureSetDefaults final : 3, 5, 3, 73, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::FeatureSetDefaults_FeatureSetEditionDefault > defaults_; @@ -6538,16 +6671,14 @@ class PROTOBUF_EXPORT ExtensionRangeOptions final : template explicit PROTOBUF_CONSTEXPR ExtensionRangeOptions(::google::protobuf::internal::ConstantInitialized); - ExtensionRangeOptions(const ExtensionRangeOptions& from); + ExtensionRangeOptions(::google::protobuf::Arena* arena, const ExtensionRangeOptions& from); + inline ExtensionRangeOptions(const ExtensionRangeOptions& from) + : ExtensionRangeOptions(nullptr, from) {} ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept : ExtensionRangeOptions() { *this = ::std::move(from); } - inline ExtensionRangeOptions(::google::protobuf::Arena* arena, const ExtensionRangeOptions& from) - : ExtensionRangeOptions(arena) { - MergeFrom(from); - } inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) { CopyFrom(from); return *this; @@ -6913,10 +7044,19 @@ class PROTOBUF_EXPORT ExtensionRangeOptions final : 3, 4, 4, 0, 12> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -6939,16 +7079,14 @@ class PROTOBUF_EXPORT EnumValueOptions final : template explicit PROTOBUF_CONSTEXPR EnumValueOptions(::google::protobuf::internal::ConstantInitialized); - EnumValueOptions(const EnumValueOptions& from); + EnumValueOptions(::google::protobuf::Arena* arena, const EnumValueOptions& from); + inline EnumValueOptions(const EnumValueOptions& from) + : EnumValueOptions(nullptr, from) {} EnumValueOptions(EnumValueOptions&& from) noexcept : EnumValueOptions() { *this = ::std::move(from); } - inline EnumValueOptions(::google::protobuf::Arena* arena, const EnumValueOptions& from) - : EnumValueOptions(arena) { - MergeFrom(from); - } inline EnumValueOptions& operator=(const EnumValueOptions& from) { CopyFrom(from); return *this; @@ -7285,10 +7423,19 @@ class PROTOBUF_EXPORT EnumValueOptions final : 3, 4, 2, 0, 7> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7311,16 +7458,14 @@ class PROTOBUF_EXPORT EnumOptions final : template explicit PROTOBUF_CONSTEXPR EnumOptions(::google::protobuf::internal::ConstantInitialized); - EnumOptions(const EnumOptions& from); + EnumOptions(::google::protobuf::Arena* arena, const EnumOptions& from); + inline EnumOptions(const EnumOptions& from) + : EnumOptions(nullptr, from) {} EnumOptions(EnumOptions&& from) noexcept : EnumOptions() { *this = ::std::move(from); } - inline EnumOptions(::google::protobuf::Arena* arena, const EnumOptions& from) - : EnumOptions(arena) { - MergeFrom(from); - } inline EnumOptions& operator=(const EnumOptions& from) { CopyFrom(from); return *this; @@ -7669,10 +7814,19 @@ class PROTOBUF_EXPORT EnumOptions final : 3, 5, 2, 0, 7> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::ExtensionSet _extensions_; ::google::protobuf::internal::HasBits<1> _has_bits_; @@ -7696,16 +7850,14 @@ class PROTOBUF_EXPORT OneofDescriptorProto final : template explicit PROTOBUF_CONSTEXPR OneofDescriptorProto(::google::protobuf::internal::ConstantInitialized); - OneofDescriptorProto(const OneofDescriptorProto& from); + OneofDescriptorProto(::google::protobuf::Arena* arena, const OneofDescriptorProto& from); + inline OneofDescriptorProto(const OneofDescriptorProto& from) + : OneofDescriptorProto(nullptr, from) {} OneofDescriptorProto(OneofDescriptorProto&& from) noexcept : OneofDescriptorProto() { *this = ::std::move(from); } - inline OneofDescriptorProto(::google::protobuf::Arena* arena, const OneofDescriptorProto& from) - : OneofDescriptorProto(arena) { - MergeFrom(from); - } inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) { CopyFrom(from); return *this; @@ -7866,10 +8018,19 @@ class PROTOBUF_EXPORT OneofDescriptorProto final : 1, 2, 1, 49, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -7888,16 +8049,14 @@ class PROTOBUF_EXPORT MethodDescriptorProto final : template explicit PROTOBUF_CONSTEXPR MethodDescriptorProto(::google::protobuf::internal::ConstantInitialized); - MethodDescriptorProto(const MethodDescriptorProto& from); + MethodDescriptorProto(::google::protobuf::Arena* arena, const MethodDescriptorProto& from); + inline MethodDescriptorProto(const MethodDescriptorProto& from) + : MethodDescriptorProto(nullptr, from) {} MethodDescriptorProto(MethodDescriptorProto&& from) noexcept : MethodDescriptorProto() { *this = ::std::move(from); } - inline MethodDescriptorProto(::google::protobuf::Arena* arena, const MethodDescriptorProto& from) - : MethodDescriptorProto(arena) { - MergeFrom(from); - } inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) { CopyFrom(from); return *this; @@ -8118,10 +8277,19 @@ class PROTOBUF_EXPORT MethodDescriptorProto final : 3, 6, 1, 71, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -8144,16 +8312,14 @@ class PROTOBUF_EXPORT FieldDescriptorProto final : template explicit PROTOBUF_CONSTEXPR FieldDescriptorProto(::google::protobuf::internal::ConstantInitialized); - FieldDescriptorProto(const FieldDescriptorProto& from); + FieldDescriptorProto(::google::protobuf::Arena* arena, const FieldDescriptorProto& from); + inline FieldDescriptorProto(const FieldDescriptorProto& from) + : FieldDescriptorProto(nullptr, from) {} FieldDescriptorProto(FieldDescriptorProto&& from) noexcept : FieldDescriptorProto() { *this = ::std::move(from); } - inline FieldDescriptorProto(::google::protobuf::Arena* arena, const FieldDescriptorProto& from) - : FieldDescriptorProto(arena) { - MergeFrom(from); - } inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) { CopyFrom(from); return *this; @@ -8503,10 +8669,19 @@ class PROTOBUF_EXPORT FieldDescriptorProto final : 4, 11, 3, 96, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -8534,16 +8709,14 @@ class PROTOBUF_EXPORT EnumValueDescriptorProto final : template explicit PROTOBUF_CONSTEXPR EnumValueDescriptorProto(::google::protobuf::internal::ConstantInitialized); - EnumValueDescriptorProto(const EnumValueDescriptorProto& from); + EnumValueDescriptorProto(::google::protobuf::Arena* arena, const EnumValueDescriptorProto& from); + inline EnumValueDescriptorProto(const EnumValueDescriptorProto& from) + : EnumValueDescriptorProto(nullptr, from) {} EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept : EnumValueDescriptorProto() { *this = ::std::move(from); } - inline EnumValueDescriptorProto(::google::protobuf::Arena* arena, const EnumValueDescriptorProto& from) - : EnumValueDescriptorProto(arena) { - MergeFrom(from); - } inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) { CopyFrom(from); return *this; @@ -8716,10 +8889,19 @@ class PROTOBUF_EXPORT EnumValueDescriptorProto final : 2, 3, 1, 53, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; @@ -8739,16 +8921,14 @@ class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final : template explicit PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRange(::google::protobuf::internal::ConstantInitialized); - DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from); + DescriptorProto_ExtensionRange(::google::protobuf::Arena* arena, const DescriptorProto_ExtensionRange& from); + inline DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from) + : DescriptorProto_ExtensionRange(nullptr, from) {} DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept : DescriptorProto_ExtensionRange() { *this = ::std::move(from); } - inline DescriptorProto_ExtensionRange(::google::protobuf::Arena* arena, const DescriptorProto_ExtensionRange& from) - : DescriptorProto_ExtensionRange(arena) { - MergeFrom(from); - } inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) { CopyFrom(from); return *this; @@ -8915,10 +9095,19 @@ class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final : 2, 3, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::ExtensionRangeOptions* options_; @@ -8938,16 +9127,14 @@ class PROTOBUF_EXPORT ServiceDescriptorProto final : template explicit PROTOBUF_CONSTEXPR ServiceDescriptorProto(::google::protobuf::internal::ConstantInitialized); - ServiceDescriptorProto(const ServiceDescriptorProto& from); + ServiceDescriptorProto(::google::protobuf::Arena* arena, const ServiceDescriptorProto& from); + inline ServiceDescriptorProto(const ServiceDescriptorProto& from) + : ServiceDescriptorProto(nullptr, from) {} ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept : ServiceDescriptorProto() { *this = ::std::move(from); } - inline ServiceDescriptorProto(::google::protobuf::Arena* arena, const ServiceDescriptorProto& from) - : ServiceDescriptorProto(arena) { - MergeFrom(from); - } inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) { CopyFrom(from); return *this; @@ -9127,10 +9314,19 @@ class PROTOBUF_EXPORT ServiceDescriptorProto final : 2, 3, 2, 51, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_; @@ -9150,16 +9346,14 @@ class PROTOBUF_EXPORT EnumDescriptorProto final : template explicit PROTOBUF_CONSTEXPR EnumDescriptorProto(::google::protobuf::internal::ConstantInitialized); - EnumDescriptorProto(const EnumDescriptorProto& from); + EnumDescriptorProto(::google::protobuf::Arena* arena, const EnumDescriptorProto& from); + inline EnumDescriptorProto(const EnumDescriptorProto& from) + : EnumDescriptorProto(nullptr, from) {} EnumDescriptorProto(EnumDescriptorProto&& from) noexcept : EnumDescriptorProto() { *this = ::std::move(from); } - inline EnumDescriptorProto(::google::protobuf::Arena* arena, const EnumDescriptorProto& from) - : EnumDescriptorProto(arena) { - MergeFrom(from); - } inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) { CopyFrom(from); return *this; @@ -9389,10 +9583,19 @@ class PROTOBUF_EXPORT EnumDescriptorProto final : 3, 5, 3, 61, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_; @@ -9414,16 +9617,14 @@ class PROTOBUF_EXPORT DescriptorProto final : template explicit PROTOBUF_CONSTEXPR DescriptorProto(::google::protobuf::internal::ConstantInitialized); - DescriptorProto(const DescriptorProto& from); + DescriptorProto(::google::protobuf::Arena* arena, const DescriptorProto& from); + inline DescriptorProto(const DescriptorProto& from) + : DescriptorProto(nullptr, from) {} DescriptorProto(DescriptorProto&& from) noexcept : DescriptorProto() { *this = ::std::move(from); } - inline DescriptorProto(::google::protobuf::Arena* arena, const DescriptorProto& from) - : DescriptorProto(arena) { - MergeFrom(from); - } inline DescriptorProto& operator=(const DescriptorProto& from) { CopyFrom(from); return *this; @@ -9749,10 +9950,19 @@ class PROTOBUF_EXPORT DescriptorProto final : 4, 10, 8, 65, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_; @@ -9779,16 +9989,14 @@ class PROTOBUF_EXPORT FileDescriptorProto final : template explicit PROTOBUF_CONSTEXPR FileDescriptorProto(::google::protobuf::internal::ConstantInitialized); - FileDescriptorProto(const FileDescriptorProto& from); + FileDescriptorProto(::google::protobuf::Arena* arena, const FileDescriptorProto& from); + inline FileDescriptorProto(const FileDescriptorProto& from) + : FileDescriptorProto(nullptr, from) {} FileDescriptorProto(FileDescriptorProto&& from) noexcept : FileDescriptorProto() { *this = ::std::move(from); } - inline FileDescriptorProto(::google::protobuf::Arena* arena, const FileDescriptorProto& from) - : FileDescriptorProto(arena) { - MergeFrom(from); - } inline FileDescriptorProto& operator=(const FileDescriptorProto& from) { CopyFrom(from); return *this; @@ -10162,10 +10370,19 @@ class PROTOBUF_EXPORT FileDescriptorProto final : 4, 13, 6, 86, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField dependency_; @@ -10195,16 +10412,14 @@ class PROTOBUF_EXPORT FileDescriptorSet final : template explicit PROTOBUF_CONSTEXPR FileDescriptorSet(::google::protobuf::internal::ConstantInitialized); - FileDescriptorSet(const FileDescriptorSet& from); + FileDescriptorSet(::google::protobuf::Arena* arena, const FileDescriptorSet& from); + inline FileDescriptorSet(const FileDescriptorSet& from) + : FileDescriptorSet(nullptr, from) {} FileDescriptorSet(FileDescriptorSet&& from) noexcept : FileDescriptorSet() { *this = ::std::move(from); } - inline FileDescriptorSet(::google::protobuf::Arena* arena, const FileDescriptorSet& from) - : FileDescriptorSet(arena) { - MergeFrom(from); - } inline FileDescriptorSet& operator=(const FileDescriptorSet& from) { CopyFrom(from); return *this; @@ -10350,10 +10565,19 @@ class PROTOBUF_EXPORT FileDescriptorSet final : 0, 1, 1, 0, 2> _table_; + friend class ::google::protobuf::MessageLite; + friend class ::google::protobuf::Arena; template friend class ::google::protobuf::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { + struct PROTOBUF_EXPORT Impl_ { + + inline explicit constexpr Impl_( + ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena); + inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* arena, const Impl_& from); ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_; mutable ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc index 42fd229960..783d3b222a 100644 --- a/src/google/protobuf/port_def.inc +++ b/src/google/protobuf/port_def.inc @@ -608,6 +608,14 @@ static_assert(PROTOBUF_ABSL_MIN(20230125, 3), #error PROTOBUF_FORCE_COPY_DEFAULT_STRING was previously defined #endif +// Set (and leave set) PROTOBUF_EXPLICIT_CONSTRUCTORS +// This flag changes the internal implementation class and its uses from using +// aggregate initialization to using explicit constructor based initialization. +// TODO(b/290029568): remove this flag and make the code permanent. +#ifndef PROTOBUF_EXPLICIT_CONSTRUCTORS +#define PROTOBUF_EXPLICIT_CONSTRUCTORS +#endif + #ifdef PROTOBUF_FORCE_ALLOCATION_ON_CONSTRUCTION #error PROTOBUF_FORCE_ALLOCATION_ON_CONSTRUCTION was previously defined #endif