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 
4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
6 
7 #include <algorithm>
8 
9 #include <google/protobuf/stubs/common.h>
10 #include <google/protobuf/stubs/port.h>
11 #include <google/protobuf/stubs/once.h>
12 #include <google/protobuf/io/coded_stream.h>
13 #include <google/protobuf/wire_format_lite_inl.h>
14 #include <google/protobuf/descriptor.h>
15 #include <google/protobuf/generated_message_reflection.h>
16 #include <google/protobuf/reflection_ops.h>
17 #include <google/protobuf/wire_format.h>
18 // @@protoc_insertion_point(includes)
19 
20 namespace dqmstorepb {
21 class ROOTFilePB_HistoDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ROOTFilePB_Histo> {
23 class ROOTFilePBDefaultTypeInternal : public ::google::protobuf::internal::ExplicitlyConstructed<ROOTFilePB> {
25 
26 namespace protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto {
27 
28 
29 namespace {
30 
31 ::google::protobuf::Metadata file_level_metadata[2];
32 
33 } // namespace
34 
35 const ::google::protobuf::uint32 TableStruct::offsets[] = {
36  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, _has_bits_),
37  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, _internal_metadata_),
38  ~0u, // no _extensions_
39  ~0u, // no _oneof_case_
40  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, full_pathname_),
41  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, size_),
42  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, streamed_histo_),
43  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB_Histo, flags_),
44  0,
45  2,
46  1,
47  3,
48  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB, _has_bits_),
49  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB, _internal_metadata_),
50  ~0u, // no _extensions_
51  ~0u, // no _oneof_case_
52  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ROOTFilePB, histo_),
53  ~0u,
54 };
55 
56 static const ::google::protobuf::internal::MigrationSchema schemas[] = {
57  { 0, 8, sizeof(ROOTFilePB_Histo)},
58  { 12, 17, sizeof(ROOTFilePB)},
59 };
60 
61 static ::google::protobuf::Message const * const file_default_instances[] = {
62  reinterpret_cast<const ::google::protobuf::Message*>(&_ROOTFilePB_Histo_default_instance_),
63  reinterpret_cast<const ::google::protobuf::Message*>(&_ROOTFilePB_default_instance_),
64 };
65 
66 namespace {
67 
68 void protobuf_AssignDescriptors() {
70  ::google::protobuf::MessageFactory* factory = NULL;
71  AssignDescriptors(
72  "DQMServices/Core/src/ROOTFilePB.proto", schemas, file_default_instances, TableStruct::offsets, factory,
73  file_level_metadata, NULL, NULL);
74 }
75 
76 void protobuf_AssignDescriptorsOnce() {
77  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
78  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
79 }
80 
81 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD;
82 void protobuf_RegisterTypes(const ::std::string&) {
83  protobuf_AssignDescriptorsOnce();
84  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
85 }
86 
87 } // namespace
88 
89 void TableStruct::Shutdown() {
91  delete file_level_metadata[0].reflection;
93  delete file_level_metadata[1].reflection;
94 }
95 
96 void TableStruct::InitDefaultsImpl() {
97  GOOGLE_PROTOBUF_VERIFY_VERSION;
98 
99  ::google::protobuf::internal::InitProtobufDefaults();
100  _ROOTFilePB_Histo_default_instance_.DefaultConstruct();
101  _ROOTFilePB_default_instance_.DefaultConstruct();
102 }
103 
104 void InitDefaults() {
105  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
106  ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl);
107 }
109  InitDefaults();
110  static const char descriptor[] = {
111  "\n%DQMServices/Core/src/ROOTFilePB.proto\022"
112  "\ndqmstorepb\"\216\001\n\nROOTFilePB\022+\n\005histo\030\001 \003("
113  "\0132\034.dqmstorepb.ROOTFilePB.Histo\032S\n\005Histo"
114  "\022\025\n\rfull_pathname\030\001 \002(\t\022\014\n\004size\030\002 \002(\r\022\026\n"
115  "\016streamed_histo\030\003 \002(\014\022\r\n\005flags\030\004 \002(\r"
116  };
117  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
118  descriptor, 196);
119  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
120  "DQMServices/Core/src/ROOTFilePB.proto", &protobuf_RegisterTypes);
121  ::google::protobuf::internal::OnShutdown(&TableStruct::Shutdown);
122 }
123 
125  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
126  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
127 }
128 // Force AddDescriptors() to be called at static initialization time.
131  AddDescriptors();
132  }
134 
135 } // namespace protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto
136 
137 
138 // ===================================================================
139 
140 #if !defined(_MSC_VER) || _MSC_VER >= 1900
145 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
146 
148  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
149  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
151  }
152  SharedCtor();
153  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB.Histo)
154 }
156  : ::google::protobuf::Message(),
158  _has_bits_(from._has_bits_),
159  _cached_size_(0) {
161  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
162  if (from.has_full_pathname()) {
163  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_pathname_);
164  }
165  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
166  if (from.has_streamed_histo()) {
167  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streamed_histo_);
168  }
169  ::memcpy(&size_, &from.size_,
170  reinterpret_cast<char*>(&flags_) -
171  reinterpret_cast<char*>(&size_) + sizeof(flags_));
172  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB.Histo)
173 }
174 
176  _cached_size_ = 0;
177  full_pathname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
178  streamed_histo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
179  ::memset(&size_, 0, reinterpret_cast<char*>(&flags_) -
180  reinterpret_cast<char*>(&size_) + sizeof(flags_));
181 }
182 
184  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB.Histo)
185  SharedDtor();
186 }
187 
189  full_pathname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
190  streamed_histo_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
191 }
192 
194  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
196  GOOGLE_SAFE_CONCURRENT_WRITES_END();
197 }
198 const ::google::protobuf::Descriptor* ROOTFilePB_Histo::descriptor() {
199  protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::protobuf_AssignDescriptorsOnce();
200  return protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::file_level_metadata[0].descriptor;
201 }
202 
205  return *internal_default_instance();
206 }
207 
208 ROOTFilePB_Histo* ROOTFilePB_Histo::New(::google::protobuf::Arena* arena) const {
210  if (arena != NULL) {
211  arena->Own(n);
212  }
213  return n;
214 }
215 
217 // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB.Histo)
218  if (_has_bits_[0 / 32] & 3u) {
219  if (has_full_pathname()) {
220  GOOGLE_DCHECK(!full_pathname_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
221  (*full_pathname_.UnsafeRawStringPointer())->clear();
222  }
223  if (has_streamed_histo()) {
224  GOOGLE_DCHECK(!streamed_histo_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
225  (*streamed_histo_.UnsafeRawStringPointer())->clear();
226  }
227  }
228  if (_has_bits_[0 / 32] & 12u) {
229  ::memset(&size_, 0, reinterpret_cast<char*>(&flags_) -
230  reinterpret_cast<char*>(&size_) + sizeof(flags_));
231  }
232  _has_bits_.Clear();
233  _internal_metadata_.Clear();
234 }
235 
237  ::google::protobuf::io::CodedInputStream* input) {
238 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
240  // @@protoc_insertion_point(parse_start:dqmstorepb.ROOTFilePB.Histo)
241  for (;;) {
242  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
243  tag = p.first;
244  if (!p.second) goto handle_unusual;
245  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
246  // required string full_pathname = 1;
247  case 1: {
248  if (tag == 10u) {
249  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
250  input, this->mutable_full_pathname()));
251  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
252  this->full_pathname().data(), this->full_pathname().length(),
253  ::google::protobuf::internal::WireFormat::PARSE,
254  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
255  } else {
256  goto handle_unusual;
257  }
258  break;
259  }
260 
261  // required uint32 size = 2;
262  case 2: {
263  if (tag == 16u) {
264  set_has_size();
265  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
266  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
267  input, &size_)));
268  } else {
269  goto handle_unusual;
270  }
271  break;
272  }
273 
274  // required bytes streamed_histo = 3;
275  case 3: {
276  if (tag == 26u) {
277  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
278  input, this->mutable_streamed_histo()));
279  } else {
280  goto handle_unusual;
281  }
282  break;
283  }
284 
285  // required uint32 flags = 4;
286  case 4: {
287  if (tag == 32u) {
288  set_has_flags();
289  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
290  ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
291  input, &flags_)));
292  } else {
293  goto handle_unusual;
294  }
295  break;
296  }
297 
298  default: {
299  handle_unusual:
300  if (tag == 0 ||
301  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
302  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
303  goto success;
304  }
305  DO_(::google::protobuf::internal::WireFormat::SkipField(
306  input, tag, mutable_unknown_fields()));
307  break;
308  }
309  }
310  }
311 success:
312  // @@protoc_insertion_point(parse_success:dqmstorepb.ROOTFilePB.Histo)
313  return true;
314 failure:
315  // @@protoc_insertion_point(parse_failure:dqmstorepb.ROOTFilePB.Histo)
316  return false;
317 #undef DO_
318 }
319 
321  ::google::protobuf::io::CodedOutputStream* output) const {
322  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB.Histo)
323  // required string full_pathname = 1;
324  if (has_full_pathname()) {
325  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
326  this->full_pathname().data(), this->full_pathname().length(),
327  ::google::protobuf::internal::WireFormat::SERIALIZE,
328  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
329  ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
330  1, this->full_pathname(), output);
331  }
332 
333  // required uint32 size = 2;
334  if (has_size()) {
335  ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output);
336  }
337 
338  // required bytes streamed_histo = 3;
339  if (has_streamed_histo()) {
340  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
341  3, this->streamed_histo(), output);
342  }
343 
344  // required uint32 flags = 4;
345  if (has_flags()) {
346  ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->flags(), output);
347  }
348 
349  if (_internal_metadata_.have_unknown_fields()) {
350  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
351  unknown_fields(), output);
352  }
353  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB.Histo)
354 }
355 
357  bool deterministic, ::google::protobuf::uint8* target) const {
358  (void)deterministic; // Unused
359  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB.Histo)
360  // required string full_pathname = 1;
361  if (has_full_pathname()) {
362  ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
363  this->full_pathname().data(), this->full_pathname().length(),
364  ::google::protobuf::internal::WireFormat::SERIALIZE,
365  "dqmstorepb.ROOTFilePB.Histo.full_pathname");
366  target =
367  ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
368  1, this->full_pathname(), target);
369  }
370 
371  // required uint32 size = 2;
372  if (has_size()) {
373  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target);
374  }
375 
376  // required bytes streamed_histo = 3;
377  if (has_streamed_histo()) {
378  target =
379  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
380  3, this->streamed_histo(), target);
381  }
382 
383  // required uint32 flags = 4;
384  if (has_flags()) {
385  target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->flags(), target);
386  }
387 
388  if (_internal_metadata_.have_unknown_fields()) {
389  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
390  unknown_fields(), target);
391  }
392  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB.Histo)
393  return target;
394 }
395 
397 // @@protoc_insertion_point(required_fields_byte_size_fallback_start:dqmstorepb.ROOTFilePB.Histo)
398  size_t total_size = 0;
399 
400  if (has_full_pathname()) {
401  // required string full_pathname = 1;
402  total_size += 1 +
403  ::google::protobuf::internal::WireFormatLite::StringSize(
404  this->full_pathname());
405  }
406 
407  if (has_streamed_histo()) {
408  // required bytes streamed_histo = 3;
409  total_size += 1 +
410  ::google::protobuf::internal::WireFormatLite::BytesSize(
411  this->streamed_histo());
412  }
413 
414  if (has_size()) {
415  // required uint32 size = 2;
416  total_size += 1 +
417  ::google::protobuf::internal::WireFormatLite::UInt32Size(
418  this->size());
419  }
420 
421  if (has_flags()) {
422  // required uint32 flags = 4;
423  total_size += 1 +
424  ::google::protobuf::internal::WireFormatLite::UInt32Size(
425  this->flags());
426  }
427 
428  return total_size;
429 }
431 // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB.Histo)
432  size_t total_size = 0;
433 
434  if (_internal_metadata_.have_unknown_fields()) {
435  total_size +=
436  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
437  unknown_fields());
438  }
439  if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
440  // required string full_pathname = 1;
441  total_size += 1 +
442  ::google::protobuf::internal::WireFormatLite::StringSize(
443  this->full_pathname());
444 
445  // required bytes streamed_histo = 3;
446  total_size += 1 +
447  ::google::protobuf::internal::WireFormatLite::BytesSize(
448  this->streamed_histo());
449 
450  // required uint32 size = 2;
451  total_size += 1 +
452  ::google::protobuf::internal::WireFormatLite::UInt32Size(
453  this->size());
454 
455  // required uint32 flags = 4;
456  total_size += 1 +
457  ::google::protobuf::internal::WireFormatLite::UInt32Size(
458  this->flags());
459 
460  } else {
461  total_size += RequiredFieldsByteSizeFallback();
462  }
463  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
464  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
465  _cached_size_ = cached_size;
466  GOOGLE_SAFE_CONCURRENT_WRITES_END();
467  return total_size;
468 }
469 
470 void ROOTFilePB_Histo::MergeFrom(const ::google::protobuf::Message& from) {
471 // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
472  GOOGLE_DCHECK_NE(&from, this);
473  const ROOTFilePB_Histo* source =
474  ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB_Histo>(
475  &from);
476  if (source == NULL) {
477  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB.Histo)
478  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
479  } else {
480  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB.Histo)
481  MergeFrom(*source);
482  }
483 }
484 
486 // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB.Histo)
487  GOOGLE_DCHECK_NE(&from, this);
489  if (from._has_bits_[0 / 32] & 15u) {
490  if (from.has_full_pathname()) {
492  full_pathname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.full_pathname_);
493  }
494  if (from.has_streamed_histo()) {
496  streamed_histo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.streamed_histo_);
497  }
498  if (from.has_size()) {
499  set_size(from.size());
500  }
501  if (from.has_flags()) {
502  set_flags(from.flags());
503  }
504  }
505 }
506 
507 void ROOTFilePB_Histo::CopyFrom(const ::google::protobuf::Message& from) {
508 // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
509  if (&from == this) return;
510  Clear();
511  MergeFrom(from);
512 }
513 
515 // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB.Histo)
516  if (&from == this) return;
517  Clear();
518  MergeFrom(from);
519 }
520 
522  if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
523  return true;
524 }
525 
527  if (other == this) return;
528  InternalSwap(other);
529 }
531  full_pathname_.Swap(&other->full_pathname_);
532  streamed_histo_.Swap(&other->streamed_histo_);
533  std::swap(size_, other->size_);
534  std::swap(flags_, other->flags_);
535  std::swap(_has_bits_[0], other->_has_bits_[0]);
538 }
539 
540 ::google::protobuf::Metadata ROOTFilePB_Histo::GetMetadata() const {
541  protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::protobuf_AssignDescriptorsOnce();
542  return protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::file_level_metadata[0];
543 }
544 
545 #if PROTOBUF_INLINE_NOT_IN_HEADERS
546 // ROOTFilePB_Histo
547 
548 // required string full_pathname = 1;
550  return (_has_bits_[0] & 0x00000001u) != 0;
551 }
553  _has_bits_[0] |= 0x00000001u;
554 }
556  _has_bits_[0] &= ~0x00000001u;
557 }
559  full_pathname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
561 }
563  // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.full_pathname)
564  return full_pathname_.GetNoArena();
565 }
568  full_pathname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
569  // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.full_pathname)
570 }
571 #if LANG_CXX11
574  full_pathname_.SetNoArena(
575  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
576  // @@protoc_insertion_point(field_set_rvalue:dqmstorepb.ROOTFilePB.Histo.full_pathname)
577 }
578 #endif
579 void ROOTFilePB_Histo::set_full_pathname(const char* value) {
581  full_pathname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
582  // @@protoc_insertion_point(field_set_char:dqmstorepb.ROOTFilePB.Histo.full_pathname)
583 }
584 void ROOTFilePB_Histo::set_full_pathname(const char* value, size_t size) {
586  full_pathname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
587  ::std::string(reinterpret_cast<const char*>(value), size));
588  // @@protoc_insertion_point(field_set_pointer:dqmstorepb.ROOTFilePB.Histo.full_pathname)
589 }
592  // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.Histo.full_pathname)
593  return full_pathname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
594 }
596  // @@protoc_insertion_point(field_release:dqmstorepb.ROOTFilePB.Histo.full_pathname)
598  return full_pathname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
599 }
601  if (full_pathname != NULL) {
603  } else {
605  }
606  full_pathname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), full_pathname);
607  // @@protoc_insertion_point(field_set_allocated:dqmstorepb.ROOTFilePB.Histo.full_pathname)
608 }
609 
610 // required uint32 size = 2;
611 bool ROOTFilePB_Histo::has_size() const {
612  return (_has_bits_[0] & 0x00000004u) != 0;
613 }
615  _has_bits_[0] |= 0x00000004u;
616 }
618  _has_bits_[0] &= ~0x00000004u;
619 }
621  size_ = 0u;
622  clear_has_size();
623 }
625  // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.size)
626  return size_;
627 }
629  set_has_size();
630  size_ = value;
631  // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.size)
632 }
633 
634 // required bytes streamed_histo = 3;
636  return (_has_bits_[0] & 0x00000002u) != 0;
637 }
639  _has_bits_[0] |= 0x00000002u;
640 }
642  _has_bits_[0] &= ~0x00000002u;
643 }
645  streamed_histo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
647 }
649  // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
650  return streamed_histo_.GetNoArena();
651 }
654  streamed_histo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
655  // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
656 }
657 #if LANG_CXX11
660  streamed_histo_.SetNoArena(
661  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), std::move(value));
662  // @@protoc_insertion_point(field_set_rvalue:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
663 }
664 #endif
665 void ROOTFilePB_Histo::set_streamed_histo(const char* value) {
667  streamed_histo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
668  // @@protoc_insertion_point(field_set_char:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
669 }
670 void ROOTFilePB_Histo::set_streamed_histo(const void* value, size_t size) {
672  streamed_histo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
673  ::std::string(reinterpret_cast<const char*>(value), size));
674  // @@protoc_insertion_point(field_set_pointer:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
675 }
678  // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
679  return streamed_histo_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
680 }
682  // @@protoc_insertion_point(field_release:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
684  return streamed_histo_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
685 }
687  if (streamed_histo != NULL) {
689  } else {
691  }
692  streamed_histo_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), streamed_histo);
693  // @@protoc_insertion_point(field_set_allocated:dqmstorepb.ROOTFilePB.Histo.streamed_histo)
694 }
695 
696 // required uint32 flags = 4;
697 bool ROOTFilePB_Histo::has_flags() const {
698  return (_has_bits_[0] & 0x00000008u) != 0;
699 }
701  _has_bits_[0] |= 0x00000008u;
702 }
704  _has_bits_[0] &= ~0x00000008u;
705 }
707  flags_ = 0u;
708  clear_has_flags();
709 }
711  // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.Histo.flags)
712  return flags_;
713 }
715  set_has_flags();
716  flags_ = value;
717  // @@protoc_insertion_point(field_set:dqmstorepb.ROOTFilePB.Histo.flags)
718 }
719 
720 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
721 
722 // ===================================================================
723 
724 #if !defined(_MSC_VER) || _MSC_VER >= 1900
726 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
727 
729  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
730  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
732  }
733  SharedCtor();
734  // @@protoc_insertion_point(constructor:dqmstorepb.ROOTFilePB)
735 }
737  : ::google::protobuf::Message(),
739  _has_bits_(from._has_bits_),
740  _cached_size_(0),
741  histo_(from.histo_) {
743  // @@protoc_insertion_point(copy_constructor:dqmstorepb.ROOTFilePB)
744 }
745 
747  _cached_size_ = 0;
748 }
749 
751  // @@protoc_insertion_point(destructor:dqmstorepb.ROOTFilePB)
752  SharedDtor();
753 }
754 
756 }
757 
758 void ROOTFilePB::SetCachedSize(int size) const {
759  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
761  GOOGLE_SAFE_CONCURRENT_WRITES_END();
762 }
763 const ::google::protobuf::Descriptor* ROOTFilePB::descriptor() {
764  protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::protobuf_AssignDescriptorsOnce();
765  return protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::file_level_metadata[1].descriptor;
766 }
767 
770  return *internal_default_instance();
771 }
772 
773 ROOTFilePB* ROOTFilePB::New(::google::protobuf::Arena* arena) const {
774  ROOTFilePB* n = new ROOTFilePB;
775  if (arena != NULL) {
776  arena->Own(n);
777  }
778  return n;
779 }
780 
782 // @@protoc_insertion_point(message_clear_start:dqmstorepb.ROOTFilePB)
783  histo_.Clear();
784  _has_bits_.Clear();
785  _internal_metadata_.Clear();
786 }
787 
789  ::google::protobuf::io::CodedInputStream* input) {
790 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
792  // @@protoc_insertion_point(parse_start:dqmstorepb.ROOTFilePB)
793  for (;;) {
794  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
795  tag = p.first;
796  if (!p.second) goto handle_unusual;
797  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
798  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
799  case 1: {
800  if (tag == 10u) {
801  DO_(input->IncrementRecursionDepth());
802  DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
803  input, add_histo()));
804  } else {
805  goto handle_unusual;
806  }
807  input->UnsafeDecrementRecursionDepth();
808  break;
809  }
810 
811  default: {
812  handle_unusual:
813  if (tag == 0 ||
814  ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
815  ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
816  goto success;
817  }
818  DO_(::google::protobuf::internal::WireFormat::SkipField(
819  input, tag, mutable_unknown_fields()));
820  break;
821  }
822  }
823  }
824 success:
825  // @@protoc_insertion_point(parse_success:dqmstorepb.ROOTFilePB)
826  return true;
827 failure:
828  // @@protoc_insertion_point(parse_failure:dqmstorepb.ROOTFilePB)
829  return false;
830 #undef DO_
831 }
832 
834  ::google::protobuf::io::CodedOutputStream* output) const {
835  // @@protoc_insertion_point(serialize_start:dqmstorepb.ROOTFilePB)
836  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
837  for (unsigned int i = 0, n = this->histo_size(); i < n; i++) {
838  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
839  1, this->histo(i), output);
840  }
841 
842  if (_internal_metadata_.have_unknown_fields()) {
843  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
844  unknown_fields(), output);
845  }
846  // @@protoc_insertion_point(serialize_end:dqmstorepb.ROOTFilePB)
847 }
848 
850  bool deterministic, ::google::protobuf::uint8* target) const {
851  (void)deterministic; // Unused
852  // @@protoc_insertion_point(serialize_to_array_start:dqmstorepb.ROOTFilePB)
853  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
854  for (unsigned int i = 0, n = this->histo_size(); i < n; i++) {
855  target = ::google::protobuf::internal::WireFormatLite::
856  InternalWriteMessageNoVirtualToArray(
857  1, this->histo(i), false, target);
858  }
859 
860  if (_internal_metadata_.have_unknown_fields()) {
861  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
862  unknown_fields(), target);
863  }
864  // @@protoc_insertion_point(serialize_to_array_end:dqmstorepb.ROOTFilePB)
865  return target;
866 }
867 
868 size_t ROOTFilePB::ByteSizeLong() const {
869 // @@protoc_insertion_point(message_byte_size_start:dqmstorepb.ROOTFilePB)
870  size_t total_size = 0;
871 
872  if (_internal_metadata_.have_unknown_fields()) {
873  total_size +=
874  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
875  unknown_fields());
876  }
877  // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
878  {
879  unsigned int count = this->histo_size();
880  total_size += 1UL * count;
881  for (unsigned int i = 0; i < count; i++) {
882  total_size +=
883  ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
884  this->histo(i));
885  }
886  }
887 
888  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
889  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
890  _cached_size_ = cached_size;
891  GOOGLE_SAFE_CONCURRENT_WRITES_END();
892  return total_size;
893 }
894 
895 void ROOTFilePB::MergeFrom(const ::google::protobuf::Message& from) {
896 // @@protoc_insertion_point(generalized_merge_from_start:dqmstorepb.ROOTFilePB)
897  GOOGLE_DCHECK_NE(&from, this);
898  const ROOTFilePB* source =
899  ::google::protobuf::internal::DynamicCastToGenerated<const ROOTFilePB>(
900  &from);
901  if (source == NULL) {
902  // @@protoc_insertion_point(generalized_merge_from_cast_fail:dqmstorepb.ROOTFilePB)
903  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
904  } else {
905  // @@protoc_insertion_point(generalized_merge_from_cast_success:dqmstorepb.ROOTFilePB)
906  MergeFrom(*source);
907  }
908 }
909 
911 // @@protoc_insertion_point(class_specific_merge_from_start:dqmstorepb.ROOTFilePB)
912  GOOGLE_DCHECK_NE(&from, this);
914  histo_.MergeFrom(from.histo_);
915 }
916 
917 void ROOTFilePB::CopyFrom(const ::google::protobuf::Message& from) {
918 // @@protoc_insertion_point(generalized_copy_from_start:dqmstorepb.ROOTFilePB)
919  if (&from == this) return;
920  Clear();
921  MergeFrom(from);
922 }
923 
924 void ROOTFilePB::CopyFrom(const ROOTFilePB& from) {
925 // @@protoc_insertion_point(class_specific_copy_from_start:dqmstorepb.ROOTFilePB)
926  if (&from == this) return;
927  Clear();
928  MergeFrom(from);
929 }
930 
932  if (!::google::protobuf::internal::AllAreInitialized(this->histo())) return false;
933  return true;
934 }
935 
937  if (other == this) return;
938  InternalSwap(other);
939 }
941  histo_.UnsafeArenaSwap(&other->histo_);
942  std::swap(_has_bits_[0], other->_has_bits_[0]);
945 }
946 
947 ::google::protobuf::Metadata ROOTFilePB::GetMetadata() const {
948  protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::protobuf_AssignDescriptorsOnce();
949  return protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::file_level_metadata[1];
950 }
951 
952 #if PROTOBUF_INLINE_NOT_IN_HEADERS
953 // ROOTFilePB
954 
955 // repeated .dqmstorepb.ROOTFilePB.Histo histo = 1;
956 int ROOTFilePB::histo_size() const {
957  return histo_.size();
958 }
960  histo_.Clear();
961 }
962 const ::dqmstorepb::ROOTFilePB_Histo& ROOTFilePB::histo(int index) const {
963  // @@protoc_insertion_point(field_get:dqmstorepb.ROOTFilePB.histo)
964  return histo_.Get(index);
965 }
967  // @@protoc_insertion_point(field_mutable:dqmstorepb.ROOTFilePB.histo)
968  return histo_.Mutable(index);
969 }
971  // @@protoc_insertion_point(field_add:dqmstorepb.ROOTFilePB.histo)
972  return histo_.Add();
973 }
974 ::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo >*
976  // @@protoc_insertion_point(field_mutable_list:dqmstorepb.ROOTFilePB.histo)
977  return &histo_;
978 }
979 const ::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo >&
980 ROOTFilePB::histo() const {
981  // @@protoc_insertion_point(field_list:dqmstorepb.ROOTFilePB.histo)
982  return histo_;
983 }
984 
985 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS
986 
987 // @@protoc_insertion_point(namespace_scope)
988 
989 } // namespace dqmstorepb
990 
991 // @@protoc_insertion_point(global_scope)
::google::protobuf::uint32 flags_
size
Write out results.
static const ROOTFilePB & default_instance()
::google::protobuf::uint32 size() const
const ::std::string & full_pathname() const
ROOTFilePB_Histo * New() const PROTOBUF_FINAL
Definition: ROOTFilePB.pb.h:88
void set_allocated_streamed_histo(::std::string *streamed_histo)
static const ROOTFilePB_Histo * internal_default_instance()
Definition: ROOTFilePB.pb.h:79
::google::protobuf::internal::HasBits< 1 > _has_bits_
void set_allocated_full_pathname(::std::string *full_pathname)
::std::string * release_full_pathname()
static const int kSizeFieldNumber
void Clear() PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
#define NULL
Definition: scimark2.h:8
::google::protobuf::Message const *const file_default_instances[]
size_t RequiredFieldsByteSizeFallback() const
#define DO_(EXPRESSION)
bool IsInitialized() const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
void set_flags(::google::protobuf::uint32 value)
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
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
static std::string const input
Definition: EdmProvDump.cc:44
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
static const ::google::protobuf::internal::MigrationSchema schemas[]
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
dqmstorepb::ROOTFilePBDefaultTypeInternal _ROOTFilePB_default_instance_
Definition: ROOTFilePB.pb.h:34
::google::protobuf::internal::HasBits< 1 > _has_bits_
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: value.py:1
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: ROOTFilePB.pb.h:68
static const int kHistoFieldNumber
dqmstorepb::ROOTFilePB_HistoDefaultTypeInternal _ROOTFilePB_Histo_default_instance_
Definition: ROOTFilePB.pb.h:37
unsigned int uint32
Definition: MsgTools.h:13
static const ROOTFilePB * internal_default_instance()
void InternalSwap(ROOTFilePB_Histo *other)
void set_size(::google::protobuf::uint32 value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::uint32 size_
void Clear() PROTOBUF_FINAL
::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo > * mutable_histo()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::RepeatedPtrField< ::dqmstorepb::ROOTFilePB_Histo > & histo() const
unsigned char uint8
Definition: MsgTools.h:11
void set_full_pathname(const ::std::string &value)
::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_
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: ROOTFilePB.pb.h:72
::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
::std::string * release_streamed_histo()
void Swap(ROOTFilePB_Histo *other)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
static std::string const source
Definition: EdmProvDump.cc:43
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool IsInitialized() const PROTOBUF_FINAL
def move(src, dest)
Definition: eostools.py:510
void set_streamed_histo(const ::std::string &value)
struct dqmstorepb::protobuf_DQMServices_2fCore_2fsrc_2fROOTFilePB_2eproto::StaticDescriptorInitializer static_descriptor_initializer