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_events_mgmt_service.proto |
| 3 | |
| 4 | #ifndef PROTOBUF_INCLUDED_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto |
| 5 | #define PROTOBUF_INCLUDED_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto |
| 6 | |
| 7 | #include <limits> |
| 8 | #include <string> |
| 9 | |
| 10 | #include <google/protobuf/port_def.inc> |
| 11 | #if PROTOBUF_VERSION < 3007000 |
| 12 | #error This file was generated by a newer version of protoc which is |
| 13 | #error incompatible with your Protocol Buffer headers. Please update |
| 14 | #error your headers. |
| 15 | #endif |
| 16 | #if 3007000 < PROTOBUF_MIN_PROTOC_VERSION |
| 17 | #error This file was generated by an older version of protoc which is |
| 18 | #error incompatible with your Protocol Buffer headers. Please |
| 19 | #error regenerate this file with a newer version of protoc. |
| 20 | #endif |
| 21 | |
| 22 | #include <google/protobuf/port_undef.inc> |
| 23 | #include <google/protobuf/io/coded_stream.h> |
| 24 | #include <google/protobuf/arena.h> |
| 25 | #include <google/protobuf/arenastring.h> |
| 26 | #include <google/protobuf/generated_message_table_driven.h> |
| 27 | #include <google/protobuf/generated_message_util.h> |
| 28 | #include <google/protobuf/inlined_string_field.h> |
| 29 | #include <google/protobuf/metadata.h> |
| 30 | #include <google/protobuf/message.h> |
| 31 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
| 32 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
| 33 | #include <google/protobuf/generated_enum_reflection.h> |
| 34 | #include <google/protobuf/unknown_field_set.h> |
| 35 | #include "dmi/commons.pb.h" |
| 36 | #include "dmi/hw.pb.h" |
| 37 | #include <google/protobuf/timestamp.pb.h> |
| 38 | // @@protoc_insertion_point(includes) |
| 39 | #include <google/protobuf/port_def.inc> |
| 40 | #define PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto |
| 41 | |
| 42 | // Internal implementation detail -- do not use these members. |
| 43 | struct TableStruct_dmi_2fhw_5fevents_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[11] |
| 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_5fevents_5fmgmt_5fservice_2eproto(); |
| 55 | namespace dmi { |
| 56 | class Event; |
| 57 | class EventDefaultTypeInternal; |
| 58 | extern EventDefaultTypeInternal _Event_default_instance_; |
| 59 | class EventCfg; |
| 60 | class EventCfgDefaultTypeInternal; |
| 61 | extern EventCfgDefaultTypeInternal _EventCfg_default_instance_; |
| 62 | class EventMetaData; |
| 63 | class EventMetaDataDefaultTypeInternal; |
| 64 | extern EventMetaDataDefaultTypeInternal _EventMetaData_default_instance_; |
| 65 | class EventsCfg; |
| 66 | class EventsCfgDefaultTypeInternal; |
| 67 | extern EventsCfgDefaultTypeInternal _EventsCfg_default_instance_; |
| 68 | class EventsConfigurationRequest; |
| 69 | class EventsConfigurationRequestDefaultTypeInternal; |
| 70 | extern EventsConfigurationRequestDefaultTypeInternal _EventsConfigurationRequest_default_instance_; |
| 71 | class EventsConfigurationResponse; |
| 72 | class EventsConfigurationResponseDefaultTypeInternal; |
| 73 | extern EventsConfigurationResponseDefaultTypeInternal _EventsConfigurationResponse_default_instance_; |
| 74 | class ListEventsResponse; |
| 75 | class ListEventsResponseDefaultTypeInternal; |
| 76 | extern ListEventsResponseDefaultTypeInternal _ListEventsResponse_default_instance_; |
| 77 | class ThresholdInformation; |
| 78 | class ThresholdInformationDefaultTypeInternal; |
| 79 | extern ThresholdInformationDefaultTypeInternal _ThresholdInformation_default_instance_; |
| 80 | class Thresholds; |
| 81 | class ThresholdsDefaultTypeInternal; |
| 82 | extern ThresholdsDefaultTypeInternal _Thresholds_default_instance_; |
| 83 | class ValueType; |
| 84 | class ValueTypeDefaultTypeInternal; |
| 85 | extern ValueTypeDefaultTypeInternal _ValueType_default_instance_; |
| 86 | class WaterMarks; |
| 87 | class WaterMarksDefaultTypeInternal; |
| 88 | extern WaterMarksDefaultTypeInternal _WaterMarks_default_instance_; |
| 89 | } // namespace dmi |
| 90 | namespace google { |
| 91 | namespace protobuf { |
| 92 | template<> ::dmi::Event* Arena::CreateMaybeMessage<::dmi::Event>(Arena*); |
| 93 | template<> ::dmi::EventCfg* Arena::CreateMaybeMessage<::dmi::EventCfg>(Arena*); |
| 94 | template<> ::dmi::EventMetaData* Arena::CreateMaybeMessage<::dmi::EventMetaData>(Arena*); |
| 95 | template<> ::dmi::EventsCfg* Arena::CreateMaybeMessage<::dmi::EventsCfg>(Arena*); |
| 96 | template<> ::dmi::EventsConfigurationRequest* Arena::CreateMaybeMessage<::dmi::EventsConfigurationRequest>(Arena*); |
| 97 | template<> ::dmi::EventsConfigurationResponse* Arena::CreateMaybeMessage<::dmi::EventsConfigurationResponse>(Arena*); |
| 98 | template<> ::dmi::ListEventsResponse* Arena::CreateMaybeMessage<::dmi::ListEventsResponse>(Arena*); |
| 99 | template<> ::dmi::ThresholdInformation* Arena::CreateMaybeMessage<::dmi::ThresholdInformation>(Arena*); |
| 100 | template<> ::dmi::Thresholds* Arena::CreateMaybeMessage<::dmi::Thresholds>(Arena*); |
| 101 | template<> ::dmi::ValueType* Arena::CreateMaybeMessage<::dmi::ValueType>(Arena*); |
| 102 | template<> ::dmi::WaterMarks* Arena::CreateMaybeMessage<::dmi::WaterMarks>(Arena*); |
| 103 | } // namespace protobuf |
| 104 | } // namespace google |
| 105 | namespace dmi { |
| 106 | |
| 107 | enum ListEventsResponse_Reason { |
| 108 | ListEventsResponse_Reason_UNDEFINED_REASON = 0, |
| 109 | ListEventsResponse_Reason_UNKNOWN_DEVICE = 1, |
| 110 | ListEventsResponse_Reason_INTERNAL_ERROR = 2, |
| 111 | ListEventsResponse_Reason_DEVICE_UNREACHABLE = 3, |
| 112 | ListEventsResponse_Reason_ListEventsResponse_Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 113 | ListEventsResponse_Reason_ListEventsResponse_Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 114 | }; |
| 115 | bool ListEventsResponse_Reason_IsValid(int value); |
| 116 | const ListEventsResponse_Reason ListEventsResponse_Reason_Reason_MIN = ListEventsResponse_Reason_UNDEFINED_REASON; |
| 117 | const ListEventsResponse_Reason ListEventsResponse_Reason_Reason_MAX = ListEventsResponse_Reason_DEVICE_UNREACHABLE; |
| 118 | const int ListEventsResponse_Reason_Reason_ARRAYSIZE = ListEventsResponse_Reason_Reason_MAX + 1; |
| 119 | |
| 120 | const ::google::protobuf::EnumDescriptor* ListEventsResponse_Reason_descriptor(); |
| 121 | inline const ::std::string& ListEventsResponse_Reason_Name(ListEventsResponse_Reason value) { |
| 122 | return ::google::protobuf::internal::NameOfEnum( |
| 123 | ListEventsResponse_Reason_descriptor(), value); |
| 124 | } |
| 125 | inline bool ListEventsResponse_Reason_Parse( |
| 126 | const ::std::string& name, ListEventsResponse_Reason* value) { |
| 127 | return ::google::protobuf::internal::ParseNamedEnum<ListEventsResponse_Reason>( |
| 128 | ListEventsResponse_Reason_descriptor(), name, value); |
| 129 | } |
| 130 | enum EventsConfigurationResponse_Reason { |
| 131 | EventsConfigurationResponse_Reason_UNDEFINED_REASON = 0, |
| 132 | EventsConfigurationResponse_Reason_UNKNOWN_DEVICE = 1, |
| 133 | EventsConfigurationResponse_Reason_INTERNAL_ERROR = 2, |
| 134 | EventsConfigurationResponse_Reason_INVALID_CONFIG = 3, |
| 135 | EventsConfigurationResponse_Reason_DEVICE_UNREACHABLE = 4, |
| 136 | EventsConfigurationResponse_Reason_EventsConfigurationResponse_Reason_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 137 | EventsConfigurationResponse_Reason_EventsConfigurationResponse_Reason_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 138 | }; |
| 139 | bool EventsConfigurationResponse_Reason_IsValid(int value); |
| 140 | const EventsConfigurationResponse_Reason EventsConfigurationResponse_Reason_Reason_MIN = EventsConfigurationResponse_Reason_UNDEFINED_REASON; |
| 141 | const EventsConfigurationResponse_Reason EventsConfigurationResponse_Reason_Reason_MAX = EventsConfigurationResponse_Reason_DEVICE_UNREACHABLE; |
| 142 | const int EventsConfigurationResponse_Reason_Reason_ARRAYSIZE = EventsConfigurationResponse_Reason_Reason_MAX + 1; |
| 143 | |
| 144 | const ::google::protobuf::EnumDescriptor* EventsConfigurationResponse_Reason_descriptor(); |
| 145 | inline const ::std::string& EventsConfigurationResponse_Reason_Name(EventsConfigurationResponse_Reason value) { |
| 146 | return ::google::protobuf::internal::NameOfEnum( |
| 147 | EventsConfigurationResponse_Reason_descriptor(), value); |
| 148 | } |
| 149 | inline bool EventsConfigurationResponse_Reason_Parse( |
| 150 | const ::std::string& name, EventsConfigurationResponse_Reason* value) { |
| 151 | return ::google::protobuf::internal::ParseNamedEnum<EventsConfigurationResponse_Reason>( |
| 152 | EventsConfigurationResponse_Reason_descriptor(), name, value); |
| 153 | } |
| 154 | enum EventIds { |
| 155 | EVENT_NAME_UNDEFINED = 0, |
| 156 | EVENT_TRANSCEIVER_PLUG_OUT = 100, |
| 157 | EVENT_TRANSCEIVER_PLUG_IN = 101, |
| 158 | EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD = 102, |
| 159 | EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD = 103, |
| 160 | EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD = 104, |
| 161 | EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD = 105, |
| 162 | EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD = 106, |
| 163 | EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD = 107, |
| 164 | EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD = 108, |
| 165 | EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD = 109, |
| 166 | EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD = 110, |
| 167 | EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD = 111, |
| 168 | EVENT_TRANSCEIVER_FAILURE = 112, |
| 169 | EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED = 113, |
| 170 | EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED = 114, |
| 171 | EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED = 115, |
| 172 | EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED = 116, |
| 173 | EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED = 117, |
| 174 | EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED = 118, |
| 175 | EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED = 119, |
| 176 | EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED = 120, |
| 177 | EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED = 121, |
| 178 | EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED = 122, |
| 179 | EVENT_TRANSCEIVER_FAILURE_RECOVERED = 123, |
| 180 | EVENT_PSU_PLUG_OUT = 200, |
| 181 | EVENT_PSU_PLUG_IN = 201, |
| 182 | EVENT_PSU_FAILURE = 202, |
| 183 | EVENT_PSU_FAILURE_RECOVERED = 203, |
| 184 | EVENT_FAN_FAILURE = 300, |
| 185 | EVENT_FAN_PLUG_OUT = 301, |
| 186 | EVENT_FAN_PLUG_IN = 302, |
| 187 | EVENT_FAN_FAILURE_RECOVERED = 303, |
| 188 | EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL = 400, |
| 189 | EVENT_CPU_TEMPERATURE_ABOVE_FATAL = 401, |
| 190 | EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED = 402, |
| 191 | EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED = 403, |
| 192 | EVENT_HW_DEVICE_RESET = 500, |
| 193 | EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL = 501, |
| 194 | EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL = 502, |
| 195 | EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED = 503, |
| 196 | EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED = 504, |
| 197 | EventIds_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), |
| 198 | EventIds_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() |
| 199 | }; |
| 200 | bool EventIds_IsValid(int value); |
| 201 | const EventIds EventIds_MIN = EVENT_NAME_UNDEFINED; |
| 202 | const EventIds EventIds_MAX = EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED; |
| 203 | const int EventIds_ARRAYSIZE = EventIds_MAX + 1; |
| 204 | |
| 205 | const ::google::protobuf::EnumDescriptor* EventIds_descriptor(); |
| 206 | inline const ::std::string& EventIds_Name(EventIds value) { |
| 207 | return ::google::protobuf::internal::NameOfEnum( |
| 208 | EventIds_descriptor(), value); |
| 209 | } |
| 210 | inline bool EventIds_Parse( |
| 211 | const ::std::string& name, EventIds* value) { |
| 212 | return ::google::protobuf::internal::ParseNamedEnum<EventIds>( |
| 213 | EventIds_descriptor(), name, value); |
| 214 | } |
| 215 | // =================================================================== |
| 216 | |
| 217 | class ValueType final : |
| 218 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ValueType) */ { |
| 219 | public: |
| 220 | ValueType(); |
| 221 | virtual ~ValueType(); |
| 222 | |
| 223 | ValueType(const ValueType& from); |
| 224 | |
| 225 | inline ValueType& operator=(const ValueType& from) { |
| 226 | CopyFrom(from); |
| 227 | return *this; |
| 228 | } |
| 229 | #if LANG_CXX11 |
| 230 | ValueType(ValueType&& from) noexcept |
| 231 | : ValueType() { |
| 232 | *this = ::std::move(from); |
| 233 | } |
| 234 | |
| 235 | inline ValueType& operator=(ValueType&& from) noexcept { |
| 236 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 237 | if (this != &from) InternalSwap(&from); |
| 238 | } else { |
| 239 | CopyFrom(from); |
| 240 | } |
| 241 | return *this; |
| 242 | } |
| 243 | #endif |
| 244 | static const ::google::protobuf::Descriptor* descriptor() { |
| 245 | return default_instance().GetDescriptor(); |
| 246 | } |
| 247 | static const ValueType& default_instance(); |
| 248 | |
| 249 | enum ValCase { |
| 250 | kIntVal = 1, |
| 251 | kUintVal = 2, |
| 252 | kFloatVal = 3, |
| 253 | VAL_NOT_SET = 0, |
| 254 | }; |
| 255 | |
| 256 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 257 | static inline const ValueType* internal_default_instance() { |
| 258 | return reinterpret_cast<const ValueType*>( |
| 259 | &_ValueType_default_instance_); |
| 260 | } |
| 261 | static constexpr int kIndexInFileMessages = |
| 262 | 0; |
| 263 | |
| 264 | void Swap(ValueType* other); |
| 265 | friend void swap(ValueType& a, ValueType& b) { |
| 266 | a.Swap(&b); |
| 267 | } |
| 268 | |
| 269 | // implements Message ---------------------------------------------- |
| 270 | |
| 271 | inline ValueType* New() const final { |
| 272 | return CreateMaybeMessage<ValueType>(nullptr); |
| 273 | } |
| 274 | |
| 275 | ValueType* New(::google::protobuf::Arena* arena) const final { |
| 276 | return CreateMaybeMessage<ValueType>(arena); |
| 277 | } |
| 278 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 279 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 280 | void CopyFrom(const ValueType& from); |
| 281 | void MergeFrom(const ValueType& from); |
| 282 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 283 | bool IsInitialized() const final; |
| 284 | |
| 285 | size_t ByteSizeLong() const final; |
| 286 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 287 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 288 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 289 | #else |
| 290 | bool MergePartialFromCodedStream( |
| 291 | ::google::protobuf::io::CodedInputStream* input) final; |
| 292 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 293 | void SerializeWithCachedSizes( |
| 294 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 295 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 296 | ::google::protobuf::uint8* target) const final; |
| 297 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 298 | |
| 299 | private: |
| 300 | void SharedCtor(); |
| 301 | void SharedDtor(); |
| 302 | void SetCachedSize(int size) const final; |
| 303 | void InternalSwap(ValueType* other); |
| 304 | private: |
| 305 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 306 | return nullptr; |
| 307 | } |
| 308 | inline void* MaybeArenaPtr() const { |
| 309 | return nullptr; |
| 310 | } |
| 311 | public: |
| 312 | |
| 313 | ::google::protobuf::Metadata GetMetadata() const final; |
| 314 | |
| 315 | // nested types ---------------------------------------------------- |
| 316 | |
| 317 | // accessors ------------------------------------------------------- |
| 318 | |
| 319 | // int64 int_val = 1; |
| 320 | private: |
| 321 | bool has_int_val() const; |
| 322 | public: |
| 323 | void clear_int_val(); |
| 324 | static const int kIntValFieldNumber = 1; |
| 325 | ::google::protobuf::int64 int_val() const; |
| 326 | void set_int_val(::google::protobuf::int64 value); |
| 327 | |
| 328 | // uint64 uint_val = 2; |
| 329 | private: |
| 330 | bool has_uint_val() const; |
| 331 | public: |
| 332 | void clear_uint_val(); |
| 333 | static const int kUintValFieldNumber = 2; |
| 334 | ::google::protobuf::uint64 uint_val() const; |
| 335 | void set_uint_val(::google::protobuf::uint64 value); |
| 336 | |
| 337 | // float float_val = 3; |
| 338 | private: |
| 339 | bool has_float_val() const; |
| 340 | public: |
| 341 | void clear_float_val(); |
| 342 | static const int kFloatValFieldNumber = 3; |
| 343 | float float_val() const; |
| 344 | void set_float_val(float value); |
| 345 | |
| 346 | void clear_val(); |
| 347 | ValCase val_case() const; |
| 348 | // @@protoc_insertion_point(class_scope:dmi.ValueType) |
| 349 | private: |
| 350 | class HasBitSetters; |
| 351 | void set_has_int_val(); |
| 352 | void set_has_uint_val(); |
| 353 | void set_has_float_val(); |
| 354 | |
| 355 | inline bool has_val() const; |
| 356 | inline void clear_has_val(); |
| 357 | |
| 358 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 359 | union ValUnion { |
| 360 | ValUnion() {} |
| 361 | ::google::protobuf::int64 int_val_; |
| 362 | ::google::protobuf::uint64 uint_val_; |
| 363 | float float_val_; |
| 364 | } val_; |
| 365 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 366 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 367 | |
| 368 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 369 | }; |
| 370 | // ------------------------------------------------------------------- |
| 371 | |
| 372 | class WaterMarks final : |
| 373 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.WaterMarks) */ { |
| 374 | public: |
| 375 | WaterMarks(); |
| 376 | virtual ~WaterMarks(); |
| 377 | |
| 378 | WaterMarks(const WaterMarks& from); |
| 379 | |
| 380 | inline WaterMarks& operator=(const WaterMarks& from) { |
| 381 | CopyFrom(from); |
| 382 | return *this; |
| 383 | } |
| 384 | #if LANG_CXX11 |
| 385 | WaterMarks(WaterMarks&& from) noexcept |
| 386 | : WaterMarks() { |
| 387 | *this = ::std::move(from); |
| 388 | } |
| 389 | |
| 390 | inline WaterMarks& operator=(WaterMarks&& from) noexcept { |
| 391 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 392 | if (this != &from) InternalSwap(&from); |
| 393 | } else { |
| 394 | CopyFrom(from); |
| 395 | } |
| 396 | return *this; |
| 397 | } |
| 398 | #endif |
| 399 | static const ::google::protobuf::Descriptor* descriptor() { |
| 400 | return default_instance().GetDescriptor(); |
| 401 | } |
| 402 | static const WaterMarks& default_instance(); |
| 403 | |
| 404 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 405 | static inline const WaterMarks* internal_default_instance() { |
| 406 | return reinterpret_cast<const WaterMarks*>( |
| 407 | &_WaterMarks_default_instance_); |
| 408 | } |
| 409 | static constexpr int kIndexInFileMessages = |
| 410 | 1; |
| 411 | |
| 412 | void Swap(WaterMarks* other); |
| 413 | friend void swap(WaterMarks& a, WaterMarks& b) { |
| 414 | a.Swap(&b); |
| 415 | } |
| 416 | |
| 417 | // implements Message ---------------------------------------------- |
| 418 | |
| 419 | inline WaterMarks* New() const final { |
| 420 | return CreateMaybeMessage<WaterMarks>(nullptr); |
| 421 | } |
| 422 | |
| 423 | WaterMarks* New(::google::protobuf::Arena* arena) const final { |
| 424 | return CreateMaybeMessage<WaterMarks>(arena); |
| 425 | } |
| 426 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 427 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 428 | void CopyFrom(const WaterMarks& from); |
| 429 | void MergeFrom(const WaterMarks& from); |
| 430 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 431 | bool IsInitialized() const final; |
| 432 | |
| 433 | size_t ByteSizeLong() const final; |
| 434 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 435 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 436 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 437 | #else |
| 438 | bool MergePartialFromCodedStream( |
| 439 | ::google::protobuf::io::CodedInputStream* input) final; |
| 440 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 441 | void SerializeWithCachedSizes( |
| 442 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 443 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 444 | ::google::protobuf::uint8* target) const final; |
| 445 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 446 | |
| 447 | private: |
| 448 | void SharedCtor(); |
| 449 | void SharedDtor(); |
| 450 | void SetCachedSize(int size) const final; |
| 451 | void InternalSwap(WaterMarks* other); |
| 452 | private: |
| 453 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 454 | return nullptr; |
| 455 | } |
| 456 | inline void* MaybeArenaPtr() const { |
| 457 | return nullptr; |
| 458 | } |
| 459 | public: |
| 460 | |
| 461 | ::google::protobuf::Metadata GetMetadata() const final; |
| 462 | |
| 463 | // nested types ---------------------------------------------------- |
| 464 | |
| 465 | // accessors ------------------------------------------------------- |
| 466 | |
| 467 | // .dmi.ValueType high = 1; |
| 468 | bool has_high() const; |
| 469 | void clear_high(); |
| 470 | static const int kHighFieldNumber = 1; |
| 471 | const ::dmi::ValueType& high() const; |
| 472 | ::dmi::ValueType* release_high(); |
| 473 | ::dmi::ValueType* mutable_high(); |
| 474 | void set_allocated_high(::dmi::ValueType* high); |
| 475 | |
| 476 | // .dmi.ValueType low = 2; |
| 477 | bool has_low() const; |
| 478 | void clear_low(); |
| 479 | static const int kLowFieldNumber = 2; |
| 480 | const ::dmi::ValueType& low() const; |
| 481 | ::dmi::ValueType* release_low(); |
| 482 | ::dmi::ValueType* mutable_low(); |
| 483 | void set_allocated_low(::dmi::ValueType* low); |
| 484 | |
| 485 | // @@protoc_insertion_point(class_scope:dmi.WaterMarks) |
| 486 | private: |
| 487 | class HasBitSetters; |
| 488 | |
| 489 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 490 | ::dmi::ValueType* high_; |
| 491 | ::dmi::ValueType* low_; |
| 492 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 493 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 494 | }; |
| 495 | // ------------------------------------------------------------------- |
| 496 | |
| 497 | class Thresholds final : |
| 498 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Thresholds) */ { |
| 499 | public: |
| 500 | Thresholds(); |
| 501 | virtual ~Thresholds(); |
| 502 | |
| 503 | Thresholds(const Thresholds& from); |
| 504 | |
| 505 | inline Thresholds& operator=(const Thresholds& from) { |
| 506 | CopyFrom(from); |
| 507 | return *this; |
| 508 | } |
| 509 | #if LANG_CXX11 |
| 510 | Thresholds(Thresholds&& from) noexcept |
| 511 | : Thresholds() { |
| 512 | *this = ::std::move(from); |
| 513 | } |
| 514 | |
| 515 | inline Thresholds& operator=(Thresholds&& from) noexcept { |
| 516 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 517 | if (this != &from) InternalSwap(&from); |
| 518 | } else { |
| 519 | CopyFrom(from); |
| 520 | } |
| 521 | return *this; |
| 522 | } |
| 523 | #endif |
| 524 | static const ::google::protobuf::Descriptor* descriptor() { |
| 525 | return default_instance().GetDescriptor(); |
| 526 | } |
| 527 | static const Thresholds& default_instance(); |
| 528 | |
| 529 | enum ThresholdCase { |
| 530 | kUpper = 1, |
| 531 | kLower = 2, |
| 532 | THRESHOLD_NOT_SET = 0, |
| 533 | }; |
| 534 | |
| 535 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 536 | static inline const Thresholds* internal_default_instance() { |
| 537 | return reinterpret_cast<const Thresholds*>( |
| 538 | &_Thresholds_default_instance_); |
| 539 | } |
| 540 | static constexpr int kIndexInFileMessages = |
| 541 | 2; |
| 542 | |
| 543 | void Swap(Thresholds* other); |
| 544 | friend void swap(Thresholds& a, Thresholds& b) { |
| 545 | a.Swap(&b); |
| 546 | } |
| 547 | |
| 548 | // implements Message ---------------------------------------------- |
| 549 | |
| 550 | inline Thresholds* New() const final { |
| 551 | return CreateMaybeMessage<Thresholds>(nullptr); |
| 552 | } |
| 553 | |
| 554 | Thresholds* New(::google::protobuf::Arena* arena) const final { |
| 555 | return CreateMaybeMessage<Thresholds>(arena); |
| 556 | } |
| 557 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 558 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 559 | void CopyFrom(const Thresholds& from); |
| 560 | void MergeFrom(const Thresholds& from); |
| 561 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 562 | bool IsInitialized() const final; |
| 563 | |
| 564 | size_t ByteSizeLong() const final; |
| 565 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 566 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 567 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 568 | #else |
| 569 | bool MergePartialFromCodedStream( |
| 570 | ::google::protobuf::io::CodedInputStream* input) final; |
| 571 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 572 | void SerializeWithCachedSizes( |
| 573 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 574 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 575 | ::google::protobuf::uint8* target) const final; |
| 576 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 577 | |
| 578 | private: |
| 579 | void SharedCtor(); |
| 580 | void SharedDtor(); |
| 581 | void SetCachedSize(int size) const final; |
| 582 | void InternalSwap(Thresholds* other); |
| 583 | private: |
| 584 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 585 | return nullptr; |
| 586 | } |
| 587 | inline void* MaybeArenaPtr() const { |
| 588 | return nullptr; |
| 589 | } |
| 590 | public: |
| 591 | |
| 592 | ::google::protobuf::Metadata GetMetadata() const final; |
| 593 | |
| 594 | // nested types ---------------------------------------------------- |
| 595 | |
| 596 | // accessors ------------------------------------------------------- |
| 597 | |
| 598 | // .dmi.WaterMarks upper = 1; |
| 599 | bool has_upper() const; |
| 600 | void clear_upper(); |
| 601 | static const int kUpperFieldNumber = 1; |
| 602 | const ::dmi::WaterMarks& upper() const; |
| 603 | ::dmi::WaterMarks* release_upper(); |
| 604 | ::dmi::WaterMarks* mutable_upper(); |
| 605 | void set_allocated_upper(::dmi::WaterMarks* upper); |
| 606 | |
| 607 | // .dmi.WaterMarks lower = 2; |
| 608 | bool has_lower() const; |
| 609 | void clear_lower(); |
| 610 | static const int kLowerFieldNumber = 2; |
| 611 | const ::dmi::WaterMarks& lower() const; |
| 612 | ::dmi::WaterMarks* release_lower(); |
| 613 | ::dmi::WaterMarks* mutable_lower(); |
| 614 | void set_allocated_lower(::dmi::WaterMarks* lower); |
| 615 | |
| 616 | void clear_threshold(); |
| 617 | ThresholdCase threshold_case() const; |
| 618 | // @@protoc_insertion_point(class_scope:dmi.Thresholds) |
| 619 | private: |
| 620 | class HasBitSetters; |
| 621 | void set_has_upper(); |
| 622 | void set_has_lower(); |
| 623 | |
| 624 | inline bool has_threshold() const; |
| 625 | inline void clear_has_threshold(); |
| 626 | |
| 627 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 628 | union ThresholdUnion { |
| 629 | ThresholdUnion() {} |
| 630 | ::dmi::WaterMarks* upper_; |
| 631 | ::dmi::WaterMarks* lower_; |
| 632 | } threshold_; |
| 633 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 634 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 635 | |
| 636 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 637 | }; |
| 638 | // ------------------------------------------------------------------- |
| 639 | |
| 640 | class ThresholdInformation final : |
| 641 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ThresholdInformation) */ { |
| 642 | public: |
| 643 | ThresholdInformation(); |
| 644 | virtual ~ThresholdInformation(); |
| 645 | |
| 646 | ThresholdInformation(const ThresholdInformation& from); |
| 647 | |
| 648 | inline ThresholdInformation& operator=(const ThresholdInformation& from) { |
| 649 | CopyFrom(from); |
| 650 | return *this; |
| 651 | } |
| 652 | #if LANG_CXX11 |
| 653 | ThresholdInformation(ThresholdInformation&& from) noexcept |
| 654 | : ThresholdInformation() { |
| 655 | *this = ::std::move(from); |
| 656 | } |
| 657 | |
| 658 | inline ThresholdInformation& operator=(ThresholdInformation&& from) noexcept { |
| 659 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 660 | if (this != &from) InternalSwap(&from); |
| 661 | } else { |
| 662 | CopyFrom(from); |
| 663 | } |
| 664 | return *this; |
| 665 | } |
| 666 | #endif |
| 667 | static const ::google::protobuf::Descriptor* descriptor() { |
| 668 | return default_instance().GetDescriptor(); |
| 669 | } |
| 670 | static const ThresholdInformation& default_instance(); |
| 671 | |
| 672 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 673 | static inline const ThresholdInformation* internal_default_instance() { |
| 674 | return reinterpret_cast<const ThresholdInformation*>( |
| 675 | &_ThresholdInformation_default_instance_); |
| 676 | } |
| 677 | static constexpr int kIndexInFileMessages = |
| 678 | 3; |
| 679 | |
| 680 | void Swap(ThresholdInformation* other); |
| 681 | friend void swap(ThresholdInformation& a, ThresholdInformation& b) { |
| 682 | a.Swap(&b); |
| 683 | } |
| 684 | |
| 685 | // implements Message ---------------------------------------------- |
| 686 | |
| 687 | inline ThresholdInformation* New() const final { |
| 688 | return CreateMaybeMessage<ThresholdInformation>(nullptr); |
| 689 | } |
| 690 | |
| 691 | ThresholdInformation* New(::google::protobuf::Arena* arena) const final { |
| 692 | return CreateMaybeMessage<ThresholdInformation>(arena); |
| 693 | } |
| 694 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 695 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 696 | void CopyFrom(const ThresholdInformation& from); |
| 697 | void MergeFrom(const ThresholdInformation& from); |
| 698 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 699 | bool IsInitialized() const final; |
| 700 | |
| 701 | size_t ByteSizeLong() const final; |
| 702 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 703 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 704 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 705 | #else |
| 706 | bool MergePartialFromCodedStream( |
| 707 | ::google::protobuf::io::CodedInputStream* input) final; |
| 708 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 709 | void SerializeWithCachedSizes( |
| 710 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 711 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 712 | ::google::protobuf::uint8* target) const final; |
| 713 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 714 | |
| 715 | private: |
| 716 | void SharedCtor(); |
| 717 | void SharedDtor(); |
| 718 | void SetCachedSize(int size) const final; |
| 719 | void InternalSwap(ThresholdInformation* other); |
| 720 | private: |
| 721 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 722 | return nullptr; |
| 723 | } |
| 724 | inline void* MaybeArenaPtr() const { |
| 725 | return nullptr; |
| 726 | } |
| 727 | public: |
| 728 | |
| 729 | ::google::protobuf::Metadata GetMetadata() const final; |
| 730 | |
| 731 | // nested types ---------------------------------------------------- |
| 732 | |
| 733 | // accessors ------------------------------------------------------- |
| 734 | |
| 735 | // .dmi.ValueType observed_value = 1; |
| 736 | bool has_observed_value() const; |
| 737 | void clear_observed_value(); |
| 738 | static const int kObservedValueFieldNumber = 1; |
| 739 | const ::dmi::ValueType& observed_value() const; |
| 740 | ::dmi::ValueType* release_observed_value(); |
| 741 | ::dmi::ValueType* mutable_observed_value(); |
| 742 | void set_allocated_observed_value(::dmi::ValueType* observed_value); |
| 743 | |
| 744 | // .dmi.Thresholds thresholds = 2; |
| 745 | bool has_thresholds() const; |
| 746 | void clear_thresholds(); |
| 747 | static const int kThresholdsFieldNumber = 2; |
| 748 | const ::dmi::Thresholds& thresholds() const; |
| 749 | ::dmi::Thresholds* release_thresholds(); |
| 750 | ::dmi::Thresholds* mutable_thresholds(); |
| 751 | void set_allocated_thresholds(::dmi::Thresholds* thresholds); |
| 752 | |
| 753 | // @@protoc_insertion_point(class_scope:dmi.ThresholdInformation) |
| 754 | private: |
| 755 | class HasBitSetters; |
| 756 | |
| 757 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 758 | ::dmi::ValueType* observed_value_; |
| 759 | ::dmi::Thresholds* thresholds_; |
| 760 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 761 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 762 | }; |
| 763 | // ------------------------------------------------------------------- |
| 764 | |
| 765 | class EventCfg final : |
| 766 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.EventCfg) */ { |
| 767 | public: |
| 768 | EventCfg(); |
| 769 | virtual ~EventCfg(); |
| 770 | |
| 771 | EventCfg(const EventCfg& from); |
| 772 | |
| 773 | inline EventCfg& operator=(const EventCfg& from) { |
| 774 | CopyFrom(from); |
| 775 | return *this; |
| 776 | } |
| 777 | #if LANG_CXX11 |
| 778 | EventCfg(EventCfg&& from) noexcept |
| 779 | : EventCfg() { |
| 780 | *this = ::std::move(from); |
| 781 | } |
| 782 | |
| 783 | inline EventCfg& operator=(EventCfg&& from) noexcept { |
| 784 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 785 | if (this != &from) InternalSwap(&from); |
| 786 | } else { |
| 787 | CopyFrom(from); |
| 788 | } |
| 789 | return *this; |
| 790 | } |
| 791 | #endif |
| 792 | static const ::google::protobuf::Descriptor* descriptor() { |
| 793 | return default_instance().GetDescriptor(); |
| 794 | } |
| 795 | static const EventCfg& default_instance(); |
| 796 | |
| 797 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 798 | static inline const EventCfg* internal_default_instance() { |
| 799 | return reinterpret_cast<const EventCfg*>( |
| 800 | &_EventCfg_default_instance_); |
| 801 | } |
| 802 | static constexpr int kIndexInFileMessages = |
| 803 | 4; |
| 804 | |
| 805 | void Swap(EventCfg* other); |
| 806 | friend void swap(EventCfg& a, EventCfg& b) { |
| 807 | a.Swap(&b); |
| 808 | } |
| 809 | |
| 810 | // implements Message ---------------------------------------------- |
| 811 | |
| 812 | inline EventCfg* New() const final { |
| 813 | return CreateMaybeMessage<EventCfg>(nullptr); |
| 814 | } |
| 815 | |
| 816 | EventCfg* New(::google::protobuf::Arena* arena) const final { |
| 817 | return CreateMaybeMessage<EventCfg>(arena); |
| 818 | } |
| 819 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 820 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 821 | void CopyFrom(const EventCfg& from); |
| 822 | void MergeFrom(const EventCfg& from); |
| 823 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 824 | bool IsInitialized() const final; |
| 825 | |
| 826 | size_t ByteSizeLong() const final; |
| 827 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 828 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 829 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 830 | #else |
| 831 | bool MergePartialFromCodedStream( |
| 832 | ::google::protobuf::io::CodedInputStream* input) final; |
| 833 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 834 | void SerializeWithCachedSizes( |
| 835 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 836 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 837 | ::google::protobuf::uint8* target) const final; |
| 838 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 839 | |
| 840 | private: |
| 841 | void SharedCtor(); |
| 842 | void SharedDtor(); |
| 843 | void SetCachedSize(int size) const final; |
| 844 | void InternalSwap(EventCfg* other); |
| 845 | private: |
| 846 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 847 | return nullptr; |
| 848 | } |
| 849 | inline void* MaybeArenaPtr() const { |
| 850 | return nullptr; |
| 851 | } |
| 852 | public: |
| 853 | |
| 854 | ::google::protobuf::Metadata GetMetadata() const final; |
| 855 | |
| 856 | // nested types ---------------------------------------------------- |
| 857 | |
| 858 | // accessors ------------------------------------------------------- |
| 859 | |
| 860 | // .dmi.Thresholds thresholds = 3; |
| 861 | bool has_thresholds() const; |
| 862 | void clear_thresholds(); |
| 863 | static const int kThresholdsFieldNumber = 3; |
| 864 | const ::dmi::Thresholds& thresholds() const; |
| 865 | ::dmi::Thresholds* release_thresholds(); |
| 866 | ::dmi::Thresholds* mutable_thresholds(); |
| 867 | void set_allocated_thresholds(::dmi::Thresholds* thresholds); |
| 868 | |
| 869 | // .dmi.EventIds event_id = 1; |
| 870 | void clear_event_id(); |
| 871 | static const int kEventIdFieldNumber = 1; |
| 872 | ::dmi::EventIds event_id() const; |
| 873 | void set_event_id(::dmi::EventIds value); |
| 874 | |
| 875 | // bool is_configured = 2; |
| 876 | void clear_is_configured(); |
| 877 | static const int kIsConfiguredFieldNumber = 2; |
| 878 | bool is_configured() const; |
| 879 | void set_is_configured(bool value); |
| 880 | |
| 881 | // @@protoc_insertion_point(class_scope:dmi.EventCfg) |
| 882 | private: |
| 883 | class HasBitSetters; |
| 884 | |
| 885 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 886 | ::dmi::Thresholds* thresholds_; |
| 887 | int event_id_; |
| 888 | bool is_configured_; |
| 889 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 890 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 891 | }; |
| 892 | // ------------------------------------------------------------------- |
| 893 | |
| 894 | class EventsCfg final : |
| 895 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.EventsCfg) */ { |
| 896 | public: |
| 897 | EventsCfg(); |
| 898 | virtual ~EventsCfg(); |
| 899 | |
| 900 | EventsCfg(const EventsCfg& from); |
| 901 | |
| 902 | inline EventsCfg& operator=(const EventsCfg& from) { |
| 903 | CopyFrom(from); |
| 904 | return *this; |
| 905 | } |
| 906 | #if LANG_CXX11 |
| 907 | EventsCfg(EventsCfg&& from) noexcept |
| 908 | : EventsCfg() { |
| 909 | *this = ::std::move(from); |
| 910 | } |
| 911 | |
| 912 | inline EventsCfg& operator=(EventsCfg&& from) noexcept { |
| 913 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 914 | if (this != &from) InternalSwap(&from); |
| 915 | } else { |
| 916 | CopyFrom(from); |
| 917 | } |
| 918 | return *this; |
| 919 | } |
| 920 | #endif |
| 921 | static const ::google::protobuf::Descriptor* descriptor() { |
| 922 | return default_instance().GetDescriptor(); |
| 923 | } |
| 924 | static const EventsCfg& default_instance(); |
| 925 | |
| 926 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 927 | static inline const EventsCfg* internal_default_instance() { |
| 928 | return reinterpret_cast<const EventsCfg*>( |
| 929 | &_EventsCfg_default_instance_); |
| 930 | } |
| 931 | static constexpr int kIndexInFileMessages = |
| 932 | 5; |
| 933 | |
| 934 | void Swap(EventsCfg* other); |
| 935 | friend void swap(EventsCfg& a, EventsCfg& b) { |
| 936 | a.Swap(&b); |
| 937 | } |
| 938 | |
| 939 | // implements Message ---------------------------------------------- |
| 940 | |
| 941 | inline EventsCfg* New() const final { |
| 942 | return CreateMaybeMessage<EventsCfg>(nullptr); |
| 943 | } |
| 944 | |
| 945 | EventsCfg* New(::google::protobuf::Arena* arena) const final { |
| 946 | return CreateMaybeMessage<EventsCfg>(arena); |
| 947 | } |
| 948 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 949 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 950 | void CopyFrom(const EventsCfg& from); |
| 951 | void MergeFrom(const EventsCfg& from); |
| 952 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 953 | bool IsInitialized() const final; |
| 954 | |
| 955 | size_t ByteSizeLong() const final; |
| 956 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 957 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 958 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 959 | #else |
| 960 | bool MergePartialFromCodedStream( |
| 961 | ::google::protobuf::io::CodedInputStream* input) final; |
| 962 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 963 | void SerializeWithCachedSizes( |
| 964 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 965 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 966 | ::google::protobuf::uint8* target) const final; |
| 967 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 968 | |
| 969 | private: |
| 970 | void SharedCtor(); |
| 971 | void SharedDtor(); |
| 972 | void SetCachedSize(int size) const final; |
| 973 | void InternalSwap(EventsCfg* other); |
| 974 | private: |
| 975 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 976 | return nullptr; |
| 977 | } |
| 978 | inline void* MaybeArenaPtr() const { |
| 979 | return nullptr; |
| 980 | } |
| 981 | public: |
| 982 | |
| 983 | ::google::protobuf::Metadata GetMetadata() const final; |
| 984 | |
| 985 | // nested types ---------------------------------------------------- |
| 986 | |
| 987 | // accessors ------------------------------------------------------- |
| 988 | |
| 989 | // repeated .dmi.EventCfg items = 1; |
| 990 | int items_size() const; |
| 991 | void clear_items(); |
| 992 | static const int kItemsFieldNumber = 1; |
| 993 | ::dmi::EventCfg* mutable_items(int index); |
| 994 | ::google::protobuf::RepeatedPtrField< ::dmi::EventCfg >* |
| 995 | mutable_items(); |
| 996 | const ::dmi::EventCfg& items(int index) const; |
| 997 | ::dmi::EventCfg* add_items(); |
| 998 | const ::google::protobuf::RepeatedPtrField< ::dmi::EventCfg >& |
| 999 | items() const; |
| 1000 | |
| 1001 | // @@protoc_insertion_point(class_scope:dmi.EventsCfg) |
| 1002 | private: |
| 1003 | class HasBitSetters; |
| 1004 | |
| 1005 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1006 | ::google::protobuf::RepeatedPtrField< ::dmi::EventCfg > items_; |
| 1007 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1008 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1009 | }; |
| 1010 | // ------------------------------------------------------------------- |
| 1011 | |
| 1012 | class ListEventsResponse final : |
| 1013 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ListEventsResponse) */ { |
| 1014 | public: |
| 1015 | ListEventsResponse(); |
| 1016 | virtual ~ListEventsResponse(); |
| 1017 | |
| 1018 | ListEventsResponse(const ListEventsResponse& from); |
| 1019 | |
| 1020 | inline ListEventsResponse& operator=(const ListEventsResponse& from) { |
| 1021 | CopyFrom(from); |
| 1022 | return *this; |
| 1023 | } |
| 1024 | #if LANG_CXX11 |
| 1025 | ListEventsResponse(ListEventsResponse&& from) noexcept |
| 1026 | : ListEventsResponse() { |
| 1027 | *this = ::std::move(from); |
| 1028 | } |
| 1029 | |
| 1030 | inline ListEventsResponse& operator=(ListEventsResponse&& from) noexcept { |
| 1031 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1032 | if (this != &from) InternalSwap(&from); |
| 1033 | } else { |
| 1034 | CopyFrom(from); |
| 1035 | } |
| 1036 | return *this; |
| 1037 | } |
| 1038 | #endif |
| 1039 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1040 | return default_instance().GetDescriptor(); |
| 1041 | } |
| 1042 | static const ListEventsResponse& default_instance(); |
| 1043 | |
| 1044 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1045 | static inline const ListEventsResponse* internal_default_instance() { |
| 1046 | return reinterpret_cast<const ListEventsResponse*>( |
| 1047 | &_ListEventsResponse_default_instance_); |
| 1048 | } |
| 1049 | static constexpr int kIndexInFileMessages = |
| 1050 | 6; |
| 1051 | |
| 1052 | void Swap(ListEventsResponse* other); |
| 1053 | friend void swap(ListEventsResponse& a, ListEventsResponse& b) { |
| 1054 | a.Swap(&b); |
| 1055 | } |
| 1056 | |
| 1057 | // implements Message ---------------------------------------------- |
| 1058 | |
| 1059 | inline ListEventsResponse* New() const final { |
| 1060 | return CreateMaybeMessage<ListEventsResponse>(nullptr); |
| 1061 | } |
| 1062 | |
| 1063 | ListEventsResponse* New(::google::protobuf::Arena* arena) const final { |
| 1064 | return CreateMaybeMessage<ListEventsResponse>(arena); |
| 1065 | } |
| 1066 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1067 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1068 | void CopyFrom(const ListEventsResponse& from); |
| 1069 | void MergeFrom(const ListEventsResponse& from); |
| 1070 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1071 | bool IsInitialized() const final; |
| 1072 | |
| 1073 | size_t ByteSizeLong() const final; |
| 1074 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1075 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1076 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1077 | #else |
| 1078 | bool MergePartialFromCodedStream( |
| 1079 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1080 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1081 | void SerializeWithCachedSizes( |
| 1082 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1083 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1084 | ::google::protobuf::uint8* target) const final; |
| 1085 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1086 | |
| 1087 | private: |
| 1088 | void SharedCtor(); |
| 1089 | void SharedDtor(); |
| 1090 | void SetCachedSize(int size) const final; |
| 1091 | void InternalSwap(ListEventsResponse* other); |
| 1092 | private: |
| 1093 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1094 | return nullptr; |
| 1095 | } |
| 1096 | inline void* MaybeArenaPtr() const { |
| 1097 | return nullptr; |
| 1098 | } |
| 1099 | public: |
| 1100 | |
| 1101 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1102 | |
| 1103 | // nested types ---------------------------------------------------- |
| 1104 | |
| 1105 | typedef ListEventsResponse_Reason Reason; |
| 1106 | static const Reason UNDEFINED_REASON = |
| 1107 | ListEventsResponse_Reason_UNDEFINED_REASON; |
| 1108 | static const Reason UNKNOWN_DEVICE = |
| 1109 | ListEventsResponse_Reason_UNKNOWN_DEVICE; |
| 1110 | static const Reason INTERNAL_ERROR = |
| 1111 | ListEventsResponse_Reason_INTERNAL_ERROR; |
| 1112 | static const Reason DEVICE_UNREACHABLE = |
| 1113 | ListEventsResponse_Reason_DEVICE_UNREACHABLE; |
| 1114 | static inline bool Reason_IsValid(int value) { |
| 1115 | return ListEventsResponse_Reason_IsValid(value); |
| 1116 | } |
| 1117 | static const Reason Reason_MIN = |
| 1118 | ListEventsResponse_Reason_Reason_MIN; |
| 1119 | static const Reason Reason_MAX = |
| 1120 | ListEventsResponse_Reason_Reason_MAX; |
| 1121 | static const int Reason_ARRAYSIZE = |
| 1122 | ListEventsResponse_Reason_Reason_ARRAYSIZE; |
| 1123 | static inline const ::google::protobuf::EnumDescriptor* |
| 1124 | Reason_descriptor() { |
| 1125 | return ListEventsResponse_Reason_descriptor(); |
| 1126 | } |
| 1127 | static inline const ::std::string& Reason_Name(Reason value) { |
| 1128 | return ListEventsResponse_Reason_Name(value); |
| 1129 | } |
| 1130 | static inline bool Reason_Parse(const ::std::string& name, |
| 1131 | Reason* value) { |
| 1132 | return ListEventsResponse_Reason_Parse(name, value); |
| 1133 | } |
| 1134 | |
| 1135 | // accessors ------------------------------------------------------- |
| 1136 | |
| 1137 | // string reason_detail = 4; |
| 1138 | void clear_reason_detail(); |
| 1139 | static const int kReasonDetailFieldNumber = 4; |
| 1140 | const ::std::string& reason_detail() const; |
| 1141 | void set_reason_detail(const ::std::string& value); |
| 1142 | #if LANG_CXX11 |
| 1143 | void set_reason_detail(::std::string&& value); |
| 1144 | #endif |
| 1145 | void set_reason_detail(const char* value); |
| 1146 | void set_reason_detail(const char* value, size_t size); |
| 1147 | ::std::string* mutable_reason_detail(); |
| 1148 | ::std::string* release_reason_detail(); |
| 1149 | void set_allocated_reason_detail(::std::string* reason_detail); |
| 1150 | |
| 1151 | // .dmi.EventsCfg events = 3; |
| 1152 | bool has_events() const; |
| 1153 | void clear_events(); |
| 1154 | static const int kEventsFieldNumber = 3; |
| 1155 | const ::dmi::EventsCfg& events() const; |
| 1156 | ::dmi::EventsCfg* release_events(); |
| 1157 | ::dmi::EventsCfg* mutable_events(); |
| 1158 | void set_allocated_events(::dmi::EventsCfg* events); |
| 1159 | |
| 1160 | // .dmi.Status status = 1; |
| 1161 | void clear_status(); |
| 1162 | static const int kStatusFieldNumber = 1; |
| 1163 | ::dmi::Status status() const; |
| 1164 | void set_status(::dmi::Status value); |
| 1165 | |
| 1166 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 1167 | void clear_reason(); |
| 1168 | static const int kReasonFieldNumber = 2; |
| 1169 | ::dmi::ListEventsResponse_Reason reason() const; |
| 1170 | void set_reason(::dmi::ListEventsResponse_Reason value); |
| 1171 | |
| 1172 | // @@protoc_insertion_point(class_scope:dmi.ListEventsResponse) |
| 1173 | private: |
| 1174 | class HasBitSetters; |
| 1175 | |
| 1176 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1177 | ::google::protobuf::internal::ArenaStringPtr reason_detail_; |
| 1178 | ::dmi::EventsCfg* events_; |
| 1179 | int status_; |
| 1180 | int reason_; |
| 1181 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1182 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1183 | }; |
| 1184 | // ------------------------------------------------------------------- |
| 1185 | |
| 1186 | class EventsConfigurationRequest final : |
| 1187 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.EventsConfigurationRequest) */ { |
| 1188 | public: |
| 1189 | EventsConfigurationRequest(); |
| 1190 | virtual ~EventsConfigurationRequest(); |
| 1191 | |
| 1192 | EventsConfigurationRequest(const EventsConfigurationRequest& from); |
| 1193 | |
| 1194 | inline EventsConfigurationRequest& operator=(const EventsConfigurationRequest& from) { |
| 1195 | CopyFrom(from); |
| 1196 | return *this; |
| 1197 | } |
| 1198 | #if LANG_CXX11 |
| 1199 | EventsConfigurationRequest(EventsConfigurationRequest&& from) noexcept |
| 1200 | : EventsConfigurationRequest() { |
| 1201 | *this = ::std::move(from); |
| 1202 | } |
| 1203 | |
| 1204 | inline EventsConfigurationRequest& operator=(EventsConfigurationRequest&& from) noexcept { |
| 1205 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1206 | if (this != &from) InternalSwap(&from); |
| 1207 | } else { |
| 1208 | CopyFrom(from); |
| 1209 | } |
| 1210 | return *this; |
| 1211 | } |
| 1212 | #endif |
| 1213 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1214 | return default_instance().GetDescriptor(); |
| 1215 | } |
| 1216 | static const EventsConfigurationRequest& default_instance(); |
| 1217 | |
| 1218 | enum OperationCase { |
| 1219 | kChanges = 2, |
| 1220 | kResetToDefault = 3, |
| 1221 | OPERATION_NOT_SET = 0, |
| 1222 | }; |
| 1223 | |
| 1224 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1225 | static inline const EventsConfigurationRequest* internal_default_instance() { |
| 1226 | return reinterpret_cast<const EventsConfigurationRequest*>( |
| 1227 | &_EventsConfigurationRequest_default_instance_); |
| 1228 | } |
| 1229 | static constexpr int kIndexInFileMessages = |
| 1230 | 7; |
| 1231 | |
| 1232 | void Swap(EventsConfigurationRequest* other); |
| 1233 | friend void swap(EventsConfigurationRequest& a, EventsConfigurationRequest& b) { |
| 1234 | a.Swap(&b); |
| 1235 | } |
| 1236 | |
| 1237 | // implements Message ---------------------------------------------- |
| 1238 | |
| 1239 | inline EventsConfigurationRequest* New() const final { |
| 1240 | return CreateMaybeMessage<EventsConfigurationRequest>(nullptr); |
| 1241 | } |
| 1242 | |
| 1243 | EventsConfigurationRequest* New(::google::protobuf::Arena* arena) const final { |
| 1244 | return CreateMaybeMessage<EventsConfigurationRequest>(arena); |
| 1245 | } |
| 1246 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1247 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1248 | void CopyFrom(const EventsConfigurationRequest& from); |
| 1249 | void MergeFrom(const EventsConfigurationRequest& from); |
| 1250 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1251 | bool IsInitialized() const final; |
| 1252 | |
| 1253 | size_t ByteSizeLong() const final; |
| 1254 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1255 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1256 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1257 | #else |
| 1258 | bool MergePartialFromCodedStream( |
| 1259 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1260 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1261 | void SerializeWithCachedSizes( |
| 1262 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1263 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1264 | ::google::protobuf::uint8* target) const final; |
| 1265 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1266 | |
| 1267 | private: |
| 1268 | void SharedCtor(); |
| 1269 | void SharedDtor(); |
| 1270 | void SetCachedSize(int size) const final; |
| 1271 | void InternalSwap(EventsConfigurationRequest* other); |
| 1272 | private: |
| 1273 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1274 | return nullptr; |
| 1275 | } |
| 1276 | inline void* MaybeArenaPtr() const { |
| 1277 | return nullptr; |
| 1278 | } |
| 1279 | public: |
| 1280 | |
| 1281 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1282 | |
| 1283 | // nested types ---------------------------------------------------- |
| 1284 | |
| 1285 | // accessors ------------------------------------------------------- |
| 1286 | |
| 1287 | // .dmi.Uuid device_uuid = 1; |
| 1288 | bool has_device_uuid() const; |
| 1289 | void clear_device_uuid(); |
| 1290 | static const int kDeviceUuidFieldNumber = 1; |
| 1291 | const ::dmi::Uuid& device_uuid() const; |
| 1292 | ::dmi::Uuid* release_device_uuid(); |
| 1293 | ::dmi::Uuid* mutable_device_uuid(); |
| 1294 | void set_allocated_device_uuid(::dmi::Uuid* device_uuid); |
| 1295 | |
| 1296 | // .dmi.EventsCfg changes = 2; |
| 1297 | bool has_changes() const; |
| 1298 | void clear_changes(); |
| 1299 | static const int kChangesFieldNumber = 2; |
| 1300 | const ::dmi::EventsCfg& changes() const; |
| 1301 | ::dmi::EventsCfg* release_changes(); |
| 1302 | ::dmi::EventsCfg* mutable_changes(); |
| 1303 | void set_allocated_changes(::dmi::EventsCfg* changes); |
| 1304 | |
| 1305 | // bool reset_to_default = 3; |
| 1306 | private: |
| 1307 | bool has_reset_to_default() const; |
| 1308 | public: |
| 1309 | void clear_reset_to_default(); |
| 1310 | static const int kResetToDefaultFieldNumber = 3; |
| 1311 | bool reset_to_default() const; |
| 1312 | void set_reset_to_default(bool value); |
| 1313 | |
| 1314 | void clear_operation(); |
| 1315 | OperationCase operation_case() const; |
| 1316 | // @@protoc_insertion_point(class_scope:dmi.EventsConfigurationRequest) |
| 1317 | private: |
| 1318 | class HasBitSetters; |
| 1319 | void set_has_changes(); |
| 1320 | void set_has_reset_to_default(); |
| 1321 | |
| 1322 | inline bool has_operation() const; |
| 1323 | inline void clear_has_operation(); |
| 1324 | |
| 1325 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1326 | ::dmi::Uuid* device_uuid_; |
| 1327 | union OperationUnion { |
| 1328 | OperationUnion() {} |
| 1329 | ::dmi::EventsCfg* changes_; |
| 1330 | bool reset_to_default_; |
| 1331 | } operation_; |
| 1332 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1333 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 1334 | |
| 1335 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1336 | }; |
| 1337 | // ------------------------------------------------------------------- |
| 1338 | |
| 1339 | class EventsConfigurationResponse final : |
| 1340 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.EventsConfigurationResponse) */ { |
| 1341 | public: |
| 1342 | EventsConfigurationResponse(); |
| 1343 | virtual ~EventsConfigurationResponse(); |
| 1344 | |
| 1345 | EventsConfigurationResponse(const EventsConfigurationResponse& from); |
| 1346 | |
| 1347 | inline EventsConfigurationResponse& operator=(const EventsConfigurationResponse& from) { |
| 1348 | CopyFrom(from); |
| 1349 | return *this; |
| 1350 | } |
| 1351 | #if LANG_CXX11 |
| 1352 | EventsConfigurationResponse(EventsConfigurationResponse&& from) noexcept |
| 1353 | : EventsConfigurationResponse() { |
| 1354 | *this = ::std::move(from); |
| 1355 | } |
| 1356 | |
| 1357 | inline EventsConfigurationResponse& operator=(EventsConfigurationResponse&& from) noexcept { |
| 1358 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1359 | if (this != &from) InternalSwap(&from); |
| 1360 | } else { |
| 1361 | CopyFrom(from); |
| 1362 | } |
| 1363 | return *this; |
| 1364 | } |
| 1365 | #endif |
| 1366 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1367 | return default_instance().GetDescriptor(); |
| 1368 | } |
| 1369 | static const EventsConfigurationResponse& default_instance(); |
| 1370 | |
| 1371 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1372 | static inline const EventsConfigurationResponse* internal_default_instance() { |
| 1373 | return reinterpret_cast<const EventsConfigurationResponse*>( |
| 1374 | &_EventsConfigurationResponse_default_instance_); |
| 1375 | } |
| 1376 | static constexpr int kIndexInFileMessages = |
| 1377 | 8; |
| 1378 | |
| 1379 | void Swap(EventsConfigurationResponse* other); |
| 1380 | friend void swap(EventsConfigurationResponse& a, EventsConfigurationResponse& b) { |
| 1381 | a.Swap(&b); |
| 1382 | } |
| 1383 | |
| 1384 | // implements Message ---------------------------------------------- |
| 1385 | |
| 1386 | inline EventsConfigurationResponse* New() const final { |
| 1387 | return CreateMaybeMessage<EventsConfigurationResponse>(nullptr); |
| 1388 | } |
| 1389 | |
| 1390 | EventsConfigurationResponse* New(::google::protobuf::Arena* arena) const final { |
| 1391 | return CreateMaybeMessage<EventsConfigurationResponse>(arena); |
| 1392 | } |
| 1393 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1394 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1395 | void CopyFrom(const EventsConfigurationResponse& from); |
| 1396 | void MergeFrom(const EventsConfigurationResponse& from); |
| 1397 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1398 | bool IsInitialized() const final; |
| 1399 | |
| 1400 | size_t ByteSizeLong() const final; |
| 1401 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1402 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1403 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1404 | #else |
| 1405 | bool MergePartialFromCodedStream( |
| 1406 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1407 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1408 | void SerializeWithCachedSizes( |
| 1409 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1410 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1411 | ::google::protobuf::uint8* target) const final; |
| 1412 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1413 | |
| 1414 | private: |
| 1415 | void SharedCtor(); |
| 1416 | void SharedDtor(); |
| 1417 | void SetCachedSize(int size) const final; |
| 1418 | void InternalSwap(EventsConfigurationResponse* other); |
| 1419 | private: |
| 1420 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1421 | return nullptr; |
| 1422 | } |
| 1423 | inline void* MaybeArenaPtr() const { |
| 1424 | return nullptr; |
| 1425 | } |
| 1426 | public: |
| 1427 | |
| 1428 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1429 | |
| 1430 | // nested types ---------------------------------------------------- |
| 1431 | |
| 1432 | typedef EventsConfigurationResponse_Reason Reason; |
| 1433 | static const Reason UNDEFINED_REASON = |
| 1434 | EventsConfigurationResponse_Reason_UNDEFINED_REASON; |
| 1435 | static const Reason UNKNOWN_DEVICE = |
| 1436 | EventsConfigurationResponse_Reason_UNKNOWN_DEVICE; |
| 1437 | static const Reason INTERNAL_ERROR = |
| 1438 | EventsConfigurationResponse_Reason_INTERNAL_ERROR; |
| 1439 | static const Reason INVALID_CONFIG = |
| 1440 | EventsConfigurationResponse_Reason_INVALID_CONFIG; |
| 1441 | static const Reason DEVICE_UNREACHABLE = |
| 1442 | EventsConfigurationResponse_Reason_DEVICE_UNREACHABLE; |
| 1443 | static inline bool Reason_IsValid(int value) { |
| 1444 | return EventsConfigurationResponse_Reason_IsValid(value); |
| 1445 | } |
| 1446 | static const Reason Reason_MIN = |
| 1447 | EventsConfigurationResponse_Reason_Reason_MIN; |
| 1448 | static const Reason Reason_MAX = |
| 1449 | EventsConfigurationResponse_Reason_Reason_MAX; |
| 1450 | static const int Reason_ARRAYSIZE = |
| 1451 | EventsConfigurationResponse_Reason_Reason_ARRAYSIZE; |
| 1452 | static inline const ::google::protobuf::EnumDescriptor* |
| 1453 | Reason_descriptor() { |
| 1454 | return EventsConfigurationResponse_Reason_descriptor(); |
| 1455 | } |
| 1456 | static inline const ::std::string& Reason_Name(Reason value) { |
| 1457 | return EventsConfigurationResponse_Reason_Name(value); |
| 1458 | } |
| 1459 | static inline bool Reason_Parse(const ::std::string& name, |
| 1460 | Reason* value) { |
| 1461 | return EventsConfigurationResponse_Reason_Parse(name, value); |
| 1462 | } |
| 1463 | |
| 1464 | // accessors ------------------------------------------------------- |
| 1465 | |
| 1466 | // string reason_detail = 3; |
| 1467 | void clear_reason_detail(); |
| 1468 | static const int kReasonDetailFieldNumber = 3; |
| 1469 | const ::std::string& reason_detail() const; |
| 1470 | void set_reason_detail(const ::std::string& value); |
| 1471 | #if LANG_CXX11 |
| 1472 | void set_reason_detail(::std::string&& value); |
| 1473 | #endif |
| 1474 | void set_reason_detail(const char* value); |
| 1475 | void set_reason_detail(const char* value, size_t size); |
| 1476 | ::std::string* mutable_reason_detail(); |
| 1477 | ::std::string* release_reason_detail(); |
| 1478 | void set_allocated_reason_detail(::std::string* reason_detail); |
| 1479 | |
| 1480 | // .dmi.Status status = 1; |
| 1481 | void clear_status(); |
| 1482 | static const int kStatusFieldNumber = 1; |
| 1483 | ::dmi::Status status() const; |
| 1484 | void set_status(::dmi::Status value); |
| 1485 | |
| 1486 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 1487 | void clear_reason(); |
| 1488 | static const int kReasonFieldNumber = 2; |
| 1489 | ::dmi::EventsConfigurationResponse_Reason reason() const; |
| 1490 | void set_reason(::dmi::EventsConfigurationResponse_Reason value); |
| 1491 | |
| 1492 | // @@protoc_insertion_point(class_scope:dmi.EventsConfigurationResponse) |
| 1493 | private: |
| 1494 | class HasBitSetters; |
| 1495 | |
| 1496 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1497 | ::google::protobuf::internal::ArenaStringPtr reason_detail_; |
| 1498 | int status_; |
| 1499 | int reason_; |
| 1500 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1501 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1502 | }; |
| 1503 | // ------------------------------------------------------------------- |
| 1504 | |
| 1505 | class EventMetaData final : |
| 1506 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.EventMetaData) */ { |
| 1507 | public: |
| 1508 | EventMetaData(); |
| 1509 | virtual ~EventMetaData(); |
| 1510 | |
| 1511 | EventMetaData(const EventMetaData& from); |
| 1512 | |
| 1513 | inline EventMetaData& operator=(const EventMetaData& from) { |
| 1514 | CopyFrom(from); |
| 1515 | return *this; |
| 1516 | } |
| 1517 | #if LANG_CXX11 |
| 1518 | EventMetaData(EventMetaData&& from) noexcept |
| 1519 | : EventMetaData() { |
| 1520 | *this = ::std::move(from); |
| 1521 | } |
| 1522 | |
| 1523 | inline EventMetaData& operator=(EventMetaData&& from) noexcept { |
| 1524 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1525 | if (this != &from) InternalSwap(&from); |
| 1526 | } else { |
| 1527 | CopyFrom(from); |
| 1528 | } |
| 1529 | return *this; |
| 1530 | } |
| 1531 | #endif |
| 1532 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1533 | return default_instance().GetDescriptor(); |
| 1534 | } |
| 1535 | static const EventMetaData& default_instance(); |
| 1536 | |
| 1537 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1538 | static inline const EventMetaData* internal_default_instance() { |
| 1539 | return reinterpret_cast<const EventMetaData*>( |
| 1540 | &_EventMetaData_default_instance_); |
| 1541 | } |
| 1542 | static constexpr int kIndexInFileMessages = |
| 1543 | 9; |
| 1544 | |
| 1545 | void Swap(EventMetaData* other); |
| 1546 | friend void swap(EventMetaData& a, EventMetaData& b) { |
| 1547 | a.Swap(&b); |
| 1548 | } |
| 1549 | |
| 1550 | // implements Message ---------------------------------------------- |
| 1551 | |
| 1552 | inline EventMetaData* New() const final { |
| 1553 | return CreateMaybeMessage<EventMetaData>(nullptr); |
| 1554 | } |
| 1555 | |
| 1556 | EventMetaData* New(::google::protobuf::Arena* arena) const final { |
| 1557 | return CreateMaybeMessage<EventMetaData>(arena); |
| 1558 | } |
| 1559 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1560 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1561 | void CopyFrom(const EventMetaData& from); |
| 1562 | void MergeFrom(const EventMetaData& from); |
| 1563 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1564 | bool IsInitialized() const final; |
| 1565 | |
| 1566 | size_t ByteSizeLong() const final; |
| 1567 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1568 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1569 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1570 | #else |
| 1571 | bool MergePartialFromCodedStream( |
| 1572 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1573 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1574 | void SerializeWithCachedSizes( |
| 1575 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1576 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1577 | ::google::protobuf::uint8* target) const final; |
| 1578 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1579 | |
| 1580 | private: |
| 1581 | void SharedCtor(); |
| 1582 | void SharedDtor(); |
| 1583 | void SetCachedSize(int size) const final; |
| 1584 | void InternalSwap(EventMetaData* other); |
| 1585 | private: |
| 1586 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1587 | return nullptr; |
| 1588 | } |
| 1589 | inline void* MaybeArenaPtr() const { |
| 1590 | return nullptr; |
| 1591 | } |
| 1592 | public: |
| 1593 | |
| 1594 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1595 | |
| 1596 | // nested types ---------------------------------------------------- |
| 1597 | |
| 1598 | // accessors ------------------------------------------------------- |
| 1599 | |
| 1600 | // string component_name = 3; |
| 1601 | void clear_component_name(); |
| 1602 | static const int kComponentNameFieldNumber = 3; |
| 1603 | const ::std::string& component_name() const; |
| 1604 | void set_component_name(const ::std::string& value); |
| 1605 | #if LANG_CXX11 |
| 1606 | void set_component_name(::std::string&& value); |
| 1607 | #endif |
| 1608 | void set_component_name(const char* value); |
| 1609 | void set_component_name(const char* value, size_t size); |
| 1610 | ::std::string* mutable_component_name(); |
| 1611 | ::std::string* release_component_name(); |
| 1612 | void set_allocated_component_name(::std::string* component_name); |
| 1613 | |
| 1614 | // .dmi.Uuid device_uuid = 1; |
| 1615 | bool has_device_uuid() const; |
| 1616 | void clear_device_uuid(); |
| 1617 | static const int kDeviceUuidFieldNumber = 1; |
| 1618 | const ::dmi::Uuid& device_uuid() const; |
| 1619 | ::dmi::Uuid* release_device_uuid(); |
| 1620 | ::dmi::Uuid* mutable_device_uuid(); |
| 1621 | void set_allocated_device_uuid(::dmi::Uuid* device_uuid); |
| 1622 | |
| 1623 | // .dmi.Uuid component_uuid = 2; |
| 1624 | bool has_component_uuid() const; |
| 1625 | void clear_component_uuid(); |
| 1626 | static const int kComponentUuidFieldNumber = 2; |
| 1627 | const ::dmi::Uuid& component_uuid() const; |
| 1628 | ::dmi::Uuid* release_component_uuid(); |
| 1629 | ::dmi::Uuid* mutable_component_uuid(); |
| 1630 | void set_allocated_component_uuid(::dmi::Uuid* component_uuid); |
| 1631 | |
| 1632 | // @@protoc_insertion_point(class_scope:dmi.EventMetaData) |
| 1633 | private: |
| 1634 | class HasBitSetters; |
| 1635 | |
| 1636 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1637 | ::google::protobuf::internal::ArenaStringPtr component_name_; |
| 1638 | ::dmi::Uuid* device_uuid_; |
| 1639 | ::dmi::Uuid* component_uuid_; |
| 1640 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1641 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1642 | }; |
| 1643 | // ------------------------------------------------------------------- |
| 1644 | |
| 1645 | class Event final : |
| 1646 | public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Event) */ { |
| 1647 | public: |
| 1648 | Event(); |
| 1649 | virtual ~Event(); |
| 1650 | |
| 1651 | Event(const Event& from); |
| 1652 | |
| 1653 | inline Event& operator=(const Event& from) { |
| 1654 | CopyFrom(from); |
| 1655 | return *this; |
| 1656 | } |
| 1657 | #if LANG_CXX11 |
| 1658 | Event(Event&& from) noexcept |
| 1659 | : Event() { |
| 1660 | *this = ::std::move(from); |
| 1661 | } |
| 1662 | |
| 1663 | inline Event& operator=(Event&& from) noexcept { |
| 1664 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| 1665 | if (this != &from) InternalSwap(&from); |
| 1666 | } else { |
| 1667 | CopyFrom(from); |
| 1668 | } |
| 1669 | return *this; |
| 1670 | } |
| 1671 | #endif |
| 1672 | static const ::google::protobuf::Descriptor* descriptor() { |
| 1673 | return default_instance().GetDescriptor(); |
| 1674 | } |
| 1675 | static const Event& default_instance(); |
| 1676 | |
| 1677 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| 1678 | static inline const Event* internal_default_instance() { |
| 1679 | return reinterpret_cast<const Event*>( |
| 1680 | &_Event_default_instance_); |
| 1681 | } |
| 1682 | static constexpr int kIndexInFileMessages = |
| 1683 | 10; |
| 1684 | |
| 1685 | void Swap(Event* other); |
| 1686 | friend void swap(Event& a, Event& b) { |
| 1687 | a.Swap(&b); |
| 1688 | } |
| 1689 | |
| 1690 | // implements Message ---------------------------------------------- |
| 1691 | |
| 1692 | inline Event* New() const final { |
| 1693 | return CreateMaybeMessage<Event>(nullptr); |
| 1694 | } |
| 1695 | |
| 1696 | Event* New(::google::protobuf::Arena* arena) const final { |
| 1697 | return CreateMaybeMessage<Event>(arena); |
| 1698 | } |
| 1699 | void CopyFrom(const ::google::protobuf::Message& from) final; |
| 1700 | void MergeFrom(const ::google::protobuf::Message& from) final; |
| 1701 | void CopyFrom(const Event& from); |
| 1702 | void MergeFrom(const Event& from); |
| 1703 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| 1704 | bool IsInitialized() const final; |
| 1705 | |
| 1706 | size_t ByteSizeLong() const final; |
| 1707 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1708 | static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); |
| 1709 | ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } |
| 1710 | #else |
| 1711 | bool MergePartialFromCodedStream( |
| 1712 | ::google::protobuf::io::CodedInputStream* input) final; |
| 1713 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1714 | void SerializeWithCachedSizes( |
| 1715 | ::google::protobuf::io::CodedOutputStream* output) const final; |
| 1716 | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 1717 | ::google::protobuf::uint8* target) const final; |
| 1718 | int GetCachedSize() const final { return _cached_size_.Get(); } |
| 1719 | |
| 1720 | private: |
| 1721 | void SharedCtor(); |
| 1722 | void SharedDtor(); |
| 1723 | void SetCachedSize(int size) const final; |
| 1724 | void InternalSwap(Event* other); |
| 1725 | private: |
| 1726 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 1727 | return nullptr; |
| 1728 | } |
| 1729 | inline void* MaybeArenaPtr() const { |
| 1730 | return nullptr; |
| 1731 | } |
| 1732 | public: |
| 1733 | |
| 1734 | ::google::protobuf::Metadata GetMetadata() const final; |
| 1735 | |
| 1736 | // nested types ---------------------------------------------------- |
| 1737 | |
| 1738 | // accessors ------------------------------------------------------- |
| 1739 | |
| 1740 | // string add_info = 5; |
| 1741 | void clear_add_info(); |
| 1742 | static const int kAddInfoFieldNumber = 5; |
| 1743 | const ::std::string& add_info() const; |
| 1744 | void set_add_info(const ::std::string& value); |
| 1745 | #if LANG_CXX11 |
| 1746 | void set_add_info(::std::string&& value); |
| 1747 | #endif |
| 1748 | void set_add_info(const char* value); |
| 1749 | void set_add_info(const char* value, size_t size); |
| 1750 | ::std::string* mutable_add_info(); |
| 1751 | ::std::string* release_add_info(); |
| 1752 | void set_allocated_add_info(::std::string* add_info); |
| 1753 | |
| 1754 | // .dmi.EventMetaData event_metadata = 1; |
| 1755 | bool has_event_metadata() const; |
| 1756 | void clear_event_metadata(); |
| 1757 | static const int kEventMetadataFieldNumber = 1; |
| 1758 | const ::dmi::EventMetaData& event_metadata() const; |
| 1759 | ::dmi::EventMetaData* release_event_metadata(); |
| 1760 | ::dmi::EventMetaData* mutable_event_metadata(); |
| 1761 | void set_allocated_event_metadata(::dmi::EventMetaData* event_metadata); |
| 1762 | |
| 1763 | // .google.protobuf.Timestamp raised_ts = 3; |
| 1764 | bool has_raised_ts() const; |
| 1765 | void clear_raised_ts(); |
| 1766 | static const int kRaisedTsFieldNumber = 3; |
| 1767 | const ::google::protobuf::Timestamp& raised_ts() const; |
| 1768 | ::google::protobuf::Timestamp* release_raised_ts(); |
| 1769 | ::google::protobuf::Timestamp* mutable_raised_ts(); |
| 1770 | void set_allocated_raised_ts(::google::protobuf::Timestamp* raised_ts); |
| 1771 | |
| 1772 | // .dmi.ThresholdInformation threshold_info = 4; |
| 1773 | bool has_threshold_info() const; |
| 1774 | void clear_threshold_info(); |
| 1775 | static const int kThresholdInfoFieldNumber = 4; |
| 1776 | const ::dmi::ThresholdInformation& threshold_info() const; |
| 1777 | ::dmi::ThresholdInformation* release_threshold_info(); |
| 1778 | ::dmi::ThresholdInformation* mutable_threshold_info(); |
| 1779 | void set_allocated_threshold_info(::dmi::ThresholdInformation* threshold_info); |
| 1780 | |
| 1781 | // .dmi.EventIds event_id = 2; |
| 1782 | void clear_event_id(); |
| 1783 | static const int kEventIdFieldNumber = 2; |
| 1784 | ::dmi::EventIds event_id() const; |
| 1785 | void set_event_id(::dmi::EventIds value); |
| 1786 | |
| 1787 | // @@protoc_insertion_point(class_scope:dmi.Event) |
| 1788 | private: |
| 1789 | class HasBitSetters; |
| 1790 | |
| 1791 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 1792 | ::google::protobuf::internal::ArenaStringPtr add_info_; |
| 1793 | ::dmi::EventMetaData* event_metadata_; |
| 1794 | ::google::protobuf::Timestamp* raised_ts_; |
| 1795 | ::dmi::ThresholdInformation* threshold_info_; |
| 1796 | int event_id_; |
| 1797 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 1798 | friend struct ::TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 1799 | }; |
| 1800 | // =================================================================== |
| 1801 | |
| 1802 | |
| 1803 | // =================================================================== |
| 1804 | |
| 1805 | #ifdef __GNUC__ |
| 1806 | #pragma GCC diagnostic push |
| 1807 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 1808 | #endif // __GNUC__ |
| 1809 | // ValueType |
| 1810 | |
| 1811 | // int64 int_val = 1; |
| 1812 | inline bool ValueType::has_int_val() const { |
| 1813 | return val_case() == kIntVal; |
| 1814 | } |
| 1815 | inline void ValueType::set_has_int_val() { |
| 1816 | _oneof_case_[0] = kIntVal; |
| 1817 | } |
| 1818 | inline void ValueType::clear_int_val() { |
| 1819 | if (has_int_val()) { |
| 1820 | val_.int_val_ = PROTOBUF_LONGLONG(0); |
| 1821 | clear_has_val(); |
| 1822 | } |
| 1823 | } |
| 1824 | inline ::google::protobuf::int64 ValueType::int_val() const { |
| 1825 | // @@protoc_insertion_point(field_get:dmi.ValueType.int_val) |
| 1826 | if (has_int_val()) { |
| 1827 | return val_.int_val_; |
| 1828 | } |
| 1829 | return PROTOBUF_LONGLONG(0); |
| 1830 | } |
| 1831 | inline void ValueType::set_int_val(::google::protobuf::int64 value) { |
| 1832 | if (!has_int_val()) { |
| 1833 | clear_val(); |
| 1834 | set_has_int_val(); |
| 1835 | } |
| 1836 | val_.int_val_ = value; |
| 1837 | // @@protoc_insertion_point(field_set:dmi.ValueType.int_val) |
| 1838 | } |
| 1839 | |
| 1840 | // uint64 uint_val = 2; |
| 1841 | inline bool ValueType::has_uint_val() const { |
| 1842 | return val_case() == kUintVal; |
| 1843 | } |
| 1844 | inline void ValueType::set_has_uint_val() { |
| 1845 | _oneof_case_[0] = kUintVal; |
| 1846 | } |
| 1847 | inline void ValueType::clear_uint_val() { |
| 1848 | if (has_uint_val()) { |
| 1849 | val_.uint_val_ = PROTOBUF_ULONGLONG(0); |
| 1850 | clear_has_val(); |
| 1851 | } |
| 1852 | } |
| 1853 | inline ::google::protobuf::uint64 ValueType::uint_val() const { |
| 1854 | // @@protoc_insertion_point(field_get:dmi.ValueType.uint_val) |
| 1855 | if (has_uint_val()) { |
| 1856 | return val_.uint_val_; |
| 1857 | } |
| 1858 | return PROTOBUF_ULONGLONG(0); |
| 1859 | } |
| 1860 | inline void ValueType::set_uint_val(::google::protobuf::uint64 value) { |
| 1861 | if (!has_uint_val()) { |
| 1862 | clear_val(); |
| 1863 | set_has_uint_val(); |
| 1864 | } |
| 1865 | val_.uint_val_ = value; |
| 1866 | // @@protoc_insertion_point(field_set:dmi.ValueType.uint_val) |
| 1867 | } |
| 1868 | |
| 1869 | // float float_val = 3; |
| 1870 | inline bool ValueType::has_float_val() const { |
| 1871 | return val_case() == kFloatVal; |
| 1872 | } |
| 1873 | inline void ValueType::set_has_float_val() { |
| 1874 | _oneof_case_[0] = kFloatVal; |
| 1875 | } |
| 1876 | inline void ValueType::clear_float_val() { |
| 1877 | if (has_float_val()) { |
| 1878 | val_.float_val_ = 0; |
| 1879 | clear_has_val(); |
| 1880 | } |
| 1881 | } |
| 1882 | inline float ValueType::float_val() const { |
| 1883 | // @@protoc_insertion_point(field_get:dmi.ValueType.float_val) |
| 1884 | if (has_float_val()) { |
| 1885 | return val_.float_val_; |
| 1886 | } |
| 1887 | return 0; |
| 1888 | } |
| 1889 | inline void ValueType::set_float_val(float value) { |
| 1890 | if (!has_float_val()) { |
| 1891 | clear_val(); |
| 1892 | set_has_float_val(); |
| 1893 | } |
| 1894 | val_.float_val_ = value; |
| 1895 | // @@protoc_insertion_point(field_set:dmi.ValueType.float_val) |
| 1896 | } |
| 1897 | |
| 1898 | inline bool ValueType::has_val() const { |
| 1899 | return val_case() != VAL_NOT_SET; |
| 1900 | } |
| 1901 | inline void ValueType::clear_has_val() { |
| 1902 | _oneof_case_[0] = VAL_NOT_SET; |
| 1903 | } |
| 1904 | inline ValueType::ValCase ValueType::val_case() const { |
| 1905 | return ValueType::ValCase(_oneof_case_[0]); |
| 1906 | } |
| 1907 | // ------------------------------------------------------------------- |
| 1908 | |
| 1909 | // WaterMarks |
| 1910 | |
| 1911 | // .dmi.ValueType high = 1; |
| 1912 | inline bool WaterMarks::has_high() const { |
| 1913 | return this != internal_default_instance() && high_ != nullptr; |
| 1914 | } |
| 1915 | inline void WaterMarks::clear_high() { |
| 1916 | if (GetArenaNoVirtual() == nullptr && high_ != nullptr) { |
| 1917 | delete high_; |
| 1918 | } |
| 1919 | high_ = nullptr; |
| 1920 | } |
| 1921 | inline const ::dmi::ValueType& WaterMarks::high() const { |
| 1922 | const ::dmi::ValueType* p = high_; |
| 1923 | // @@protoc_insertion_point(field_get:dmi.WaterMarks.high) |
| 1924 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ValueType*>( |
| 1925 | &::dmi::_ValueType_default_instance_); |
| 1926 | } |
| 1927 | inline ::dmi::ValueType* WaterMarks::release_high() { |
| 1928 | // @@protoc_insertion_point(field_release:dmi.WaterMarks.high) |
| 1929 | |
| 1930 | ::dmi::ValueType* temp = high_; |
| 1931 | high_ = nullptr; |
| 1932 | return temp; |
| 1933 | } |
| 1934 | inline ::dmi::ValueType* WaterMarks::mutable_high() { |
| 1935 | |
| 1936 | if (high_ == nullptr) { |
| 1937 | auto* p = CreateMaybeMessage<::dmi::ValueType>(GetArenaNoVirtual()); |
| 1938 | high_ = p; |
| 1939 | } |
| 1940 | // @@protoc_insertion_point(field_mutable:dmi.WaterMarks.high) |
| 1941 | return high_; |
| 1942 | } |
| 1943 | inline void WaterMarks::set_allocated_high(::dmi::ValueType* high) { |
| 1944 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1945 | if (message_arena == nullptr) { |
| 1946 | delete high_; |
| 1947 | } |
| 1948 | if (high) { |
| 1949 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1950 | if (message_arena != submessage_arena) { |
| 1951 | high = ::google::protobuf::internal::GetOwnedMessage( |
| 1952 | message_arena, high, submessage_arena); |
| 1953 | } |
| 1954 | |
| 1955 | } else { |
| 1956 | |
| 1957 | } |
| 1958 | high_ = high; |
| 1959 | // @@protoc_insertion_point(field_set_allocated:dmi.WaterMarks.high) |
| 1960 | } |
| 1961 | |
| 1962 | // .dmi.ValueType low = 2; |
| 1963 | inline bool WaterMarks::has_low() const { |
| 1964 | return this != internal_default_instance() && low_ != nullptr; |
| 1965 | } |
| 1966 | inline void WaterMarks::clear_low() { |
| 1967 | if (GetArenaNoVirtual() == nullptr && low_ != nullptr) { |
| 1968 | delete low_; |
| 1969 | } |
| 1970 | low_ = nullptr; |
| 1971 | } |
| 1972 | inline const ::dmi::ValueType& WaterMarks::low() const { |
| 1973 | const ::dmi::ValueType* p = low_; |
| 1974 | // @@protoc_insertion_point(field_get:dmi.WaterMarks.low) |
| 1975 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ValueType*>( |
| 1976 | &::dmi::_ValueType_default_instance_); |
| 1977 | } |
| 1978 | inline ::dmi::ValueType* WaterMarks::release_low() { |
| 1979 | // @@protoc_insertion_point(field_release:dmi.WaterMarks.low) |
| 1980 | |
| 1981 | ::dmi::ValueType* temp = low_; |
| 1982 | low_ = nullptr; |
| 1983 | return temp; |
| 1984 | } |
| 1985 | inline ::dmi::ValueType* WaterMarks::mutable_low() { |
| 1986 | |
| 1987 | if (low_ == nullptr) { |
| 1988 | auto* p = CreateMaybeMessage<::dmi::ValueType>(GetArenaNoVirtual()); |
| 1989 | low_ = p; |
| 1990 | } |
| 1991 | // @@protoc_insertion_point(field_mutable:dmi.WaterMarks.low) |
| 1992 | return low_; |
| 1993 | } |
| 1994 | inline void WaterMarks::set_allocated_low(::dmi::ValueType* low) { |
| 1995 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1996 | if (message_arena == nullptr) { |
| 1997 | delete low_; |
| 1998 | } |
| 1999 | if (low) { |
| 2000 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2001 | if (message_arena != submessage_arena) { |
| 2002 | low = ::google::protobuf::internal::GetOwnedMessage( |
| 2003 | message_arena, low, submessage_arena); |
| 2004 | } |
| 2005 | |
| 2006 | } else { |
| 2007 | |
| 2008 | } |
| 2009 | low_ = low; |
| 2010 | // @@protoc_insertion_point(field_set_allocated:dmi.WaterMarks.low) |
| 2011 | } |
| 2012 | |
| 2013 | // ------------------------------------------------------------------- |
| 2014 | |
| 2015 | // Thresholds |
| 2016 | |
| 2017 | // .dmi.WaterMarks upper = 1; |
| 2018 | inline bool Thresholds::has_upper() const { |
| 2019 | return threshold_case() == kUpper; |
| 2020 | } |
| 2021 | inline void Thresholds::set_has_upper() { |
| 2022 | _oneof_case_[0] = kUpper; |
| 2023 | } |
| 2024 | inline void Thresholds::clear_upper() { |
| 2025 | if (has_upper()) { |
| 2026 | delete threshold_.upper_; |
| 2027 | clear_has_threshold(); |
| 2028 | } |
| 2029 | } |
| 2030 | inline ::dmi::WaterMarks* Thresholds::release_upper() { |
| 2031 | // @@protoc_insertion_point(field_release:dmi.Thresholds.upper) |
| 2032 | if (has_upper()) { |
| 2033 | clear_has_threshold(); |
| 2034 | ::dmi::WaterMarks* temp = threshold_.upper_; |
| 2035 | threshold_.upper_ = nullptr; |
| 2036 | return temp; |
| 2037 | } else { |
| 2038 | return nullptr; |
| 2039 | } |
| 2040 | } |
| 2041 | inline const ::dmi::WaterMarks& Thresholds::upper() const { |
| 2042 | // @@protoc_insertion_point(field_get:dmi.Thresholds.upper) |
| 2043 | return has_upper() |
| 2044 | ? *threshold_.upper_ |
| 2045 | : *reinterpret_cast< ::dmi::WaterMarks*>(&::dmi::_WaterMarks_default_instance_); |
| 2046 | } |
| 2047 | inline ::dmi::WaterMarks* Thresholds::mutable_upper() { |
| 2048 | if (!has_upper()) { |
| 2049 | clear_threshold(); |
| 2050 | set_has_upper(); |
| 2051 | threshold_.upper_ = CreateMaybeMessage< ::dmi::WaterMarks >( |
| 2052 | GetArenaNoVirtual()); |
| 2053 | } |
| 2054 | // @@protoc_insertion_point(field_mutable:dmi.Thresholds.upper) |
| 2055 | return threshold_.upper_; |
| 2056 | } |
| 2057 | |
| 2058 | // .dmi.WaterMarks lower = 2; |
| 2059 | inline bool Thresholds::has_lower() const { |
| 2060 | return threshold_case() == kLower; |
| 2061 | } |
| 2062 | inline void Thresholds::set_has_lower() { |
| 2063 | _oneof_case_[0] = kLower; |
| 2064 | } |
| 2065 | inline void Thresholds::clear_lower() { |
| 2066 | if (has_lower()) { |
| 2067 | delete threshold_.lower_; |
| 2068 | clear_has_threshold(); |
| 2069 | } |
| 2070 | } |
| 2071 | inline ::dmi::WaterMarks* Thresholds::release_lower() { |
| 2072 | // @@protoc_insertion_point(field_release:dmi.Thresholds.lower) |
| 2073 | if (has_lower()) { |
| 2074 | clear_has_threshold(); |
| 2075 | ::dmi::WaterMarks* temp = threshold_.lower_; |
| 2076 | threshold_.lower_ = nullptr; |
| 2077 | return temp; |
| 2078 | } else { |
| 2079 | return nullptr; |
| 2080 | } |
| 2081 | } |
| 2082 | inline const ::dmi::WaterMarks& Thresholds::lower() const { |
| 2083 | // @@protoc_insertion_point(field_get:dmi.Thresholds.lower) |
| 2084 | return has_lower() |
| 2085 | ? *threshold_.lower_ |
| 2086 | : *reinterpret_cast< ::dmi::WaterMarks*>(&::dmi::_WaterMarks_default_instance_); |
| 2087 | } |
| 2088 | inline ::dmi::WaterMarks* Thresholds::mutable_lower() { |
| 2089 | if (!has_lower()) { |
| 2090 | clear_threshold(); |
| 2091 | set_has_lower(); |
| 2092 | threshold_.lower_ = CreateMaybeMessage< ::dmi::WaterMarks >( |
| 2093 | GetArenaNoVirtual()); |
| 2094 | } |
| 2095 | // @@protoc_insertion_point(field_mutable:dmi.Thresholds.lower) |
| 2096 | return threshold_.lower_; |
| 2097 | } |
| 2098 | |
| 2099 | inline bool Thresholds::has_threshold() const { |
| 2100 | return threshold_case() != THRESHOLD_NOT_SET; |
| 2101 | } |
| 2102 | inline void Thresholds::clear_has_threshold() { |
| 2103 | _oneof_case_[0] = THRESHOLD_NOT_SET; |
| 2104 | } |
| 2105 | inline Thresholds::ThresholdCase Thresholds::threshold_case() const { |
| 2106 | return Thresholds::ThresholdCase(_oneof_case_[0]); |
| 2107 | } |
| 2108 | // ------------------------------------------------------------------- |
| 2109 | |
| 2110 | // ThresholdInformation |
| 2111 | |
| 2112 | // .dmi.ValueType observed_value = 1; |
| 2113 | inline bool ThresholdInformation::has_observed_value() const { |
| 2114 | return this != internal_default_instance() && observed_value_ != nullptr; |
| 2115 | } |
| 2116 | inline void ThresholdInformation::clear_observed_value() { |
| 2117 | if (GetArenaNoVirtual() == nullptr && observed_value_ != nullptr) { |
| 2118 | delete observed_value_; |
| 2119 | } |
| 2120 | observed_value_ = nullptr; |
| 2121 | } |
| 2122 | inline const ::dmi::ValueType& ThresholdInformation::observed_value() const { |
| 2123 | const ::dmi::ValueType* p = observed_value_; |
| 2124 | // @@protoc_insertion_point(field_get:dmi.ThresholdInformation.observed_value) |
| 2125 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ValueType*>( |
| 2126 | &::dmi::_ValueType_default_instance_); |
| 2127 | } |
| 2128 | inline ::dmi::ValueType* ThresholdInformation::release_observed_value() { |
| 2129 | // @@protoc_insertion_point(field_release:dmi.ThresholdInformation.observed_value) |
| 2130 | |
| 2131 | ::dmi::ValueType* temp = observed_value_; |
| 2132 | observed_value_ = nullptr; |
| 2133 | return temp; |
| 2134 | } |
| 2135 | inline ::dmi::ValueType* ThresholdInformation::mutable_observed_value() { |
| 2136 | |
| 2137 | if (observed_value_ == nullptr) { |
| 2138 | auto* p = CreateMaybeMessage<::dmi::ValueType>(GetArenaNoVirtual()); |
| 2139 | observed_value_ = p; |
| 2140 | } |
| 2141 | // @@protoc_insertion_point(field_mutable:dmi.ThresholdInformation.observed_value) |
| 2142 | return observed_value_; |
| 2143 | } |
| 2144 | inline void ThresholdInformation::set_allocated_observed_value(::dmi::ValueType* observed_value) { |
| 2145 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2146 | if (message_arena == nullptr) { |
| 2147 | delete observed_value_; |
| 2148 | } |
| 2149 | if (observed_value) { |
| 2150 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2151 | if (message_arena != submessage_arena) { |
| 2152 | observed_value = ::google::protobuf::internal::GetOwnedMessage( |
| 2153 | message_arena, observed_value, submessage_arena); |
| 2154 | } |
| 2155 | |
| 2156 | } else { |
| 2157 | |
| 2158 | } |
| 2159 | observed_value_ = observed_value; |
| 2160 | // @@protoc_insertion_point(field_set_allocated:dmi.ThresholdInformation.observed_value) |
| 2161 | } |
| 2162 | |
| 2163 | // .dmi.Thresholds thresholds = 2; |
| 2164 | inline bool ThresholdInformation::has_thresholds() const { |
| 2165 | return this != internal_default_instance() && thresholds_ != nullptr; |
| 2166 | } |
| 2167 | inline void ThresholdInformation::clear_thresholds() { |
| 2168 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 2169 | delete thresholds_; |
| 2170 | } |
| 2171 | thresholds_ = nullptr; |
| 2172 | } |
| 2173 | inline const ::dmi::Thresholds& ThresholdInformation::thresholds() const { |
| 2174 | const ::dmi::Thresholds* p = thresholds_; |
| 2175 | // @@protoc_insertion_point(field_get:dmi.ThresholdInformation.thresholds) |
| 2176 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Thresholds*>( |
| 2177 | &::dmi::_Thresholds_default_instance_); |
| 2178 | } |
| 2179 | inline ::dmi::Thresholds* ThresholdInformation::release_thresholds() { |
| 2180 | // @@protoc_insertion_point(field_release:dmi.ThresholdInformation.thresholds) |
| 2181 | |
| 2182 | ::dmi::Thresholds* temp = thresholds_; |
| 2183 | thresholds_ = nullptr; |
| 2184 | return temp; |
| 2185 | } |
| 2186 | inline ::dmi::Thresholds* ThresholdInformation::mutable_thresholds() { |
| 2187 | |
| 2188 | if (thresholds_ == nullptr) { |
| 2189 | auto* p = CreateMaybeMessage<::dmi::Thresholds>(GetArenaNoVirtual()); |
| 2190 | thresholds_ = p; |
| 2191 | } |
| 2192 | // @@protoc_insertion_point(field_mutable:dmi.ThresholdInformation.thresholds) |
| 2193 | return thresholds_; |
| 2194 | } |
| 2195 | inline void ThresholdInformation::set_allocated_thresholds(::dmi::Thresholds* thresholds) { |
| 2196 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2197 | if (message_arena == nullptr) { |
| 2198 | delete thresholds_; |
| 2199 | } |
| 2200 | if (thresholds) { |
| 2201 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2202 | if (message_arena != submessage_arena) { |
| 2203 | thresholds = ::google::protobuf::internal::GetOwnedMessage( |
| 2204 | message_arena, thresholds, submessage_arena); |
| 2205 | } |
| 2206 | |
| 2207 | } else { |
| 2208 | |
| 2209 | } |
| 2210 | thresholds_ = thresholds; |
| 2211 | // @@protoc_insertion_point(field_set_allocated:dmi.ThresholdInformation.thresholds) |
| 2212 | } |
| 2213 | |
| 2214 | // ------------------------------------------------------------------- |
| 2215 | |
| 2216 | // EventCfg |
| 2217 | |
| 2218 | // .dmi.EventIds event_id = 1; |
| 2219 | inline void EventCfg::clear_event_id() { |
| 2220 | event_id_ = 0; |
| 2221 | } |
| 2222 | inline ::dmi::EventIds EventCfg::event_id() const { |
| 2223 | // @@protoc_insertion_point(field_get:dmi.EventCfg.event_id) |
| 2224 | return static_cast< ::dmi::EventIds >(event_id_); |
| 2225 | } |
| 2226 | inline void EventCfg::set_event_id(::dmi::EventIds value) { |
| 2227 | |
| 2228 | event_id_ = value; |
| 2229 | // @@protoc_insertion_point(field_set:dmi.EventCfg.event_id) |
| 2230 | } |
| 2231 | |
| 2232 | // bool is_configured = 2; |
| 2233 | inline void EventCfg::clear_is_configured() { |
| 2234 | is_configured_ = false; |
| 2235 | } |
| 2236 | inline bool EventCfg::is_configured() const { |
| 2237 | // @@protoc_insertion_point(field_get:dmi.EventCfg.is_configured) |
| 2238 | return is_configured_; |
| 2239 | } |
| 2240 | inline void EventCfg::set_is_configured(bool value) { |
| 2241 | |
| 2242 | is_configured_ = value; |
| 2243 | // @@protoc_insertion_point(field_set:dmi.EventCfg.is_configured) |
| 2244 | } |
| 2245 | |
| 2246 | // .dmi.Thresholds thresholds = 3; |
| 2247 | inline bool EventCfg::has_thresholds() const { |
| 2248 | return this != internal_default_instance() && thresholds_ != nullptr; |
| 2249 | } |
| 2250 | inline void EventCfg::clear_thresholds() { |
| 2251 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 2252 | delete thresholds_; |
| 2253 | } |
| 2254 | thresholds_ = nullptr; |
| 2255 | } |
| 2256 | inline const ::dmi::Thresholds& EventCfg::thresholds() const { |
| 2257 | const ::dmi::Thresholds* p = thresholds_; |
| 2258 | // @@protoc_insertion_point(field_get:dmi.EventCfg.thresholds) |
| 2259 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Thresholds*>( |
| 2260 | &::dmi::_Thresholds_default_instance_); |
| 2261 | } |
| 2262 | inline ::dmi::Thresholds* EventCfg::release_thresholds() { |
| 2263 | // @@protoc_insertion_point(field_release:dmi.EventCfg.thresholds) |
| 2264 | |
| 2265 | ::dmi::Thresholds* temp = thresholds_; |
| 2266 | thresholds_ = nullptr; |
| 2267 | return temp; |
| 2268 | } |
| 2269 | inline ::dmi::Thresholds* EventCfg::mutable_thresholds() { |
| 2270 | |
| 2271 | if (thresholds_ == nullptr) { |
| 2272 | auto* p = CreateMaybeMessage<::dmi::Thresholds>(GetArenaNoVirtual()); |
| 2273 | thresholds_ = p; |
| 2274 | } |
| 2275 | // @@protoc_insertion_point(field_mutable:dmi.EventCfg.thresholds) |
| 2276 | return thresholds_; |
| 2277 | } |
| 2278 | inline void EventCfg::set_allocated_thresholds(::dmi::Thresholds* thresholds) { |
| 2279 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2280 | if (message_arena == nullptr) { |
| 2281 | delete thresholds_; |
| 2282 | } |
| 2283 | if (thresholds) { |
| 2284 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2285 | if (message_arena != submessage_arena) { |
| 2286 | thresholds = ::google::protobuf::internal::GetOwnedMessage( |
| 2287 | message_arena, thresholds, submessage_arena); |
| 2288 | } |
| 2289 | |
| 2290 | } else { |
| 2291 | |
| 2292 | } |
| 2293 | thresholds_ = thresholds; |
| 2294 | // @@protoc_insertion_point(field_set_allocated:dmi.EventCfg.thresholds) |
| 2295 | } |
| 2296 | |
| 2297 | // ------------------------------------------------------------------- |
| 2298 | |
| 2299 | // EventsCfg |
| 2300 | |
| 2301 | // repeated .dmi.EventCfg items = 1; |
| 2302 | inline int EventsCfg::items_size() const { |
| 2303 | return items_.size(); |
| 2304 | } |
| 2305 | inline void EventsCfg::clear_items() { |
| 2306 | items_.Clear(); |
| 2307 | } |
| 2308 | inline ::dmi::EventCfg* EventsCfg::mutable_items(int index) { |
| 2309 | // @@protoc_insertion_point(field_mutable:dmi.EventsCfg.items) |
| 2310 | return items_.Mutable(index); |
| 2311 | } |
| 2312 | inline ::google::protobuf::RepeatedPtrField< ::dmi::EventCfg >* |
| 2313 | EventsCfg::mutable_items() { |
| 2314 | // @@protoc_insertion_point(field_mutable_list:dmi.EventsCfg.items) |
| 2315 | return &items_; |
| 2316 | } |
| 2317 | inline const ::dmi::EventCfg& EventsCfg::items(int index) const { |
| 2318 | // @@protoc_insertion_point(field_get:dmi.EventsCfg.items) |
| 2319 | return items_.Get(index); |
| 2320 | } |
| 2321 | inline ::dmi::EventCfg* EventsCfg::add_items() { |
| 2322 | // @@protoc_insertion_point(field_add:dmi.EventsCfg.items) |
| 2323 | return items_.Add(); |
| 2324 | } |
| 2325 | inline const ::google::protobuf::RepeatedPtrField< ::dmi::EventCfg >& |
| 2326 | EventsCfg::items() const { |
| 2327 | // @@protoc_insertion_point(field_list:dmi.EventsCfg.items) |
| 2328 | return items_; |
| 2329 | } |
| 2330 | |
| 2331 | // ------------------------------------------------------------------- |
| 2332 | |
| 2333 | // ListEventsResponse |
| 2334 | |
| 2335 | // .dmi.Status status = 1; |
| 2336 | inline void ListEventsResponse::clear_status() { |
| 2337 | status_ = 0; |
| 2338 | } |
| 2339 | inline ::dmi::Status ListEventsResponse::status() const { |
| 2340 | // @@protoc_insertion_point(field_get:dmi.ListEventsResponse.status) |
| 2341 | return static_cast< ::dmi::Status >(status_); |
| 2342 | } |
| 2343 | inline void ListEventsResponse::set_status(::dmi::Status value) { |
| 2344 | |
| 2345 | status_ = value; |
| 2346 | // @@protoc_insertion_point(field_set:dmi.ListEventsResponse.status) |
| 2347 | } |
| 2348 | |
| 2349 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 2350 | inline void ListEventsResponse::clear_reason() { |
| 2351 | reason_ = 0; |
| 2352 | } |
| 2353 | inline ::dmi::ListEventsResponse_Reason ListEventsResponse::reason() const { |
| 2354 | // @@protoc_insertion_point(field_get:dmi.ListEventsResponse.reason) |
| 2355 | return static_cast< ::dmi::ListEventsResponse_Reason >(reason_); |
| 2356 | } |
| 2357 | inline void ListEventsResponse::set_reason(::dmi::ListEventsResponse_Reason value) { |
| 2358 | |
| 2359 | reason_ = value; |
| 2360 | // @@protoc_insertion_point(field_set:dmi.ListEventsResponse.reason) |
| 2361 | } |
| 2362 | |
| 2363 | // .dmi.EventsCfg events = 3; |
| 2364 | inline bool ListEventsResponse::has_events() const { |
| 2365 | return this != internal_default_instance() && events_ != nullptr; |
| 2366 | } |
| 2367 | inline void ListEventsResponse::clear_events() { |
| 2368 | if (GetArenaNoVirtual() == nullptr && events_ != nullptr) { |
| 2369 | delete events_; |
| 2370 | } |
| 2371 | events_ = nullptr; |
| 2372 | } |
| 2373 | inline const ::dmi::EventsCfg& ListEventsResponse::events() const { |
| 2374 | const ::dmi::EventsCfg* p = events_; |
| 2375 | // @@protoc_insertion_point(field_get:dmi.ListEventsResponse.events) |
| 2376 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::EventsCfg*>( |
| 2377 | &::dmi::_EventsCfg_default_instance_); |
| 2378 | } |
| 2379 | inline ::dmi::EventsCfg* ListEventsResponse::release_events() { |
| 2380 | // @@protoc_insertion_point(field_release:dmi.ListEventsResponse.events) |
| 2381 | |
| 2382 | ::dmi::EventsCfg* temp = events_; |
| 2383 | events_ = nullptr; |
| 2384 | return temp; |
| 2385 | } |
| 2386 | inline ::dmi::EventsCfg* ListEventsResponse::mutable_events() { |
| 2387 | |
| 2388 | if (events_ == nullptr) { |
| 2389 | auto* p = CreateMaybeMessage<::dmi::EventsCfg>(GetArenaNoVirtual()); |
| 2390 | events_ = p; |
| 2391 | } |
| 2392 | // @@protoc_insertion_point(field_mutable:dmi.ListEventsResponse.events) |
| 2393 | return events_; |
| 2394 | } |
| 2395 | inline void ListEventsResponse::set_allocated_events(::dmi::EventsCfg* events) { |
| 2396 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2397 | if (message_arena == nullptr) { |
| 2398 | delete events_; |
| 2399 | } |
| 2400 | if (events) { |
| 2401 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2402 | if (message_arena != submessage_arena) { |
| 2403 | events = ::google::protobuf::internal::GetOwnedMessage( |
| 2404 | message_arena, events, submessage_arena); |
| 2405 | } |
| 2406 | |
| 2407 | } else { |
| 2408 | |
| 2409 | } |
| 2410 | events_ = events; |
| 2411 | // @@protoc_insertion_point(field_set_allocated:dmi.ListEventsResponse.events) |
| 2412 | } |
| 2413 | |
| 2414 | // string reason_detail = 4; |
| 2415 | inline void ListEventsResponse::clear_reason_detail() { |
| 2416 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2417 | } |
| 2418 | inline const ::std::string& ListEventsResponse::reason_detail() const { |
| 2419 | // @@protoc_insertion_point(field_get:dmi.ListEventsResponse.reason_detail) |
| 2420 | return reason_detail_.GetNoArena(); |
| 2421 | } |
| 2422 | inline void ListEventsResponse::set_reason_detail(const ::std::string& value) { |
| 2423 | |
| 2424 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2425 | // @@protoc_insertion_point(field_set:dmi.ListEventsResponse.reason_detail) |
| 2426 | } |
| 2427 | #if LANG_CXX11 |
| 2428 | inline void ListEventsResponse::set_reason_detail(::std::string&& value) { |
| 2429 | |
| 2430 | reason_detail_.SetNoArena( |
| 2431 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2432 | // @@protoc_insertion_point(field_set_rvalue:dmi.ListEventsResponse.reason_detail) |
| 2433 | } |
| 2434 | #endif |
| 2435 | inline void ListEventsResponse::set_reason_detail(const char* value) { |
| 2436 | GOOGLE_DCHECK(value != nullptr); |
| 2437 | |
| 2438 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2439 | // @@protoc_insertion_point(field_set_char:dmi.ListEventsResponse.reason_detail) |
| 2440 | } |
| 2441 | inline void ListEventsResponse::set_reason_detail(const char* value, size_t size) { |
| 2442 | |
| 2443 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2444 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2445 | // @@protoc_insertion_point(field_set_pointer:dmi.ListEventsResponse.reason_detail) |
| 2446 | } |
| 2447 | inline ::std::string* ListEventsResponse::mutable_reason_detail() { |
| 2448 | |
| 2449 | // @@protoc_insertion_point(field_mutable:dmi.ListEventsResponse.reason_detail) |
| 2450 | return reason_detail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2451 | } |
| 2452 | inline ::std::string* ListEventsResponse::release_reason_detail() { |
| 2453 | // @@protoc_insertion_point(field_release:dmi.ListEventsResponse.reason_detail) |
| 2454 | |
| 2455 | return reason_detail_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2456 | } |
| 2457 | inline void ListEventsResponse::set_allocated_reason_detail(::std::string* reason_detail) { |
| 2458 | if (reason_detail != nullptr) { |
| 2459 | |
| 2460 | } else { |
| 2461 | |
| 2462 | } |
| 2463 | reason_detail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason_detail); |
| 2464 | // @@protoc_insertion_point(field_set_allocated:dmi.ListEventsResponse.reason_detail) |
| 2465 | } |
| 2466 | |
| 2467 | // ------------------------------------------------------------------- |
| 2468 | |
| 2469 | // EventsConfigurationRequest |
| 2470 | |
| 2471 | // .dmi.Uuid device_uuid = 1; |
| 2472 | inline bool EventsConfigurationRequest::has_device_uuid() const { |
| 2473 | return this != internal_default_instance() && device_uuid_ != nullptr; |
| 2474 | } |
| 2475 | inline const ::dmi::Uuid& EventsConfigurationRequest::device_uuid() const { |
| 2476 | const ::dmi::Uuid* p = device_uuid_; |
| 2477 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationRequest.device_uuid) |
| 2478 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 2479 | &::dmi::_Uuid_default_instance_); |
| 2480 | } |
| 2481 | inline ::dmi::Uuid* EventsConfigurationRequest::release_device_uuid() { |
| 2482 | // @@protoc_insertion_point(field_release:dmi.EventsConfigurationRequest.device_uuid) |
| 2483 | |
| 2484 | ::dmi::Uuid* temp = device_uuid_; |
| 2485 | device_uuid_ = nullptr; |
| 2486 | return temp; |
| 2487 | } |
| 2488 | inline ::dmi::Uuid* EventsConfigurationRequest::mutable_device_uuid() { |
| 2489 | |
| 2490 | if (device_uuid_ == nullptr) { |
| 2491 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 2492 | device_uuid_ = p; |
| 2493 | } |
| 2494 | // @@protoc_insertion_point(field_mutable:dmi.EventsConfigurationRequest.device_uuid) |
| 2495 | return device_uuid_; |
| 2496 | } |
| 2497 | inline void EventsConfigurationRequest::set_allocated_device_uuid(::dmi::Uuid* device_uuid) { |
| 2498 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2499 | if (message_arena == nullptr) { |
| 2500 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_uuid_); |
| 2501 | } |
| 2502 | if (device_uuid) { |
| 2503 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2504 | if (message_arena != submessage_arena) { |
| 2505 | device_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 2506 | message_arena, device_uuid, submessage_arena); |
| 2507 | } |
| 2508 | |
| 2509 | } else { |
| 2510 | |
| 2511 | } |
| 2512 | device_uuid_ = device_uuid; |
| 2513 | // @@protoc_insertion_point(field_set_allocated:dmi.EventsConfigurationRequest.device_uuid) |
| 2514 | } |
| 2515 | |
| 2516 | // .dmi.EventsCfg changes = 2; |
| 2517 | inline bool EventsConfigurationRequest::has_changes() const { |
| 2518 | return operation_case() == kChanges; |
| 2519 | } |
| 2520 | inline void EventsConfigurationRequest::set_has_changes() { |
| 2521 | _oneof_case_[0] = kChanges; |
| 2522 | } |
| 2523 | inline void EventsConfigurationRequest::clear_changes() { |
| 2524 | if (has_changes()) { |
| 2525 | delete operation_.changes_; |
| 2526 | clear_has_operation(); |
| 2527 | } |
| 2528 | } |
| 2529 | inline ::dmi::EventsCfg* EventsConfigurationRequest::release_changes() { |
| 2530 | // @@protoc_insertion_point(field_release:dmi.EventsConfigurationRequest.changes) |
| 2531 | if (has_changes()) { |
| 2532 | clear_has_operation(); |
| 2533 | ::dmi::EventsCfg* temp = operation_.changes_; |
| 2534 | operation_.changes_ = nullptr; |
| 2535 | return temp; |
| 2536 | } else { |
| 2537 | return nullptr; |
| 2538 | } |
| 2539 | } |
| 2540 | inline const ::dmi::EventsCfg& EventsConfigurationRequest::changes() const { |
| 2541 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationRequest.changes) |
| 2542 | return has_changes() |
| 2543 | ? *operation_.changes_ |
| 2544 | : *reinterpret_cast< ::dmi::EventsCfg*>(&::dmi::_EventsCfg_default_instance_); |
| 2545 | } |
| 2546 | inline ::dmi::EventsCfg* EventsConfigurationRequest::mutable_changes() { |
| 2547 | if (!has_changes()) { |
| 2548 | clear_operation(); |
| 2549 | set_has_changes(); |
| 2550 | operation_.changes_ = CreateMaybeMessage< ::dmi::EventsCfg >( |
| 2551 | GetArenaNoVirtual()); |
| 2552 | } |
| 2553 | // @@protoc_insertion_point(field_mutable:dmi.EventsConfigurationRequest.changes) |
| 2554 | return operation_.changes_; |
| 2555 | } |
| 2556 | |
| 2557 | // bool reset_to_default = 3; |
| 2558 | inline bool EventsConfigurationRequest::has_reset_to_default() const { |
| 2559 | return operation_case() == kResetToDefault; |
| 2560 | } |
| 2561 | inline void EventsConfigurationRequest::set_has_reset_to_default() { |
| 2562 | _oneof_case_[0] = kResetToDefault; |
| 2563 | } |
| 2564 | inline void EventsConfigurationRequest::clear_reset_to_default() { |
| 2565 | if (has_reset_to_default()) { |
| 2566 | operation_.reset_to_default_ = false; |
| 2567 | clear_has_operation(); |
| 2568 | } |
| 2569 | } |
| 2570 | inline bool EventsConfigurationRequest::reset_to_default() const { |
| 2571 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationRequest.reset_to_default) |
| 2572 | if (has_reset_to_default()) { |
| 2573 | return operation_.reset_to_default_; |
| 2574 | } |
| 2575 | return false; |
| 2576 | } |
| 2577 | inline void EventsConfigurationRequest::set_reset_to_default(bool value) { |
| 2578 | if (!has_reset_to_default()) { |
| 2579 | clear_operation(); |
| 2580 | set_has_reset_to_default(); |
| 2581 | } |
| 2582 | operation_.reset_to_default_ = value; |
| 2583 | // @@protoc_insertion_point(field_set:dmi.EventsConfigurationRequest.reset_to_default) |
| 2584 | } |
| 2585 | |
| 2586 | inline bool EventsConfigurationRequest::has_operation() const { |
| 2587 | return operation_case() != OPERATION_NOT_SET; |
| 2588 | } |
| 2589 | inline void EventsConfigurationRequest::clear_has_operation() { |
| 2590 | _oneof_case_[0] = OPERATION_NOT_SET; |
| 2591 | } |
| 2592 | inline EventsConfigurationRequest::OperationCase EventsConfigurationRequest::operation_case() const { |
| 2593 | return EventsConfigurationRequest::OperationCase(_oneof_case_[0]); |
| 2594 | } |
| 2595 | // ------------------------------------------------------------------- |
| 2596 | |
| 2597 | // EventsConfigurationResponse |
| 2598 | |
| 2599 | // .dmi.Status status = 1; |
| 2600 | inline void EventsConfigurationResponse::clear_status() { |
| 2601 | status_ = 0; |
| 2602 | } |
| 2603 | inline ::dmi::Status EventsConfigurationResponse::status() const { |
| 2604 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationResponse.status) |
| 2605 | return static_cast< ::dmi::Status >(status_); |
| 2606 | } |
| 2607 | inline void EventsConfigurationResponse::set_status(::dmi::Status value) { |
| 2608 | |
| 2609 | status_ = value; |
| 2610 | // @@protoc_insertion_point(field_set:dmi.EventsConfigurationResponse.status) |
| 2611 | } |
| 2612 | |
| 2613 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 2614 | inline void EventsConfigurationResponse::clear_reason() { |
| 2615 | reason_ = 0; |
| 2616 | } |
| 2617 | inline ::dmi::EventsConfigurationResponse_Reason EventsConfigurationResponse::reason() const { |
| 2618 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationResponse.reason) |
| 2619 | return static_cast< ::dmi::EventsConfigurationResponse_Reason >(reason_); |
| 2620 | } |
| 2621 | inline void EventsConfigurationResponse::set_reason(::dmi::EventsConfigurationResponse_Reason value) { |
| 2622 | |
| 2623 | reason_ = value; |
| 2624 | // @@protoc_insertion_point(field_set:dmi.EventsConfigurationResponse.reason) |
| 2625 | } |
| 2626 | |
| 2627 | // string reason_detail = 3; |
| 2628 | inline void EventsConfigurationResponse::clear_reason_detail() { |
| 2629 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2630 | } |
| 2631 | inline const ::std::string& EventsConfigurationResponse::reason_detail() const { |
| 2632 | // @@protoc_insertion_point(field_get:dmi.EventsConfigurationResponse.reason_detail) |
| 2633 | return reason_detail_.GetNoArena(); |
| 2634 | } |
| 2635 | inline void EventsConfigurationResponse::set_reason_detail(const ::std::string& value) { |
| 2636 | |
| 2637 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2638 | // @@protoc_insertion_point(field_set:dmi.EventsConfigurationResponse.reason_detail) |
| 2639 | } |
| 2640 | #if LANG_CXX11 |
| 2641 | inline void EventsConfigurationResponse::set_reason_detail(::std::string&& value) { |
| 2642 | |
| 2643 | reason_detail_.SetNoArena( |
| 2644 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2645 | // @@protoc_insertion_point(field_set_rvalue:dmi.EventsConfigurationResponse.reason_detail) |
| 2646 | } |
| 2647 | #endif |
| 2648 | inline void EventsConfigurationResponse::set_reason_detail(const char* value) { |
| 2649 | GOOGLE_DCHECK(value != nullptr); |
| 2650 | |
| 2651 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2652 | // @@protoc_insertion_point(field_set_char:dmi.EventsConfigurationResponse.reason_detail) |
| 2653 | } |
| 2654 | inline void EventsConfigurationResponse::set_reason_detail(const char* value, size_t size) { |
| 2655 | |
| 2656 | reason_detail_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2657 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2658 | // @@protoc_insertion_point(field_set_pointer:dmi.EventsConfigurationResponse.reason_detail) |
| 2659 | } |
| 2660 | inline ::std::string* EventsConfigurationResponse::mutable_reason_detail() { |
| 2661 | |
| 2662 | // @@protoc_insertion_point(field_mutable:dmi.EventsConfigurationResponse.reason_detail) |
| 2663 | return reason_detail_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2664 | } |
| 2665 | inline ::std::string* EventsConfigurationResponse::release_reason_detail() { |
| 2666 | // @@protoc_insertion_point(field_release:dmi.EventsConfigurationResponse.reason_detail) |
| 2667 | |
| 2668 | return reason_detail_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2669 | } |
| 2670 | inline void EventsConfigurationResponse::set_allocated_reason_detail(::std::string* reason_detail) { |
| 2671 | if (reason_detail != nullptr) { |
| 2672 | |
| 2673 | } else { |
| 2674 | |
| 2675 | } |
| 2676 | reason_detail_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason_detail); |
| 2677 | // @@protoc_insertion_point(field_set_allocated:dmi.EventsConfigurationResponse.reason_detail) |
| 2678 | } |
| 2679 | |
| 2680 | // ------------------------------------------------------------------- |
| 2681 | |
| 2682 | // EventMetaData |
| 2683 | |
| 2684 | // .dmi.Uuid device_uuid = 1; |
| 2685 | inline bool EventMetaData::has_device_uuid() const { |
| 2686 | return this != internal_default_instance() && device_uuid_ != nullptr; |
| 2687 | } |
| 2688 | inline const ::dmi::Uuid& EventMetaData::device_uuid() const { |
| 2689 | const ::dmi::Uuid* p = device_uuid_; |
| 2690 | // @@protoc_insertion_point(field_get:dmi.EventMetaData.device_uuid) |
| 2691 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 2692 | &::dmi::_Uuid_default_instance_); |
| 2693 | } |
| 2694 | inline ::dmi::Uuid* EventMetaData::release_device_uuid() { |
| 2695 | // @@protoc_insertion_point(field_release:dmi.EventMetaData.device_uuid) |
| 2696 | |
| 2697 | ::dmi::Uuid* temp = device_uuid_; |
| 2698 | device_uuid_ = nullptr; |
| 2699 | return temp; |
| 2700 | } |
| 2701 | inline ::dmi::Uuid* EventMetaData::mutable_device_uuid() { |
| 2702 | |
| 2703 | if (device_uuid_ == nullptr) { |
| 2704 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 2705 | device_uuid_ = p; |
| 2706 | } |
| 2707 | // @@protoc_insertion_point(field_mutable:dmi.EventMetaData.device_uuid) |
| 2708 | return device_uuid_; |
| 2709 | } |
| 2710 | inline void EventMetaData::set_allocated_device_uuid(::dmi::Uuid* device_uuid) { |
| 2711 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2712 | if (message_arena == nullptr) { |
| 2713 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_uuid_); |
| 2714 | } |
| 2715 | if (device_uuid) { |
| 2716 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2717 | if (message_arena != submessage_arena) { |
| 2718 | device_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 2719 | message_arena, device_uuid, submessage_arena); |
| 2720 | } |
| 2721 | |
| 2722 | } else { |
| 2723 | |
| 2724 | } |
| 2725 | device_uuid_ = device_uuid; |
| 2726 | // @@protoc_insertion_point(field_set_allocated:dmi.EventMetaData.device_uuid) |
| 2727 | } |
| 2728 | |
| 2729 | // .dmi.Uuid component_uuid = 2; |
| 2730 | inline bool EventMetaData::has_component_uuid() const { |
| 2731 | return this != internal_default_instance() && component_uuid_ != nullptr; |
| 2732 | } |
| 2733 | inline const ::dmi::Uuid& EventMetaData::component_uuid() const { |
| 2734 | const ::dmi::Uuid* p = component_uuid_; |
| 2735 | // @@protoc_insertion_point(field_get:dmi.EventMetaData.component_uuid) |
| 2736 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>( |
| 2737 | &::dmi::_Uuid_default_instance_); |
| 2738 | } |
| 2739 | inline ::dmi::Uuid* EventMetaData::release_component_uuid() { |
| 2740 | // @@protoc_insertion_point(field_release:dmi.EventMetaData.component_uuid) |
| 2741 | |
| 2742 | ::dmi::Uuid* temp = component_uuid_; |
| 2743 | component_uuid_ = nullptr; |
| 2744 | return temp; |
| 2745 | } |
| 2746 | inline ::dmi::Uuid* EventMetaData::mutable_component_uuid() { |
| 2747 | |
| 2748 | if (component_uuid_ == nullptr) { |
| 2749 | auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual()); |
| 2750 | component_uuid_ = p; |
| 2751 | } |
| 2752 | // @@protoc_insertion_point(field_mutable:dmi.EventMetaData.component_uuid) |
| 2753 | return component_uuid_; |
| 2754 | } |
| 2755 | inline void EventMetaData::set_allocated_component_uuid(::dmi::Uuid* component_uuid) { |
| 2756 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2757 | if (message_arena == nullptr) { |
| 2758 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(component_uuid_); |
| 2759 | } |
| 2760 | if (component_uuid) { |
| 2761 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2762 | if (message_arena != submessage_arena) { |
| 2763 | component_uuid = ::google::protobuf::internal::GetOwnedMessage( |
| 2764 | message_arena, component_uuid, submessage_arena); |
| 2765 | } |
| 2766 | |
| 2767 | } else { |
| 2768 | |
| 2769 | } |
| 2770 | component_uuid_ = component_uuid; |
| 2771 | // @@protoc_insertion_point(field_set_allocated:dmi.EventMetaData.component_uuid) |
| 2772 | } |
| 2773 | |
| 2774 | // string component_name = 3; |
| 2775 | inline void EventMetaData::clear_component_name() { |
| 2776 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2777 | } |
| 2778 | inline const ::std::string& EventMetaData::component_name() const { |
| 2779 | // @@protoc_insertion_point(field_get:dmi.EventMetaData.component_name) |
| 2780 | return component_name_.GetNoArena(); |
| 2781 | } |
| 2782 | inline void EventMetaData::set_component_name(const ::std::string& value) { |
| 2783 | |
| 2784 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 2785 | // @@protoc_insertion_point(field_set:dmi.EventMetaData.component_name) |
| 2786 | } |
| 2787 | #if LANG_CXX11 |
| 2788 | inline void EventMetaData::set_component_name(::std::string&& value) { |
| 2789 | |
| 2790 | component_name_.SetNoArena( |
| 2791 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 2792 | // @@protoc_insertion_point(field_set_rvalue:dmi.EventMetaData.component_name) |
| 2793 | } |
| 2794 | #endif |
| 2795 | inline void EventMetaData::set_component_name(const char* value) { |
| 2796 | GOOGLE_DCHECK(value != nullptr); |
| 2797 | |
| 2798 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 2799 | // @@protoc_insertion_point(field_set_char:dmi.EventMetaData.component_name) |
| 2800 | } |
| 2801 | inline void EventMetaData::set_component_name(const char* value, size_t size) { |
| 2802 | |
| 2803 | component_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2804 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 2805 | // @@protoc_insertion_point(field_set_pointer:dmi.EventMetaData.component_name) |
| 2806 | } |
| 2807 | inline ::std::string* EventMetaData::mutable_component_name() { |
| 2808 | |
| 2809 | // @@protoc_insertion_point(field_mutable:dmi.EventMetaData.component_name) |
| 2810 | return component_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2811 | } |
| 2812 | inline ::std::string* EventMetaData::release_component_name() { |
| 2813 | // @@protoc_insertion_point(field_release:dmi.EventMetaData.component_name) |
| 2814 | |
| 2815 | return component_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2816 | } |
| 2817 | inline void EventMetaData::set_allocated_component_name(::std::string* component_name) { |
| 2818 | if (component_name != nullptr) { |
| 2819 | |
| 2820 | } else { |
| 2821 | |
| 2822 | } |
| 2823 | component_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), component_name); |
| 2824 | // @@protoc_insertion_point(field_set_allocated:dmi.EventMetaData.component_name) |
| 2825 | } |
| 2826 | |
| 2827 | // ------------------------------------------------------------------- |
| 2828 | |
| 2829 | // Event |
| 2830 | |
| 2831 | // .dmi.EventMetaData event_metadata = 1; |
| 2832 | inline bool Event::has_event_metadata() const { |
| 2833 | return this != internal_default_instance() && event_metadata_ != nullptr; |
| 2834 | } |
| 2835 | inline void Event::clear_event_metadata() { |
| 2836 | if (GetArenaNoVirtual() == nullptr && event_metadata_ != nullptr) { |
| 2837 | delete event_metadata_; |
| 2838 | } |
| 2839 | event_metadata_ = nullptr; |
| 2840 | } |
| 2841 | inline const ::dmi::EventMetaData& Event::event_metadata() const { |
| 2842 | const ::dmi::EventMetaData* p = event_metadata_; |
| 2843 | // @@protoc_insertion_point(field_get:dmi.Event.event_metadata) |
| 2844 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::EventMetaData*>( |
| 2845 | &::dmi::_EventMetaData_default_instance_); |
| 2846 | } |
| 2847 | inline ::dmi::EventMetaData* Event::release_event_metadata() { |
| 2848 | // @@protoc_insertion_point(field_release:dmi.Event.event_metadata) |
| 2849 | |
| 2850 | ::dmi::EventMetaData* temp = event_metadata_; |
| 2851 | event_metadata_ = nullptr; |
| 2852 | return temp; |
| 2853 | } |
| 2854 | inline ::dmi::EventMetaData* Event::mutable_event_metadata() { |
| 2855 | |
| 2856 | if (event_metadata_ == nullptr) { |
| 2857 | auto* p = CreateMaybeMessage<::dmi::EventMetaData>(GetArenaNoVirtual()); |
| 2858 | event_metadata_ = p; |
| 2859 | } |
| 2860 | // @@protoc_insertion_point(field_mutable:dmi.Event.event_metadata) |
| 2861 | return event_metadata_; |
| 2862 | } |
| 2863 | inline void Event::set_allocated_event_metadata(::dmi::EventMetaData* event_metadata) { |
| 2864 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2865 | if (message_arena == nullptr) { |
| 2866 | delete event_metadata_; |
| 2867 | } |
| 2868 | if (event_metadata) { |
| 2869 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2870 | if (message_arena != submessage_arena) { |
| 2871 | event_metadata = ::google::protobuf::internal::GetOwnedMessage( |
| 2872 | message_arena, event_metadata, submessage_arena); |
| 2873 | } |
| 2874 | |
| 2875 | } else { |
| 2876 | |
| 2877 | } |
| 2878 | event_metadata_ = event_metadata; |
| 2879 | // @@protoc_insertion_point(field_set_allocated:dmi.Event.event_metadata) |
| 2880 | } |
| 2881 | |
| 2882 | // .dmi.EventIds event_id = 2; |
| 2883 | inline void Event::clear_event_id() { |
| 2884 | event_id_ = 0; |
| 2885 | } |
| 2886 | inline ::dmi::EventIds Event::event_id() const { |
| 2887 | // @@protoc_insertion_point(field_get:dmi.Event.event_id) |
| 2888 | return static_cast< ::dmi::EventIds >(event_id_); |
| 2889 | } |
| 2890 | inline void Event::set_event_id(::dmi::EventIds value) { |
| 2891 | |
| 2892 | event_id_ = value; |
| 2893 | // @@protoc_insertion_point(field_set:dmi.Event.event_id) |
| 2894 | } |
| 2895 | |
| 2896 | // .google.protobuf.Timestamp raised_ts = 3; |
| 2897 | inline bool Event::has_raised_ts() const { |
| 2898 | return this != internal_default_instance() && raised_ts_ != nullptr; |
| 2899 | } |
| 2900 | inline const ::google::protobuf::Timestamp& Event::raised_ts() const { |
| 2901 | const ::google::protobuf::Timestamp* p = raised_ts_; |
| 2902 | // @@protoc_insertion_point(field_get:dmi.Event.raised_ts) |
| 2903 | return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>( |
| 2904 | &::google::protobuf::_Timestamp_default_instance_); |
| 2905 | } |
| 2906 | inline ::google::protobuf::Timestamp* Event::release_raised_ts() { |
| 2907 | // @@protoc_insertion_point(field_release:dmi.Event.raised_ts) |
| 2908 | |
| 2909 | ::google::protobuf::Timestamp* temp = raised_ts_; |
| 2910 | raised_ts_ = nullptr; |
| 2911 | return temp; |
| 2912 | } |
| 2913 | inline ::google::protobuf::Timestamp* Event::mutable_raised_ts() { |
| 2914 | |
| 2915 | if (raised_ts_ == nullptr) { |
| 2916 | auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); |
| 2917 | raised_ts_ = p; |
| 2918 | } |
| 2919 | // @@protoc_insertion_point(field_mutable:dmi.Event.raised_ts) |
| 2920 | return raised_ts_; |
| 2921 | } |
| 2922 | inline void Event::set_allocated_raised_ts(::google::protobuf::Timestamp* raised_ts) { |
| 2923 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2924 | if (message_arena == nullptr) { |
| 2925 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(raised_ts_); |
| 2926 | } |
| 2927 | if (raised_ts) { |
| 2928 | ::google::protobuf::Arena* submessage_arena = |
| 2929 | reinterpret_cast<::google::protobuf::MessageLite*>(raised_ts)->GetArena(); |
| 2930 | if (message_arena != submessage_arena) { |
| 2931 | raised_ts = ::google::protobuf::internal::GetOwnedMessage( |
| 2932 | message_arena, raised_ts, submessage_arena); |
| 2933 | } |
| 2934 | |
| 2935 | } else { |
| 2936 | |
| 2937 | } |
| 2938 | raised_ts_ = raised_ts; |
| 2939 | // @@protoc_insertion_point(field_set_allocated:dmi.Event.raised_ts) |
| 2940 | } |
| 2941 | |
| 2942 | // .dmi.ThresholdInformation threshold_info = 4; |
| 2943 | inline bool Event::has_threshold_info() const { |
| 2944 | return this != internal_default_instance() && threshold_info_ != nullptr; |
| 2945 | } |
| 2946 | inline void Event::clear_threshold_info() { |
| 2947 | if (GetArenaNoVirtual() == nullptr && threshold_info_ != nullptr) { |
| 2948 | delete threshold_info_; |
| 2949 | } |
| 2950 | threshold_info_ = nullptr; |
| 2951 | } |
| 2952 | inline const ::dmi::ThresholdInformation& Event::threshold_info() const { |
| 2953 | const ::dmi::ThresholdInformation* p = threshold_info_; |
| 2954 | // @@protoc_insertion_point(field_get:dmi.Event.threshold_info) |
| 2955 | return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ThresholdInformation*>( |
| 2956 | &::dmi::_ThresholdInformation_default_instance_); |
| 2957 | } |
| 2958 | inline ::dmi::ThresholdInformation* Event::release_threshold_info() { |
| 2959 | // @@protoc_insertion_point(field_release:dmi.Event.threshold_info) |
| 2960 | |
| 2961 | ::dmi::ThresholdInformation* temp = threshold_info_; |
| 2962 | threshold_info_ = nullptr; |
| 2963 | return temp; |
| 2964 | } |
| 2965 | inline ::dmi::ThresholdInformation* Event::mutable_threshold_info() { |
| 2966 | |
| 2967 | if (threshold_info_ == nullptr) { |
| 2968 | auto* p = CreateMaybeMessage<::dmi::ThresholdInformation>(GetArenaNoVirtual()); |
| 2969 | threshold_info_ = p; |
| 2970 | } |
| 2971 | // @@protoc_insertion_point(field_mutable:dmi.Event.threshold_info) |
| 2972 | return threshold_info_; |
| 2973 | } |
| 2974 | inline void Event::set_allocated_threshold_info(::dmi::ThresholdInformation* threshold_info) { |
| 2975 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 2976 | if (message_arena == nullptr) { |
| 2977 | delete threshold_info_; |
| 2978 | } |
| 2979 | if (threshold_info) { |
| 2980 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 2981 | if (message_arena != submessage_arena) { |
| 2982 | threshold_info = ::google::protobuf::internal::GetOwnedMessage( |
| 2983 | message_arena, threshold_info, submessage_arena); |
| 2984 | } |
| 2985 | |
| 2986 | } else { |
| 2987 | |
| 2988 | } |
| 2989 | threshold_info_ = threshold_info; |
| 2990 | // @@protoc_insertion_point(field_set_allocated:dmi.Event.threshold_info) |
| 2991 | } |
| 2992 | |
| 2993 | // string add_info = 5; |
| 2994 | inline void Event::clear_add_info() { |
| 2995 | add_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2996 | } |
| 2997 | inline const ::std::string& Event::add_info() const { |
| 2998 | // @@protoc_insertion_point(field_get:dmi.Event.add_info) |
| 2999 | return add_info_.GetNoArena(); |
| 3000 | } |
| 3001 | inline void Event::set_add_info(const ::std::string& value) { |
| 3002 | |
| 3003 | add_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
| 3004 | // @@protoc_insertion_point(field_set:dmi.Event.add_info) |
| 3005 | } |
| 3006 | #if LANG_CXX11 |
| 3007 | inline void Event::set_add_info(::std::string&& value) { |
| 3008 | |
| 3009 | add_info_.SetNoArena( |
| 3010 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| 3011 | // @@protoc_insertion_point(field_set_rvalue:dmi.Event.add_info) |
| 3012 | } |
| 3013 | #endif |
| 3014 | inline void Event::set_add_info(const char* value) { |
| 3015 | GOOGLE_DCHECK(value != nullptr); |
| 3016 | |
| 3017 | add_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| 3018 | // @@protoc_insertion_point(field_set_char:dmi.Event.add_info) |
| 3019 | } |
| 3020 | inline void Event::set_add_info(const char* value, size_t size) { |
| 3021 | |
| 3022 | add_info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3023 | ::std::string(reinterpret_cast<const char*>(value), size)); |
| 3024 | // @@protoc_insertion_point(field_set_pointer:dmi.Event.add_info) |
| 3025 | } |
| 3026 | inline ::std::string* Event::mutable_add_info() { |
| 3027 | |
| 3028 | // @@protoc_insertion_point(field_mutable:dmi.Event.add_info) |
| 3029 | return add_info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3030 | } |
| 3031 | inline ::std::string* Event::release_add_info() { |
| 3032 | // @@protoc_insertion_point(field_release:dmi.Event.add_info) |
| 3033 | |
| 3034 | return add_info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3035 | } |
| 3036 | inline void Event::set_allocated_add_info(::std::string* add_info) { |
| 3037 | if (add_info != nullptr) { |
| 3038 | |
| 3039 | } else { |
| 3040 | |
| 3041 | } |
| 3042 | add_info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), add_info); |
| 3043 | // @@protoc_insertion_point(field_set_allocated:dmi.Event.add_info) |
| 3044 | } |
| 3045 | |
| 3046 | #ifdef __GNUC__ |
| 3047 | #pragma GCC diagnostic pop |
| 3048 | #endif // __GNUC__ |
| 3049 | // ------------------------------------------------------------------- |
| 3050 | |
| 3051 | // ------------------------------------------------------------------- |
| 3052 | |
| 3053 | // ------------------------------------------------------------------- |
| 3054 | |
| 3055 | // ------------------------------------------------------------------- |
| 3056 | |
| 3057 | // ------------------------------------------------------------------- |
| 3058 | |
| 3059 | // ------------------------------------------------------------------- |
| 3060 | |
| 3061 | // ------------------------------------------------------------------- |
| 3062 | |
| 3063 | // ------------------------------------------------------------------- |
| 3064 | |
| 3065 | // ------------------------------------------------------------------- |
| 3066 | |
| 3067 | // ------------------------------------------------------------------- |
| 3068 | |
| 3069 | |
| 3070 | // @@protoc_insertion_point(namespace_scope) |
| 3071 | |
| 3072 | } // namespace dmi |
| 3073 | |
| 3074 | namespace google { |
| 3075 | namespace protobuf { |
| 3076 | |
| 3077 | template <> struct is_proto_enum< ::dmi::ListEventsResponse_Reason> : ::std::true_type {}; |
| 3078 | template <> |
| 3079 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ListEventsResponse_Reason>() { |
| 3080 | return ::dmi::ListEventsResponse_Reason_descriptor(); |
| 3081 | } |
| 3082 | template <> struct is_proto_enum< ::dmi::EventsConfigurationResponse_Reason> : ::std::true_type {}; |
| 3083 | template <> |
| 3084 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::EventsConfigurationResponse_Reason>() { |
| 3085 | return ::dmi::EventsConfigurationResponse_Reason_descriptor(); |
| 3086 | } |
| 3087 | template <> struct is_proto_enum< ::dmi::EventIds> : ::std::true_type {}; |
| 3088 | template <> |
| 3089 | inline const EnumDescriptor* GetEnumDescriptor< ::dmi::EventIds>() { |
| 3090 | return ::dmi::EventIds_descriptor(); |
| 3091 | } |
| 3092 | |
| 3093 | } // namespace protobuf |
| 3094 | } // namespace google |
| 3095 | |
| 3096 | // @@protoc_insertion_point(global_scope) |
| 3097 | |
| 3098 | #include <google/protobuf/port_undef.inc> |
| 3099 | #endif // PROTOBUF_INCLUDED_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto |