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 namespace dqmstorepb {
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),
23  size_(0u),
24  flags_(0u) {}
27  : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
29  union {
30  ROOTFilePB_Histo _instance;
31  };
32  };
33  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePB_HistoDefaultTypeInternal
35  constexpr ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : histo_() {}
37  constexpr ROOTFilePBDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
39  union {
40  ROOTFilePB _instance;
41  };
42  };
43  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_;
44 } // namespace dqmstorepb
45 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2];
46 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const**
48 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const**
50 
53  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _has_bits_),
54  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_),
55  ~0u, // no _extensions_
56  ~0u, // no _oneof_case_
57  ~0u, // no _weak_field_map_
58  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, full_pathname_),
59  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, size_),
60  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, streamed_histo_),
61  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, flags_),
62  0,
63  2,
64  1,
65  3,
66  ~0u, // no _has_bits_
67  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_),
68  ~0u, // no _extensions_
69  ~0u, // no _oneof_case_
70  ~0u, // no _weak_field_map_
71  PROTOBUF_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, histo_),
72 };
73 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
74  {0, 9, sizeof(::dqmstorepb::ROOTFilePB_Histo)},
75  {13, -1, sizeof(::dqmstorepb::ROOTFilePB)},
76 };
77 
78 static ::PROTOBUF_NAMESPACE_ID::Message const* const file_default_instances[] = {
79  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::dqmstorepb::_ROOTFilePB_Histo_default_instance_),
80  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::dqmstorepb::_ROOTFilePB_default_instance_),
81 };
82 
83 const char descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[] PROTOBUF_SECTION_VARIABLE(
84  protodesc_cold) =
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";
90 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once;
91 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable
93  false,
94  false,
95  196,
96  descriptor_table_protodef_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto,
97  "DQMServices/Core/src/ROOTFilePB.proto",
99  nullptr,
100  0,
101  2,
102  schemas,
108 };
109 PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata
111  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto);
113 }
114 
115 // Force running AddDescriptors() at dynamic initialization time.
116 PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner
117  dynamic_init_dummy_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto(
119 namespace dqmstorepb {
120 
121  // ===================================================================
122 
124  public:
125  using HasBits = decltype(std::declval<ROOTFilePB_Histo>()._has_bits_);
126  static void set_has_full_pathname(HasBits* has_bits) { (*has_bits)[0] |= 1u; }
127  static void set_has_size(HasBits* has_bits) { (*has_bits)[0] |= 4u; }
128  static void set_has_streamed_histo(HasBits* has_bits) { (*has_bits)[0] |= 2u; }
129  static void set_has_flags(HasBits* has_bits) { (*has_bits)[0] |= 8u; }
130  static bool MissingRequiredFields(const HasBits& has_bits) {
131  return ((has_bits[0] & 0x0000000f) ^ 0x0000000f) != 0;
132  }
133  };
134 
135  ROOTFilePB_Histo::ROOTFilePB_Histo(::PROTOBUF_NAMESPACE_ID::Arena* arena) : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
136  SharedCtor();
137  RegisterArenaDtor(arena);
138  // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB.Histo)
139  }
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(),
147  GetArena());
148  }
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(),
153  GetArena());
154  }
155  ::memcpy(&size_,
156  &from.size_,
157  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
158  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo)
159  }
160 
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)),
166  0,
167  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
168  }
169 
170  ROOTFilePB_Histo::~ROOTFilePB_Histo() {
171  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo)
172  SharedDtor();
173  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
174  }
175 
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());
180  }
181 
182  void ROOTFilePB_Histo::ArenaDtor(void* object) {
183  ROOTFilePB_Histo* _this = reinterpret_cast<ROOTFilePB_Histo*>(object);
184  (void)_this;
185  }
186  void ROOTFilePB_Histo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {}
187  void ROOTFilePB_Histo::SetCachedSize(int size) const { _cached_size_.Set(size); }
188 
189  void ROOTFilePB_Histo::Clear() {
190  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo)
191  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
192  // Prevent compiler warnings about cached_has_bits being unused
193  (void)cached_has_bits;
194 
195  cached_has_bits = _has_bits_[0];
196  if (cached_has_bits & 0x00000003u) {
197  if (cached_has_bits & 0x00000001u) {
198  full_pathname_.ClearNonDefaultToEmpty();
199  }
200  if (cached_has_bits & 0x00000002u) {
201  streamed_histo_.ClearNonDefaultToEmpty();
202  }
203  }
204  if (cached_has_bits & 0x0000000cu) {
205  ::memset(
206  &size_,
207  0,
208  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
209  }
210  _has_bits_.Clear();
211  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
212  }
213 
214  const char* ROOTFilePB_Histo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
215 #define CHK_(x) \
216  if (PROTOBUF_PREDICT_FALSE(!(x))) \
217  goto failure
218  _Internal::HasBits has_bits{};
219  while (!ctx->Done(&ptr)) {
221  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
222  CHK_(ptr);
223  switch (tag >> 3) {
224  // required string full_pathname = 1;
225  case 1:
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);
229 #ifndef NDEBUG
230  ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "dqmstorepb.ROOTFilePB.Histo.full_pathname");
231 #endif // !NDEBUG
232  CHK_(ptr);
233  } else
234  goto handle_unusual;
235  continue;
236  // required uint32 size = 2;
237  case 2:
238  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
239  _Internal::set_has_size(&has_bits);
240  size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
241  CHK_(ptr);
242  } else
243  goto handle_unusual;
244  continue;
245  // required bytes streamed_histo = 3;
246  case 3:
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);
250  CHK_(ptr);
251  } else
252  goto handle_unusual;
253  continue;
254  // required uint32 flags = 4;
255  case 4:
256  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
257  _Internal::set_has_flags(&has_bits);
258  flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
259  CHK_(ptr);
260  } else
261  goto handle_unusual;
262  continue;
263  default: {
264  handle_unusual:
265  if ((tag & 7) == 4 || tag == 0) {
266  ctx->SetLastTag(tag);
267  goto success;
268  }
269  ptr = UnknownFieldParse(
270  tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
271  CHK_(ptr != nullptr);
272  continue;
273  }
274  } // switch
275  } // while
276  success:
277  _has_bits_.Or(has_bits);
278  return ptr;
279  failure:
280  ptr = nullptr;
281  goto success;
282 #undef CHK_
283  }
284 
285  ::PROTOBUF_NAMESPACE_ID::uint8* ROOTFilePB_Histo::_InternalSerialize(
286  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
287  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo)
288  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
289  (void)cached_has_bits;
290 
291  cached_has_bits = _has_bits_[0];
292  // required string full_pathname = 1;
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");
299  target = stream->WriteStringMaybeAliased(1, this->_internal_full_pathname(), target);
300  }
301 
302  // required uint32 size = 2;
303  if (cached_has_bits & 0x00000004u) {
304  target = stream->EnsureSpace(target);
305  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_size(), target);
306  }
307 
308  // required bytes streamed_histo = 3;
309  if (cached_has_bits & 0x00000002u) {
310  target = stream->WriteBytesMaybeAliased(3, this->_internal_streamed_histo(), target);
311  }
312 
313  // required uint32 flags = 4;
314  if (cached_has_bits & 0x00000008u) {
315  target = stream->EnsureSpace(target);
316  target =
317  ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_flags(), target);
318  }
319 
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),
324  target,
325  stream);
326  }
327  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB.Histo)
328  return target;
329  }
330 
331  size_t ROOTFilePB_Histo::RequiredFieldsByteSizeFallback() const {
332  // @@protoc_insertion_point(required_fields_byte_size_fallback_start:dqmstorepb.ROOTFilePB.Histo)
333  size_t total_size = 0;
334 
335  if (_internal_has_full_pathname()) {
336  // required string full_pathname = 1;
337  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
338  }
339 
340  if (_internal_has_streamed_histo()) {
341  // required bytes streamed_histo = 3;
342  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
343  }
344 
345  if (_internal_has_size()) {
346  // required uint32 size = 2;
347  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size());
348  }
349 
350  if (_internal_has_flags()) {
351  // required uint32 flags = 4;
352  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags());
353  }
354 
355  return total_size;
356  }
357  size_t ROOTFilePB_Histo::ByteSizeLong() const {
358  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo)
359  size_t total_size = 0;
360 
361  if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
362  // required string full_pathname = 1;
363  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(this->_internal_full_pathname());
364 
365  // required bytes streamed_histo = 3;
366  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(this->_internal_streamed_histo());
367 
368  // required uint32 size = 2;
369  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_size());
370 
371  // required uint32 flags = 4;
372  total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size(this->_internal_flags());
373 
374  } else {
375  total_size += RequiredFieldsByteSizeFallback();
376  }
377  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
378  // Prevent compiler warnings about cached_has_bits being unused
379  (void)cached_has_bits;
380 
381  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
382  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
383  _internal_metadata_, total_size, &_cached_size_);
384  }
385  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
386  SetCachedSize(cached_size);
387  return total_size;
388  }
389 
390  void ROOTFilePB_Histo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
391  // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
392  GOOGLE_DCHECK_NE(&from, this);
393  const ROOTFilePB_Histo* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ROOTFilePB_Histo>(&from);
394  if (source == nullptr) {
395  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB.Histo)
396  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
397  } else {
398  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB.Histo)
399  MergeFrom(*source);
400  }
401  }
402 
403  void ROOTFilePB_Histo::MergeFrom(const ROOTFilePB_Histo& from) {
404  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
405  GOOGLE_DCHECK_NE(&from, this);
406  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
407  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
408  (void)cached_has_bits;
409 
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());
414  }
415  if (cached_has_bits & 0x00000002u) {
416  _internal_set_streamed_histo(from._internal_streamed_histo());
417  }
418  if (cached_has_bits & 0x00000004u) {
419  size_ = from.size_;
420  }
421  if (cached_has_bits & 0x00000008u) {
422  flags_ = from.flags_;
423  }
424  _has_bits_[0] |= cached_has_bits;
425  }
426  }
427 
428  void ROOTFilePB_Histo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
429  // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
430  if (&from == this)
431  return;
432  Clear();
433  MergeFrom(from);
434  }
435 
436  void ROOTFilePB_Histo::CopyFrom(const ROOTFilePB_Histo& from) {
437  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
438  if (&from == this)
439  return;
440  Clear();
441  MergeFrom(from);
442  }
443 
444  bool ROOTFilePB_Histo::IsInitialized() const {
445  if (_Internal::MissingRequiredFields(_has_bits_))
446  return false;
447  return true;
448  }
449 
450  void ROOTFilePB_Histo::InternalSwap(ROOTFilePB_Histo* other) {
451  using std::swap;
452  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
453  swap(_has_bits_[0], other->_has_bits_[0]);
454  full_pathname_.Swap(
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_));
462  }
463 
464  ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB_Histo::GetMetadata() const { return GetMetadataStatic(); }
465 
466  // ===================================================================
467 
469  public:
470  };
471 
472  ROOTFilePB::ROOTFilePB(::PROTOBUF_NAMESPACE_ID::Arena* arena)
473  : ::PROTOBUF_NAMESPACE_ID::Message(arena), histo_(arena) {
474  SharedCtor();
475  RegisterArenaDtor(arena);
476  // @@protoc_insertion_point(arena_constructor:dqmstorepb.ROOTFilePB)
477  }
478  ROOTFilePB::ROOTFilePB(const ROOTFilePB& from) : ::PROTOBUF_NAMESPACE_ID::Message(), histo_(from.histo_) {
479  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
480  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB)
481  }
482 
483  void ROOTFilePB::SharedCtor() {}
484 
485  ROOTFilePB::~ROOTFilePB() {
486  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB)
487  SharedDtor();
488  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
489  }
490 
491  void ROOTFilePB::SharedDtor() { GOOGLE_DCHECK(GetArena() == nullptr); }
492 
493  void ROOTFilePB::ArenaDtor(void* object) {
494  ROOTFilePB* _this = reinterpret_cast<ROOTFilePB*>(object);
495  (void)_this;
496  }
497  void ROOTFilePB::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {}
498  void ROOTFilePB::SetCachedSize(int size) const { _cached_size_.Set(size); }
499 
500  void ROOTFilePB::Clear() {
501  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB)
502  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
503  // Prevent compiler warnings about cached_has_bits being unused
504  (void)cached_has_bits;
505 
506  histo_.Clear();
507  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
508  }
509 
510  const char* ROOTFilePB::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
511 #define CHK_(x) \
512  if (PROTOBUF_PREDICT_FALSE(!(x))) \
513  goto failure
514  while (!ctx->Done(&ptr)) {
516  ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
517  CHK_(ptr);
518  switch (tag >> 3) {
519  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
520  case 1:
521  if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
522  ptr -= 1;
523  do {
524  ptr += 1;
525  ptr = ctx->ParseMessage(_internal_add_histo(), ptr);
526  CHK_(ptr);
527  if (!ctx->DataAvailable(ptr))
528  break;
529  } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
530  } else
531  goto handle_unusual;
532  continue;
533  default: {
534  handle_unusual:
535  if ((tag & 7) == 4 || tag == 0) {
536  ctx->SetLastTag(tag);
537  goto success;
538  }
539  ptr = UnknownFieldParse(
540  tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx);
541  CHK_(ptr != nullptr);
542  continue;
543  }
544  } // switch
545  } // while
546  success:
547  return ptr;
548  failure:
549  ptr = nullptr;
550  goto success;
551 #undef CHK_
552  }
553 
554  ::PROTOBUF_NAMESPACE_ID::uint8* ROOTFilePB::_InternalSerialize(
555  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
556  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB)
557  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
558  (void)cached_has_bits;
559 
560  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
561  for (unsigned int i = 0, n = static_cast<unsigned int>(this->_internal_histo_size()); i < n; i++) {
562  target = stream->EnsureSpace(target);
563  target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::InternalWriteMessage(
564  1, this->_internal_histo(i), target, stream);
565  }
566 
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),
571  target,
572  stream);
573  }
574  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB)
575  return target;
576  }
577 
578  size_t ROOTFilePB::ByteSizeLong() const {
579  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB)
580  size_t total_size = 0;
581 
582  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
583  // Prevent compiler warnings about cached_has_bits being unused
584  (void)cached_has_bits;
585 
586  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
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);
590  }
591 
592  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
593  return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
594  _internal_metadata_, total_size, &_cached_size_);
595  }
596  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
597  SetCachedSize(cached_size);
598  return total_size;
599  }
600 
601  void ROOTFilePB::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
602  // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB)
603  GOOGLE_DCHECK_NE(&from, this);
604  const ROOTFilePB* source = ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ROOTFilePB>(&from);
605  if (source == nullptr) {
606  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB)
607  ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
608  } else {
609  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB)
610  MergeFrom(*source);
611  }
612  }
613 
614  void ROOTFilePB::MergeFrom(const ROOTFilePB& from) {
615  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB)
616  GOOGLE_DCHECK_NE(&from, this);
617  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
618  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
619  (void)cached_has_bits;
620 
621  histo_.MergeFrom(from.histo_);
622  }
623 
624  void ROOTFilePB::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
625  // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB)
626  if (&from == this)
627  return;
628  Clear();
629  MergeFrom(from);
630  }
631 
632  void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
633  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB)
634  if (&from == this)
635  return;
636  Clear();
637  MergeFrom(from);
638  }
639 
640  bool ROOTFilePB::IsInitialized() const {
641  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(histo_))
642  return false;
643  return true;
644  }
645 
646  void ROOTFilePB::InternalSwap(ROOTFilePB* other) {
647  using std::swap;
648  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
649  histo_.InternalSwap(&other->histo_);
650  }
651 
652  ::PROTOBUF_NAMESPACE_ID::Metadata ROOTFilePB::GetMetadata() const { return GetMetadataStatic(); }
653 
654  // @@protoc_insertion_point(namespace_scope)
655 } // namespace dqmstorepb
656 PROTOBUF_NAMESPACE_OPEN
657 template <>
658 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB_Histo* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB_Histo>(
659  Arena* arena) {
660  return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB_Histo>(arena);
661 }
662 template <>
663 PROTOBUF_NOINLINE ::dqmstorepb::ROOTFilePB* Arena::CreateMaybeMessage<::dqmstorepb::ROOTFilePB>(Arena* arena) {
664  return Arena::CreateMessageInternal<::dqmstorepb::ROOTFilePB>(arena);
665 }
666 PROTOBUF_NAMESPACE_CLOSE
667 
668 // @@protoc_insertion_point(global_scope)
669 #include <google/protobuf/port_undef.inc>
mps_fire.i
i
Definition: mps_fire.py:428
dqmstorepb::ROOTFilePBDefaultTypeInternal
Definition: ROOTFilePB.pb.cc:36
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
uint8
unsigned char uint8
Definition: MsgTools.h:11
descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
Definition: ROOTFilePB.pb.cc:92
dqmstorepb::_ROOTFilePB_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_
Definition: ROOTFilePB.pb.cc:43
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition: Association.h:117
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: HistoContainer.h:51
dqmstorepb::ROOTFilePBDefaultTypeInternal::ROOTFilePBDefaultTypeInternal
constexpr ROOTFilePBDefaultTypeInternal()
Definition: ROOTFilePB.pb.cc:37
dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal::ROOTFilePB_HistoDefaultTypeInternal
constexpr ROOTFilePB_HistoDefaultTypeInternal()
Definition: ROOTFilePB.pb.cc:26
CHK_
#define CHK_(x)
mps_check.msg
tuple msg
Definition: mps_check.py:285
dqmstorepb::ROOTFilePB_Histo::_Internal
Definition: ROOTFilePB.pb.cc:123
descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter
PROTOBUF_ATTRIBUTE_WEAK ::PROTOBUF_NAMESPACE_ID::Metadata descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_metadata_getter(int index)
Definition: ROOTFilePB.pb.cc:110
dqmstorepb::ROOTFilePB::_Internal
Definition: ROOTFilePB.pb.cc:468
uint32
unsigned int uint32
Definition: MsgTools.h:13
ROOTFilePB.pb.h
descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto_once
Definition: ROOTFilePB.pb.cc:90
dqmstorepb::ROOTFilePB_Histo::_Internal::MissingRequiredFields
static bool MissingRequiredFields(const HasBits &has_bits)
Definition: ROOTFilePB.pb.cc:130
file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto[2]
Definition: ROOTFilePB.pb.cc:45
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition: DataFrameContainer.h:209
source
static const std::string source
Definition: EdmProvDump.cc:47
str
#define str(s)
Definition: TestProcessor.cc:53
file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
Definition: ROOTFilePB.pb.cc:47
summarizeEdmComparisonLogfiles.success
success
Definition: summarizeEdmComparisonLogfiles.py:114
dqmstorepb::ROOTFilePB_Histo::_Internal::set_has_streamed_histo
static void set_has_streamed_histo(HasBits *has_bits)
Definition: ROOTFilePB.pb.cc:128
trackingPlots.other
other
Definition: trackingPlots.py:1464
dqmstorepb::ROOTFilePB_Histo::_Internal::set_has_full_pathname
static void set_has_full_pathname(HasBits *has_bits)
Definition: ROOTFilePB.pb.cc:126
file_default_instances
::PROTOBUF_NAMESPACE_ID::Message const *const file_default_instances[]
Definition: ROOTFilePB.pb.cc:78
dqmstorepb::ROOTFilePB
makeGlobalPositionRcd_cfg.tag
tag
Definition: makeGlobalPositionRcd_cfg.py:6
dqmstorepb::_ROOTFilePB_Histo_default_instance_
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ROOTFilePB_HistoDefaultTypeInternal _ROOTFilePB_Histo_default_instance_
Definition: ROOTFilePB.pb.cc:34
dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal::_instance
ROOTFilePB_Histo _instance
Definition: ROOTFilePB.pb.cc:30
dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal
Definition: ROOTFilePB.pb.cc:25
PROTOBUF_SECTION_VARIABLE
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
dqmstorepb::ROOTFilePB_Histo::_Internal::set_has_size
static void set_has_size(HasBits *has_bits)
Definition: ROOTFilePB.pb.cc:127
dqmstorepb::ROOTFilePB_Histo::_Internal::HasBits
decltype(std::declval< ROOTFilePB_Histo >()._has_bits_) HasBits
Definition: ROOTFilePB.pb.cc:125
TableStruct_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::offsets
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
Definition: ROOTFilePB.pb.h:51
dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal::~ROOTFilePB_HistoDefaultTypeInternal
~ROOTFilePB_HistoDefaultTypeInternal()
Definition: ROOTFilePB.pb.cc:28
file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
Definition: ROOTFilePB.pb.cc:49
dqmstorepb::ROOTFilePB_Histo::_Internal::set_has_flags
static void set_has_flags(HasBits *has_bits)
Definition: ROOTFilePB.pb.cc:129
dqmstorepb::ROOTFilePBDefaultTypeInternal::_instance
ROOTFilePB _instance
Definition: ROOTFilePB.pb.cc:40
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
dqmstorepb::ROOTFilePB_Histo
dqmstorepb
Definition: ROOTFilePB.pb.cc:19
internal
Definition: ROOTFilePB.pb.h:38
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
funct::void
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
filterCSVwithJSON.target
target
Definition: filterCSVwithJSON.py:32
dqmstorepb::ROOTFilePBDefaultTypeInternal::~ROOTFilePBDefaultTypeInternal
~ROOTFilePBDefaultTypeInternal()
Definition: ROOTFilePB.pb.cc:38
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443