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> _instance;
28  public:
29  ::google::protobuf::internal::ExplicitlyConstructed<ROOTFilePB> _instance;
31 } // namespace dqmstorepb
34  GOOGLE_PROTOBUF_VERIFY_VERSION;
35 
36 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
37  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
38 #else
39  ::google::protobuf::internal::InitProtobufDefaults();
40 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
41  {
43  new (ptr)::dqmstorepb::ROOTFilePB_Histo();
44  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
45  }
47  }
48 
50  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
51  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROOTFilePB_HistoImpl);
52  }
53 
55  GOOGLE_PROTOBUF_VERIFY_VERSION;
56 
57 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
58  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
59 #else
60  ::google::protobuf::internal::InitProtobufDefaults();
61 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
63  {
65  new (ptr)::dqmstorepb::ROOTFilePB();
66  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
67  }
69  }
70 
72  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
73  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsROOTFilePBImpl);
74  }
75 
76  ::google::protobuf::Metadata file_level_metadata[2];
77 
79  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _has_bits_),
80  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, _internal_metadata_),
81  ~0u, // no _extensions_
82  ~0u, // no _oneof_case_
83  ~0u, // no _weak_field_map_
84  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, full_pathname_),
85  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, size_),
86  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, streamed_histo_),
87  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB_Histo, flags_),
88  0,
89  2,
90  1,
91  3,
92  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _has_bits_),
93  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, _internal_metadata_),
94  ~0u, // no _extensions_
95  ~0u, // no _oneof_case_
96  ~0u, // no _weak_field_map_
97  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dqmstorepb::ROOTFilePB, histo_),
98  ~0u,
99  };
100  static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(
101  protodesc_cold) = {
102  {0, 9, sizeof(::dqmstorepb::ROOTFilePB_Histo)},
103  {13, 19, sizeof(::dqmstorepb::ROOTFilePB)},
104  };
105 
106  static ::google::protobuf::Message const* const file_default_instances[] = {
107  reinterpret_cast<const ::google::protobuf::Message*>(&::dqmstorepb::_ROOTFilePB_Histo_default_instance_),
108  reinterpret_cast<const ::google::protobuf::Message*>(&::dqmstorepb::_ROOTFilePB_default_instance_),
109  };
110 
112  AddDescriptors();
113  ::google::protobuf::MessageFactory* factory = nullptr;
114  AssignDescriptors("DQMServices/Core/src/ROOTFilePB.proto",
115  schemas,
116  file_default_instances,
118  factory,
119  file_level_metadata,
120  nullptr,
121  nullptr);
122  }
123 
125  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
126  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
127  }
128 
129  void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
132  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
133  }
134 
136  InitDefaults();
137  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
138  "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
139  "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
140  "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
141  "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
142  "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r"};
143  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(descriptor, 196);
144  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile("DQMServices/Core/src/ROOTFilePB.proto",
146  }
147 
148  void AddDescriptors() {
149  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
150  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
151  }
152  // Force AddDescriptors() to be called at dynamic initialization time.
156 } // namespace protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
157 namespace dqmstorepb {
158 
159  // ===================================================================
160 
162 #if !defined(_MSC_VER) || _MSC_VER >= 1900
167 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
168 
169  ROOTFilePB_Histo::ROOTFilePB_Histo() : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
170  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
172  }
173  SharedCtor();
174  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB.Histo)
175  }
177  : ::google::protobuf::Message(), _internal_metadata_(nullptr), _has_bits_(from._has_bits_), _cached_size_(0) {
179  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
180  if (from.has_full_pathname()) {
181  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
182  from.full_pathname_);
183  }
184  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
185  if (from.has_streamed_histo()) {
186  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
187  from.streamed_histo_);
188  }
189  ::memcpy(&size_,
190  &from.size_,
191  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
192  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo)
193  }
194 
196  _cached_size_ = 0;
197  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
198  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
199  ::memset(&size_,
200  0,
201  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
202  }
203 
205  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo)
206  SharedDtor();
207  }
208 
210  full_pathname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
211  streamed_histo_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
212  }
213 
215  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
217  GOOGLE_SAFE_CONCURRENT_WRITES_END();
218  }
219  const ::google::protobuf::Descriptor* ROOTFilePB_Histo::descriptor() {
222  .descriptor;
223  }
224 
227  return *internal_default_instance();
228  }
229 
230  ROOTFilePB_Histo* ROOTFilePB_Histo::New(::google::protobuf::Arena* arena) const {
232  if (arena != nullptr) {
233  arena->Own(n);
234  }
235  return n;
236  }
237 
239  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo)
240  ::google::protobuf::uint32 cached_has_bits = 0;
241  // Prevent compiler warnings about cached_has_bits being unused
242  (void)cached_has_bits;
243 
244  cached_has_bits = _has_bits_[0];
245  if (cached_has_bits & 3u) {
246  if (cached_has_bits & 0x00000001u) {
247  GOOGLE_DCHECK(!full_pathname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
248  (*full_pathname_.UnsafeRawStringPointer())->clear();
249  }
250  if (cached_has_bits & 0x00000002u) {
251  GOOGLE_DCHECK(!streamed_histo_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
252  (*streamed_histo_.UnsafeRawStringPointer())->clear();
253  }
254  }
255  if (cached_has_bits & 12u) {
256  ::memset(
257  &size_,
258  0,
259  static_cast<size_t>(reinterpret_cast<char*>(&flags_) - reinterpret_cast<char*>(&size_)) + sizeof(flags_));
260  }
261  _has_bits_.Clear();
262  _internal_metadata_.Clear();
263  }
264 
265  bool ROOTFilePB_Histo::MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream* input) {
266 #define DO_(EXPRESSION) \
267  if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) \
268  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)
275  goto handle_unusual;
276  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
277  // required string full_pathname = 1;
278  case 1: {
279  if (static_cast< ::google::protobuf::uint8>(tag) ==
280  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
281  DO_(::google::protobuf::internal::WireFormatLite::ReadString(input, this->mutable_full_pathname()));
282  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
283  this->full_pathname().data(),
284  static_cast<int>(this->full_pathname().length()),
285  ::google::protobuf::internal::WireFormat::PARSE,
286  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
287  } else {
288  goto handle_unusual;
289  }
290  break;
291  }
292 
293  // required uint32 size = 2;
294  case 2: {
295  if (static_cast< ::google::protobuf::uint8>(tag) ==
296  static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
297  set_has_size();
298  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
300  ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(input, &size_)));
301  } else {
302  goto handle_unusual;
303  }
304  break;
305  }
306 
307  // required bytes streamed_histo = 3;
308  case 3: {
309  if (static_cast< ::google::protobuf::uint8>(tag) ==
310  static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
311  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(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<
325  ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(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 
352  void ROOTFilePB_Histo::SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream* output) const {
353  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB.Histo)
354  ::google::protobuf::uint32 cached_has_bits = 0;
355  (void)cached_has_bits;
356 
357  cached_has_bits = _has_bits_[0];
358  // required string full_pathname = 1;
359  if (cached_has_bits & 0x00000001u) {
360  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
361  this->full_pathname().data(),
362  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(1, this->full_pathname(), output);
366  }
367 
368  // required uint32 size = 2;
369  if (cached_has_bits & 0x00000004u) {
370  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output);
371  }
372 
373  // required bytes streamed_histo = 3;
374  if (cached_has_bits & 0x00000002u) {
375  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(3, this->streamed_histo(), output);
376  }
377 
378  // required uint32 flags = 4;
379  if (cached_has_bits & 0x00000008u) {
380  ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flags(), output);
381  }
382 
383  if (_internal_metadata_.have_unknown_fields()) {
384  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(_internal_metadata_.unknown_fields(), output);
385  }
386  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB.Histo)
387  }
388 
390  bool deterministic, ::google::protobuf::uint8* target) const {
391  (void)deterministic; // Unused
392  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo)
393  ::google::protobuf::uint32 cached_has_bits = 0;
394  (void)cached_has_bits;
395 
396  cached_has_bits = _has_bits_[0];
397  // required string full_pathname = 1;
398  if (cached_has_bits & 0x00000001u) {
399  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
400  this->full_pathname().data(),
401  static_cast<int>(this->full_pathname().length()),
402  ::google::protobuf::internal::WireFormat::SERIALIZE,
403  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
404  target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray(1, this->full_pathname(), target);
405  }
406 
407  // required uint32 size = 2;
408  if (cached_has_bits & 0x00000004u) {
409  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target);
410  }
411 
412  // required bytes streamed_histo = 3;
413  if (cached_has_bits & 0x00000002u) {
414  target = ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(3, this->streamed_histo(), target);
415  }
416 
417  // required uint32 flags = 4;
418  if (cached_has_bits & 0x00000008u) {
419  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->flags(), target);
420  }
421 
422  if (_internal_metadata_.have_unknown_fields()) {
423  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
424  _internal_metadata_.unknown_fields(), target);
425  }
426  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB.Histo)
427  return target;
428  }
429 
431  // @@protoc_insertion_point(required_fields_byte_size_fallback_start:dqmstorepb.ROOTFilePB.Histo)
432  size_t total_size = 0;
433 
434  if (has_full_pathname()) {
435  // required string full_pathname = 1;
436  total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->full_pathname());
437  }
438 
439  if (has_streamed_histo()) {
440  // required bytes streamed_histo = 3;
441  total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(this->streamed_histo());
442  }
443 
444  if (has_size()) {
445  // required uint32 size = 2;
446  total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size(this->size());
447  }
448 
449  if (has_flags()) {
450  // required uint32 flags = 4;
451  total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size(this->flags());
452  }
453 
454  return total_size;
455  }
457  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo)
458  size_t total_size = 0;
459 
460  if (_internal_metadata_.have_unknown_fields()) {
461  total_size +=
462  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(_internal_metadata_.unknown_fields());
463  }
464  if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
465  // required string full_pathname = 1;
466  total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(this->full_pathname());
467 
468  // required bytes streamed_histo = 3;
469  total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize(this->streamed_histo());
470 
471  // required uint32 size = 2;
472  total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size(this->size());
473 
474  // required uint32 flags = 4;
475  total_size += 1 + ::google::protobuf::internal::WireFormatLite::UInt32Size(this->flags());
476 
477  } else {
478  total_size += RequiredFieldsByteSizeFallback();
479  }
480  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
481  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
482  _cached_size_ = cached_size;
483  GOOGLE_SAFE_CONCURRENT_WRITES_END();
484  return total_size;
485  }
486 
487  void ROOTFilePB_Histo::MergeFrom(const ::google::protobuf::Message& from) {
488  // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
489  GOOGLE_DCHECK_NE(&from, this);
490  const ROOTFilePB_Histo* source =
491  ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB_Histo>(&from);
492  if (source == nullptr) {
493  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB.Histo)
494  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
495  } else {
496  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB.Histo)
497  MergeFrom(*source);
498  }
499  }
500 
502  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
503  GOOGLE_DCHECK_NE(&from, this);
505  ::google::protobuf::uint32 cached_has_bits = 0;
506  (void)cached_has_bits;
507 
508  cached_has_bits = from._has_bits_[0];
509  if (cached_has_bits & 15u) {
510  if (cached_has_bits & 0x00000001u) {
512  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
513  from.full_pathname_);
514  }
515  if (cached_has_bits & 0x00000002u) {
517  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
518  from.streamed_histo_);
519  }
520  if (cached_has_bits & 0x00000004u) {
521  size_ = from.size_;
522  }
523  if (cached_has_bits & 0x00000008u) {
524  flags_ = from.flags_;
525  }
526  _has_bits_[0] |= cached_has_bits;
527  }
528  }
529 
530  void ROOTFilePB_Histo::CopyFrom(const ::google::protobuf::Message& from) {
531  // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
532  if (&from == this)
533  return;
534  Clear();
535  MergeFrom(from);
536  }
537 
539  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
540  if (&from == this)
541  return;
542  Clear();
543  MergeFrom(from);
544  }
545 
547  if ((_has_bits_[0] & 0x0000000f) != 0x0000000f)
548  return false;
549  return true;
550  }
551 
553  if (other == this)
554  return;
555  InternalSwap(other);
556  }
558  using std::swap;
559  full_pathname_.Swap(&other->full_pathname_);
560  streamed_histo_.Swap(&other->streamed_histo_);
561  swap(size_, other->size_);
562  swap(flags_, other->flags_);
563  swap(_has_bits_[0], other->_has_bits_[0]);
566  }
567 
568  ::google::protobuf::Metadata ROOTFilePB_Histo::GetMetadata() const {
571  }
572 
573  // ===================================================================
574 
576 #if !defined(_MSC_VER) || _MSC_VER >= 1900
578 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
579 
580  ROOTFilePB::ROOTFilePB() : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
581  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
583  }
584  SharedCtor();
585  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB)
586  }
588  : ::google::protobuf::Message(),
590  _has_bits_(from._has_bits_),
591  _cached_size_(0),
592  histo_(from.histo_) {
594  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB)
595  }
596 
598 
600  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB)
601  SharedDtor();
602  }
603 
605 
606  void ROOTFilePB::SetCachedSize(int size) const {
607  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
609  GOOGLE_SAFE_CONCURRENT_WRITES_END();
610  }
611  const ::google::protobuf::Descriptor* ROOTFilePB::descriptor() {
614  .descriptor;
615  }
616 
619  return *internal_default_instance();
620  }
621 
622  ROOTFilePB* ROOTFilePB::New(::google::protobuf::Arena* arena) const {
623  ROOTFilePB* n = new ROOTFilePB;
624  if (arena != nullptr) {
625  arena->Own(n);
626  }
627  return n;
628  }
629 
631  // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB)
632  ::google::protobuf::uint32 cached_has_bits = 0;
633  // Prevent compiler warnings about cached_has_bits being unused
634  (void)cached_has_bits;
635 
636  histo_.Clear();
637  _has_bits_.Clear();
638  _internal_metadata_.Clear();
639  }
640 
641  bool ROOTFilePB::MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream* input) {
642 #define DO_(EXPRESSION) \
643  if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) \
644  goto failure
646  // @@protoc_insertion_point(parse_start:dqmstorepb.ROOTFilePB)
647  for (;;) {
648  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
649  tag = p.first;
650  if (!p.second)
651  goto handle_unusual;
652  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
653  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
654  case 1: {
655  if (static_cast< ::google::protobuf::uint8>(tag) ==
656  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
657  DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_histo()));
658  } else {
659  goto handle_unusual;
660  }
661  break;
662  }
663 
664  default: {
665  handle_unusual:
666  if (tag == 0) {
667  goto success;
668  }
669  DO_(::google::protobuf::internal::WireFormat::SkipField(
670  input, tag, _internal_metadata_.mutable_unknown_fields()));
671  break;
672  }
673  }
674  }
675  success:
676  // @@protoc_insertion_point(parse_success:dqmstorepb.ROOTFilePB)
677  return true;
678  failure:
679  // @@protoc_insertion_point(parse_failure:dqmstorepb.ROOTFilePB)
680  return false;
681 #undef DO_
682  }
683 
684  void ROOTFilePB::SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream* output) const {
685  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB)
686  ::google::protobuf::uint32 cached_has_bits = 0;
687  (void)cached_has_bits;
688 
689  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
690  for (unsigned int i = 0, n = static_cast<unsigned int>(this->histo_size()); i < n; i++) {
691  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
692  1, this->histo(static_cast<int>(i)), output);
693  }
694 
695  if (_internal_metadata_.have_unknown_fields()) {
696  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(_internal_metadata_.unknown_fields(), output);
697  }
698  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB)
699  }
700 
702  bool deterministic, ::google::protobuf::uint8* target) const {
703  (void)deterministic; // Unused
704  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB)
705  ::google::protobuf::uint32 cached_has_bits = 0;
706  (void)cached_has_bits;
707 
708  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
709  for (unsigned int i = 0, n = static_cast<unsigned int>(this->histo_size()); i < n; i++) {
710  target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageToArray(
711  1, this->histo(static_cast<int>(i)), deterministic, target);
712  }
713 
714  if (_internal_metadata_.have_unknown_fields()) {
715  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
716  _internal_metadata_.unknown_fields(), target);
717  }
718  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB)
719  return target;
720  }
721 
722  size_t ROOTFilePB::ByteSizeLong() const {
723  // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB)
724  size_t total_size = 0;
725 
726  if (_internal_metadata_.have_unknown_fields()) {
727  total_size +=
728  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(_internal_metadata_.unknown_fields());
729  }
730  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
731  {
732  unsigned int count = static_cast<unsigned int>(this->histo_size());
733  total_size += 1UL * count;
734  for (unsigned int i = 0; i < count; i++) {
735  total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(this->histo(static_cast<int>(i)));
736  }
737  }
738 
739  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
740  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
741  _cached_size_ = cached_size;
742  GOOGLE_SAFE_CONCURRENT_WRITES_END();
743  return total_size;
744  }
745 
746  void ROOTFilePB::MergeFrom(const ::google::protobuf::Message& from) {
747  // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB)
748  GOOGLE_DCHECK_NE(&from, this);
749  const ROOTFilePB* source = ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB>(&from);
750  if (source == nullptr) {
751  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB)
752  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
753  } else {
754  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB)
755  MergeFrom(*source);
756  }
757  }
758 
759  void ROOTFilePB::MergeFrom(const ROOTFilePB& from) {
760  // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB)
761  GOOGLE_DCHECK_NE(&from, this);
763  ::google::protobuf::uint32 cached_has_bits = 0;
764  (void)cached_has_bits;
765 
766  histo_.MergeFrom(from.histo_);
767  }
768 
769  void ROOTFilePB::CopyFrom(const ::google::protobuf::Message& from) {
770  // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB)
771  if (&from == this)
772  return;
773  Clear();
774  MergeFrom(from);
775  }
776 
777  void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
778  // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB)
779  if (&from == this)
780  return;
781  Clear();
782  MergeFrom(from);
783  }
784 
786  if (!::google::protobuf::internal::AllAreInitialized(this->histo()))
787  return false;
788  return true;
789  }
790 
792  if (other == this)
793  return;
794  InternalSwap(other);
795  }
797  using std::swap;
798  histo_.InternalSwap(&other->histo_);
799  swap(_has_bits_[0], other->_has_bits_[0]);
802  }
803 
804  ::google::protobuf::Metadata ROOTFilePB::GetMetadata() const {
807  }
808 
809  // @@protoc_insertion_point(namespace_scope)
810 } // namespace dqmstorepb
811 
812 // @@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_
#define nullptr
static const int kSizeFieldNumber
void Clear() PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
size_t RequiredFieldsByteSizeFallback() const
bool IsInitialized() const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
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:48
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)
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
Definition: matutil.cc:151
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
#define DO_(EXPRESSION)
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:79
::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::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo > histo_
::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:47
::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[]