4 #ifndef PROTOBUF_ignition_2fmsgs_2fstatistic_2eproto__INCLUDED 5 #define PROTOBUF_ignition_2fmsgs_2fstatistic_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 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 3000000 < 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/arena.h> 23 #include <google/protobuf/arenastring.h> 24 #include <google/protobuf/generated_message_util.h> 25 #include <google/protobuf/metadata.h> 26 #include <google/protobuf/message.h> 27 #include <google/protobuf/repeated_field.h> 28 #include <google/protobuf/extension_set.h> 29 #include <google/protobuf/generated_enum_reflection.h> 30 #include <google/protobuf/unknown_field_set.h> 33 #pragma GCC system_header 36 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251) 39 #include <sys/sysmacros.h> 55 class StatisticsGroup;
77 return ::google::protobuf::internal::NameOfEnum(
82 return ::google::protobuf::internal::ParseNamedEnum<Statistic_DataType>(
87 class IGNITION_MSGS_VISIBLE
Statistic :
public ::google::protobuf::Message {
99 static const ::google::protobuf::Descriptor* descriptor();
100 static const Statistic& default_instance();
108 Statistic* New(::google::protobuf::Arena* arena)
const;
109 void CopyFrom(const ::google::protobuf::Message& from);
110 void MergeFrom(const ::google::protobuf::Message& from);
114 bool IsInitialized()
const;
116 int ByteSize()
const;
117 bool MergePartialFromCodedStream(
118 ::google::protobuf::io::CodedInputStream* input);
119 void SerializeWithCachedSizes(
120 ::google::protobuf::io::CodedOutputStream* output)
const;
121 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
122 bool deterministic, ::google::protobuf::uint8* output)
const;
124 return InternalSerializeWithCachedSizesToArray(
false, output);
130 void SetCachedSize(
int size)
const;
133 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
134 return _internal_metadata_.arena();
136 inline void* MaybeArenaPtr()
const {
137 return _internal_metadata_.raw_arena_ptr();
141 ::google::protobuf::Metadata GetMetadata()
const;
146 static const DataType UNINITIALIZED =
148 static const DataType AVERAGE =
150 static const DataType MINIMUM =
152 static const DataType MAXIMUM =
154 static const DataType VARIANCE =
156 static const DataType STDDEV =
158 static const DataType SAMPLE_COUNT =
160 static const DataType ROOT_MEAN_SQUARE =
162 static const DataType MAX_ABS_VALUE =
167 static const DataType DataType_MIN =
169 static const DataType DataType_MAX =
171 static const int DataType_ARRAYSIZE =
173 static inline const ::google::protobuf::EnumDescriptor*
188 bool has_header()
const;
190 static const int kHeaderFieldNumber = 1;
191 const ::ignition::msgs::Header& header()
const;
198 static const int kTypeFieldNumber = 2;
204 static const int kNameFieldNumber = 3;
205 const ::std::string& name()
const;
206 void set_name(const ::std::string& value);
207 void set_name(
const char* value);
208 void set_name(
const char* value,
size_t size);
215 static const int kValueFieldNumber = 4;
216 double value()
const;
217 void set_value(
double value);
222 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
223 bool _is_default_instance_;
225 ::google::protobuf::internal::ArenaStringPtr name_;
228 mutable int _cached_size_;
233 void InitAsDefaultInstance();
250 static const ::google::protobuf::Descriptor* descriptor();
260 void CopyFrom(const ::google::protobuf::Message& from);
261 void MergeFrom(const ::google::protobuf::Message& from);
265 bool IsInitialized()
const;
267 int ByteSize()
const;
268 bool MergePartialFromCodedStream(
269 ::google::protobuf::io::CodedInputStream* input);
270 void SerializeWithCachedSizes(
271 ::google::protobuf::io::CodedOutputStream* output)
const;
272 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
273 bool deterministic, ::google::protobuf::uint8* output)
const;
275 return InternalSerializeWithCachedSizesToArray(
false, output);
281 void SetCachedSize(
int size)
const;
284 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
285 return _internal_metadata_.arena();
287 inline void* MaybeArenaPtr()
const {
288 return _internal_metadata_.raw_arena_ptr();
292 ::google::protobuf::Metadata GetMetadata()
const;
299 bool has_header()
const;
301 static const int kHeaderFieldNumber = 1;
302 const ::ignition::msgs::Header& header()
const;
309 static const int kNameFieldNumber = 2;
310 const ::std::string& name()
const;
311 void set_name(const ::std::string& value);
312 void set_name(
const char* value);
313 void set_name(
const char* value,
size_t size);
319 int statistics_size()
const;
320 void clear_statistics();
321 static const int kStatisticsFieldNumber = 3;
322 const ::ignition::msgs::Statistic& statistics(
int index)
const;
325 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >*
326 mutable_statistics();
327 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >&
333 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
334 bool _is_default_instance_;
336 ::google::protobuf::internal::ArenaStringPtr name_;
337 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > statistics_;
338 mutable int _cached_size_;
343 void InitAsDefaultInstance();
348 class IGNITION_MSGS_VISIBLE
Metric :
public ::google::protobuf::Message {
360 static const ::google::protobuf::Descriptor* descriptor();
361 static const Metric& default_instance();
369 Metric* New(::google::protobuf::Arena* arena)
const;
370 void CopyFrom(const ::google::protobuf::Message& from);
371 void MergeFrom(const ::google::protobuf::Message& from);
372 void CopyFrom(
const Metric& from);
373 void MergeFrom(
const Metric& from);
375 bool IsInitialized()
const;
377 int ByteSize()
const;
378 bool MergePartialFromCodedStream(
379 ::google::protobuf::io::CodedInputStream* input);
380 void SerializeWithCachedSizes(
381 ::google::protobuf::io::CodedOutputStream* output)
const;
382 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
383 bool deterministic, ::google::protobuf::uint8* output)
const;
385 return InternalSerializeWithCachedSizesToArray(
false, output);
391 void SetCachedSize(
int size)
const;
392 void InternalSwap(
Metric* other);
394 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
395 return _internal_metadata_.arena();
397 inline void* MaybeArenaPtr()
const {
398 return _internal_metadata_.raw_arena_ptr();
402 ::google::protobuf::Metadata GetMetadata()
const;
409 bool has_header()
const;
411 static const int kHeaderFieldNumber = 1;
412 const ::ignition::msgs::Header& header()
const;
419 static const int kUnitFieldNumber = 2;
420 const ::std::string& unit()
const;
421 void set_unit(const ::std::string& value);
422 void set_unit(
const char* value);
423 void set_unit(
const char* value,
size_t size);
429 int statistics_groups_size()
const;
430 void clear_statistics_groups();
431 static const int kStatisticsGroupsFieldNumber = 3;
432 const ::ignition::msgs::StatisticsGroup& statistics_groups(
int index)
const;
435 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
436 mutable_statistics_groups();
437 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
438 statistics_groups()
const;
441 int statistics_size()
const;
442 void clear_statistics();
443 static const int kStatisticsFieldNumber = 4;
444 const ::ignition::msgs::Statistic& statistics(
int index)
const;
447 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >*
448 mutable_statistics();
449 const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >&
455 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
456 bool _is_default_instance_;
458 ::google::protobuf::internal::ArenaStringPtr unit_;
459 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > statistics_groups_;
460 ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > statistics_;
461 mutable int _cached_size_;
466 void InitAsDefaultInstance();
467 static Metric* default_instance_;
474 #if !PROTOBUF_INLINE_NOT_IN_HEADERS 479 return !_is_default_instance_ && header_ != NULL;
482 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
487 return header_ != NULL ? *header_ : *default_instance_->header_;
491 if (header_ == NULL) {
492 header_ = new ::ignition::msgs::Header;
531 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
535 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
539 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
544 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
549 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
550 ::
std::string(reinterpret_cast<const char*>(value), size));
556 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
561 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
569 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
593 return !_is_default_instance_ && header_ != NULL;
596 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
601 return header_ != NULL ? *header_ : *default_instance_->header_;
605 if (header_ == NULL) {
606 header_ = new ::ignition::msgs::Header;
631 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
635 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
639 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
644 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
649 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
650 ::
std::string(reinterpret_cast<const char*>(value), size));
656 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
661 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
669 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
675 return statistics_.size();
682 return statistics_.Get(index);
686 return statistics_.Mutable(index);
690 return statistics_.Add();
692 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >*
697 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >&
709 return !_is_default_instance_ && header_ != NULL;
712 if (GetArenaNoVirtual() == NULL && header_ != NULL)
delete header_;
717 return header_ != NULL ? *header_ : *default_instance_->header_;
721 if (header_ == NULL) {
722 header_ = new ::ignition::msgs::Header;
747 unit_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
751 return unit_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
755 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
760 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
765 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
766 ::
std::string(reinterpret_cast<const char*>(value), size));
772 return unit_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
777 return unit_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
785 unit_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), unit);
791 return statistics_groups_.size();
794 statistics_groups_.Clear();
798 return statistics_groups_.Get(index);
802 return statistics_groups_.Mutable(index);
806 return statistics_groups_.Add();
808 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
811 return &statistics_groups_;
813 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
816 return statistics_groups_;
821 return statistics_.size();
828 return statistics_.Get(index);
832 return statistics_.Mutable(index);
836 return statistics_.Add();
838 inline ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >*
843 inline const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic >&
849 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS 870 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Statistic_DataType>() {
883 #endif // PROTOBUF_ignition_2fmsgs_2fstatistic_2eproto__INCLUDED std::unique_ptr< Statistic > StatisticUniquePtr
Definition: statistic.pb.h:855
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > * mutable_statistics()
Definition: statistic.pb.h:839
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: statistic.pb.h:274
Definition: statistic.pb.h:59
double value() const
Definition: statistic.pb.h:577
void set_allocated_header(::ignition::msgs::Header *header)
Definition: statistic.pb.h:504
::ignition::msgs::StatisticsGroup * add_statistics_groups()
Definition: statistic.pb.h:804
::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > * mutable_statistics_groups()
Definition: statistic.pb.h:809
const Statistic_DataType Statistic_DataType_DataType_MAX
Definition: statistic.pb.h:72
IGNITION_MSGS_VISIBLE bool Statistic_DataType_IsValid(int value)
bool has_header() const
Definition: statistic.pb.h:478
::std::string * release_unit()
Definition: statistic.pb.h:774
Definition: statistic.pb.h:61
::ignition::msgs::Header * release_header()
Definition: statistic.pb.h:497
void clear_statistics()
Definition: statistic.pb.h:677
const ::std::string & name() const
Definition: statistic.pb.h:633
void clear_name()
Definition: statistic.pb.h:630
void clear_value()
Definition: statistic.pb.h:574
const ::std::string & unit() const
Definition: statistic.pb.h:749
::ignition::msgs::Header * mutable_header()
Definition: statistic.pb.h:603
const Statistic_DataType Statistic_DataType_DataType_MIN
Definition: statistic.pb.h:71
Statistic & operator=(const Statistic &from)
Definition: statistic.pb.h:94
::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > * mutable_statistics()
Definition: statistic.pb.h:693
void clear_header()
Definition: statistic.pb.h:481
Metric & operator=(const Metric &from)
Definition: statistic.pb.h:355
::ignition::msgs::Header * release_header()
Definition: statistic.pb.h:611
static bool DataType_IsValid(int value)
Definition: statistic.pb.h:164
void clear_name()
Definition: statistic.pb.h:530
const ::ignition::msgs::Header & header() const
Definition: statistic.pb.h:599
const int Statistic_DataType_DataType_ARRAYSIZE
Definition: statistic.pb.h:73
const ::ignition::msgs::Header & header() const
Definition: statistic.pb.h:715
void protobuf_ShutdownFile_ignition_2fmsgs_2fstatistic_2eproto()
void set_value(double value)
Definition: statistic.pb.h:581
Statistic_DataType DataType
Definition: statistic.pb.h:145
const ::ignition::msgs::Header & header() const
Definition: statistic.pb.h:485
::std::string * mutable_unit()
Definition: statistic.pb.h:769
void clear_header()
Definition: statistic.pb.h:595
bool Statistic_DataType_Parse(const ::std::string &name, Statistic_DataType *value)
Definition: statistic.pb.h:80
int statistics_size() const
Definition: statistic.pb.h:674
void clear_statistics()
Definition: statistic.pb.h:823
Definition: statistic.pb.h:67
void set_allocated_name(::std::string *name)
Definition: statistic.pb.h:563
int statistics_size() const
Definition: statistic.pb.h:820
Definition: statistic.pb.h:64
Statistic_DataType
Definition: statistic.pb.h:57
void clear_unit()
Definition: statistic.pb.h:746
void clear_type()
Definition: statistic.pb.h:516
::ignition::msgs::Header * release_header()
Definition: statistic.pb.h:727
void set_allocated_name(::std::string *name)
Definition: statistic.pb.h:663
StatisticsGroup * New() const
Definition: statistic.pb.h:257
::ignition::msgs::Statistic_DataType type() const
Definition: statistic.pb.h:519
Definition: statistic.pb.h:58
Definition: statistic.pb.h:66
Definition: statistic.pb.h:63
std::unique_ptr< const Statistic > ConstStatisticUniquePtr
Definition: statistic.pb.h:856
static const ::google::protobuf::EnumDescriptor * DataType_descriptor()
Definition: statistic.pb.h:174
void set_allocated_header(::ignition::msgs::Header *header)
Definition: statistic.pb.h:618
void set_name(const ::std::string &value)
Definition: statistic.pb.h:537
void set_name(const ::std::string &value)
Definition: statistic.pb.h:637
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: statistic.pb.h:384
::std::string * release_name()
Definition: statistic.pb.h:558
Definition: statistic.pb.h:68
int statistics_groups_size() const
Definition: statistic.pb.h:790
::std::string * release_name()
Definition: statistic.pb.h:658
std::shared_ptr< Statistic > StatisticSharedPtr
Definition: statistic.pb.h:857
bool has_header() const
Definition: statistic.pb.h:592
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > & statistics() const
Definition: statistic.pb.h:844
Definition: statistic.pb.h:62
::std::string * mutable_name()
Definition: statistic.pb.h:553
const ::std::string & Statistic_DataType_Name(Statistic_DataType value)
Definition: statistic.pb.h:76
void clear_statistics_groups()
Definition: statistic.pb.h:793
void set_allocated_unit(::std::string *unit)
Definition: statistic.pb.h:779
::ignition::msgs::Header * mutable_header()
Definition: statistic.pb.h:719
::ignition::msgs::Header * mutable_header()
Definition: statistic.pb.h:489
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
Definition: statistic.pb.h:123
int GetCachedSize() const
Definition: statistic.pb.h:126
bool has_header() const
Definition: statistic.pb.h:708
std::shared_ptr< const Statistic > ConstStatisticSharedPtr
Definition: statistic.pb.h:858
void set_unit(const ::std::string &value)
Definition: statistic.pb.h:753
Definition: statistic.pb.h:238
Definition: statistic.pb.h:348
Definition: statistic.pb.h:65
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::Statistic > & statistics() const
Definition: statistic.pb.h:698
static bool DataType_Parse(const ::std::string &name, DataType *value)
Definition: statistic.pb.h:180
Metric * New() const
Definition: statistic.pb.h:367
void set_allocated_header(::ignition::msgs::Header *header)
Definition: statistic.pb.h:734
::std::string * mutable_name()
Definition: statistic.pb.h:653
static const ::std::string & DataType_Name(DataType value)
Definition: statistic.pb.h:177
Definition: statistic.pb.h:60
void set_type(::ignition::msgs::Statistic_DataType value)
Definition: statistic.pb.h:523
int GetCachedSize() const
Definition: statistic.pb.h:277
void IGNITION_MSGS_VISIBLE protobuf_AddDesc_ignition_2fmsgs_2fstatistic_2eproto()
StatisticsGroup & operator=(const StatisticsGroup &from)
Definition: statistic.pb.h:245
void protobuf_AssignDesc_ignition_2fmsgs_2fstatistic_2eproto()
::ignition::msgs::Statistic * add_statistics()
Definition: statistic.pb.h:834
int GetCachedSize() const
Definition: statistic.pb.h:387
void clear_header()
Definition: statistic.pb.h:711
IGNITION_MSGS_VISIBLEconst ::google::protobuf::EnumDescriptor * Statistic_DataType_descriptor()
Definition: statistic.pb.h:87
const ::google::protobuf::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > & statistics_groups() const
Definition: statistic.pb.h:814
Statistic * New() const
Definition: statistic.pb.h:106
const ::std::string & name() const
Definition: statistic.pb.h:533
::ignition::msgs::Statistic * add_statistics()
Definition: statistic.pb.h:688