4 #ifndef PROTOBUF_ProMCStat_2eproto__INCLUDED
5 #define PROTOBUF_ProMCStat_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2005000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
32 void protobuf_AddDesc_ProMCStat_2eproto();
33 void protobuf_AssignDesc_ProMCStat_2eproto();
34 void protobuf_ShutdownFile_ProMCStat_2eproto();
37 class ProMCStat_ProcessData;
53 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
54 return _unknown_fields_;
57 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58 return &_unknown_fields_;
61 static const ::google::protobuf::Descriptor* descriptor();
69 void CopyFrom(const ::google::protobuf::Message& from);
70 void MergeFrom(const ::google::protobuf::Message& from);
74 bool IsInitialized()
const;
77 bool MergePartialFromCodedStream(
78 ::google::protobuf::io::CodedInputStream* input);
79 void SerializeWithCachedSizes(
80 ::google::protobuf::io::CodedOutputStream* output)
const;
81 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
82 int GetCachedSize()
const {
return _cached_size_; }
86 void SetCachedSize(
int size)
const;
89 ::google::protobuf::Metadata GetMetadata()
const;
96 inline bool has_id()
const;
97 inline void clear_id();
98 static const int kIdFieldNumber = 1;
99 inline ::google::protobuf::int32 id()
const;
100 inline void set_id(::google::protobuf::int32 value);
103 inline bool has_cross_section()
const;
104 inline void clear_cross_section();
105 static const int kCrossSectionFieldNumber = 2;
106 inline double cross_section()
const;
107 inline void set_cross_section(
double value);
110 inline bool has_cross_section_error()
const;
111 inline void clear_cross_section_error();
112 static const int kCrossSectionErrorFieldNumber = 3;
113 inline double cross_section_error()
const;
114 inline void set_cross_section_error(
double value);
117 inline bool has_name()
const;
118 inline void clear_name();
119 static const int kNameFieldNumber = 4;
120 inline const ::std::string& name()
const;
121 inline void set_name(const ::std::string& value);
122 inline void set_name(
const char* value);
123 inline void set_name(
const char* value,
size_t size);
124 inline ::std::string* mutable_name();
125 inline ::std::string* release_name();
126 inline void set_allocated_name(::std::string* name);
130 inline void set_has_id();
131 inline void clear_has_id();
132 inline void set_has_cross_section();
133 inline void clear_has_cross_section();
134 inline void set_has_cross_section_error();
135 inline void clear_has_cross_section_error();
136 inline void set_has_name();
137 inline void clear_has_name();
139 ::google::protobuf::UnknownFieldSet _unknown_fields_;
141 double cross_section_;
142 double cross_section_error_;
143 ::std::string* name_;
144 ::google::protobuf::int32 id_;
146 mutable int _cached_size_;
147 ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
149 friend void protobuf_AddDesc_ProMCStat_2eproto();
150 friend void protobuf_AssignDesc_ProMCStat_2eproto();
151 friend void protobuf_ShutdownFile_ProMCStat_2eproto();
153 void InitAsDefaultInstance();
170 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
171 return _unknown_fields_;
174 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
175 return &_unknown_fields_;
178 static const ::google::protobuf::Descriptor* descriptor();
179 static const ProMCStat& default_instance();
186 void CopyFrom(const ::google::protobuf::Message& from);
187 void MergeFrom(const ::google::protobuf::Message& from);
191 bool IsInitialized()
const;
193 int ByteSize()
const;
194 bool MergePartialFromCodedStream(
195 ::google::protobuf::io::CodedInputStream* input);
196 void SerializeWithCachedSizes(
197 ::google::protobuf::io::CodedOutputStream* output)
const;
198 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
199 int GetCachedSize()
const {
return _cached_size_; }
203 void SetCachedSize(
int size)
const;
206 ::google::protobuf::Metadata GetMetadata()
const;
215 inline bool has_nevents_requested()
const;
216 inline void clear_nevents_requested();
217 static const int kNeventsRequestedFieldNumber = 1;
218 inline ::google::protobuf::int32 nevents_requested()
const;
219 inline void set_nevents_requested(::google::protobuf::int32 value);
222 inline bool has_nevents_failed()
const;
223 inline void clear_nevents_failed();
224 static const int kNeventsFailedFieldNumber = 2;
225 inline ::google::protobuf::int32 nevents_failed()
const;
226 inline void set_nevents_failed(::google::protobuf::int32 value);
229 inline bool has_cross_section_accumulated()
const;
230 inline void clear_cross_section_accumulated();
231 static const int kCrossSectionAccumulatedFieldNumber = 3;
232 inline double cross_section_accumulated()
const;
233 inline void set_cross_section_accumulated(
double value);
236 inline bool has_cross_section_error_accumulated()
const;
237 inline void clear_cross_section_error_accumulated();
238 static const int kCrossSectionErrorAccumulatedFieldNumber = 4;
239 inline double cross_section_error_accumulated()
const;
240 inline void set_cross_section_error_accumulated(
double value);
243 inline bool has_luminosity_accumulated()
const;
244 inline void clear_luminosity_accumulated();
245 static const int kLuminosityAccumulatedFieldNumber = 5;
246 inline double luminosity_accumulated()
const;
247 inline void set_luminosity_accumulated(
double value);
250 inline bool has_ntried()
const;
251 inline void clear_ntried();
252 static const int kNTriedFieldNumber = 6;
253 inline ::google::protobuf::int32 ntried()
const;
254 inline void set_ntried(::google::protobuf::int32 value);
257 inline bool has_nselected()
const;
258 inline void clear_nselected();
259 static const int kNSelectedFieldNumber = 7;
260 inline ::google::protobuf::int32 nselected()
const;
261 inline void set_nselected(::google::protobuf::int32 value);
264 inline bool has_naccepted()
const;
265 inline void clear_naccepted();
266 static const int kNAcceptedFieldNumber = 8;
267 inline ::google::protobuf::int32 naccepted()
const;
268 inline void set_naccepted(::google::protobuf::int32 value);
271 inline int processdata_size()
const;
272 inline void clear_processdata();
273 static const int kProcessDataFieldNumber = 10;
274 inline const ::promc::ProMCStat_ProcessData& processdata(
int index)
const;
275 inline ::promc::ProMCStat_ProcessData* mutable_processdata(
int index);
276 inline ::promc::ProMCStat_ProcessData* add_processdata();
277 inline const ::google::protobuf::RepeatedPtrField< ::promc::ProMCStat_ProcessData >&
279 inline ::google::protobuf::RepeatedPtrField< ::promc::ProMCStat_ProcessData >*
280 mutable_processdata();
284 inline void set_has_nevents_requested();
285 inline void clear_has_nevents_requested();
286 inline void set_has_nevents_failed();
287 inline void clear_has_nevents_failed();
288 inline void set_has_cross_section_accumulated();
289 inline void clear_has_cross_section_accumulated();
290 inline void set_has_cross_section_error_accumulated();
291 inline void clear_has_cross_section_error_accumulated();
292 inline void set_has_luminosity_accumulated();
293 inline void clear_has_luminosity_accumulated();
294 inline void set_has_ntried();
295 inline void clear_has_ntried();
296 inline void set_has_nselected();
297 inline void clear_has_nselected();
298 inline void set_has_naccepted();
299 inline void clear_has_naccepted();
301 ::google::protobuf::UnknownFieldSet _unknown_fields_;
303 ::google::protobuf::int32 nevents_requested_;
304 ::google::protobuf::int32 nevents_failed_;
305 double cross_section_accumulated_;
306 double cross_section_error_accumulated_;
307 double luminosity_accumulated_;
308 ::google::protobuf::int32 ntried_;
309 ::google::protobuf::int32 nselected_;
310 ::google::protobuf::RepeatedPtrField< ::promc::ProMCStat_ProcessData > processdata_;
311 ::google::protobuf::int32 naccepted_;
313 mutable int _cached_size_;
314 ::google::protobuf::uint32 _has_bits_[(9 + 31) / 32];
316 friend void protobuf_AddDesc_ProMCStat_2eproto();
317 friend void protobuf_AssignDesc_ProMCStat_2eproto();
318 friend void protobuf_ShutdownFile_ProMCStat_2eproto();
320 void InitAsDefaultInstance();
331 inline bool ProMCStat_ProcessData::has_id()
const {
332 return (_has_bits_[0] & 0x00000001u) != 0;
334 inline void ProMCStat_ProcessData::set_has_id() {
335 _has_bits_[0] |= 0x00000001u;
337 inline void ProMCStat_ProcessData::clear_has_id() {
338 _has_bits_[0] &= ~0x00000001u;
340 inline void ProMCStat_ProcessData::clear_id() {
344 inline ::google::protobuf::int32 ProMCStat_ProcessData::id()
const {
347 inline void ProMCStat_ProcessData::set_id(::google::protobuf::int32 value) {
353 inline bool ProMCStat_ProcessData::has_cross_section()
const {
354 return (_has_bits_[0] & 0x00000002u) != 0;
356 inline void ProMCStat_ProcessData::set_has_cross_section() {
357 _has_bits_[0] |= 0x00000002u;
359 inline void ProMCStat_ProcessData::clear_has_cross_section() {
360 _has_bits_[0] &= ~0x00000002u;
362 inline void ProMCStat_ProcessData::clear_cross_section() {
364 clear_has_cross_section();
366 inline double ProMCStat_ProcessData::cross_section()
const {
367 return cross_section_;
369 inline void ProMCStat_ProcessData::set_cross_section(
double value) {
370 set_has_cross_section();
371 cross_section_ = value;
375 inline bool ProMCStat_ProcessData::has_cross_section_error()
const {
376 return (_has_bits_[0] & 0x00000004u) != 0;
378 inline void ProMCStat_ProcessData::set_has_cross_section_error() {
379 _has_bits_[0] |= 0x00000004u;
381 inline void ProMCStat_ProcessData::clear_has_cross_section_error() {
382 _has_bits_[0] &= ~0x00000004u;
384 inline void ProMCStat_ProcessData::clear_cross_section_error() {
385 cross_section_error_ = 0;
386 clear_has_cross_section_error();
388 inline double ProMCStat_ProcessData::cross_section_error()
const {
389 return cross_section_error_;
391 inline void ProMCStat_ProcessData::set_cross_section_error(
double value) {
392 set_has_cross_section_error();
393 cross_section_error_ = value;
397 inline bool ProMCStat_ProcessData::has_name()
const {
398 return (_has_bits_[0] & 0x00000008u) != 0;
400 inline void ProMCStat_ProcessData::set_has_name() {
401 _has_bits_[0] |= 0x00000008u;
403 inline void ProMCStat_ProcessData::clear_has_name() {
404 _has_bits_[0] &= ~0x00000008u;
406 inline void ProMCStat_ProcessData::clear_name() {
407 if (name_ != &::google::protobuf::internal::kEmptyString) {
412 inline const ::std::string& ProMCStat_ProcessData::name()
const {
415 inline void ProMCStat_ProcessData::set_name(const ::std::string& value) {
417 if (name_ == &::google::protobuf::internal::kEmptyString) {
418 name_ = new ::std::string;
420 name_->assign(value);
422 inline void ProMCStat_ProcessData::set_name(
const char* value) {
424 if (name_ == &::google::protobuf::internal::kEmptyString) {
425 name_ = new ::std::string;
427 name_->assign(value);
429 inline void ProMCStat_ProcessData::set_name(
const char* value,
size_t size) {
431 if (name_ == &::google::protobuf::internal::kEmptyString) {
432 name_ = new ::std::string;
434 name_->assign(reinterpret_cast<const char*>(value), size);
436 inline ::std::string* ProMCStat_ProcessData::mutable_name() {
438 if (name_ == &::google::protobuf::internal::kEmptyString) {
439 name_ = new ::std::string;
443 inline ::std::string* ProMCStat_ProcessData::release_name() {
445 if (name_ == &::google::protobuf::internal::kEmptyString) {
448 ::std::string* temp = name_;
449 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
453 inline void ProMCStat_ProcessData::set_allocated_name(::std::string* name) {
454 if (name_ != &::google::protobuf::internal::kEmptyString) {
462 name_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::kEmptyString);
471 inline bool ProMCStat::has_nevents_requested()
const {
472 return (_has_bits_[0] & 0x00000001u) != 0;
474 inline void ProMCStat::set_has_nevents_requested() {
475 _has_bits_[0] |= 0x00000001u;
477 inline void ProMCStat::clear_has_nevents_requested() {
478 _has_bits_[0] &= ~0x00000001u;
480 inline void ProMCStat::clear_nevents_requested() {
481 nevents_requested_ = 0;
482 clear_has_nevents_requested();
484 inline ::google::protobuf::int32 ProMCStat::nevents_requested()
const {
485 return nevents_requested_;
487 inline void ProMCStat::set_nevents_requested(::google::protobuf::int32 value) {
488 set_has_nevents_requested();
489 nevents_requested_ = value;
493 inline bool ProMCStat::has_nevents_failed()
const {
494 return (_has_bits_[0] & 0x00000002u) != 0;
496 inline void ProMCStat::set_has_nevents_failed() {
497 _has_bits_[0] |= 0x00000002u;
499 inline void ProMCStat::clear_has_nevents_failed() {
500 _has_bits_[0] &= ~0x00000002u;
502 inline void ProMCStat::clear_nevents_failed() {
504 clear_has_nevents_failed();
506 inline ::google::protobuf::int32 ProMCStat::nevents_failed()
const {
507 return nevents_failed_;
509 inline void ProMCStat::set_nevents_failed(::google::protobuf::int32 value) {
510 set_has_nevents_failed();
511 nevents_failed_ = value;
515 inline bool ProMCStat::has_cross_section_accumulated()
const {
516 return (_has_bits_[0] & 0x00000004u) != 0;
518 inline void ProMCStat::set_has_cross_section_accumulated() {
519 _has_bits_[0] |= 0x00000004u;
521 inline void ProMCStat::clear_has_cross_section_accumulated() {
522 _has_bits_[0] &= ~0x00000004u;
524 inline void ProMCStat::clear_cross_section_accumulated() {
525 cross_section_accumulated_ = 0;
526 clear_has_cross_section_accumulated();
528 inline double ProMCStat::cross_section_accumulated()
const {
529 return cross_section_accumulated_;
531 inline void ProMCStat::set_cross_section_accumulated(
double value) {
532 set_has_cross_section_accumulated();
533 cross_section_accumulated_ = value;
537 inline bool ProMCStat::has_cross_section_error_accumulated()
const {
538 return (_has_bits_[0] & 0x00000008u) != 0;
540 inline void ProMCStat::set_has_cross_section_error_accumulated() {
541 _has_bits_[0] |= 0x00000008u;
543 inline void ProMCStat::clear_has_cross_section_error_accumulated() {
544 _has_bits_[0] &= ~0x00000008u;
546 inline void ProMCStat::clear_cross_section_error_accumulated() {
547 cross_section_error_accumulated_ = 0;
548 clear_has_cross_section_error_accumulated();
550 inline double ProMCStat::cross_section_error_accumulated()
const {
551 return cross_section_error_accumulated_;
553 inline void ProMCStat::set_cross_section_error_accumulated(
double value) {
554 set_has_cross_section_error_accumulated();
555 cross_section_error_accumulated_ = value;
559 inline bool ProMCStat::has_luminosity_accumulated()
const {
560 return (_has_bits_[0] & 0x00000010u) != 0;
562 inline void ProMCStat::set_has_luminosity_accumulated() {
563 _has_bits_[0] |= 0x00000010u;
565 inline void ProMCStat::clear_has_luminosity_accumulated() {
566 _has_bits_[0] &= ~0x00000010u;
568 inline void ProMCStat::clear_luminosity_accumulated() {
569 luminosity_accumulated_ = 0;
570 clear_has_luminosity_accumulated();
572 inline double ProMCStat::luminosity_accumulated()
const {
573 return luminosity_accumulated_;
575 inline void ProMCStat::set_luminosity_accumulated(
double value) {
576 set_has_luminosity_accumulated();
577 luminosity_accumulated_ = value;
581 inline bool ProMCStat::has_ntried()
const {
582 return (_has_bits_[0] & 0x00000020u) != 0;
584 inline void ProMCStat::set_has_ntried() {
585 _has_bits_[0] |= 0x00000020u;
587 inline void ProMCStat::clear_has_ntried() {
588 _has_bits_[0] &= ~0x00000020u;
590 inline void ProMCStat::clear_ntried() {
594 inline ::google::protobuf::int32 ProMCStat::ntried()
const {
597 inline void ProMCStat::set_ntried(::google::protobuf::int32 value) {
603 inline bool ProMCStat::has_nselected()
const {
604 return (_has_bits_[0] & 0x00000040u) != 0;
606 inline void ProMCStat::set_has_nselected() {
607 _has_bits_[0] |= 0x00000040u;
609 inline void ProMCStat::clear_has_nselected() {
610 _has_bits_[0] &= ~0x00000040u;
612 inline void ProMCStat::clear_nselected() {
614 clear_has_nselected();
616 inline ::google::protobuf::int32 ProMCStat::nselected()
const {
619 inline void ProMCStat::set_nselected(::google::protobuf::int32 value) {
625 inline bool ProMCStat::has_naccepted()
const {
626 return (_has_bits_[0] & 0x00000080u) != 0;
628 inline void ProMCStat::set_has_naccepted() {
629 _has_bits_[0] |= 0x00000080u;
631 inline void ProMCStat::clear_has_naccepted() {
632 _has_bits_[0] &= ~0x00000080u;
634 inline void ProMCStat::clear_naccepted() {
636 clear_has_naccepted();
638 inline ::google::protobuf::int32 ProMCStat::naccepted()
const {
641 inline void ProMCStat::set_naccepted(::google::protobuf::int32 value) {
647 inline int ProMCStat::processdata_size()
const {
648 return processdata_.size();
650 inline void ProMCStat::clear_processdata() {
651 processdata_.Clear();
653 inline const ::promc::ProMCStat_ProcessData& ProMCStat::processdata(
int index)
const {
654 return processdata_.Get(index);
656 inline ::promc::ProMCStat_ProcessData* ProMCStat::mutable_processdata(
int index) {
657 return processdata_.Mutable(index);
659 inline ::promc::ProMCStat_ProcessData* ProMCStat::add_processdata() {
660 return processdata_.Add();
662 inline const ::google::protobuf::RepeatedPtrField< ::promc::ProMCStat_ProcessData >&
663 ProMCStat::processdata()
const {
666 inline ::google::protobuf::RepeatedPtrField< ::promc::ProMCStat_ProcessData >*
667 ProMCStat::mutable_processdata() {
668 return &processdata_;
687 #endif // PROTOBUF_ProMCStat_2eproto__INCLUDED
Definition: ProMCStat.pb.h:158
Definition: ProMCStat.pb.h:41