Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame^] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: dmi/hw_metrics_mgmt_service.proto |
| 3 | |
| 4 | #ifndef PROTOBUF_INCLUDED_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto |
| 5 | #define PROTOBUF_INCLUDED_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto |
| 6 | |
| 7 | #include <limits> |
| 8 | #include <string> |
| 9 | |
| 10 | #include <google/protobuf/port_def.inc> |
| 11 | #if PROTOBUF_VERSION < 3007000 |
| 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 3007000 < 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/inlined_string_field.h> |
| 29 | #include <google/protobuf/metadata.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> |
| 35 | #include "dmi/commons.pb.h" |
| 36 | #include "dmi/hw.pb.h" |
| 37 | // @@protoc_insertion_point(includes) |
| 38 | #include <google/protobuf/port_def.inc> |
| 39 | #define PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto |
| 40 | |
| 41 | // Internal implementation detail -- do not use these members. |
| 42 | struct TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto { |
| 43 | static const ::google::protobuf::internal::ParseTableField entries[] |
| 44 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| 45 | static const ::google::protobuf::internal::AuxillaryParseTableField aux[] |
| 46 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| 47 | static const ::google::protobuf::internal::ParseTable schema[9] |
| 48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| 49 | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
| 50 | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
| 51 | static const ::google::protobuf::uint32 offsets[]; |
| 52 | }; |
| 53 | void AddDescriptors_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto(); |
| 54 | namespace dmi { |
| 55 | class GetMetricRequest; |
| 56 | class GetMetricRequestDefaultTypeInternal; |
| 57 | extern GetMetricRequestDefaultTypeInternal _GetMetricRequest_default_instance_; |
| 58 | class GetMetricResponse; |
| 59 | class GetMetricResponseDefaultTypeInternal; |
| 60 | extern GetMetricResponseDefaultTypeInternal _GetMetricResponse_default_instance_; |
| 61 | class ListMetricsResponse; |
| 62 | class ListMetricsResponseDefaultTypeInternal; |
| 63 | extern ListMetricsResponseDefaultTypeInternal _ListMetricsResponse_default_instance_; |
| 64 | class Metric; |
| 65 | class MetricDefaultTypeInternal; |
| 66 | extern MetricDefaultTypeInternal _Metric_default_instance_; |
| 67 | class MetricConfig; |
| 68 | class MetricConfigDefaultTypeInternal; |
| 69 | extern MetricConfigDefaultTypeInternal _MetricConfig_default_instance_; |
| 70 | class MetricMetaData; |
| 71 | class MetricMetaDataDefaultTypeInternal; |
| 72 | extern MetricMetaDataDefaultTypeInternal _MetricMetaData_default_instance_; |
| 73 | class MetricsConfig; |
| 74 | class MetricsConfigDefaultTypeInternal; |
| 75 | extern MetricsConfigDefaultTypeInternal _MetricsConfig_default_instance_; |
| 76 | class MetricsConfigurationRequest; |
| 77 | class MetricsConfigurationRequestDefaultTypeInternal; |
| 78 | extern MetricsConfigurationRequestDefaultTypeInternal _MetricsConfigurationRequest_default_instance_; |
| 79 | class MetricsConfigurationResponse; |
| 80 | class MetricsConfigurationResponseDefaultTypeInternal; |
| 81 | extern MetricsConfigurationResponseDefaultTypeInternal _MetricsConfigurationResponse_default_instance_; |
| 82 | } // namespace dmi |
| 83 | namespace google { |
| 84 | namespace protobuf { |
| 85 | template<> ::dmi::GetMetricRequest* Arena::CreateMaybeMessage<::dmi::GetMetricRequest>(Arena*); |
| 86 | template<> ::dmi::GetMetricResponse* Arena::CreateMaybeMessage<::dmi::GetMetricResponse>(Arena*); |
| 87 | template<> ::dmi::ListMetricsResponse* Arena::CreateMaybeMessage<::dmi::ListMetricsResponse>(Arena*); |
| 88 | template<> ::dmi::Metric* Arena::CreateMaybeMessage<::dmi::Metric>(Arena*); |
| 89 | template<> ::dmi::MetricConfig* Arena::CreateMaybeMessage<::dmi::MetricConfig>(Arena*); |
| 90 | template<> ::dmi::MetricMetaData* Arena::CreateMaybeMessage<::dmi::MetricMetaData>(Arena*); |
| 91 | template<> ::dmi::MetricsConfig* Arena::CreateMaybeMessage<::dmi::MetricsConfig>(Arena*); |
| 92 | template<> ::dmi::MetricsConfigurationRequest* Arena::CreateMaybeMessage<::dmi::MetricsConfigurationRequest>(Arena*); |
| 93 | template<> ::dmi::MetricsConfigurationResponse* Arena::CreateMaybeMessage<::dmi::MetricsConfigurationResponse>(Arena*); |
| 94 | } // namespace protobuf |
| 95 | } // namespace google |
| 96 | namespace dmi { |
| 97 | |
| 98 | enum ListMetricsResponse_Reason { |
| 99 | ListMetricsResponse_Reason_UNDEFINED_REASON = 0, |
| 100 | ListMetricsResponse_Reason_UNKNOWN_DEVICE = 1, |
| 101 | ListMetricsResponse_Reason_INTERNAL_ERROR = 2, |
| 102 | ListMetricsResponse_Reason_DEVICE_UNREACHABLE = 3, |
| 103 | ListMetricsResponse_Reason_ListMetricsResponse_Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 104 | ListMetricsResponse_Reason_ListMetricsResponse_Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 105 | }; |
| 106 | bool ListMetricsResponse_Reason_IsValid(int value); |
| 107 | const ListMetricsResponse_Reason ListMetricsResponse_Reason_Reason_MIN = ListMetricsResponse_Reason_UNDEFINED_REASON; |
| 108 | const ListMetricsResponse_Reason ListMetricsResponse_Reason_Reason_MAX = ListMetricsResponse_Reason_DEVICE_UNREACHABLE; |
| 109 | const int ListMetricsResponse_Reason_Reason_ARRAYSIZE = ListMetricsResponse_Reason_Reason_MAX + 1; |
| 110 | |
| 111 | const ::google::protobuf::EnumDescriptor* ListMetricsResponse_Reason_descriptor(); |
| 112 | inline const ::std::string& ListMetricsResponse_Reason_Name(ListMetricsResponse_Reason value) { |
| 113 | return ::google::protobuf::internal::NameOfEnum( |
| 114 | ListMetricsResponse_Reason_descriptor(), value); |
| 115 | } |
| 116 | inline bool ListMetricsResponse_Reason_Parse( |
| 117 | const ::std::string& name, ListMetricsResponse_Reason* value) { |
| 118 | return ::google::protobuf::internal::ParseNamedEnum<ListMetricsResponse_Reason>( |
| 119 | ListMetricsResponse_Reason_descriptor(), name, value); |
| 120 | } |
| 121 | enum MetricsConfigurationResponse_Reason { |
| 122 | MetricsConfigurationResponse_Reason_UNDEFINED_REASON = 0, |
| 123 | MetricsConfigurationResponse_Reason_UNKNOWN_DEVICE = 1, |
| 124 | MetricsConfigurationResponse_Reason_INTERNAL_ERROR = 2, |
| 125 | MetricsConfigurationResponse_Reason_POLL_INTERVAL_UNSUPPORTED = 3, |
| 126 | MetricsConfigurationResponse_Reason_INVALID_METRIC = 4, |
| 127 | MetricsConfigurationResponse_Reason_DEVICE_UNREACHABLE = 5, |
| 128 | MetricsConfigurationResponse_Reason_MetricsConfigurationResponse_Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 129 | MetricsConfigurationResponse_Reason_MetricsConfigurationResponse_Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 130 | }; |
| 131 | bool MetricsConfigurationResponse_Reason_IsValid(int value); |
| 132 | const MetricsConfigurationResponse_Reason MetricsConfigurationResponse_Reason_Reason_MIN = MetricsConfigurationResponse_Reason_UNDEFINED_REASON; |
| 133 | const MetricsConfigurationResponse_Reason MetricsConfigurationResponse_Reason_Reason_MAX = MetricsConfigurationResponse_Reason_DEVICE_UNREACHABLE; |
| 134 | const int MetricsConfigurationResponse_Reason_Reason_ARRAYSIZE = MetricsConfigurationResponse_Reason_Reason_MAX + 1; |
| 135 | |
| 136 | const ::google::protobuf::EnumDescriptor* MetricsConfigurationResponse_Reason_descriptor(); |
| 137 | inline const ::std::string& MetricsConfigurationResponse_Reason_Name(MetricsConfigurationResponse_Reason value) { |
| 138 | return ::google::protobuf::internal::NameOfEnum( |
| 139 | MetricsConfigurationResponse_Reason_descriptor(), value); |
| 140 | } |
| 141 | inline bool MetricsConfigurationResponse_Reason_Parse( |
| 142 | const ::std::string& name, MetricsConfigurationResponse_Reason* value) { |
| 143 | return ::google::protobuf::internal::ParseNamedEnum<MetricsConfigurationResponse_Reason>( |
| 144 | MetricsConfigurationResponse_Reason_descriptor(), name, value); |
| 145 | } |
| 146 | enum GetMetricResponse_Reason { |
| 147 | GetMetricResponse_Reason_UNDEFINED_REASON = 0, |
| 148 | GetMetricResponse_Reason_UNKNOWN_DEVICE = 1, |
| 149 | GetMetricResponse_Reason_UNKNOWN_COMPONENT = 2, |
| 150 | GetMetricResponse_Reason_INTERNAL_ERROR = 3, |
| 151 | GetMetricResponse_Reason_INVALID_METRIC = 4, |
| 152 | GetMetricResponse_Reason_DEVICE_UNREACHABLE = 5, |
| 153 | GetMetricResponse_Reason_GetMetricResponse_Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 154 | GetMetricResponse_Reason_GetMetricResponse_Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 155 | }; |
| 156 | bool GetMetricResponse_Reason_IsValid(int value); |
| 157 | const GetMetricResponse_Reason GetMetricResponse_Reason_Reason_MIN = GetMetricResponse_Reason_UNDEFINED_REASON; |
| 158 | const GetMetricResponse_Reason GetMetricResponse_Reason_Reason_MAX = GetMetricResponse_Reason_DEVICE_UNREACHABLE; |
| 159 | const int GetMetricResponse_Reason_Reason_ARRAYSIZE = GetMetricResponse_Reason_Reason_MAX + 1; |
| 160 | |
| 161 | const ::google::protobuf::EnumDescriptor* GetMetricResponse_Reason_descriptor(); |
| 162 | inline const ::std::string& GetMetricResponse_Reason_Name(GetMetricResponse_Reason value) { |
| 163 | return ::google::protobuf::internal::NameOfEnum( |
| 164 | GetMetricResponse_Reason_descriptor(), value); |
| 165 | } |
| 166 | inline bool GetMetricResponse_Reason_Parse( |
| 167 | const ::std::string& name, GetMetricResponse_Reason* value) { |
| 168 | return ::google::protobuf::internal::ParseNamedEnum<GetMetricResponse_Reason>( |
| 169 | GetMetricResponse_Reason_descriptor(), name, value); |
| 170 | } |
| 171 | enum MetricNames { |
| 172 | METRIC_NAME_UNDEFINED = 0, |
| 173 | METRIC_FAN_SPEED = 1, |
| 174 | METRIC_CPU_TEMP = 100, |
| 175 | METRIC_CPU_USAGE_PERCENTAGE = 101, |
| 176 | METRIC_TRANSCEIVER_TEMP = 200, |
| 177 | METRIC_TRANSCEIVER_VOLTAGE = 201, |
| 178 | METRIC_TRANSCEIVER_BIAS = 202, |
| 179 | METRIC_TRANSCEIVER_RX_POWER = 203, |
| 180 | METRIC_TRANSCEIVER_TX_POWER = 204, |
| 181 | METRIC_TRANSCEIVER_WAVELENGTH = 205, |
| 182 | METRIC_DISK_TEMP = 300, |
| 183 | METRIC_DISK_CAPACITY = 301, |
| 184 | METRIC_DISK_USAGE = 302, |
| 185 | METRIC_DISK_USAGE_PERCENTAGE = 303, |
| 186 | METRIC_DISK_READ_WRITE_PERCENTAGE = 304, |
| 187 | METRIC_DISK_FAULTY_CELLS_PERCENTAGE = 305, |
| 188 | METRIC_RAM_TEMP = 400, |
| 189 | METRIC_RAM_CAPACITY = 401, |
| 190 | METRIC_RAM_USAGE = 402, |
| 191 | METRIC_RAM_USAGE_PERCENTAGE = 403, |
| 192 | METRIC_POWER_MAX = 500, |
| 193 | METRIC_POWER_USAGE = 501, |
| 194 | METRIC_POWER_USAGE_PERCENTAGE = 502, |
| 195 | METRIC_INNER_SURROUNDING_TEMP = 600, |
| 196 | MetricNames_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 197 | MetricNames_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 198 | }; |
| 199 | bool MetricNames_IsValid(int value); |
| 200 | const MetricNames MetricNames_MIN = METRIC_NAME_UNDEFINED; |
| 201 | const MetricNames MetricNames_MAX = METRIC_INNER_SURROUNDING_TEMP; |
| 202 | const int MetricNames_ARRAYSIZE = MetricNames_MAX + 1; |
| 203 | |
| 204 | const ::google::protobuf::EnumDescriptor* MetricNames_descriptor(); |
| 205 | inline const ::std::string& MetricNames_Name(MetricNames value) { |
| 206 | return ::google::protobuf::internal::NameOfEnum( |
| 207 | MetricNames_descriptor(), value); |
| 208 | } |
| 209 | inline bool MetricNames_Parse( |
| 210 | const ::std::string& name, MetricNames* value) { |
| 211 | return ::google::protobuf::internal::ParseNamedEnum<MetricNames>( |
| 212 | MetricNames_descriptor(), name, value); |
| 213 | } |
| 214 | // =================================================================== |
| 215 | |
| 216 | class MetricConfig final : |
| 217 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.MetricConfig) */ { |
| 218 | public: |
| 219 | MetricConfig(); |
| 220 | virtual ~MetricConfig(); |
| 221 | |
| 222 | MetricConfig(const MetricConfig& from); |
| 223 | |
| 224 | inline MetricConfig& operator=(const MetricConfig& from) { |
| 225 | CopyFrom(from); |
| 226 | return *this; |
| 227 | } |
| 228 | #if LANG_CXX11 |
| 229 | MetricConfig(MetricConfig&& from) noexcept |
| 230 | : MetricConfig() { |
| 231 | *this = ::std::move(from); |
| 232 | } |
| 233 | |
| 234 | inline MetricConfig& operator=(MetricConfig&& from) noexcept { |
| 235 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 236 | if (this != &from) InternalSwap(&from); |
| 237 | } else { |
| 238 | CopyFrom(from); |
| 239 | } |
| 240 | return *this; |
| 241 | } |
| 242 | #endif |
| 243 | static const ::google::protobuf::Descriptor* descriptor() { |
| 244 | return default_instance().GetDescriptor(); |
| 245 | } |
| 246 | static const MetricConfig& default_instance(); |
| 247 | |
| 248 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 249 | static inline const MetricConfig* internal_default_instance() { |
| 250 | return reinterpret_cast<const MetricConfig*>( |
| 251 | &_MetricConfig_default_instance_); |
| 252 | } |
| 253 | static constexpr int kIndexInFileMessages = |
| 254 | 0; |
| 255 | |
| 256 | void Swap(MetricConfig* other); |
| 257 | friend void swap(MetricConfig& a, MetricConfig& b) { |
| 258 | a.Swap(&b); |
| 259 | } |
| 260 | |
| 261 | // implements Message ---------------------------------------------- |
| 262 | |
| 263 | inline MetricConfig* New() const final { |
| 264 | return CreateMaybeMessage<MetricConfig>(nullptr); |
| 265 | } |
| 266 | |
| 267 | MetricConfig* New(::google::protobuf::Arena* arena) const final { |
| 268 | return CreateMaybeMessage<MetricConfig>(arena); |
| 269 | } |
| 270 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 271 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 272 | void CopyFrom(const MetricConfig& from); |
| 273 | void MergeFrom(const MetricConfig& from); |
| 274 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 275 | bool IsInitialized() const final; |
| 276 | |
| 277 | size_t ByteSizeLong() const final; |
| 278 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 279 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 280 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 281 | #else |
| 282 | bool MergePartialFromCodedStream( |
| 283 | ::google::protobuf::io::CodedInputStream* input) final; |
| 284 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 285 | void SerializeWithCachedSizes( |
| 286 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 287 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 288 | ::google::protobuf::uint8* target) const final; |
| 289 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 290 | |
| 291 | private: |
| 292 | void SharedCtor(); |
| 293 | void SharedDtor(); |
| 294 | void SetCachedSize(int size) const final; |
| 295 | void InternalSwap(MetricConfig* other); |
| 296 | private: |
| 297 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 298 | return nullptr; |
| 299 | } |
| 300 | inline void* MaybeArenaPtr() const { |
| 301 | return nullptr; |
| 302 | } |
| 303 | public: |
| 304 | |
| 305 | ::google::protobuf::Metadata GetMetadata() const final; |
| 306 | |
| 307 | // nested types ---------------------------------------------------- |
| 308 | |
| 309 | // accessors ------------------------------------------------------- |
| 310 | |
| 311 | // .dmi.MetricNames metric_id = 1; |
| 312 | void clear_metric_id(); |
| 313 | static const int kMetricIdFieldNumber = 1; |
| 314 | ::dmi::MetricNames metric_id() const; |
| 315 | void set_metric_id(::dmi::MetricNames value); |
| 316 | |
| 317 | // bool is_configured = 2; |
| 318 | void clear_is_configured(); |
| 319 | static const int kIsConfiguredFieldNumber = 2; |
| 320 | bool is_configured() const; |
| 321 | void set_is_configured(bool value); |
| 322 | |
| 323 | // uint32 poll_interval = 3; |
| 324 | void clear_poll_interval(); |
| 325 | static const int kPollIntervalFieldNumber = 3; |
| 326 | ::google::protobuf::uint32 poll_interval() const; |
| 327 | void set_poll_interval(::google::protobuf::uint32 value); |
| 328 | |
| 329 | // @@protoc_insertion_point(class_scope:dmi.MetricConfig) |
| 330 | private: |
| 331 | class HasBitSetters; |
| 332 | |
| 333 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 334 | int metric_id_; |
| 335 | bool is_configured_; |
| 336 | ::google::protobuf::uint32 poll_interval_; |
| 337 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 338 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 339 | }; |
| 340 | // ------------------------------------------------------------------- |
| 341 | |
| 342 | class MetricsConfig final : |
| 343 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.MetricsConfig) */ { |
| 344 | public: |
| 345 | MetricsConfig(); |
| 346 | virtual ~MetricsConfig(); |
| 347 | |
| 348 | MetricsConfig(const MetricsConfig& from); |
| 349 | |
| 350 | inline MetricsConfig& operator=(const MetricsConfig& from) { |
| 351 | CopyFrom(from); |
| 352 | return *this; |
| 353 | } |
| 354 | #if LANG_CXX11 |
| 355 | MetricsConfig(MetricsConfig&& from) noexcept |
| 356 | : MetricsConfig() { |
| 357 | *this = ::std::move(from); |
| 358 | } |
| 359 | |
| 360 | inline MetricsConfig& operator=(MetricsConfig&& from) noexcept { |
| 361 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 362 | if (this != &from) InternalSwap(&from); |
| 363 | } else { |
| 364 | CopyFrom(from); |
| 365 | } |
| 366 | return *this; |
| 367 | } |
| 368 | #endif |
| 369 | static const ::google::protobuf::Descriptor* descriptor() { |
| 370 | return default_instance().GetDescriptor(); |
| 371 | } |
| 372 | static const MetricsConfig& default_instance(); |
| 373 | |
| 374 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 375 | static inline const MetricsConfig* internal_default_instance() { |
| 376 | return reinterpret_cast<const MetricsConfig*>( |
| 377 | &_MetricsConfig_default_instance_); |
| 378 | } |
| 379 | static constexpr int kIndexInFileMessages = |
| 380 | 1; |
| 381 | |
| 382 | void Swap(MetricsConfig* other); |
| 383 | friend void swap(MetricsConfig& a, MetricsConfig& b) { |
| 384 | a.Swap(&b); |
| 385 | } |
| 386 | |
| 387 | // implements Message ---------------------------------------------- |
| 388 | |
| 389 | inline MetricsConfig* New() const final { |
| 390 | return CreateMaybeMessage<MetricsConfig>(nullptr); |
| 391 | } |
| 392 | |
| 393 | MetricsConfig* New(::google::protobuf::Arena* arena) const final { |
| 394 | return CreateMaybeMessage<MetricsConfig>(arena); |
| 395 | } |
| 396 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 397 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 398 | void CopyFrom(const MetricsConfig& from); |
| 399 | void MergeFrom(const MetricsConfig& from); |
| 400 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 401 | bool IsInitialized() const final; |
| 402 | |
| 403 | size_t ByteSizeLong() const final; |
| 404 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 405 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 406 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 407 | #else |
| 408 | bool MergePartialFromCodedStream( |
| 409 | ::google::protobuf::io::CodedInputStream* input) final; |
| 410 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 411 | void SerializeWithCachedSizes( |
| 412 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 413 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 414 | ::google::protobuf::uint8* target) const final; |
| 415 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 416 | |
| 417 | private: |
| 418 | void SharedCtor(); |
| 419 | void SharedDtor(); |
| 420 | void SetCachedSize(int size) const final; |
| 421 | void InternalSwap(MetricsConfig* other); |
| 422 | private: |
| 423 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 424 | return nullptr; |
| 425 | } |
| 426 | inline void* MaybeArenaPtr() const { |
| 427 | return nullptr; |
| 428 | } |
| 429 | public: |
| 430 | |
| 431 | ::google::protobuf::Metadata GetMetadata() const final; |
| 432 | |
| 433 | // nested types ---------------------------------------------------- |
| 434 | |
| 435 | // accessors ------------------------------------------------------- |
| 436 | |
| 437 | // repeated .dmi.MetricConfig metrics = 1; |
| 438 | int metrics_size() const; |
| 439 | void clear_metrics(); |
| 440 | static const int kMetricsFieldNumber = 1; |
| 441 | ::dmi::MetricConfig* mutable_metrics(int index); |
| 442 | ::google::protobuf::RepeatedPtrField< ::dmi::MetricConfig >* |
| 443 | mutable_metrics(); |
| 444 | const ::dmi::MetricConfig& metrics(int index) const; |
| 445 | ::dmi::MetricConfig* add_metrics(); |
| 446 | const ::google::protobuf::RepeatedPtrField< ::dmi::MetricConfig >& |
| 447 | metrics() const; |
| 448 | |
| 449 | // @@protoc_insertion_point(class_scope:dmi.MetricsConfig) |
| 450 | private: |
| 451 | class HasBitSetters; |
| 452 | |
| 453 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 454 | ::google::protobuf::RepeatedPtrField< ::dmi::MetricConfig > metrics_; |
| 455 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 456 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 457 | }; |
| 458 | // ------------------------------------------------------------------- |
| 459 | |
| 460 | class ListMetricsResponse final : |
| 461 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ListMetricsResponse) */ { |
| 462 | public: |
| 463 | ListMetricsResponse(); |
| 464 | virtual ~ListMetricsResponse(); |
| 465 | |
| 466 | ListMetricsResponse(const ListMetricsResponse& from); |
| 467 | |
| 468 | inline ListMetricsResponse& operator=(const ListMetricsResponse& from) { |
| 469 | CopyFrom(from); |
| 470 | return *this; |
| 471 | } |
| 472 | #if LANG_CXX11 |
| 473 | ListMetricsResponse(ListMetricsResponse&& from) noexcept |
| 474 | : ListMetricsResponse() { |
| 475 | *this = ::std::move(from); |
| 476 | } |
| 477 | |
| 478 | inline ListMetricsResponse& operator=(ListMetricsResponse&& from) noexcept { |
| 479 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 480 | if (this != &from) InternalSwap(&from); |
| 481 | } else { |
| 482 | CopyFrom(from); |
| 483 | } |
| 484 | return *this; |
| 485 | } |
| 486 | #endif |
| 487 | static const ::google::protobuf::Descriptor* descriptor() { |
| 488 | return default_instance().GetDescriptor(); |
| 489 | } |
| 490 | static const ListMetricsResponse& default_instance(); |
| 491 | |
| 492 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 493 | static inline const ListMetricsResponse* internal_default_instance() { |
| 494 | return reinterpret_cast<const ListMetricsResponse*>( |
| 495 | &_ListMetricsResponse_default_instance_); |
| 496 | } |
| 497 | static constexpr int kIndexInFileMessages = |
| 498 | 2; |
| 499 | |
| 500 | void Swap(ListMetricsResponse* other); |
| 501 | friend void swap(ListMetricsResponse& a, ListMetricsResponse& b) { |
| 502 | a.Swap(&b); |
| 503 | } |
| 504 | |
| 505 | // implements Message ---------------------------------------------- |
| 506 | |
| 507 | inline ListMetricsResponse* New() const final { |
| 508 | return CreateMaybeMessage<ListMetricsResponse>(nullptr); |
| 509 | } |
| 510 | |
| 511 | ListMetricsResponse* New(::google::protobuf::Arena* arena) const final { |
| 512 | return CreateMaybeMessage<ListMetricsResponse>(arena); |
| 513 | } |
| 514 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 515 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 516 | void CopyFrom(const ListMetricsResponse& from); |
| 517 | void MergeFrom(const ListMetricsResponse& from); |
| 518 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 519 | bool IsInitialized() const final; |
| 520 | |
| 521 | size_t ByteSizeLong() const final; |
| 522 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 523 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 524 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 525 | #else |
| 526 | bool MergePartialFromCodedStream( |
| 527 | ::google::protobuf::io::CodedInputStream* input) final; |
| 528 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 529 | void SerializeWithCachedSizes( |
| 530 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 531 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 532 | ::google::protobuf::uint8* target) const final; |
| 533 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 534 | |
| 535 | private: |
| 536 | void SharedCtor(); |
| 537 | void SharedDtor(); |
| 538 | void SetCachedSize(int size) const final; |
| 539 | void InternalSwap(ListMetricsResponse* other); |
| 540 | private: |
| 541 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 542 | return nullptr; |
| 543 | } |
| 544 | inline void* MaybeArenaPtr() const { |
| 545 | return nullptr; |
| 546 | } |
| 547 | public: |
| 548 | |
| 549 | ::google::protobuf::Metadata GetMetadata() const final; |
| 550 | |
| 551 | // nested types ---------------------------------------------------- |
| 552 | |
| 553 | typedef ListMetricsResponse_Reason Reason; |
| 554 | static const Reason UNDEFINED_REASON = |
| 555 | ListMetricsResponse_Reason_UNDEFINED_REASON; |
| 556 | static const Reason UNKNOWN_DEVICE = |
| 557 | ListMetricsResponse_Reason_UNKNOWN_DEVICE; |
| 558 | static const Reason INTERNAL_ERROR = |
| 559 | ListMetricsResponse_Reason_INTERNAL_ERROR; |
| 560 | static const Reason DEVICE_UNREACHABLE = |
| 561 | ListMetricsResponse_Reason_DEVICE_UNREACHABLE; |
| 562 | static inline bool Reason_IsValid(int value) { |
| 563 | return ListMetricsResponse_Reason_IsValid(value); |
| 564 | } |
| 565 | static const Reason Reason_MIN = |
| 566 | ListMetricsResponse_Reason_Reason_MIN; |
| 567 | static const Reason Reason_MAX = |
| 568 | ListMetricsResponse_Reason_Reason_MAX; |
| 569 | static const int Reason_ARRAYSIZE = |
| 570 | ListMetricsResponse_Reason_Reason_ARRAYSIZE; |
| 571 | static inline const ::google::protobuf::EnumDescriptor* |
| 572 | Reason_descriptor() { |
| 573 | return ListMetricsResponse_Reason_descriptor(); |
| 574 | } |
| 575 | static inline const ::std::string& Reason_Name(Reason value) { |
| 576 | return ListMetricsResponse_Reason_Name(value); |
| 577 | } |
| 578 | static inline bool Reason_Parse(const ::std::string& name, |
| 579 | Reason* value) { |
| 580 | return ListMetricsResponse_Reason_Parse(name, value); |
| 581 | } |
| 582 | |
| 583 | // accessors ------------------------------------------------------- |
| 584 | |
| 585 | // string reason_detail = 4; |
| 586 | void clear_reason_detail(); |
| 587 | static const int kReasonDetailFieldNumber = 4; |
| 588 | const ::std::string& reason_detail() const; |
| 589 | void set_reason_detail(const ::std::string& value); |
| 590 | #if LANG_CXX11 |
| 591 | void set_reason_detail(::std::string&& value); |
| 592 | #endif |
| 593 | void set_reason_detail(const char* value); |
| 594 | void set_reason_detail(const char* value, size_t size); |
| 595 | ::std::string* mutable_reason_detail(); |
| 596 | ::std::string* release_reason_detail(); |
| 597 | void set_allocated_reason_detail(::std::string* reason_detail); |
| 598 | |
| 599 | // .dmi.MetricsConfig metrics = 3; |
| 600 | bool has_metrics() const; |
| 601 | void clear_metrics(); |
| 602 | static const int kMetricsFieldNumber = 3; |
| 603 | const ::dmi::MetricsConfig& metrics() const; |
| 604 | ::dmi::MetricsConfig* release_metrics(); |
| 605 | ::dmi::MetricsConfig* mutable_metrics(); |
| 606 | void set_allocated_metrics(::dmi::MetricsConfig* metrics); |
| 607 | |
| 608 | // .dmi.Status status = 1; |
| 609 | void clear_status(); |
| 610 | static const int kStatusFieldNumber = 1; |
| 611 | ::dmi::Status status() const; |
| 612 | void set_status(::dmi::Status value); |
| 613 | |
| 614 | // .dmi.ListMetricsResponse.Reason reason = 2; |
| 615 | void clear_reason(); |
| 616 | static const int kReasonFieldNumber = 2; |
| 617 | ::dmi::ListMetricsResponse_Reason reason() const; |
| 618 | void set_reason(::dmi::ListMetricsResponse_Reason value); |
| 619 | |
| 620 | // @@protoc_insertion_point(class_scope:dmi.ListMetricsResponse) |
| 621 | private: |
| 622 | class HasBitSetters; |
| 623 | |
| 624 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 625 | ::google::protobuf::internal::ArenaStringPtr reason_detail_; |
| 626 | ::dmi::MetricsConfig* metrics_; |
| 627 | int status_; |
| 628 | int reason_; |
| 629 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 630 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 631 | }; |
| 632 | // ------------------------------------------------------------------- |
| 633 | |
| 634 | class MetricsConfigurationRequest final : |
| 635 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.MetricsConfigurationRequest) */ { |
| 636 | public: |
| 637 | MetricsConfigurationRequest(); |
| 638 | virtual ~MetricsConfigurationRequest(); |
| 639 | |
| 640 | MetricsConfigurationRequest(const MetricsConfigurationRequest& from); |
| 641 | |
| 642 | inline MetricsConfigurationRequest& operator=(const MetricsConfigurationRequest& from) { |
| 643 | CopyFrom(from); |
| 644 | return *this; |
| 645 | } |
| 646 | #if LANG_CXX11 |
| 647 | MetricsConfigurationRequest(MetricsConfigurationRequest&& from) noexcept |
| 648 | : MetricsConfigurationRequest() { |
| 649 | *this = ::std::move(from); |
| 650 | } |
| 651 | |
| 652 | inline MetricsConfigurationRequest& operator=(MetricsConfigurationRequest&& from) noexcept { |
| 653 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 654 | if (this != &from) InternalSwap(&from); |
| 655 | } else { |
| 656 | CopyFrom(from); |
| 657 | } |
| 658 | return *this; |
| 659 | } |
| 660 | #endif |
| 661 | static const ::google::protobuf::Descriptor* descriptor() { |
| 662 | return default_instance().GetDescriptor(); |
| 663 | } |
| 664 | static const MetricsConfigurationRequest& default_instance(); |
| 665 | |
| 666 | enum OperationCase { |
| 667 | kChanges = 2, |
| 668 | kResetToDefault = 3, |
| 669 | OPERATION_NOT_SET = 0, |
| 670 | }; |
| 671 | |
| 672 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 673 | static inline const MetricsConfigurationRequest* internal_default_instance() { |
| 674 | return reinterpret_cast<const MetricsConfigurationRequest*>( |
| 675 | &_MetricsConfigurationRequest_default_instance_); |
| 676 | } |
| 677 | static constexpr int kIndexInFileMessages = |
| 678 | 3; |
| 679 | |
| 680 | void Swap(MetricsConfigurationRequest* other); |
| 681 | friend void swap(MetricsConfigurationRequest& a, MetricsConfigurationRequest& b) { |
| 682 | a.Swap(&b); |
| 683 | } |
| 684 | |
| 685 | // implements Message ---------------------------------------------- |
| 686 | |
| 687 | inline MetricsConfigurationRequest* New() const final { |
| 688 | return CreateMaybeMessage<MetricsConfigurationRequest>(nullptr); |
| 689 | } |
| 690 | |
| 691 | MetricsConfigurationRequest* New(::google::protobuf::Arena* arena) const final { |
| 692 | return CreateMaybeMessage<MetricsConfigurationRequest>(arena); |
| 693 | } |
| 694 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 695 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 696 | void CopyFrom(const MetricsConfigurationRequest& from); |
| 697 | void MergeFrom(const MetricsConfigurationRequest& from); |
| 698 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 699 | bool IsInitialized() const final; |
| 700 | |
| 701 | size_t ByteSizeLong() const final; |
| 702 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 703 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 704 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 705 | #else |
| 706 | bool MergePartialFromCodedStream( |
| 707 | ::google::protobuf::io::CodedInputStream* input) final; |
| 708 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 709 | void SerializeWithCachedSizes( |
| 710 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 711 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 712 | ::google::protobuf::uint8* target) const final; |
| 713 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 714 | |
| 715 | private: |
| 716 | void SharedCtor(); |
| 717 | void SharedDtor(); |
| 718 | void SetCachedSize(int size) const final; |
| 719 | void InternalSwap(MetricsConfigurationRequest* other); |
| 720 | private: |
| 721 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 722 | return nullptr; |
| 723 | } |
| 724 | inline void* MaybeArenaPtr() const { |
| 725 | return nullptr; |
| 726 | } |
| 727 | public: |
| 728 | |
| 729 | ::google::protobuf::Metadata GetMetadata() const final; |
| 730 | |
| 731 | // nested types ---------------------------------------------------- |
| 732 | |
| 733 | // accessors ------------------------------------------------------- |
| 734 | |
| 735 | // .dmi.Uuid device_uuid = 1; |
| 736 | bool has_device_uuid() const; |
| 737 | void clear_device_uuid(); |
| 738 | static const int kDeviceUuidFieldNumber = 1; |
| 739 | const ::dmi::Uuid& device_uuid() const; |
| 740 | ::dmi::Uuid* release_device_uuid(); |
| 741 | ::dmi::Uuid* mutable_device_uuid(); |
| 742 | void set_allocated_device_uuid(::dmi::Uuid* device_uuid); |
| 743 | |
| 744 | // .dmi.MetricsConfig changes = 2; |
| 745 | bool has_changes() const; |
| 746 | void clear_changes(); |
| 747 | static const int kChangesFieldNumber = 2; |
| 748 | const ::dmi::MetricsConfig& changes() const; |
| 749 | ::dmi::MetricsConfig* release_changes(); |
| 750 | ::dmi::MetricsConfig* mutable_changes(); |
| 751 | void set_allocated_changes(::dmi::MetricsConfig* changes); |
| 752 | |
| 753 | // bool reset_to_default = 3; |
| 754 | private: |
| 755 | bool has_reset_to_default() const; |
| 756 | public: |
| 757 | void clear_reset_to_default(); |
| 758 | static const int kResetToDefaultFieldNumber = 3; |
| 759 | bool reset_to_default() const; |
| 760 | void set_reset_to_default(bool value); |
| 761 | |
| 762 | void clear_operation(); |
| 763 | OperationCase operation_case() const; |
| 764 | // @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationRequest) |
| 765 | private: |
| 766 | class HasBitSetters; |
| 767 | void set_has_changes(); |
| 768 | void set_has_reset_to_default(); |
| 769 | |
| 770 | inline bool has_operation() const; |
| 771 | inline void clear_has_operation(); |
| 772 | |
| 773 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 774 | ::dmi::Uuid* device_uuid_; |
| 775 | union OperationUnion { |
| 776 | OperationUnion() {} |
| 777 | ::dmi::MetricsConfig* changes_; |
| 778 | bool reset_to_default_; |
| 779 | } operation_; |
| 780 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 781 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 782 | |
| 783 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 784 | }; |
| 785 | // ------------------------------------------------------------------- |
| 786 | |
| 787 | class MetricsConfigurationResponse final : |
| 788 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.MetricsConfigurationResponse) */ { |
| 789 | public: |
| 790 | MetricsConfigurationResponse(); |
| 791 | virtual ~MetricsConfigurationResponse(); |
| 792 | |
| 793 | MetricsConfigurationResponse(const MetricsConfigurationResponse& from); |
| 794 | |
| 795 | inline MetricsConfigurationResponse& operator=(const MetricsConfigurationResponse& from) { |
| 796 | CopyFrom(from); |
| 797 | return *this; |
| 798 | } |
| 799 | #if LANG_CXX11 |
| 800 | MetricsConfigurationResponse(MetricsConfigurationResponse&& from) noexcept |
| 801 | : MetricsConfigurationResponse() { |
| 802 | *this = ::std::move(from); |
| 803 | } |
| 804 | |
| 805 | inline MetricsConfigurationResponse& operator=(MetricsConfigurationResponse&& from) noexcept { |
| 806 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 807 | if (this != &from) InternalSwap(&from); |
| 808 | } else { |
| 809 | CopyFrom(from); |
| 810 | } |
| 811 | return *this; |
| 812 | } |
| 813 | #endif |
| 814 | static const ::google::protobuf::Descriptor* descriptor() { |
| 815 | return default_instance().GetDescriptor(); |
| 816 | } |
| 817 | static const MetricsConfigurationResponse& default_instance(); |
| 818 | |
| 819 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 820 | static inline const MetricsConfigurationResponse* internal_default_instance() { |
| 821 | return reinterpret_cast<const MetricsConfigurationResponse*>( |
| 822 | &_MetricsConfigurationResponse_default_instance_); |
| 823 | } |
| 824 | static constexpr int kIndexInFileMessages = |
| 825 | 4; |
| 826 | |
| 827 | void Swap(MetricsConfigurationResponse* other); |
| 828 | friend void swap(MetricsConfigurationResponse& a, MetricsConfigurationResponse& b) { |
| 829 | a.Swap(&b); |
| 830 | } |
| 831 | |
| 832 | // implements Message ---------------------------------------------- |
| 833 | |
| 834 | inline MetricsConfigurationResponse* New() const final { |
| 835 | return CreateMaybeMessage<MetricsConfigurationResponse>(nullptr); |
| 836 | } |
| 837 | |
| 838 | MetricsConfigurationResponse* New(::google::protobuf::Arena* arena) const final { |
| 839 | return CreateMaybeMessage<MetricsConfigurationResponse>(arena); |
| 840 | } |
| 841 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 842 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 843 | void CopyFrom(const MetricsConfigurationResponse& from); |
| 844 | void MergeFrom(const MetricsConfigurationResponse& from); |
| 845 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 846 | bool IsInitialized() const final; |
| 847 | |
| 848 | size_t ByteSizeLong() const final; |
| 849 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 850 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 851 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 852 | #else |
| 853 | bool MergePartialFromCodedStream( |
| 854 | ::google::protobuf::io::CodedInputStream* input) final; |
| 855 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 856 | void SerializeWithCachedSizes( |
| 857 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 858 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 859 | ::google::protobuf::uint8* target) const final; |
| 860 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 861 | |
| 862 | private: |
| 863 | void SharedCtor(); |
| 864 | void SharedDtor(); |
| 865 | void SetCachedSize(int size) const final; |
| 866 | void InternalSwap(MetricsConfigurationResponse* other); |
| 867 | private: |
| 868 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 869 | return nullptr; |
| 870 | } |
| 871 | inline void* MaybeArenaPtr() const { |
| 872 | return nullptr; |
| 873 | } |
| 874 | public: |
| 875 | |
| 876 | ::google::protobuf::Metadata GetMetadata() const final; |
| 877 | |
| 878 | // nested types ---------------------------------------------------- |
| 879 | |
| 880 | typedef MetricsConfigurationResponse_Reason Reason; |
| 881 | static const Reason UNDEFINED_REASON = |
| 882 | MetricsConfigurationResponse_Reason_UNDEFINED_REASON; |
| 883 | static const Reason UNKNOWN_DEVICE = |
| 884 | MetricsConfigurationResponse_Reason_UNKNOWN_DEVICE; |
| 885 | static const Reason INTERNAL_ERROR = |
| 886 | MetricsConfigurationResponse_Reason_INTERNAL_ERROR; |
| 887 | static const Reason POLL_INTERVAL_UNSUPPORTED = |
| 888 | MetricsConfigurationResponse_Reason_POLL_INTERVAL_UNSUPPORTED; |
| 889 | static const Reason INVALID_METRIC = |
| 890 | MetricsConfigurationResponse_Reason_INVALID_METRIC; |
| 891 | static const Reason DEVICE_UNREACHABLE = |
| 892 | MetricsConfigurationResponse_Reason_DEVICE_UNREACHABLE; |
| 893 | static inline bool Reason_IsValid(int value) { |
| 894 | return MetricsConfigurationResponse_Reason_IsValid(value); |
| 895 | } |
| 896 | static const Reason Reason_MIN = |
| 897 | MetricsConfigurationResponse_Reason_Reason_MIN; |
| 898 | static const Reason Reason_MAX = |
| 899 | MetricsConfigurationResponse_Reason_Reason_MAX; |
| 900 | static const int Reason_ARRAYSIZE = |
| 901 | MetricsConfigurationResponse_Reason_Reason_ARRAYSIZE; |
| 902 | static inline const ::google::protobuf::EnumDescriptor* |
| 903 | Reason_descriptor() { |
| 904 | return MetricsConfigurationResponse_Reason_descriptor(); |
| 905 | } |
| 906 | static inline const ::std::string& Reason_Name(Reason value) { |
| 907 | return MetricsConfigurationResponse_Reason_Name(value); |
| 908 | } |
| 909 | static inline bool Reason_Parse(const ::std::string& name, |
| 910 | Reason* value) { |
| 911 | return MetricsConfigurationResponse_Reason_Parse(name, value); |
| 912 | } |
| 913 | |
| 914 | // accessors ------------------------------------------------------- |
| 915 | |
| 916 | // string reason_detail = 3; |
| 917 | void clear_reason_detail(); |
| 918 | static const int kReasonDetailFieldNumber = 3; |
| 919 | const ::std::string& reason_detail() const; |
| 920 | void set_reason_detail(const ::std::string& value); |
| 921 | #if LANG_CXX11 |
| 922 | void set_reason_detail(::std::string&& value); |
| 923 | #endif |
| 924 | void set_reason_detail(const char* value); |
| 925 | void set_reason_detail(const char* value, size_t size); |
| 926 | ::std::string* mutable_reason_detail(); |
| 927 | ::std::string* release_reason_detail(); |
| 928 | void set_allocated_reason_detail(::std::string* reason_detail); |
| 929 | |
| 930 | // .dmi.Status status = 1; |
| 931 | void clear_status(); |
| 932 | static const int kStatusFieldNumber = 1; |
| 933 | ::dmi::Status status() const; |
| 934 | void set_status(::dmi::Status value); |
| 935 | |
| 936 | // .dmi.MetricsConfigurationResponse.Reason reason = 2; |
| 937 | void clear_reason(); |
| 938 | static const int kReasonFieldNumber = 2; |
| 939 | ::dmi::MetricsConfigurationResponse_Reason reason() const; |
| 940 | void set_reason(::dmi::MetricsConfigurationResponse_Reason value); |
| 941 | |
| 942 | // @@protoc_insertion_point(class_scope:dmi.MetricsConfigurationResponse) |
| 943 | private: |
| 944 | class HasBitSetters; |
| 945 | |
| 946 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 947 | ::google::protobuf::internal::ArenaStringPtr reason_detail_; |
| 948 | int status_; |
| 949 | int reason_; |
| 950 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 951 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 952 | }; |
| 953 | // ------------------------------------------------------------------- |
| 954 | |
| 955 | class MetricMetaData final : |
| 956 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.MetricMetaData) */ { |
| 957 | public: |
| 958 | MetricMetaData(); |
| 959 | virtual ~MetricMetaData(); |
| 960 | |
| 961 | MetricMetaData(const MetricMetaData& from); |
| 962 | |
| 963 | inline MetricMetaData& operator=(const MetricMetaData& from) { |
| 964 | CopyFrom(from); |
| 965 | return *this; |
| 966 | } |
| 967 | #if LANG_CXX11 |
| 968 | MetricMetaData(MetricMetaData&& from) noexcept |
| 969 | : MetricMetaData() { |
| 970 | *this = ::std::move(from); |
| 971 | } |
| 972 | |
| 973 | inline MetricMetaData& operator=(MetricMetaData&& from) noexcept { |
| 974 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 975 | if (this != &from) InternalSwap(&from); |
| 976 | } else { |
| 977 | CopyFrom(from); |
| 978 | } |
| 979 | return *this; |
| 980 | } |
| 981 | #endif |
| 982 | static const ::google::protobuf::Descriptor* descriptor() { |
| 983 | return default_instance().GetDescriptor(); |
| 984 | } |
| 985 | static const MetricMetaData& default_instance(); |
| 986 | |
| 987 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 988 | static inline const MetricMetaData* internal_default_instance() { |
| 989 | return reinterpret_cast<const MetricMetaData*>( |
| 990 | &_MetricMetaData_default_instance_); |
| 991 | } |
| 992 | static constexpr int kIndexInFileMessages = |
| 993 | 5; |
| 994 | |
| 995 | void Swap(MetricMetaData* other); |
| 996 | friend void swap(MetricMetaData& a, MetricMetaData& b) { |
| 997 | a.Swap(&b); |
| 998 | } |
| 999 | |
| 1000 | // implements Message ---------------------------------------------- |
| 1001 | |
| 1002 | inline MetricMetaData* New() const final { |
| 1003 | return CreateMaybeMessage<MetricMetaData>(nullptr); |
| 1004 | } |
| 1005 | |
| 1006 | MetricMetaData* New(::google::protobuf::Arena* arena) const final { |
| 1007 | return CreateMaybeMessage<MetricMetaData>(arena); |
| 1008 | } |
| 1009 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1010 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1011 | void CopyFrom(const MetricMetaData& from); |
| 1012 | void MergeFrom(const MetricMetaData& from); |
| 1013 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1014 | bool IsInitialized() const final; |
| 1015 | |
| 1016 | size_t ByteSizeLong() const final; |
| 1017 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1018 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1019 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1020 | #else |
| 1021 | bool MergePartialFromCodedStream( |
| 1022 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1023 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1024 | void SerializeWithCachedSizes( |
| 1025 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1026 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1027 | ::google::protobuf::uint8* target) const final; |
| 1028 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1029 | |
| 1030 | private: |
| 1031 | void SharedCtor(); |
| 1032 | void SharedDtor(); |
| 1033 | void SetCachedSize(int size) const final; |
| 1034 | void InternalSwap(MetricMetaData* other); |
| 1035 | private: |
| 1036 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1037 | return nullptr; |
| 1038 | } |
| 1039 | inline void* MaybeArenaPtr() const { |
| 1040 | return nullptr; |
| 1041 | } |
| 1042 | public: |
| 1043 | |
| 1044 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1045 | |
| 1046 | // nested types ---------------------------------------------------- |
| 1047 | |
| 1048 | // accessors ------------------------------------------------------- |
| 1049 | |
| 1050 | // string component_name = 3; |
| 1051 | void clear_component_name(); |
| 1052 | static const int kComponentNameFieldNumber = 3; |
| 1053 | const ::std::string& component_name() const; |
| 1054 | void set_component_name(const ::std::string& value); |
| 1055 | #if LANG_CXX11 |
| 1056 | void set_component_name(::std::string&& value); |
| 1057 | #endif |
| 1058 | void set_component_name(const char* value); |
| 1059 | void set_component_name(const char* value, size_t size); |
| 1060 | ::std::string* mutable_component_name(); |
| 1061 | ::std::string* release_component_name(); |
| 1062 | void set_allocated_component_name(::std::string* component_name); |
| 1063 | |
| 1064 | // .dmi.Uuid device_uuid = 1; |
| 1065 | bool has_device_uuid() const; |
| 1066 | void clear_device_uuid(); |
| 1067 | static const int kDeviceUuidFieldNumber = 1; |
| 1068 | const ::dmi::Uuid& device_uuid() const; |
| 1069 | ::dmi::Uuid* release_device_uuid(); |
| 1070 | ::dmi::Uuid* mutable_device_uuid(); |
| 1071 | void set_allocated_device_uuid(::dmi::Uuid* device_uuid); |
| 1072 | |
| 1073 | // .dmi.Uuid component_uuid = 2; |
| 1074 | bool has_component_uuid() const; |
| 1075 | void clear_component_uuid(); |
| 1076 | static const int kComponentUuidFieldNumber = 2; |
| 1077 | const ::dmi::Uuid& component_uuid() const; |
| 1078 | ::dmi::Uuid* release_component_uuid(); |
| 1079 | ::dmi::Uuid* mutable_component_uuid(); |
| 1080 | void set_allocated_component_uuid(::dmi::Uuid* component_uuid); |
| 1081 | |
| 1082 | // @@protoc_insertion_point(class_scope:dmi.MetricMetaData) |
| 1083 | private: |
| 1084 | class HasBitSetters; |
| 1085 | |
| 1086 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1087 | ::google::protobuf::internal::ArenaStringPtr component_name_; |
| 1088 | ::dmi::Uuid* device_uuid_; |
| 1089 | ::dmi::Uuid* component_uuid_; |
| 1090 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1091 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 1092 | }; |
| 1093 | // ------------------------------------------------------------------- |
| 1094 | |
| 1095 | class Metric final : |
| 1096 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Metric) */ { |
| 1097 | public: |
| 1098 | Metric(); |
| 1099 | virtual ~Metric(); |
| 1100 | |
| 1101 | Metric(const Metric& from); |
| 1102 | |
| 1103 | inline Metric& operator=(const Metric& from) { |
| 1104 | CopyFrom(from); |
| 1105 | return *this; |
| 1106 | } |
| 1107 | #if LANG_CXX11 |
| 1108 | Metric(Metric&& from) noexcept |
| 1109 | : Metric() { |
| 1110 | *this = ::std::move(from); |
| 1111 | } |
| 1112 | |
| 1113 | inline Metric& operator=(Metric&& from) noexcept { |
| 1114 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1115 | if (this != &from) InternalSwap(&from); |
| 1116 | } else { |
| 1117 | CopyFrom(from); |
| 1118 | } |
| 1119 | return *this; |
| 1120 | } |
| 1121 | #endif |
| 1122 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1123 | return default_instance().GetDescriptor(); |
| 1124 | } |
| 1125 | static const Metric& default_instance(); |
| 1126 | |
| 1127 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1128 | static inline const Metric* internal_default_instance() { |
| 1129 | return reinterpret_cast<const Metric*>( |
| 1130 | &_Metric_default_instance_); |
| 1131 | } |
| 1132 | static constexpr int kIndexInFileMessages = |
| 1133 | 6; |
| 1134 | |
| 1135 | void Swap(Metric* other); |
| 1136 | friend void swap(Metric& a, Metric& b) { |
| 1137 | a.Swap(&b); |
| 1138 | } |
| 1139 | |
| 1140 | // implements Message ---------------------------------------------- |
| 1141 | |
| 1142 | inline Metric* New() const final { |
| 1143 | return CreateMaybeMessage<Metric>(nullptr); |
| 1144 | } |
| 1145 | |
| 1146 | Metric* New(::google::protobuf::Arena* arena) const final { |
| 1147 | return CreateMaybeMessage<Metric>(arena); |
| 1148 | } |
| 1149 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1150 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1151 | void CopyFrom(const Metric& from); |
| 1152 | void MergeFrom(const Metric& from); |
| 1153 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1154 | bool IsInitialized() const final; |
| 1155 | |
| 1156 | size_t ByteSizeLong() const final; |
| 1157 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1158 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1159 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1160 | #else |
| 1161 | bool MergePartialFromCodedStream( |
| 1162 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1163 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1164 | void SerializeWithCachedSizes( |
| 1165 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1166 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1167 | ::google::protobuf::uint8* target) const final; |
| 1168 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1169 | |
| 1170 | private: |
| 1171 | void SharedCtor(); |
| 1172 | void SharedDtor(); |
| 1173 | void SetCachedSize(int size) const final; |
| 1174 | void InternalSwap(Metric* other); |
| 1175 | private: |
| 1176 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1177 | return nullptr; |
| 1178 | } |
| 1179 | inline void* MaybeArenaPtr() const { |
| 1180 | return nullptr; |
| 1181 | } |
| 1182 | public: |
| 1183 | |
| 1184 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1185 | |
| 1186 | // nested types ---------------------------------------------------- |
| 1187 | |
| 1188 | // accessors ------------------------------------------------------- |
| 1189 | |
| 1190 | // .dmi.MetricMetaData metric_metadata = 2; |
| 1191 | bool has_metric_metadata() const; |
| 1192 | void clear_metric_metadata(); |
| 1193 | static const int kMetricMetadataFieldNumber = 2; |
| 1194 | const ::dmi::MetricMetaData& metric_metadata() const; |
| 1195 | ::dmi::MetricMetaData* release_metric_metadata(); |
| 1196 | ::dmi::MetricMetaData* mutable_metric_metadata(); |
| 1197 | void set_allocated_metric_metadata(::dmi::MetricMetaData* metric_metadata); |
| 1198 | |
| 1199 | // .dmi.ComponentSensorData value = 3; |
| 1200 | bool has_value() const; |
| 1201 | void clear_value(); |
| 1202 | static const int kValueFieldNumber = 3; |
| 1203 | const ::dmi::ComponentSensorData& value() const; |
| 1204 | ::dmi::ComponentSensorData* release_value(); |
| 1205 | ::dmi::ComponentSensorData* mutable_value(); |
| 1206 | void set_allocated_value(::dmi::ComponentSensorData* value); |
| 1207 | |
| 1208 | // .dmi.MetricNames metric_id = 1; |
| 1209 | void clear_metric_id(); |
| 1210 | static const int kMetricIdFieldNumber = 1; |
| 1211 | ::dmi::MetricNames metric_id() const; |
| 1212 | void set_metric_id(::dmi::MetricNames value); |
| 1213 | |
| 1214 | // @@protoc_insertion_point(class_scope:dmi.Metric) |
| 1215 | private: |
| 1216 | class HasBitSetters; |
| 1217 | |
| 1218 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1219 | ::dmi::MetricMetaData* metric_metadata_; |
| 1220 | ::dmi::ComponentSensorData* value_; |
| 1221 | int metric_id_; |
| 1222 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1223 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 1224 | }; |
| 1225 | // ------------------------------------------------------------------- |
| 1226 | |
| 1227 | class GetMetricRequest final : |
| 1228 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.GetMetricRequest) */ { |
| 1229 | public: |
| 1230 | GetMetricRequest(); |
| 1231 | virtual ~GetMetricRequest(); |
| 1232 | |
| 1233 | GetMetricRequest(const GetMetricRequest& from); |
| 1234 | |
| 1235 | inline GetMetricRequest& operator=(const GetMetricRequest& from) { |
| 1236 | CopyFrom(from); |
| 1237 | return *this; |
| 1238 | } |
| 1239 | #if LANG_CXX11 |
| 1240 | GetMetricRequest(GetMetricRequest&& from) noexcept |
| 1241 | : GetMetricRequest() { |
| 1242 | *this = ::std::move(from); |
| 1243 | } |
| 1244 | |
| 1245 | inline GetMetricRequest& operator=(GetMetricRequest&& from) noexcept { |
| 1246 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1247 | if (this != &from) InternalSwap(&from); |
| 1248 | } else { |
| 1249 | CopyFrom(from); |
| 1250 | } |
| 1251 | return *this; |
| 1252 | } |
| 1253 | #endif |
| 1254 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1255 | return default_instance().GetDescriptor(); |
| 1256 | } |
| 1257 | static const GetMetricRequest& default_instance(); |
| 1258 | |
| 1259 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1260 | static inline const GetMetricRequest* internal_default_instance() { |
| 1261 | return reinterpret_cast<const GetMetricRequest*>( |
| 1262 | &_GetMetricRequest_default_instance_); |
| 1263 | } |
| 1264 | static constexpr int kIndexInFileMessages = |
| 1265 | 7; |
| 1266 | |
| 1267 | void Swap(GetMetricRequest* other); |
| 1268 | friend void swap(GetMetricRequest& a, GetMetricRequest& b) { |
| 1269 | a.Swap(&b); |
| 1270 | } |
| 1271 | |
| 1272 | // implements Message ---------------------------------------------- |
| 1273 | |
| 1274 | inline GetMetricRequest* New() const final { |
| 1275 | return CreateMaybeMessage<GetMetricRequest>(nullptr); |
| 1276 | } |
| 1277 | |
| 1278 | GetMetricRequest* New(::google::protobuf::Arena* arena) const final { |
| 1279 | return CreateMaybeMessage<GetMetricRequest>(arena); |
| 1280 | } |
| 1281 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1282 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1283 | void CopyFrom(const GetMetricRequest& from); |
| 1284 | void MergeFrom(const GetMetricRequest& from); |
| 1285 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1286 | bool IsInitialized() const final; |
| 1287 | |
| 1288 | size_t ByteSizeLong() const final; |
| 1289 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1290 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1291 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1292 | #else |
| 1293 | bool MergePartialFromCodedStream( |
| 1294 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1295 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1296 | void SerializeWithCachedSizes( |
| 1297 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1298 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1299 | ::google::protobuf::uint8* target) const final; |
| 1300 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1301 | |
| 1302 | private: |
| 1303 | void SharedCtor(); |
| 1304 | void SharedDtor(); |
| 1305 | void SetCachedSize(int size) const final; |
| 1306 | void InternalSwap(GetMetricRequest* other); |
| 1307 | private: |
| 1308 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1309 | return nullptr; |
| 1310 | } |
| 1311 | inline void* MaybeArenaPtr() const { |
| 1312 | return nullptr; |
| 1313 | } |
| 1314 | public: |
| 1315 | |
| 1316 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1317 | |
| 1318 | // nested types ---------------------------------------------------- |
| 1319 | |
| 1320 | // accessors ------------------------------------------------------- |
| 1321 | |
| 1322 | // .dmi.MetricMetaData meta_data = 1; |
| 1323 | bool has_meta_data() const; |
| 1324 | void clear_meta_data(); |
| 1325 | static const int kMetaDataFieldNumber = 1; |
| 1326 | const ::dmi::MetricMetaData& meta_data() const; |
| 1327 | ::dmi::MetricMetaData* release_meta_data(); |
| 1328 | ::dmi::MetricMetaData* mutable_meta_data(); |
| 1329 | void set_allocated_meta_data(::dmi::MetricMetaData* meta_data); |
| 1330 | |
| 1331 | // .dmi.MetricNames metric_id = 2; |
| 1332 | void clear_metric_id(); |
| 1333 | static const int kMetricIdFieldNumber = 2; |
| 1334 | ::dmi::MetricNames metric_id() const; |
| 1335 | void set_metric_id(::dmi::MetricNames value); |
| 1336 | |
| 1337 | // @@protoc_insertion_point(class_scope:dmi.GetMetricRequest) |
| 1338 | private: |
| 1339 | class HasBitSetters; |
| 1340 | |
| 1341 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1342 | ::dmi::MetricMetaData* meta_data_; |
| 1343 | int metric_id_; |
| 1344 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1345 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 1346 | }; |
| 1347 | // ------------------------------------------------------------------- |
| 1348 | |
| 1349 | class GetMetricResponse final : |
| 1350 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.GetMetricResponse) */ { |
| 1351 | public: |
| 1352 | GetMetricResponse(); |
| 1353 | virtual ~GetMetricResponse(); |
| 1354 | |
| 1355 | GetMetricResponse(const GetMetricResponse& from); |
| 1356 | |
| 1357 | inline GetMetricResponse& operator=(const GetMetricResponse& from) { |
| 1358 | CopyFrom(from); |
| 1359 | return *this; |
| 1360 | } |
| 1361 | #if LANG_CXX11 |
| 1362 | GetMetricResponse(GetMetricResponse&& from) noexcept |
| 1363 | : GetMetricResponse() { |
| 1364 | *this = ::std::move(from); |
| 1365 | } |
| 1366 | |
| 1367 | inline GetMetricResponse& operator=(GetMetricResponse&& from) noexcept { |
| 1368 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1369 | if (this != &from) InternalSwap(&from); |
| 1370 | } else { |
| 1371 | CopyFrom(from); |
| 1372 | } |
| 1373 | return *this; |
| 1374 | } |
| 1375 | #endif |
| 1376 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1377 | return default_instance().GetDescriptor(); |
| 1378 | } |
| 1379 | static const GetMetricResponse& default_instance(); |
| 1380 | |
| 1381 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1382 | static inline const GetMetricResponse* internal_default_instance() { |
| 1383 | return reinterpret_cast<const GetMetricResponse*>( |
| 1384 | &_GetMetricResponse_default_instance_); |
| 1385 | } |
| 1386 | static constexpr int kIndexInFileMessages = |
| 1387 | 8; |
| 1388 | |
| 1389 | void Swap(GetMetricResponse* other); |
| 1390 | friend void swap(GetMetricResponse& a, GetMetricResponse& b) { |
| 1391 | a.Swap(&b); |
| 1392 | } |
| 1393 | |
| 1394 | // implements Message ---------------------------------------------- |
| 1395 | |
| 1396 | inline GetMetricResponse* New() const final { |
| 1397 | return CreateMaybeMessage<GetMetricResponse>(nullptr); |
| 1398 | } |
| 1399 | |
| 1400 | GetMetricResponse* New(::google::protobuf::Arena* arena) const final { |
| 1401 | return CreateMaybeMessage<GetMetricResponse>(arena); |
| 1402 | } |
| 1403 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1404 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1405 | void CopyFrom(const GetMetricResponse& from); |
| 1406 | void MergeFrom(const GetMetricResponse& from); |
| 1407 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1408 | bool IsInitialized() const final; |
| 1409 | |
| 1410 | size_t ByteSizeLong() const final; |
| 1411 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1412 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1413 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1414 | #else |
| 1415 | bool MergePartialFromCodedStream( |
| 1416 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1417 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1418 | void SerializeWithCachedSizes( |
| 1419 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1420 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1421 | ::google::protobuf::uint8* target) const final; |
| 1422 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1423 | |
| 1424 | private: |
| 1425 | void SharedCtor(); |
| 1426 | void SharedDtor(); |
| 1427 | void SetCachedSize(int size) const final; |
| 1428 | void InternalSwap(GetMetricResponse* other); |
| 1429 | private: |
| 1430 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1431 | return nullptr; |
| 1432 | } |
| 1433 | inline void* MaybeArenaPtr() const { |
| 1434 | return nullptr; |
| 1435 | } |
| 1436 | public: |
| 1437 | |
| 1438 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1439 | |
| 1440 | // nested types ---------------------------------------------------- |
| 1441 | |
| 1442 | typedef GetMetricResponse_Reason Reason; |
| 1443 | static const Reason UNDEFINED_REASON = |
| 1444 | GetMetricResponse_Reason_UNDEFINED_REASON; |
| 1445 | static const Reason UNKNOWN_DEVICE = |
| 1446 | GetMetricResponse_Reason_UNKNOWN_DEVICE; |
| 1447 | static const Reason UNKNOWN_COMPONENT = |
| 1448 | GetMetricResponse_Reason_UNKNOWN_COMPONENT; |
| 1449 | static const Reason INTERNAL_ERROR = |
| 1450 | GetMetricResponse_Reason_INTERNAL_ERROR; |
| 1451 | static const Reason INVALID_METRIC = |
| 1452 | GetMetricResponse_Reason_INVALID_METRIC; |
| 1453 | static const Reason DEVICE_UNREACHABLE = |
| 1454 | GetMetricResponse_Reason_DEVICE_UNREACHABLE; |
| 1455 | static inline bool Reason_IsValid(int value) { |
| 1456 | return GetMetricResponse_Reason_IsValid(value); |
| 1457 | } |
| 1458 | static const Reason Reason_MIN = |
| 1459 | GetMetricResponse_Reason_Reason_MIN; |
| 1460 | static const Reason Reason_MAX = |
| 1461 | GetMetricResponse_Reason_Reason_MAX; |
| 1462 | static const int Reason_ARRAYSIZE = |
| 1463 | GetMetricResponse_Reason_Reason_ARRAYSIZE; |
| 1464 | static inline const ::google::protobuf::EnumDescriptor* |
| 1465 | Reason_descriptor() { |
| 1466 | return GetMetricResponse_Reason_descriptor(); |
| 1467 | } |
| 1468 | static inline const ::std::string& Reason_Name(Reason value) { |
| 1469 | return GetMetricResponse_Reason_Name(value); |
| 1470 | } |
| 1471 | static inline bool Reason_Parse(const ::std::string& name, |
| 1472 | Reason* value) { |
| 1473 | return GetMetricResponse_Reason_Parse(name, value); |
| 1474 | } |
| 1475 | |
| 1476 | // accessors ------------------------------------------------------- |
| 1477 | |
| 1478 | // string reason_detail = 4; |
| 1479 | void clear_reason_detail(); |
| 1480 | static const int kReasonDetailFieldNumber = 4; |
| 1481 | const ::std::string& reason_detail() const; |
| 1482 | void set_reason_detail(const ::std::string& value); |
| 1483 | #if LANG_CXX11 |
| 1484 | void set_reason_detail(::std::string&& value); |
| 1485 | #endif |
| 1486 | void set_reason_detail(const char* value); |
| 1487 | void set_reason_detail(const char* value, size_t size); |
| 1488 | ::std::string* mutable_reason_detail(); |
| 1489 | ::std::string* release_reason_detail(); |
| 1490 | void set_allocated_reason_detail(::std::string* reason_detail); |
| 1491 | |
| 1492 | // .dmi.Metric metric = 3; |
| 1493 | bool has_metric() const; |
| 1494 | void clear_metric(); |
| 1495 | static const int kMetricFieldNumber = 3; |
| 1496 | const ::dmi::Metric& metric() const; |
| 1497 | ::dmi::Metric* release_metric(); |
| 1498 | ::dmi::Metric* mutable_metric(); |
| 1499 | void set_allocated_metric(::dmi::Metric* metric); |
| 1500 | |
| 1501 | // .dmi.Status status = 1; |
| 1502 | void clear_status(); |
| 1503 | static const int kStatusFieldNumber = 1; |
| 1504 | ::dmi::Status status() const; |
| 1505 | void set_status(::dmi::Status value); |
| 1506 | |
| 1507 | // .dmi.GetMetricResponse.Reason reason = 2; |
| 1508 | void clear_reason(); |
| 1509 | static const int kReasonFieldNumber = 2; |
| 1510 | ::dmi::GetMetricResponse_Reason reason() const; |
| 1511 | void set_reason(::dmi::GetMetricResponse_Reason value); |
| 1512 | |
| 1513 | // @@protoc_insertion_point(class_scope:dmi.GetMetricResponse) |
| 1514 | private: |
| 1515 | class HasBitSetters; |
| 1516 | |
| 1517 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1518 | ::google::protobuf::internal::ArenaStringPtr reason_detail_; |
| 1519 | ::dmi::Metric* metric_; |
| 1520 | int status_; |
| 1521 | int reason_; |
| 1522 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1523 | friend struct ::TableStruct_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto; |
| 1524 | }; |
| 1525 | // =================================================================== |
| 1526 | |
| 1527 | |
| 1528 | // =================================================================== |
| 1529 | |
| 1530 | #ifdef __GNUC__ |
| 1531 | #pragma GCC diagnostic push |
| 1532 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 1533 | #endif // __GNUC__ |
| 1534 | // MetricConfig |
| 1535 | |
| 1536 | // .dmi.MetricNames metric_id = 1; |
| 1537 | inline void MetricConfig::clear_metric_id() { |
| 1538 | metric_id_ = 0; |
| 1539 | } |
| 1540 | inline ::dmi::MetricNames MetricConfig::metric_id() const { |
| 1541 | // @@protoc_insertion_point(field_get:dmi.MetricConfig.metric_id) |
| 1542 | return static_cast< ::dmi::MetricNames >(metric_id_); |
| 1543 | } |
| 1544 | inline void MetricConfig::set_metric_id(::dmi::MetricNames value) { |
| 1545 | |
| 1546 | metric_id_ = value; |
| 1547 | // @@protoc_insertion_point(field_set:dmi.MetricConfig.metric_id) |
| 1548 | } |
| 1549 | |
| 1550 | // bool is_configured = 2; |
| 1551 | inline void MetricConfig::clear_is_configured() { |
| 1552 | is_configured_ = false; |
| 1553 | } |
| 1554 | inline bool MetricConfig::is_configured() const { |
| 1555 | // @@protoc_insertion_point(field_get:dmi.MetricConfig.is_configured) |
| 1556 | return is_configured_; |
| 1557 | } |
| 1558 | inline void MetricConfig::set_is_configured(bool value) { |
| 1559 | |
| 1560 | is_configured_ = value; |
| 1561 | // @@protoc_insertion_point(field_set:dmi.MetricConfig.is_configured) |
| 1562 | } |
| 1563 | |
| 1564 | // uint32 poll_interval = 3; |
| 1565 | inline void MetricConfig::clear_poll_interval() { |
| 1566 | poll_interval_ = 0u; |
| 1567 | } |
| 1568 | inline ::google::protobuf::uint32 MetricConfig::poll_interval() const { |
| 1569 | // @@protoc_insertion_point(field_get:dmi.MetricConfig.poll_interval) |
| 1570 | return poll_interval_; |
| 1571 | } |
| 1572 | inline void MetricConfig::set_poll_interval(::google::protobuf::uint32 value) { |
| 1573 | |
| 1574 | poll_interval_ = value; |
| 1575 | // @@protoc_insertion_point(field_set:dmi.MetricConfig.poll_interval) |
| 1576 | } |
| 1577 | |
| 1578 | // ------------------------------------------------------------------- |
| 1579 | |
| 1580 | // MetricsConfig |
| 1581 | |
| 1582 | // repeated .dmi.MetricConfig metrics = 1; |
| 1583 | inline int MetricsConfig::metrics_size() const { |
| 1584 | return metrics_.size(); |
| 1585 | } |
| 1586 | inline void MetricsConfig::clear_metrics() { |
| 1587 | metrics_.Clear(); |
| 1588 | } |
| 1589 | inline ::dmi::MetricConfig* MetricsConfig::mutable_metrics(int index) { |
| 1590 | // @@protoc_insertion_point(field_mutable:dmi.MetricsConfig.metrics) |
| 1591 | return metrics_.Mutable(index); |
| 1592 | } |
| 1593 | inline ::google::protobuf::RepeatedPtrField< ::dmi::MetricConfig >* |
| 1594 | MetricsConfig::mutable_metrics() { |
| 1595 | // @@protoc_insertion_point(field_mutable_list:dmi.MetricsConfig.metrics) |
| 1596 | return &metrics_; |
| 1597 | } |
| 1598 | inline const ::dmi::MetricConfig& MetricsConfig::metrics(int index) const { |
| 1599 | // @@protoc_insertion_point(field_get:dmi.MetricsConfig.metrics) |
| 1600 | return metrics_.Get(index); |
| 1601 | } |
| 1602 | inline ::dmi::MetricConfig* MetricsConfig::add_metrics() { |
| 1603 | // @@protoc_insertion_point(field_add:dmi.MetricsConfig.metrics) |
| 1604 | return metrics_.Add(); |
| 1605 | } |
| 1606 | inline const ::google::protobuf::RepeatedPtrField< ::dmi::MetricConfig >& |
| 1607 | MetricsConfig::metrics() const { |
| 1608 | // @@protoc_insertion_point(field_list:dmi.MetricsConfig.metrics) |
| 1609 | return metrics_; |
| 1610 | } |
| 1611 | |
| 1612 | // ------------------------------------------------------------------- |
| 1613 | |
| 1614 | // ListMetricsResponse |
| 1615 | |
| 1616 | // .dmi.Status status = 1; |
| 1617 | inline void ListMetricsResponse::clear_status() { |
| 1618 | status_ = 0; |
| 1619 | } |
| 1620 | inline ::dmi::Status ListMetricsResponse::status() const { |
| 1621 | // @@protoc_insertion_point(field_get:dmi.ListMetricsResponse.status) |
| 1622 | return static_cast< ::dmi::Status >(status_); |
| 1623 | } |
| 1624 | inline void ListMetricsResponse::set_status(::dmi::Status value) { |
| 1625 | |
| 1626 | status_ = value; |
| 1627 | // @@protoc_insertion_point(field_set:dmi.ListMetricsResponse.status) |
| 1628 | } |
| 1629 | |
| 1630 | // .dmi.ListMetricsResponse.Reason reason = 2; |
| 1631 | inline void ListMetricsResponse::clear_reason() { |
| 1632 | reason_ = 0; |
| 1633 | } |
| 1634 | inline ::dmi::ListMetricsResponse_Reason ListMetricsResponse::reason() const { |
| 1635 | // @@protoc_insertion_point(field_get:dmi.ListMetricsResponse.reason) |
| 1636 | return static_cast< ::dmi::ListMetricsResponse_Reason >(reason_); |
| 1637 | } |
| 1638 | inline void ListMetricsResponse::set_reason(::dmi::ListMetricsResponse_Reason value) { |
| 1639 | |
| 1640 | reason_ = value; |
| 1641 | // @@protoc_insertion_point(field_set:dmi.ListMetricsResponse.reason) |
| 1642 | } |
| 1643 | |
| 1644 | // .dmi.MetricsConfig metrics = 3; |
| 1645 | inline bool ListMetricsResponse::has_metrics() const { |
| 1646 | return this != internal_default_instance() && metrics_ != nullptr; |
| 1647 | } |
| 1648 | inline void ListMetricsResponse::clear_metrics() { |
| 1649 | if (GetArenaNoVirtual() == nullptr && metrics_ != nullptr) { |
| 1650 | delete metrics_; |
| 1651 | } |
| 1652 | metrics_ = nullptr; |
| 1653 | } |
| 1654 | inline const ::dmi::MetricsConfig& ListMetricsResponse::metrics() const { |
| 1655 | const ::dmi::MetricsConfig* p = metrics_; |
| 1656 | // @@protoc_insertion_point(field_get:dmi.ListMetricsResponse.metrics) |
| 1657 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::MetricsConfig*>( |
| 1658 | &::dmi::_MetricsConfig_default_instance_); |
| 1659 | } |
| 1660 | inline ::dmi::MetricsConfig* ListMetricsResponse::release_metrics() { |
| 1661 | // @@protoc_insertion_point(field_release:dmi.ListMetricsResponse.metrics) |
| 1662 | |
| 1663 | ::dmi::MetricsConfig* temp = metrics_; |
| 1664 | metrics_ = nullptr; |
| 1665 | return temp; |
| 1666 | } |
| 1667 | inline ::dmi::MetricsConfig* ListMetricsResponse::mutable_metrics() { |
| 1668 | |
| 1669 | if (metrics_ == nullptr) { |
| 1670 | auto* p = CreateMaybeMessage<::dmi::MetricsConfig>(GetArenaNoVirtual()); |
| 1671 | metrics_ = p; |
| 1672 | } |
| 1673 | // @@protoc_insertion_point(field_mutable:dmi.ListMetricsResponse.metrics) |
| 1674 | return metrics_; |
| 1675 | } |
| 1676 | inline void ListMetricsResponse::set_allocated_metrics(::dmi::MetricsConfig* metrics) { |
| 1677 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1678 | if (message_arena == nullptr) { |
| 1679 | delete metrics_; |
| 1680 | } |
| 1681 | if (metrics) { |
| 1682 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1683 | if (message_arena != submessage_arena) { |
| 1684 | metrics = ::google::protobuf::internal::GetOwnedMessage( |
| 1685 | message_arena, metrics, submessage_arena); |
| 1686 | } |
| 1687 | |
| 1688 | } else { |
| 1689 | |
| 1690 | } |
| 1691 | metrics_ = metrics; |
| 1692 | // @@protoc_insertion_point(field_set_allocated:dmi.ListMetricsResponse.metrics) |
| 1693 | } |
| 1694 | |
| 1695 | // string reason_detail = 4; |
| 1696 | inline void ListMetricsResponse::clear_reason_detail() { |
| 1697 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1698 | } |
| 1699 | inline const ::std::string& ListMetricsResponse::reason_detail() const { |
| 1700 | // @@protoc_insertion_point(field_get:dmi.ListMetricsResponse.reason_detail) |
| 1701 | return reason_detail_.GetNoArena(); |
| 1702 | } |
| 1703 | inline void ListMetricsResponse::set_reason_detail(const ::std::string& value) { |
| 1704 | |
| 1705 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 1706 | // @@protoc_insertion_point(field_set:dmi.ListMetricsResponse.reason_detail) |
| 1707 | } |
| 1708 | #if LANG_CXX11 |
| 1709 | inline void ListMetricsResponse::set_reason_detail(::std::string&& value) { |
| 1710 | |
| 1711 | reason_detail_.SetNoArena( |
| 1712 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 1713 | // @@protoc_insertion_point(field_set_rvalue:dmi.ListMetricsResponse.reason_detail) |
| 1714 | } |
| 1715 | #endif |
| 1716 | inline void ListMetricsResponse::set_reason_detail(const char* value) { |
| 1717 | GOOGLE_DCHECK(value != nullptr); |
| 1718 | |
| 1719 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 1720 | // @@protoc_insertion_point(field_set_char:dmi.ListMetricsResponse.reason_detail) |
| 1721 | } |
| 1722 | inline void ListMetricsResponse::set_reason_detail(const char* value, size_t size) { |
| 1723 | |
| 1724 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1725 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1726 | // @@protoc_insertion_point(field_set_pointer:dmi.ListMetricsResponse.reason_detail) |
| 1727 | } |
| 1728 | inline ::std::string* ListMetricsResponse::mutable_reason_detail() { |
| 1729 | |
| 1730 | // @@protoc_insertion_point(field_mutable:dmi.ListMetricsResponse.reason_detail) |
| 1731 | return reason_detail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1732 | } |
| 1733 | inline ::std::string* ListMetricsResponse::release_reason_detail() { |
| 1734 | // @@protoc_insertion_point(field_release:dmi.ListMetricsResponse.reason_detail) |
| 1735 | |
| 1736 | return reason_detail_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1737 | } |
| 1738 | inline void ListMetricsResponse::set_allocated_reason_detail(::std::string* reason_detail) { |
| 1739 | if (reason_detail != nullptr) { |
| 1740 | |
| 1741 | } else { |
| 1742 | |
| 1743 | } |
| 1744 | reason_detail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason_detail); |
| 1745 | // @@protoc_insertion_point(field_set_allocated:dmi.ListMetricsResponse.reason_detail) |
| 1746 | } |
| 1747 | |
| 1748 | // ------------------------------------------------------------------- |
| 1749 | |
| 1750 | // MetricsConfigurationRequest |
| 1751 | |
| 1752 | // .dmi.Uuid device_uuid = 1; |
| 1753 | inline bool MetricsConfigurationRequest::has_device_uuid() const { |
| 1754 | return this != internal_default_instance() && device_uuid_ != nullptr; |
| 1755 | } |
| 1756 | inline const ::dmi::Uuid& MetricsConfigurationRequest::device_uuid() const { |
| 1757 | const ::dmi::Uuid* p = device_uuid_; |
| 1758 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationRequest.device_uuid) |
| 1759 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 1760 | &::dmi::_Uuid_default_instance_); |
| 1761 | } |
| 1762 | inline ::dmi::Uuid* MetricsConfigurationRequest::release_device_uuid() { |
| 1763 | // @@protoc_insertion_point(field_release:dmi.MetricsConfigurationRequest.device_uuid) |
| 1764 | |
| 1765 | ::dmi::Uuid* temp = device_uuid_; |
| 1766 | device_uuid_ = nullptr; |
| 1767 | return temp; |
| 1768 | } |
| 1769 | inline ::dmi::Uuid* MetricsConfigurationRequest::mutable_device_uuid() { |
| 1770 | |
| 1771 | if (device_uuid_ == nullptr) { |
| 1772 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 1773 | device_uuid_ = p; |
| 1774 | } |
| 1775 | // @@protoc_insertion_point(field_mutable:dmi.MetricsConfigurationRequest.device_uuid) |
| 1776 | return device_uuid_; |
| 1777 | } |
| 1778 | inline void MetricsConfigurationRequest::set_allocated_device_uuid(::dmi::Uuid* device_uuid) { |
| 1779 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1780 | if (message_arena == nullptr) { |
| 1781 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_uuid_); |
| 1782 | } |
| 1783 | if (device_uuid) { |
| 1784 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1785 | if (message_arena != submessage_arena) { |
| 1786 | device_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 1787 | message_arena, device_uuid, submessage_arena); |
| 1788 | } |
| 1789 | |
| 1790 | } else { |
| 1791 | |
| 1792 | } |
| 1793 | device_uuid_ = device_uuid; |
| 1794 | // @@protoc_insertion_point(field_set_allocated:dmi.MetricsConfigurationRequest.device_uuid) |
| 1795 | } |
| 1796 | |
| 1797 | // .dmi.MetricsConfig changes = 2; |
| 1798 | inline bool MetricsConfigurationRequest::has_changes() const { |
| 1799 | return operation_case() == kChanges; |
| 1800 | } |
| 1801 | inline void MetricsConfigurationRequest::set_has_changes() { |
| 1802 | _oneof_case_[0] = kChanges; |
| 1803 | } |
| 1804 | inline void MetricsConfigurationRequest::clear_changes() { |
| 1805 | if (has_changes()) { |
| 1806 | delete operation_.changes_; |
| 1807 | clear_has_operation(); |
| 1808 | } |
| 1809 | } |
| 1810 | inline ::dmi::MetricsConfig* MetricsConfigurationRequest::release_changes() { |
| 1811 | // @@protoc_insertion_point(field_release:dmi.MetricsConfigurationRequest.changes) |
| 1812 | if (has_changes()) { |
| 1813 | clear_has_operation(); |
| 1814 | ::dmi::MetricsConfig* temp = operation_.changes_; |
| 1815 | operation_.changes_ = nullptr; |
| 1816 | return temp; |
| 1817 | } else { |
| 1818 | return nullptr; |
| 1819 | } |
| 1820 | } |
| 1821 | inline const ::dmi::MetricsConfig& MetricsConfigurationRequest::changes() const { |
| 1822 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationRequest.changes) |
| 1823 | return has_changes() |
| 1824 | ? *operation_.changes_ |
| 1825 | : *reinterpret_cast< ::dmi::MetricsConfig*>(&::dmi::_MetricsConfig_default_instance_); |
| 1826 | } |
| 1827 | inline ::dmi::MetricsConfig* MetricsConfigurationRequest::mutable_changes() { |
| 1828 | if (!has_changes()) { |
| 1829 | clear_operation(); |
| 1830 | set_has_changes(); |
| 1831 | operation_.changes_ = CreateMaybeMessage< ::dmi::MetricsConfig >( |
| 1832 | GetArenaNoVirtual()); |
| 1833 | } |
| 1834 | // @@protoc_insertion_point(field_mutable:dmi.MetricsConfigurationRequest.changes) |
| 1835 | return operation_.changes_; |
| 1836 | } |
| 1837 | |
| 1838 | // bool reset_to_default = 3; |
| 1839 | inline bool MetricsConfigurationRequest::has_reset_to_default() const { |
| 1840 | return operation_case() == kResetToDefault; |
| 1841 | } |
| 1842 | inline void MetricsConfigurationRequest::set_has_reset_to_default() { |
| 1843 | _oneof_case_[0] = kResetToDefault; |
| 1844 | } |
| 1845 | inline void MetricsConfigurationRequest::clear_reset_to_default() { |
| 1846 | if (has_reset_to_default()) { |
| 1847 | operation_.reset_to_default_ = false; |
| 1848 | clear_has_operation(); |
| 1849 | } |
| 1850 | } |
| 1851 | inline bool MetricsConfigurationRequest::reset_to_default() const { |
| 1852 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationRequest.reset_to_default) |
| 1853 | if (has_reset_to_default()) { |
| 1854 | return operation_.reset_to_default_; |
| 1855 | } |
| 1856 | return false; |
| 1857 | } |
| 1858 | inline void MetricsConfigurationRequest::set_reset_to_default(bool value) { |
| 1859 | if (!has_reset_to_default()) { |
| 1860 | clear_operation(); |
| 1861 | set_has_reset_to_default(); |
| 1862 | } |
| 1863 | operation_.reset_to_default_ = value; |
| 1864 | // @@protoc_insertion_point(field_set:dmi.MetricsConfigurationRequest.reset_to_default) |
| 1865 | } |
| 1866 | |
| 1867 | inline bool MetricsConfigurationRequest::has_operation() const { |
| 1868 | return operation_case() != OPERATION_NOT_SET; |
| 1869 | } |
| 1870 | inline void MetricsConfigurationRequest::clear_has_operation() { |
| 1871 | _oneof_case_[0] = OPERATION_NOT_SET; |
| 1872 | } |
| 1873 | inline MetricsConfigurationRequest::OperationCase MetricsConfigurationRequest::operation_case() const { |
| 1874 | return MetricsConfigurationRequest::OperationCase(_oneof_case_[0]); |
| 1875 | } |
| 1876 | // ------------------------------------------------------------------- |
| 1877 | |
| 1878 | // MetricsConfigurationResponse |
| 1879 | |
| 1880 | // .dmi.Status status = 1; |
| 1881 | inline void MetricsConfigurationResponse::clear_status() { |
| 1882 | status_ = 0; |
| 1883 | } |
| 1884 | inline ::dmi::Status MetricsConfigurationResponse::status() const { |
| 1885 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationResponse.status) |
| 1886 | return static_cast< ::dmi::Status >(status_); |
| 1887 | } |
| 1888 | inline void MetricsConfigurationResponse::set_status(::dmi::Status value) { |
| 1889 | |
| 1890 | status_ = value; |
| 1891 | // @@protoc_insertion_point(field_set:dmi.MetricsConfigurationResponse.status) |
| 1892 | } |
| 1893 | |
| 1894 | // .dmi.MetricsConfigurationResponse.Reason reason = 2; |
| 1895 | inline void MetricsConfigurationResponse::clear_reason() { |
| 1896 | reason_ = 0; |
| 1897 | } |
| 1898 | inline ::dmi::MetricsConfigurationResponse_Reason MetricsConfigurationResponse::reason() const { |
| 1899 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationResponse.reason) |
| 1900 | return static_cast< ::dmi::MetricsConfigurationResponse_Reason >(reason_); |
| 1901 | } |
| 1902 | inline void MetricsConfigurationResponse::set_reason(::dmi::MetricsConfigurationResponse_Reason value) { |
| 1903 | |
| 1904 | reason_ = value; |
| 1905 | // @@protoc_insertion_point(field_set:dmi.MetricsConfigurationResponse.reason) |
| 1906 | } |
| 1907 | |
| 1908 | // string reason_detail = 3; |
| 1909 | inline void MetricsConfigurationResponse::clear_reason_detail() { |
| 1910 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1911 | } |
| 1912 | inline const ::std::string& MetricsConfigurationResponse::reason_detail() const { |
| 1913 | // @@protoc_insertion_point(field_get:dmi.MetricsConfigurationResponse.reason_detail) |
| 1914 | return reason_detail_.GetNoArena(); |
| 1915 | } |
| 1916 | inline void MetricsConfigurationResponse::set_reason_detail(const ::std::string& value) { |
| 1917 | |
| 1918 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 1919 | // @@protoc_insertion_point(field_set:dmi.MetricsConfigurationResponse.reason_detail) |
| 1920 | } |
| 1921 | #if LANG_CXX11 |
| 1922 | inline void MetricsConfigurationResponse::set_reason_detail(::std::string&& value) { |
| 1923 | |
| 1924 | reason_detail_.SetNoArena( |
| 1925 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 1926 | // @@protoc_insertion_point(field_set_rvalue:dmi.MetricsConfigurationResponse.reason_detail) |
| 1927 | } |
| 1928 | #endif |
| 1929 | inline void MetricsConfigurationResponse::set_reason_detail(const char* value) { |
| 1930 | GOOGLE_DCHECK(value != nullptr); |
| 1931 | |
| 1932 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 1933 | // @@protoc_insertion_point(field_set_char:dmi.MetricsConfigurationResponse.reason_detail) |
| 1934 | } |
| 1935 | inline void MetricsConfigurationResponse::set_reason_detail(const char* value, size_t size) { |
| 1936 | |
| 1937 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1938 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 1939 | // @@protoc_insertion_point(field_set_pointer:dmi.MetricsConfigurationResponse.reason_detail) |
| 1940 | } |
| 1941 | inline ::std::string* MetricsConfigurationResponse::mutable_reason_detail() { |
| 1942 | |
| 1943 | // @@protoc_insertion_point(field_mutable:dmi.MetricsConfigurationResponse.reason_detail) |
| 1944 | return reason_detail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1945 | } |
| 1946 | inline ::std::string* MetricsConfigurationResponse::release_reason_detail() { |
| 1947 | // @@protoc_insertion_point(field_release:dmi.MetricsConfigurationResponse.reason_detail) |
| 1948 | |
| 1949 | return reason_detail_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1950 | } |
| 1951 | inline void MetricsConfigurationResponse::set_allocated_reason_detail(::std::string* reason_detail) { |
| 1952 | if (reason_detail != nullptr) { |
| 1953 | |
| 1954 | } else { |
| 1955 | |
| 1956 | } |
| 1957 | reason_detail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason_detail); |
| 1958 | // @@protoc_insertion_point(field_set_allocated:dmi.MetricsConfigurationResponse.reason_detail) |
| 1959 | } |
| 1960 | |
| 1961 | // ------------------------------------------------------------------- |
| 1962 | |
| 1963 | // MetricMetaData |
| 1964 | |
| 1965 | // .dmi.Uuid device_uuid = 1; |
| 1966 | inline bool MetricMetaData::has_device_uuid() const { |
| 1967 | return this != internal_default_instance() && device_uuid_ != nullptr; |
| 1968 | } |
| 1969 | inline const ::dmi::Uuid& MetricMetaData::device_uuid() const { |
| 1970 | const ::dmi::Uuid* p = device_uuid_; |
| 1971 | // @@protoc_insertion_point(field_get:dmi.MetricMetaData.device_uuid) |
| 1972 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 1973 | &::dmi::_Uuid_default_instance_); |
| 1974 | } |
| 1975 | inline ::dmi::Uuid* MetricMetaData::release_device_uuid() { |
| 1976 | // @@protoc_insertion_point(field_release:dmi.MetricMetaData.device_uuid) |
| 1977 | |
| 1978 | ::dmi::Uuid* temp = device_uuid_; |
| 1979 | device_uuid_ = nullptr; |
| 1980 | return temp; |
| 1981 | } |
| 1982 | inline ::dmi::Uuid* MetricMetaData::mutable_device_uuid() { |
| 1983 | |
| 1984 | if (device_uuid_ == nullptr) { |
| 1985 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 1986 | device_uuid_ = p; |
| 1987 | } |
| 1988 | // @@protoc_insertion_point(field_mutable:dmi.MetricMetaData.device_uuid) |
| 1989 | return device_uuid_; |
| 1990 | } |
| 1991 | inline void MetricMetaData::set_allocated_device_uuid(::dmi::Uuid* device_uuid) { |
| 1992 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1993 | if (message_arena == nullptr) { |
| 1994 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_uuid_); |
| 1995 | } |
| 1996 | if (device_uuid) { |
| 1997 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1998 | if (message_arena != submessage_arena) { |
| 1999 | device_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 2000 | message_arena, device_uuid, submessage_arena); |
| 2001 | } |
| 2002 | |
| 2003 | } else { |
| 2004 | |
| 2005 | } |
| 2006 | device_uuid_ = device_uuid; |
| 2007 | // @@protoc_insertion_point(field_set_allocated:dmi.MetricMetaData.device_uuid) |
| 2008 | } |
| 2009 | |
| 2010 | // .dmi.Uuid component_uuid = 2; |
| 2011 | inline bool MetricMetaData::has_component_uuid() const { |
| 2012 | return this != internal_default_instance() && component_uuid_ != nullptr; |
| 2013 | } |
| 2014 | inline const ::dmi::Uuid& MetricMetaData::component_uuid() const { |
| 2015 | const ::dmi::Uuid* p = component_uuid_; |
| 2016 | // @@protoc_insertion_point(field_get:dmi.MetricMetaData.component_uuid) |
| 2017 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 2018 | &::dmi::_Uuid_default_instance_); |
| 2019 | } |
| 2020 | inline ::dmi::Uuid* MetricMetaData::release_component_uuid() { |
| 2021 | // @@protoc_insertion_point(field_release:dmi.MetricMetaData.component_uuid) |
| 2022 | |
| 2023 | ::dmi::Uuid* temp = component_uuid_; |
| 2024 | component_uuid_ = nullptr; |
| 2025 | return temp; |
| 2026 | } |
| 2027 | inline ::dmi::Uuid* MetricMetaData::mutable_component_uuid() { |
| 2028 | |
| 2029 | if (component_uuid_ == nullptr) { |
| 2030 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 2031 | component_uuid_ = p; |
| 2032 | } |
| 2033 | // @@protoc_insertion_point(field_mutable:dmi.MetricMetaData.component_uuid) |
| 2034 | return component_uuid_; |
| 2035 | } |
| 2036 | inline void MetricMetaData::set_allocated_component_uuid(::dmi::Uuid* component_uuid) { |
| 2037 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2038 | if (message_arena == nullptr) { |
| 2039 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(component_uuid_); |
| 2040 | } |
| 2041 | if (component_uuid) { |
| 2042 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2043 | if (message_arena != submessage_arena) { |
| 2044 | component_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 2045 | message_arena, component_uuid, submessage_arena); |
| 2046 | } |
| 2047 | |
| 2048 | } else { |
| 2049 | |
| 2050 | } |
| 2051 | component_uuid_ = component_uuid; |
| 2052 | // @@protoc_insertion_point(field_set_allocated:dmi.MetricMetaData.component_uuid) |
| 2053 | } |
| 2054 | |
| 2055 | // string component_name = 3; |
| 2056 | inline void MetricMetaData::clear_component_name() { |
| 2057 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2058 | } |
| 2059 | inline const ::std::string& MetricMetaData::component_name() const { |
| 2060 | // @@protoc_insertion_point(field_get:dmi.MetricMetaData.component_name) |
| 2061 | return component_name_.GetNoArena(); |
| 2062 | } |
| 2063 | inline void MetricMetaData::set_component_name(const ::std::string& value) { |
| 2064 | |
| 2065 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2066 | // @@protoc_insertion_point(field_set:dmi.MetricMetaData.component_name) |
| 2067 | } |
| 2068 | #if LANG_CXX11 |
| 2069 | inline void MetricMetaData::set_component_name(::std::string&& value) { |
| 2070 | |
| 2071 | component_name_.SetNoArena( |
| 2072 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2073 | // @@protoc_insertion_point(field_set_rvalue:dmi.MetricMetaData.component_name) |
| 2074 | } |
| 2075 | #endif |
| 2076 | inline void MetricMetaData::set_component_name(const char* value) { |
| 2077 | GOOGLE_DCHECK(value != nullptr); |
| 2078 | |
| 2079 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2080 | // @@protoc_insertion_point(field_set_char:dmi.MetricMetaData.component_name) |
| 2081 | } |
| 2082 | inline void MetricMetaData::set_component_name(const char* value, size_t size) { |
| 2083 | |
| 2084 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2085 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2086 | // @@protoc_insertion_point(field_set_pointer:dmi.MetricMetaData.component_name) |
| 2087 | } |
| 2088 | inline ::std::string* MetricMetaData::mutable_component_name() { |
| 2089 | |
| 2090 | // @@protoc_insertion_point(field_mutable:dmi.MetricMetaData.component_name) |
| 2091 | return component_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2092 | } |
| 2093 | inline ::std::string* MetricMetaData::release_component_name() { |
| 2094 | // @@protoc_insertion_point(field_release:dmi.MetricMetaData.component_name) |
| 2095 | |
| 2096 | return component_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2097 | } |
| 2098 | inline void MetricMetaData::set_allocated_component_name(::std::string* component_name) { |
| 2099 | if (component_name != nullptr) { |
| 2100 | |
| 2101 | } else { |
| 2102 | |
| 2103 | } |
| 2104 | component_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), component_name); |
| 2105 | // @@protoc_insertion_point(field_set_allocated:dmi.MetricMetaData.component_name) |
| 2106 | } |
| 2107 | |
| 2108 | // ------------------------------------------------------------------- |
| 2109 | |
| 2110 | // Metric |
| 2111 | |
| 2112 | // .dmi.MetricNames metric_id = 1; |
| 2113 | inline void Metric::clear_metric_id() { |
| 2114 | metric_id_ = 0; |
| 2115 | } |
| 2116 | inline ::dmi::MetricNames Metric::metric_id() const { |
| 2117 | // @@protoc_insertion_point(field_get:dmi.Metric.metric_id) |
| 2118 | return static_cast< ::dmi::MetricNames >(metric_id_); |
| 2119 | } |
| 2120 | inline void Metric::set_metric_id(::dmi::MetricNames value) { |
| 2121 | |
| 2122 | metric_id_ = value; |
| 2123 | // @@protoc_insertion_point(field_set:dmi.Metric.metric_id) |
| 2124 | } |
| 2125 | |
| 2126 | // .dmi.MetricMetaData metric_metadata = 2; |
| 2127 | inline bool Metric::has_metric_metadata() const { |
| 2128 | return this != internal_default_instance() && metric_metadata_ != nullptr; |
| 2129 | } |
| 2130 | inline void Metric::clear_metric_metadata() { |
| 2131 | if (GetArenaNoVirtual() == nullptr && metric_metadata_ != nullptr) { |
| 2132 | delete metric_metadata_; |
| 2133 | } |
| 2134 | metric_metadata_ = nullptr; |
| 2135 | } |
| 2136 | inline const ::dmi::MetricMetaData& Metric::metric_metadata() const { |
| 2137 | const ::dmi::MetricMetaData* p = metric_metadata_; |
| 2138 | // @@protoc_insertion_point(field_get:dmi.Metric.metric_metadata) |
| 2139 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::MetricMetaData*>( |
| 2140 | &::dmi::_MetricMetaData_default_instance_); |
| 2141 | } |
| 2142 | inline ::dmi::MetricMetaData* Metric::release_metric_metadata() { |
| 2143 | // @@protoc_insertion_point(field_release:dmi.Metric.metric_metadata) |
| 2144 | |
| 2145 | ::dmi::MetricMetaData* temp = metric_metadata_; |
| 2146 | metric_metadata_ = nullptr; |
| 2147 | return temp; |
| 2148 | } |
| 2149 | inline ::dmi::MetricMetaData* Metric::mutable_metric_metadata() { |
| 2150 | |
| 2151 | if (metric_metadata_ == nullptr) { |
| 2152 | auto* p = CreateMaybeMessage<::dmi::MetricMetaData>(GetArenaNoVirtual()); |
| 2153 | metric_metadata_ = p; |
| 2154 | } |
| 2155 | // @@protoc_insertion_point(field_mutable:dmi.Metric.metric_metadata) |
| 2156 | return metric_metadata_; |
| 2157 | } |
| 2158 | inline void Metric::set_allocated_metric_metadata(::dmi::MetricMetaData* metric_metadata) { |
| 2159 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2160 | if (message_arena == nullptr) { |
| 2161 | delete metric_metadata_; |
| 2162 | } |
| 2163 | if (metric_metadata) { |
| 2164 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2165 | if (message_arena != submessage_arena) { |
| 2166 | metric_metadata = ::google::protobuf::internal::GetOwnedMessage( |
| 2167 | message_arena, metric_metadata, submessage_arena); |
| 2168 | } |
| 2169 | |
| 2170 | } else { |
| 2171 | |
| 2172 | } |
| 2173 | metric_metadata_ = metric_metadata; |
| 2174 | // @@protoc_insertion_point(field_set_allocated:dmi.Metric.metric_metadata) |
| 2175 | } |
| 2176 | |
| 2177 | // .dmi.ComponentSensorData value = 3; |
| 2178 | inline bool Metric::has_value() const { |
| 2179 | return this != internal_default_instance() && value_ != nullptr; |
| 2180 | } |
| 2181 | inline const ::dmi::ComponentSensorData& Metric::value() const { |
| 2182 | const ::dmi::ComponentSensorData* p = value_; |
| 2183 | // @@protoc_insertion_point(field_get:dmi.Metric.value) |
| 2184 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ComponentSensorData*>( |
| 2185 | &::dmi::_ComponentSensorData_default_instance_); |
| 2186 | } |
| 2187 | inline ::dmi::ComponentSensorData* Metric::release_value() { |
| 2188 | // @@protoc_insertion_point(field_release:dmi.Metric.value) |
| 2189 | |
| 2190 | ::dmi::ComponentSensorData* temp = value_; |
| 2191 | value_ = nullptr; |
| 2192 | return temp; |
| 2193 | } |
| 2194 | inline ::dmi::ComponentSensorData* Metric::mutable_value() { |
| 2195 | |
| 2196 | if (value_ == nullptr) { |
| 2197 | auto* p = CreateMaybeMessage<::dmi::ComponentSensorData>(GetArenaNoVirtual()); |
| 2198 | value_ = p; |
| 2199 | } |
| 2200 | // @@protoc_insertion_point(field_mutable:dmi.Metric.value) |
| 2201 | return value_; |
| 2202 | } |
| 2203 | inline void Metric::set_allocated_value(::dmi::ComponentSensorData* value) { |
| 2204 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2205 | if (message_arena == nullptr) { |
| 2206 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); |
| 2207 | } |
| 2208 | if (value) { |
| 2209 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2210 | if (message_arena != submessage_arena) { |
| 2211 | value = ::google::protobuf::internal::GetOwnedMessage( |
| 2212 | message_arena, value, submessage_arena); |
| 2213 | } |
| 2214 | |
| 2215 | } else { |
| 2216 | |
| 2217 | } |
| 2218 | value_ = value; |
| 2219 | // @@protoc_insertion_point(field_set_allocated:dmi.Metric.value) |
| 2220 | } |
| 2221 | |
| 2222 | // ------------------------------------------------------------------- |
| 2223 | |
| 2224 | // GetMetricRequest |
| 2225 | |
| 2226 | // .dmi.MetricMetaData meta_data = 1; |
| 2227 | inline bool GetMetricRequest::has_meta_data() const { |
| 2228 | return this != internal_default_instance() && meta_data_ != nullptr; |
| 2229 | } |
| 2230 | inline void GetMetricRequest::clear_meta_data() { |
| 2231 | if (GetArenaNoVirtual() == nullptr && meta_data_ != nullptr) { |
| 2232 | delete meta_data_; |
| 2233 | } |
| 2234 | meta_data_ = nullptr; |
| 2235 | } |
| 2236 | inline const ::dmi::MetricMetaData& GetMetricRequest::meta_data() const { |
| 2237 | const ::dmi::MetricMetaData* p = meta_data_; |
| 2238 | // @@protoc_insertion_point(field_get:dmi.GetMetricRequest.meta_data) |
| 2239 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::MetricMetaData*>( |
| 2240 | &::dmi::_MetricMetaData_default_instance_); |
| 2241 | } |
| 2242 | inline ::dmi::MetricMetaData* GetMetricRequest::release_meta_data() { |
| 2243 | // @@protoc_insertion_point(field_release:dmi.GetMetricRequest.meta_data) |
| 2244 | |
| 2245 | ::dmi::MetricMetaData* temp = meta_data_; |
| 2246 | meta_data_ = nullptr; |
| 2247 | return temp; |
| 2248 | } |
| 2249 | inline ::dmi::MetricMetaData* GetMetricRequest::mutable_meta_data() { |
| 2250 | |
| 2251 | if (meta_data_ == nullptr) { |
| 2252 | auto* p = CreateMaybeMessage<::dmi::MetricMetaData>(GetArenaNoVirtual()); |
| 2253 | meta_data_ = p; |
| 2254 | } |
| 2255 | // @@protoc_insertion_point(field_mutable:dmi.GetMetricRequest.meta_data) |
| 2256 | return meta_data_; |
| 2257 | } |
| 2258 | inline void GetMetricRequest::set_allocated_meta_data(::dmi::MetricMetaData* meta_data) { |
| 2259 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2260 | if (message_arena == nullptr) { |
| 2261 | delete meta_data_; |
| 2262 | } |
| 2263 | if (meta_data) { |
| 2264 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2265 | if (message_arena != submessage_arena) { |
| 2266 | meta_data = ::google::protobuf::internal::GetOwnedMessage( |
| 2267 | message_arena, meta_data, submessage_arena); |
| 2268 | } |
| 2269 | |
| 2270 | } else { |
| 2271 | |
| 2272 | } |
| 2273 | meta_data_ = meta_data; |
| 2274 | // @@protoc_insertion_point(field_set_allocated:dmi.GetMetricRequest.meta_data) |
| 2275 | } |
| 2276 | |
| 2277 | // .dmi.MetricNames metric_id = 2; |
| 2278 | inline void GetMetricRequest::clear_metric_id() { |
| 2279 | metric_id_ = 0; |
| 2280 | } |
| 2281 | inline ::dmi::MetricNames GetMetricRequest::metric_id() const { |
| 2282 | // @@protoc_insertion_point(field_get:dmi.GetMetricRequest.metric_id) |
| 2283 | return static_cast< ::dmi::MetricNames >(metric_id_); |
| 2284 | } |
| 2285 | inline void GetMetricRequest::set_metric_id(::dmi::MetricNames value) { |
| 2286 | |
| 2287 | metric_id_ = value; |
| 2288 | // @@protoc_insertion_point(field_set:dmi.GetMetricRequest.metric_id) |
| 2289 | } |
| 2290 | |
| 2291 | // ------------------------------------------------------------------- |
| 2292 | |
| 2293 | // GetMetricResponse |
| 2294 | |
| 2295 | // .dmi.Status status = 1; |
| 2296 | inline void GetMetricResponse::clear_status() { |
| 2297 | status_ = 0; |
| 2298 | } |
| 2299 | inline ::dmi::Status GetMetricResponse::status() const { |
| 2300 | // @@protoc_insertion_point(field_get:dmi.GetMetricResponse.status) |
| 2301 | return static_cast< ::dmi::Status >(status_); |
| 2302 | } |
| 2303 | inline void GetMetricResponse::set_status(::dmi::Status value) { |
| 2304 | |
| 2305 | status_ = value; |
| 2306 | // @@protoc_insertion_point(field_set:dmi.GetMetricResponse.status) |
| 2307 | } |
| 2308 | |
| 2309 | // .dmi.GetMetricResponse.Reason reason = 2; |
| 2310 | inline void GetMetricResponse::clear_reason() { |
| 2311 | reason_ = 0; |
| 2312 | } |
| 2313 | inline ::dmi::GetMetricResponse_Reason GetMetricResponse::reason() const { |
| 2314 | // @@protoc_insertion_point(field_get:dmi.GetMetricResponse.reason) |
| 2315 | return static_cast< ::dmi::GetMetricResponse_Reason >(reason_); |
| 2316 | } |
| 2317 | inline void GetMetricResponse::set_reason(::dmi::GetMetricResponse_Reason value) { |
| 2318 | |
| 2319 | reason_ = value; |
| 2320 | // @@protoc_insertion_point(field_set:dmi.GetMetricResponse.reason) |
| 2321 | } |
| 2322 | |
| 2323 | // .dmi.Metric metric = 3; |
| 2324 | inline bool GetMetricResponse::has_metric() const { |
| 2325 | return this != internal_default_instance() && metric_ != nullptr; |
| 2326 | } |
| 2327 | inline void GetMetricResponse::clear_metric() { |
| 2328 | if (GetArenaNoVirtual() == nullptr && metric_ != nullptr) { |
| 2329 | delete metric_; |
| 2330 | } |
| 2331 | metric_ = nullptr; |
| 2332 | } |
| 2333 | inline const ::dmi::Metric& GetMetricResponse::metric() const { |
| 2334 | const ::dmi::Metric* p = metric_; |
| 2335 | // @@protoc_insertion_point(field_get:dmi.GetMetricResponse.metric) |
| 2336 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Metric*>( |
| 2337 | &::dmi::_Metric_default_instance_); |
| 2338 | } |
| 2339 | inline ::dmi::Metric* GetMetricResponse::release_metric() { |
| 2340 | // @@protoc_insertion_point(field_release:dmi.GetMetricResponse.metric) |
| 2341 | |
| 2342 | ::dmi::Metric* temp = metric_; |
| 2343 | metric_ = nullptr; |
| 2344 | return temp; |
| 2345 | } |
| 2346 | inline ::dmi::Metric* GetMetricResponse::mutable_metric() { |
| 2347 | |
| 2348 | if (metric_ == nullptr) { |
| 2349 | auto* p = CreateMaybeMessage<::dmi::Metric>(GetArenaNoVirtual()); |
| 2350 | metric_ = p; |
| 2351 | } |
| 2352 | // @@protoc_insertion_point(field_mutable:dmi.GetMetricResponse.metric) |
| 2353 | return metric_; |
| 2354 | } |
| 2355 | inline void GetMetricResponse::set_allocated_metric(::dmi::Metric* metric) { |
| 2356 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2357 | if (message_arena == nullptr) { |
| 2358 | delete metric_; |
| 2359 | } |
| 2360 | if (metric) { |
| 2361 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2362 | if (message_arena != submessage_arena) { |
| 2363 | metric = ::google::protobuf::internal::GetOwnedMessage( |
| 2364 | message_arena, metric, submessage_arena); |
| 2365 | } |
| 2366 | |
| 2367 | } else { |
| 2368 | |
| 2369 | } |
| 2370 | metric_ = metric; |
| 2371 | // @@protoc_insertion_point(field_set_allocated:dmi.GetMetricResponse.metric) |
| 2372 | } |
| 2373 | |
| 2374 | // string reason_detail = 4; |
| 2375 | inline void GetMetricResponse::clear_reason_detail() { |
| 2376 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2377 | } |
| 2378 | inline const ::std::string& GetMetricResponse::reason_detail() const { |
| 2379 | // @@protoc_insertion_point(field_get:dmi.GetMetricResponse.reason_detail) |
| 2380 | return reason_detail_.GetNoArena(); |
| 2381 | } |
| 2382 | inline void GetMetricResponse::set_reason_detail(const ::std::string& value) { |
| 2383 | |
| 2384 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2385 | // @@protoc_insertion_point(field_set:dmi.GetMetricResponse.reason_detail) |
| 2386 | } |
| 2387 | #if LANG_CXX11 |
| 2388 | inline void GetMetricResponse::set_reason_detail(::std::string&& value) { |
| 2389 | |
| 2390 | reason_detail_.SetNoArena( |
| 2391 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2392 | // @@protoc_insertion_point(field_set_rvalue:dmi.GetMetricResponse.reason_detail) |
| 2393 | } |
| 2394 | #endif |
| 2395 | inline void GetMetricResponse::set_reason_detail(const char* value) { |
| 2396 | GOOGLE_DCHECK(value != nullptr); |
| 2397 | |
| 2398 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2399 | // @@protoc_insertion_point(field_set_char:dmi.GetMetricResponse.reason_detail) |
| 2400 | } |
| 2401 | inline void GetMetricResponse::set_reason_detail(const char* value, size_t size) { |
| 2402 | |
| 2403 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2404 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2405 | // @@protoc_insertion_point(field_set_pointer:dmi.GetMetricResponse.reason_detail) |
| 2406 | } |
| 2407 | inline ::std::string* GetMetricResponse::mutable_reason_detail() { |
| 2408 | |
| 2409 | // @@protoc_insertion_point(field_mutable:dmi.GetMetricResponse.reason_detail) |
| 2410 | return reason_detail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2411 | } |
| 2412 | inline ::std::string* GetMetricResponse::release_reason_detail() { |
| 2413 | // @@protoc_insertion_point(field_release:dmi.GetMetricResponse.reason_detail) |
| 2414 | |
| 2415 | return reason_detail_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2416 | } |
| 2417 | inline void GetMetricResponse::set_allocated_reason_detail(::std::string* reason_detail) { |
| 2418 | if (reason_detail != nullptr) { |
| 2419 | |
| 2420 | } else { |
| 2421 | |
| 2422 | } |
| 2423 | reason_detail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason_detail); |
| 2424 | // @@protoc_insertion_point(field_set_allocated:dmi.GetMetricResponse.reason_detail) |
| 2425 | } |
| 2426 | |
| 2427 | #ifdef __GNUC__ |
| 2428 | #pragma GCC diagnostic pop |
| 2429 | #endif // __GNUC__ |
| 2430 | // ------------------------------------------------------------------- |
| 2431 | |
| 2432 | // ------------------------------------------------------------------- |
| 2433 | |
| 2434 | // ------------------------------------------------------------------- |
| 2435 | |
| 2436 | // ------------------------------------------------------------------- |
| 2437 | |
| 2438 | // ------------------------------------------------------------------- |
| 2439 | |
| 2440 | // ------------------------------------------------------------------- |
| 2441 | |
| 2442 | // ------------------------------------------------------------------- |
| 2443 | |
| 2444 | // ------------------------------------------------------------------- |
| 2445 | |
| 2446 | |
| 2447 | // @@protoc_insertion_point(namespace_scope) |
| 2448 | |
| 2449 | } // namespace dmi |
| 2450 | |
| 2451 | namespace google { |
| 2452 | namespace protobuf { |
| 2453 | |
| 2454 | template <> struct is_proto_enum< ::dmi::ListMetricsResponse_Reason> : ::std::true_type {}; |
| 2455 | template <> |
| 2456 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ListMetricsResponse_Reason>() { |
| 2457 | return ::dmi::ListMetricsResponse_Reason_descriptor(); |
| 2458 | } |
| 2459 | template <> struct is_proto_enum< ::dmi::MetricsConfigurationResponse_Reason> : ::std::true_type {}; |
| 2460 | template <> |
| 2461 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::MetricsConfigurationResponse_Reason>() { |
| 2462 | return ::dmi::MetricsConfigurationResponse_Reason_descriptor(); |
| 2463 | } |
| 2464 | template <> struct is_proto_enum< ::dmi::GetMetricResponse_Reason> : ::std::true_type {}; |
| 2465 | template <> |
| 2466 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::GetMetricResponse_Reason>() { |
| 2467 | return ::dmi::GetMetricResponse_Reason_descriptor(); |
| 2468 | } |
| 2469 | template <> struct is_proto_enum< ::dmi::MetricNames> : ::std::true_type {}; |
| 2470 | template <> |
| 2471 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::MetricNames>() { |
| 2472 | return ::dmi::MetricNames_descriptor(); |
| 2473 | } |
| 2474 | |
| 2475 | } // namespace protobuf |
| 2476 | } // namespace google |
| 2477 | |
| 2478 | // @@protoc_insertion_point(global_scope) |
| 2479 | |
| 2480 | #include <google/protobuf/port_undef.inc> |
| 2481 | #endif // PROTOBUF_INCLUDED_dmi_2fhw_5fmetrics_5fmgmt_5fservice_2eproto |