Ignition Msgs

API Reference

5.8.1
statistic.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: ignition/msgs/statistic.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstatistic_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstatistic_2eproto
6 
7 #include <limits>
8 #include <string>
9 
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3014000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3014000 < 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.
20 #endif
21 
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/generated_message_reflection.h>
30 #include <google/protobuf/message.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/extension_set.h> // IWYU pragma: export
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
36 #ifndef _MSC_VER
37 #pragma GCC system_header
38 #else
39 #pragma warning(push)
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
41 #endif
42 #ifdef __linux__
43 #include <sys/sysmacros.h>
44 #endif
45 #include <memory>
46 #include <ignition/msgs/Export.hh>
47 // @@protoc_insertion_point(includes)
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fstatistic_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
51 namespace internal {
52 class AnyMetadata;
53 } // namespace internal
54 PROTOBUF_NAMESPACE_CLOSE
55 
56 // Internal implementation detail -- do not use these members.
58  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
59  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
60  static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
61  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
62  static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
63  PROTOBUF_SECTION_VARIABLE(protodesc_cold);
64  static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
65  static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
66  static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
67 };
68 extern IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstatistic_2eproto;
69 namespace ignition {
70 namespace msgs {
71 class Metric;
72 class MetricDefaultTypeInternal;
73 IGNITION_MSGS_VISIBLE extern MetricDefaultTypeInternal _Metric_default_instance_;
74 class Statistic;
75 class StatisticDefaultTypeInternal;
76 IGNITION_MSGS_VISIBLE extern StatisticDefaultTypeInternal _Statistic_default_instance_;
77 class StatisticsGroup;
78 class StatisticsGroupDefaultTypeInternal;
79 IGNITION_MSGS_VISIBLE extern StatisticsGroupDefaultTypeInternal _StatisticsGroup_default_instance_;
80 } // namespace msgs
81 } // namespace ignition
82 PROTOBUF_NAMESPACE_OPEN
83 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Metric* Arena::CreateMaybeMessage<::ignition::msgs::Metric>(Arena*);
84 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::Statistic* Arena::CreateMaybeMessage<::ignition::msgs::Statistic>(Arena*);
85 template<> IGNITION_MSGS_VISIBLE ::ignition::msgs::StatisticsGroup* Arena::CreateMaybeMessage<::ignition::msgs::StatisticsGroup>(Arena*);
86 PROTOBUF_NAMESPACE_CLOSE
87 namespace ignition {
88 namespace msgs {
89 
90 enum Statistic_DataType : int {
102 };
103 IGNITION_MSGS_VISIBLE bool Statistic_DataType_IsValid(int value);
107 
108 IGNITION_MSGS_VISIBLE const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Statistic_DataType_descriptor();
109 template<typename T>
110 inline const std::string& Statistic_DataType_Name(T enum_t_value) {
113  "Incorrect type passed to function Statistic_DataType_Name.");
114  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
115  Statistic_DataType_descriptor(), enum_t_value);
116 }
118  ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Statistic_DataType* value) {
119  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Statistic_DataType>(
120  Statistic_DataType_descriptor(), name, value);
121 }
122 // ===================================================================
123 
124 class IGNITION_MSGS_VISIBLE Statistic PROTOBUF_FINAL :
125  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Statistic) */ {
126  public:
127  inline Statistic() : Statistic(nullptr) {}
128  virtual ~Statistic();
129 
130  Statistic(const Statistic& from);
131  Statistic(Statistic&& from) noexcept
132  : Statistic() {
133  *this = ::std::move(from);
134  }
135 
136  inline Statistic& operator=(const Statistic& from) {
137  CopyFrom(from);
138  return *this;
139  }
140  inline Statistic& operator=(Statistic&& from) noexcept {
141  if (GetArena() == from.GetArena()) {
142  if (this != &from) InternalSwap(&from);
143  } else {
144  CopyFrom(from);
145  }
146  return *this;
147  }
148 
149  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
150  return GetDescriptor();
151  }
152  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
153  return GetMetadataStatic().descriptor;
154  }
155  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
156  return GetMetadataStatic().reflection;
157  }
158  static const Statistic& default_instance();
159 
160  static inline const Statistic* internal_default_instance() {
161  return reinterpret_cast<const Statistic*>(
163  }
164  static constexpr int kIndexInFileMessages =
165  0;
166 
167  friend void swap(Statistic& a, Statistic& b) {
168  a.Swap(&b);
169  }
170  inline void Swap(Statistic* other) {
171  if (other == this) return;
172  if (GetArena() == other->GetArena()) {
173  InternalSwap(other);
174  } else {
175  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
176  }
177  }
178  void UnsafeArenaSwap(Statistic* other) {
179  if (other == this) return;
180  GOOGLE_DCHECK(GetArena() == other->GetArena());
181  InternalSwap(other);
182  }
183 
184  // implements Message ----------------------------------------------
185 
186  inline Statistic* New() const final {
187  return CreateMaybeMessage<Statistic>(nullptr);
188  }
189 
190  Statistic* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
191  return CreateMaybeMessage<Statistic>(arena);
192  }
193  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
194  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
195  void CopyFrom(const Statistic& from);
196  void MergeFrom(const Statistic& from);
197  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
198  bool IsInitialized() const final;
199 
200  size_t ByteSizeLong() const final;
201  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
202  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
203  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
204  int GetCachedSize() const final { return _cached_size_.Get(); }
205 
206  private:
207  inline void SharedCtor();
208  inline void SharedDtor();
209  void SetCachedSize(int size) const final;
210  void InternalSwap(Statistic* other);
211  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
212  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
213  return "ignition.msgs.Statistic";
214  }
215  protected:
216  explicit Statistic(::PROTOBUF_NAMESPACE_ID::Arena* arena);
217  private:
218  static void ArenaDtor(void* object);
219  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
220  public:
221 
222  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
223  private:
224  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
225  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto);
226  return ::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto.file_level_metadata[kIndexInFileMessages];
227  }
228 
229  public:
230 
231  // nested types ----------------------------------------------------
232 
234  static constexpr DataType UNINITIALIZED =
236  static constexpr DataType AVERAGE =
238  static constexpr DataType MINIMUM =
240  static constexpr DataType MAXIMUM =
242  static constexpr DataType VARIANCE =
244  static constexpr DataType STDDEV =
246  static constexpr DataType SAMPLE_COUNT =
248  static constexpr DataType ROOT_MEAN_SQUARE =
250  static constexpr DataType MAX_ABS_VALUE =
252  static inline bool DataType_IsValid(int value) {
253  return Statistic_DataType_IsValid(value);
254  }
255  static constexpr DataType DataType_MIN =
257  static constexpr DataType DataType_MAX =
259  static constexpr int DataType_ARRAYSIZE =
261  static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
264  }
265  template<typename T>
266  static inline const std::string& DataType_Name(T enum_t_value) {
267  static_assert(::std::is_same<T, DataType>::value ||
269  "Incorrect type passed to function DataType_Name.");
270  return Statistic_DataType_Name(enum_t_value);
271  }
272  static inline bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
273  DataType* value) {
274  return Statistic_DataType_Parse(name, value);
275  }
276 
277  // accessors -------------------------------------------------------
278 
279  enum : int {
280  kNameFieldNumber = 3,
281  kHeaderFieldNumber = 1,
282  kValueFieldNumber = 4,
283  kTypeFieldNumber = 2,
284  };
285  // string name = 3;
286  void clear_name();
287  const std::string& name() const;
288  void set_name(const std::string& value);
289  void set_name(std::string&& value);
290  void set_name(const char* value);
291  void set_name(const char* value, size_t size);
295  private:
296  const std::string& _internal_name() const;
297  void _internal_set_name(const std::string& value);
298  std::string* _internal_mutable_name();
299  public:
300 
301  // .ignition.msgs.Header header = 1;
302  bool has_header() const;
303  private:
304  bool _internal_has_header() const;
305  public:
306  void clear_header();
307  const ::ignition::msgs::Header& header() const;
308  ::ignition::msgs::Header* release_header();
309  ::ignition::msgs::Header* mutable_header();
310  void set_allocated_header(::ignition::msgs::Header* header);
311  private:
312  const ::ignition::msgs::Header& _internal_header() const;
313  ::ignition::msgs::Header* _internal_mutable_header();
314  public:
316  ::ignition::msgs::Header* header);
317  ::ignition::msgs::Header* unsafe_arena_release_header();
318 
319  // double value = 4;
320  void clear_value();
321  double value() const;
322  void set_value(double value);
323  private:
324  double _internal_value() const;
325  void _internal_set_value(double value);
326  public:
327 
328  // .ignition.msgs.Statistic.DataType type = 2;
329  void clear_type();
332  private:
333  ::ignition::msgs::Statistic_DataType _internal_type() const;
334  void _internal_set_type(::ignition::msgs::Statistic_DataType value);
335  public:
336 
337  // @@protoc_insertion_point(class_scope:ignition.msgs.Statistic)
338  private:
339  class _Internal;
340 
341  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
342  typedef void InternalArenaConstructable_;
343  typedef void DestructorSkippable_;
344  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
345  ::ignition::msgs::Header* header_;
346  double value_;
347  int type_;
348  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
349  friend struct ::TableStruct_ignition_2fmsgs_2fstatistic_2eproto;
350 };
351 // -------------------------------------------------------------------
352 
353 class IGNITION_MSGS_VISIBLE StatisticsGroup PROTOBUF_FINAL :
354  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.StatisticsGroup) */ {
355  public:
356  inline StatisticsGroup() : StatisticsGroup(nullptr) {}
357  virtual ~StatisticsGroup();
358 
359  StatisticsGroup(const StatisticsGroup& from);
360  StatisticsGroup(StatisticsGroup&& from) noexcept
361  : StatisticsGroup() {
362  *this = ::std::move(from);
363  }
364 
365  inline StatisticsGroup& operator=(const StatisticsGroup& from) {
366  CopyFrom(from);
367  return *this;
368  }
369  inline StatisticsGroup& operator=(StatisticsGroup&& from) noexcept {
370  if (GetArena() == from.GetArena()) {
371  if (this != &from) InternalSwap(&from);
372  } else {
373  CopyFrom(from);
374  }
375  return *this;
376  }
377 
378  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
379  return GetDescriptor();
380  }
381  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
382  return GetMetadataStatic().descriptor;
383  }
384  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
385  return GetMetadataStatic().reflection;
386  }
387  static const StatisticsGroup& default_instance();
388 
389  static inline const StatisticsGroup* internal_default_instance() {
390  return reinterpret_cast<const StatisticsGroup*>(
392  }
393  static constexpr int kIndexInFileMessages =
394  1;
395 
396  friend void swap(StatisticsGroup& a, StatisticsGroup& b) {
397  a.Swap(&b);
398  }
399  inline void Swap(StatisticsGroup* other) {
400  if (other == this) return;
401  if (GetArena() == other->GetArena()) {
402  InternalSwap(other);
403  } else {
404  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
405  }
406  }
407  void UnsafeArenaSwap(StatisticsGroup* other) {
408  if (other == this) return;
409  GOOGLE_DCHECK(GetArena() == other->GetArena());
410  InternalSwap(other);
411  }
412 
413  // implements Message ----------------------------------------------
414 
415  inline StatisticsGroup* New() const final {
416  return CreateMaybeMessage<StatisticsGroup>(nullptr);
417  }
418 
419  StatisticsGroup* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
420  return CreateMaybeMessage<StatisticsGroup>(arena);
421  }
422  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
423  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
424  void CopyFrom(const StatisticsGroup& from);
425  void MergeFrom(const StatisticsGroup& from);
426  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
427  bool IsInitialized() const final;
428 
429  size_t ByteSizeLong() const final;
430  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
431  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
432  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
433  int GetCachedSize() const final { return _cached_size_.Get(); }
434 
435  private:
436  inline void SharedCtor();
437  inline void SharedDtor();
438  void SetCachedSize(int size) const final;
439  void InternalSwap(StatisticsGroup* other);
440  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
441  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
442  return "ignition.msgs.StatisticsGroup";
443  }
444  protected:
445  explicit StatisticsGroup(::PROTOBUF_NAMESPACE_ID::Arena* arena);
446  private:
447  static void ArenaDtor(void* object);
448  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
449  public:
450 
451  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
452  private:
453  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
454  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto);
455  return ::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto.file_level_metadata[kIndexInFileMessages];
456  }
457 
458  public:
459 
460  // nested types ----------------------------------------------------
461 
462  // accessors -------------------------------------------------------
463 
464  enum : int {
465  kStatisticsFieldNumber = 3,
466  kNameFieldNumber = 2,
467  kHeaderFieldNumber = 1,
468  };
469  // repeated .ignition.msgs.Statistic statistics = 3;
470  int statistics_size() const;
471  private:
472  int _internal_statistics_size() const;
473  public:
475  ::ignition::msgs::Statistic* mutable_statistics(int index);
476  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
478  private:
479  const ::ignition::msgs::Statistic& _internal_statistics(int index) const;
480  ::ignition::msgs::Statistic* _internal_add_statistics();
481  public:
482  const ::ignition::msgs::Statistic& statistics(int index) const;
483  ::ignition::msgs::Statistic* add_statistics();
484  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
485  statistics() const;
486 
487  // string name = 2;
488  void clear_name();
489  const std::string& name() const;
490  void set_name(const std::string& value);
491  void set_name(std::string&& value);
492  void set_name(const char* value);
493  void set_name(const char* value, size_t size);
497  private:
498  const std::string& _internal_name() const;
499  void _internal_set_name(const std::string& value);
500  std::string* _internal_mutable_name();
501  public:
502 
503  // .ignition.msgs.Header header = 1;
504  bool has_header() const;
505  private:
506  bool _internal_has_header() const;
507  public:
508  void clear_header();
509  const ::ignition::msgs::Header& header() const;
510  ::ignition::msgs::Header* release_header();
511  ::ignition::msgs::Header* mutable_header();
512  void set_allocated_header(::ignition::msgs::Header* header);
513  private:
514  const ::ignition::msgs::Header& _internal_header() const;
515  ::ignition::msgs::Header* _internal_mutable_header();
516  public:
518  ::ignition::msgs::Header* header);
519  ::ignition::msgs::Header* unsafe_arena_release_header();
520 
521  // @@protoc_insertion_point(class_scope:ignition.msgs.StatisticsGroup)
522  private:
523  class _Internal;
524 
525  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
526  typedef void InternalArenaConstructable_;
527  typedef void DestructorSkippable_;
528  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic > statistics_;
529  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
530  ::ignition::msgs::Header* header_;
531  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
532  friend struct ::TableStruct_ignition_2fmsgs_2fstatistic_2eproto;
533 };
534 // -------------------------------------------------------------------
535 
536 class IGNITION_MSGS_VISIBLE Metric PROTOBUF_FINAL :
537  public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ignition.msgs.Metric) */ {
538  public:
539  inline Metric() : Metric(nullptr) {}
540  virtual ~Metric();
541 
542  Metric(const Metric& from);
543  Metric(Metric&& from) noexcept
544  : Metric() {
545  *this = ::std::move(from);
546  }
547 
548  inline Metric& operator=(const Metric& from) {
549  CopyFrom(from);
550  return *this;
551  }
552  inline Metric& operator=(Metric&& from) noexcept {
553  if (GetArena() == from.GetArena()) {
554  if (this != &from) InternalSwap(&from);
555  } else {
556  CopyFrom(from);
557  }
558  return *this;
559  }
560 
561  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
562  return GetDescriptor();
563  }
564  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
565  return GetMetadataStatic().descriptor;
566  }
567  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
568  return GetMetadataStatic().reflection;
569  }
570  static const Metric& default_instance();
571 
572  static inline const Metric* internal_default_instance() {
573  return reinterpret_cast<const Metric*>(
575  }
576  static constexpr int kIndexInFileMessages =
577  2;
578 
579  friend void swap(Metric& a, Metric& b) {
580  a.Swap(&b);
581  }
582  inline void Swap(Metric* other) {
583  if (other == this) return;
584  if (GetArena() == other->GetArena()) {
585  InternalSwap(other);
586  } else {
587  ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
588  }
589  }
590  void UnsafeArenaSwap(Metric* other) {
591  if (other == this) return;
592  GOOGLE_DCHECK(GetArena() == other->GetArena());
593  InternalSwap(other);
594  }
595 
596  // implements Message ----------------------------------------------
597 
598  inline Metric* New() const final {
599  return CreateMaybeMessage<Metric>(nullptr);
600  }
601 
602  Metric* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
603  return CreateMaybeMessage<Metric>(arena);
604  }
605  void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
606  void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
607  void CopyFrom(const Metric& from);
608  void MergeFrom(const Metric& from);
609  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
610  bool IsInitialized() const final;
611 
612  size_t ByteSizeLong() const final;
613  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
614  ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
615  ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
616  int GetCachedSize() const final { return _cached_size_.Get(); }
617 
618  private:
619  inline void SharedCtor();
620  inline void SharedDtor();
621  void SetCachedSize(int size) const final;
622  void InternalSwap(Metric* other);
623  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
624  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
625  return "ignition.msgs.Metric";
626  }
627  protected:
628  explicit Metric(::PROTOBUF_NAMESPACE_ID::Arena* arena);
629  private:
630  static void ArenaDtor(void* object);
631  inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
632  public:
633 
634  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
635  private:
636  static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
637  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto);
638  return ::descriptor_table_ignition_2fmsgs_2fstatistic_2eproto.file_level_metadata[kIndexInFileMessages];
639  }
640 
641  public:
642 
643  // nested types ----------------------------------------------------
644 
645  // accessors -------------------------------------------------------
646 
647  enum : int {
648  kStatisticsGroupsFieldNumber = 3,
649  kStatisticsFieldNumber = 4,
650  kUnitFieldNumber = 2,
651  kHeaderFieldNumber = 1,
652  };
653  // repeated .ignition.msgs.StatisticsGroup statistics_groups = 3;
655  private:
656  int _internal_statistics_groups_size() const;
657  public:
659  ::ignition::msgs::StatisticsGroup* mutable_statistics_groups(int index);
660  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
662  private:
663  const ::ignition::msgs::StatisticsGroup& _internal_statistics_groups(int index) const;
664  ::ignition::msgs::StatisticsGroup* _internal_add_statistics_groups();
665  public:
666  const ::ignition::msgs::StatisticsGroup& statistics_groups(int index) const;
667  ::ignition::msgs::StatisticsGroup* add_statistics_groups();
668  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
670 
671  // repeated .ignition.msgs.Statistic statistics = 4;
672  int statistics_size() const;
673  private:
674  int _internal_statistics_size() const;
675  public:
677  ::ignition::msgs::Statistic* mutable_statistics(int index);
678  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
680  private:
681  const ::ignition::msgs::Statistic& _internal_statistics(int index) const;
682  ::ignition::msgs::Statistic* _internal_add_statistics();
683  public:
684  const ::ignition::msgs::Statistic& statistics(int index) const;
685  ::ignition::msgs::Statistic* add_statistics();
686  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
687  statistics() const;
688 
689  // string unit = 2;
690  void clear_unit();
691  const std::string& unit() const;
692  void set_unit(const std::string& value);
693  void set_unit(std::string&& value);
694  void set_unit(const char* value);
695  void set_unit(const char* value, size_t size);
699  private:
700  const std::string& _internal_unit() const;
701  void _internal_set_unit(const std::string& value);
702  std::string* _internal_mutable_unit();
703  public:
704 
705  // .ignition.msgs.Header header = 1;
706  bool has_header() const;
707  private:
708  bool _internal_has_header() const;
709  public:
710  void clear_header();
711  const ::ignition::msgs::Header& header() const;
712  ::ignition::msgs::Header* release_header();
713  ::ignition::msgs::Header* mutable_header();
714  void set_allocated_header(::ignition::msgs::Header* header);
715  private:
716  const ::ignition::msgs::Header& _internal_header() const;
717  ::ignition::msgs::Header* _internal_mutable_header();
718  public:
720  ::ignition::msgs::Header* header);
721  ::ignition::msgs::Header* unsafe_arena_release_header();
722 
723  // @@protoc_insertion_point(class_scope:ignition.msgs.Metric)
724  private:
725  class _Internal;
726 
727  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
728  typedef void InternalArenaConstructable_;
729  typedef void DestructorSkippable_;
730  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > statistics_groups_;
731  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic > statistics_;
732  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unit_;
733  ::ignition::msgs::Header* header_;
734  mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
735  friend struct ::TableStruct_ignition_2fmsgs_2fstatistic_2eproto;
736 };
737 // ===================================================================
738 
739 
740 // ===================================================================
741 
742 #ifdef __GNUC__
743  #pragma GCC diagnostic push
744  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
745 #endif // __GNUC__
746 // Statistic
747 
748 // .ignition.msgs.Header header = 1;
749 inline bool Statistic::_internal_has_header() const {
750  return this != internal_default_instance() && header_ != nullptr;
751 }
752 inline bool Statistic::has_header() const {
753  return _internal_has_header();
754 }
755 inline const ::ignition::msgs::Header& Statistic::_internal_header() const {
756  const ::ignition::msgs::Header* p = header_;
757  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
759 }
760 inline const ::ignition::msgs::Header& Statistic::header() const {
761  // @@protoc_insertion_point(field_get:ignition.msgs.Statistic.header)
762  return _internal_header();
763 }
764 inline void Statistic::unsafe_arena_set_allocated_header(
765  ::ignition::msgs::Header* header) {
766  if (GetArena() == nullptr) {
767  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
768  }
769  header_ = header;
770  if (header) {
771 
772  } else {
773 
774  }
775  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Statistic.header)
776 }
777 inline ::ignition::msgs::Header* Statistic::release_header() {
778 
779  ::ignition::msgs::Header* temp = header_;
780  header_ = nullptr;
781  if (GetArena() != nullptr) {
782  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
783  }
784  return temp;
785 }
786 inline ::ignition::msgs::Header* Statistic::unsafe_arena_release_header() {
787  // @@protoc_insertion_point(field_release:ignition.msgs.Statistic.header)
788 
789  ::ignition::msgs::Header* temp = header_;
790  header_ = nullptr;
791  return temp;
792 }
793 inline ::ignition::msgs::Header* Statistic::_internal_mutable_header() {
794 
795  if (header_ == nullptr) {
796  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
797  header_ = p;
798  }
799  return header_;
800 }
801 inline ::ignition::msgs::Header* Statistic::mutable_header() {
802  // @@protoc_insertion_point(field_mutable:ignition.msgs.Statistic.header)
803  return _internal_mutable_header();
804 }
805 inline void Statistic::set_allocated_header(::ignition::msgs::Header* header) {
806  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
807  if (message_arena == nullptr) {
808  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
809  }
810  if (header) {
811  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
812  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
813  if (message_arena != submessage_arena) {
814  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
815  message_arena, header, submessage_arena);
816  }
817 
818  } else {
819 
820  }
821  header_ = header;
822  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Statistic.header)
823 }
824 
825 // .ignition.msgs.Statistic.DataType type = 2;
826 inline void Statistic::clear_type() {
827  type_ = 0;
828 }
829 inline ::ignition::msgs::Statistic_DataType Statistic::_internal_type() const {
830  return static_cast< ::ignition::msgs::Statistic_DataType >(type_);
831 }
832 inline ::ignition::msgs::Statistic_DataType Statistic::type() const {
833  // @@protoc_insertion_point(field_get:ignition.msgs.Statistic.type)
834  return _internal_type();
835 }
836 inline void Statistic::_internal_set_type(::ignition::msgs::Statistic_DataType value) {
837 
838  type_ = value;
839 }
840 inline void Statistic::set_type(::ignition::msgs::Statistic_DataType value) {
841  _internal_set_type(value);
842  // @@protoc_insertion_point(field_set:ignition.msgs.Statistic.type)
843 }
844 
845 // string name = 3;
846 inline void Statistic::clear_name() {
847  name_.ClearToEmpty();
848 }
849 inline const std::string& Statistic::name() const {
850  // @@protoc_insertion_point(field_get:ignition.msgs.Statistic.name)
851  return _internal_name();
852 }
853 inline void Statistic::set_name(const std::string& value) {
854  _internal_set_name(value);
855  // @@protoc_insertion_point(field_set:ignition.msgs.Statistic.name)
856 }
857 inline std::string* Statistic::mutable_name() {
858  // @@protoc_insertion_point(field_mutable:ignition.msgs.Statistic.name)
859  return _internal_mutable_name();
860 }
861 inline const std::string& Statistic::_internal_name() const {
862  return name_.Get();
863 }
864 inline void Statistic::_internal_set_name(const std::string& value) {
865 
866  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
867 }
868 inline void Statistic::set_name(std::string&& value) {
869 
870  name_.Set(
871  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
872  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Statistic.name)
873 }
874 inline void Statistic::set_name(const char* value) {
875  GOOGLE_DCHECK(value != nullptr);
876 
877  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
878  // @@protoc_insertion_point(field_set_char:ignition.msgs.Statistic.name)
879 }
880 inline void Statistic::set_name(const char* value,
881  size_t size) {
882 
883  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
884  reinterpret_cast<const char*>(value), size), GetArena());
885  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Statistic.name)
886 }
887 inline std::string* Statistic::_internal_mutable_name() {
888 
889  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
890 }
891 inline std::string* Statistic::release_name() {
892  // @@protoc_insertion_point(field_release:ignition.msgs.Statistic.name)
893  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
894 }
895 inline void Statistic::set_allocated_name(std::string* name) {
896  if (name != nullptr) {
897 
898  } else {
899 
900  }
901  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
902  GetArena());
903  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Statistic.name)
904 }
905 
906 // double value = 4;
907 inline void Statistic::clear_value() {
908  value_ = 0;
909 }
910 inline double Statistic::_internal_value() const {
911  return value_;
912 }
913 inline double Statistic::value() const {
914  // @@protoc_insertion_point(field_get:ignition.msgs.Statistic.value)
915  return _internal_value();
916 }
917 inline void Statistic::_internal_set_value(double value) {
918 
919  value_ = value;
920 }
921 inline void Statistic::set_value(double value) {
922  _internal_set_value(value);
923  // @@protoc_insertion_point(field_set:ignition.msgs.Statistic.value)
924 }
925 
926 // -------------------------------------------------------------------
927 
928 // StatisticsGroup
929 
930 // .ignition.msgs.Header header = 1;
931 inline bool StatisticsGroup::_internal_has_header() const {
932  return this != internal_default_instance() && header_ != nullptr;
933 }
934 inline bool StatisticsGroup::has_header() const {
935  return _internal_has_header();
936 }
937 inline const ::ignition::msgs::Header& StatisticsGroup::_internal_header() const {
938  const ::ignition::msgs::Header* p = header_;
939  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
941 }
942 inline const ::ignition::msgs::Header& StatisticsGroup::header() const {
943  // @@protoc_insertion_point(field_get:ignition.msgs.StatisticsGroup.header)
944  return _internal_header();
945 }
946 inline void StatisticsGroup::unsafe_arena_set_allocated_header(
947  ::ignition::msgs::Header* header) {
948  if (GetArena() == nullptr) {
949  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
950  }
951  header_ = header;
952  if (header) {
953 
954  } else {
955 
956  }
957  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.StatisticsGroup.header)
958 }
959 inline ::ignition::msgs::Header* StatisticsGroup::release_header() {
960 
961  ::ignition::msgs::Header* temp = header_;
962  header_ = nullptr;
963  if (GetArena() != nullptr) {
964  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
965  }
966  return temp;
967 }
968 inline ::ignition::msgs::Header* StatisticsGroup::unsafe_arena_release_header() {
969  // @@protoc_insertion_point(field_release:ignition.msgs.StatisticsGroup.header)
970 
971  ::ignition::msgs::Header* temp = header_;
972  header_ = nullptr;
973  return temp;
974 }
975 inline ::ignition::msgs::Header* StatisticsGroup::_internal_mutable_header() {
976 
977  if (header_ == nullptr) {
978  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
979  header_ = p;
980  }
981  return header_;
982 }
983 inline ::ignition::msgs::Header* StatisticsGroup::mutable_header() {
984  // @@protoc_insertion_point(field_mutable:ignition.msgs.StatisticsGroup.header)
985  return _internal_mutable_header();
986 }
987 inline void StatisticsGroup::set_allocated_header(::ignition::msgs::Header* header) {
988  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
989  if (message_arena == nullptr) {
990  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
991  }
992  if (header) {
993  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
994  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
995  if (message_arena != submessage_arena) {
996  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
997  message_arena, header, submessage_arena);
998  }
999 
1000  } else {
1001 
1002  }
1003  header_ = header;
1004  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.StatisticsGroup.header)
1005 }
1006 
1007 // string name = 2;
1008 inline void StatisticsGroup::clear_name() {
1009  name_.ClearToEmpty();
1010 }
1011 inline const std::string& StatisticsGroup::name() const {
1012  // @@protoc_insertion_point(field_get:ignition.msgs.StatisticsGroup.name)
1013  return _internal_name();
1014 }
1015 inline void StatisticsGroup::set_name(const std::string& value) {
1016  _internal_set_name(value);
1017  // @@protoc_insertion_point(field_set:ignition.msgs.StatisticsGroup.name)
1018 }
1019 inline std::string* StatisticsGroup::mutable_name() {
1020  // @@protoc_insertion_point(field_mutable:ignition.msgs.StatisticsGroup.name)
1021  return _internal_mutable_name();
1022 }
1023 inline const std::string& StatisticsGroup::_internal_name() const {
1024  return name_.Get();
1025 }
1026 inline void StatisticsGroup::_internal_set_name(const std::string& value) {
1027 
1028  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
1029 }
1030 inline void StatisticsGroup::set_name(std::string&& value) {
1031 
1032  name_.Set(
1033  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
1034  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.StatisticsGroup.name)
1035 }
1036 inline void StatisticsGroup::set_name(const char* value) {
1037  GOOGLE_DCHECK(value != nullptr);
1038 
1039  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
1040  // @@protoc_insertion_point(field_set_char:ignition.msgs.StatisticsGroup.name)
1041 }
1042 inline void StatisticsGroup::set_name(const char* value,
1043  size_t size) {
1044 
1045  name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
1046  reinterpret_cast<const char*>(value), size), GetArena());
1047  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.StatisticsGroup.name)
1048 }
1049 inline std::string* StatisticsGroup::_internal_mutable_name() {
1050 
1051  return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
1052 }
1053 inline std::string* StatisticsGroup::release_name() {
1054  // @@protoc_insertion_point(field_release:ignition.msgs.StatisticsGroup.name)
1055  return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1056 }
1057 inline void StatisticsGroup::set_allocated_name(std::string* name) {
1058  if (name != nullptr) {
1059 
1060  } else {
1061 
1062  }
1063  name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1064  GetArena());
1065  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.StatisticsGroup.name)
1066 }
1067 
1068 // repeated .ignition.msgs.Statistic statistics = 3;
1069 inline int StatisticsGroup::_internal_statistics_size() const {
1070  return statistics_.size();
1071 }
1072 inline int StatisticsGroup::statistics_size() const {
1073  return _internal_statistics_size();
1074 }
1075 inline void StatisticsGroup::clear_statistics() {
1076  statistics_.Clear();
1077 }
1078 inline ::ignition::msgs::Statistic* StatisticsGroup::mutable_statistics(int index) {
1079  // @@protoc_insertion_point(field_mutable:ignition.msgs.StatisticsGroup.statistics)
1080  return statistics_.Mutable(index);
1081 }
1082 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
1083 StatisticsGroup::mutable_statistics() {
1084  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.StatisticsGroup.statistics)
1085  return &statistics_;
1086 }
1087 inline const ::ignition::msgs::Statistic& StatisticsGroup::_internal_statistics(int index) const {
1088  return statistics_.Get(index);
1089 }
1090 inline const ::ignition::msgs::Statistic& StatisticsGroup::statistics(int index) const {
1091  // @@protoc_insertion_point(field_get:ignition.msgs.StatisticsGroup.statistics)
1092  return _internal_statistics(index);
1093 }
1094 inline ::ignition::msgs::Statistic* StatisticsGroup::_internal_add_statistics() {
1095  return statistics_.Add();
1096 }
1097 inline ::ignition::msgs::Statistic* StatisticsGroup::add_statistics() {
1098  // @@protoc_insertion_point(field_add:ignition.msgs.StatisticsGroup.statistics)
1099  return _internal_add_statistics();
1100 }
1101 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
1102 StatisticsGroup::statistics() const {
1103  // @@protoc_insertion_point(field_list:ignition.msgs.StatisticsGroup.statistics)
1104  return statistics_;
1105 }
1106 
1107 // -------------------------------------------------------------------
1108 
1109 // Metric
1110 
1111 // .ignition.msgs.Header header = 1;
1112 inline bool Metric::_internal_has_header() const {
1113  return this != internal_default_instance() && header_ != nullptr;
1114 }
1115 inline bool Metric::has_header() const {
1116  return _internal_has_header();
1117 }
1118 inline const ::ignition::msgs::Header& Metric::_internal_header() const {
1119  const ::ignition::msgs::Header* p = header_;
1120  return p != nullptr ? *p : reinterpret_cast<const ::ignition::msgs::Header&>(
1122 }
1123 inline const ::ignition::msgs::Header& Metric::header() const {
1124  // @@protoc_insertion_point(field_get:ignition.msgs.Metric.header)
1125  return _internal_header();
1126 }
1127 inline void Metric::unsafe_arena_set_allocated_header(
1128  ::ignition::msgs::Header* header) {
1129  if (GetArena() == nullptr) {
1130  delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
1131  }
1132  header_ = header;
1133  if (header) {
1134 
1135  } else {
1136 
1137  }
1138  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ignition.msgs.Metric.header)
1139 }
1140 inline ::ignition::msgs::Header* Metric::release_header() {
1141 
1142  ::ignition::msgs::Header* temp = header_;
1143  header_ = nullptr;
1144  if (GetArena() != nullptr) {
1145  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1146  }
1147  return temp;
1148 }
1149 inline ::ignition::msgs::Header* Metric::unsafe_arena_release_header() {
1150  // @@protoc_insertion_point(field_release:ignition.msgs.Metric.header)
1151 
1152  ::ignition::msgs::Header* temp = header_;
1153  header_ = nullptr;
1154  return temp;
1155 }
1156 inline ::ignition::msgs::Header* Metric::_internal_mutable_header() {
1157 
1158  if (header_ == nullptr) {
1159  auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
1160  header_ = p;
1161  }
1162  return header_;
1163 }
1164 inline ::ignition::msgs::Header* Metric::mutable_header() {
1165  // @@protoc_insertion_point(field_mutable:ignition.msgs.Metric.header)
1166  return _internal_mutable_header();
1167 }
1168 inline void Metric::set_allocated_header(::ignition::msgs::Header* header) {
1169  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1170  if (message_arena == nullptr) {
1171  delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(header_);
1172  }
1173  if (header) {
1174  ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1175  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(header)->GetArena();
1176  if (message_arena != submessage_arena) {
1177  header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1178  message_arena, header, submessage_arena);
1179  }
1180 
1181  } else {
1182 
1183  }
1184  header_ = header;
1185  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Metric.header)
1186 }
1187 
1188 // string unit = 2;
1189 inline void Metric::clear_unit() {
1190  unit_.ClearToEmpty();
1191 }
1192 inline const std::string& Metric::unit() const {
1193  // @@protoc_insertion_point(field_get:ignition.msgs.Metric.unit)
1194  return _internal_unit();
1195 }
1196 inline void Metric::set_unit(const std::string& value) {
1197  _internal_set_unit(value);
1198  // @@protoc_insertion_point(field_set:ignition.msgs.Metric.unit)
1199 }
1200 inline std::string* Metric::mutable_unit() {
1201  // @@protoc_insertion_point(field_mutable:ignition.msgs.Metric.unit)
1202  return _internal_mutable_unit();
1203 }
1204 inline const std::string& Metric::_internal_unit() const {
1205  return unit_.Get();
1206 }
1207 inline void Metric::_internal_set_unit(const std::string& value) {
1208 
1209  unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
1210 }
1211 inline void Metric::set_unit(std::string&& value) {
1212 
1213  unit_.Set(
1214  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
1215  // @@protoc_insertion_point(field_set_rvalue:ignition.msgs.Metric.unit)
1216 }
1217 inline void Metric::set_unit(const char* value) {
1218  GOOGLE_DCHECK(value != nullptr);
1219 
1220  unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
1221  // @@protoc_insertion_point(field_set_char:ignition.msgs.Metric.unit)
1222 }
1223 inline void Metric::set_unit(const char* value,
1224  size_t size) {
1225 
1226  unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
1227  reinterpret_cast<const char*>(value), size), GetArena());
1228  // @@protoc_insertion_point(field_set_pointer:ignition.msgs.Metric.unit)
1229 }
1230 inline std::string* Metric::_internal_mutable_unit() {
1231 
1232  return unit_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
1233 }
1234 inline std::string* Metric::release_unit() {
1235  // @@protoc_insertion_point(field_release:ignition.msgs.Metric.unit)
1236  return unit_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1237 }
1238 inline void Metric::set_allocated_unit(std::string* unit) {
1239  if (unit != nullptr) {
1240 
1241  } else {
1242 
1243  }
1244  unit_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unit,
1245  GetArena());
1246  // @@protoc_insertion_point(field_set_allocated:ignition.msgs.Metric.unit)
1247 }
1248 
1249 // repeated .ignition.msgs.StatisticsGroup statistics_groups = 3;
1250 inline int Metric::_internal_statistics_groups_size() const {
1251  return statistics_groups_.size();
1252 }
1253 inline int Metric::statistics_groups_size() const {
1254  return _internal_statistics_groups_size();
1255 }
1256 inline void Metric::clear_statistics_groups() {
1257  statistics_groups_.Clear();
1258 }
1259 inline ::ignition::msgs::StatisticsGroup* Metric::mutable_statistics_groups(int index) {
1260  // @@protoc_insertion_point(field_mutable:ignition.msgs.Metric.statistics_groups)
1261  return statistics_groups_.Mutable(index);
1262 }
1263 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
1264 Metric::mutable_statistics_groups() {
1265  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Metric.statistics_groups)
1266  return &statistics_groups_;
1267 }
1268 inline const ::ignition::msgs::StatisticsGroup& Metric::_internal_statistics_groups(int index) const {
1269  return statistics_groups_.Get(index);
1270 }
1271 inline const ::ignition::msgs::StatisticsGroup& Metric::statistics_groups(int index) const {
1272  // @@protoc_insertion_point(field_get:ignition.msgs.Metric.statistics_groups)
1273  return _internal_statistics_groups(index);
1274 }
1275 inline ::ignition::msgs::StatisticsGroup* Metric::_internal_add_statistics_groups() {
1276  return statistics_groups_.Add();
1277 }
1278 inline ::ignition::msgs::StatisticsGroup* Metric::add_statistics_groups() {
1279  // @@protoc_insertion_point(field_add:ignition.msgs.Metric.statistics_groups)
1280  return _internal_add_statistics_groups();
1281 }
1282 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
1283 Metric::statistics_groups() const {
1284  // @@protoc_insertion_point(field_list:ignition.msgs.Metric.statistics_groups)
1285  return statistics_groups_;
1286 }
1287 
1288 // repeated .ignition.msgs.Statistic statistics = 4;
1289 inline int Metric::_internal_statistics_size() const {
1290  return statistics_.size();
1291 }
1292 inline int Metric::statistics_size() const {
1293  return _internal_statistics_size();
1294 }
1295 inline void Metric::clear_statistics() {
1296  statistics_.Clear();
1297 }
1298 inline ::ignition::msgs::Statistic* Metric::mutable_statistics(int index) {
1299  // @@protoc_insertion_point(field_mutable:ignition.msgs.Metric.statistics)
1300  return statistics_.Mutable(index);
1301 }
1302 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
1303 Metric::mutable_statistics() {
1304  // @@protoc_insertion_point(field_mutable_list:ignition.msgs.Metric.statistics)
1305  return &statistics_;
1306 }
1307 inline const ::ignition::msgs::Statistic& Metric::_internal_statistics(int index) const {
1308  return statistics_.Get(index);
1309 }
1310 inline const ::ignition::msgs::Statistic& Metric::statistics(int index) const {
1311  // @@protoc_insertion_point(field_get:ignition.msgs.Metric.statistics)
1312  return _internal_statistics(index);
1313 }
1314 inline ::ignition::msgs::Statistic* Metric::_internal_add_statistics() {
1315  return statistics_.Add();
1316 }
1317 inline ::ignition::msgs::Statistic* Metric::add_statistics() {
1318  // @@protoc_insertion_point(field_add:ignition.msgs.Metric.statistics)
1319  return _internal_add_statistics();
1320 }
1321 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
1322 Metric::statistics() const {
1323  // @@protoc_insertion_point(field_list:ignition.msgs.Metric.statistics)
1324  return statistics_;
1325 }
1326 
1327 #ifdef __GNUC__
1328  #pragma GCC diagnostic pop
1329 #endif // __GNUC__
1330 // -------------------------------------------------------------------
1331 
1332 // -------------------------------------------------------------------
1333 
1334 
1339 // @@protoc_insertion_point(namespace_scope)
1340 
1341 } // namespace msgs
1342 } // namespace ignition
1343 
1344 PROTOBUF_NAMESPACE_OPEN
1345 
1346 template <> struct is_proto_enum< ::ignition::msgs::Statistic_DataType> : ::std::true_type {};
1347 template <>
1348 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Statistic_DataType>() {
1350 }
1351 
1352 PROTOBUF_NAMESPACE_CLOSE
1353 
1354 #ifdef _MSC_VER
1355 #pragma warning(pop)
1356 #endif
1357 // @@protoc_insertion_point(global_scope)
1358 
1359 #include <google/protobuf/port_undef.inc>
1360 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstatistic_2eproto
Definition: actor.pb.h:98
Metric(::PROTOBUF_NAMESPACE_ID::Arena *arena)
void Swap(Statistic *other)
Definition: statistic.pb.h:170
StatisticsGroup(const StatisticsGroup &from)
StatisticsGroup()
Definition: statistic.pb.h:356
Metric & operator=(Metric &&from) noexcept
Definition: statistic.pb.h:552
Metric * New() const final
Definition: statistic.pb.h:598
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
Definition: statistic.pb.h:155
void MergeFrom(const Metric &from)
::ignition::msgs::Statistic * add_statistics()
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
::ignition::msgs::Header * release_header()
void set_name(const char *value, size_t size)
StatisticsGroup * New() const final
Definition: statistic.pb.h:415
const std::string & unit() const
static bool DataType_IsValid(int value)
Definition: statistic.pb.h:252
::ignition::msgs::Header * mutable_header()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
Definition: statistic.pb.h:149
::ignition::msgs::StatisticsGroup * mutable_statistics_groups(int index)
void set_name(const std::string &value)
Statistic(::PROTOBUF_NAMESPACE_ID::Arena *arena)
friend void swap(Statistic &a, Statistic &b)
Definition: statistic.pb.h:167
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
StatisticsGroup(::PROTOBUF_NAMESPACE_ID::Arena *arena)
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > * mutable_statistics_groups()
void set_unit(std::string &&value)
void set_unit(const char *value, size_t size)
void UnsafeArenaSwap(Metric *other)
Definition: statistic.pb.h:590
void set_unit(const std::string &value)
static bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DataType *value)
Definition: statistic.pb.h:272
const ::ignition::msgs::StatisticsGroup & statistics_groups(int index) const
Metric(const Metric &from)
static const Metric & default_instance()
void unsafe_arena_set_allocated_header(::ignition::msgs::Header *header)
static const Statistic & default_instance()
Metric & operator=(const Metric &from)
Definition: statistic.pb.h:548
void MergeFrom(const Statistic &from)
static const Metric * internal_default_instance()
Definition: statistic.pb.h:572
void CopyFrom(const Metric &from)
Statistic(Statistic &&from) noexcept
Definition: statistic.pb.h:131
::ignition::msgs::StatisticsGroup * add_statistics_groups()
::ignition::msgs::Statistic_DataType type() const
void set_allocated_unit(std::string *unit)
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > & statistics_groups() const
Statistic_DataType DataType
Definition: statistic.pb.h:233
::ignition::msgs::Header * unsafe_arena_release_header()
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
void MergeFrom(const StatisticsGroup &from)
static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * DataType_descriptor()
Definition: statistic.pb.h:262
Statistic(const Statistic &from)
void set_unit(const char *value)
Statistic & operator=(const Statistic &from)
Definition: statistic.pb.h:136
Statistic & operator=(Statistic &&from) noexcept
Definition: statistic.pb.h:140
void CopyFrom(const Statistic &from)
Statistic * New() const final
Definition: statistic.pb.h:186
void Swap(StatisticsGroup *other)
Definition: statistic.pb.h:399
void UnsafeArenaSwap(StatisticsGroup *other)
Definition: statistic.pb.h:407
Metric * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: statistic.pb.h:602
void set_allocated_header(::ignition::msgs::Header *header)
static const Statistic * internal_default_instance()
Definition: statistic.pb.h:160
StatisticsGroup(StatisticsGroup &&from) noexcept
Definition: statistic.pb.h:360
Metric(Metric &&from) noexcept
Definition: statistic.pb.h:543
static const StatisticsGroup & default_instance()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic > * mutable_statistics()
void set_value(double value)
StatisticsGroup & operator=(const StatisticsGroup &from)
Definition: statistic.pb.h:365
friend void swap(Metric &a, Metric &b)
Definition: statistic.pb.h:579
::ignition::msgs::Statistic * mutable_statistics(int index)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
static const StatisticsGroup * internal_default_instance()
Definition: statistic.pb.h:389
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
Definition: statistic.pb.h:152
StatisticsGroup & operator=(StatisticsGroup &&from) noexcept
Definition: statistic.pb.h:369
StatisticsGroup * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: statistic.pb.h:419
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic > & statistics() const
Statistic * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
Definition: statistic.pb.h:190
const std::string & name() const
static const std::string & DataType_Name(T enum_t_value)
Definition: statistic.pb.h:266
void Swap(Metric *other)
Definition: statistic.pb.h:582
const ::ignition::msgs::Statistic & statistics(int index) const
void set_name(const char *value)
void set_name(std::string &&value)
void set_type(::ignition::msgs::Statistic_DataType value)
Metric()
Definition: statistic.pb.h:539
Statistic()
Definition: statistic.pb.h:127
void set_allocated_name(std::string *name)
const ::ignition::msgs::Header & header() const
void UnsafeArenaSwap(Statistic *other)
Definition: statistic.pb.h:178
friend void swap(StatisticsGroup &a, StatisticsGroup &b)
Definition: statistic.pb.h:396
void CopyFrom(const StatisticsGroup &from)
T max(T... args)
T min(T... args)
const std::string & Statistic_DataType_Name(T enum_t_value)
Definition: statistic.pb.h:110
std::shared_ptr< const Statistic > ConstStatisticSharedPtr
Definition: statistic.pb.h:1338
Statistic_DataType
Definition: statistic.pb.h:90
@ Statistic_DataType_AVERAGE
Definition: statistic.pb.h:92
@ Statistic_DataType_VARIANCE
Definition: statistic.pb.h:95
@ Statistic_DataType_MINIMUM
Definition: statistic.pb.h:93
@ Statistic_DataType_MAXIMUM
Definition: statistic.pb.h:94
@ Statistic_DataType_SAMPLE_COUNT
Definition: statistic.pb.h:97
@ Statistic_DataType_Statistic_DataType_INT_MAX_SENTINEL_DO_NOT_USE_
Definition: statistic.pb.h:101
@ Statistic_DataType_STDDEV
Definition: statistic.pb.h:96
@ Statistic_DataType_UNINITIALIZED
Definition: statistic.pb.h:91
@ Statistic_DataType_ROOT_MEAN_SQUARE
Definition: statistic.pb.h:98
@ Statistic_DataType_Statistic_DataType_INT_MIN_SENTINEL_DO_NOT_USE_
Definition: statistic.pb.h:100
@ Statistic_DataType_MAX_ABS_VALUE
Definition: statistic.pb.h:99
std::unique_ptr< const Statistic > ConstStatisticUniquePtr
Definition: statistic.pb.h:1336
constexpr Statistic_DataType Statistic_DataType_DataType_MAX
Definition: statistic.pb.h:105
std::unique_ptr< Statistic > StatisticUniquePtr
Definition: statistic.pb.h:1335
IGNITION_MSGS_VISIBLE HeaderDefaultTypeInternal _Header_default_instance_
IGNITION_MSGS_VISIBLE bool Statistic_DataType_IsValid(int value)
IGNITION_MSGS_VISIBLE MetricDefaultTypeInternal _Metric_default_instance_
IGNITION_MSGS_VISIBLE StatisticsGroupDefaultTypeInternal _StatisticsGroup_default_instance_
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::EnumDescriptor * Statistic_DataType_descriptor()
PointCloudPacked_Field_DataType
Definition: pointcloud_packed.pb.h:86
bool Statistic_DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Statistic_DataType *value)
Definition: statistic.pb.h:117
constexpr Statistic_DataType Statistic_DataType_DataType_MIN
Definition: statistic.pb.h:104
constexpr int Statistic_DataType_DataType_ARRAYSIZE
Definition: statistic.pb.h:106
IGNITION_MSGS_VISIBLE StatisticDefaultTypeInternal _Statistic_default_instance_
std::shared_ptr< Statistic > StatisticSharedPtr
Definition: statistic.pb.h:1337
Definition: actor.pb.h:52
T size(T... args)
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstatistic_2eproto
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3] PROTOBUF_SECTION_VARIABLE(protodesc_cold)