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