CMS 3D CMS Logo

ROOTFilePB.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: DQMServices/Core/src/ROOTFilePB.proto
3 
5 
6 #include <algorithm>
7 
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>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 
18 PROTOBUF_PRAGMA_INIT_SEG
19 
20 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
21 namespace _pbi = _pb::internal;
22 
23 namespace dqmstorepb {
24  PROTOBUF_CONSTEXPR ROOTFilePB_Histo::ROOTFilePB_Histo(::_pbi::ConstantInitialized)
25  : _impl_{
26  /*decltype(_impl_._has_bits_)*/ {},
27  /*decltype(_impl_._cached_size_)*/ {},
28  /*decltype(_impl_.full_pathname_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}},
29  /*decltype(_impl_.streamed_histo_)*/ {&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}},
30  /*decltype(_impl_.size_)*/ 0u,
31  /*decltype(_impl_.flags_)*/ 0u} {}
33  PROTOBUF_CONSTEXPR ROOTFilePB_HistoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
35  union {
37  };
38  };
39  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePB_HistoDefaultTypeInternal
41  PROTOBUF_CONSTEXPR ROOTFilePB::ROOTFilePB(::_pbi::ConstantInitialized)
42  : _impl_{/*decltype(_impl_.histo_)*/ {}, /*decltype(_impl_._cached_size_)*/ {}} {}
44  PROTOBUF_CONSTEXPR ROOTFilePBDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
46  union {
48  };
49  };
50  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ROOTFilePBDefaultTypeInternal
52 } // namespace dqmstorepb
54 static constexpr ::_pb::EnumDescriptor const**
56 static constexpr ::_pb::ServiceDescriptor const**
58 
60  protodesc_cold) = {
61  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_._has_bits_),
62  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_),
63  ~0u, // no _extensions_
64  ~0u, // no _oneof_case_
65  ~0u, // no _weak_field_map_
66  ~0u, // no _inlined_string_donated_
67  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.full_pathname_),
68  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.size_),
69  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.streamed_histo_),
70  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _impl_.flags_),
71  0,
72  2,
73  1,
74  3,
75  ~0u, // no _has_bits_
76  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_),
77  ~0u, // no _extensions_
78  ~0u, // no _oneof_case_
79  ~0u, // no _weak_field_map_
80  ~0u, // no _inlined_string_donated_
81  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _impl_.histo_),
82 };
83 static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
84  {0, 10, -1, sizeof(::dqmstorepb::ROOTFilePB_Histo)},
85  {14, -1, -1, sizeof(::dqmstorepb::ROOTFilePB)},
86 };
87 
88 static const ::_pb::Message* const file_default_instances[] = {
91 };
92 
93 const char descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[] PROTOBUF_SECTION_VARIABLE(
94  protodesc_cold) =
95  "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
96  "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
97  "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
98  "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
99  "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r";
102  false,
103  false,
104  196,
105  descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
106  "DQMServices/Core/src/ROOTFilePB.proto",
108  nullptr,
109  0,
110  2,
111  schemas,
117 };
118 PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable*
121 }
122 
123 // Force running AddDescriptors() at dynamic initialization time.
124 PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner
125  dynamic_init_dummy_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto(
127 namespace dqmstorepb {
128 
129  // ===================================================================
130 
132  public:
133  using HasBits = decltype(std::declval<ROOTFilePB_Histo>()._impl_._has_bits_);
134  static void set_has_full_pathname(HasBits* has_bits) { (*has_bits)[0] |= 1u; }
135  static void set_has_size(HasBits* has_bits) { (*has_bits)[0] |= 4u; }
136  static void set_has_streamed_histo(HasBits* has_bits) { (*has_bits)[0] |= 2u; }
137  static void set_has_flags(HasBits* has_bits) { (*has_bits)[0] |= 8u; }
138  static bool MissingRequiredFields(const HasBits& has_bits) {
139  return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
140  }
141  };
142 
143  ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned)
144  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
145  SharedCtor(arena, is_message_owned);
146  // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB.Histo)
147  }
148  ROOTFilePB_Histo::ROOTFilePB_Histo(const ROOTFilePB_Histo& from) : ::PROTOBUF_NAMESPACE_ID::Message() {
149  ROOTFilePB_Histo* const _this = this;
150  (void)_this;
151  new (&_impl_) Impl_{decltype(_impl_._has_bits_){from._impl_._has_bits_},
152  /*decltype(_impl_._cached_size_)*/ {},
153  decltype(_impl_.full_pathname_){},
154  decltype(_impl_.streamed_histo_){},
155  decltype(_impl_.size_){},
156  decltype(_impl_.flags_){}};
157 
158  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
159  _impl_.full_pathname_.InitDefault();
160 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
161  _impl_.full_pathname_.Set("", GetArenaForAllocation());
162 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
163  if (from._internal_has_full_pathname()) {
164  _this->_impl_.full_pathname_.Set(from._internal_full_pathname(), _this->GetArenaForAllocation());
165  }
166  _impl_.streamed_histo_.InitDefault();
167 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
168  _impl_.streamed_histo_.Set("", GetArenaForAllocation());
169 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
170  if (from._internal_has_streamed_histo()) {
171  _this->_impl_.streamed_histo_.Set(from._internal_streamed_histo(), _this->GetArenaForAllocation());
172  }
173  ::memcpy(&_impl_.size_,
174  &from._impl_.size_,
175  static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flags_) - reinterpret_cast<char*>(&_impl_.size_)) +
176  sizeof(_impl_.flags_));
177  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo)
178  }
179 
180  inline void ROOTFilePB_Histo::SharedCtor(::_pb::Arena* arena, bool is_message_owned) {
181  (void)arena;
182  (void)is_message_owned;
183  new (&_impl_) Impl_{decltype(_impl_._has_bits_){},
184  /*decltype(_impl_._cached_size_)*/ {},
185  decltype(_impl_.full_pathname_){},
186  decltype(_impl_.streamed_histo_){},
187  decltype(_impl_.size_){0u},
188  decltype(_impl_.flags_){0u}};
189  _impl_.full_pathname_.InitDefault();
190 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
191  _impl_.full_pathname_.Set("", GetArenaForAllocation());
192 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
193  _impl_.streamed_histo_.InitDefault();
194 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
195  _impl_.streamed_histo_.Set("", GetArenaForAllocation());
196 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
197  }
198 
200  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo)
201  if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
202  (void)arena;
203  return;
204  }
205  SharedDtor();
206  }
207 
209  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
210  _impl_.full_pathname_.Destroy();
211  _impl_.streamed_histo_.Destroy();
212  }
213 
215 
217  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo)
218  uint32_t cached_has_bits = 0;
219  // Prevent compiler warnings about cached_has_bits being unused
220  (void)cached_has_bits;
221 
222  cached_has_bits = _impl_._has_bits_[0];
223  if (cached_has_bits & 0x00000003u) {
224  if (cached_has_bits & 0x00000001u) {
225  _impl_.full_pathname_.ClearNonDefaultToEmpty();
226  }
227  if (cached_has_bits & 0x00000002u) {
228  _impl_.streamed_histo_.ClearNonDefaultToEmpty();
229  }
230  }
231  if (cached_has_bits & 0x0000000cu) {
232  ::memset(&_impl_.size_,
233  0,
234  static_cast<size_t>(reinterpret_cast<char*>(&_impl_.flags_) - reinterpret_cast<char*>(&_impl_.size_)) +
235  sizeof(_impl_.flags_));
236  }
237  _impl_._has_bits_.Clear();
238  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
239  }
240 
241  const char* ROOTFilePB_Histo::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
242 #define CHK_(x) \
243  if (PROTOBUF_PREDICT_FALSE(!(x))) \
244  goto failure
245  _Internal::HasBits has_bits{};
246  while (!ctx->Done(&ptr)) {
247  uint32_t tag;
248  ptr = ::_pbi::ReadTag(ptr, &tag);
249  switch (tag >> 3) {
250  // required string full_pathname = 1;
251  case 1:
252  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
254  ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
255  CHK_(ptr);
256 #ifndef NDEBUG
257  ::_pbi::VerifyUTF8(str, "dqmstorepb.ROOTFilePB.Histo.full_pathname");
258 #endif // !NDEBUG
259  } else
260  goto handle_unusual;
261  continue;
262  // required uint32 size = 2;
263  case 2:
264  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
265  _Internal::set_has_size(&has_bits);
266  _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
267  CHK_(ptr);
268  } else
269  goto handle_unusual;
270  continue;
271  // required bytes streamed_histo = 3;
272  case 3:
273  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
275  ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
276  CHK_(ptr);
277  } else
278  goto handle_unusual;
279  continue;
280  // required uint32 flags = 4;
281  case 4:
282  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
283  _Internal::set_has_flags(&has_bits);
284  _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
285  CHK_(ptr);
286  } else
287  goto handle_unusual;
288  continue;
289  default:
290  goto handle_unusual;
291  } // switch
292  handle_unusual:
293  if ((tag == 0) || ((tag & 7) == 4)) {
294  CHK_(ptr);
295  ctx->SetLastTag(tag);
296  goto message_done;
297  }
298  ptr = UnknownFieldParse(
299  tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
300  CHK_(ptr != nullptr);
301  } // while
302  message_done:
303  _impl_._has_bits_.Or(has_bits);
304  return ptr;
305  failure:
306  ptr = nullptr;
307  goto message_done;
308 #undef CHK_
309  }
310 
312  ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
313  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo)
314  uint32_t cached_has_bits = 0;
315  (void)cached_has_bits;
316 
317  cached_has_bits = _impl_._has_bits_[0];
318  // required string full_pathname = 1;
319  if (cached_has_bits & 0x00000001u) {
320  ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
321  this->_internal_full_pathname().data(),
322  static_cast<int>(this->_internal_full_pathname().length()),
323  ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
324  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
325  target = stream->WriteStringMaybeAliased(1, this->_internal_full_pathname(), target);
326  }
327 
328  // required uint32 size = 2;
329  if (cached_has_bits & 0x00000004u) {
330  target = stream->EnsureSpace(target);
331  target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target);
332  }
333 
334  // required bytes streamed_histo = 3;
335  if (cached_has_bits & 0x00000002u) {
336  target = stream->WriteBytesMaybeAliased(3, this->_internal_streamed_histo(), target);
337  }
338 
339  // required uint32 flags = 4;
340  if (cached_has_bits & 0x00000008u) {
341  target = stream->EnsureSpace(target);
342  target = ::_pbi::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(), target);
343  }
344 
345  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
346  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
347  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
348  ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
349  target,
350  stream);
351  }
352  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB.Histo)
353  return target;
354  }
355 
357  // @@protoc_insertion_point(required_fields_byte_size_fallback_start:dqmstorepb.ROOTFilePB.Histo)
358  size_t total_size = 0;
359 
361  // required string full_pathname = 1;
362  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
363  }
364 
366  // required bytes streamed_histo = 3;
367  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
368  }
369 
370  if (_internal_has_size()) {
371  // required uint32 size = 2;
372  total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
373  }
374 
375  if (_internal_has_flags()) {
376  // required uint32 flags = 4;
377  total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
378  }
379 
380  return total_size;
381  }
383  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo)
384  size_t total_size = 0;
385 
386  if (((_impl_._has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
387  // required string full_pathname = 1;
388  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
389 
390  // required bytes streamed_histo = 3;
391  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
392 
393  // required uint32 size = 2;
394  total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_size());
395 
396  // required uint32 flags = 4;
397  total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
398 
399  } else {
400  total_size += RequiredFieldsByteSizeFallback();
401  }
402  uint32_t cached_has_bits = 0;
403  // Prevent compiler warnings about cached_has_bits being unused
404  (void)cached_has_bits;
405 
406  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
407  }
408 
409  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB_Histo::_class_data_ = {
410  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB_Histo::MergeImpl};
411  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB_Histo::GetClassData() const { return &_class_data_; }
412 
413  void ROOTFilePB_Histo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg,
414  const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
415  auto* const _this = static_cast<ROOTFilePB_Histo*>(&to_msg);
416  auto& from = static_cast<const ROOTFilePB_Histo&>(from_msg);
417  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
418  GOOGLE_DCHECK_NE(&from, _this);
419  uint32_t cached_has_bits = 0;
420  (void)cached_has_bits;
421 
422  cached_has_bits = from._impl_._has_bits_[0];
423  if (cached_has_bits & 0x0000000fu) {
424  if (cached_has_bits & 0x00000001u) {
425  _this->_internal_set_full_pathname(from._internal_full_pathname());
426  }
427  if (cached_has_bits & 0x00000002u) {
428  _this->_internal_set_streamed_histo(from._internal_streamed_histo());
429  }
430  if (cached_has_bits & 0x00000004u) {
431  _this->_impl_.size_ = from._impl_.size_;
432  }
433  if (cached_has_bits & 0x00000008u) {
434  _this->_impl_.flags_ = from._impl_.flags_;
435  }
436  _this->_impl_._has_bits_[0] |= cached_has_bits;
437  }
438  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
439  }
440 
442  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
443  if (&from == this)
444  return;
445  Clear();
446  MergeFrom(from);
447  }
448 
451  return false;
452  return true;
453  }
454 
456  using std::swap;
457  auto* lhs_arena = GetArenaForAllocation();
458  auto* rhs_arena = other->GetArenaForAllocation();
459  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
460  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
461  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
462  &_impl_.full_pathname_, lhs_arena, &other->_impl_.full_pathname_, rhs_arena);
463  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
464  &_impl_.streamed_histo_, lhs_arena, &other->_impl_.streamed_histo_, rhs_arena);
465  ::PROTOBUF_NAMESPACE_ID::internal::memswap<PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, _impl_.flags_) +
467  PROTOBUF_FIELD_OFFSET(ROOTFilePB_Histo, _impl_.size_)>(
468  reinterpret_cast<char*>(&_impl_.size_), reinterpret_cast<char*>(&other->_impl_.size_));
469  }
470 
471  ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata() const {
475  }
476 
477  // ===================================================================
478 
480  public:
481  };
482 
483  ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned)
484  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
485  SharedCtor(arena, is_message_owned);
486  // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB)
487  }
488  ROOTFilePB::ROOTFilePB(const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message() {
489  ROOTFilePB* const _this = this;
490  (void)_this;
491  new (&_impl_) Impl_{decltype(_impl_.histo_){from._impl_.histo_}, /*decltype(_impl_._cached_size_)*/ {}};
492 
493  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
494  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB)
495  }
496 
497  inline void ROOTFilePB::SharedCtor(::_pb::Arena* arena, bool is_message_owned) {
498  (void)arena;
499  (void)is_message_owned;
500  new (&_impl_) Impl_{decltype(_impl_.histo_){arena}, /*decltype(_impl_._cached_size_)*/ {}};
501  }
502 
504  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB)
505  if (auto* arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
506  (void)arena;
507  return;
508  }
509  SharedDtor();
510  }
511 
512  inline void ROOTFilePB::SharedDtor() {
513  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
514  _impl_.histo_.~RepeatedPtrField();
515  }
516 
517  void ROOTFilePB::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); }
518 
520  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB)
521  uint32_t cached_has_bits = 0;
522  // Prevent compiler warnings about cached_has_bits being unused
523  (void)cached_has_bits;
524 
525  _impl_.histo_.Clear();
526  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
527  }
528 
529  const char* ROOTFilePB::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
530 #define CHK_(x) \
531  if (PROTOBUF_PREDICT_FALSE(!(x))) \
532  goto failure
533  while (!ctx->Done(&ptr)) {
534  uint32_t tag;
535  ptr = ::_pbi::ReadTag(ptr, &tag);
536  switch (tag >> 3) {
537  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
538  case 1:
539  if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
540  ptr -= 1;
541  do {
542  ptr += 1;
543  ptr = ctx->ParseMessage(_internal_add_histo(), ptr);
544  CHK_(ptr);
545  if (!ctx->DataAvailable(ptr))
546  break;
547  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
548  } else
549  goto handle_unusual;
550  continue;
551  default:
552  goto handle_unusual;
553  } // switch
554  handle_unusual:
555  if ((tag == 0) || ((tag & 7) == 4)) {
556  CHK_(ptr);
557  ctx->SetLastTag(tag);
558  goto message_done;
559  }
560  ptr = UnknownFieldParse(
561  tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
562  CHK_(ptr != nullptr);
563  } // while
564  message_done:
565  return ptr;
566  failure:
567  ptr = nullptr;
568  goto message_done;
569 #undef CHK_
570  }
571 
573  ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
574  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB)
575  uint32_t cached_has_bits = 0;
576  (void)cached_has_bits;
577 
578  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
579  for (unsigned i = 0, n = static_cast<unsigned>(this->_internal_histo_size()); i < n; i++) {
580  const auto& repfield = this->_internal_histo(i);
581  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(
582  1, repfield, repfield.GetCachedSize(), target, stream);
583  }
584 
585  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
586  target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
587  _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
588  ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance),
589  target,
590  stream);
591  }
592  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB)
593  return target;
594  }
595 
596  size_t ROOTFilePB::ByteSizeLong() const {
597  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB)
598  size_t total_size = 0;
599 
600  uint32_t cached_has_bits = 0;
601  // Prevent compiler warnings about cached_has_bits being unused
602  (void)cached_has_bits;
603 
604  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
605  total_size += 1UL * this->_internal_histo_size();
606  for (const auto& msg : this->_impl_.histo_) {
607  total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
608  }
609 
610  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
611  }
612 
613  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ROOTFilePB::_class_data_ = {
614  ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, ROOTFilePB::MergeImpl};
615  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData* ROOTFilePB::GetClassData() const { return &_class_data_; }
616 
617  void ROOTFilePB::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg,
618  const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
619  auto* const _this = static_cast<ROOTFilePB*>(&to_msg);
620  auto& from = static_cast<const ROOTFilePB&>(from_msg);
621  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB)
622  GOOGLE_DCHECK_NE(&from, _this);
623  uint32_t cached_has_bits = 0;
624  (void)cached_has_bits;
625 
626  _this->_impl_.histo_.MergeFrom(from._impl_.histo_);
627  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
628  }
629 
630  void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
631  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB)
632  if (&from == this)
633  return;
634  Clear();
635  MergeFrom(from);
636  }
637 
639  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(_impl_.histo_))
640  return false;
641  return true;
642  }
643 
645  using std::swap;
646  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
647  _impl_.histo_.InternalSwap(&other->_impl_.histo_);
648  }
649 
650  ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata() const {
654  }
655 
656  // @@protoc_insertion_point(namespace_scope)
657 } // namespace dqmstorepb
658 PROTOBUF_NAMESPACE_OPEN
659 template <>
660 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB_Histo* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB_Histo>(
661  Arena* arena) {
662  return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB_Histo>(arena);
663 }
664 template <>
665 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB>(Arena* arena) {
666  return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB>(arena);
667 }
668 PROTOBUF_NAMESPACE_CLOSE
669 
670 // @@protoc_insertion_point(global_scope)
671 #include <google/protobuf/port_undef.inc>
const uint32_t TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets [] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
friend void swap(ROOTFilePB_Histo &a, ROOTFilePB_Histo &b)
size_t ByteSizeLong() const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
void CopyFrom(const ROOTFilePB &from)
static void set_has_flags(HasBits *has_bits)
decltype(std::declval< ROOTFilePB_Histo >()._impl_._has_bits_) HasBits
std::string * _internal_mutable_full_pathname()
void SetCachedSize(int size) const final
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned)
const ::dqmstorepb::ROOTFilePB_Histo & _internal_histo(int index) const
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
bool _internal_has_full_pathname() const
static const ::_pb::Message *const file_default_instances[]
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
uint32_t _internal_flags() const
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:112
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
void MergeFrom(const ROOTFilePB_Histo &from)
const ::_pbi::DescriptorTable descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena *arena, bool is_message_owned)
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const ClassData _class_data_
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
uint8_t * _InternalSerialize(uint8_t *target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream *stream) const final
int _internal_histo_size() const
PROTOBUF_CONSTEXPR ROOTFilePBDefaultTypeInternal()
void InternalSwap(ROOTFilePB *other)
static constexpr ::_pb::EnumDescriptor const ** file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
const std::string & _internal_full_pathname() const
static const ClassData _class_data_
static constexpr ::_pb::ServiceDescriptor const ** file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
#define CHK_(x)
std::string * _internal_mutable_streamed_histo()
static void set_has_full_pathname(HasBits *has_bits)
void SetCachedSize(int size) const final
::_pb::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2]
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
::PROTOBUF_NAMESPACE_ID::internal::HasBits< 1 > _has_bits_
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message &to_msg, const ::PROTOBUF_NAMESPACE_ID::Message &from_msg)
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr full_pathname_
void InternalSwap(ROOTFilePB_Histo *other)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<::dqmstorepb::ROOTFilePB_Histo > histo_
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr streamed_histo_
static void set_has_size(HasBits *has_bits)
uint32_t _internal_size() const
size_t ByteSizeLong() const final
bool IsInitialized() const final
tuple msg
Definition: mps_check.py:286
static void set_has_streamed_histo(HasBits *has_bits)
::_pbi::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
::dqmstorepb::ROOTFilePB_Histo * _internal_add_histo()
void MergeFrom(const ROOTFilePB &from)
ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message &to_msg, const ::PROTOBUF_NAMESPACE_ID::Message &from_msg)
bool _internal_has_streamed_histo() const
static bool MissingRequiredFields(const HasBits &has_bits)
PROTOBUF_ATTRIBUTE_WEAKconst ::_pbi::DescriptorTable * descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_getter()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
#define str(s)
bool IsInitialized() const final
const char * _InternalParse(const char *ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext *ctx) final
size_t RequiredFieldsByteSizeFallback() const
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData * GetClassData() const final
ROOTFilePB_HistoDefaultTypeInternal _ROOTFilePB_Histo_default_instance_
const std::string & _internal_streamed_histo() const
void CopyFrom(const ROOTFilePB_Histo &from)