Gazebo Msgs

API Reference

9.5.1
statistic.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: gz/msgs/statistic.proto
3 
4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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.
20 #endif
21 
22 #include <google/protobuf/io/coded_stream.h>
23 #include <google/protobuf/arena.h>
24 #include <google/protobuf/arenastring.h>
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/metadata.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
35 // @@protoc_insertion_point(includes)
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fstatistic_2eproto GZ_MSGS_VISIBLE
37 
39 // Internal implementation detail -- do not use these members.
40 struct GZ_MSGS_VISIBLE TableStruct {
41  static const ::google::protobuf::internal::ParseTableField entries[];
42  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
43  static const ::google::protobuf::internal::ParseTable schema[3];
44  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
45  static const ::google::protobuf::internal::SerializationTable serialization_table[];
46  static const ::google::protobuf::uint32 offsets[];
47 };
48 void GZ_MSGS_VISIBLE AddDescriptors();
49 } // namespace protobuf_gz_2fmsgs_2fstatistic_2eproto
50 namespace gz {
51 namespace msgs {
52 class Metric;
53 class MetricDefaultTypeInternal;
54 GZ_MSGS_VISIBLE extern MetricDefaultTypeInternal _Metric_default_instance_;
55 class Statistic;
56 class StatisticDefaultTypeInternal;
57 GZ_MSGS_VISIBLE extern StatisticDefaultTypeInternal _Statistic_default_instance_;
58 class StatisticsGroup;
59 class StatisticsGroupDefaultTypeInternal;
60 GZ_MSGS_VISIBLE extern StatisticsGroupDefaultTypeInternal _StatisticsGroup_default_instance_;
61 } // namespace msgs
62 } // namespace gz
63 namespace google {
64 namespace protobuf {
65 template<> GZ_MSGS_VISIBLE ::gz::msgs::Metric* Arena::CreateMaybeMessage<::gz::msgs::Metric>(Arena*);
66 template<> GZ_MSGS_VISIBLE ::gz::msgs::Statistic* Arena::CreateMaybeMessage<::gz::msgs::Statistic>(Arena*);
67 template<> GZ_MSGS_VISIBLE ::gz::msgs::StatisticsGroup* Arena::CreateMaybeMessage<::gz::msgs::StatisticsGroup>(Arena*);
68 } // namespace protobuf
69 } // namespace google
70 namespace gz {
71 namespace msgs {
72 
85 };
86 GZ_MSGS_VISIBLE bool Statistic_DataType_IsValid(int value);
90 
91 GZ_MSGS_VISIBLE const ::google::protobuf::EnumDescriptor* Statistic_DataType_descriptor();
92 inline const ::std::string& Statistic_DataType_Name(Statistic_DataType value) {
93  return ::google::protobuf::internal::NameOfEnum(
95 }
97  const ::std::string& name, Statistic_DataType* value) {
98  return ::google::protobuf::internal::ParseNamedEnum<Statistic_DataType>(
99  Statistic_DataType_descriptor(), name, value);
100 }
101 // ===================================================================
102 
103 class GZ_MSGS_VISIBLE Statistic : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Statistic) */ {
104  public:
105  Statistic();
106  virtual ~Statistic();
107 
108  Statistic(const Statistic& from);
109 
110  inline Statistic& operator=(const Statistic& from) {
111  CopyFrom(from);
112  return *this;
113  }
114  #if LANG_CXX11
115  Statistic(Statistic&& from) noexcept
116  : Statistic() {
117  *this = ::std::move(from);
118  }
119 
120  inline Statistic& operator=(Statistic&& from) noexcept {
121  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
122  if (this != &from) InternalSwap(&from);
123  } else {
124  CopyFrom(from);
125  }
126  return *this;
127  }
128  #endif
129  static const ::google::protobuf::Descriptor* descriptor();
130  static const Statistic& default_instance();
131 
132  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
133  static inline const Statistic* internal_default_instance() {
134  return reinterpret_cast<const Statistic*>(
136  }
137  static constexpr int kIndexInFileMessages =
138  0;
139 
140  void Swap(Statistic* other);
141  friend void swap(Statistic& a, Statistic& b) {
142  a.Swap(&b);
143  }
144 
145  // implements Message ----------------------------------------------
146 
147  inline Statistic* New() const final {
148  return CreateMaybeMessage<Statistic>(NULL);
149  }
150 
151  Statistic* New(::google::protobuf::Arena* arena) const final {
152  return CreateMaybeMessage<Statistic>(arena);
153  }
154  void CopyFrom(const ::google::protobuf::Message& from) final;
155  void MergeFrom(const ::google::protobuf::Message& from) final;
156  void CopyFrom(const Statistic& from);
157  void MergeFrom(const Statistic& from);
158  void Clear() final;
159  bool IsInitialized() const final;
160 
161  size_t ByteSizeLong() const final;
162  bool MergePartialFromCodedStream(
163  ::google::protobuf::io::CodedInputStream* input) final;
164  void SerializeWithCachedSizes(
165  ::google::protobuf::io::CodedOutputStream* output) const final;
166  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
167  bool deterministic, ::google::protobuf::uint8* target) const final;
168  int GetCachedSize() const final { return _cached_size_.Get(); }
169 
170  private:
171  void SharedCtor();
172  void SharedDtor();
173  void SetCachedSize(int size) const final;
174  void InternalSwap(Statistic* other);
175  private:
176  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
177  return NULL;
178  }
179  inline void* MaybeArenaPtr() const {
180  return NULL;
181  }
182  public:
183 
184  ::google::protobuf::Metadata GetMetadata() const final;
185 
186  // nested types ----------------------------------------------------
187 
189  static const DataType UNINITIALIZED =
191  static const DataType AVERAGE =
193  static const DataType MINIMUM =
195  static const DataType MAXIMUM =
197  static const DataType VARIANCE =
199  static const DataType STDDEV =
201  static const DataType SAMPLE_COUNT =
203  static const DataType ROOT_MEAN_SQUARE =
205  static const DataType MAX_ABS_VALUE =
207  static inline bool DataType_IsValid(int value) {
208  return Statistic_DataType_IsValid(value);
209  }
210  static const DataType DataType_MIN =
212  static const DataType DataType_MAX =
214  static const int DataType_ARRAYSIZE =
216  static inline const ::google::protobuf::EnumDescriptor*
219  }
220  static inline const ::std::string& DataType_Name(DataType value) {
221  return Statistic_DataType_Name(value);
222  }
223  static inline bool DataType_Parse(const ::std::string& name,
224  DataType* value) {
225  return Statistic_DataType_Parse(name, value);
226  }
227 
228  // accessors -------------------------------------------------------
229 
230  // string name = 3;
231  void clear_name();
232  static const int kNameFieldNumber = 3;
233  const ::std::string& name() const;
234  void set_name(const ::std::string& value);
235  #if LANG_CXX11
236  void set_name(::std::string&& value);
237  #endif
238  void set_name(const char* value);
239  void set_name(const char* value, size_t size);
240  ::std::string* mutable_name();
241  ::std::string* release_name();
242  void set_allocated_name(::std::string* name);
243 
244  // .gz.msgs.Header header = 1;
245  bool has_header() const;
246  void clear_header();
247  static const int kHeaderFieldNumber = 1;
248  private:
249  const ::gz::msgs::Header& _internal_header() const;
250  public:
251  const ::gz::msgs::Header& header() const;
252  ::gz::msgs::Header* release_header();
253  ::gz::msgs::Header* mutable_header();
254  void set_allocated_header(::gz::msgs::Header* header);
255 
256  // double value = 4;
257  void clear_value();
258  static const int kValueFieldNumber = 4;
259  double value() const;
260  void set_value(double value);
261 
262  // .gz.msgs.Statistic.DataType type = 2;
263  void clear_type();
264  static const int kTypeFieldNumber = 2;
265  ::gz::msgs::Statistic_DataType type() const;
266  void set_type(::gz::msgs::Statistic_DataType value);
267 
268  // @@protoc_insertion_point(class_scope:gz.msgs.Statistic)
269  private:
270 
271  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
272  ::google::protobuf::internal::ArenaStringPtr name_;
273  ::gz::msgs::Header* header_;
274  double value_;
275  int type_;
276  mutable ::google::protobuf::internal::CachedSize _cached_size_;
277  friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
278 };
279 // -------------------------------------------------------------------
280 
281 class GZ_MSGS_VISIBLE StatisticsGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.StatisticsGroup) */ {
282  public:
283  StatisticsGroup();
284  virtual ~StatisticsGroup();
285 
286  StatisticsGroup(const StatisticsGroup& from);
287 
289  CopyFrom(from);
290  return *this;
291  }
292  #if LANG_CXX11
293  StatisticsGroup(StatisticsGroup&& from) noexcept
294  : StatisticsGroup() {
295  *this = ::std::move(from);
296  }
297 
298  inline StatisticsGroup& operator=(StatisticsGroup&& from) noexcept {
299  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
300  if (this != &from) InternalSwap(&from);
301  } else {
302  CopyFrom(from);
303  }
304  return *this;
305  }
306  #endif
307  static const ::google::protobuf::Descriptor* descriptor();
308  static const StatisticsGroup& default_instance();
309 
310  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
312  return reinterpret_cast<const StatisticsGroup*>(
314  }
315  static constexpr int kIndexInFileMessages =
316  1;
317 
318  void Swap(StatisticsGroup* other);
319  friend void swap(StatisticsGroup& a, StatisticsGroup& b) {
320  a.Swap(&b);
321  }
322 
323  // implements Message ----------------------------------------------
324 
325  inline StatisticsGroup* New() const final {
326  return CreateMaybeMessage<StatisticsGroup>(NULL);
327  }
328 
329  StatisticsGroup* New(::google::protobuf::Arena* arena) const final {
330  return CreateMaybeMessage<StatisticsGroup>(arena);
331  }
332  void CopyFrom(const ::google::protobuf::Message& from) final;
333  void MergeFrom(const ::google::protobuf::Message& from) final;
334  void CopyFrom(const StatisticsGroup& from);
335  void MergeFrom(const StatisticsGroup& from);
336  void Clear() final;
337  bool IsInitialized() const final;
338 
339  size_t ByteSizeLong() const final;
340  bool MergePartialFromCodedStream(
341  ::google::protobuf::io::CodedInputStream* input) final;
342  void SerializeWithCachedSizes(
343  ::google::protobuf::io::CodedOutputStream* output) const final;
344  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
345  bool deterministic, ::google::protobuf::uint8* target) const final;
346  int GetCachedSize() const final { return _cached_size_.Get(); }
347 
348  private:
349  void SharedCtor();
350  void SharedDtor();
351  void SetCachedSize(int size) const final;
352  void InternalSwap(StatisticsGroup* other);
353  private:
354  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
355  return NULL;
356  }
357  inline void* MaybeArenaPtr() const {
358  return NULL;
359  }
360  public:
361 
362  ::google::protobuf::Metadata GetMetadata() const final;
363 
364  // nested types ----------------------------------------------------
365 
366  // accessors -------------------------------------------------------
367 
368  // repeated .gz.msgs.Statistic statistics = 3;
369  int statistics_size() const;
370  void clear_statistics();
371  static const int kStatisticsFieldNumber = 3;
372  ::gz::msgs::Statistic* mutable_statistics(int index);
373  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
374  mutable_statistics();
375  const ::gz::msgs::Statistic& statistics(int index) const;
376  ::gz::msgs::Statistic* add_statistics();
377  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
378  statistics() const;
379 
380  // string name = 2;
381  void clear_name();
382  static const int kNameFieldNumber = 2;
383  const ::std::string& name() const;
384  void set_name(const ::std::string& value);
385  #if LANG_CXX11
386  void set_name(::std::string&& value);
387  #endif
388  void set_name(const char* value);
389  void set_name(const char* value, size_t size);
390  ::std::string* mutable_name();
391  ::std::string* release_name();
392  void set_allocated_name(::std::string* name);
393 
394  // .gz.msgs.Header header = 1;
395  bool has_header() const;
396  void clear_header();
397  static const int kHeaderFieldNumber = 1;
398  private:
399  const ::gz::msgs::Header& _internal_header() const;
400  public:
401  const ::gz::msgs::Header& header() const;
402  ::gz::msgs::Header* release_header();
403  ::gz::msgs::Header* mutable_header();
404  void set_allocated_header(::gz::msgs::Header* header);
405 
406  // @@protoc_insertion_point(class_scope:gz.msgs.StatisticsGroup)
407  private:
408 
409  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
410  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic > statistics_;
411  ::google::protobuf::internal::ArenaStringPtr name_;
412  ::gz::msgs::Header* header_;
413  mutable ::google::protobuf::internal::CachedSize _cached_size_;
414  friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
415 };
416 // -------------------------------------------------------------------
417 
418 class GZ_MSGS_VISIBLE Metric : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:gz.msgs.Metric) */ {
419  public:
420  Metric();
421  virtual ~Metric();
422 
423  Metric(const Metric& from);
424 
425  inline Metric& operator=(const Metric& from) {
426  CopyFrom(from);
427  return *this;
428  }
429  #if LANG_CXX11
430  Metric(Metric&& from) noexcept
431  : Metric() {
432  *this = ::std::move(from);
433  }
434 
435  inline Metric& operator=(Metric&& from) noexcept {
436  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
437  if (this != &from) InternalSwap(&from);
438  } else {
439  CopyFrom(from);
440  }
441  return *this;
442  }
443  #endif
444  static const ::google::protobuf::Descriptor* descriptor();
445  static const Metric& default_instance();
446 
447  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
448  static inline const Metric* internal_default_instance() {
449  return reinterpret_cast<const Metric*>(
451  }
452  static constexpr int kIndexInFileMessages =
453  2;
454 
455  void Swap(Metric* other);
456  friend void swap(Metric& a, Metric& b) {
457  a.Swap(&b);
458  }
459 
460  // implements Message ----------------------------------------------
461 
462  inline Metric* New() const final {
463  return CreateMaybeMessage<Metric>(NULL);
464  }
465 
466  Metric* New(::google::protobuf::Arena* arena) const final {
467  return CreateMaybeMessage<Metric>(arena);
468  }
469  void CopyFrom(const ::google::protobuf::Message& from) final;
470  void MergeFrom(const ::google::protobuf::Message& from) final;
471  void CopyFrom(const Metric& from);
472  void MergeFrom(const Metric& from);
473  void Clear() final;
474  bool IsInitialized() const final;
475 
476  size_t ByteSizeLong() const final;
477  bool MergePartialFromCodedStream(
478  ::google::protobuf::io::CodedInputStream* input) final;
479  void SerializeWithCachedSizes(
480  ::google::protobuf::io::CodedOutputStream* output) const final;
481  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
482  bool deterministic, ::google::protobuf::uint8* target) const final;
483  int GetCachedSize() const final { return _cached_size_.Get(); }
484 
485  private:
486  void SharedCtor();
487  void SharedDtor();
488  void SetCachedSize(int size) const final;
489  void InternalSwap(Metric* other);
490  private:
491  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
492  return NULL;
493  }
494  inline void* MaybeArenaPtr() const {
495  return NULL;
496  }
497  public:
498 
499  ::google::protobuf::Metadata GetMetadata() const final;
500 
501  // nested types ----------------------------------------------------
502 
503  // accessors -------------------------------------------------------
504 
505  // repeated .gz.msgs.StatisticsGroup statistics_groups = 3;
506  int statistics_groups_size() const;
507  void clear_statistics_groups();
508  static const int kStatisticsGroupsFieldNumber = 3;
509  ::gz::msgs::StatisticsGroup* mutable_statistics_groups(int index);
510  ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >*
511  mutable_statistics_groups();
512  const ::gz::msgs::StatisticsGroup& statistics_groups(int index) const;
513  ::gz::msgs::StatisticsGroup* add_statistics_groups();
514  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >&
515  statistics_groups() const;
516 
517  // repeated .gz.msgs.Statistic statistics = 4;
518  int statistics_size() const;
519  void clear_statistics();
520  static const int kStatisticsFieldNumber = 4;
521  ::gz::msgs::Statistic* mutable_statistics(int index);
522  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
523  mutable_statistics();
524  const ::gz::msgs::Statistic& statistics(int index) const;
525  ::gz::msgs::Statistic* add_statistics();
526  const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
527  statistics() const;
528 
529  // string unit = 2;
530  void clear_unit();
531  static const int kUnitFieldNumber = 2;
532  const ::std::string& unit() const;
533  void set_unit(const ::std::string& value);
534  #if LANG_CXX11
535  void set_unit(::std::string&& value);
536  #endif
537  void set_unit(const char* value);
538  void set_unit(const char* value, size_t size);
539  ::std::string* mutable_unit();
540  ::std::string* release_unit();
541  void set_allocated_unit(::std::string* unit);
542 
543  // .gz.msgs.Header header = 1;
544  bool has_header() const;
545  void clear_header();
546  static const int kHeaderFieldNumber = 1;
547  private:
548  const ::gz::msgs::Header& _internal_header() const;
549  public:
550  const ::gz::msgs::Header& header() const;
551  ::gz::msgs::Header* release_header();
552  ::gz::msgs::Header* mutable_header();
553  void set_allocated_header(::gz::msgs::Header* header);
554 
555  // @@protoc_insertion_point(class_scope:gz.msgs.Metric)
556  private:
557 
558  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
559  ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup > statistics_groups_;
560  ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic > statistics_;
561  ::google::protobuf::internal::ArenaStringPtr unit_;
562  ::gz::msgs::Header* header_;
563  mutable ::google::protobuf::internal::CachedSize _cached_size_;
564  friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
565 };
566 // ===================================================================
567 
568 
569 // ===================================================================
570 
571 #ifdef __GNUC__
572  #pragma GCC diagnostic push
573  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
574 #endif // __GNUC__
575 // Statistic
576 
577 // .gz.msgs.Header header = 1;
578 inline bool Statistic::has_header() const {
579  return this != internal_default_instance() && header_ != NULL;
580 }
581 inline const ::gz::msgs::Header& Statistic::_internal_header() const {
582  return *header_;
583 }
584 inline const ::gz::msgs::Header& Statistic::header() const {
585  const ::gz::msgs::Header* p = header_;
586  // @@protoc_insertion_point(field_get:gz.msgs.Statistic.header)
587  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
589 }
590 inline ::gz::msgs::Header* Statistic::release_header() {
591  // @@protoc_insertion_point(field_release:gz.msgs.Statistic.header)
592 
593  ::gz::msgs::Header* temp = header_;
594  header_ = NULL;
595  return temp;
596 }
597 inline ::gz::msgs::Header* Statistic::mutable_header() {
598 
599  if (header_ == NULL) {
600  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
601  header_ = p;
602  }
603  // @@protoc_insertion_point(field_mutable:gz.msgs.Statistic.header)
604  return header_;
605 }
607  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
608  if (message_arena == NULL) {
609  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
610  }
611  if (header) {
612  ::google::protobuf::Arena* submessage_arena = NULL;
613  if (message_arena != submessage_arena) {
614  header = ::google::protobuf::internal::GetOwnedMessage(
615  message_arena, header, submessage_arena);
616  }
617 
618  } else {
619 
620  }
621  header_ = header;
622  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Statistic.header)
623 }
624 
625 // .gz.msgs.Statistic.DataType type = 2;
626 inline void Statistic::clear_type() {
627  type_ = 0;
628 }
630  // @@protoc_insertion_point(field_get:gz.msgs.Statistic.type)
631  return static_cast< ::gz::msgs::Statistic_DataType >(type_);
632 }
634 
635  type_ = value;
636  // @@protoc_insertion_point(field_set:gz.msgs.Statistic.type)
637 }
638 
639 // string name = 3;
640 inline void Statistic::clear_name() {
641  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
642 }
643 inline const ::std::string& Statistic::name() const {
644  // @@protoc_insertion_point(field_get:gz.msgs.Statistic.name)
645  return name_.GetNoArena();
646 }
647 inline void Statistic::set_name(const ::std::string& value) {
648 
649  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
650  // @@protoc_insertion_point(field_set:gz.msgs.Statistic.name)
651 }
652 #if LANG_CXX11
653 inline void Statistic::set_name(::std::string&& value) {
654 
655  name_.SetNoArena(
656  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
657  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Statistic.name)
658 }
659 #endif
660 inline void Statistic::set_name(const char* value) {
661  GOOGLE_DCHECK(value != NULL);
662 
663  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
664  // @@protoc_insertion_point(field_set_char:gz.msgs.Statistic.name)
665 }
666 inline void Statistic::set_name(const char* value, size_t size) {
667 
668  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
669  ::std::string(reinterpret_cast<const char*>(value), size));
670  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Statistic.name)
671 }
672 inline ::std::string* Statistic::mutable_name() {
673 
674  // @@protoc_insertion_point(field_mutable:gz.msgs.Statistic.name)
675  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
676 }
677 inline ::std::string* Statistic::release_name() {
678  // @@protoc_insertion_point(field_release:gz.msgs.Statistic.name)
679 
680  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
681 }
683  if (name != NULL) {
684 
685  } else {
686 
687  }
688  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
689  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Statistic.name)
690 }
691 
692 // double value = 4;
693 inline void Statistic::clear_value() {
694  value_ = 0;
695 }
696 inline double Statistic::value() const {
697  // @@protoc_insertion_point(field_get:gz.msgs.Statistic.value)
698  return value_;
699 }
700 inline void Statistic::set_value(double value) {
701 
702  value_ = value;
703  // @@protoc_insertion_point(field_set:gz.msgs.Statistic.value)
704 }
705 
706 // -------------------------------------------------------------------
707 
708 // StatisticsGroup
709 
710 // .gz.msgs.Header header = 1;
711 inline bool StatisticsGroup::has_header() const {
712  return this != internal_default_instance() && header_ != NULL;
713 }
714 inline const ::gz::msgs::Header& StatisticsGroup::_internal_header() const {
715  return *header_;
716 }
717 inline const ::gz::msgs::Header& StatisticsGroup::header() const {
718  const ::gz::msgs::Header* p = header_;
719  // @@protoc_insertion_point(field_get:gz.msgs.StatisticsGroup.header)
720  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
722 }
723 inline ::gz::msgs::Header* StatisticsGroup::release_header() {
724  // @@protoc_insertion_point(field_release:gz.msgs.StatisticsGroup.header)
725 
726  ::gz::msgs::Header* temp = header_;
727  header_ = NULL;
728  return temp;
729 }
730 inline ::gz::msgs::Header* StatisticsGroup::mutable_header() {
731 
732  if (header_ == NULL) {
733  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
734  header_ = p;
735  }
736  // @@protoc_insertion_point(field_mutable:gz.msgs.StatisticsGroup.header)
737  return header_;
738 }
740  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
741  if (message_arena == NULL) {
742  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
743  }
744  if (header) {
745  ::google::protobuf::Arena* submessage_arena = NULL;
746  if (message_arena != submessage_arena) {
747  header = ::google::protobuf::internal::GetOwnedMessage(
748  message_arena, header, submessage_arena);
749  }
750 
751  } else {
752 
753  }
754  header_ = header;
755  // @@protoc_insertion_point(field_set_allocated:gz.msgs.StatisticsGroup.header)
756 }
757 
758 // string name = 2;
760  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
761 }
762 inline const ::std::string& StatisticsGroup::name() const {
763  // @@protoc_insertion_point(field_get:gz.msgs.StatisticsGroup.name)
764  return name_.GetNoArena();
765 }
766 inline void StatisticsGroup::set_name(const ::std::string& value) {
767 
768  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
769  // @@protoc_insertion_point(field_set:gz.msgs.StatisticsGroup.name)
770 }
771 #if LANG_CXX11
772 inline void StatisticsGroup::set_name(::std::string&& value) {
773 
774  name_.SetNoArena(
775  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
776  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.StatisticsGroup.name)
777 }
778 #endif
779 inline void StatisticsGroup::set_name(const char* value) {
780  GOOGLE_DCHECK(value != NULL);
781 
782  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
783  // @@protoc_insertion_point(field_set_char:gz.msgs.StatisticsGroup.name)
784 }
785 inline void StatisticsGroup::set_name(const char* value, size_t size) {
786 
787  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
788  ::std::string(reinterpret_cast<const char*>(value), size));
789  // @@protoc_insertion_point(field_set_pointer:gz.msgs.StatisticsGroup.name)
790 }
791 inline ::std::string* StatisticsGroup::mutable_name() {
792 
793  // @@protoc_insertion_point(field_mutable:gz.msgs.StatisticsGroup.name)
794  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
795 }
796 inline ::std::string* StatisticsGroup::release_name() {
797  // @@protoc_insertion_point(field_release:gz.msgs.StatisticsGroup.name)
798 
799  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
800 }
802  if (name != NULL) {
803 
804  } else {
805 
806  }
807  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
808  // @@protoc_insertion_point(field_set_allocated:gz.msgs.StatisticsGroup.name)
809 }
810 
811 // repeated .gz.msgs.Statistic statistics = 3;
813  return statistics_.size();
814 }
816  statistics_.Clear();
817 }
818 inline ::gz::msgs::Statistic* StatisticsGroup::mutable_statistics(int index) {
819  // @@protoc_insertion_point(field_mutable:gz.msgs.StatisticsGroup.statistics)
820  return statistics_.Mutable(index);
821 }
822 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
824  // @@protoc_insertion_point(field_mutable_list:gz.msgs.StatisticsGroup.statistics)
825  return &statistics_;
826 }
827 inline const ::gz::msgs::Statistic& StatisticsGroup::statistics(int index) const {
828  // @@protoc_insertion_point(field_get:gz.msgs.StatisticsGroup.statistics)
829  return statistics_.Get(index);
830 }
831 inline ::gz::msgs::Statistic* StatisticsGroup::add_statistics() {
832  // @@protoc_insertion_point(field_add:gz.msgs.StatisticsGroup.statistics)
833  return statistics_.Add();
834 }
835 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
837  // @@protoc_insertion_point(field_list:gz.msgs.StatisticsGroup.statistics)
838  return statistics_;
839 }
840 
841 // -------------------------------------------------------------------
842 
843 // Metric
844 
845 // .gz.msgs.Header header = 1;
846 inline bool Metric::has_header() const {
847  return this != internal_default_instance() && header_ != NULL;
848 }
849 inline const ::gz::msgs::Header& Metric::_internal_header() const {
850  return *header_;
851 }
852 inline const ::gz::msgs::Header& Metric::header() const {
853  const ::gz::msgs::Header* p = header_;
854  // @@protoc_insertion_point(field_get:gz.msgs.Metric.header)
855  return p != NULL ? *p : *reinterpret_cast<const ::gz::msgs::Header*>(
857 }
858 inline ::gz::msgs::Header* Metric::release_header() {
859  // @@protoc_insertion_point(field_release:gz.msgs.Metric.header)
860 
861  ::gz::msgs::Header* temp = header_;
862  header_ = NULL;
863  return temp;
864 }
865 inline ::gz::msgs::Header* Metric::mutable_header() {
866 
867  if (header_ == NULL) {
868  auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
869  header_ = p;
870  }
871  // @@protoc_insertion_point(field_mutable:gz.msgs.Metric.header)
872  return header_;
873 }
875  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
876  if (message_arena == NULL) {
877  delete reinterpret_cast< ::google::protobuf::MessageLite*>(header_);
878  }
879  if (header) {
880  ::google::protobuf::Arena* submessage_arena = NULL;
881  if (message_arena != submessage_arena) {
882  header = ::google::protobuf::internal::GetOwnedMessage(
883  message_arena, header, submessage_arena);
884  }
885 
886  } else {
887 
888  }
889  header_ = header;
890  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Metric.header)
891 }
892 
893 // string unit = 2;
894 inline void Metric::clear_unit() {
895  unit_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
896 }
897 inline const ::std::string& Metric::unit() const {
898  // @@protoc_insertion_point(field_get:gz.msgs.Metric.unit)
899  return unit_.GetNoArena();
900 }
901 inline void Metric::set_unit(const ::std::string& value) {
902 
903  unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
904  // @@protoc_insertion_point(field_set:gz.msgs.Metric.unit)
905 }
906 #if LANG_CXX11
907 inline void Metric::set_unit(::std::string&& value) {
908 
909  unit_.SetNoArena(
910  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
911  // @@protoc_insertion_point(field_set_rvalue:gz.msgs.Metric.unit)
912 }
913 #endif
914 inline void Metric::set_unit(const char* value) {
915  GOOGLE_DCHECK(value != NULL);
916 
917  unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
918  // @@protoc_insertion_point(field_set_char:gz.msgs.Metric.unit)
919 }
920 inline void Metric::set_unit(const char* value, size_t size) {
921 
922  unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
923  ::std::string(reinterpret_cast<const char*>(value), size));
924  // @@protoc_insertion_point(field_set_pointer:gz.msgs.Metric.unit)
925 }
926 inline ::std::string* Metric::mutable_unit() {
927 
928  // @@protoc_insertion_point(field_mutable:gz.msgs.Metric.unit)
929  return unit_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
930 }
931 inline ::std::string* Metric::release_unit() {
932  // @@protoc_insertion_point(field_release:gz.msgs.Metric.unit)
933 
934  return unit_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
935 }
937  if (unit != NULL) {
938 
939  } else {
940 
941  }
942  unit_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), unit);
943  // @@protoc_insertion_point(field_set_allocated:gz.msgs.Metric.unit)
944 }
945 
946 // repeated .gz.msgs.StatisticsGroup statistics_groups = 3;
947 inline int Metric::statistics_groups_size() const {
948  return statistics_groups_.size();
949 }
951  statistics_groups_.Clear();
952 }
953 inline ::gz::msgs::StatisticsGroup* Metric::mutable_statistics_groups(int index) {
954  // @@protoc_insertion_point(field_mutable:gz.msgs.Metric.statistics_groups)
955  return statistics_groups_.Mutable(index);
956 }
957 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >*
959  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Metric.statistics_groups)
960  return &statistics_groups_;
961 }
962 inline const ::gz::msgs::StatisticsGroup& Metric::statistics_groups(int index) const {
963  // @@protoc_insertion_point(field_get:gz.msgs.Metric.statistics_groups)
964  return statistics_groups_.Get(index);
965 }
966 inline ::gz::msgs::StatisticsGroup* Metric::add_statistics_groups() {
967  // @@protoc_insertion_point(field_add:gz.msgs.Metric.statistics_groups)
968  return statistics_groups_.Add();
969 }
970 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >&
972  // @@protoc_insertion_point(field_list:gz.msgs.Metric.statistics_groups)
973  return statistics_groups_;
974 }
975 
976 // repeated .gz.msgs.Statistic statistics = 4;
977 inline int Metric::statistics_size() const {
978  return statistics_.size();
979 }
981  statistics_.Clear();
982 }
983 inline ::gz::msgs::Statistic* Metric::mutable_statistics(int index) {
984  // @@protoc_insertion_point(field_mutable:gz.msgs.Metric.statistics)
985  return statistics_.Mutable(index);
986 }
987 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
989  // @@protoc_insertion_point(field_mutable_list:gz.msgs.Metric.statistics)
990  return &statistics_;
991 }
992 inline const ::gz::msgs::Statistic& Metric::statistics(int index) const {
993  // @@protoc_insertion_point(field_get:gz.msgs.Metric.statistics)
994  return statistics_.Get(index);
995 }
996 inline ::gz::msgs::Statistic* Metric::add_statistics() {
997  // @@protoc_insertion_point(field_add:gz.msgs.Metric.statistics)
998  return statistics_.Add();
999 }
1000 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
1002  // @@protoc_insertion_point(field_list:gz.msgs.Metric.statistics)
1003  return statistics_;
1004 }
1005 
1006 #ifdef __GNUC__
1007  #pragma GCC diagnostic pop
1008 #endif // __GNUC__
1009 // -------------------------------------------------------------------
1010 
1011 // -------------------------------------------------------------------
1012 
1013 
1014 // @@protoc_insertion_point(namespace_scope)
1015 
1016 } // namespace msgs
1017 } // namespace gz
1018 
1019 namespace google {
1020 namespace protobuf {
1021 
1022 template <> struct is_proto_enum< ::gz::msgs::Statistic_DataType> : ::std::true_type {};
1023 template <>
1024 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Statistic_DataType>() {
1026 }
1027 
1028 } // namespace protobuf
1029 } // namespace google
1030 
1031 // @@protoc_insertion_point(global_scope)
1032 
1033 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto