From 003102d8516b652d80e76d8ca1c4b5dc47c9015b Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Mon, 10 Jul 2023 09:27:05 +0200 Subject: [PATCH 1/6] Update generated protobuf files --- DQMServices/Core/interface/ROOTFilePB.pb.h | 412 +++++++-------- DQMServices/Core/src/ROOTFilePB.pb.cc | 562 +++++++++++---------- 2 files changed, 490 insertions(+), 484 deletions(-) diff --git a/DQMServices/Core/interface/ROOTFilePB.pb.h b/DQMServices/Core/interface/ROOTFilePB.pb.h index 38fedbc27e35c..c406f8fb61b47 100644 --- a/DQMServices/Core/interface/ROOTFilePB.pb.h +++ b/DQMServices/Core/interface/ROOTFilePB.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3015000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3015001 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021009 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include @@ -42,18 +41,10 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE( - protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto; -::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter( - int index); namespace dqmstorepb { class ROOTFilePB; struct ROOTFilePBDefaultTypeInternal; @@ -72,13 +63,13 @@ namespace dqmstorepb { // =================================================================== - class ROOTFilePB_Histo PROTOBUF_FINAL + class ROOTFilePB_Histo final : public ::PROTOBUF_NAMESPACE_ID:: Message /* @@protoc_insertion_point(class_definition:dqmstorepb.ROOTFilePB.Histo) */ { public: inline ROOTFilePB_Histo() : ROOTFilePB_Histo(nullptr) {} ~ROOTFilePB_Histo() override; - explicit constexpr ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ROOTFilePB_Histo(const ROOTFilePB_Histo& from); ROOTFilePB_Histo(ROOTFilePB_Histo&& from) noexcept : ROOTFilePB_Histo() { *this = ::std::move(from); } @@ -88,9 +79,14 @@ namespace dqmstorepb { return *this; } inline ROOTFilePB_Histo& operator=(ROOTFilePB_Histo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) - InternalSwap(&from); + if (this == &from) + return *this; + if (GetOwningArena() == from.GetOwningArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -106,8 +102,12 @@ namespace dqmstorepb { } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } static const ROOTFilePB_Histo& default_instance() { return *internal_default_instance(); } static inline const ROOTFilePB_Histo* internal_default_instance() { return reinterpret_cast(&_ROOTFilePB_Histo_default_instance_); @@ -118,7 +118,11 @@ namespace dqmstorepb { inline void Swap(ROOTFilePB_Histo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -127,54 +131,51 @@ namespace dqmstorepb { void UnsafeArenaSwap(ROOTFilePB_Histo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline ROOTFilePB_Histo* New() const final { return CreateMaybeMessage(nullptr); } - - ROOTFilePB_Histo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + ROOTFilePB_Histo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ROOTFilePB_Histo& from); - void MergeFrom(const ROOTFilePB_Histo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ROOTFilePB_Histo& from) { ROOTFilePB_Histo::MergeImpl(*this, from); } + + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize(uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ROOTFilePB_Histo* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "dqmstorepb.ROOTFilePB.Histo"; } protected: - explicit ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena); - - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter(kIndexInFileMessages); - } + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -194,17 +195,15 @@ namespace dqmstorepb { public: void clear_full_pathname(); const std::string& full_pathname() const; - void set_full_pathname(const std::string& value); - void set_full_pathname(std::string&& value); - void set_full_pathname(const char* value); - void set_full_pathname(const char* value, size_t size); + template + void set_full_pathname(ArgT0&& arg0, ArgT... args); std::string* mutable_full_pathname(); - std::string* release_full_pathname(); + PROTOBUF_NODISCARD std::string* release_full_pathname(); void set_allocated_full_pathname(std::string* full_pathname); private: const std::string& _internal_full_pathname() const; - void _internal_set_full_pathname(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_full_pathname(const std::string& value); std::string* _internal_mutable_full_pathname(); public: @@ -217,17 +216,15 @@ namespace dqmstorepb { public: void clear_streamed_histo(); const std::string& streamed_histo() const; - void set_streamed_histo(const std::string& value); - void set_streamed_histo(std::string&& value); - void set_streamed_histo(const char* value); - void set_streamed_histo(const void* value, size_t size); + template + void set_streamed_histo(ArgT0&& arg0, ArgT... args); std::string* mutable_streamed_histo(); - std::string* release_streamed_histo(); + PROTOBUF_NODISCARD std::string* release_streamed_histo(); void set_allocated_streamed_histo(std::string* streamed_histo); private: const std::string& _internal_streamed_histo() const; - void _internal_set_streamed_histo(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_streamed_histo(const std::string& value); std::string* _internal_mutable_streamed_histo(); public: @@ -239,12 +236,12 @@ namespace dqmstorepb { public: void clear_size(); - ::PROTOBUF_NAMESPACE_ID::uint32 size() const; - void set_size(::PROTOBUF_NAMESPACE_ID::uint32 value); + uint32_t size() const; + void set_size(uint32_t value); private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_size() const; - void _internal_set_size(::PROTOBUF_NAMESPACE_ID::uint32 value); + uint32_t _internal_size() const; + void _internal_set_size(uint32_t value); public: // required uint32 flags = 4; @@ -255,12 +252,12 @@ namespace dqmstorepb { public: void clear_flags(); - ::PROTOBUF_NAMESPACE_ID::uint32 flags() const; - void set_flags(::PROTOBUF_NAMESPACE_ID::uint32 value); + uint32_t flags() const; + void set_flags(uint32_t value); private: - ::PROTOBUF_NAMESPACE_ID::uint32 _internal_flags() const; - void _internal_set_flags(::PROTOBUF_NAMESPACE_ID::uint32 value); + uint32_t _internal_flags() const; + void _internal_set_flags(uint32_t value); public: // @@protoc_insertion_point(class_scope:dqmstorepb.ROOTFilePB.Histo) @@ -274,22 +271,27 @@ namespace dqmstorepb { friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr full_pathname_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr streamed_histo_; - ::PROTOBUF_NAMESPACE_ID::uint32 size_; - ::PROTOBUF_NAMESPACE_ID::uint32 flags_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr full_pathname_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr streamed_histo_; + uint32_t size_; + uint32_t flags_; + }; + union { + Impl_ _impl_; + }; friend struct ::TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto; }; // ------------------------------------------------------------------- - class ROOTFilePB PROTOBUF_FINAL + class ROOTFilePB final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:dqmstorepb.ROOTFilePB) */ { public: inline ROOTFilePB() : ROOTFilePB(nullptr) {} ~ROOTFilePB() override; - explicit constexpr ROOTFilePB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit PROTOBUF_CONSTEXPR ROOTFilePB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ROOTFilePB(const ROOTFilePB& from); ROOTFilePB(ROOTFilePB&& from) noexcept : ROOTFilePB() { *this = ::std::move(from); } @@ -299,9 +301,14 @@ namespace dqmstorepb { return *this; } inline ROOTFilePB& operator=(ROOTFilePB&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) - InternalSwap(&from); + if (this == &from) + return *this; + if (GetOwningArena() == from.GetOwningArena() +#ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr +#endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -317,8 +324,12 @@ namespace dqmstorepb { } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { return GetDescriptor(); } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { return GetMetadataStatic().descriptor; } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } static const ROOTFilePB& default_instance() { return *internal_default_instance(); } static inline const ROOTFilePB* internal_default_instance() { return reinterpret_cast(&_ROOTFilePB_default_instance_); @@ -329,7 +340,11 @@ namespace dqmstorepb { inline void Swap(ROOTFilePB* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { +#ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && GetOwningArena() == other->GetOwningArena()) { +#else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { +#endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -338,52 +353,51 @@ namespace dqmstorepb { void UnsafeArenaSwap(ROOTFilePB* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline ROOTFilePB* New() const final { return CreateMaybeMessage(nullptr); } - - ROOTFilePB* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + ROOTFilePB* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ROOTFilePB& from); - void MergeFrom(const ROOTFilePB& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const ROOTFilePB& from) { ROOTFilePB::MergeImpl(*this, from); } + + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize(uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ROOTFilePB* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "dqmstorepb.ROOTFilePB"; } protected: - explicit ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena); - - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* GetClassData() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - return ::descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter(kIndexInFileMessages); - } + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - public: // nested types ---------------------------------------------------- typedef ROOTFilePB_Histo Histo; @@ -421,8 +435,13 @@ namespace dqmstorepb { friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::dqmstorepb::ROOTFilePB_Histo> histo_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::dqmstorepb::ROOTFilePB_Histo> histo_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { + Impl_ _impl_; + }; friend struct ::TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto; }; // =================================================================== @@ -437,190 +456,174 @@ namespace dqmstorepb { // required string full_pathname = 1; inline bool ROOTFilePB_Histo::_internal_has_full_pathname() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; return value; } inline bool ROOTFilePB_Histo::has_full_pathname() const { return _internal_has_full_pathname(); } inline void ROOTFilePB_Histo::clear_full_pathname() { - full_pathname_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; + _impl_.full_pathname_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const std::string& ROOTFilePB_Histo::full_pathname() const { // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.full_pathname) return _internal_full_pathname(); } - inline void ROOTFilePB_Histo::set_full_pathname(const std::string& value) { - _internal_set_full_pathname(value); + template + inline PROTOBUF_ALWAYS_INLINE void ROOTFilePB_Histo::set_full_pathname(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.full_pathname_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.full_pathname) } inline std::string* ROOTFilePB_Histo::mutable_full_pathname() { + std::string* _s = _internal_mutable_full_pathname(); // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.Histo.full_pathname) - return _internal_mutable_full_pathname(); + return _s; } - inline const std::string& ROOTFilePB_Histo::_internal_full_pathname() const { return full_pathname_.Get(); } + inline const std::string& ROOTFilePB_Histo::_internal_full_pathname() const { return _impl_.full_pathname_.Get(); } inline void ROOTFilePB_Histo::_internal_set_full_pathname(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - full_pathname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); - } - inline void ROOTFilePB_Histo::set_full_pathname(std::string&& value) { - _has_bits_[0] |= 0x00000001u; - full_pathname_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:dqmstorepb.ROOTFilePB.Histo.full_pathname) - } - inline void ROOTFilePB_Histo::set_full_pathname(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000001u; - full_pathname_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:dqmstorepb.ROOTFilePB.Histo.full_pathname) - } - inline void ROOTFilePB_Histo::set_full_pathname(const char* value, size_t size) { - _has_bits_[0] |= 0x00000001u; - full_pathname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:dqmstorepb.ROOTFilePB.Histo.full_pathname) + _impl_._has_bits_[0] |= 0x00000001u; + _impl_.full_pathname_.Set(value, GetArenaForAllocation()); } inline std::string* ROOTFilePB_Histo::_internal_mutable_full_pathname() { - _has_bits_[0] |= 0x00000001u; - return full_pathname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_._has_bits_[0] |= 0x00000001u; + return _impl_.full_pathname_.Mutable(GetArenaForAllocation()); } inline std::string* ROOTFilePB_Histo::release_full_pathname() { // @@protoc_insertion_point(field_release:dqmstorepb.ROOTFilePB.Histo.full_pathname) if (!_internal_has_full_pathname()) { return nullptr; } - _has_bits_[0] &= ~0x00000001u; - return full_pathname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); + _impl_._has_bits_[0] &= ~0x00000001u; + auto* p = _impl_.full_pathname_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.full_pathname_.IsDefault()) { + _impl_.full_pathname_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } inline void ROOTFilePB_Histo::set_allocated_full_pathname(std::string* full_pathname) { if (full_pathname != nullptr) { - _has_bits_[0] |= 0x00000001u; + _impl_._has_bits_[0] |= 0x00000001u; } else { - _has_bits_[0] &= ~0x00000001u; + _impl_._has_bits_[0] &= ~0x00000001u; + } + _impl_.full_pathname_.SetAllocated(full_pathname, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.full_pathname_.IsDefault()) { + _impl_.full_pathname_.Set("", GetArenaForAllocation()); } - full_pathname_.SetAllocated( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), full_pathname, GetArena()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:dqmstorepb.ROOTFilePB.Histo.full_pathname) } // required uint32 size = 2; inline bool ROOTFilePB_Histo::_internal_has_size() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; return value; } inline bool ROOTFilePB_Histo::has_size() const { return _internal_has_size(); } inline void ROOTFilePB_Histo::clear_size() { - size_ = 0u; - _has_bits_[0] &= ~0x00000004u; + _impl_.size_ = 0u; + _impl_._has_bits_[0] &= ~0x00000004u; } - inline ::PROTOBUF_NAMESPACE_ID::uint32 ROOTFilePB_Histo::_internal_size() const { return size_; } - inline ::PROTOBUF_NAMESPACE_ID::uint32 ROOTFilePB_Histo::size() const { + inline uint32_t ROOTFilePB_Histo::_internal_size() const { return _impl_.size_; } + inline uint32_t ROOTFilePB_Histo::size() const { // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.size) return _internal_size(); } - inline void ROOTFilePB_Histo::_internal_set_size(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _has_bits_[0] |= 0x00000004u; - size_ = value; + inline void ROOTFilePB_Histo::_internal_set_size(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000004u; + _impl_.size_ = value; } - inline void ROOTFilePB_Histo::set_size(::PROTOBUF_NAMESPACE_ID::uint32 value) { + inline void ROOTFilePB_Histo::set_size(uint32_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.size) } // required bytes streamed_histo = 3; inline bool ROOTFilePB_Histo::_internal_has_streamed_histo() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; return value; } inline bool ROOTFilePB_Histo::has_streamed_histo() const { return _internal_has_streamed_histo(); } inline void ROOTFilePB_Histo::clear_streamed_histo() { - streamed_histo_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; + _impl_.streamed_histo_.ClearToEmpty(); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const std::string& ROOTFilePB_Histo::streamed_histo() const { // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.streamed_histo) return _internal_streamed_histo(); } - inline void ROOTFilePB_Histo::set_streamed_histo(const std::string& value) { - _internal_set_streamed_histo(value); + template + inline PROTOBUF_ALWAYS_INLINE void ROOTFilePB_Histo::set_streamed_histo(ArgT0&& arg0, ArgT... args) { + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.streamed_histo_.SetBytes(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.streamed_histo) } inline std::string* ROOTFilePB_Histo::mutable_streamed_histo() { + std::string* _s = _internal_mutable_streamed_histo(); // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.Histo.streamed_histo) - return _internal_mutable_streamed_histo(); + return _s; } - inline const std::string& ROOTFilePB_Histo::_internal_streamed_histo() const { return streamed_histo_.Get(); } + inline const std::string& ROOTFilePB_Histo::_internal_streamed_histo() const { return _impl_.streamed_histo_.Get(); } inline void ROOTFilePB_Histo::_internal_set_streamed_histo(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - streamed_histo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena()); - } - inline void ROOTFilePB_Histo::set_streamed_histo(std::string&& value) { - _has_bits_[0] |= 0x00000002u; - streamed_histo_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:dqmstorepb.ROOTFilePB.Histo.streamed_histo) - } - inline void ROOTFilePB_Histo::set_streamed_histo(const char* value) { - GOOGLE_DCHECK(value != nullptr); - _has_bits_[0] |= 0x00000002u; - streamed_histo_.Set( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena()); - // @@protoc_insertion_point(field_set_char:dqmstorepb.ROOTFilePB.Histo.streamed_histo) - } - inline void ROOTFilePB_Histo::set_streamed_histo(const void* value, size_t size) { - _has_bits_[0] |= 0x00000002u; - streamed_histo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - ::std::string(reinterpret_cast(value), size), - GetArena()); - // @@protoc_insertion_point(field_set_pointer:dqmstorepb.ROOTFilePB.Histo.streamed_histo) + _impl_._has_bits_[0] |= 0x00000002u; + _impl_.streamed_histo_.Set(value, GetArenaForAllocation()); } inline std::string* ROOTFilePB_Histo::_internal_mutable_streamed_histo() { - _has_bits_[0] |= 0x00000002u; - return streamed_histo_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + _impl_._has_bits_[0] |= 0x00000002u; + return _impl_.streamed_histo_.Mutable(GetArenaForAllocation()); } inline std::string* ROOTFilePB_Histo::release_streamed_histo() { // @@protoc_insertion_point(field_release:dqmstorepb.ROOTFilePB.Histo.streamed_histo) if (!_internal_has_streamed_histo()) { return nullptr; } - _has_bits_[0] &= ~0x00000002u; - return streamed_histo_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); + _impl_._has_bits_[0] &= ~0x00000002u; + auto* p = _impl_.streamed_histo_.Release(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.streamed_histo_.IsDefault()) { + _impl_.streamed_histo_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; } inline void ROOTFilePB_Histo::set_allocated_streamed_histo(std::string* streamed_histo) { if (streamed_histo != nullptr) { - _has_bits_[0] |= 0x00000002u; + _impl_._has_bits_[0] |= 0x00000002u; } else { - _has_bits_[0] &= ~0x00000002u; + _impl_._has_bits_[0] &= ~0x00000002u; + } + _impl_.streamed_histo_.SetAllocated(streamed_histo, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.streamed_histo_.IsDefault()) { + _impl_.streamed_histo_.Set("", GetArenaForAllocation()); } - streamed_histo_.SetAllocated( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), streamed_histo, GetArena()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING // @@protoc_insertion_point(field_set_allocated:dqmstorepb.ROOTFilePB.Histo.streamed_histo) } // required uint32 flags = 4; inline bool ROOTFilePB_Histo::_internal_has_flags() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; return value; } inline bool ROOTFilePB_Histo::has_flags() const { return _internal_has_flags(); } inline void ROOTFilePB_Histo::clear_flags() { - flags_ = 0u; - _has_bits_[0] &= ~0x00000008u; + _impl_.flags_ = 0u; + _impl_._has_bits_[0] &= ~0x00000008u; } - inline ::PROTOBUF_NAMESPACE_ID::uint32 ROOTFilePB_Histo::_internal_flags() const { return flags_; } - inline ::PROTOBUF_NAMESPACE_ID::uint32 ROOTFilePB_Histo::flags() const { + inline uint32_t ROOTFilePB_Histo::_internal_flags() const { return _impl_.flags_; } + inline uint32_t ROOTFilePB_Histo::flags() const { // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.flags) return _internal_flags(); } - inline void ROOTFilePB_Histo::_internal_set_flags(::PROTOBUF_NAMESPACE_ID::uint32 value) { - _has_bits_[0] |= 0x00000008u; - flags_ = value; + inline void ROOTFilePB_Histo::_internal_set_flags(uint32_t value) { + _impl_._has_bits_[0] |= 0x00000008u; + _impl_.flags_ = value; } - inline void ROOTFilePB_Histo::set_flags(::PROTOBUF_NAMESPACE_ID::uint32 value) { + inline void ROOTFilePB_Histo::set_flags(uint32_t value) { _internal_set_flags(value); // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.flags) } @@ -630,32 +633,33 @@ namespace dqmstorepb { // ROOTFilePB // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1; - inline int ROOTFilePB::_internal_histo_size() const { return histo_.size(); } + inline int ROOTFilePB::_internal_histo_size() const { return _impl_.histo_.size(); } inline int ROOTFilePB::histo_size() const { return _internal_histo_size(); } - inline void ROOTFilePB::clear_histo() { histo_.Clear(); } + inline void ROOTFilePB::clear_histo() { _impl_.histo_.Clear(); } inline ::dqmstorepb::ROOTFilePB_Histo* ROOTFilePB::mutable_histo(int index) { // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.histo) - return histo_.Mutable(index); + return _impl_.histo_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::dqmstorepb::ROOTFilePB_Histo>* ROOTFilePB::mutable_histo() { // @@protoc_insertion_point(field_mutable_list:dqmstorepb.ROOTFilePB.histo) - return &histo_; + return &_impl_.histo_; } inline const ::dqmstorepb::ROOTFilePB_Histo& ROOTFilePB::_internal_histo(int index) const { - return histo_.Get(index); + return _impl_.histo_.Get(index); } inline const ::dqmstorepb::ROOTFilePB_Histo& ROOTFilePB::histo(int index) const { // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.histo) return _internal_histo(index); } - inline ::dqmstorepb::ROOTFilePB_Histo* ROOTFilePB::_internal_add_histo() { return histo_.Add(); } + inline ::dqmstorepb::ROOTFilePB_Histo* ROOTFilePB::_internal_add_histo() { return _impl_.histo_.Add(); } inline ::dqmstorepb::ROOTFilePB_Histo* ROOTFilePB::add_histo() { + ::dqmstorepb::ROOTFilePB_Histo* _add = _internal_add_histo(); // @@protoc_insertion_point(field_add:dqmstorepb.ROOTFilePB.histo) - return _internal_add_histo(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::dqmstorepb::ROOTFilePB_Histo>& ROOTFilePB::histo() const { // @@protoc_insertion_point(field_list:dqmstorepb.ROOTFilePB.histo) - return histo_; + return _impl_.histo_; } #ifdef __GNUC__ diff --git a/DQMServices/Core/src/ROOTFilePB.pb.cc b/DQMServices/Core/src/ROOTFilePB.pb.cc index 0c3b9bf11b5cb..dac7d61ac92a6 100644 --- a/DQMServices/Core/src/ROOTFilePB.pb.cc +++ b/DQMServices/Core/src/ROOTFilePB.pb.cc @@ -16,68 +16,78 @@ #include PROTOBUF_PRAGMA_INIT_SEG + +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; + namespace dqmstorepb { - constexpr ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : full_pathname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), - streamed_histo_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string), - size_(0u), - flags_(0u) {} + PROTOBUF_CONSTEXPR ROOTFilePB_Histo::ROOTFilePB_Histo(::_pbi::ConstantInitialized) + : _impl_{ + /*decltype(_impl_._has_bits_)*/ {}, + /*decltype(_impl_._cached_size_)*/ {}, + /*decltype(_impl_.full_pathname_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, + /*decltype(_impl_.streamed_histo_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}, + /*decltype(_impl_.size_)*/ 0u, + /*decltype(_impl_.flags_)*/ 0u} {} struct ROOTFilePB_HistoDefaultTypeInternal { - constexpr ROOTFilePB_HistoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ROOTFilePB_HistoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ROOTFilePB_HistoDefaultTypeInternal() {} union { ROOTFilePB_Histo _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePB_HistoDefaultTypeInternal + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePB_HistoDefaultTypeInternal _ROOTFilePB_Histo_default_instance_; - constexpr ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : histo_() {} + PROTOBUF_CONSTEXPR ROOTFilePB::ROOTFilePB(::_pbi::ConstantInitialized) + : _impl_{/*decltype(_impl_.histo_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}} {} struct ROOTFilePBDefaultTypeInternal { - constexpr ROOTFilePBDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + PROTOBUF_CONSTEXPR ROOTFilePBDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} ~ROOTFilePBDefaultTypeInternal() {} union { ROOTFilePB _instance; }; }; - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_; + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePBDefaultTypeInternal + _ROOTFilePB_default_instance_; } // namespace dqmstorepb -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** +static ::_pb::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 - TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _has_bits_), - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, full_pathname_), - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, size_), - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, streamed_histo_), - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, flags_), - 0, - 2, - 1, - 3, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, histo_), +const uint32_t TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE( + protodesc_cold) = { + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_._has_bits_), + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.full_pathname_), + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.size_), + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.streamed_histo_), + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.flags_), + 0, + 2, + 1, + 3, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _impl_.histo_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - {0, 9, sizeof(::dqmstorepb::ROOTFilePB_Histo)}, - {13, -1, sizeof(::dqmstorepb::ROOTFilePB)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + {0, 10, -1, sizeof(::dqmstorepb::ROOTFilePB_Histo)}, + {14, -1, -1, sizeof(::dqmstorepb::ROOTFilePB)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = { - reinterpret_cast(&::dqmstorepb::_ROOTFilePB_Histo_default_instance_), - reinterpret_cast(&::dqmstorepb::_ROOTFilePB_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::dqmstorepb::_ROOTFilePB_Histo_default_instance_._instance, + &::dqmstorepb::_ROOTFilePB_default_instance_._instance, }; const char descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[] PROTOBUF_SECTION_VARIABLE( @@ -87,33 +97,31 @@ const char descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2epro "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo" "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n" "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r"; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable - descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = { - false, - false, - 196, - descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, - "DQMServices/Core/src/ROOTFilePB.proto", - &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once, - nullptr, - 0, - 2, - schemas, - file_default_instances, - TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets, - file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, - file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, - file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, +static ::_pbi::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = { + false, + false, + 196, + descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, + "DQMServices/Core/src/ROOTFilePB.proto", + &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once, + nullptr, + 0, + 2, + schemas, + file_default_instances, + TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets, + file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, + file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, + file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata -descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter(int index) { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto); - return descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto.file_level_metadata[index]; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* +descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter() { + return &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto; } // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto( &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto); namespace dqmstorepb { @@ -122,7 +130,7 @@ namespace dqmstorepb { class ROOTFilePB_Histo::_Internal { public: - using HasBits = decltype(std::declval()._has_bits_); + using HasBits = decltype(std::declval()._impl_._has_bits_); static void set_has_full_pathname(HasBits* has_bits) { (*has_bits)[0] |= 1u; } static void set_has_size(HasBits* has_bits) { (*has_bits)[0] |= 4u; } static void set_has_streamed_histo(HasBits* has_bits) { (*has_bits)[0] |= 2u; } @@ -132,163 +140,181 @@ namespace dqmstorepb { } }; - ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); + ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB.Histo) } - ROOTFilePB_Histo::ROOTFilePB_Histo(const ROOTFilePB_Histo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) { + ROOTFilePB_Histo::ROOTFilePB_Histo(const ROOTFilePB_Histo& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ROOTFilePB_Histo* const _this = this; + (void)_this; + new (&_impl_) Impl_{decltype(_impl_._has_bits_){from._impl_._has_bits_}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.full_pathname_){}, + decltype(_impl_.streamed_histo_){}, + decltype(_impl_.size_){}, + decltype(_impl_.flags_){}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - full_pathname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.full_pathname_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.full_pathname_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_full_pathname()) { - full_pathname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - from._internal_full_pathname(), - GetArena()); + _this->_impl_.full_pathname_.Set(from._internal_full_pathname(), _this->GetArenaForAllocation()); } - streamed_histo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.streamed_histo_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamed_histo_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (from._internal_has_streamed_histo()) { - streamed_histo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, - from._internal_streamed_histo(), - GetArena()); + _this->_impl_.streamed_histo_.Set(from._internal_streamed_histo(), _this->GetArenaForAllocation()); } - ::memcpy(&size_, - &from.size_, - static_cast(reinterpret_cast(&flags_) - reinterpret_cast(&size_)) + sizeof(flags_)); + ::memcpy(&_impl_.size_, + &from._impl_.size_, + static_cast(reinterpret_cast(&_impl_.flags_) - reinterpret_cast(&_impl_.size_)) + + sizeof(_impl_.flags_)); // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo) } - void ROOTFilePB_Histo::SharedCtor() { - full_pathname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - streamed_histo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(reinterpret_cast(this) + - static_cast(reinterpret_cast(&size_) - reinterpret_cast(this)), - 0, - static_cast(reinterpret_cast(&flags_) - reinterpret_cast(&size_)) + sizeof(flags_)); + inline void ROOTFilePB_Histo::SharedCtor(::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{decltype(_impl_._has_bits_){}, + /*decltype(_impl_._cached_size_)*/ {}, + decltype(_impl_.full_pathname_){}, + decltype(_impl_.streamed_histo_){}, + decltype(_impl_.size_){0u}, + decltype(_impl_.flags_){0u}}; + _impl_.full_pathname_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.full_pathname_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamed_histo_.InitDefault(); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.streamed_histo_.Set("", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } ROOTFilePB_Histo::~ROOTFilePB_Histo() { // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - void ROOTFilePB_Histo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - full_pathname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - streamed_histo_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + inline void ROOTFilePB_Histo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.full_pathname_.Destroy(); + _impl_.streamed_histo_.Destroy(); } - void ROOTFilePB_Histo::ArenaDtor(void* object) { - ROOTFilePB_Histo* _this = reinterpret_cast(object); - (void)_this; - } - void ROOTFilePB_Histo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {} - void ROOTFilePB_Histo::SetCachedSize(int size) const { _cached_size_.Set(size); } + void ROOTFilePB_Histo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void ROOTFilePB_Histo::Clear() { // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; if (cached_has_bits & 0x00000003u) { if (cached_has_bits & 0x00000001u) { - full_pathname_.ClearNonDefaultToEmpty(); + _impl_.full_pathname_.ClearNonDefaultToEmpty(); } if (cached_has_bits & 0x00000002u) { - streamed_histo_.ClearNonDefaultToEmpty(); + _impl_.streamed_histo_.ClearNonDefaultToEmpty(); } } if (cached_has_bits & 0x0000000cu) { - ::memset( - &size_, - 0, - static_cast(reinterpret_cast(&flags_) - reinterpret_cast(&size_)) + sizeof(flags_)); + ::memset(&_impl_.size_, + 0, + static_cast(reinterpret_cast(&_impl_.flags_) - reinterpret_cast(&_impl_.size_)) + + sizeof(_impl_.flags_)); } - _has_bits_.Clear(); + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* ROOTFilePB_Histo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { + const char* ROOTFilePB_Histo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ goto failure _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // required string full_pathname = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_full_pathname(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "dqmstorepb.ROOTFilePB.Histo.full_pathname"); + ::_pbi::VerifyUTF8(str, "dqmstorepb.ROOTFilePB.Histo.full_pathname"); #endif // !NDEBUG - CHK_(ptr); } else goto handle_unusual; continue; // required uint32 size = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { _Internal::set_has_size(&has_bits); - size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; // required bytes streamed_histo = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_streamed_histo(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); } else goto handle_unusual; continue; // required uint32 flags = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { _Internal::set_has_flags(&has_bits); - flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse( - tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch - } // while - success: - _has_bits_.Or(has_bits); + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); + CHK_(ptr != nullptr); + } // while + message_done: + _impl_._has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } - ::PROTOBUF_NAMESPACE_ID::uint8* ROOTFilePB_Histo::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + uint8_t* ROOTFilePB_Histo::_InternalSerialize(uint8_t* target, + ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = _has_bits_[0]; + cached_has_bits = _impl_._has_bits_[0]; // required string full_pathname = 1; if (cached_has_bits & 0x00000001u) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( @@ -302,7 +328,7 @@ namespace dqmstorepb { // required uint32 size = 2; if (cached_has_bits & 0x00000004u) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target); } // required bytes streamed_histo = 3; @@ -313,12 +339,11 @@ namespace dqmstorepb { // required uint32 flags = 4; if (cached_has_bits & 0x00000008u) { target = stream->EnsureSpace(target); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(), target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, @@ -344,12 +369,12 @@ namespace dqmstorepb { if (_internal_has_size()) { // required uint32 size = 2; - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size()); } if (_internal_has_flags()) { // required uint32 flags = 4; - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags()); } return total_size; @@ -358,7 +383,7 @@ namespace dqmstorepb { // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo) size_t total_size = 0; - if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. + if (((_impl_._has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present. // required string full_pathname = 1; total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname()); @@ -366,71 +391,51 @@ namespace dqmstorepb { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo()); // required uint32 size = 2; - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size()); // required uint32 flags = 4; - total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags()); + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags()); } else { total_size += RequiredFieldsByteSizeFallback(); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - void ROOTFilePB_Histo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { - // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB.Histo) - GOOGLE_DCHECK_NE(&from, this); - const ROOTFilePB_Histo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated(&from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB.Histo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB.Histo) - MergeFrom(*source); - } - } + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB_Histo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB_Histo::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB_Histo::GetClassData() const { return &_class_data_; } - void ROOTFilePB_Histo::MergeFrom(const ROOTFilePB_Histo& from) { + void ROOTFilePB_Histo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, + const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = from._has_bits_[0]; + cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { - _internal_set_full_pathname(from._internal_full_pathname()); + _this->_internal_set_full_pathname(from._internal_full_pathname()); } if (cached_has_bits & 0x00000002u) { - _internal_set_streamed_histo(from._internal_streamed_histo()); + _this->_internal_set_streamed_histo(from._internal_streamed_histo()); } if (cached_has_bits & 0x00000004u) { - size_ = from.size_; + _this->_impl_.size_ = from._impl_.size_; } if (cached_has_bits & 0x00000008u) { - flags_ = from.flags_; + _this->_impl_.flags_ = from._impl_.flags_; } - _has_bits_[0] |= cached_has_bits; + _this->_impl_._has_bits_[0] |= cached_has_bits; } - } - - void ROOTFilePB_Histo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { - // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB.Histo) - if (&from == this) - return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ROOTFilePB_Histo::CopyFrom(const ROOTFilePB_Histo& from) { @@ -442,26 +447,32 @@ namespace dqmstorepb { } bool ROOTFilePB_Histo::IsInitialized() const { - if (_Internal::MissingRequiredFields(_has_bits_)) + if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false; return true; } void ROOTFilePB_Histo::InternalSwap(ROOTFilePB_Histo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - full_pathname_.Swap( - &other->full_pathname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - streamed_histo_.Swap( - &other->streamed_histo_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - ::PROTOBUF_NAMESPACE_ID::internal::memswap( - reinterpret_cast(&size_), reinterpret_cast(&other->size_)); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.full_pathname_, lhs_arena, &other->_impl_.full_pathname_, rhs_arena); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.streamed_histo_, lhs_arena, &other->_impl_.streamed_histo_, rhs_arena); + ::PROTOBUF_NAMESPACE_ID::internal::memswap( + reinterpret_cast(&_impl_.size_), reinterpret_cast(&other->_impl_.size_)); } - ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata() const { return GetMetadataStatic(); } + ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter, + &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once, + file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[0]); + } // =================================================================== @@ -469,56 +480,63 @@ namespace dqmstorepb { public: }; - ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), histo_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); + ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB) } - ROOTFilePB::ROOTFilePB(const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message(), histo_(from.histo_) { + ROOTFilePB::ROOTFilePB(const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + ROOTFilePB* const _this = this; + (void)_this; + new (&_impl_) Impl_{decltype(_impl_.histo_){from._impl_.histo_}, /*decltype(_impl_._cached_size_)*/ {}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB) } - void ROOTFilePB::SharedCtor() {} + inline void ROOTFilePB::SharedCtor(::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{decltype(_impl_.histo_){arena}, /*decltype(_impl_._cached_size_)*/ {}}; + } ROOTFilePB::~ROOTFilePB() { // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB) + if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - void ROOTFilePB::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); } - - void ROOTFilePB::ArenaDtor(void* object) { - ROOTFilePB* _this = reinterpret_cast(object); - (void)_this; + inline void ROOTFilePB::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.histo_.~RepeatedPtrField(); } - void ROOTFilePB::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {} - void ROOTFilePB::SetCachedSize(int size) const { _cached_size_.Set(size); } + + void ROOTFilePB::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } void ROOTFilePB::Clear() { // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; - histo_.Clear(); + _impl_.histo_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } - const char* ROOTFilePB::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { + const char* ROOTFilePB::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) \ if (PROTOBUF_PREDICT_FALSE(!(x))) \ goto failure while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -530,42 +548,42 @@ namespace dqmstorepb { } else goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse( - tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch - } // while - success: + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); + CHK_(ptr != nullptr); + } // while + message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } - ::PROTOBUF_NAMESPACE_ID::uint8* ROOTFilePB::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + uint8_t* ROOTFilePB::_InternalSerialize(uint8_t* target, + ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void)cached_has_bits; // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1; - for (unsigned int i = 0, n = static_cast(this->_internal_histo_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, n = static_cast(this->_internal_histo_size()); i < n; i++) { + const auto& repfield = this->_internal_histo(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage( - 1, this->_internal_histo(i), target, stream); + 1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>( ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, @@ -579,54 +597,34 @@ namespace dqmstorepb { // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void)cached_has_bits; // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1; total_size += 1UL * this->_internal_histo_size(); - for (const auto& msg : this->histo_) { + for (const auto& msg : this->_impl_.histo_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } - void ROOTFilePB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { - // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB) - GOOGLE_DCHECK_NE(&from, this); - const ROOTFilePB* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated(&from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB) - MergeFrom(*source); - } - } + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB::MergeImpl}; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB::GetClassData() const { return &_class_data_; } - void ROOTFilePB::MergeFrom(const ROOTFilePB& from) { + void ROOTFilePB::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, + const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void)cached_has_bits; - histo_.MergeFrom(from.histo_); - } - - void ROOTFilePB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { - // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB) - if (&from == this) - return; - Clear(); - MergeFrom(from); + _this->_impl_.histo_.MergeFrom(from._impl_.histo_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ROOTFilePB::CopyFrom(const ROOTFilePB& from) { @@ -638,18 +636,22 @@ namespace dqmstorepb { } bool ROOTFilePB::IsInitialized() const { - if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(histo_)) + if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.histo_)) return false; return true; } void ROOTFilePB::InternalSwap(ROOTFilePB* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - histo_.InternalSwap(&other->histo_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.histo_.InternalSwap(&other->_impl_.histo_); } - ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata() const { return GetMetadataStatic(); } + ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata() const { + return ::_pbi::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter, + &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once, + file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[1]); + } // @@protoc_insertion_point(namespace_scope) } // namespace dqmstorepb From 010a48df81800ee7e8ca324297f700fb64a92430 Mon Sep 17 00:00:00 2001 From: iarspider Date: Tue, 11 Jul 2023 18:53:01 +0200 Subject: [PATCH 2/6] Fix "variable-sized array type ... is not a valid template argument" (CPP20) --- DQMServices/FileIO/plugins/DQMFileSaverPB.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DQMServices/FileIO/plugins/DQMFileSaverPB.cc b/DQMServices/FileIO/plugins/DQMFileSaverPB.cc index 5e0f0d77fa3e2..779092f68a1ef 100644 --- a/DQMServices/FileIO/plugins/DQMFileSaverPB.cc +++ b/DQMServices/FileIO/plugins/DQMFileSaverPB.cc @@ -293,9 +293,10 @@ void DQMFileSaverPB::savePB(DQMStore* store, std::string const& filename, int ru } else { // Compress ME blob with zlib int maxOutputSize = this->getMaxCompressedSize(qr_buffer.Length()); - char compression_output[maxOutputSize]; + char* compression_output = new char[maxOutputSize]; uLong total_out = this->compressME(qr_buffer, maxOutputSize, compression_output); qr_histo.set_streamed_histo(compression_output, total_out); + delete[] compression_output; } } From f30b94fae01609cb7b7da0084a6aac8417ce3dfc Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Wed, 12 Jul 2023 09:06:41 +0200 Subject: [PATCH 3/6] Workaround --- .../METPUSubtraction/plugins/DeepMETProducer.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc index 635005f6a2a69..b0c0d0b18c183 100644 --- a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc +++ b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc @@ -42,9 +42,18 @@ DeepMETProducer::DeepMETProducer(const edm::ParameterSet& cfg, const tensorflow: max_n_pf_(cfg.getParameter("max_n_pf")), session_(cache->getSession()) { produces(); - - const tensorflow::TensorShape shape({1, max_n_pf_, 8}); - const tensorflow::TensorShape cat_shape({1, max_n_pf_, 1}); + + // Workaround for missing constructor TensorShape::TensorShape(absl::Slice), + // the constructor expects Slice or initializer_list and is marked explicit + const tensorflow::TensorShape shape; + shape.AddDim(1); + shape.AddDim(max_n_pf_); + shape.AddDim(8); + + const tensorflow::TensorShape cat_shape; + shape.AddDim(1); + shape.AddDim(max_n_pf_); + shape.AddDim(1); input_ = tensorflow::Tensor(tensorflow::DT_FLOAT, shape); input_cat0_ = tensorflow::Tensor(tensorflow::DT_FLOAT, cat_shape); From 6de546c0d74febd85da87de7edb8d2bbec96ae38 Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Wed, 12 Jul 2023 09:50:56 +0200 Subject: [PATCH 4/6] Remove const --- RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc index b0c0d0b18c183..967394ff6070a 100644 --- a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc +++ b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc @@ -45,12 +45,12 @@ DeepMETProducer::DeepMETProducer(const edm::ParameterSet& cfg, const tensorflow: // Workaround for missing constructor TensorShape::TensorShape(absl::Slice), // the constructor expects Slice or initializer_list and is marked explicit - const tensorflow::TensorShape shape; + tensorflow::TensorShape shape; shape.AddDim(1); shape.AddDim(max_n_pf_); shape.AddDim(8); - const tensorflow::TensorShape cat_shape; + tensorflow::TensorShape cat_shape; shape.AddDim(1); shape.AddDim(max_n_pf_); shape.AddDim(1); From 611fe5b865f5eedbff2acefc2cbe4e2860cf10ca Mon Sep 17 00:00:00 2001 From: Ivan Razumov Date: Wed, 12 Jul 2023 10:03:48 +0200 Subject: [PATCH 5/6] Code-format --- RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc index 967394ff6070a..da3f37487454c 100644 --- a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc +++ b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc @@ -42,14 +42,14 @@ DeepMETProducer::DeepMETProducer(const edm::ParameterSet& cfg, const tensorflow: max_n_pf_(cfg.getParameter("max_n_pf")), session_(cache->getSession()) { produces(); - + // Workaround for missing constructor TensorShape::TensorShape(absl::Slice), // the constructor expects Slice or initializer_list and is marked explicit tensorflow::TensorShape shape; shape.AddDim(1); shape.AddDim(max_n_pf_); shape.AddDim(8); - + tensorflow::TensorShape cat_shape; shape.AddDim(1); shape.AddDim(max_n_pf_); From d487a13755f9c939d12eda7969fa02a270c06673 Mon Sep 17 00:00:00 2001 From: iarspider Date: Thu, 13 Jul 2023 10:19:46 +0200 Subject: [PATCH 6/6] Update DeepMETProducer.cc --- RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc index da3f37487454c..6981825cef2c9 100644 --- a/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc +++ b/RecoMET/METPUSubtraction/plugins/DeepMETProducer.cc @@ -51,9 +51,9 @@ DeepMETProducer::DeepMETProducer(const edm::ParameterSet& cfg, const tensorflow: shape.AddDim(8); tensorflow::TensorShape cat_shape; - shape.AddDim(1); - shape.AddDim(max_n_pf_); - shape.AddDim(1); + cat_shape.AddDim(1); + cat_shape.AddDim(max_n_pf_); + cat_shape.AddDim(1); input_ = tensorflow::Tensor(tensorflow::DT_FLOAT, shape); input_cat0_ = tensorflow::Tensor(tensorflow::DT_FLOAT, cat_shape);