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