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/stubs/common.h>
9 #include <google/protobuf/stubs/port.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // This is a temporary google only hack
18 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19 #include "third_party/protobuf/version.h"
20 #endif
21 // @@protoc_insertion_point(includes)
22 namespace dqmstorepb {
24  public:
25  ::google::protobuf::internal::ExplicitlyConstructed<ROOTFilePB_Histo>
29  public:
30  ::google::protobuf::internal::ExplicitlyConstructed<ROOTFilePB>
33 } // namespace dqmstorepb
36  GOOGLE_PROTOBUF_VERIFY_VERSION;
37 
38 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
39  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
40 #else
41  ::google::protobuf::internal::InitProtobufDefaults();
42 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
43  {
45  new (ptr) ::dqmstorepb::ROOTFilePB_Histo();
46  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
47  }
49 }
50 
52  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
53  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROOTFilePB_HistoImpl);
54 }
55 
57  GOOGLE_PROTOBUF_VERIFY_VERSION;
58 
59 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
60  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
61 #else
62  ::google::protobuf::internal::InitProtobufDefaults();
63 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
65  {
67  new (ptr) ::dqmstorepb::ROOTFilePB();
68  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
69  }
71 }
72 
74  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
75  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROOTFilePBImpl);
76 }
77 
78 ::google::protobuf::Metadata file_level_metadata[2];
79 
81  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _has_bits_),
82  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_),
83  ~0u, // no _extensions_
84  ~0u, // no _oneof_case_
85  ~0u, // no _weak_field_map_
86  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, full_pathname_),
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, size_),
88  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, streamed_histo_),
89  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, flags_),
90  0,
91  2,
92  1,
93  3,
94  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _has_bits_),
95  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_),
96  ~0u, // no _extensions_
97  ~0u, // no _oneof_case_
98  ~0u, // no _weak_field_map_
99  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, histo_),
100  ~0u,
101 };
102 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
103  { 0, 9, sizeof(::dqmstorepb::ROOTFilePB_Histo)},
104  { 13, 19, sizeof(::dqmstorepb::ROOTFilePB)},
105 };
106 
107 static ::google::protobuf::Message const * const file_default_instances[] = {
108  reinterpret_cast<const ::google::protobuf::Message*>(&::dqmstorepb::_ROOTFilePB_Histo_default_instance_),
109  reinterpret_cast<const ::google::protobuf::Message*>(&::dqmstorepb::_ROOTFilePB_default_instance_),
110 };
111 
113  AddDescriptors();
114  ::google::protobuf::MessageFactory* factory = nullptr;
115  AssignDescriptors(
116  "DQMServices/Core/src/ROOTFilePB.proto", schemas, file_default_instances, TableStruct::offsets, factory,
117  file_level_metadata, NULL, NULL);
118 }
119 
121  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
122  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
123 }
124 
125 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
128  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
129 }
130 
132  InitDefaults();
133  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
134  "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
135  "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
136  "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
137  "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
138  "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r"
139  };
140  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
141  descriptor, 196);
142  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
143  "DQMServices/Core/src/ROOTFilePB.proto", &protobuf_RegisterTypes);
144 }
145 
147  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
148  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
149 }
150 // Force AddDescriptors() to be called at dynamic initialization time.
153  AddDescriptors();
154  }
156 } // namespace protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
157 namespace dqmstorepb {
158 
159 // ===================================================================
160 
162 }
163 #if !defined(_MSC_VER) || _MSC_VER >= 1900
168 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
169 
171  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
172  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
174  }
175  SharedCtor();
176  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB.Histo)
177 }
179  : ::google::protobuf::Message(),
181  _has_bits_(from._has_bits_),
182  _cached_size_(0) {
184  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
185  if (from.has_full_pathname()) {
186  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_pathname_);
187  }
188  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
189  if (from.has_streamed_histo()) {
190  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streamed_histo_);
191  }
192  ::memcpy(&size_, &from.size_,
193  static_cast<size_t>(reinterpret_cast<char*>(&flags_) -
194  reinterpret_cast<char*>(&size_)) + sizeof(flags_));
195  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo)
196 }
197 
199  _cached_size_ = 0;
200  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
201  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
202  ::memset(&size_, 0, static_cast<size_t>(
203  reinterpret_cast<char*>(&flags_) -
204  reinterpret_cast<char*>(&size_)) + sizeof(flags_));
205 }
206 
208  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo)
209  SharedDtor();
210 }
211 
213  full_pathname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
214  streamed_histo_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
215 }
216 
218  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
220  GOOGLE_SAFE_CONCURRENT_WRITES_END();
221 }
222 const ::google::protobuf::Descriptor* ROOTFilePB_Histo::descriptor() {
225 }
226 
229  return *internal_default_instance();
230 }
231 
232 ROOTFilePB_Histo* ROOTFilePB_Histo::New(::google::protobuf::Arena* arena) const {
234  if (arena != nullptr) {
235  arena->Own(n);
236  }
237  return n;
238 }
239 
241 // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo)
242  ::google::protobuf::uint32 cached_has_bits = 0;
243  // Prevent compiler warnings about cached_has_bits being unused
244  (void) cached_has_bits;
245 
246  cached_has_bits = _has_bits_[0];
247  if (cached_has_bits & 3u) {
248  if (cached_has_bits & 0x00000001u) {
249  GOOGLE_DCHECK(!full_pathname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
250  (*full_pathname_.UnsafeRawStringPointer())->clear();
251  }
252  if (cached_has_bits & 0x00000002u) {
253  GOOGLE_DCHECK(!streamed_histo_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
254  (*streamed_histo_.UnsafeRawStringPointer())->clear();
255  }
256  }
257  if (cached_has_bits & 12u) {
258  ::memset(&size_, 0, static_cast<size_t>(
259  reinterpret_cast<char*>(&flags_) -
260  reinterpret_cast<char*>(&size_)) + sizeof(flags_));
261  }
262  _has_bits_.Clear();
263  _internal_metadata_.Clear();
264 }
265 
267  ::google::protobuf::io::CodedInputStream* input) {
268 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
270  // @@protoc_insertion_point(parse_start:dqmstorepb.ROOTFilePB.Histo)
271  for (;;) {
272  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
273  tag = p.first;
274  if (!p.second) goto handle_unusual;
275  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
276  // required string full_pathname = 1;
277  case 1: {
278  if (static_cast< ::google::protobuf::uint8>(tag) ==
279  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
280  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
281  input, this->mutable_full_pathname()));
282  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
283  this->full_pathname().data(), static_cast<int>(this->full_pathname().length()),
284  ::google::protobuf::internal::WireFormat::PARSE,
285  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
286  } else {
287  goto handle_unusual;
288  }
289  break;
290  }
291 
292  // required uint32 size = 2;
293  case 2: {
294  if (static_cast< ::google::protobuf::uint8>(tag) ==
295  static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
296  set_has_size();
297  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
298  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
299  input, &size_)));
300  } else {
301  goto handle_unusual;
302  }
303  break;
304  }
305 
306  // required bytes streamed_histo = 3;
307  case 3: {
308  if (static_cast< ::google::protobuf::uint8>(tag) ==
309  static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
310  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
311  input, this->mutable_streamed_histo()));
312  } else {
313  goto handle_unusual;
314  }
315  break;
316  }
317 
318  // required uint32 flags = 4;
319  case 4: {
320  if (static_cast< ::google::protobuf::uint8>(tag) ==
321  static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
322  set_has_flags();
323  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
324  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
325  input, &flags_)));
326  } else {
327  goto handle_unusual;
328  }
329  break;
330  }
331 
332  default: {
333  handle_unusual:
334  if (tag == 0) {
335  goto success;
336  }
337  DO_(::google::protobuf::internal::WireFormat::SkipField(
338  input, tag, _internal_metadata_.mutable_unknown_fields()));
339  break;
340  }
341  }
342  }
343 success:
344  // @@protoc_insertion_point(parse_success:dqmstorepb.ROOTFilePB.Histo)
345  return true;
346 failure:
347  // @@protoc_insertion_point(parse_failure:dqmstorepb.ROOTFilePB.Histo)
348  return false;
349 #undef DO_
350 }
351 
353  ::google::protobuf::io::CodedOutputStream* output) const {
354  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB.Histo)
355  ::google::protobuf::uint32 cached_has_bits = 0;
356  (void) cached_has_bits;
357 
358  cached_has_bits = _has_bits_[0];
359  // required string full_pathname = 1;
360  if (cached_has_bits & 0x00000001u) {
361  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
362  this->full_pathname().data(), static_cast<int>(this->full_pathname().length()),
363  ::google::protobuf::internal::WireFormat::SERIALIZE,
364  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
365  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
366  1, this->full_pathname(), output);
367  }
368 
369  // required uint32 size = 2;
370  if (cached_has_bits & 0x00000004u) {
371  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output);
372  }
373 
374  // required bytes streamed_histo = 3;
375  if (cached_has_bits & 0x00000002u) {
376  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
377  3, this->streamed_histo(), output);
378  }
379 
380  // required uint32 flags = 4;
381  if (cached_has_bits & 0x00000008u) {
382  ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flags(), output);
383  }
384 
385  if (_internal_metadata_.have_unknown_fields()) {
386  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
387  _internal_metadata_.unknown_fields(), output);
388  }
389  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB.Histo)
390 }
391 
393  bool deterministic, ::google::protobuf::uint8* target) const {
394  (void)deterministic; // Unused
395  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo)
396  ::google::protobuf::uint32 cached_has_bits = 0;
397  (void) cached_has_bits;
398 
399  cached_has_bits = _has_bits_[0];
400  // required string full_pathname = 1;
401  if (cached_has_bits & 0x00000001u) {
402  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
403  this->full_pathname().data(), static_cast<int>(this->full_pathname().length()),
404  ::google::protobuf::internal::WireFormat::SERIALIZE,
405  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
406  target =
407  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
408  1, this->full_pathname(), target);
409  }
410 
411  // required uint32 size = 2;
412  if (cached_has_bits & 0x00000004u) {
413  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target);
414  }
415 
416  // required bytes streamed_histo = 3;
417  if (cached_has_bits & 0x00000002u) {
418  target =
419  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
420  3, this->streamed_histo(), target);
421  }
422 
423  // required uint32 flags = 4;
424  if (cached_has_bits & 0x00000008u) {
425  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->flags(), target);
426  }
427 
428  if (_internal_metadata_.have_unknown_fields()) {
429  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
430  _internal_metadata_.unknown_fields(), target);
431  }
432  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB.Histo)
433  return target;
434 }
435 
437 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:dqmstorepb.ROOTFilePB.Histo)
438  size_t total_size = 0;
439 
440  if (has_full_pathname()) {
441  // required string full_pathname = 1;
442  total_size += 1 +
443  ::google::protobuf::internal::WireFormatLite::StringSize(
444  this->full_pathname());
445  }
446 
447  if (has_streamed_histo()) {
448  // required bytes streamed_histo = 3;
449  total_size += 1 +
450  ::google::protobuf::internal::WireFormatLite::BytesSize(
451  this->streamed_histo());
452  }
453 
454  if (has_size()) {
455  // required uint32 size = 2;
456  total_size += 1 +
457  ::google::protobuf::internal::WireFormatLite::UInt32Size(
458  this->size());
459  }
460 
461  if (has_flags()) {
462  // required uint32 flags = 4;
463  total_size += 1 +
464  ::google::protobuf::internal::WireFormatLite::UInt32Size(
465  this->flags());
466  }
467 
468  return total_size;
469 }
471 // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo)
472  size_t total_size = 0;
473 
474  if (_internal_metadata_.have_unknown_fields()) {
475  total_size +=
476  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
477  _internal_metadata_.unknown_fields());
478  }
479  if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
480  // required string full_pathname = 1;
481  total_size += 1 +
482  ::google::protobuf::internal::WireFormatLite::StringSize(
483  this->full_pathname());
484 
485  // required bytes streamed_histo = 3;
486  total_size += 1 +
487  ::google::protobuf::internal::WireFormatLite::BytesSize(
488  this->streamed_histo());
489 
490  // required uint32 size = 2;
491  total_size += 1 +
492  ::google::protobuf::internal::WireFormatLite::UInt32Size(
493  this->size());
494 
495  // required uint32 flags = 4;
496  total_size += 1 +
497  ::google::protobuf::internal::WireFormatLite::UInt32Size(
498  this->flags());
499 
500  } else {
501  total_size += RequiredFieldsByteSizeFallback();
502  }
503  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
504  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
505  _cached_size_ = cached_size;
506  GOOGLE_SAFE_CONCURRENT_WRITES_END();
507  return total_size;
508 }
509 
510 void ROOTFilePB_Histo::MergeFrom(const ::google::protobuf::Message& from) {
511 // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
512  GOOGLE_DCHECK_NE(&from, this);
513  const ROOTFilePB_Histo* source =
514  ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB_Histo>(
515  &from);
516  if (source == nullptr) {
517  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB.Histo)
518  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
519  } else {
520  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB.Histo)
521  MergeFrom(*source);
522  }
523 }
524 
526 // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
527  GOOGLE_DCHECK_NE(&from, this);
529  ::google::protobuf::uint32 cached_has_bits = 0;
530  (void) cached_has_bits;
531 
532  cached_has_bits = from._has_bits_[0];
533  if (cached_has_bits & 15u) {
534  if (cached_has_bits & 0x00000001u) {
536  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_pathname_);
537  }
538  if (cached_has_bits & 0x00000002u) {
540  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streamed_histo_);
541  }
542  if (cached_has_bits & 0x00000004u) {
543  size_ = from.size_;
544  }
545  if (cached_has_bits & 0x00000008u) {
546  flags_ = from.flags_;
547  }
548  _has_bits_[0] |= cached_has_bits;
549  }
550 }
551 
552 void ROOTFilePB_Histo::CopyFrom(const ::google::protobuf::Message& from) {
553 // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
554  if (&from == this) return;
555  Clear();
556  MergeFrom(from);
557 }
558 
560 // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
561  if (&from == this) return;
562  Clear();
563  MergeFrom(from);
564 }
565 
567  if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
568  return true;
569 }
570 
572  if (other == this) return;
573  InternalSwap(other);
574 }
576  using std::swap;
577  full_pathname_.Swap(&other->full_pathname_);
578  streamed_histo_.Swap(&other->streamed_histo_);
579  swap(size_, other->size_);
580  swap(flags_, other->flags_);
581  swap(_has_bits_[0], other->_has_bits_[0]);
584 }
585 
586 ::google::protobuf::Metadata ROOTFilePB_Histo::GetMetadata() const {
589 }
590 
591 
592 // ===================================================================
593 
595 }
596 #if !defined(_MSC_VER) || _MSC_VER >= 1900
598 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
599 
601  : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
602  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
604  }
605  SharedCtor();
606  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB)
607 }
609  : ::google::protobuf::Message(),
611  _has_bits_(from._has_bits_),
612  _cached_size_(0),
613  histo_(from.histo_) {
615  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB)
616 }
617 
619  _cached_size_ = 0;
620 }
621 
623  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB)
624  SharedDtor();
625 }
626 
628 }
629 
631  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
633  GOOGLE_SAFE_CONCURRENT_WRITES_END();
634 }
635 const ::google::protobuf::Descriptor* ROOTFilePB::descriptor() {
638 }
639 
642  return *internal_default_instance();
643 }
644 
645 ROOTFilePB* ROOTFilePB::New(::google::protobuf::Arena* arena) const {
646  ROOTFilePB* n = new ROOTFilePB;
647  if (arena != nullptr) {
648  arena->Own(n);
649  }
650  return n;
651 }
652 
654 // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB)
655  ::google::protobuf::uint32 cached_has_bits = 0;
656  // Prevent compiler warnings about cached_has_bits being unused
657  (void) cached_has_bits;
658 
659  histo_.Clear();
660  _has_bits_.Clear();
661  _internal_metadata_.Clear();
662 }
663 
665  ::google::protobuf::io::CodedInputStream* input) {
666 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
668  // @@protoc_insertion_point(parse_start:dqmstorepb.ROOTFilePB)
669  for (;;) {
670  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
671  tag = p.first;
672  if (!p.second) goto handle_unusual;
673  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
674  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
675  case 1: {
676  if (static_cast< ::google::protobuf::uint8>(tag) ==
677  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
678  DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_histo()));
679  } else {
680  goto handle_unusual;
681  }
682  break;
683  }
684 
685  default: {
686  handle_unusual:
687  if (tag == 0) {
688  goto success;
689  }
690  DO_(::google::protobuf::internal::WireFormat::SkipField(
691  input, tag, _internal_metadata_.mutable_unknown_fields()));
692  break;
693  }
694  }
695  }
696 success:
697  // @@protoc_insertion_point(parse_success:dqmstorepb.ROOTFilePB)
698  return true;
699 failure:
700  // @@protoc_insertion_point(parse_failure:dqmstorepb.ROOTFilePB)
701  return false;
702 #undef DO_
703 }
704 
706  ::google::protobuf::io::CodedOutputStream* output) const {
707  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB)
708  ::google::protobuf::uint32 cached_has_bits = 0;
709  (void) cached_has_bits;
710 
711  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
712  for (unsigned int i = 0,
713  n = static_cast<unsigned int>(this->histo_size()); i < n; i++) {
714  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
715  1, this->histo(static_cast<int>(i)), output);
716  }
717 
718  if (_internal_metadata_.have_unknown_fields()) {
719  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
720  _internal_metadata_.unknown_fields(), output);
721  }
722  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB)
723 }
724 
726  bool deterministic, ::google::protobuf::uint8* target) const {
727  (void)deterministic; // Unused
728  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB)
729  ::google::protobuf::uint32 cached_has_bits = 0;
730  (void) cached_has_bits;
731 
732  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
733  for (unsigned int i = 0,
734  n = static_cast<unsigned int>(this->histo_size()); i < n; i++) {
735  target = ::google::protobuf::internal::WireFormatLite::
736  InternalWriteMessageToArray(
737  1, this->histo(static_cast<int>(i)), deterministic, target);
738  }
739 
740  if (_internal_metadata_.have_unknown_fields()) {
741  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
742  _internal_metadata_.unknown_fields(), target);
743  }
744  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB)
745  return target;
746 }
747 
748 size_t ROOTFilePB::ByteSizeLong() const {
749 // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB)
750  size_t total_size = 0;
751 
752  if (_internal_metadata_.have_unknown_fields()) {
753  total_size +=
754  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
755  _internal_metadata_.unknown_fields());
756  }
757  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
758  {
759  unsigned int count = static_cast<unsigned int>(this->histo_size());
760  total_size += 1UL * count;
761  for (unsigned int i = 0; i < count; i++) {
762  total_size +=
763  ::google::protobuf::internal::WireFormatLite::MessageSize(
764  this->histo(static_cast<int>(i)));
765  }
766  }
767 
768  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
769  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
770  _cached_size_ = cached_size;
771  GOOGLE_SAFE_CONCURRENT_WRITES_END();
772  return total_size;
773 }
774 
775 void ROOTFilePB::MergeFrom(const ::google::protobuf::Message& from) {
776 // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB)
777  GOOGLE_DCHECK_NE(&from, this);
778  const ROOTFilePB* source =
779  ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB>(
780  &from);
781  if (source == nullptr) {
782  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB)
783  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
784  } else {
785  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB)
786  MergeFrom(*source);
787  }
788 }
789 
791 // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB)
792  GOOGLE_DCHECK_NE(&from, this);
794  ::google::protobuf::uint32 cached_has_bits = 0;
795  (void) cached_has_bits;
796 
797  histo_.MergeFrom(from.histo_);
798 }
799 
800 void ROOTFilePB::CopyFrom(const ::google::protobuf::Message& from) {
801 // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB)
802  if (&from == this) return;
803  Clear();
804  MergeFrom(from);
805 }
806 
807 void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
808 // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB)
809  if (&from == this) return;
810  Clear();
811  MergeFrom(from);
812 }
813 
815  if (!::google::protobuf::internal::AllAreInitialized(this->histo())) return false;
816  return true;
817 }
818 
820  if (other == this) return;
821  InternalSwap(other);
822 }
824  using std::swap;
825  histo_.InternalSwap(&other->histo_);
826  swap(_has_bits_[0], other->_has_bits_[0]);
829 }
830 
831 ::google::protobuf::Metadata ROOTFilePB::GetMetadata() const {
834 }
835 
836 
837 // @@protoc_insertion_point(namespace_scope)
838 } // namespace dqmstorepb
839 
840 // @@protoc_insertion_point(global_scope)
::google::protobuf::uint32 flags_
size
Write out results.
static const ROOTFilePB & default_instance()
friend void swap(ROOTFilePB_Histo &a, ROOTFilePB_Histo &b)
::google::protobuf::uint32 size() const
const ::std::string & full_pathname() const
ROOTFilePB_Histo * New() const PROTOBUF_FINAL
static const ROOTFilePB_Histo * internal_default_instance()
::google::protobuf::internal::HasBits< 1 > _has_bits_
static const int kSizeFieldNumber
void Clear() PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
#define NULL
Definition: scimark2.h:8
size_t RequiredFieldsByteSizeFallback() const
#define DO_(EXPRESSION)
bool IsInitialized() const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
#define nullptr
static const ROOTFilePB_Histo & default_instance()
const ::std::string & streamed_histo() const
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const int kFullPathnameFieldNumber
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
static std::string const input
Definition: EdmProvDump.cc:45
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
ROOTFilePB * New() const PROTOBUF_FINAL
void Swap(ROOTFilePB *other)
static const int kStreamedHistoFieldNumber
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
size_t ByteSizeLong() const PROTOBUF_FINAL
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
::google::protobuf::internal::ArenaStringPtr full_pathname_
void InternalSwap(ROOTFilePB *other)
::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo > histo_
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:167
class dqmstorepb::ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_
Definition: ROOTFilePB.pb.h:56
::google::protobuf::internal::HasBits< 1 > _has_bits_
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static void InitAsDefaultInstance()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
::google::protobuf::Metadata file_level_metadata[2]
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static const int kHistoFieldNumber
class dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal _ROOTFilePB_Histo_default_instance_
Definition: ROOTFilePB.pb.h:59
unsigned int uint32
Definition: MsgTools.h:13
static const ROOTFilePB * internal_default_instance()
void InternalSwap(ROOTFilePB_Histo *other)
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
friend void swap(ROOTFilePB &a, ROOTFilePB &b)
::google::protobuf::uint32 size_
void Clear() PROTOBUF_FINAL
const ::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo > & histo() const
unsigned char uint8
Definition: MsgTools.h:11
::std::string * mutable_full_pathname()
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
::dqmstorepb::ROOTFilePB_Histo * add_histo()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const int kFlagsFieldNumber
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
void protobuf_RegisterTypes(const ::std::string &) GOOGLE_PROTOBUF_ATTRIBUTE_COLD
::google::protobuf::internal::ArenaStringPtr streamed_histo_
::google::protobuf::uint32 flags() const
size_t ByteSizeLong() const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::std::string * mutable_streamed_histo()
void SetCachedSize(int size) const PROTOBUF_FINAL
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
void Swap(ROOTFilePB_Histo *other)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
struct protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::StaticDescriptorInitializer static_descriptor_initializer
static const ::google::protobuf::Descriptor * descriptor()
static std::string const source
Definition: EdmProvDump.cc:44
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool IsInitialized() const PROTOBUF_FINAL
::google::protobuf::internal::ExplicitlyConstructed< ROOTFilePB > _instance
::google::protobuf::internal::ExplicitlyConstructed< ROOTFilePB_Histo > _instance
::google::protobuf::Message const *const file_default_instances[]