8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
16 #include <google/protobuf/port_def.inc>
18 PROTOBUF_PRAGMA_INIT_SEG
20 constexpr ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
21 : full_pathname_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string),
22 streamed_histo_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string),
33 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePB_HistoDefaultTypeInternal
35 constexpr ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : histo_() {}
46 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor
const**
48 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor
const**
74 {0, 9,
sizeof(::dqmstorepb::ROOTFilePB_Histo)},
75 {13, -1,
sizeof(::dqmstorepb::ROOTFilePB)},
85 "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
86 "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
87 "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
88 "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
89 "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r";
91 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
96 descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
97 "DQMServices/Core/src/ROOTFilePB.proto",
109 PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
116 PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner
117 dynamic_init_dummy_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto(
125 using HasBits = decltype(std::declval<ROOTFilePB_Histo>()._has_bits_);
131 return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
135 ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
137 RegisterArenaDtor(arena);
140 ROOTFilePB_Histo::ROOTFilePB_Histo(
const ROOTFilePB_Histo& from)
141 : ::PROTOBUF_NAMESPACE_ID::Message(), _has_bits_(from._has_bits_) {
142 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
143 full_pathname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
144 if (from._internal_has_full_pathname()) {
145 full_pathname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
146 from._internal_full_pathname(),
149 streamed_histo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
150 if (from._internal_has_streamed_histo()) {
151 streamed_histo_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
152 from._internal_streamed_histo(),
157 static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) +
sizeof(flags_));
161 void ROOTFilePB_Histo::SharedCtor() {
162 full_pathname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
163 streamed_histo_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
164 ::memset(reinterpret_cast<char*>(
this) +
165 static_cast<size_t>(reinterpret_cast<char*>(&size_) - reinterpret_cast<char*>(
this)),
167 static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) +
sizeof(flags_));
170 ROOTFilePB_Histo::~ROOTFilePB_Histo() {
173 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
176 void ROOTFilePB_Histo::SharedDtor() {
177 GOOGLE_DCHECK(GetArena() ==
nullptr);
178 full_pathname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
179 streamed_histo_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
182 void ROOTFilePB_Histo::ArenaDtor(
void*
object) {
183 ROOTFilePB_Histo* _this = reinterpret_cast<ROOTFilePB_Histo*>(
object);
186 void ROOTFilePB_Histo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {}
187 void ROOTFilePB_Histo::SetCachedSize(
int size)
const { _cached_size_.Set(
size); }
189 void ROOTFilePB_Histo::Clear() {
193 (
void)cached_has_bits;
195 cached_has_bits = _has_bits_[0];
196 if (cached_has_bits & 0x00000003u) {
197 if (cached_has_bits & 0x00000001u) {
198 full_pathname_.ClearNonDefaultToEmpty();
200 if (cached_has_bits & 0x00000002u) {
201 streamed_histo_.ClearNonDefaultToEmpty();
204 if (cached_has_bits & 0x0000000cu) {
208 static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) +
sizeof(flags_));
211 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
214 const char* ROOTFilePB_Histo::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
216 if (PROTOBUF_PREDICT_FALSE(!(x))) \
219 while (!ctx->Done(&ptr)) {
221 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &
tag);
226 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(
tag) == 10)) {
227 auto str = _internal_mutable_full_pathname();
228 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(
str, ptr, ctx);
230 ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(
str,
"dqmstorepb.ROOTFilePB.Histo.full_pathname");
238 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(
tag) == 16)) {
240 size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
247 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(
tag) == 26)) {
248 auto str = _internal_mutable_streamed_histo();
249 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(
str, ptr, ctx);
256 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(
tag) == 32)) {
258 flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
265 if ((
tag & 7) == 4 ||
tag == 0) {
266 ctx->SetLastTag(
tag);
269 ptr = UnknownFieldParse(
270 tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
271 CHK_(ptr !=
nullptr);
277 _has_bits_.Or(has_bits);
289 (
void)cached_has_bits;
291 cached_has_bits = _has_bits_[0];
293 if (cached_has_bits & 0x00000001u) {
294 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
295 this->_internal_full_pathname().
data(),
296 static_cast<int>(this->_internal_full_pathname().length()),
297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
298 "dqmstorepb.ROOTFilePB.Histo.full_pathname");
303 if (cached_has_bits & 0x00000004u) {
305 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(),
target);
309 if (cached_has_bits & 0x00000002u) {
314 if (cached_has_bits & 0x00000008u) {
317 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(),
target);
320 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
321 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
322 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
323 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
331 size_t ROOTFilePB_Histo::RequiredFieldsByteSizeFallback()
const {
333 size_t total_size = 0;
335 if (_internal_has_full_pathname()) {
337 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
340 if (_internal_has_streamed_histo()) {
342 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
345 if (_internal_has_size()) {
347 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size());
350 if (_internal_has_flags()) {
352 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags());
357 size_t ROOTFilePB_Histo::ByteSizeLong()
const {
359 size_t total_size = 0;
361 if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) {
363 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
366 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
369 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size());
372 total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags());
375 total_size += RequiredFieldsByteSizeFallback();
379 (
void)cached_has_bits;
381 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
382 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
383 _internal_metadata_, total_size, &_cached_size_);
385 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
386 SetCachedSize(cached_size);
390 void ROOTFilePB_Histo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
392 GOOGLE_DCHECK_NE(&from,
this);
393 const ROOTFilePB_Histo*
source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ROOTFilePB_Histo>(&from);
396 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
403 void ROOTFilePB_Histo::MergeFrom(
const ROOTFilePB_Histo& from) {
405 GOOGLE_DCHECK_NE(&from,
this);
406 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
408 (
void)cached_has_bits;
410 cached_has_bits = from._has_bits_[0];
411 if (cached_has_bits & 0x0000000fu) {
412 if (cached_has_bits & 0x00000001u) {
413 _internal_set_full_pathname(from._internal_full_pathname());
415 if (cached_has_bits & 0x00000002u) {
416 _internal_set_streamed_histo(from._internal_streamed_histo());
418 if (cached_has_bits & 0x00000004u) {
421 if (cached_has_bits & 0x00000008u) {
422 flags_ = from.flags_;
424 _has_bits_[0] |= cached_has_bits;
428 void ROOTFilePB_Histo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
436 void ROOTFilePB_Histo::CopyFrom(
const ROOTFilePB_Histo& from) {
444 bool ROOTFilePB_Histo::IsInitialized()
const {
450 void ROOTFilePB_Histo::InternalSwap(ROOTFilePB_Histo*
other) {
452 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&
other->_internal_metadata_);
453 swap(_has_bits_[0],
other->_has_bits_[0]);
455 &
other->full_pathname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
456 streamed_histo_.Swap(
457 &
other->streamed_histo_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
458 ::PROTOBUF_NAMESPACE_ID::internal::memswap<PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, flags_) +
459 sizeof(ROOTFilePB_Histo::flags_) -
460 PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, size_)>(
461 reinterpret_cast<char*>(&size_), reinterpret_cast<char*>(&
other->size_));
464 ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata()
const {
return GetMetadataStatic(); }
472 ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena)
473 : ::PROTOBUF_NAMESPACE_ID::Message(arena), histo_(arena) {
475 RegisterArenaDtor(arena);
478 ROOTFilePB::ROOTFilePB(
const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message(), histo_(from.histo_) {
479 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
483 void ROOTFilePB::SharedCtor() {}
485 ROOTFilePB::~ROOTFilePB() {
488 _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
491 void ROOTFilePB::SharedDtor() { GOOGLE_DCHECK(GetArena() ==
nullptr); }
493 void ROOTFilePB::ArenaDtor(
void*
object) {
494 ROOTFilePB* _this = reinterpret_cast<ROOTFilePB*>(
object);
497 void ROOTFilePB::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {}
498 void ROOTFilePB::SetCachedSize(
int size)
const { _cached_size_.Set(
size); }
500 void ROOTFilePB::Clear() {
504 (
void)cached_has_bits;
507 _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
510 const char* ROOTFilePB::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
512 if (PROTOBUF_PREDICT_FALSE(!(x))) \
514 while (!ctx->Done(&ptr)) {
516 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &
tag);
521 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(
tag) == 10)) {
525 ptr = ctx->ParseMessage(_internal_add_histo(), ptr);
527 if (!ctx->DataAvailable(ptr))
529 }
while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
535 if ((
tag & 7) == 4 ||
tag == 0) {
536 ctx->SetLastTag(
tag);
539 ptr = UnknownFieldParse(
540 tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
541 CHK_(ptr !=
nullptr);
558 (
void)cached_has_bits;
561 for (
unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_histo_size());
i <
n;
i++) {
563 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(
567 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
568 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
569 _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
570 ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
578 size_t ROOTFilePB::ByteSizeLong()
const {
580 size_t total_size = 0;
584 (
void)cached_has_bits;
587 total_size += 1UL * this->_internal_histo_size();
588 for (
const auto&
msg : this->histo_) {
589 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
msg);
592 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
593 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
594 _internal_metadata_, total_size, &_cached_size_);
596 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
597 SetCachedSize(cached_size);
601 void ROOTFilePB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
603 GOOGLE_DCHECK_NE(&from,
this);
604 const ROOTFilePB*
source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ROOTFilePB>(&from);
607 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from,
this);
614 void ROOTFilePB::MergeFrom(
const ROOTFilePB& from) {
616 GOOGLE_DCHECK_NE(&from,
this);
617 _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
619 (
void)cached_has_bits;
621 histo_.MergeFrom(from.histo_);
624 void ROOTFilePB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
632 void ROOTFilePB::CopyFrom(
const ROOTFilePB& from) {
640 bool ROOTFilePB::IsInitialized()
const {
641 if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(histo_))
646 void ROOTFilePB::InternalSwap(ROOTFilePB*
other) {
648 _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&
other->_internal_metadata_);
649 histo_.InternalSwap(&
other->histo_);
652 ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata()
const {
return GetMetadataStatic(); }
656 PROTOBUF_NAMESPACE_OPEN
658 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB_Histo* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB_Histo>(
660 return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB_Histo>(arena);
663 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB>(Arena* arena) {
664 return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB>(arena);
666 PROTOBUF_NAMESPACE_CLOSE
669 #include <google/protobuf/port_undef.inc>