File indexing completed on 2024-04-06 12:10:11
0001
0002
0003
0004 #include "DQMServices/Core/interface/ROOTFilePB.pb.h"
0005
0006 #include <algorithm>
0007
0008 #include <google/protobuf/io/coded_stream.h>
0009 #include <google/protobuf/extension_set.h>
0010 #include <google/protobuf/wire_format_lite.h>
0011 #include <google/protobuf/descriptor.h>
0012 #include <google/protobuf/generated_message_reflection.h>
0013 #include <google/protobuf/reflection_ops.h>
0014 #include <google/protobuf/wire_format.h>
0015
0016 #include <google/protobuf/port_def.inc>
0017
0018 PROTOBUF_PRAGMA_INIT_SEG
0019
0020 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
0021 namespace _pbi = _pb::internal;
0022
0023 namespace dqmstorepb {
0024 PROTOBUF_CONSTEXPR ROOTFilePB_Histo::ROOTFilePB_Histo(::_pbi::ConstantInitialized)
0025 : _impl_{
0026 {},
0027 {},
0028 {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}},
0029 {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}},
0030 0u,
0031 0u} {}
0032 struct ROOTFilePB_HistoDefaultTypeInternal {
0033 PROTOBUF_CONSTEXPR ROOTFilePB_HistoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
0034 ~ROOTFilePB_HistoDefaultTypeInternal() {}
0035 union {
0036 ROOTFilePB_Histo _instance;
0037 };
0038 };
0039 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePB_HistoDefaultTypeInternal
0040 _ROOTFilePB_Histo_default_instance_;
0041 PROTOBUF_CONSTEXPR ROOTFilePB::ROOTFilePB(::_pbi::ConstantInitialized)
0042 : _impl_{ {}, {}} {}
0043 struct ROOTFilePBDefaultTypeInternal {
0044 PROTOBUF_CONSTEXPR ROOTFilePBDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
0045 ~ROOTFilePBDefaultTypeInternal() {}
0046 union {
0047 ROOTFilePB _instance;
0048 };
0049 };
0050 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePBDefaultTypeInternal
0051 _ROOTFilePB_default_instance_;
0052 }
0053 static ::_pb::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2];
0054 static constexpr ::_pb::EnumDescriptor const**
0055 file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = nullptr;
0056 static constexpr ::_pb::ServiceDescriptor const**
0057 file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = nullptr;
0058
0059 const uint32_t TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
0060 protodesc_cold) = {
0061 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_._has_bits_),
0062 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_),
0063 ~0u,
0064 ~0u,
0065 ~0u,
0066 ~0u,
0067 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.full_pathname_),
0068 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.size_),
0069 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.streamed_histo_),
0070 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.flags_),
0071 0,
0072 2,
0073 1,
0074 3,
0075 ~0u,
0076 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_),
0077 ~0u,
0078 ~0u,
0079 ~0u,
0080 ~0u,
0081 PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _impl_.histo_),
0082 };
0083 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
0084 {0, 10, -1, sizeof(::dqmstorepb::ROOTFilePB_Histo)},
0085 {14, -1, -1, sizeof(::dqmstorepb::ROOTFilePB)},
0086 };
0087
0088 static const ::_pb::Message* const file_default_instances[] = {
0089 &::dqmstorepb::_ROOTFilePB_Histo_default_instance_._instance,
0090 &::dqmstorepb::_ROOTFilePB_default_instance_._instance,
0091 };
0092
0093 const char descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[] PROTOBUF_SECTION_VARIABLE(
0094 protodesc_cold) =
0095 "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
0096 "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
0097 "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
0098 "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
0099 "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r";
0100 static ::_pbi::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once;
0101 const ::_pbi::DescriptorTable descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto = {
0102 false,
0103 false,
0104 196,
0105 descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
0106 "DQMServices/Core/src/ROOTFilePB.proto",
0107 &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once,
0108 nullptr,
0109 0,
0110 2,
0111 schemas,
0112 file_default_instances,
0113 TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets,
0114 file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
0115 file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
0116 file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
0117 };
0118 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable*
0119 descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter() {
0120 return &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto;
0121 }
0122
0123
0124 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner
0125 dynamic_init_dummy_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto(
0126 &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto);
0127 namespace dqmstorepb {
0128
0129
0130
0131 class ROOTFilePB_Histo::_Internal {
0132 public:
0133 using HasBits = decltype(std::declval<ROOTFilePB_Histo>()._impl_._has_bits_);
0134 static void set_has_full_pathname(HasBits* has_bits) { (*has_bits)[0] |= 1u; }
0135 static void set_has_size(HasBits* has_bits) { (*has_bits)[0] |= 4u; }
0136 static void set_has_streamed_histo(HasBits* has_bits) { (*has_bits)[0] |= 2u; }
0137 static void set_has_flags(HasBits* has_bits) { (*has_bits)[0] |= 8u; }
0138 static bool MissingRequiredFields(const HasBits& has_bits) {
0139 return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
0140 }
0141 };
0142
0143 ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned)
0144 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
0145 SharedCtor(arena, is_message_owned);
0146
0147 }
0148 ROOTFilePB_Histo::ROOTFilePB_Histo(const ROOTFilePB_Histo& from) : ::PROTOBUF_NAMESPACE_ID::Message() {
0149 ROOTFilePB_Histo* const _this = this;
0150 (void)_this;
0151 new (&_impl_) Impl_{decltype(_impl_._has_bits_){from._impl_._has_bits_},
0152 {},
0153 decltype(_impl_.full_pathname_){},
0154 decltype(_impl_.streamed_histo_){},
0155 decltype(_impl_.size_){},
0156 decltype(_impl_.flags_){}};
0157
0158 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
0159 _impl_.full_pathname_.InitDefault();
0160 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
0161 _impl_.full_pathname_.Set("", GetArenaForAllocation());
0162 #endif
0163 if (from._internal_has_full_pathname()) {
0164 _this->_impl_.full_pathname_.Set(from._internal_full_pathname(), _this->GetArenaForAllocation());
0165 }
0166 _impl_.streamed_histo_.InitDefault();
0167 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
0168 _impl_.streamed_histo_.Set("", GetArenaForAllocation());
0169 #endif
0170 if (from._internal_has_streamed_histo()) {
0171 _this->_impl_.streamed_histo_.Set(from._internal_streamed_histo(), _this->GetArenaForAllocation());
0172 }
0173 ::memcpy(&_impl_.size_,
0174 &from._impl_.size_,
0175 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flags_) - reinterpret_cast<char*>(&_impl_.size_)) +
0176 sizeof(_impl_.flags_));
0177
0178 }
0179
0180 inline void ROOTFilePB_Histo::SharedCtor(::_pb::Arena* arena, bool is_message_owned) {
0181 (void)arena;
0182 (void)is_message_owned;
0183 new (&_impl_) Impl_{decltype(_impl_._has_bits_){},
0184 {},
0185 decltype(_impl_.full_pathname_){},
0186 decltype(_impl_.streamed_histo_){},
0187 decltype(_impl_.size_){0u},
0188 decltype(_impl_.flags_){0u}};
0189 _impl_.full_pathname_.InitDefault();
0190 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
0191 _impl_.full_pathname_.Set("", GetArenaForAllocation());
0192 #endif
0193 _impl_.streamed_histo_.InitDefault();
0194 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
0195 _impl_.streamed_histo_.Set("", GetArenaForAllocation());
0196 #endif
0197 }
0198
0199 ROOTFilePB_Histo::~ROOTFilePB_Histo() {
0200
0201 if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
0202 (void)arena;
0203 return;
0204 }
0205 SharedDtor();
0206 }
0207
0208 inline void ROOTFilePB_Histo::SharedDtor() {
0209 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
0210 _impl_.full_pathname_.Destroy();
0211 _impl_.streamed_histo_.Destroy();
0212 }
0213
0214 void ROOTFilePB_Histo::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); }
0215
0216 void ROOTFilePB_Histo::Clear() {
0217
0218 uint32_t cached_has_bits = 0;
0219
0220 (void)cached_has_bits;
0221
0222 cached_has_bits = _impl_._has_bits_[0];
0223 if (cached_has_bits & 0x00000003u) {
0224 if (cached_has_bits & 0x00000001u) {
0225 _impl_.full_pathname_.ClearNonDefaultToEmpty();
0226 }
0227 if (cached_has_bits & 0x00000002u) {
0228 _impl_.streamed_histo_.ClearNonDefaultToEmpty();
0229 }
0230 }
0231 if (cached_has_bits & 0x0000000cu) {
0232 ::memset(&_impl_.size_,
0233 0,
0234 static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flags_) - reinterpret_cast<char*>(&_impl_.size_)) +
0235 sizeof(_impl_.flags_));
0236 }
0237 _impl_._has_bits_.Clear();
0238 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
0239 }
0240
0241 const char* ROOTFilePB_Histo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
0242 #define CHK_(x) \
0243 if (PROTOBUF_PREDICT_FALSE(!(x))) \
0244 goto failure
0245 _Internal::HasBits has_bits{};
0246 while (!ctx->Done(&ptr)) {
0247 uint32_t tag;
0248 ptr = ::_pbi::ReadTag(ptr, &tag);
0249 switch (tag >> 3) {
0250
0251 case 1:
0252 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
0253 auto str = _internal_mutable_full_pathname();
0254 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
0255 CHK_(ptr);
0256 #ifndef NDEBUG
0257 ::_pbi::VerifyUTF8(str, "dqmstorepb.ROOTFilePB.Histo.full_pathname");
0258 #endif
0259 } else
0260 goto handle_unusual;
0261 continue;
0262
0263 case 2:
0264 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
0265 _Internal::set_has_size(&has_bits);
0266 _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
0267 CHK_(ptr);
0268 } else
0269 goto handle_unusual;
0270 continue;
0271
0272 case 3:
0273 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
0274 auto str = _internal_mutable_streamed_histo();
0275 ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
0276 CHK_(ptr);
0277 } else
0278 goto handle_unusual;
0279 continue;
0280
0281 case 4:
0282 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
0283 _Internal::set_has_flags(&has_bits);
0284 _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
0285 CHK_(ptr);
0286 } else
0287 goto handle_unusual;
0288 continue;
0289 default:
0290 goto handle_unusual;
0291 }
0292 handle_unusual:
0293 if ((tag == 0) || ((tag & 7) == 4)) {
0294 CHK_(ptr);
0295 ctx->SetLastTag(tag);
0296 goto message_done;
0297 }
0298 ptr = UnknownFieldParse(
0299 tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
0300 CHK_(ptr != nullptr);
0301 }
0302 message_done:
0303 _impl_._has_bits_.Or(has_bits);
0304 return ptr;
0305 failure:
0306 ptr = nullptr;
0307 goto message_done;
0308 #undef CHK_
0309 }
0310
0311 uint8_t* ROOTFilePB_Histo::_InternalSerialize(uint8_t* target,
0312 ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
0313
0314 uint32_t cached_has_bits = 0;
0315 (void)cached_has_bits;
0316
0317 cached_has_bits = _impl_._has_bits_[0];
0318
0319 if (cached_has_bits & 0x00000001u) {
0320 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
0321 this->_internal_full_pathname().data(),
0322 static_cast<int>(this->_internal_full_pathname().length()),
0323 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
0324 "dqmstorepb.ROOTFilePB.Histo.full_pathname");
0325 target = stream->WriteStringMaybeAliased(1, this->_internal_full_pathname(), target);
0326 }
0327
0328
0329 if (cached_has_bits & 0x00000004u) {
0330 target = stream->EnsureSpace(target);
0331 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target);
0332 }
0333
0334
0335 if (cached_has_bits & 0x00000002u) {
0336 target = stream->WriteBytesMaybeAliased(3, this->_internal_streamed_histo(), target);
0337 }
0338
0339
0340 if (cached_has_bits & 0x00000008u) {
0341 target = stream->EnsureSpace(target);
0342 target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(), target);
0343 }
0344
0345 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
0346 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
0347 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
0348 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
0349 target,
0350 stream);
0351 }
0352
0353 return target;
0354 }
0355
0356 size_t ROOTFilePB_Histo::RequiredFieldsByteSizeFallback() const {
0357
0358 size_t total_size = 0;
0359
0360 if (_internal_has_full_pathname()) {
0361
0362 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
0363 }
0364
0365 if (_internal_has_streamed_histo()) {
0366
0367 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
0368 }
0369
0370 if (_internal_has_size()) {
0371
0372 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
0373 }
0374
0375 if (_internal_has_flags()) {
0376
0377 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
0378 }
0379
0380 return total_size;
0381 }
0382 size_t ROOTFilePB_Histo::ByteSizeLong() const {
0383
0384 size_t total_size = 0;
0385
0386 if (((_impl_._has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) {
0387
0388 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
0389
0390
0391 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
0392
0393
0394 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
0395
0396
0397 total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
0398
0399 } else {
0400 total_size += RequiredFieldsByteSizeFallback();
0401 }
0402 uint32_t cached_has_bits = 0;
0403
0404 (void)cached_has_bits;
0405
0406 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
0407 }
0408
0409 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB_Histo::_class_data_ = {
0410 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB_Histo::MergeImpl};
0411 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB_Histo::GetClassData() const { return &_class_data_; }
0412
0413 void ROOTFilePB_Histo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg,
0414 const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
0415 auto* const _this = static_cast<ROOTFilePB_Histo*>(&to_msg);
0416 auto& from = static_cast<const ROOTFilePB_Histo&>(from_msg);
0417
0418 GOOGLE_DCHECK_NE(&from, _this);
0419 uint32_t cached_has_bits = 0;
0420 (void)cached_has_bits;
0421
0422 cached_has_bits = from._impl_._has_bits_[0];
0423 if (cached_has_bits & 0x0000000fu) {
0424 if (cached_has_bits & 0x00000001u) {
0425 _this->_internal_set_full_pathname(from._internal_full_pathname());
0426 }
0427 if (cached_has_bits & 0x00000002u) {
0428 _this->_internal_set_streamed_histo(from._internal_streamed_histo());
0429 }
0430 if (cached_has_bits & 0x00000004u) {
0431 _this->_impl_.size_ = from._impl_.size_;
0432 }
0433 if (cached_has_bits & 0x00000008u) {
0434 _this->_impl_.flags_ = from._impl_.flags_;
0435 }
0436 _this->_impl_._has_bits_[0] |= cached_has_bits;
0437 }
0438 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
0439 }
0440
0441 void ROOTFilePB_Histo::CopyFrom(const ROOTFilePB_Histo& from) {
0442
0443 if (&from == this)
0444 return;
0445 Clear();
0446 MergeFrom(from);
0447 }
0448
0449 bool ROOTFilePB_Histo::IsInitialized() const {
0450 if (_Internal::MissingRequiredFields(_impl_._has_bits_))
0451 return false;
0452 return true;
0453 }
0454
0455 void ROOTFilePB_Histo::InternalSwap(ROOTFilePB_Histo* other) {
0456 using std::swap;
0457 auto* lhs_arena = GetArenaForAllocation();
0458 auto* rhs_arena = other->GetArenaForAllocation();
0459 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
0460 swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
0461 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
0462 &_impl_.full_pathname_, lhs_arena, &other->_impl_.full_pathname_, rhs_arena);
0463 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
0464 &_impl_.streamed_histo_, lhs_arena, &other->_impl_.streamed_histo_, rhs_arena);
0465 ::PROTOBUF_NAMESPACE_ID::internal::memswap<PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, _impl_.flags_) +
0466 sizeof(ROOTFilePB_Histo::_impl_.flags_) -
0467 PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, _impl_.size_)>(
0468 reinterpret_cast<char*>(&_impl_.size_), reinterpret_cast<char*>(&other->_impl_.size_));
0469 }
0470
0471 ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata() const {
0472 return ::_pbi::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter,
0473 &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once,
0474 file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[0]);
0475 }
0476
0477
0478
0479 class ROOTFilePB::_Internal {
0480 public:
0481 };
0482
0483 ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned)
0484 : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
0485 SharedCtor(arena, is_message_owned);
0486
0487 }
0488 ROOTFilePB::ROOTFilePB(const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message() {
0489 ROOTFilePB* const _this = this;
0490 (void)_this;
0491 new (&_impl_) Impl_{decltype(_impl_.histo_){from._impl_.histo_}, {}};
0492
0493 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
0494
0495 }
0496
0497 inline void ROOTFilePB::SharedCtor(::_pb::Arena* arena, bool is_message_owned) {
0498 (void)arena;
0499 (void)is_message_owned;
0500 new (&_impl_) Impl_{decltype(_impl_.histo_){arena}, {}};
0501 }
0502
0503 ROOTFilePB::~ROOTFilePB() {
0504
0505 if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
0506 (void)arena;
0507 return;
0508 }
0509 SharedDtor();
0510 }
0511
0512 inline void ROOTFilePB::SharedDtor() {
0513 GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
0514 _impl_.histo_.~RepeatedPtrField();
0515 }
0516
0517 void ROOTFilePB::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); }
0518
0519 void ROOTFilePB::Clear() {
0520
0521 uint32_t cached_has_bits = 0;
0522
0523 (void)cached_has_bits;
0524
0525 _impl_.histo_.Clear();
0526 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
0527 }
0528
0529 const char* ROOTFilePB::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
0530 #define CHK_(x) \
0531 if (PROTOBUF_PREDICT_FALSE(!(x))) \
0532 goto failure
0533 while (!ctx->Done(&ptr)) {
0534 uint32_t tag;
0535 ptr = ::_pbi::ReadTag(ptr, &tag);
0536 switch (tag >> 3) {
0537
0538 case 1:
0539 if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
0540 ptr -= 1;
0541 do {
0542 ptr += 1;
0543 ptr = ctx->ParseMessage(_internal_add_histo(), ptr);
0544 CHK_(ptr);
0545 if (!ctx->DataAvailable(ptr))
0546 break;
0547 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
0548 } else
0549 goto handle_unusual;
0550 continue;
0551 default:
0552 goto handle_unusual;
0553 }
0554 handle_unusual:
0555 if ((tag == 0) || ((tag & 7) == 4)) {
0556 CHK_(ptr);
0557 ctx->SetLastTag(tag);
0558 goto message_done;
0559 }
0560 ptr = UnknownFieldParse(
0561 tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
0562 CHK_(ptr != nullptr);
0563 }
0564 message_done:
0565 return ptr;
0566 failure:
0567 ptr = nullptr;
0568 goto message_done;
0569 #undef CHK_
0570 }
0571
0572 uint8_t* ROOTFilePB::_InternalSerialize(uint8_t* target,
0573 ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
0574
0575 uint32_t cached_has_bits = 0;
0576 (void)cached_has_bits;
0577
0578
0579 for (unsigned i = 0, n = static_cast<unsigned>(this->_internal_histo_size()); i < n; i++) {
0580 const auto& repfield = this->_internal_histo(i);
0581 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(
0582 1, repfield, repfield.GetCachedSize(), target, stream);
0583 }
0584
0585 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
0586 target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
0587 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
0588 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
0589 target,
0590 stream);
0591 }
0592
0593 return target;
0594 }
0595
0596 size_t ROOTFilePB::ByteSizeLong() const {
0597
0598 size_t total_size = 0;
0599
0600 uint32_t cached_has_bits = 0;
0601
0602 (void)cached_has_bits;
0603
0604
0605 total_size += 1UL * this->_internal_histo_size();
0606 for (const auto& msg : this->_impl_.histo_) {
0607 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
0608 }
0609
0610 return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
0611 }
0612
0613 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB::_class_data_ = {
0614 ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB::MergeImpl};
0615 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB::GetClassData() const { return &_class_data_; }
0616
0617 void ROOTFilePB::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg,
0618 const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
0619 auto* const _this = static_cast<ROOTFilePB*>(&to_msg);
0620 auto& from = static_cast<const ROOTFilePB&>(from_msg);
0621
0622 GOOGLE_DCHECK_NE(&from, _this);
0623 uint32_t cached_has_bits = 0;
0624 (void)cached_has_bits;
0625
0626 _this->_impl_.histo_.MergeFrom(from._impl_.histo_);
0627 _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
0628 }
0629
0630 void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
0631
0632 if (&from == this)
0633 return;
0634 Clear();
0635 MergeFrom(from);
0636 }
0637
0638 bool ROOTFilePB::IsInitialized() const {
0639 if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.histo_))
0640 return false;
0641 return true;
0642 }
0643
0644 void ROOTFilePB::InternalSwap(ROOTFilePB* other) {
0645 using std::swap;
0646 _internal_metadata_.InternalSwap(&other->_internal_metadata_);
0647 _impl_.histo_.InternalSwap(&other->_impl_.histo_);
0648 }
0649
0650 ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata() const {
0651 return ::_pbi::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter,
0652 &descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once,
0653 file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[1]);
0654 }
0655
0656
0657 }
0658 PROTOBUF_NAMESPACE_OPEN
0659 template <>
0660 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB_Histo* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB_Histo>(
0661 Arena* arena) {
0662 return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB_Histo>(arena);
0663 }
0664 template <>
0665 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB>(Arena* arena) {
0666 return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB>(arena);
0667 }
0668 PROTOBUF_NAMESPACE_CLOSE
0669
0670
0671 #include <google/protobuf/port_undef.inc>