4 #ifndef PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto
5 #define PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/generated_enum_reflection.h>
33 #include <google/protobuf/unknown_field_set.h>
34 #include "gz/msgs/header.pb.h"
36 #define PROTOBUF_INTERNAL_EXPORT_protobuf_gz_2fmsgs_2fstatistic_2eproto GZ_MSGS_VISIBLE
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[];
53 class MetricDefaultTypeInternal;
56 class StatisticDefaultTypeInternal;
58 class StatisticsGroup;
59 class StatisticsGroupDefaultTypeInternal;
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*);
93 return ::google::protobuf::internal::NameOfEnum(
98 return ::google::protobuf::internal::ParseNamedEnum<Statistic_DataType>(
103 class GZ_MSGS_VISIBLE
Statistic :
public ::google::protobuf::Message {
117 *
this = ::std::move(from);
120 inline Statistic& operator=(Statistic&& from) noexcept {
121 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
122 if (
this != &from) InternalSwap(&from);
129 static const ::google::protobuf::Descriptor* descriptor();
130 static const Statistic& default_instance();
132 static void InitAsDefaultInstance();
134 return reinterpret_cast<const Statistic*
>(
137 static constexpr
int kIndexInFileMessages =
148 return CreateMaybeMessage<Statistic>(NULL);
152 return CreateMaybeMessage<Statistic>(arena);
154 void CopyFrom(const ::google::protobuf::Message& from)
final;
155 void MergeFrom(const ::google::protobuf::Message& from)
final;
159 bool IsInitialized() const final;
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(); }
173 void SetCachedSize(
int size)
const final;
176 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
179 inline void* MaybeArenaPtr()
const {
184 ::google::protobuf::Metadata GetMetadata() const final;
207 static inline
bool DataType_IsValid(
int value) {
214 static const int DataType_ARRAYSIZE =
216 static inline const ::google::protobuf::EnumDescriptor*
232 static const int kNameFieldNumber = 3;
233 const ::std::string& name()
const;
234 void set_name(const ::std::string& value);
238 void set_name(
const char* value);
239 void set_name(
const char* value,
size_t size);
245 bool has_header()
const;
247 static const int kHeaderFieldNumber = 1;
249 const ::gz::msgs::Header& _internal_header()
const;
251 const ::gz::msgs::Header& header()
const;
258 static const int kValueFieldNumber = 4;
259 double value()
const;
260 void set_value(
double value);
264 static const int kTypeFieldNumber = 2;
271 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
272 ::google::protobuf::internal::ArenaStringPtr name_;
276 mutable ::google::protobuf::internal::CachedSize _cached_size_;
277 friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
295 *
this = ::std::move(from);
298 inline StatisticsGroup& operator=(StatisticsGroup&& from) noexcept {
299 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
300 if (
this != &from) InternalSwap(&from);
307 static const ::google::protobuf::Descriptor* descriptor();
308 static const StatisticsGroup& default_instance();
310 static void InitAsDefaultInstance();
315 static constexpr
int kIndexInFileMessages =
326 return CreateMaybeMessage<StatisticsGroup>(NULL);
330 return CreateMaybeMessage<StatisticsGroup>(arena);
332 void CopyFrom(const ::google::protobuf::Message& from)
final;
333 void MergeFrom(const ::google::protobuf::Message& from)
final;
337 bool IsInitialized() const final;
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(); }
351 void SetCachedSize(
int size)
const final;
354 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
357 inline void* MaybeArenaPtr()
const {
362 ::google::protobuf::Metadata GetMetadata() const final;
369 int statistics_size() const;
370 void clear_statistics();
371 static const
int kStatisticsFieldNumber = 3;
372 ::
gz::msgs::
Statistic* mutable_statistics(
int index);
374 mutable_statistics();
375 const ::
gz::msgs::
Statistic& statistics(
int index) const;
382 static const
int kNameFieldNumber = 2;
383 const ::
std::
string& name() const;
384 void set_name(const ::
std::
string& value);
388 void set_name(
const char* value);
389 void set_name(
const char* value,
size_t size);
395 bool has_header()
const;
397 static const int kHeaderFieldNumber = 1;
399 const ::gz::msgs::Header& _internal_header()
const;
401 const ::gz::msgs::Header& header()
const;
409 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
410 ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic > statistics_;
411 ::google::protobuf::internal::ArenaStringPtr name_;
413 mutable ::google::protobuf::internal::CachedSize _cached_size_;
414 friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
418 class GZ_MSGS_VISIBLE
Metric :
public ::google::protobuf::Message {
432 *
this = ::std::move(from);
435 inline Metric& operator=(Metric&& from) noexcept {
436 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
437 if (
this != &from) InternalSwap(&from);
444 static const ::google::protobuf::Descriptor* descriptor();
445 static const Metric& default_instance();
447 static void InitAsDefaultInstance();
449 return reinterpret_cast<const Metric*
>(
452 static constexpr
int kIndexInFileMessages =
463 return CreateMaybeMessage<Metric>(NULL);
466 Metric*
New(::google::protobuf::Arena* arena)
const final {
467 return CreateMaybeMessage<Metric>(arena);
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);
474 bool IsInitialized() const final;
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(); }
488 void SetCachedSize(
int size)
const final;
489 void InternalSwap(
Metric* other);
491 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
494 inline void* MaybeArenaPtr()
const {
499 ::google::protobuf::Metadata GetMetadata() const final;
506 int statistics_groups_size() const;
507 void clear_statistics_groups();
508 static const
int kStatisticsGroupsFieldNumber = 3;
511 mutable_statistics_groups();
515 statistics_groups() const;
518 int statistics_size() const;
519 void clear_statistics();
520 static const
int kStatisticsFieldNumber = 4;
521 ::
gz::msgs::
Statistic* mutable_statistics(
int index);
523 mutable_statistics();
524 const ::
gz::msgs::
Statistic& statistics(
int index) const;
531 static const
int kUnitFieldNumber = 2;
532 const ::
std::
string& unit() const;
533 void set_unit(const ::
std::
string& value);
537 void set_unit(
const char* value);
538 void set_unit(
const char* value,
size_t size);
544 bool has_header()
const;
546 static const int kHeaderFieldNumber = 1;
548 const ::gz::msgs::Header& _internal_header()
const;
550 const ::gz::msgs::Header& header()
const;
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_;
563 mutable ::google::protobuf::internal::CachedSize _cached_size_;
564 friend struct ::protobuf_gz_2fmsgs_2fstatistic_2eproto::TableStruct;
572 #pragma GCC diagnostic push
573 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
581 inline const ::gz::msgs::Header& Statistic::_internal_header()
const {
585 const ::gz::msgs::Header* p = header_;
599 if (header_ == NULL) {
600 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
607 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
608 if (message_arena == NULL) {
609 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
641 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
645 return name_.GetNoArena();
649 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
value);
656 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(
value));
661 GOOGLE_DCHECK(
value != NULL);
663 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(
value));
668 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
675 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
680 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
688 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
714 inline const ::gz::msgs::Header& StatisticsGroup::_internal_header()
const {
718 const ::gz::msgs::Header* p = header_;
732 if (header_ == NULL) {
733 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
740 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
741 if (message_arena == NULL) {
742 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
760 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
764 return name_.GetNoArena();
768 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
775 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
780 GOOGLE_DCHECK(value != NULL);
782 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
787 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
788 ::
std::string(
reinterpret_cast<const char*
>(value), size));
794 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
799 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
807 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
name);
813 return statistics_.size();
820 return statistics_.Mutable(index);
822 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
829 return statistics_.Get(index);
833 return statistics_.Add();
835 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
849 inline const ::gz::msgs::Header& Metric::_internal_header()
const {
853 const ::gz::msgs::Header* p = header_;
867 if (header_ == NULL) {
868 auto* p = CreateMaybeMessage<::gz::msgs::Header>(GetArenaNoVirtual());
875 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
876 if (message_arena == NULL) {
877 delete reinterpret_cast< ::google::protobuf::MessageLite*
>(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);
895 unit_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
899 return unit_.GetNoArena();
903 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
910 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::move(value));
915 GOOGLE_DCHECK(value != NULL);
917 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::
std::string(value));
922 unit_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
923 ::
std::string(
reinterpret_cast<const char*
>(value), size));
929 return unit_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
934 return unit_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
942 unit_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
unit);
948 return statistics_groups_.size();
951 statistics_groups_.Clear();
955 return statistics_groups_.Mutable(index);
957 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >*
960 return &statistics_groups_;
964 return statistics_groups_.Get(index);
968 return statistics_groups_.Add();
970 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::StatisticsGroup >&
973 return statistics_groups_;
978 return statistics_.size();
985 return statistics_.Mutable(index);
987 inline ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >*
994 return statistics_.Get(index);
998 return statistics_.Add();
1000 inline const ::google::protobuf::RepeatedPtrField< ::gz::msgs::Statistic >&
1007 #pragma GCC diagnostic pop
1020 namespace protobuf {
1024 inline const EnumDescriptor* GetEnumDescriptor< ::gz::msgs::Statistic_DataType>() {
1033 #endif // PROTOBUF_INCLUDED_gz_2fmsgs_2fstatistic_2eproto