4 #ifndef GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstatistic_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_ignition_2fmsgs_2fstatistic_2eproto
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
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.
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>
32 #include <google/protobuf/extension_set.h>
33 #include <google/protobuf/generated_enum_reflection.h>
34 #include <google/protobuf/unknown_field_set.h>
37 #pragma GCC system_header
40 #pragma warning(disable: 4244 4267 4100 4244 4512 4127 4068 4275 4251)
43 #include <sys/sysmacros.h>
48 #include <google/protobuf/port_def.inc>
49 #define PROTOBUF_INTERNAL_EXPORT_ignition_2fmsgs_2fstatistic_2eproto IGNITION_MSGS_VISIBLE
50 PROTOBUF_NAMESPACE_OPEN
54 PROTOBUF_NAMESPACE_CLOSE
58 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
60 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
62 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
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[];
72 class MetricDefaultTypeInternal;
75 class StatisticDefaultTypeInternal;
77 class StatisticsGroup;
78 class StatisticsGroupDefaultTypeInternal;
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
113 "Incorrect type passed to function Statistic_DataType_Name.");
114 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
119 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Statistic_DataType>(
124 class IGNITION_MSGS_VISIBLE Statistic PROTOBUF_FINAL :
125 public ::PROTOBUF_NAMESPACE_ID::Message {
133 *
this = ::std::move(from);
140 inline Statistic&
operator=(Statistic&& from) noexcept {
141 if (GetArena() == from.GetArena()) {
142 if (
this != &from) InternalSwap(&from);
149 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
150 return GetDescriptor();
153 return GetMetadataStatic().descriptor;
156 return GetMetadataStatic().reflection;
161 return reinterpret_cast<const Statistic*
>(
164 static constexpr
int kIndexInFileMessages =
167 friend void swap(Statistic& a, Statistic& b) {
170 inline void Swap(Statistic* other) {
171 if (other ==
this)
return;
172 if (GetArena() == other->GetArena()) {
175 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
179 if (other ==
this)
return;
180 GOOGLE_DCHECK(GetArena() == other->GetArena());
186 inline Statistic*
New() const final {
187 return CreateMaybeMessage<Statistic>(
nullptr);
190 Statistic*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
191 return CreateMaybeMessage<Statistic>(arena);
193 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
194 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
197 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
198 bool IsInitialized() const final;
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(); }
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";
216 explicit Statistic(::PROTOBUF_NAMESPACE_ID::Arena* arena);
218 static void ArenaDtor(
void*
object);
219 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
224 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
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*
269 "Incorrect type passed to function DataType_Name.");
272 static inline bool DataType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
280 kNameFieldNumber = 3,
281 kHeaderFieldNumber = 1,
282 kValueFieldNumber = 4,
283 kTypeFieldNumber = 2,
304 bool _internal_has_header()
const;
307 const ::ignition::msgs::Header&
header()
const;
312 const ::ignition::msgs::Header& _internal_header()
const;
313 ::ignition::msgs::Header* _internal_mutable_header();
316 ::ignition::msgs::Header* header);
324 double _internal_value()
const;
325 void _internal_set_value(
double value);
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_;
348 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
349 friend struct ::TableStruct_ignition_2fmsgs_2fstatistic_2eproto;
354 public ::PROTOBUF_NAMESPACE_ID::Message {
361 : StatisticsGroup() {
362 *
this = ::std::move(from);
365 inline StatisticsGroup&
operator=(
const StatisticsGroup& from) {
369 inline StatisticsGroup&
operator=(StatisticsGroup&& from) noexcept {
370 if (GetArena() == from.GetArena()) {
371 if (
this != &from) InternalSwap(&from);
378 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
379 return GetDescriptor();
382 return GetMetadataStatic().descriptor;
385 return GetMetadataStatic().reflection;
390 return reinterpret_cast<const StatisticsGroup*
>(
393 static constexpr
int kIndexInFileMessages =
396 friend void swap(StatisticsGroup& a, StatisticsGroup& b) {
399 inline void Swap(StatisticsGroup* other) {
400 if (other ==
this)
return;
401 if (GetArena() == other->GetArena()) {
404 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
408 if (other ==
this)
return;
409 GOOGLE_DCHECK(GetArena() == other->GetArena());
415 inline StatisticsGroup*
New() const final {
416 return CreateMaybeMessage<StatisticsGroup>(
nullptr);
419 StatisticsGroup*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
420 return CreateMaybeMessage<StatisticsGroup>(arena);
422 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
423 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
426 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
427 bool IsInitialized() const final;
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(); }
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";
447 static void ArenaDtor(
void*
object);
448 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
453 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
465 kStatisticsFieldNumber = 3,
466 kNameFieldNumber = 2,
467 kHeaderFieldNumber = 1,
472 int _internal_statistics_size()
const;
476 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
479 const ::ignition::msgs::Statistic& _internal_statistics(
int index)
const;
480 ::ignition::msgs::Statistic* _internal_add_statistics();
482 const ::ignition::msgs::Statistic&
statistics(
int index)
const;
484 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
506 bool _internal_has_header()
const;
509 const ::ignition::msgs::Header&
header()
const;
514 const ::ignition::msgs::Header& _internal_header()
const;
515 ::ignition::msgs::Header* _internal_mutable_header();
518 ::ignition::msgs::Header* header);
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;
537 public ::PROTOBUF_NAMESPACE_ID::Message {
545 *
this = ::std::move(from);
553 if (GetArena() == from.GetArena()) {
554 if (
this != &from) InternalSwap(&from);
561 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
562 return GetDescriptor();
565 return GetMetadataStatic().descriptor;
568 return GetMetadataStatic().reflection;
573 return reinterpret_cast<const Metric*
>(
576 static constexpr
int kIndexInFileMessages =
579 friend void swap(Metric& a, Metric& b) {
582 inline void Swap(Metric* other) {
583 if (other ==
this)
return;
584 if (GetArena() == other->GetArena()) {
587 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
591 if (other ==
this)
return;
592 GOOGLE_DCHECK(GetArena() == other->GetArena());
598 inline Metric*
New() const final {
599 return CreateMaybeMessage<Metric>(
nullptr);
602 Metric*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
603 return CreateMaybeMessage<Metric>(arena);
605 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
606 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
609 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
610 bool IsInitialized() const final;
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(); }
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";
628 explicit Metric(::PROTOBUF_NAMESPACE_ID::Arena* arena);
630 static void ArenaDtor(
void*
object);
631 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
636 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
648 kStatisticsGroupsFieldNumber = 3,
649 kStatisticsFieldNumber = 4,
650 kUnitFieldNumber = 2,
651 kHeaderFieldNumber = 1,
656 int _internal_statistics_groups_size()
const;
660 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
663 const ::ignition::msgs::StatisticsGroup& _internal_statistics_groups(
int index)
const;
664 ::ignition::msgs::StatisticsGroup* _internal_add_statistics_groups();
668 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
674 int _internal_statistics_size()
const;
678 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
681 const ::ignition::msgs::Statistic& _internal_statistics(
int index)
const;
682 ::ignition::msgs::Statistic* _internal_add_statistics();
684 const ::ignition::msgs::Statistic&
statistics(
int index)
const;
686 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
708 bool _internal_has_header()
const;
711 const ::ignition::msgs::Header&
header()
const;
716 const ::ignition::msgs::Header& _internal_header()
const;
717 ::ignition::msgs::Header* _internal_mutable_header();
720 ::ignition::msgs::Header* header);
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;
743 #pragma GCC diagnostic push
744 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
749 inline bool Statistic::_internal_has_header()
const {
750 return this != internal_default_instance() && header_ !=
nullptr;
752 inline bool Statistic::has_header()
const {
753 return _internal_has_header();
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&
>(
760 inline const ::ignition::msgs::Header& Statistic::header()
const {
762 return _internal_header();
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_);
777 inline ::ignition::msgs::Header* Statistic::release_header() {
779 ::ignition::msgs::Header* temp = header_;
781 if (GetArena() !=
nullptr) {
782 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
786 inline ::ignition::msgs::Header* Statistic::unsafe_arena_release_header() {
789 ::ignition::msgs::Header* temp = header_;
793 inline ::ignition::msgs::Header* Statistic::_internal_mutable_header() {
795 if (header_ ==
nullptr) {
796 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
801 inline ::ignition::msgs::Header* Statistic::mutable_header() {
803 return _internal_mutable_header();
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_);
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);
826 inline void Statistic::clear_type() {
834 return _internal_type();
841 _internal_set_type(value);
846 inline void Statistic::clear_name() {
847 name_.ClearToEmpty();
849 inline const std::string& Statistic::name()
const {
851 return _internal_name();
853 inline void Statistic::set_name(
const std::string& value) {
854 _internal_set_name(value);
859 return _internal_mutable_name();
861 inline const std::string& Statistic::_internal_name()
const {
864 inline void Statistic::_internal_set_name(
const std::string& value) {
866 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
868 inline void Statistic::set_name(
std::string&& value) {
871 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
874 inline void Statistic::set_name(
const char* value) {
875 GOOGLE_DCHECK(value !=
nullptr);
877 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
880 inline void Statistic::set_name(
const char* value,
883 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
884 reinterpret_cast<const char*
>(value), size), GetArena());
887 inline std::string* Statistic::_internal_mutable_name() {
889 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
893 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
895 inline void Statistic::set_allocated_name(
std::string* name) {
896 if (name !=
nullptr) {
901 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
907 inline void Statistic::clear_value() {
910 inline double Statistic::_internal_value()
const {
913 inline double Statistic::value()
const {
915 return _internal_value();
917 inline void Statistic::_internal_set_value(
double value) {
921 inline void Statistic::set_value(
double value) {
922 _internal_set_value(value);
931 inline bool StatisticsGroup::_internal_has_header()
const {
932 return this != internal_default_instance() && header_ !=
nullptr;
934 inline bool StatisticsGroup::has_header()
const {
935 return _internal_has_header();
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&
>(
942 inline const ::ignition::msgs::Header& StatisticsGroup::header()
const {
944 return _internal_header();
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_);
959 inline ::ignition::msgs::Header* StatisticsGroup::release_header() {
961 ::ignition::msgs::Header* temp = header_;
963 if (GetArena() !=
nullptr) {
964 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
968 inline ::ignition::msgs::Header* StatisticsGroup::unsafe_arena_release_header() {
971 ::ignition::msgs::Header* temp = header_;
975 inline ::ignition::msgs::Header* StatisticsGroup::_internal_mutable_header() {
977 if (header_ ==
nullptr) {
978 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
983 inline ::ignition::msgs::Header* StatisticsGroup::mutable_header() {
985 return _internal_mutable_header();
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_);
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);
1008 inline void StatisticsGroup::clear_name() {
1009 name_.ClearToEmpty();
1011 inline const std::string& StatisticsGroup::name()
const {
1013 return _internal_name();
1015 inline void StatisticsGroup::set_name(
const std::string& value) {
1016 _internal_set_name(value);
1019 inline std::string* StatisticsGroup::mutable_name() {
1021 return _internal_mutable_name();
1023 inline const std::string& StatisticsGroup::_internal_name()
const {
1026 inline void StatisticsGroup::_internal_set_name(
const std::string& value) {
1028 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
1030 inline void StatisticsGroup::set_name(
std::string&& value) {
1033 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
1036 inline void StatisticsGroup::set_name(
const char* value) {
1037 GOOGLE_DCHECK(value !=
nullptr);
1039 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
1042 inline void StatisticsGroup::set_name(
const char* value,
1045 name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
1046 reinterpret_cast<const char*
>(value), size), GetArena());
1049 inline std::string* StatisticsGroup::_internal_mutable_name() {
1051 return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
1053 inline std::string* StatisticsGroup::release_name() {
1055 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1057 inline void StatisticsGroup::set_allocated_name(
std::string* name) {
1058 if (name !=
nullptr) {
1063 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1069 inline int StatisticsGroup::_internal_statistics_size()
const {
1070 return statistics_.
size();
1072 inline int StatisticsGroup::statistics_size()
const {
1073 return _internal_statistics_size();
1075 inline void StatisticsGroup::clear_statistics() {
1076 statistics_.Clear();
1078 inline ::ignition::msgs::Statistic* StatisticsGroup::mutable_statistics(
int index) {
1080 return statistics_.Mutable(index);
1082 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
1083 StatisticsGroup::mutable_statistics() {
1085 return &statistics_;
1087 inline const ::ignition::msgs::Statistic& StatisticsGroup::_internal_statistics(
int index)
const {
1088 return statistics_.Get(index);
1090 inline const ::ignition::msgs::Statistic& StatisticsGroup::statistics(
int index)
const {
1092 return _internal_statistics(index);
1094 inline ::ignition::msgs::Statistic* StatisticsGroup::_internal_add_statistics() {
1095 return statistics_.Add();
1097 inline ::ignition::msgs::Statistic* StatisticsGroup::add_statistics() {
1099 return _internal_add_statistics();
1101 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
1102 StatisticsGroup::statistics()
const {
1112 inline bool Metric::_internal_has_header()
const {
1113 return this != internal_default_instance() && header_ !=
nullptr;
1115 inline bool Metric::has_header()
const {
1116 return _internal_has_header();
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&
>(
1123 inline const ::ignition::msgs::Header& Metric::header()
const {
1125 return _internal_header();
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_);
1140 inline ::ignition::msgs::Header* Metric::release_header() {
1142 ::ignition::msgs::Header* temp = header_;
1144 if (GetArena() !=
nullptr) {
1145 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1149 inline ::ignition::msgs::Header* Metric::unsafe_arena_release_header() {
1152 ::ignition::msgs::Header* temp = header_;
1156 inline ::ignition::msgs::Header* Metric::_internal_mutable_header() {
1158 if (header_ ==
nullptr) {
1159 auto* p = CreateMaybeMessage<::ignition::msgs::Header>(GetArena());
1164 inline ::ignition::msgs::Header* Metric::mutable_header() {
1166 return _internal_mutable_header();
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_);
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);
1189 inline void Metric::clear_unit() {
1190 unit_.ClearToEmpty();
1194 return _internal_unit();
1196 inline void Metric::set_unit(
const std::string& value) {
1197 _internal_set_unit(value);
1202 return _internal_mutable_unit();
1204 inline const std::string& Metric::_internal_unit()
const {
1207 inline void Metric::_internal_set_unit(
const std::string& value) {
1209 unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
1211 inline void Metric::set_unit(
std::string&& value) {
1214 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
1217 inline void Metric::set_unit(
const char* value) {
1218 GOOGLE_DCHECK(value !=
nullptr);
1220 unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(value), GetArena());
1223 inline void Metric::set_unit(
const char* value,
1226 unit_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
::std::string(
1227 reinterpret_cast<const char*
>(value), size), GetArena());
1230 inline std::string* Metric::_internal_mutable_unit() {
1232 return unit_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
1236 return unit_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1238 inline void Metric::set_allocated_unit(
std::string* unit) {
1239 if (unit !=
nullptr) {
1244 unit_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unit,
1250 inline int Metric::_internal_statistics_groups_size()
const {
1251 return statistics_groups_.
size();
1253 inline int Metric::statistics_groups_size()
const {
1254 return _internal_statistics_groups_size();
1256 inline void Metric::clear_statistics_groups() {
1257 statistics_groups_.Clear();
1259 inline ::ignition::msgs::StatisticsGroup* Metric::mutable_statistics_groups(
int index) {
1261 return statistics_groups_.Mutable(index);
1263 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >*
1264 Metric::mutable_statistics_groups() {
1266 return &statistics_groups_;
1268 inline const ::ignition::msgs::StatisticsGroup& Metric::_internal_statistics_groups(
int index)
const {
1269 return statistics_groups_.Get(index);
1271 inline const ::ignition::msgs::StatisticsGroup& Metric::statistics_groups(
int index)
const {
1273 return _internal_statistics_groups(index);
1275 inline ::ignition::msgs::StatisticsGroup* Metric::_internal_add_statistics_groups() {
1276 return statistics_groups_.Add();
1278 inline ::ignition::msgs::StatisticsGroup* Metric::add_statistics_groups() {
1280 return _internal_add_statistics_groups();
1282 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup >&
1283 Metric::statistics_groups()
const {
1285 return statistics_groups_;
1289 inline int Metric::_internal_statistics_size()
const {
1290 return statistics_.size();
1292 inline int Metric::statistics_size()
const {
1293 return _internal_statistics_size();
1295 inline void Metric::clear_statistics() {
1296 statistics_.Clear();
1298 inline ::ignition::msgs::Statistic* Metric::mutable_statistics(
int index) {
1300 return statistics_.Mutable(index);
1302 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >*
1303 Metric::mutable_statistics() {
1305 return &statistics_;
1307 inline const ::ignition::msgs::Statistic& Metric::_internal_statistics(
int index)
const {
1308 return statistics_.Get(index);
1310 inline const ::ignition::msgs::Statistic& Metric::statistics(
int index)
const {
1312 return _internal_statistics(index);
1314 inline ::ignition::msgs::Statistic* Metric::_internal_add_statistics() {
1315 return statistics_.Add();
1317 inline ::ignition::msgs::Statistic* Metric::add_statistics() {
1319 return _internal_add_statistics();
1321 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::Statistic >&
1322 Metric::statistics()
const {
1328 #pragma GCC diagnostic pop
1344 PROTOBUF_NAMESPACE_OPEN
1348 inline const EnumDescriptor* GetEnumDescriptor< ::ignition::msgs::Statistic_DataType>() {
1352 PROTOBUF_NAMESPACE_CLOSE
1355 #pragma warning(pop)
1359 #include <google/protobuf/port_undef.inc>
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)
virtual ~StatisticsGroup()
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)
std::string * mutable_name()
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ignition::msgs::StatisticsGroup > * mutable_statistics_groups()
void clear_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
std::string * release_name()
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)
int statistics_size() const
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
std::string * mutable_unit()
::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)
std::string * release_unit()
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)
int statistics_groups_size() const
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)
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
IGNITION_MSGS_VISIBLEconst ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ignition_2fmsgs_2fstatistic_2eproto
Definition: statistic.pb.h:57
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)