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 | #include "dmi/hw_events_mgmt_service.pb.h" |
| 5 | |
| 6 | #include <algorithm> |
| 7 | |
| 8 | #include <google/protobuf/stubs/common.h> |
| 9 | #include <google/protobuf/io/coded_stream.h> |
| 10 | #include <google/protobuf/extension_set.h> |
| 11 | #include <google/protobuf/wire_format_lite_inl.h> |
| 12 | #include <google/protobuf/descriptor.h> |
| 13 | #include <google/protobuf/generated_message_reflection.h> |
| 14 | #include <google/protobuf/reflection_ops.h> |
| 15 | #include <google/protobuf/wire_format.h> |
| 16 | // @@protoc_insertion_point(includes) |
| 17 | #include <google/protobuf/port_def.inc> |
| 18 | |
| 19 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto; |
| 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 22 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 23 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 25 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 26 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 27 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; |
| 28 | namespace dmi { |
| 29 | class ValueTypeDefaultTypeInternal { |
| 30 | public: |
| 31 | ::google::protobuf::internal::ExplicitlyConstructed<ValueType> _instance; |
| 32 | ::google::protobuf::int64 int_val_; |
| 33 | ::google::protobuf::uint64 uint_val_; |
| 34 | float float_val_; |
| 35 | } _ValueType_default_instance_; |
| 36 | class WaterMarksDefaultTypeInternal { |
| 37 | public: |
| 38 | ::google::protobuf::internal::ExplicitlyConstructed<WaterMarks> _instance; |
| 39 | } _WaterMarks_default_instance_; |
| 40 | class ThresholdsDefaultTypeInternal { |
| 41 | public: |
| 42 | ::google::protobuf::internal::ExplicitlyConstructed<Thresholds> _instance; |
| 43 | const ::dmi::WaterMarks* upper_; |
| 44 | const ::dmi::WaterMarks* lower_; |
| 45 | } _Thresholds_default_instance_; |
| 46 | class ThresholdInformationDefaultTypeInternal { |
| 47 | public: |
| 48 | ::google::protobuf::internal::ExplicitlyConstructed<ThresholdInformation> _instance; |
| 49 | } _ThresholdInformation_default_instance_; |
| 50 | class EventCfgDefaultTypeInternal { |
| 51 | public: |
| 52 | ::google::protobuf::internal::ExplicitlyConstructed<EventCfg> _instance; |
| 53 | } _EventCfg_default_instance_; |
| 54 | class EventsCfgDefaultTypeInternal { |
| 55 | public: |
| 56 | ::google::protobuf::internal::ExplicitlyConstructed<EventsCfg> _instance; |
| 57 | } _EventsCfg_default_instance_; |
| 58 | class ListEventsResponseDefaultTypeInternal { |
| 59 | public: |
| 60 | ::google::protobuf::internal::ExplicitlyConstructed<ListEventsResponse> _instance; |
| 61 | } _ListEventsResponse_default_instance_; |
| 62 | class EventsConfigurationRequestDefaultTypeInternal { |
| 63 | public: |
| 64 | ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationRequest> _instance; |
| 65 | const ::dmi::EventsCfg* changes_; |
| 66 | bool reset_to_default_; |
| 67 | } _EventsConfigurationRequest_default_instance_; |
| 68 | class EventsConfigurationResponseDefaultTypeInternal { |
| 69 | public: |
| 70 | ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationResponse> _instance; |
| 71 | } _EventsConfigurationResponse_default_instance_; |
| 72 | class EventMetaDataDefaultTypeInternal { |
| 73 | public: |
| 74 | ::google::protobuf::internal::ExplicitlyConstructed<EventMetaData> _instance; |
| 75 | } _EventMetaData_default_instance_; |
| 76 | class EventDefaultTypeInternal { |
| 77 | public: |
| 78 | ::google::protobuf::internal::ExplicitlyConstructed<Event> _instance; |
| 79 | } _Event_default_instance_; |
| 80 | } // namespace dmi |
| 81 | static void InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 82 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 83 | |
| 84 | { |
| 85 | void* ptr = &::dmi::_ValueType_default_instance_; |
| 86 | new (ptr) ::dmi::ValueType(); |
| 87 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 88 | } |
| 89 | ::dmi::ValueType::InitAsDefaultInstance(); |
| 90 | } |
| 91 | |
| 92 | ::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 93 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 94 | |
| 95 | static void InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 96 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 97 | |
| 98 | { |
| 99 | void* ptr = &::dmi::_WaterMarks_default_instance_; |
| 100 | new (ptr) ::dmi::WaterMarks(); |
| 101 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 102 | } |
| 103 | ::dmi::WaterMarks::InitAsDefaultInstance(); |
| 104 | } |
| 105 | |
| 106 | ::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 107 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 108 | &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 109 | |
| 110 | static void InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 111 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 112 | |
| 113 | { |
| 114 | void* ptr = &::dmi::_Thresholds_default_instance_; |
| 115 | new (ptr) ::dmi::Thresholds(); |
| 116 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 117 | } |
| 118 | ::dmi::Thresholds::InitAsDefaultInstance(); |
| 119 | } |
| 120 | |
| 121 | ::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 122 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 123 | &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 124 | |
| 125 | static void InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 126 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 127 | |
| 128 | { |
| 129 | void* ptr = &::dmi::_ThresholdInformation_default_instance_; |
| 130 | new (ptr) ::dmi::ThresholdInformation(); |
| 131 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 132 | } |
| 133 | ::dmi::ThresholdInformation::InitAsDefaultInstance(); |
| 134 | } |
| 135 | |
| 136 | ::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 137 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 138 | &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 139 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 140 | |
| 141 | static void InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 142 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 143 | |
| 144 | { |
| 145 | void* ptr = &::dmi::_EventCfg_default_instance_; |
| 146 | new (ptr) ::dmi::EventCfg(); |
| 147 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 148 | } |
| 149 | ::dmi::EventCfg::InitAsDefaultInstance(); |
| 150 | } |
| 151 | |
| 152 | ::google::protobuf::internal::SCCInfo<1> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 153 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 154 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 155 | |
| 156 | static void InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 157 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 158 | |
| 159 | { |
| 160 | void* ptr = &::dmi::_EventsCfg_default_instance_; |
| 161 | new (ptr) ::dmi::EventsCfg(); |
| 162 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 163 | } |
| 164 | ::dmi::EventsCfg::InitAsDefaultInstance(); |
| 165 | } |
| 166 | |
| 167 | ::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 168 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 169 | &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 170 | |
| 171 | static void InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 172 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 173 | |
| 174 | { |
| 175 | void* ptr = &::dmi::_ListEventsResponse_default_instance_; |
| 176 | new (ptr) ::dmi::ListEventsResponse(); |
| 177 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 178 | } |
| 179 | ::dmi::ListEventsResponse::InitAsDefaultInstance(); |
| 180 | } |
| 181 | |
| 182 | ::google::protobuf::internal::SCCInfo<1> scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 183 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 184 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 185 | |
| 186 | static void InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 187 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 188 | |
| 189 | { |
| 190 | void* ptr = &::dmi::_EventsConfigurationRequest_default_instance_; |
| 191 | new (ptr) ::dmi::EventsConfigurationRequest(); |
| 192 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 193 | } |
| 194 | ::dmi::EventsConfigurationRequest::InitAsDefaultInstance(); |
| 195 | } |
| 196 | |
| 197 | ::google::protobuf::internal::SCCInfo<2> scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 198 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 199 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 200 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 201 | |
| 202 | static void InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 203 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 204 | |
| 205 | { |
| 206 | void* ptr = &::dmi::_EventsConfigurationResponse_default_instance_; |
| 207 | new (ptr) ::dmi::EventsConfigurationResponse(); |
| 208 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 209 | } |
| 210 | ::dmi::EventsConfigurationResponse::InitAsDefaultInstance(); |
| 211 | } |
| 212 | |
| 213 | ::google::protobuf::internal::SCCInfo<0> scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 214 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 215 | |
| 216 | static void InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 217 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 218 | |
| 219 | { |
| 220 | void* ptr = &::dmi::_EventMetaData_default_instance_; |
| 221 | new (ptr) ::dmi::EventMetaData(); |
| 222 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 223 | } |
| 224 | ::dmi::EventMetaData::InitAsDefaultInstance(); |
| 225 | } |
| 226 | |
| 227 | ::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 228 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 229 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 230 | |
| 231 | static void InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 232 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 233 | |
| 234 | { |
| 235 | void* ptr = &::dmi::_Event_default_instance_; |
| 236 | new (ptr) ::dmi::Event(); |
| 237 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 238 | } |
| 239 | ::dmi::Event::InitAsDefaultInstance(); |
| 240 | } |
| 241 | |
| 242 | ::google::protobuf::internal::SCCInfo<3> scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 243 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 244 | &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 245 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| 246 | &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 247 | |
| 248 | void InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 249 | ::google::protobuf::internal::InitSCC(&scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 250 | ::google::protobuf::internal::InitSCC(&scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 251 | ::google::protobuf::internal::InitSCC(&scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 252 | ::google::protobuf::internal::InitSCC(&scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 253 | ::google::protobuf::internal::InitSCC(&scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 254 | ::google::protobuf::internal::InitSCC(&scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 255 | ::google::protobuf::internal::InitSCC(&scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 256 | ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 257 | ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 258 | ::google::protobuf::internal::InitSCC(&scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 259 | ::google::protobuf::internal::InitSCC(&scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 260 | } |
| 261 | |
| 262 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[11]; |
| 263 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[3]; |
| 264 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = nullptr; |
| 265 | |
| 266 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 267 | ~0u, // no _has_bits_ |
| 268 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _internal_metadata_), |
| 269 | ~0u, // no _extensions_ |
| 270 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _oneof_case_[0]), |
| 271 | ~0u, // no _weak_field_map_ |
| 272 | offsetof(::dmi::ValueTypeDefaultTypeInternal, int_val_), |
| 273 | offsetof(::dmi::ValueTypeDefaultTypeInternal, uint_val_), |
| 274 | offsetof(::dmi::ValueTypeDefaultTypeInternal, float_val_), |
| 275 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, val_), |
| 276 | ~0u, // no _has_bits_ |
| 277 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, _internal_metadata_), |
| 278 | ~0u, // no _extensions_ |
| 279 | ~0u, // no _oneof_case_ |
| 280 | ~0u, // no _weak_field_map_ |
| 281 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, high_), |
| 282 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, low_), |
| 283 | ~0u, // no _has_bits_ |
| 284 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _internal_metadata_), |
| 285 | ~0u, // no _extensions_ |
| 286 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _oneof_case_[0]), |
| 287 | ~0u, // no _weak_field_map_ |
| 288 | offsetof(::dmi::ThresholdsDefaultTypeInternal, upper_), |
| 289 | offsetof(::dmi::ThresholdsDefaultTypeInternal, lower_), |
| 290 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, threshold_), |
| 291 | ~0u, // no _has_bits_ |
| 292 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, _internal_metadata_), |
| 293 | ~0u, // no _extensions_ |
| 294 | ~0u, // no _oneof_case_ |
| 295 | ~0u, // no _weak_field_map_ |
| 296 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, observed_value_), |
| 297 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, thresholds_), |
| 298 | ~0u, // no _has_bits_ |
| 299 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, _internal_metadata_), |
| 300 | ~0u, // no _extensions_ |
| 301 | ~0u, // no _oneof_case_ |
| 302 | ~0u, // no _weak_field_map_ |
| 303 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, event_id_), |
| 304 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, is_configured_), |
| 305 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, thresholds_), |
| 306 | ~0u, // no _has_bits_ |
| 307 | PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, _internal_metadata_), |
| 308 | ~0u, // no _extensions_ |
| 309 | ~0u, // no _oneof_case_ |
| 310 | ~0u, // no _weak_field_map_ |
| 311 | PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, items_), |
| 312 | ~0u, // no _has_bits_ |
| 313 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, _internal_metadata_), |
| 314 | ~0u, // no _extensions_ |
| 315 | ~0u, // no _oneof_case_ |
| 316 | ~0u, // no _weak_field_map_ |
| 317 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, status_), |
| 318 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_), |
| 319 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, events_), |
| 320 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_detail_), |
| 321 | ~0u, // no _has_bits_ |
| 322 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _internal_metadata_), |
| 323 | ~0u, // no _extensions_ |
| 324 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _oneof_case_[0]), |
| 325 | ~0u, // no _weak_field_map_ |
| 326 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, device_uuid_), |
| 327 | offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, changes_), |
| 328 | offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, reset_to_default_), |
| 329 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, operation_), |
| 330 | ~0u, // no _has_bits_ |
| 331 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, _internal_metadata_), |
| 332 | ~0u, // no _extensions_ |
| 333 | ~0u, // no _oneof_case_ |
| 334 | ~0u, // no _weak_field_map_ |
| 335 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, status_), |
| 336 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_), |
| 337 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_detail_), |
| 338 | ~0u, // no _has_bits_ |
| 339 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, _internal_metadata_), |
| 340 | ~0u, // no _extensions_ |
| 341 | ~0u, // no _oneof_case_ |
| 342 | ~0u, // no _weak_field_map_ |
| 343 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, device_uuid_), |
| 344 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_uuid_), |
| 345 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_name_), |
| 346 | ~0u, // no _has_bits_ |
| 347 | PROTOBUF_FIELD_OFFSET(::dmi::Event, _internal_metadata_), |
| 348 | ~0u, // no _extensions_ |
| 349 | ~0u, // no _oneof_case_ |
| 350 | ~0u, // no _weak_field_map_ |
| 351 | PROTOBUF_FIELD_OFFSET(::dmi::Event, event_metadata_), |
| 352 | PROTOBUF_FIELD_OFFSET(::dmi::Event, event_id_), |
| 353 | PROTOBUF_FIELD_OFFSET(::dmi::Event, raised_ts_), |
| 354 | PROTOBUF_FIELD_OFFSET(::dmi::Event, threshold_info_), |
| 355 | PROTOBUF_FIELD_OFFSET(::dmi::Event, add_info_), |
| 356 | }; |
| 357 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 358 | { 0, -1, sizeof(::dmi::ValueType)}, |
| 359 | { 9, -1, sizeof(::dmi::WaterMarks)}, |
| 360 | { 16, -1, sizeof(::dmi::Thresholds)}, |
| 361 | { 24, -1, sizeof(::dmi::ThresholdInformation)}, |
| 362 | { 31, -1, sizeof(::dmi::EventCfg)}, |
| 363 | { 39, -1, sizeof(::dmi::EventsCfg)}, |
| 364 | { 45, -1, sizeof(::dmi::ListEventsResponse)}, |
| 365 | { 54, -1, sizeof(::dmi::EventsConfigurationRequest)}, |
| 366 | { 63, -1, sizeof(::dmi::EventsConfigurationResponse)}, |
| 367 | { 71, -1, sizeof(::dmi::EventMetaData)}, |
| 368 | { 79, -1, sizeof(::dmi::Event)}, |
| 369 | }; |
| 370 | |
| 371 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 372 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ValueType_default_instance_), |
| 373 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_WaterMarks_default_instance_), |
| 374 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Thresholds_default_instance_), |
| 375 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ThresholdInformation_default_instance_), |
| 376 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventCfg_default_instance_), |
| 377 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsCfg_default_instance_), |
| 378 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ListEventsResponse_default_instance_), |
| 379 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationRequest_default_instance_), |
| 380 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationResponse_default_instance_), |
| 381 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventMetaData_default_instance_), |
| 382 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Event_default_instance_), |
| 383 | }; |
| 384 | |
| 385 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = { |
| 386 | {}, AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, "dmi/hw_events_mgmt_service.proto", schemas, |
| 387 | file_default_instances, TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets, |
| 388 | file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 11, file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
| 389 | }; |
| 390 | |
| 391 | const char descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[] = |
| 392 | "\n dmi/hw_events_mgmt_service.proto\022\003dmi\032" |
| 393 | "\021dmi/commons.proto\032\014dmi/hw.proto\032\037google" |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 394 | "/protobuf/timestamp.proto\032\033google/protob" |
| 395 | "uf/empty.proto\"N\n\tValueType\022\021\n\007int_val\030\001" |
| 396 | " \001(\003H\000\022\022\n\010uint_val\030\002 \001(\004H\000\022\023\n\tfloat_val\030" |
| 397 | "\003 \001(\002H\000B\005\n\003val\"G\n\nWaterMarks\022\034\n\004high\030\001 \001" |
| 398 | "(\0132\016.dmi.ValueType\022\033\n\003low\030\002 \001(\0132\016.dmi.Va" |
| 399 | "lueType\"]\n\nThresholds\022 \n\005upper\030\001 \001(\0132\017.d" |
| 400 | "mi.WaterMarksH\000\022 \n\005lower\030\002 \001(\0132\017.dmi.Wat" |
| 401 | "erMarksH\000B\013\n\tthreshold\"c\n\024ThresholdInfor" |
| 402 | "mation\022&\n\016observed_value\030\001 \001(\0132\016.dmi.Val" |
| 403 | "ueType\022#\n\nthresholds\030\002 \001(\0132\017.dmi.Thresho" |
| 404 | "lds\"g\n\010EventCfg\022\037\n\010event_id\030\001 \001(\0162\r.dmi." |
| 405 | "EventIds\022\025\n\ris_configured\030\002 \001(\010\022#\n\nthres" |
| 406 | "holds\030\003 \001(\0132\017.dmi.Thresholds\")\n\tEventsCf" |
| 407 | "g\022\034\n\005items\030\001 \003(\0132\r.dmi.EventCfg\"\370\001\n\022List" |
| 408 | "EventsResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Sta" |
| 409 | "tus\022.\n\006reason\030\002 \001(\0162\036.dmi.ListEventsResp" |
| 410 | "onse.Reason\022\036\n\006events\030\003 \001(\0132\016.dmi.Events" |
| 411 | "Cfg\022\025\n\rreason_detail\030\004 \001(\t\"^\n\006Reason\022\024\n\020" |
| 412 | "UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022" |
| 413 | "\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE" |
| 414 | "\020\003\"\210\001\n\032EventsConfigurationRequest\022\036\n\013dev" |
| 415 | "ice_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\007changes\030\002 \001" |
| 416 | "(\0132\016.dmi.EventsCfgH\000\022\032\n\020reset_to_default" |
| 417 | "\030\003 \001(\010H\000B\013\n\toperation\"\376\001\n\033EventsConfigur" |
| 418 | "ationResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Stat" |
| 419 | "us\0227\n\006reason\030\002 \001(\0162\'.dmi.EventsConfigura" |
| 420 | "tionResponse.Reason\022\025\n\rreason_detail\030\003 \001" |
| 421 | "(\t\"r\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UN" |
| 422 | "KNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\022\n\016IN" |
| 423 | "VALID_CONFIG\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"j" |
| 424 | "\n\rEventMetaData\022\036\n\013device_uuid\030\001 \001(\0132\t.d" |
| 425 | "mi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.Uu" |
| 426 | "id\022\026\n\016component_name\030\003 \001(\t\"\310\001\n\005Event\022*\n\016" |
| 427 | "event_metadata\030\001 \001(\0132\022.dmi.EventMetaData" |
| 428 | "\022\037\n\010event_id\030\002 \001(\0162\r.dmi.EventIds\022-\n\trai" |
| 429 | "sed_ts\030\003 \001(\0132\032.google.protobuf.Timestamp" |
| 430 | "\0221\n\016threshold_info\030\004 \001(\0132\031.dmi.Threshold" |
| 431 | "Information\022\020\n\010add_info\030\005 \001(\t*\321\016\n\010EventI" |
| 432 | "ds\022\030\n\024EVENT_NAME_UNDEFINED\020\000\022\036\n\032EVENT_TR" |
| 433 | "ANSCEIVER_PLUG_OUT\020d\022\035\n\031EVENT_TRANSCEIVE" |
| 434 | "R_PLUG_IN\020e\022-\n)EVENT_TRANSCEIVER_VOLTAGE" |
| 435 | "_ABOVE_THRESHOLD\020f\022-\n)EVENT_TRANSCEIVER_" |
| 436 | "VOLTAGE_BELOW_THRESHOLD\020g\0221\n-EVENT_TRANS" |
| 437 | "CEIVER_TEMPERATURE_ABOVE_THRESHOLD\020h\0221\n-" |
| 438 | "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRE" |
| 439 | "SHOLD\020i\022-\n)EVENT_TRANSCEIVER_CURRENT_ABO" |
| 440 | "VE_THRESHOLD\020j\022-\n)EVENT_TRANSCEIVER_CURR" |
| 441 | "ENT_BELOW_THRESHOLD\020k\022.\n*EVENT_TRANSCEIV" |
| 442 | "ER_RX_POWER_ABOVE_THRESHOLD\020l\022.\n*EVENT_T" |
| 443 | "RANSCEIVER_RX_POWER_BELOW_THRESHOLD\020m\022.\n" |
| 444 | "*EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESH" |
| 445 | "OLD\020n\022.\n*EVENT_TRANSCEIVER_TX_POWER_BELO" |
| 446 | "W_THRESHOLD\020o\022\035\n\031EVENT_TRANSCEIVER_FAILU" |
| 447 | "RE\020p\0227\n3EVENT_TRANSCEIVER_VOLTAGE_ABOVE_" |
| 448 | "THRESHOLD_RECOVERED\020q\0227\n3EVENT_TRANSCEIV" |
| 449 | "ER_VOLTAGE_BELOW_THRESHOLD_RECOVERED\020r\022;" |
| 450 | "\n7EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_TH" |
| 451 | "RESHOLD_RECOVERED\020s\022;\n7EVENT_TRANSCEIVER" |
| 452 | "_TEMPERATURE_BELOW_THRESHOLD_RECOVERED\020t" |
| 453 | "\0227\n3EVENT_TRANSCEIVER_CURRENT_ABOVE_THRE" |
| 454 | "SHOLD_RECOVERED\020u\0227\n3EVENT_TRANSCEIVER_C" |
| 455 | "URRENT_BELOW_THRESHOLD_RECOVERED\020v\0228\n4EV" |
| 456 | "ENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD" |
| 457 | "_RECOVERED\020w\0228\n4EVENT_TRANSCEIVER_RX_POW" |
| 458 | "ER_BELOW_THRESHOLD_RECOVERED\020x\0228\n4EVENT_" |
| 459 | "TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_REC" |
| 460 | "OVERED\020y\0228\n4EVENT_TRANSCEIVER_TX_POWER_B" |
| 461 | "ELOW_THRESHOLD_RECOVERED\020z\022\'\n#EVENT_TRAN" |
| 462 | "SCEIVER_FAILURE_RECOVERED\020{\022\027\n\022EVENT_PSU" |
| 463 | "_PLUG_OUT\020\310\001\022\026\n\021EVENT_PSU_PLUG_IN\020\311\001\022\026\n\021" |
| 464 | "EVENT_PSU_FAILURE\020\312\001\022 \n\033EVENT_PSU_FAILUR" |
| 465 | "E_RECOVERED\020\313\001\022\026\n\021EVENT_FAN_FAILURE\020\254\002\022\027" |
| 466 | "\n\022EVENT_FAN_PLUG_OUT\020\255\002\022\026\n\021EVENT_FAN_PLU" |
| 467 | "G_IN\020\256\002\022 \n\033EVENT_FAN_FAILURE_RECOVERED\020\257" |
| 468 | "\002\022)\n$EVENT_CPU_TEMPERATURE_ABOVE_CRITICA" |
| 469 | "L\020\220\003\022&\n!EVENT_CPU_TEMPERATURE_ABOVE_FATA" |
| 470 | "L\020\221\003\0223\n.EVENT_CPU_TEMPERATURE_ABOVE_CRIT" |
| 471 | "ICAL_RECOVERED\020\222\003\0220\n+EVENT_CPU_TEMPERATU" |
| 472 | "RE_ABOVE_FATAL_RECOVERED\020\223\003\022\032\n\025EVENT_HW_" |
| 473 | "DEVICE_RESET\020\364\003\022/\n*EVENT_HW_DEVICE_TEMPE" |
| 474 | "RATURE_ABOVE_CRITICAL\020\365\003\022,\n\'EVENT_HW_DEV" |
| 475 | "ICE_TEMPERATURE_ABOVE_FATAL\020\366\003\0229\n4EVENT_" |
| 476 | "HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_REC" |
| 477 | "OVERED\020\367\003\0226\n1EVENT_HW_DEVICE_TEMPERATURE" |
| 478 | "_ABOVE_FATAL_RECOVERED\020\370\0032\355\001\n\035NativeEven" |
| 479 | "tsManagementService\0226\n\nListEvents\022\017.dmi." |
| 480 | "HardwareID\032\027.dmi.ListEventsResponse\022^\n\031U" |
| 481 | "pdateEventsConfiguration\022\037.dmi.EventsCon" |
| 482 | "figurationRequest\032 .dmi.EventsConfigurat" |
| 483 | "ionResponse\0224\n\014StreamEvents\022\026.google.pro" |
| 484 | "tobuf.Empty\032\n.dmi.Event0\001B;Z9github.com/" |
| 485 | "opencord/device-management-interface/v3/" |
| 486 | "go/dmib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 487 | ; |
| 488 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = { |
| 489 | false, InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
| 490 | descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 491 | "dmi/hw_events_mgmt_service.proto", &assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 3774, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 492 | }; |
| 493 | |
| 494 | void AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 495 | static constexpr ::google::protobuf::internal::InitFunc deps[4] = |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 496 | { |
| 497 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 498 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 499 | ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 500 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 501 | }; |
Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 502 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, deps, 4); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 503 | } |
| 504 | |
| 505 | // Force running AddDescriptors() at dynamic initialization time. |
| 506 | static bool dynamic_init_dummy_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto(); return true; }(); |
| 507 | namespace dmi { |
| 508 | const ::google::protobuf::EnumDescriptor* ListEventsResponse_Reason_descriptor() { |
| 509 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 510 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[0]; |
| 511 | } |
| 512 | bool ListEventsResponse_Reason_IsValid(int value) { |
| 513 | switch (value) { |
| 514 | case 0: |
| 515 | case 1: |
| 516 | case 2: |
| 517 | case 3: |
| 518 | return true; |
| 519 | default: |
| 520 | return false; |
| 521 | } |
| 522 | } |
| 523 | |
| 524 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 525 | const ListEventsResponse_Reason ListEventsResponse::UNDEFINED_REASON; |
| 526 | const ListEventsResponse_Reason ListEventsResponse::UNKNOWN_DEVICE; |
| 527 | const ListEventsResponse_Reason ListEventsResponse::INTERNAL_ERROR; |
| 528 | const ListEventsResponse_Reason ListEventsResponse::DEVICE_UNREACHABLE; |
| 529 | const ListEventsResponse_Reason ListEventsResponse::Reason_MIN; |
| 530 | const ListEventsResponse_Reason ListEventsResponse::Reason_MAX; |
| 531 | const int ListEventsResponse::Reason_ARRAYSIZE; |
| 532 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 533 | const ::google::protobuf::EnumDescriptor* EventsConfigurationResponse_Reason_descriptor() { |
| 534 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 535 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[1]; |
| 536 | } |
| 537 | bool EventsConfigurationResponse_Reason_IsValid(int value) { |
| 538 | switch (value) { |
| 539 | case 0: |
| 540 | case 1: |
| 541 | case 2: |
| 542 | case 3: |
| 543 | case 4: |
| 544 | return true; |
| 545 | default: |
| 546 | return false; |
| 547 | } |
| 548 | } |
| 549 | |
| 550 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 551 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNDEFINED_REASON; |
| 552 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNKNOWN_DEVICE; |
| 553 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::INTERNAL_ERROR; |
| 554 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::INVALID_CONFIG; |
| 555 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::DEVICE_UNREACHABLE; |
| 556 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MIN; |
| 557 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MAX; |
| 558 | const int EventsConfigurationResponse::Reason_ARRAYSIZE; |
| 559 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 560 | const ::google::protobuf::EnumDescriptor* EventIds_descriptor() { |
| 561 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 562 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[2]; |
| 563 | } |
| 564 | bool EventIds_IsValid(int value) { |
| 565 | switch (value) { |
| 566 | case 0: |
| 567 | case 100: |
| 568 | case 101: |
| 569 | case 102: |
| 570 | case 103: |
| 571 | case 104: |
| 572 | case 105: |
| 573 | case 106: |
| 574 | case 107: |
| 575 | case 108: |
| 576 | case 109: |
| 577 | case 110: |
| 578 | case 111: |
| 579 | case 112: |
| 580 | case 113: |
| 581 | case 114: |
| 582 | case 115: |
| 583 | case 116: |
| 584 | case 117: |
| 585 | case 118: |
| 586 | case 119: |
| 587 | case 120: |
| 588 | case 121: |
| 589 | case 122: |
| 590 | case 123: |
| 591 | case 200: |
| 592 | case 201: |
| 593 | case 202: |
| 594 | case 203: |
| 595 | case 300: |
| 596 | case 301: |
| 597 | case 302: |
| 598 | case 303: |
| 599 | case 400: |
| 600 | case 401: |
| 601 | case 402: |
| 602 | case 403: |
| 603 | case 500: |
| 604 | case 501: |
| 605 | case 502: |
| 606 | case 503: |
| 607 | case 504: |
| 608 | return true; |
| 609 | default: |
| 610 | return false; |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | |
| 615 | // =================================================================== |
| 616 | |
| 617 | void ValueType::InitAsDefaultInstance() { |
| 618 | ::dmi::_ValueType_default_instance_.int_val_ = PROTOBUF_LONGLONG(0); |
| 619 | ::dmi::_ValueType_default_instance_.uint_val_ = PROTOBUF_ULONGLONG(0); |
| 620 | ::dmi::_ValueType_default_instance_.float_val_ = 0; |
| 621 | } |
| 622 | class ValueType::HasBitSetters { |
| 623 | public: |
| 624 | }; |
| 625 | |
| 626 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 627 | const int ValueType::kIntValFieldNumber; |
| 628 | const int ValueType::kUintValFieldNumber; |
| 629 | const int ValueType::kFloatValFieldNumber; |
| 630 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 631 | |
| 632 | ValueType::ValueType() |
| 633 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 634 | SharedCtor(); |
| 635 | // @@protoc_insertion_point(constructor:dmi.ValueType) |
| 636 | } |
| 637 | ValueType::ValueType(const ValueType& from) |
| 638 | : ::google::protobuf::Message(), |
| 639 | _internal_metadata_(nullptr) { |
| 640 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 641 | clear_has_val(); |
| 642 | switch (from.val_case()) { |
| 643 | case kIntVal: { |
| 644 | set_int_val(from.int_val()); |
| 645 | break; |
| 646 | } |
| 647 | case kUintVal: { |
| 648 | set_uint_val(from.uint_val()); |
| 649 | break; |
| 650 | } |
| 651 | case kFloatVal: { |
| 652 | set_float_val(from.float_val()); |
| 653 | break; |
| 654 | } |
| 655 | case VAL_NOT_SET: { |
| 656 | break; |
| 657 | } |
| 658 | } |
| 659 | // @@protoc_insertion_point(copy_constructor:dmi.ValueType) |
| 660 | } |
| 661 | |
| 662 | void ValueType::SharedCtor() { |
| 663 | clear_has_val(); |
| 664 | } |
| 665 | |
| 666 | ValueType::~ValueType() { |
| 667 | // @@protoc_insertion_point(destructor:dmi.ValueType) |
| 668 | SharedDtor(); |
| 669 | } |
| 670 | |
| 671 | void ValueType::SharedDtor() { |
| 672 | if (has_val()) { |
| 673 | clear_val(); |
| 674 | } |
| 675 | } |
| 676 | |
| 677 | void ValueType::SetCachedSize(int size) const { |
| 678 | _cached_size_.Set(size); |
| 679 | } |
| 680 | const ValueType& ValueType::default_instance() { |
| 681 | ::google::protobuf::internal::InitSCC(&::scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 682 | return *internal_default_instance(); |
| 683 | } |
| 684 | |
| 685 | |
| 686 | void ValueType::clear_val() { |
| 687 | // @@protoc_insertion_point(one_of_clear_start:dmi.ValueType) |
| 688 | switch (val_case()) { |
| 689 | case kIntVal: { |
| 690 | // No need to clear |
| 691 | break; |
| 692 | } |
| 693 | case kUintVal: { |
| 694 | // No need to clear |
| 695 | break; |
| 696 | } |
| 697 | case kFloatVal: { |
| 698 | // No need to clear |
| 699 | break; |
| 700 | } |
| 701 | case VAL_NOT_SET: { |
| 702 | break; |
| 703 | } |
| 704 | } |
| 705 | _oneof_case_[0] = VAL_NOT_SET; |
| 706 | } |
| 707 | |
| 708 | |
| 709 | void ValueType::Clear() { |
| 710 | // @@protoc_insertion_point(message_clear_start:dmi.ValueType) |
| 711 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 712 | // Prevent compiler warnings about cached_has_bits being unused |
| 713 | (void) cached_has_bits; |
| 714 | |
| 715 | clear_val(); |
| 716 | _internal_metadata_.Clear(); |
| 717 | } |
| 718 | |
| 719 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 720 | const char* ValueType::_InternalParse(const char* begin, const char* end, void* object, |
| 721 | ::google::protobuf::internal::ParseContext* ctx) { |
| 722 | auto msg = static_cast<ValueType*>(object); |
| 723 | ::google::protobuf::int32 size; (void)size; |
| 724 | int depth; (void)depth; |
| 725 | ::google::protobuf::uint32 tag; |
| 726 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 727 | auto ptr = begin; |
| 728 | while (ptr < end) { |
| 729 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 730 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 731 | switch (tag >> 3) { |
| 732 | // int64 int_val = 1; |
| 733 | case 1: { |
| 734 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 735 | msg->set_int_val(::google::protobuf::internal::ReadVarint(&ptr)); |
| 736 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 737 | break; |
| 738 | } |
| 739 | // uint64 uint_val = 2; |
| 740 | case 2: { |
| 741 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 742 | msg->set_uint_val(::google::protobuf::internal::ReadVarint(&ptr)); |
| 743 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 744 | break; |
| 745 | } |
| 746 | // float float_val = 3; |
| 747 | case 3: { |
| 748 | if (static_cast<::google::protobuf::uint8>(tag) != 29) goto handle_unusual; |
| 749 | msg->set_float_val(::google::protobuf::io::UnalignedLoad<float>(ptr)); |
| 750 | ptr += sizeof(float); |
| 751 | break; |
| 752 | } |
| 753 | default: { |
| 754 | handle_unusual: |
| 755 | if ((tag & 7) == 4 || tag == 0) { |
| 756 | ctx->EndGroup(tag); |
| 757 | return ptr; |
| 758 | } |
| 759 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 760 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 761 | ptr = res.first; |
| 762 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 763 | if (res.second) return ptr; |
| 764 | } |
| 765 | } // switch |
| 766 | } // while |
| 767 | return ptr; |
| 768 | } |
| 769 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 770 | bool ValueType::MergePartialFromCodedStream( |
| 771 | ::google::protobuf::io::CodedInputStream* input) { |
| 772 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 773 | ::google::protobuf::uint32 tag; |
| 774 | // @@protoc_insertion_point(parse_start:dmi.ValueType) |
| 775 | for (;;) { |
| 776 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 777 | tag = p.first; |
| 778 | if (!p.second) goto handle_unusual; |
| 779 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 780 | // int64 int_val = 1; |
| 781 | case 1: { |
| 782 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 783 | clear_val(); |
| 784 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 785 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
| 786 | input, &val_.int_val_))); |
| 787 | set_has_int_val(); |
| 788 | } else { |
| 789 | goto handle_unusual; |
| 790 | } |
| 791 | break; |
| 792 | } |
| 793 | |
| 794 | // uint64 uint_val = 2; |
| 795 | case 2: { |
| 796 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 797 | clear_val(); |
| 798 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 799 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
| 800 | input, &val_.uint_val_))); |
| 801 | set_has_uint_val(); |
| 802 | } else { |
| 803 | goto handle_unusual; |
| 804 | } |
| 805 | break; |
| 806 | } |
| 807 | |
| 808 | // float float_val = 3; |
| 809 | case 3: { |
| 810 | if (static_cast< ::google::protobuf::uint8>(tag) == (29 & 0xFF)) { |
| 811 | clear_val(); |
| 812 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 813 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
| 814 | input, &val_.float_val_))); |
| 815 | set_has_float_val(); |
| 816 | } else { |
| 817 | goto handle_unusual; |
| 818 | } |
| 819 | break; |
| 820 | } |
| 821 | |
| 822 | default: { |
| 823 | handle_unusual: |
| 824 | if (tag == 0) { |
| 825 | goto success; |
| 826 | } |
| 827 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 828 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 829 | break; |
| 830 | } |
| 831 | } |
| 832 | } |
| 833 | success: |
| 834 | // @@protoc_insertion_point(parse_success:dmi.ValueType) |
| 835 | return true; |
| 836 | failure: |
| 837 | // @@protoc_insertion_point(parse_failure:dmi.ValueType) |
| 838 | return false; |
| 839 | #undef DO_ |
| 840 | } |
| 841 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 842 | |
| 843 | void ValueType::SerializeWithCachedSizes( |
| 844 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 845 | // @@protoc_insertion_point(serialize_start:dmi.ValueType) |
| 846 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 847 | (void) cached_has_bits; |
| 848 | |
| 849 | // int64 int_val = 1; |
| 850 | if (has_int_val()) { |
| 851 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->int_val(), output); |
| 852 | } |
| 853 | |
| 854 | // uint64 uint_val = 2; |
| 855 | if (has_uint_val()) { |
| 856 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->uint_val(), output); |
| 857 | } |
| 858 | |
| 859 | // float float_val = 3; |
| 860 | if (has_float_val()) { |
| 861 | ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->float_val(), output); |
| 862 | } |
| 863 | |
| 864 | if (_internal_metadata_.have_unknown_fields()) { |
| 865 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 866 | _internal_metadata_.unknown_fields(), output); |
| 867 | } |
| 868 | // @@protoc_insertion_point(serialize_end:dmi.ValueType) |
| 869 | } |
| 870 | |
| 871 | ::google::protobuf::uint8* ValueType::InternalSerializeWithCachedSizesToArray( |
| 872 | ::google::protobuf::uint8* target) const { |
| 873 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ValueType) |
| 874 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 875 | (void) cached_has_bits; |
| 876 | |
| 877 | // int64 int_val = 1; |
| 878 | if (has_int_val()) { |
| 879 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->int_val(), target); |
| 880 | } |
| 881 | |
| 882 | // uint64 uint_val = 2; |
| 883 | if (has_uint_val()) { |
| 884 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->uint_val(), target); |
| 885 | } |
| 886 | |
| 887 | // float float_val = 3; |
| 888 | if (has_float_val()) { |
| 889 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->float_val(), target); |
| 890 | } |
| 891 | |
| 892 | if (_internal_metadata_.have_unknown_fields()) { |
| 893 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 894 | _internal_metadata_.unknown_fields(), target); |
| 895 | } |
| 896 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ValueType) |
| 897 | return target; |
| 898 | } |
| 899 | |
| 900 | size_t ValueType::ByteSizeLong() const { |
| 901 | // @@protoc_insertion_point(message_byte_size_start:dmi.ValueType) |
| 902 | size_t total_size = 0; |
| 903 | |
| 904 | if (_internal_metadata_.have_unknown_fields()) { |
| 905 | total_size += |
| 906 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 907 | _internal_metadata_.unknown_fields()); |
| 908 | } |
| 909 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 910 | // Prevent compiler warnings about cached_has_bits being unused |
| 911 | (void) cached_has_bits; |
| 912 | |
| 913 | switch (val_case()) { |
| 914 | // int64 int_val = 1; |
| 915 | case kIntVal: { |
| 916 | total_size += 1 + |
| 917 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 918 | this->int_val()); |
| 919 | break; |
| 920 | } |
| 921 | // uint64 uint_val = 2; |
| 922 | case kUintVal: { |
| 923 | total_size += 1 + |
| 924 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 925 | this->uint_val()); |
| 926 | break; |
| 927 | } |
| 928 | // float float_val = 3; |
| 929 | case kFloatVal: { |
| 930 | total_size += 1 + 4; |
| 931 | break; |
| 932 | } |
| 933 | case VAL_NOT_SET: { |
| 934 | break; |
| 935 | } |
| 936 | } |
| 937 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 938 | SetCachedSize(cached_size); |
| 939 | return total_size; |
| 940 | } |
| 941 | |
| 942 | void ValueType::MergeFrom(const ::google::protobuf::Message& from) { |
| 943 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ValueType) |
| 944 | GOOGLE_DCHECK_NE(&from, this); |
| 945 | const ValueType* source = |
| 946 | ::google::protobuf::DynamicCastToGenerated<ValueType>( |
| 947 | &from); |
| 948 | if (source == nullptr) { |
| 949 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ValueType) |
| 950 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 951 | } else { |
| 952 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ValueType) |
| 953 | MergeFrom(*source); |
| 954 | } |
| 955 | } |
| 956 | |
| 957 | void ValueType::MergeFrom(const ValueType& from) { |
| 958 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ValueType) |
| 959 | GOOGLE_DCHECK_NE(&from, this); |
| 960 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 961 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 962 | (void) cached_has_bits; |
| 963 | |
| 964 | switch (from.val_case()) { |
| 965 | case kIntVal: { |
| 966 | set_int_val(from.int_val()); |
| 967 | break; |
| 968 | } |
| 969 | case kUintVal: { |
| 970 | set_uint_val(from.uint_val()); |
| 971 | break; |
| 972 | } |
| 973 | case kFloatVal: { |
| 974 | set_float_val(from.float_val()); |
| 975 | break; |
| 976 | } |
| 977 | case VAL_NOT_SET: { |
| 978 | break; |
| 979 | } |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | void ValueType::CopyFrom(const ::google::protobuf::Message& from) { |
| 984 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ValueType) |
| 985 | if (&from == this) return; |
| 986 | Clear(); |
| 987 | MergeFrom(from); |
| 988 | } |
| 989 | |
| 990 | void ValueType::CopyFrom(const ValueType& from) { |
| 991 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ValueType) |
| 992 | if (&from == this) return; |
| 993 | Clear(); |
| 994 | MergeFrom(from); |
| 995 | } |
| 996 | |
| 997 | bool ValueType::IsInitialized() const { |
| 998 | return true; |
| 999 | } |
| 1000 | |
| 1001 | void ValueType::Swap(ValueType* other) { |
| 1002 | if (other == this) return; |
| 1003 | InternalSwap(other); |
| 1004 | } |
| 1005 | void ValueType::InternalSwap(ValueType* other) { |
| 1006 | using std::swap; |
| 1007 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1008 | swap(val_, other->val_); |
| 1009 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 1010 | } |
| 1011 | |
| 1012 | ::google::protobuf::Metadata ValueType::GetMetadata() const { |
| 1013 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 1014 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 1015 | } |
| 1016 | |
| 1017 | |
| 1018 | // =================================================================== |
| 1019 | |
| 1020 | void WaterMarks::InitAsDefaultInstance() { |
| 1021 | ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->high_ = const_cast< ::dmi::ValueType*>( |
| 1022 | ::dmi::ValueType::internal_default_instance()); |
| 1023 | ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->low_ = const_cast< ::dmi::ValueType*>( |
| 1024 | ::dmi::ValueType::internal_default_instance()); |
| 1025 | } |
| 1026 | class WaterMarks::HasBitSetters { |
| 1027 | public: |
| 1028 | static const ::dmi::ValueType& high(const WaterMarks* msg); |
| 1029 | static const ::dmi::ValueType& low(const WaterMarks* msg); |
| 1030 | }; |
| 1031 | |
| 1032 | const ::dmi::ValueType& |
| 1033 | WaterMarks::HasBitSetters::high(const WaterMarks* msg) { |
| 1034 | return *msg->high_; |
| 1035 | } |
| 1036 | const ::dmi::ValueType& |
| 1037 | WaterMarks::HasBitSetters::low(const WaterMarks* msg) { |
| 1038 | return *msg->low_; |
| 1039 | } |
| 1040 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1041 | const int WaterMarks::kHighFieldNumber; |
| 1042 | const int WaterMarks::kLowFieldNumber; |
| 1043 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1044 | |
| 1045 | WaterMarks::WaterMarks() |
| 1046 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1047 | SharedCtor(); |
| 1048 | // @@protoc_insertion_point(constructor:dmi.WaterMarks) |
| 1049 | } |
| 1050 | WaterMarks::WaterMarks(const WaterMarks& from) |
| 1051 | : ::google::protobuf::Message(), |
| 1052 | _internal_metadata_(nullptr) { |
| 1053 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1054 | if (from.has_high()) { |
| 1055 | high_ = new ::dmi::ValueType(*from.high_); |
| 1056 | } else { |
| 1057 | high_ = nullptr; |
| 1058 | } |
| 1059 | if (from.has_low()) { |
| 1060 | low_ = new ::dmi::ValueType(*from.low_); |
| 1061 | } else { |
| 1062 | low_ = nullptr; |
| 1063 | } |
| 1064 | // @@protoc_insertion_point(copy_constructor:dmi.WaterMarks) |
| 1065 | } |
| 1066 | |
| 1067 | void WaterMarks::SharedCtor() { |
| 1068 | ::google::protobuf::internal::InitSCC( |
| 1069 | &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1070 | ::memset(&high_, 0, static_cast<size_t>( |
| 1071 | reinterpret_cast<char*>(&low_) - |
| 1072 | reinterpret_cast<char*>(&high_)) + sizeof(low_)); |
| 1073 | } |
| 1074 | |
| 1075 | WaterMarks::~WaterMarks() { |
| 1076 | // @@protoc_insertion_point(destructor:dmi.WaterMarks) |
| 1077 | SharedDtor(); |
| 1078 | } |
| 1079 | |
| 1080 | void WaterMarks::SharedDtor() { |
| 1081 | if (this != internal_default_instance()) delete high_; |
| 1082 | if (this != internal_default_instance()) delete low_; |
| 1083 | } |
| 1084 | |
| 1085 | void WaterMarks::SetCachedSize(int size) const { |
| 1086 | _cached_size_.Set(size); |
| 1087 | } |
| 1088 | const WaterMarks& WaterMarks::default_instance() { |
| 1089 | ::google::protobuf::internal::InitSCC(&::scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1090 | return *internal_default_instance(); |
| 1091 | } |
| 1092 | |
| 1093 | |
| 1094 | void WaterMarks::Clear() { |
| 1095 | // @@protoc_insertion_point(message_clear_start:dmi.WaterMarks) |
| 1096 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1097 | // Prevent compiler warnings about cached_has_bits being unused |
| 1098 | (void) cached_has_bits; |
| 1099 | |
| 1100 | if (GetArenaNoVirtual() == nullptr && high_ != nullptr) { |
| 1101 | delete high_; |
| 1102 | } |
| 1103 | high_ = nullptr; |
| 1104 | if (GetArenaNoVirtual() == nullptr && low_ != nullptr) { |
| 1105 | delete low_; |
| 1106 | } |
| 1107 | low_ = nullptr; |
| 1108 | _internal_metadata_.Clear(); |
| 1109 | } |
| 1110 | |
| 1111 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1112 | const char* WaterMarks::_InternalParse(const char* begin, const char* end, void* object, |
| 1113 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1114 | auto msg = static_cast<WaterMarks*>(object); |
| 1115 | ::google::protobuf::int32 size; (void)size; |
| 1116 | int depth; (void)depth; |
| 1117 | ::google::protobuf::uint32 tag; |
| 1118 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1119 | auto ptr = begin; |
| 1120 | while (ptr < end) { |
| 1121 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1122 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1123 | switch (tag >> 3) { |
| 1124 | // .dmi.ValueType high = 1; |
| 1125 | case 1: { |
| 1126 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1127 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1128 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1129 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 1130 | object = msg->mutable_high(); |
| 1131 | if (size > end - ptr) goto len_delim_till_end; |
| 1132 | ptr += size; |
| 1133 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1134 | {parser_till_end, object}, ptr - size, ptr)); |
| 1135 | break; |
| 1136 | } |
| 1137 | // .dmi.ValueType low = 2; |
| 1138 | case 2: { |
| 1139 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1140 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1141 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1142 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 1143 | object = msg->mutable_low(); |
| 1144 | if (size > end - ptr) goto len_delim_till_end; |
| 1145 | ptr += size; |
| 1146 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1147 | {parser_till_end, object}, ptr - size, ptr)); |
| 1148 | break; |
| 1149 | } |
| 1150 | default: { |
| 1151 | handle_unusual: |
| 1152 | if ((tag & 7) == 4 || tag == 0) { |
| 1153 | ctx->EndGroup(tag); |
| 1154 | return ptr; |
| 1155 | } |
| 1156 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1157 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1158 | ptr = res.first; |
| 1159 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1160 | if (res.second) return ptr; |
| 1161 | } |
| 1162 | } // switch |
| 1163 | } // while |
| 1164 | return ptr; |
| 1165 | len_delim_till_end: |
| 1166 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1167 | {parser_till_end, object}, size); |
| 1168 | } |
| 1169 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1170 | bool WaterMarks::MergePartialFromCodedStream( |
| 1171 | ::google::protobuf::io::CodedInputStream* input) { |
| 1172 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1173 | ::google::protobuf::uint32 tag; |
| 1174 | // @@protoc_insertion_point(parse_start:dmi.WaterMarks) |
| 1175 | for (;;) { |
| 1176 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1177 | tag = p.first; |
| 1178 | if (!p.second) goto handle_unusual; |
| 1179 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1180 | // .dmi.ValueType high = 1; |
| 1181 | case 1: { |
| 1182 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1183 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1184 | input, mutable_high())); |
| 1185 | } else { |
| 1186 | goto handle_unusual; |
| 1187 | } |
| 1188 | break; |
| 1189 | } |
| 1190 | |
| 1191 | // .dmi.ValueType low = 2; |
| 1192 | case 2: { |
| 1193 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1194 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1195 | input, mutable_low())); |
| 1196 | } else { |
| 1197 | goto handle_unusual; |
| 1198 | } |
| 1199 | break; |
| 1200 | } |
| 1201 | |
| 1202 | default: { |
| 1203 | handle_unusual: |
| 1204 | if (tag == 0) { |
| 1205 | goto success; |
| 1206 | } |
| 1207 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1208 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1209 | break; |
| 1210 | } |
| 1211 | } |
| 1212 | } |
| 1213 | success: |
| 1214 | // @@protoc_insertion_point(parse_success:dmi.WaterMarks) |
| 1215 | return true; |
| 1216 | failure: |
| 1217 | // @@protoc_insertion_point(parse_failure:dmi.WaterMarks) |
| 1218 | return false; |
| 1219 | #undef DO_ |
| 1220 | } |
| 1221 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1222 | |
| 1223 | void WaterMarks::SerializeWithCachedSizes( |
| 1224 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1225 | // @@protoc_insertion_point(serialize_start:dmi.WaterMarks) |
| 1226 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1227 | (void) cached_has_bits; |
| 1228 | |
| 1229 | // .dmi.ValueType high = 1; |
| 1230 | if (this->has_high()) { |
| 1231 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1232 | 1, HasBitSetters::high(this), output); |
| 1233 | } |
| 1234 | |
| 1235 | // .dmi.ValueType low = 2; |
| 1236 | if (this->has_low()) { |
| 1237 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1238 | 2, HasBitSetters::low(this), output); |
| 1239 | } |
| 1240 | |
| 1241 | if (_internal_metadata_.have_unknown_fields()) { |
| 1242 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1243 | _internal_metadata_.unknown_fields(), output); |
| 1244 | } |
| 1245 | // @@protoc_insertion_point(serialize_end:dmi.WaterMarks) |
| 1246 | } |
| 1247 | |
| 1248 | ::google::protobuf::uint8* WaterMarks::InternalSerializeWithCachedSizesToArray( |
| 1249 | ::google::protobuf::uint8* target) const { |
| 1250 | // @@protoc_insertion_point(serialize_to_array_start:dmi.WaterMarks) |
| 1251 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1252 | (void) cached_has_bits; |
| 1253 | |
| 1254 | // .dmi.ValueType high = 1; |
| 1255 | if (this->has_high()) { |
| 1256 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1257 | InternalWriteMessageToArray( |
| 1258 | 1, HasBitSetters::high(this), target); |
| 1259 | } |
| 1260 | |
| 1261 | // .dmi.ValueType low = 2; |
| 1262 | if (this->has_low()) { |
| 1263 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1264 | InternalWriteMessageToArray( |
| 1265 | 2, HasBitSetters::low(this), target); |
| 1266 | } |
| 1267 | |
| 1268 | if (_internal_metadata_.have_unknown_fields()) { |
| 1269 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1270 | _internal_metadata_.unknown_fields(), target); |
| 1271 | } |
| 1272 | // @@protoc_insertion_point(serialize_to_array_end:dmi.WaterMarks) |
| 1273 | return target; |
| 1274 | } |
| 1275 | |
| 1276 | size_t WaterMarks::ByteSizeLong() const { |
| 1277 | // @@protoc_insertion_point(message_byte_size_start:dmi.WaterMarks) |
| 1278 | size_t total_size = 0; |
| 1279 | |
| 1280 | if (_internal_metadata_.have_unknown_fields()) { |
| 1281 | total_size += |
| 1282 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1283 | _internal_metadata_.unknown_fields()); |
| 1284 | } |
| 1285 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1286 | // Prevent compiler warnings about cached_has_bits being unused |
| 1287 | (void) cached_has_bits; |
| 1288 | |
| 1289 | // .dmi.ValueType high = 1; |
| 1290 | if (this->has_high()) { |
| 1291 | total_size += 1 + |
| 1292 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1293 | *high_); |
| 1294 | } |
| 1295 | |
| 1296 | // .dmi.ValueType low = 2; |
| 1297 | if (this->has_low()) { |
| 1298 | total_size += 1 + |
| 1299 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1300 | *low_); |
| 1301 | } |
| 1302 | |
| 1303 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1304 | SetCachedSize(cached_size); |
| 1305 | return total_size; |
| 1306 | } |
| 1307 | |
| 1308 | void WaterMarks::MergeFrom(const ::google::protobuf::Message& from) { |
| 1309 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.WaterMarks) |
| 1310 | GOOGLE_DCHECK_NE(&from, this); |
| 1311 | const WaterMarks* source = |
| 1312 | ::google::protobuf::DynamicCastToGenerated<WaterMarks>( |
| 1313 | &from); |
| 1314 | if (source == nullptr) { |
| 1315 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.WaterMarks) |
| 1316 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1317 | } else { |
| 1318 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.WaterMarks) |
| 1319 | MergeFrom(*source); |
| 1320 | } |
| 1321 | } |
| 1322 | |
| 1323 | void WaterMarks::MergeFrom(const WaterMarks& from) { |
| 1324 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.WaterMarks) |
| 1325 | GOOGLE_DCHECK_NE(&from, this); |
| 1326 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1327 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1328 | (void) cached_has_bits; |
| 1329 | |
| 1330 | if (from.has_high()) { |
| 1331 | mutable_high()->::dmi::ValueType::MergeFrom(from.high()); |
| 1332 | } |
| 1333 | if (from.has_low()) { |
| 1334 | mutable_low()->::dmi::ValueType::MergeFrom(from.low()); |
| 1335 | } |
| 1336 | } |
| 1337 | |
| 1338 | void WaterMarks::CopyFrom(const ::google::protobuf::Message& from) { |
| 1339 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.WaterMarks) |
| 1340 | if (&from == this) return; |
| 1341 | Clear(); |
| 1342 | MergeFrom(from); |
| 1343 | } |
| 1344 | |
| 1345 | void WaterMarks::CopyFrom(const WaterMarks& from) { |
| 1346 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.WaterMarks) |
| 1347 | if (&from == this) return; |
| 1348 | Clear(); |
| 1349 | MergeFrom(from); |
| 1350 | } |
| 1351 | |
| 1352 | bool WaterMarks::IsInitialized() const { |
| 1353 | return true; |
| 1354 | } |
| 1355 | |
| 1356 | void WaterMarks::Swap(WaterMarks* other) { |
| 1357 | if (other == this) return; |
| 1358 | InternalSwap(other); |
| 1359 | } |
| 1360 | void WaterMarks::InternalSwap(WaterMarks* other) { |
| 1361 | using std::swap; |
| 1362 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1363 | swap(high_, other->high_); |
| 1364 | swap(low_, other->low_); |
| 1365 | } |
| 1366 | |
| 1367 | ::google::protobuf::Metadata WaterMarks::GetMetadata() const { |
| 1368 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 1369 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 1370 | } |
| 1371 | |
| 1372 | |
| 1373 | // =================================================================== |
| 1374 | |
| 1375 | void Thresholds::InitAsDefaultInstance() { |
| 1376 | ::dmi::_Thresholds_default_instance_.upper_ = const_cast< ::dmi::WaterMarks*>( |
| 1377 | ::dmi::WaterMarks::internal_default_instance()); |
| 1378 | ::dmi::_Thresholds_default_instance_.lower_ = const_cast< ::dmi::WaterMarks*>( |
| 1379 | ::dmi::WaterMarks::internal_default_instance()); |
| 1380 | } |
| 1381 | class Thresholds::HasBitSetters { |
| 1382 | public: |
| 1383 | static const ::dmi::WaterMarks& upper(const Thresholds* msg); |
| 1384 | static const ::dmi::WaterMarks& lower(const Thresholds* msg); |
| 1385 | }; |
| 1386 | |
| 1387 | const ::dmi::WaterMarks& |
| 1388 | Thresholds::HasBitSetters::upper(const Thresholds* msg) { |
| 1389 | return *msg->threshold_.upper_; |
| 1390 | } |
| 1391 | const ::dmi::WaterMarks& |
| 1392 | Thresholds::HasBitSetters::lower(const Thresholds* msg) { |
| 1393 | return *msg->threshold_.lower_; |
| 1394 | } |
| 1395 | void Thresholds::set_allocated_upper(::dmi::WaterMarks* upper) { |
| 1396 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1397 | clear_threshold(); |
| 1398 | if (upper) { |
| 1399 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1400 | if (message_arena != submessage_arena) { |
| 1401 | upper = ::google::protobuf::internal::GetOwnedMessage( |
| 1402 | message_arena, upper, submessage_arena); |
| 1403 | } |
| 1404 | set_has_upper(); |
| 1405 | threshold_.upper_ = upper; |
| 1406 | } |
| 1407 | // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.upper) |
| 1408 | } |
| 1409 | void Thresholds::set_allocated_lower(::dmi::WaterMarks* lower) { |
| 1410 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1411 | clear_threshold(); |
| 1412 | if (lower) { |
| 1413 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1414 | if (message_arena != submessage_arena) { |
| 1415 | lower = ::google::protobuf::internal::GetOwnedMessage( |
| 1416 | message_arena, lower, submessage_arena); |
| 1417 | } |
| 1418 | set_has_lower(); |
| 1419 | threshold_.lower_ = lower; |
| 1420 | } |
| 1421 | // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.lower) |
| 1422 | } |
| 1423 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1424 | const int Thresholds::kUpperFieldNumber; |
| 1425 | const int Thresholds::kLowerFieldNumber; |
| 1426 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1427 | |
| 1428 | Thresholds::Thresholds() |
| 1429 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1430 | SharedCtor(); |
| 1431 | // @@protoc_insertion_point(constructor:dmi.Thresholds) |
| 1432 | } |
| 1433 | Thresholds::Thresholds(const Thresholds& from) |
| 1434 | : ::google::protobuf::Message(), |
| 1435 | _internal_metadata_(nullptr) { |
| 1436 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1437 | clear_has_threshold(); |
| 1438 | switch (from.threshold_case()) { |
| 1439 | case kUpper: { |
| 1440 | mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper()); |
| 1441 | break; |
| 1442 | } |
| 1443 | case kLower: { |
| 1444 | mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower()); |
| 1445 | break; |
| 1446 | } |
| 1447 | case THRESHOLD_NOT_SET: { |
| 1448 | break; |
| 1449 | } |
| 1450 | } |
| 1451 | // @@protoc_insertion_point(copy_constructor:dmi.Thresholds) |
| 1452 | } |
| 1453 | |
| 1454 | void Thresholds::SharedCtor() { |
| 1455 | ::google::protobuf::internal::InitSCC( |
| 1456 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1457 | clear_has_threshold(); |
| 1458 | } |
| 1459 | |
| 1460 | Thresholds::~Thresholds() { |
| 1461 | // @@protoc_insertion_point(destructor:dmi.Thresholds) |
| 1462 | SharedDtor(); |
| 1463 | } |
| 1464 | |
| 1465 | void Thresholds::SharedDtor() { |
| 1466 | if (has_threshold()) { |
| 1467 | clear_threshold(); |
| 1468 | } |
| 1469 | } |
| 1470 | |
| 1471 | void Thresholds::SetCachedSize(int size) const { |
| 1472 | _cached_size_.Set(size); |
| 1473 | } |
| 1474 | const Thresholds& Thresholds::default_instance() { |
| 1475 | ::google::protobuf::internal::InitSCC(&::scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1476 | return *internal_default_instance(); |
| 1477 | } |
| 1478 | |
| 1479 | |
| 1480 | void Thresholds::clear_threshold() { |
| 1481 | // @@protoc_insertion_point(one_of_clear_start:dmi.Thresholds) |
| 1482 | switch (threshold_case()) { |
| 1483 | case kUpper: { |
| 1484 | delete threshold_.upper_; |
| 1485 | break; |
| 1486 | } |
| 1487 | case kLower: { |
| 1488 | delete threshold_.lower_; |
| 1489 | break; |
| 1490 | } |
| 1491 | case THRESHOLD_NOT_SET: { |
| 1492 | break; |
| 1493 | } |
| 1494 | } |
| 1495 | _oneof_case_[0] = THRESHOLD_NOT_SET; |
| 1496 | } |
| 1497 | |
| 1498 | |
| 1499 | void Thresholds::Clear() { |
| 1500 | // @@protoc_insertion_point(message_clear_start:dmi.Thresholds) |
| 1501 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1502 | // Prevent compiler warnings about cached_has_bits being unused |
| 1503 | (void) cached_has_bits; |
| 1504 | |
| 1505 | clear_threshold(); |
| 1506 | _internal_metadata_.Clear(); |
| 1507 | } |
| 1508 | |
| 1509 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1510 | const char* Thresholds::_InternalParse(const char* begin, const char* end, void* object, |
| 1511 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1512 | auto msg = static_cast<Thresholds*>(object); |
| 1513 | ::google::protobuf::int32 size; (void)size; |
| 1514 | int depth; (void)depth; |
| 1515 | ::google::protobuf::uint32 tag; |
| 1516 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1517 | auto ptr = begin; |
| 1518 | while (ptr < end) { |
| 1519 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1520 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1521 | switch (tag >> 3) { |
| 1522 | // .dmi.WaterMarks upper = 1; |
| 1523 | case 1: { |
| 1524 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1525 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1526 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1527 | parser_till_end = ::dmi::WaterMarks::_InternalParse; |
| 1528 | object = msg->mutable_upper(); |
| 1529 | if (size > end - ptr) goto len_delim_till_end; |
| 1530 | ptr += size; |
| 1531 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1532 | {parser_till_end, object}, ptr - size, ptr)); |
| 1533 | break; |
| 1534 | } |
| 1535 | // .dmi.WaterMarks lower = 2; |
| 1536 | case 2: { |
| 1537 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1538 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1539 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1540 | parser_till_end = ::dmi::WaterMarks::_InternalParse; |
| 1541 | object = msg->mutable_lower(); |
| 1542 | if (size > end - ptr) goto len_delim_till_end; |
| 1543 | ptr += size; |
| 1544 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1545 | {parser_till_end, object}, ptr - size, ptr)); |
| 1546 | break; |
| 1547 | } |
| 1548 | default: { |
| 1549 | handle_unusual: |
| 1550 | if ((tag & 7) == 4 || tag == 0) { |
| 1551 | ctx->EndGroup(tag); |
| 1552 | return ptr; |
| 1553 | } |
| 1554 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1555 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1556 | ptr = res.first; |
| 1557 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1558 | if (res.second) return ptr; |
| 1559 | } |
| 1560 | } // switch |
| 1561 | } // while |
| 1562 | return ptr; |
| 1563 | len_delim_till_end: |
| 1564 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1565 | {parser_till_end, object}, size); |
| 1566 | } |
| 1567 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1568 | bool Thresholds::MergePartialFromCodedStream( |
| 1569 | ::google::protobuf::io::CodedInputStream* input) { |
| 1570 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1571 | ::google::protobuf::uint32 tag; |
| 1572 | // @@protoc_insertion_point(parse_start:dmi.Thresholds) |
| 1573 | for (;;) { |
| 1574 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1575 | tag = p.first; |
| 1576 | if (!p.second) goto handle_unusual; |
| 1577 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1578 | // .dmi.WaterMarks upper = 1; |
| 1579 | case 1: { |
| 1580 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1581 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1582 | input, mutable_upper())); |
| 1583 | } else { |
| 1584 | goto handle_unusual; |
| 1585 | } |
| 1586 | break; |
| 1587 | } |
| 1588 | |
| 1589 | // .dmi.WaterMarks lower = 2; |
| 1590 | case 2: { |
| 1591 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1592 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1593 | input, mutable_lower())); |
| 1594 | } else { |
| 1595 | goto handle_unusual; |
| 1596 | } |
| 1597 | break; |
| 1598 | } |
| 1599 | |
| 1600 | default: { |
| 1601 | handle_unusual: |
| 1602 | if (tag == 0) { |
| 1603 | goto success; |
| 1604 | } |
| 1605 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1606 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1607 | break; |
| 1608 | } |
| 1609 | } |
| 1610 | } |
| 1611 | success: |
| 1612 | // @@protoc_insertion_point(parse_success:dmi.Thresholds) |
| 1613 | return true; |
| 1614 | failure: |
| 1615 | // @@protoc_insertion_point(parse_failure:dmi.Thresholds) |
| 1616 | return false; |
| 1617 | #undef DO_ |
| 1618 | } |
| 1619 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1620 | |
| 1621 | void Thresholds::SerializeWithCachedSizes( |
| 1622 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1623 | // @@protoc_insertion_point(serialize_start:dmi.Thresholds) |
| 1624 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1625 | (void) cached_has_bits; |
| 1626 | |
| 1627 | // .dmi.WaterMarks upper = 1; |
| 1628 | if (has_upper()) { |
| 1629 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1630 | 1, HasBitSetters::upper(this), output); |
| 1631 | } |
| 1632 | |
| 1633 | // .dmi.WaterMarks lower = 2; |
| 1634 | if (has_lower()) { |
| 1635 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1636 | 2, HasBitSetters::lower(this), output); |
| 1637 | } |
| 1638 | |
| 1639 | if (_internal_metadata_.have_unknown_fields()) { |
| 1640 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1641 | _internal_metadata_.unknown_fields(), output); |
| 1642 | } |
| 1643 | // @@protoc_insertion_point(serialize_end:dmi.Thresholds) |
| 1644 | } |
| 1645 | |
| 1646 | ::google::protobuf::uint8* Thresholds::InternalSerializeWithCachedSizesToArray( |
| 1647 | ::google::protobuf::uint8* target) const { |
| 1648 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Thresholds) |
| 1649 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1650 | (void) cached_has_bits; |
| 1651 | |
| 1652 | // .dmi.WaterMarks upper = 1; |
| 1653 | if (has_upper()) { |
| 1654 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1655 | InternalWriteMessageToArray( |
| 1656 | 1, HasBitSetters::upper(this), target); |
| 1657 | } |
| 1658 | |
| 1659 | // .dmi.WaterMarks lower = 2; |
| 1660 | if (has_lower()) { |
| 1661 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1662 | InternalWriteMessageToArray( |
| 1663 | 2, HasBitSetters::lower(this), target); |
| 1664 | } |
| 1665 | |
| 1666 | if (_internal_metadata_.have_unknown_fields()) { |
| 1667 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1668 | _internal_metadata_.unknown_fields(), target); |
| 1669 | } |
| 1670 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Thresholds) |
| 1671 | return target; |
| 1672 | } |
| 1673 | |
| 1674 | size_t Thresholds::ByteSizeLong() const { |
| 1675 | // @@protoc_insertion_point(message_byte_size_start:dmi.Thresholds) |
| 1676 | size_t total_size = 0; |
| 1677 | |
| 1678 | if (_internal_metadata_.have_unknown_fields()) { |
| 1679 | total_size += |
| 1680 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1681 | _internal_metadata_.unknown_fields()); |
| 1682 | } |
| 1683 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1684 | // Prevent compiler warnings about cached_has_bits being unused |
| 1685 | (void) cached_has_bits; |
| 1686 | |
| 1687 | switch (threshold_case()) { |
| 1688 | // .dmi.WaterMarks upper = 1; |
| 1689 | case kUpper: { |
| 1690 | total_size += 1 + |
| 1691 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1692 | *threshold_.upper_); |
| 1693 | break; |
| 1694 | } |
| 1695 | // .dmi.WaterMarks lower = 2; |
| 1696 | case kLower: { |
| 1697 | total_size += 1 + |
| 1698 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1699 | *threshold_.lower_); |
| 1700 | break; |
| 1701 | } |
| 1702 | case THRESHOLD_NOT_SET: { |
| 1703 | break; |
| 1704 | } |
| 1705 | } |
| 1706 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1707 | SetCachedSize(cached_size); |
| 1708 | return total_size; |
| 1709 | } |
| 1710 | |
| 1711 | void Thresholds::MergeFrom(const ::google::protobuf::Message& from) { |
| 1712 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Thresholds) |
| 1713 | GOOGLE_DCHECK_NE(&from, this); |
| 1714 | const Thresholds* source = |
| 1715 | ::google::protobuf::DynamicCastToGenerated<Thresholds>( |
| 1716 | &from); |
| 1717 | if (source == nullptr) { |
| 1718 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Thresholds) |
| 1719 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1720 | } else { |
| 1721 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Thresholds) |
| 1722 | MergeFrom(*source); |
| 1723 | } |
| 1724 | } |
| 1725 | |
| 1726 | void Thresholds::MergeFrom(const Thresholds& from) { |
| 1727 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Thresholds) |
| 1728 | GOOGLE_DCHECK_NE(&from, this); |
| 1729 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1730 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1731 | (void) cached_has_bits; |
| 1732 | |
| 1733 | switch (from.threshold_case()) { |
| 1734 | case kUpper: { |
| 1735 | mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper()); |
| 1736 | break; |
| 1737 | } |
| 1738 | case kLower: { |
| 1739 | mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower()); |
| 1740 | break; |
| 1741 | } |
| 1742 | case THRESHOLD_NOT_SET: { |
| 1743 | break; |
| 1744 | } |
| 1745 | } |
| 1746 | } |
| 1747 | |
| 1748 | void Thresholds::CopyFrom(const ::google::protobuf::Message& from) { |
| 1749 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Thresholds) |
| 1750 | if (&from == this) return; |
| 1751 | Clear(); |
| 1752 | MergeFrom(from); |
| 1753 | } |
| 1754 | |
| 1755 | void Thresholds::CopyFrom(const Thresholds& from) { |
| 1756 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Thresholds) |
| 1757 | if (&from == this) return; |
| 1758 | Clear(); |
| 1759 | MergeFrom(from); |
| 1760 | } |
| 1761 | |
| 1762 | bool Thresholds::IsInitialized() const { |
| 1763 | return true; |
| 1764 | } |
| 1765 | |
| 1766 | void Thresholds::Swap(Thresholds* other) { |
| 1767 | if (other == this) return; |
| 1768 | InternalSwap(other); |
| 1769 | } |
| 1770 | void Thresholds::InternalSwap(Thresholds* other) { |
| 1771 | using std::swap; |
| 1772 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1773 | swap(threshold_, other->threshold_); |
| 1774 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 1775 | } |
| 1776 | |
| 1777 | ::google::protobuf::Metadata Thresholds::GetMetadata() const { |
| 1778 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 1779 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 1780 | } |
| 1781 | |
| 1782 | |
| 1783 | // =================================================================== |
| 1784 | |
| 1785 | void ThresholdInformation::InitAsDefaultInstance() { |
| 1786 | ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->observed_value_ = const_cast< ::dmi::ValueType*>( |
| 1787 | ::dmi::ValueType::internal_default_instance()); |
| 1788 | ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>( |
| 1789 | ::dmi::Thresholds::internal_default_instance()); |
| 1790 | } |
| 1791 | class ThresholdInformation::HasBitSetters { |
| 1792 | public: |
| 1793 | static const ::dmi::ValueType& observed_value(const ThresholdInformation* msg); |
| 1794 | static const ::dmi::Thresholds& thresholds(const ThresholdInformation* msg); |
| 1795 | }; |
| 1796 | |
| 1797 | const ::dmi::ValueType& |
| 1798 | ThresholdInformation::HasBitSetters::observed_value(const ThresholdInformation* msg) { |
| 1799 | return *msg->observed_value_; |
| 1800 | } |
| 1801 | const ::dmi::Thresholds& |
| 1802 | ThresholdInformation::HasBitSetters::thresholds(const ThresholdInformation* msg) { |
| 1803 | return *msg->thresholds_; |
| 1804 | } |
| 1805 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1806 | const int ThresholdInformation::kObservedValueFieldNumber; |
| 1807 | const int ThresholdInformation::kThresholdsFieldNumber; |
| 1808 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1809 | |
| 1810 | ThresholdInformation::ThresholdInformation() |
| 1811 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1812 | SharedCtor(); |
| 1813 | // @@protoc_insertion_point(constructor:dmi.ThresholdInformation) |
| 1814 | } |
| 1815 | ThresholdInformation::ThresholdInformation(const ThresholdInformation& from) |
| 1816 | : ::google::protobuf::Message(), |
| 1817 | _internal_metadata_(nullptr) { |
| 1818 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1819 | if (from.has_observed_value()) { |
| 1820 | observed_value_ = new ::dmi::ValueType(*from.observed_value_); |
| 1821 | } else { |
| 1822 | observed_value_ = nullptr; |
| 1823 | } |
| 1824 | if (from.has_thresholds()) { |
| 1825 | thresholds_ = new ::dmi::Thresholds(*from.thresholds_); |
| 1826 | } else { |
| 1827 | thresholds_ = nullptr; |
| 1828 | } |
| 1829 | // @@protoc_insertion_point(copy_constructor:dmi.ThresholdInformation) |
| 1830 | } |
| 1831 | |
| 1832 | void ThresholdInformation::SharedCtor() { |
| 1833 | ::google::protobuf::internal::InitSCC( |
| 1834 | &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1835 | ::memset(&observed_value_, 0, static_cast<size_t>( |
| 1836 | reinterpret_cast<char*>(&thresholds_) - |
| 1837 | reinterpret_cast<char*>(&observed_value_)) + sizeof(thresholds_)); |
| 1838 | } |
| 1839 | |
| 1840 | ThresholdInformation::~ThresholdInformation() { |
| 1841 | // @@protoc_insertion_point(destructor:dmi.ThresholdInformation) |
| 1842 | SharedDtor(); |
| 1843 | } |
| 1844 | |
| 1845 | void ThresholdInformation::SharedDtor() { |
| 1846 | if (this != internal_default_instance()) delete observed_value_; |
| 1847 | if (this != internal_default_instance()) delete thresholds_; |
| 1848 | } |
| 1849 | |
| 1850 | void ThresholdInformation::SetCachedSize(int size) const { |
| 1851 | _cached_size_.Set(size); |
| 1852 | } |
| 1853 | const ThresholdInformation& ThresholdInformation::default_instance() { |
| 1854 | ::google::protobuf::internal::InitSCC(&::scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1855 | return *internal_default_instance(); |
| 1856 | } |
| 1857 | |
| 1858 | |
| 1859 | void ThresholdInformation::Clear() { |
| 1860 | // @@protoc_insertion_point(message_clear_start:dmi.ThresholdInformation) |
| 1861 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1862 | // Prevent compiler warnings about cached_has_bits being unused |
| 1863 | (void) cached_has_bits; |
| 1864 | |
| 1865 | if (GetArenaNoVirtual() == nullptr && observed_value_ != nullptr) { |
| 1866 | delete observed_value_; |
| 1867 | } |
| 1868 | observed_value_ = nullptr; |
| 1869 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 1870 | delete thresholds_; |
| 1871 | } |
| 1872 | thresholds_ = nullptr; |
| 1873 | _internal_metadata_.Clear(); |
| 1874 | } |
| 1875 | |
| 1876 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1877 | const char* ThresholdInformation::_InternalParse(const char* begin, const char* end, void* object, |
| 1878 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1879 | auto msg = static_cast<ThresholdInformation*>(object); |
| 1880 | ::google::protobuf::int32 size; (void)size; |
| 1881 | int depth; (void)depth; |
| 1882 | ::google::protobuf::uint32 tag; |
| 1883 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1884 | auto ptr = begin; |
| 1885 | while (ptr < end) { |
| 1886 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1887 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1888 | switch (tag >> 3) { |
| 1889 | // .dmi.ValueType observed_value = 1; |
| 1890 | case 1: { |
| 1891 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1892 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1893 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1894 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 1895 | object = msg->mutable_observed_value(); |
| 1896 | if (size > end - ptr) goto len_delim_till_end; |
| 1897 | ptr += size; |
| 1898 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1899 | {parser_till_end, object}, ptr - size, ptr)); |
| 1900 | break; |
| 1901 | } |
| 1902 | // .dmi.Thresholds thresholds = 2; |
| 1903 | case 2: { |
| 1904 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1905 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1906 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1907 | parser_till_end = ::dmi::Thresholds::_InternalParse; |
| 1908 | object = msg->mutable_thresholds(); |
| 1909 | if (size > end - ptr) goto len_delim_till_end; |
| 1910 | ptr += size; |
| 1911 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1912 | {parser_till_end, object}, ptr - size, ptr)); |
| 1913 | break; |
| 1914 | } |
| 1915 | default: { |
| 1916 | handle_unusual: |
| 1917 | if ((tag & 7) == 4 || tag == 0) { |
| 1918 | ctx->EndGroup(tag); |
| 1919 | return ptr; |
| 1920 | } |
| 1921 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1922 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1923 | ptr = res.first; |
| 1924 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1925 | if (res.second) return ptr; |
| 1926 | } |
| 1927 | } // switch |
| 1928 | } // while |
| 1929 | return ptr; |
| 1930 | len_delim_till_end: |
| 1931 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1932 | {parser_till_end, object}, size); |
| 1933 | } |
| 1934 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1935 | bool ThresholdInformation::MergePartialFromCodedStream( |
| 1936 | ::google::protobuf::io::CodedInputStream* input) { |
| 1937 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1938 | ::google::protobuf::uint32 tag; |
| 1939 | // @@protoc_insertion_point(parse_start:dmi.ThresholdInformation) |
| 1940 | for (;;) { |
| 1941 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1942 | tag = p.first; |
| 1943 | if (!p.second) goto handle_unusual; |
| 1944 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1945 | // .dmi.ValueType observed_value = 1; |
| 1946 | case 1: { |
| 1947 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1948 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1949 | input, mutable_observed_value())); |
| 1950 | } else { |
| 1951 | goto handle_unusual; |
| 1952 | } |
| 1953 | break; |
| 1954 | } |
| 1955 | |
| 1956 | // .dmi.Thresholds thresholds = 2; |
| 1957 | case 2: { |
| 1958 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1959 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1960 | input, mutable_thresholds())); |
| 1961 | } else { |
| 1962 | goto handle_unusual; |
| 1963 | } |
| 1964 | break; |
| 1965 | } |
| 1966 | |
| 1967 | default: { |
| 1968 | handle_unusual: |
| 1969 | if (tag == 0) { |
| 1970 | goto success; |
| 1971 | } |
| 1972 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1973 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1974 | break; |
| 1975 | } |
| 1976 | } |
| 1977 | } |
| 1978 | success: |
| 1979 | // @@protoc_insertion_point(parse_success:dmi.ThresholdInformation) |
| 1980 | return true; |
| 1981 | failure: |
| 1982 | // @@protoc_insertion_point(parse_failure:dmi.ThresholdInformation) |
| 1983 | return false; |
| 1984 | #undef DO_ |
| 1985 | } |
| 1986 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1987 | |
| 1988 | void ThresholdInformation::SerializeWithCachedSizes( |
| 1989 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1990 | // @@protoc_insertion_point(serialize_start:dmi.ThresholdInformation) |
| 1991 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1992 | (void) cached_has_bits; |
| 1993 | |
| 1994 | // .dmi.ValueType observed_value = 1; |
| 1995 | if (this->has_observed_value()) { |
| 1996 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1997 | 1, HasBitSetters::observed_value(this), output); |
| 1998 | } |
| 1999 | |
| 2000 | // .dmi.Thresholds thresholds = 2; |
| 2001 | if (this->has_thresholds()) { |
| 2002 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2003 | 2, HasBitSetters::thresholds(this), output); |
| 2004 | } |
| 2005 | |
| 2006 | if (_internal_metadata_.have_unknown_fields()) { |
| 2007 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2008 | _internal_metadata_.unknown_fields(), output); |
| 2009 | } |
| 2010 | // @@protoc_insertion_point(serialize_end:dmi.ThresholdInformation) |
| 2011 | } |
| 2012 | |
| 2013 | ::google::protobuf::uint8* ThresholdInformation::InternalSerializeWithCachedSizesToArray( |
| 2014 | ::google::protobuf::uint8* target) const { |
| 2015 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ThresholdInformation) |
| 2016 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2017 | (void) cached_has_bits; |
| 2018 | |
| 2019 | // .dmi.ValueType observed_value = 1; |
| 2020 | if (this->has_observed_value()) { |
| 2021 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2022 | InternalWriteMessageToArray( |
| 2023 | 1, HasBitSetters::observed_value(this), target); |
| 2024 | } |
| 2025 | |
| 2026 | // .dmi.Thresholds thresholds = 2; |
| 2027 | if (this->has_thresholds()) { |
| 2028 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2029 | InternalWriteMessageToArray( |
| 2030 | 2, HasBitSetters::thresholds(this), target); |
| 2031 | } |
| 2032 | |
| 2033 | if (_internal_metadata_.have_unknown_fields()) { |
| 2034 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2035 | _internal_metadata_.unknown_fields(), target); |
| 2036 | } |
| 2037 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ThresholdInformation) |
| 2038 | return target; |
| 2039 | } |
| 2040 | |
| 2041 | size_t ThresholdInformation::ByteSizeLong() const { |
| 2042 | // @@protoc_insertion_point(message_byte_size_start:dmi.ThresholdInformation) |
| 2043 | size_t total_size = 0; |
| 2044 | |
| 2045 | if (_internal_metadata_.have_unknown_fields()) { |
| 2046 | total_size += |
| 2047 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2048 | _internal_metadata_.unknown_fields()); |
| 2049 | } |
| 2050 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2051 | // Prevent compiler warnings about cached_has_bits being unused |
| 2052 | (void) cached_has_bits; |
| 2053 | |
| 2054 | // .dmi.ValueType observed_value = 1; |
| 2055 | if (this->has_observed_value()) { |
| 2056 | total_size += 1 + |
| 2057 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2058 | *observed_value_); |
| 2059 | } |
| 2060 | |
| 2061 | // .dmi.Thresholds thresholds = 2; |
| 2062 | if (this->has_thresholds()) { |
| 2063 | total_size += 1 + |
| 2064 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2065 | *thresholds_); |
| 2066 | } |
| 2067 | |
| 2068 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2069 | SetCachedSize(cached_size); |
| 2070 | return total_size; |
| 2071 | } |
| 2072 | |
| 2073 | void ThresholdInformation::MergeFrom(const ::google::protobuf::Message& from) { |
| 2074 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ThresholdInformation) |
| 2075 | GOOGLE_DCHECK_NE(&from, this); |
| 2076 | const ThresholdInformation* source = |
| 2077 | ::google::protobuf::DynamicCastToGenerated<ThresholdInformation>( |
| 2078 | &from); |
| 2079 | if (source == nullptr) { |
| 2080 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ThresholdInformation) |
| 2081 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2082 | } else { |
| 2083 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ThresholdInformation) |
| 2084 | MergeFrom(*source); |
| 2085 | } |
| 2086 | } |
| 2087 | |
| 2088 | void ThresholdInformation::MergeFrom(const ThresholdInformation& from) { |
| 2089 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ThresholdInformation) |
| 2090 | GOOGLE_DCHECK_NE(&from, this); |
| 2091 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2092 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2093 | (void) cached_has_bits; |
| 2094 | |
| 2095 | if (from.has_observed_value()) { |
| 2096 | mutable_observed_value()->::dmi::ValueType::MergeFrom(from.observed_value()); |
| 2097 | } |
| 2098 | if (from.has_thresholds()) { |
| 2099 | mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds()); |
| 2100 | } |
| 2101 | } |
| 2102 | |
| 2103 | void ThresholdInformation::CopyFrom(const ::google::protobuf::Message& from) { |
| 2104 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ThresholdInformation) |
| 2105 | if (&from == this) return; |
| 2106 | Clear(); |
| 2107 | MergeFrom(from); |
| 2108 | } |
| 2109 | |
| 2110 | void ThresholdInformation::CopyFrom(const ThresholdInformation& from) { |
| 2111 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ThresholdInformation) |
| 2112 | if (&from == this) return; |
| 2113 | Clear(); |
| 2114 | MergeFrom(from); |
| 2115 | } |
| 2116 | |
| 2117 | bool ThresholdInformation::IsInitialized() const { |
| 2118 | return true; |
| 2119 | } |
| 2120 | |
| 2121 | void ThresholdInformation::Swap(ThresholdInformation* other) { |
| 2122 | if (other == this) return; |
| 2123 | InternalSwap(other); |
| 2124 | } |
| 2125 | void ThresholdInformation::InternalSwap(ThresholdInformation* other) { |
| 2126 | using std::swap; |
| 2127 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2128 | swap(observed_value_, other->observed_value_); |
| 2129 | swap(thresholds_, other->thresholds_); |
| 2130 | } |
| 2131 | |
| 2132 | ::google::protobuf::Metadata ThresholdInformation::GetMetadata() const { |
| 2133 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2134 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2135 | } |
| 2136 | |
| 2137 | |
| 2138 | // =================================================================== |
| 2139 | |
| 2140 | void EventCfg::InitAsDefaultInstance() { |
| 2141 | ::dmi::_EventCfg_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>( |
| 2142 | ::dmi::Thresholds::internal_default_instance()); |
| 2143 | } |
| 2144 | class EventCfg::HasBitSetters { |
| 2145 | public: |
| 2146 | static const ::dmi::Thresholds& thresholds(const EventCfg* msg); |
| 2147 | }; |
| 2148 | |
| 2149 | const ::dmi::Thresholds& |
| 2150 | EventCfg::HasBitSetters::thresholds(const EventCfg* msg) { |
| 2151 | return *msg->thresholds_; |
| 2152 | } |
| 2153 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2154 | const int EventCfg::kEventIdFieldNumber; |
| 2155 | const int EventCfg::kIsConfiguredFieldNumber; |
| 2156 | const int EventCfg::kThresholdsFieldNumber; |
| 2157 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2158 | |
| 2159 | EventCfg::EventCfg() |
| 2160 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2161 | SharedCtor(); |
| 2162 | // @@protoc_insertion_point(constructor:dmi.EventCfg) |
| 2163 | } |
| 2164 | EventCfg::EventCfg(const EventCfg& from) |
| 2165 | : ::google::protobuf::Message(), |
| 2166 | _internal_metadata_(nullptr) { |
| 2167 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2168 | if (from.has_thresholds()) { |
| 2169 | thresholds_ = new ::dmi::Thresholds(*from.thresholds_); |
| 2170 | } else { |
| 2171 | thresholds_ = nullptr; |
| 2172 | } |
| 2173 | ::memcpy(&event_id_, &from.event_id_, |
| 2174 | static_cast<size_t>(reinterpret_cast<char*>(&is_configured_) - |
| 2175 | reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_)); |
| 2176 | // @@protoc_insertion_point(copy_constructor:dmi.EventCfg) |
| 2177 | } |
| 2178 | |
| 2179 | void EventCfg::SharedCtor() { |
| 2180 | ::google::protobuf::internal::InitSCC( |
| 2181 | &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2182 | ::memset(&thresholds_, 0, static_cast<size_t>( |
| 2183 | reinterpret_cast<char*>(&is_configured_) - |
| 2184 | reinterpret_cast<char*>(&thresholds_)) + sizeof(is_configured_)); |
| 2185 | } |
| 2186 | |
| 2187 | EventCfg::~EventCfg() { |
| 2188 | // @@protoc_insertion_point(destructor:dmi.EventCfg) |
| 2189 | SharedDtor(); |
| 2190 | } |
| 2191 | |
| 2192 | void EventCfg::SharedDtor() { |
| 2193 | if (this != internal_default_instance()) delete thresholds_; |
| 2194 | } |
| 2195 | |
| 2196 | void EventCfg::SetCachedSize(int size) const { |
| 2197 | _cached_size_.Set(size); |
| 2198 | } |
| 2199 | const EventCfg& EventCfg::default_instance() { |
| 2200 | ::google::protobuf::internal::InitSCC(&::scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2201 | return *internal_default_instance(); |
| 2202 | } |
| 2203 | |
| 2204 | |
| 2205 | void EventCfg::Clear() { |
| 2206 | // @@protoc_insertion_point(message_clear_start:dmi.EventCfg) |
| 2207 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2208 | // Prevent compiler warnings about cached_has_bits being unused |
| 2209 | (void) cached_has_bits; |
| 2210 | |
| 2211 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 2212 | delete thresholds_; |
| 2213 | } |
| 2214 | thresholds_ = nullptr; |
| 2215 | ::memset(&event_id_, 0, static_cast<size_t>( |
| 2216 | reinterpret_cast<char*>(&is_configured_) - |
| 2217 | reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_)); |
| 2218 | _internal_metadata_.Clear(); |
| 2219 | } |
| 2220 | |
| 2221 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2222 | const char* EventCfg::_InternalParse(const char* begin, const char* end, void* object, |
| 2223 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2224 | auto msg = static_cast<EventCfg*>(object); |
| 2225 | ::google::protobuf::int32 size; (void)size; |
| 2226 | int depth; (void)depth; |
| 2227 | ::google::protobuf::uint32 tag; |
| 2228 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2229 | auto ptr = begin; |
| 2230 | while (ptr < end) { |
| 2231 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2232 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2233 | switch (tag >> 3) { |
| 2234 | // .dmi.EventIds event_id = 1; |
| 2235 | case 1: { |
| 2236 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2237 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2238 | msg->set_event_id(static_cast<::dmi::EventIds>(val)); |
| 2239 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2240 | break; |
| 2241 | } |
| 2242 | // bool is_configured = 2; |
| 2243 | case 2: { |
| 2244 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2245 | msg->set_is_configured(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2246 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2247 | break; |
| 2248 | } |
| 2249 | // .dmi.Thresholds thresholds = 3; |
| 2250 | case 3: { |
| 2251 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2252 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2253 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2254 | parser_till_end = ::dmi::Thresholds::_InternalParse; |
| 2255 | object = msg->mutable_thresholds(); |
| 2256 | if (size > end - ptr) goto len_delim_till_end; |
| 2257 | ptr += size; |
| 2258 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2259 | {parser_till_end, object}, ptr - size, ptr)); |
| 2260 | break; |
| 2261 | } |
| 2262 | default: { |
| 2263 | handle_unusual: |
| 2264 | if ((tag & 7) == 4 || tag == 0) { |
| 2265 | ctx->EndGroup(tag); |
| 2266 | return ptr; |
| 2267 | } |
| 2268 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2269 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2270 | ptr = res.first; |
| 2271 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2272 | if (res.second) return ptr; |
| 2273 | } |
| 2274 | } // switch |
| 2275 | } // while |
| 2276 | return ptr; |
| 2277 | len_delim_till_end: |
| 2278 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2279 | {parser_till_end, object}, size); |
| 2280 | } |
| 2281 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2282 | bool EventCfg::MergePartialFromCodedStream( |
| 2283 | ::google::protobuf::io::CodedInputStream* input) { |
| 2284 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2285 | ::google::protobuf::uint32 tag; |
| 2286 | // @@protoc_insertion_point(parse_start:dmi.EventCfg) |
| 2287 | for (;;) { |
| 2288 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2289 | tag = p.first; |
| 2290 | if (!p.second) goto handle_unusual; |
| 2291 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2292 | // .dmi.EventIds event_id = 1; |
| 2293 | case 1: { |
| 2294 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2295 | int value = 0; |
| 2296 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2297 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2298 | input, &value))); |
| 2299 | set_event_id(static_cast< ::dmi::EventIds >(value)); |
| 2300 | } else { |
| 2301 | goto handle_unusual; |
| 2302 | } |
| 2303 | break; |
| 2304 | } |
| 2305 | |
| 2306 | // bool is_configured = 2; |
| 2307 | case 2: { |
| 2308 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2309 | |
| 2310 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2311 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 2312 | input, &is_configured_))); |
| 2313 | } else { |
| 2314 | goto handle_unusual; |
| 2315 | } |
| 2316 | break; |
| 2317 | } |
| 2318 | |
| 2319 | // .dmi.Thresholds thresholds = 3; |
| 2320 | case 3: { |
| 2321 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2322 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2323 | input, mutable_thresholds())); |
| 2324 | } else { |
| 2325 | goto handle_unusual; |
| 2326 | } |
| 2327 | break; |
| 2328 | } |
| 2329 | |
| 2330 | default: { |
| 2331 | handle_unusual: |
| 2332 | if (tag == 0) { |
| 2333 | goto success; |
| 2334 | } |
| 2335 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2336 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2337 | break; |
| 2338 | } |
| 2339 | } |
| 2340 | } |
| 2341 | success: |
| 2342 | // @@protoc_insertion_point(parse_success:dmi.EventCfg) |
| 2343 | return true; |
| 2344 | failure: |
| 2345 | // @@protoc_insertion_point(parse_failure:dmi.EventCfg) |
| 2346 | return false; |
| 2347 | #undef DO_ |
| 2348 | } |
| 2349 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2350 | |
| 2351 | void EventCfg::SerializeWithCachedSizes( |
| 2352 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2353 | // @@protoc_insertion_point(serialize_start:dmi.EventCfg) |
| 2354 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2355 | (void) cached_has_bits; |
| 2356 | |
| 2357 | // .dmi.EventIds event_id = 1; |
| 2358 | if (this->event_id() != 0) { |
| 2359 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2360 | 1, this->event_id(), output); |
| 2361 | } |
| 2362 | |
| 2363 | // bool is_configured = 2; |
| 2364 | if (this->is_configured() != 0) { |
| 2365 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_configured(), output); |
| 2366 | } |
| 2367 | |
| 2368 | // .dmi.Thresholds thresholds = 3; |
| 2369 | if (this->has_thresholds()) { |
| 2370 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2371 | 3, HasBitSetters::thresholds(this), output); |
| 2372 | } |
| 2373 | |
| 2374 | if (_internal_metadata_.have_unknown_fields()) { |
| 2375 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2376 | _internal_metadata_.unknown_fields(), output); |
| 2377 | } |
| 2378 | // @@protoc_insertion_point(serialize_end:dmi.EventCfg) |
| 2379 | } |
| 2380 | |
| 2381 | ::google::protobuf::uint8* EventCfg::InternalSerializeWithCachedSizesToArray( |
| 2382 | ::google::protobuf::uint8* target) const { |
| 2383 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventCfg) |
| 2384 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2385 | (void) cached_has_bits; |
| 2386 | |
| 2387 | // .dmi.EventIds event_id = 1; |
| 2388 | if (this->event_id() != 0) { |
| 2389 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2390 | 1, this->event_id(), target); |
| 2391 | } |
| 2392 | |
| 2393 | // bool is_configured = 2; |
| 2394 | if (this->is_configured() != 0) { |
| 2395 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_configured(), target); |
| 2396 | } |
| 2397 | |
| 2398 | // .dmi.Thresholds thresholds = 3; |
| 2399 | if (this->has_thresholds()) { |
| 2400 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2401 | InternalWriteMessageToArray( |
| 2402 | 3, HasBitSetters::thresholds(this), target); |
| 2403 | } |
| 2404 | |
| 2405 | if (_internal_metadata_.have_unknown_fields()) { |
| 2406 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2407 | _internal_metadata_.unknown_fields(), target); |
| 2408 | } |
| 2409 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventCfg) |
| 2410 | return target; |
| 2411 | } |
| 2412 | |
| 2413 | size_t EventCfg::ByteSizeLong() const { |
| 2414 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventCfg) |
| 2415 | size_t total_size = 0; |
| 2416 | |
| 2417 | if (_internal_metadata_.have_unknown_fields()) { |
| 2418 | total_size += |
| 2419 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2420 | _internal_metadata_.unknown_fields()); |
| 2421 | } |
| 2422 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2423 | // Prevent compiler warnings about cached_has_bits being unused |
| 2424 | (void) cached_has_bits; |
| 2425 | |
| 2426 | // .dmi.Thresholds thresholds = 3; |
| 2427 | if (this->has_thresholds()) { |
| 2428 | total_size += 1 + |
| 2429 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2430 | *thresholds_); |
| 2431 | } |
| 2432 | |
| 2433 | // .dmi.EventIds event_id = 1; |
| 2434 | if (this->event_id() != 0) { |
| 2435 | total_size += 1 + |
| 2436 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id()); |
| 2437 | } |
| 2438 | |
| 2439 | // bool is_configured = 2; |
| 2440 | if (this->is_configured() != 0) { |
| 2441 | total_size += 1 + 1; |
| 2442 | } |
| 2443 | |
| 2444 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2445 | SetCachedSize(cached_size); |
| 2446 | return total_size; |
| 2447 | } |
| 2448 | |
| 2449 | void EventCfg::MergeFrom(const ::google::protobuf::Message& from) { |
| 2450 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventCfg) |
| 2451 | GOOGLE_DCHECK_NE(&from, this); |
| 2452 | const EventCfg* source = |
| 2453 | ::google::protobuf::DynamicCastToGenerated<EventCfg>( |
| 2454 | &from); |
| 2455 | if (source == nullptr) { |
| 2456 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventCfg) |
| 2457 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2458 | } else { |
| 2459 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventCfg) |
| 2460 | MergeFrom(*source); |
| 2461 | } |
| 2462 | } |
| 2463 | |
| 2464 | void EventCfg::MergeFrom(const EventCfg& from) { |
| 2465 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventCfg) |
| 2466 | GOOGLE_DCHECK_NE(&from, this); |
| 2467 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2468 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2469 | (void) cached_has_bits; |
| 2470 | |
| 2471 | if (from.has_thresholds()) { |
| 2472 | mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds()); |
| 2473 | } |
| 2474 | if (from.event_id() != 0) { |
| 2475 | set_event_id(from.event_id()); |
| 2476 | } |
| 2477 | if (from.is_configured() != 0) { |
| 2478 | set_is_configured(from.is_configured()); |
| 2479 | } |
| 2480 | } |
| 2481 | |
| 2482 | void EventCfg::CopyFrom(const ::google::protobuf::Message& from) { |
| 2483 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventCfg) |
| 2484 | if (&from == this) return; |
| 2485 | Clear(); |
| 2486 | MergeFrom(from); |
| 2487 | } |
| 2488 | |
| 2489 | void EventCfg::CopyFrom(const EventCfg& from) { |
| 2490 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventCfg) |
| 2491 | if (&from == this) return; |
| 2492 | Clear(); |
| 2493 | MergeFrom(from); |
| 2494 | } |
| 2495 | |
| 2496 | bool EventCfg::IsInitialized() const { |
| 2497 | return true; |
| 2498 | } |
| 2499 | |
| 2500 | void EventCfg::Swap(EventCfg* other) { |
| 2501 | if (other == this) return; |
| 2502 | InternalSwap(other); |
| 2503 | } |
| 2504 | void EventCfg::InternalSwap(EventCfg* other) { |
| 2505 | using std::swap; |
| 2506 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2507 | swap(thresholds_, other->thresholds_); |
| 2508 | swap(event_id_, other->event_id_); |
| 2509 | swap(is_configured_, other->is_configured_); |
| 2510 | } |
| 2511 | |
| 2512 | ::google::protobuf::Metadata EventCfg::GetMetadata() const { |
| 2513 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2514 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2515 | } |
| 2516 | |
| 2517 | |
| 2518 | // =================================================================== |
| 2519 | |
| 2520 | void EventsCfg::InitAsDefaultInstance() { |
| 2521 | } |
| 2522 | class EventsCfg::HasBitSetters { |
| 2523 | public: |
| 2524 | }; |
| 2525 | |
| 2526 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2527 | const int EventsCfg::kItemsFieldNumber; |
| 2528 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2529 | |
| 2530 | EventsCfg::EventsCfg() |
| 2531 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2532 | SharedCtor(); |
| 2533 | // @@protoc_insertion_point(constructor:dmi.EventsCfg) |
| 2534 | } |
| 2535 | EventsCfg::EventsCfg(const EventsCfg& from) |
| 2536 | : ::google::protobuf::Message(), |
| 2537 | _internal_metadata_(nullptr), |
| 2538 | items_(from.items_) { |
| 2539 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2540 | // @@protoc_insertion_point(copy_constructor:dmi.EventsCfg) |
| 2541 | } |
| 2542 | |
| 2543 | void EventsCfg::SharedCtor() { |
| 2544 | ::google::protobuf::internal::InitSCC( |
| 2545 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2546 | } |
| 2547 | |
| 2548 | EventsCfg::~EventsCfg() { |
| 2549 | // @@protoc_insertion_point(destructor:dmi.EventsCfg) |
| 2550 | SharedDtor(); |
| 2551 | } |
| 2552 | |
| 2553 | void EventsCfg::SharedDtor() { |
| 2554 | } |
| 2555 | |
| 2556 | void EventsCfg::SetCachedSize(int size) const { |
| 2557 | _cached_size_.Set(size); |
| 2558 | } |
| 2559 | const EventsCfg& EventsCfg::default_instance() { |
| 2560 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2561 | return *internal_default_instance(); |
| 2562 | } |
| 2563 | |
| 2564 | |
| 2565 | void EventsCfg::Clear() { |
| 2566 | // @@protoc_insertion_point(message_clear_start:dmi.EventsCfg) |
| 2567 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2568 | // Prevent compiler warnings about cached_has_bits being unused |
| 2569 | (void) cached_has_bits; |
| 2570 | |
| 2571 | items_.Clear(); |
| 2572 | _internal_metadata_.Clear(); |
| 2573 | } |
| 2574 | |
| 2575 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2576 | const char* EventsCfg::_InternalParse(const char* begin, const char* end, void* object, |
| 2577 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2578 | auto msg = static_cast<EventsCfg*>(object); |
| 2579 | ::google::protobuf::int32 size; (void)size; |
| 2580 | int depth; (void)depth; |
| 2581 | ::google::protobuf::uint32 tag; |
| 2582 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2583 | auto ptr = begin; |
| 2584 | while (ptr < end) { |
| 2585 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2586 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2587 | switch (tag >> 3) { |
| 2588 | // repeated .dmi.EventCfg items = 1; |
| 2589 | case 1: { |
| 2590 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2591 | do { |
| 2592 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2593 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2594 | parser_till_end = ::dmi::EventCfg::_InternalParse; |
| 2595 | object = msg->add_items(); |
| 2596 | if (size > end - ptr) goto len_delim_till_end; |
| 2597 | ptr += size; |
| 2598 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2599 | {parser_till_end, object}, ptr - size, ptr)); |
| 2600 | if (ptr >= end) break; |
| 2601 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); |
| 2602 | break; |
| 2603 | } |
| 2604 | default: { |
| 2605 | handle_unusual: |
| 2606 | if ((tag & 7) == 4 || tag == 0) { |
| 2607 | ctx->EndGroup(tag); |
| 2608 | return ptr; |
| 2609 | } |
| 2610 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2611 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2612 | ptr = res.first; |
| 2613 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2614 | if (res.second) return ptr; |
| 2615 | } |
| 2616 | } // switch |
| 2617 | } // while |
| 2618 | return ptr; |
| 2619 | len_delim_till_end: |
| 2620 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2621 | {parser_till_end, object}, size); |
| 2622 | } |
| 2623 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2624 | bool EventsCfg::MergePartialFromCodedStream( |
| 2625 | ::google::protobuf::io::CodedInputStream* input) { |
| 2626 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2627 | ::google::protobuf::uint32 tag; |
| 2628 | // @@protoc_insertion_point(parse_start:dmi.EventsCfg) |
| 2629 | for (;;) { |
| 2630 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2631 | tag = p.first; |
| 2632 | if (!p.second) goto handle_unusual; |
| 2633 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2634 | // repeated .dmi.EventCfg items = 1; |
| 2635 | case 1: { |
| 2636 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2637 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2638 | input, add_items())); |
| 2639 | } else { |
| 2640 | goto handle_unusual; |
| 2641 | } |
| 2642 | break; |
| 2643 | } |
| 2644 | |
| 2645 | default: { |
| 2646 | handle_unusual: |
| 2647 | if (tag == 0) { |
| 2648 | goto success; |
| 2649 | } |
| 2650 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2651 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2652 | break; |
| 2653 | } |
| 2654 | } |
| 2655 | } |
| 2656 | success: |
| 2657 | // @@protoc_insertion_point(parse_success:dmi.EventsCfg) |
| 2658 | return true; |
| 2659 | failure: |
| 2660 | // @@protoc_insertion_point(parse_failure:dmi.EventsCfg) |
| 2661 | return false; |
| 2662 | #undef DO_ |
| 2663 | } |
| 2664 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2665 | |
| 2666 | void EventsCfg::SerializeWithCachedSizes( |
| 2667 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2668 | // @@protoc_insertion_point(serialize_start:dmi.EventsCfg) |
| 2669 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2670 | (void) cached_has_bits; |
| 2671 | |
| 2672 | // repeated .dmi.EventCfg items = 1; |
| 2673 | for (unsigned int i = 0, |
| 2674 | n = static_cast<unsigned int>(this->items_size()); i < n; i++) { |
| 2675 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2676 | 1, |
| 2677 | this->items(static_cast<int>(i)), |
| 2678 | output); |
| 2679 | } |
| 2680 | |
| 2681 | if (_internal_metadata_.have_unknown_fields()) { |
| 2682 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2683 | _internal_metadata_.unknown_fields(), output); |
| 2684 | } |
| 2685 | // @@protoc_insertion_point(serialize_end:dmi.EventsCfg) |
| 2686 | } |
| 2687 | |
| 2688 | ::google::protobuf::uint8* EventsCfg::InternalSerializeWithCachedSizesToArray( |
| 2689 | ::google::protobuf::uint8* target) const { |
| 2690 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsCfg) |
| 2691 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2692 | (void) cached_has_bits; |
| 2693 | |
| 2694 | // repeated .dmi.EventCfg items = 1; |
| 2695 | for (unsigned int i = 0, |
| 2696 | n = static_cast<unsigned int>(this->items_size()); i < n; i++) { |
| 2697 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2698 | InternalWriteMessageToArray( |
| 2699 | 1, this->items(static_cast<int>(i)), target); |
| 2700 | } |
| 2701 | |
| 2702 | if (_internal_metadata_.have_unknown_fields()) { |
| 2703 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2704 | _internal_metadata_.unknown_fields(), target); |
| 2705 | } |
| 2706 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsCfg) |
| 2707 | return target; |
| 2708 | } |
| 2709 | |
| 2710 | size_t EventsCfg::ByteSizeLong() const { |
| 2711 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsCfg) |
| 2712 | size_t total_size = 0; |
| 2713 | |
| 2714 | if (_internal_metadata_.have_unknown_fields()) { |
| 2715 | total_size += |
| 2716 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2717 | _internal_metadata_.unknown_fields()); |
| 2718 | } |
| 2719 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2720 | // Prevent compiler warnings about cached_has_bits being unused |
| 2721 | (void) cached_has_bits; |
| 2722 | |
| 2723 | // repeated .dmi.EventCfg items = 1; |
| 2724 | { |
| 2725 | unsigned int count = static_cast<unsigned int>(this->items_size()); |
| 2726 | total_size += 1UL * count; |
| 2727 | for (unsigned int i = 0; i < count; i++) { |
| 2728 | total_size += |
| 2729 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2730 | this->items(static_cast<int>(i))); |
| 2731 | } |
| 2732 | } |
| 2733 | |
| 2734 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2735 | SetCachedSize(cached_size); |
| 2736 | return total_size; |
| 2737 | } |
| 2738 | |
| 2739 | void EventsCfg::MergeFrom(const ::google::protobuf::Message& from) { |
| 2740 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsCfg) |
| 2741 | GOOGLE_DCHECK_NE(&from, this); |
| 2742 | const EventsCfg* source = |
| 2743 | ::google::protobuf::DynamicCastToGenerated<EventsCfg>( |
| 2744 | &from); |
| 2745 | if (source == nullptr) { |
| 2746 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsCfg) |
| 2747 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2748 | } else { |
| 2749 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsCfg) |
| 2750 | MergeFrom(*source); |
| 2751 | } |
| 2752 | } |
| 2753 | |
| 2754 | void EventsCfg::MergeFrom(const EventsCfg& from) { |
| 2755 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsCfg) |
| 2756 | GOOGLE_DCHECK_NE(&from, this); |
| 2757 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2758 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2759 | (void) cached_has_bits; |
| 2760 | |
| 2761 | items_.MergeFrom(from.items_); |
| 2762 | } |
| 2763 | |
| 2764 | void EventsCfg::CopyFrom(const ::google::protobuf::Message& from) { |
| 2765 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsCfg) |
| 2766 | if (&from == this) return; |
| 2767 | Clear(); |
| 2768 | MergeFrom(from); |
| 2769 | } |
| 2770 | |
| 2771 | void EventsCfg::CopyFrom(const EventsCfg& from) { |
| 2772 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsCfg) |
| 2773 | if (&from == this) return; |
| 2774 | Clear(); |
| 2775 | MergeFrom(from); |
| 2776 | } |
| 2777 | |
| 2778 | bool EventsCfg::IsInitialized() const { |
| 2779 | return true; |
| 2780 | } |
| 2781 | |
| 2782 | void EventsCfg::Swap(EventsCfg* other) { |
| 2783 | if (other == this) return; |
| 2784 | InternalSwap(other); |
| 2785 | } |
| 2786 | void EventsCfg::InternalSwap(EventsCfg* other) { |
| 2787 | using std::swap; |
| 2788 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2789 | CastToBase(&items_)->InternalSwap(CastToBase(&other->items_)); |
| 2790 | } |
| 2791 | |
| 2792 | ::google::protobuf::Metadata EventsCfg::GetMetadata() const { |
| 2793 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2794 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2795 | } |
| 2796 | |
| 2797 | |
| 2798 | // =================================================================== |
| 2799 | |
| 2800 | void ListEventsResponse::InitAsDefaultInstance() { |
| 2801 | ::dmi::_ListEventsResponse_default_instance_._instance.get_mutable()->events_ = const_cast< ::dmi::EventsCfg*>( |
| 2802 | ::dmi::EventsCfg::internal_default_instance()); |
| 2803 | } |
| 2804 | class ListEventsResponse::HasBitSetters { |
| 2805 | public: |
| 2806 | static const ::dmi::EventsCfg& events(const ListEventsResponse* msg); |
| 2807 | }; |
| 2808 | |
| 2809 | const ::dmi::EventsCfg& |
| 2810 | ListEventsResponse::HasBitSetters::events(const ListEventsResponse* msg) { |
| 2811 | return *msg->events_; |
| 2812 | } |
| 2813 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2814 | const int ListEventsResponse::kStatusFieldNumber; |
| 2815 | const int ListEventsResponse::kReasonFieldNumber; |
| 2816 | const int ListEventsResponse::kEventsFieldNumber; |
| 2817 | const int ListEventsResponse::kReasonDetailFieldNumber; |
| 2818 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2819 | |
| 2820 | ListEventsResponse::ListEventsResponse() |
| 2821 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2822 | SharedCtor(); |
| 2823 | // @@protoc_insertion_point(constructor:dmi.ListEventsResponse) |
| 2824 | } |
| 2825 | ListEventsResponse::ListEventsResponse(const ListEventsResponse& from) |
| 2826 | : ::google::protobuf::Message(), |
| 2827 | _internal_metadata_(nullptr) { |
| 2828 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2829 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2830 | if (from.reason_detail().size() > 0) { |
| 2831 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2832 | } |
| 2833 | if (from.has_events()) { |
| 2834 | events_ = new ::dmi::EventsCfg(*from.events_); |
| 2835 | } else { |
| 2836 | events_ = nullptr; |
| 2837 | } |
| 2838 | ::memcpy(&status_, &from.status_, |
| 2839 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2840 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2841 | // @@protoc_insertion_point(copy_constructor:dmi.ListEventsResponse) |
| 2842 | } |
| 2843 | |
| 2844 | void ListEventsResponse::SharedCtor() { |
| 2845 | ::google::protobuf::internal::InitSCC( |
| 2846 | &scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2847 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2848 | ::memset(&events_, 0, static_cast<size_t>( |
| 2849 | reinterpret_cast<char*>(&reason_) - |
| 2850 | reinterpret_cast<char*>(&events_)) + sizeof(reason_)); |
| 2851 | } |
| 2852 | |
| 2853 | ListEventsResponse::~ListEventsResponse() { |
| 2854 | // @@protoc_insertion_point(destructor:dmi.ListEventsResponse) |
| 2855 | SharedDtor(); |
| 2856 | } |
| 2857 | |
| 2858 | void ListEventsResponse::SharedDtor() { |
| 2859 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2860 | if (this != internal_default_instance()) delete events_; |
| 2861 | } |
| 2862 | |
| 2863 | void ListEventsResponse::SetCachedSize(int size) const { |
| 2864 | _cached_size_.Set(size); |
| 2865 | } |
| 2866 | const ListEventsResponse& ListEventsResponse::default_instance() { |
| 2867 | ::google::protobuf::internal::InitSCC(&::scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2868 | return *internal_default_instance(); |
| 2869 | } |
| 2870 | |
| 2871 | |
| 2872 | void ListEventsResponse::Clear() { |
| 2873 | // @@protoc_insertion_point(message_clear_start:dmi.ListEventsResponse) |
| 2874 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2875 | // Prevent compiler warnings about cached_has_bits being unused |
| 2876 | (void) cached_has_bits; |
| 2877 | |
| 2878 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2879 | if (GetArenaNoVirtual() == nullptr && events_ != nullptr) { |
| 2880 | delete events_; |
| 2881 | } |
| 2882 | events_ = nullptr; |
| 2883 | ::memset(&status_, 0, static_cast<size_t>( |
| 2884 | reinterpret_cast<char*>(&reason_) - |
| 2885 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2886 | _internal_metadata_.Clear(); |
| 2887 | } |
| 2888 | |
| 2889 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2890 | const char* ListEventsResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2891 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2892 | auto msg = static_cast<ListEventsResponse*>(object); |
| 2893 | ::google::protobuf::int32 size; (void)size; |
| 2894 | int depth; (void)depth; |
| 2895 | ::google::protobuf::uint32 tag; |
| 2896 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2897 | auto ptr = begin; |
| 2898 | while (ptr < end) { |
| 2899 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2900 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2901 | switch (tag >> 3) { |
| 2902 | // .dmi.Status status = 1; |
| 2903 | case 1: { |
| 2904 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2905 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2906 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2907 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2908 | break; |
| 2909 | } |
| 2910 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 2911 | case 2: { |
| 2912 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2913 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2914 | msg->set_reason(static_cast<::dmi::ListEventsResponse_Reason>(val)); |
| 2915 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2916 | break; |
| 2917 | } |
| 2918 | // .dmi.EventsCfg events = 3; |
| 2919 | case 3: { |
| 2920 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2921 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2922 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2923 | parser_till_end = ::dmi::EventsCfg::_InternalParse; |
| 2924 | object = msg->mutable_events(); |
| 2925 | if (size > end - ptr) goto len_delim_till_end; |
| 2926 | ptr += size; |
| 2927 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2928 | {parser_till_end, object}, ptr - size, ptr)); |
| 2929 | break; |
| 2930 | } |
| 2931 | // string reason_detail = 4; |
| 2932 | case 4: { |
| 2933 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2934 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2935 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2936 | ctx->extra_parse_data().SetFieldName("dmi.ListEventsResponse.reason_detail"); |
| 2937 | object = msg->mutable_reason_detail(); |
| 2938 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2939 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2940 | goto string_till_end; |
| 2941 | } |
| 2942 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2943 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2944 | ptr += size; |
| 2945 | break; |
| 2946 | } |
| 2947 | default: { |
| 2948 | handle_unusual: |
| 2949 | if ((tag & 7) == 4 || tag == 0) { |
| 2950 | ctx->EndGroup(tag); |
| 2951 | return ptr; |
| 2952 | } |
| 2953 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2954 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2955 | ptr = res.first; |
| 2956 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2957 | if (res.second) return ptr; |
| 2958 | } |
| 2959 | } // switch |
| 2960 | } // while |
| 2961 | return ptr; |
| 2962 | string_till_end: |
| 2963 | static_cast<::std::string*>(object)->clear(); |
| 2964 | static_cast<::std::string*>(object)->reserve(size); |
| 2965 | goto len_delim_till_end; |
| 2966 | len_delim_till_end: |
| 2967 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2968 | {parser_till_end, object}, size); |
| 2969 | } |
| 2970 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2971 | bool ListEventsResponse::MergePartialFromCodedStream( |
| 2972 | ::google::protobuf::io::CodedInputStream* input) { |
| 2973 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2974 | ::google::protobuf::uint32 tag; |
| 2975 | // @@protoc_insertion_point(parse_start:dmi.ListEventsResponse) |
| 2976 | for (;;) { |
| 2977 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2978 | tag = p.first; |
| 2979 | if (!p.second) goto handle_unusual; |
| 2980 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2981 | // .dmi.Status status = 1; |
| 2982 | case 1: { |
| 2983 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2984 | int value = 0; |
| 2985 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2986 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2987 | input, &value))); |
| 2988 | set_status(static_cast< ::dmi::Status >(value)); |
| 2989 | } else { |
| 2990 | goto handle_unusual; |
| 2991 | } |
| 2992 | break; |
| 2993 | } |
| 2994 | |
| 2995 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 2996 | case 2: { |
| 2997 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2998 | int value = 0; |
| 2999 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3000 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3001 | input, &value))); |
| 3002 | set_reason(static_cast< ::dmi::ListEventsResponse_Reason >(value)); |
| 3003 | } else { |
| 3004 | goto handle_unusual; |
| 3005 | } |
| 3006 | break; |
| 3007 | } |
| 3008 | |
| 3009 | // .dmi.EventsCfg events = 3; |
| 3010 | case 3: { |
| 3011 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3012 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3013 | input, mutable_events())); |
| 3014 | } else { |
| 3015 | goto handle_unusual; |
| 3016 | } |
| 3017 | break; |
| 3018 | } |
| 3019 | |
| 3020 | // string reason_detail = 4; |
| 3021 | case 4: { |
| 3022 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3023 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3024 | input, this->mutable_reason_detail())); |
| 3025 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3026 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3027 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3028 | "dmi.ListEventsResponse.reason_detail")); |
| 3029 | } else { |
| 3030 | goto handle_unusual; |
| 3031 | } |
| 3032 | break; |
| 3033 | } |
| 3034 | |
| 3035 | default: { |
| 3036 | handle_unusual: |
| 3037 | if (tag == 0) { |
| 3038 | goto success; |
| 3039 | } |
| 3040 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3041 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3042 | break; |
| 3043 | } |
| 3044 | } |
| 3045 | } |
| 3046 | success: |
| 3047 | // @@protoc_insertion_point(parse_success:dmi.ListEventsResponse) |
| 3048 | return true; |
| 3049 | failure: |
| 3050 | // @@protoc_insertion_point(parse_failure:dmi.ListEventsResponse) |
| 3051 | return false; |
| 3052 | #undef DO_ |
| 3053 | } |
| 3054 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3055 | |
| 3056 | void ListEventsResponse::SerializeWithCachedSizes( |
| 3057 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3058 | // @@protoc_insertion_point(serialize_start:dmi.ListEventsResponse) |
| 3059 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3060 | (void) cached_has_bits; |
| 3061 | |
| 3062 | // .dmi.Status status = 1; |
| 3063 | if (this->status() != 0) { |
| 3064 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3065 | 1, this->status(), output); |
| 3066 | } |
| 3067 | |
| 3068 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3069 | if (this->reason() != 0) { |
| 3070 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3071 | 2, this->reason(), output); |
| 3072 | } |
| 3073 | |
| 3074 | // .dmi.EventsCfg events = 3; |
| 3075 | if (this->has_events()) { |
| 3076 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3077 | 3, HasBitSetters::events(this), output); |
| 3078 | } |
| 3079 | |
| 3080 | // string reason_detail = 4; |
| 3081 | if (this->reason_detail().size() > 0) { |
| 3082 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3083 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3084 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3085 | "dmi.ListEventsResponse.reason_detail"); |
| 3086 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3087 | 4, this->reason_detail(), output); |
| 3088 | } |
| 3089 | |
| 3090 | if (_internal_metadata_.have_unknown_fields()) { |
| 3091 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3092 | _internal_metadata_.unknown_fields(), output); |
| 3093 | } |
| 3094 | // @@protoc_insertion_point(serialize_end:dmi.ListEventsResponse) |
| 3095 | } |
| 3096 | |
| 3097 | ::google::protobuf::uint8* ListEventsResponse::InternalSerializeWithCachedSizesToArray( |
| 3098 | ::google::protobuf::uint8* target) const { |
| 3099 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ListEventsResponse) |
| 3100 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3101 | (void) cached_has_bits; |
| 3102 | |
| 3103 | // .dmi.Status status = 1; |
| 3104 | if (this->status() != 0) { |
| 3105 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3106 | 1, this->status(), target); |
| 3107 | } |
| 3108 | |
| 3109 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3110 | if (this->reason() != 0) { |
| 3111 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3112 | 2, this->reason(), target); |
| 3113 | } |
| 3114 | |
| 3115 | // .dmi.EventsCfg events = 3; |
| 3116 | if (this->has_events()) { |
| 3117 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3118 | InternalWriteMessageToArray( |
| 3119 | 3, HasBitSetters::events(this), target); |
| 3120 | } |
| 3121 | |
| 3122 | // string reason_detail = 4; |
| 3123 | if (this->reason_detail().size() > 0) { |
| 3124 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3125 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3126 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3127 | "dmi.ListEventsResponse.reason_detail"); |
| 3128 | target = |
| 3129 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3130 | 4, this->reason_detail(), target); |
| 3131 | } |
| 3132 | |
| 3133 | if (_internal_metadata_.have_unknown_fields()) { |
| 3134 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3135 | _internal_metadata_.unknown_fields(), target); |
| 3136 | } |
| 3137 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ListEventsResponse) |
| 3138 | return target; |
| 3139 | } |
| 3140 | |
| 3141 | size_t ListEventsResponse::ByteSizeLong() const { |
| 3142 | // @@protoc_insertion_point(message_byte_size_start:dmi.ListEventsResponse) |
| 3143 | size_t total_size = 0; |
| 3144 | |
| 3145 | if (_internal_metadata_.have_unknown_fields()) { |
| 3146 | total_size += |
| 3147 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3148 | _internal_metadata_.unknown_fields()); |
| 3149 | } |
| 3150 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3151 | // Prevent compiler warnings about cached_has_bits being unused |
| 3152 | (void) cached_has_bits; |
| 3153 | |
| 3154 | // string reason_detail = 4; |
| 3155 | if (this->reason_detail().size() > 0) { |
| 3156 | total_size += 1 + |
| 3157 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3158 | this->reason_detail()); |
| 3159 | } |
| 3160 | |
| 3161 | // .dmi.EventsCfg events = 3; |
| 3162 | if (this->has_events()) { |
| 3163 | total_size += 1 + |
| 3164 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3165 | *events_); |
| 3166 | } |
| 3167 | |
| 3168 | // .dmi.Status status = 1; |
| 3169 | if (this->status() != 0) { |
| 3170 | total_size += 1 + |
| 3171 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3172 | } |
| 3173 | |
| 3174 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3175 | if (this->reason() != 0) { |
| 3176 | total_size += 1 + |
| 3177 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3178 | } |
| 3179 | |
| 3180 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3181 | SetCachedSize(cached_size); |
| 3182 | return total_size; |
| 3183 | } |
| 3184 | |
| 3185 | void ListEventsResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3186 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ListEventsResponse) |
| 3187 | GOOGLE_DCHECK_NE(&from, this); |
| 3188 | const ListEventsResponse* source = |
| 3189 | ::google::protobuf::DynamicCastToGenerated<ListEventsResponse>( |
| 3190 | &from); |
| 3191 | if (source == nullptr) { |
| 3192 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ListEventsResponse) |
| 3193 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3194 | } else { |
| 3195 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ListEventsResponse) |
| 3196 | MergeFrom(*source); |
| 3197 | } |
| 3198 | } |
| 3199 | |
| 3200 | void ListEventsResponse::MergeFrom(const ListEventsResponse& from) { |
| 3201 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ListEventsResponse) |
| 3202 | GOOGLE_DCHECK_NE(&from, this); |
| 3203 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3204 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3205 | (void) cached_has_bits; |
| 3206 | |
| 3207 | if (from.reason_detail().size() > 0) { |
| 3208 | |
| 3209 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3210 | } |
| 3211 | if (from.has_events()) { |
| 3212 | mutable_events()->::dmi::EventsCfg::MergeFrom(from.events()); |
| 3213 | } |
| 3214 | if (from.status() != 0) { |
| 3215 | set_status(from.status()); |
| 3216 | } |
| 3217 | if (from.reason() != 0) { |
| 3218 | set_reason(from.reason()); |
| 3219 | } |
| 3220 | } |
| 3221 | |
| 3222 | void ListEventsResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3223 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ListEventsResponse) |
| 3224 | if (&from == this) return; |
| 3225 | Clear(); |
| 3226 | MergeFrom(from); |
| 3227 | } |
| 3228 | |
| 3229 | void ListEventsResponse::CopyFrom(const ListEventsResponse& from) { |
| 3230 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ListEventsResponse) |
| 3231 | if (&from == this) return; |
| 3232 | Clear(); |
| 3233 | MergeFrom(from); |
| 3234 | } |
| 3235 | |
| 3236 | bool ListEventsResponse::IsInitialized() const { |
| 3237 | return true; |
| 3238 | } |
| 3239 | |
| 3240 | void ListEventsResponse::Swap(ListEventsResponse* other) { |
| 3241 | if (other == this) return; |
| 3242 | InternalSwap(other); |
| 3243 | } |
| 3244 | void ListEventsResponse::InternalSwap(ListEventsResponse* other) { |
| 3245 | using std::swap; |
| 3246 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3247 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3248 | GetArenaNoVirtual()); |
| 3249 | swap(events_, other->events_); |
| 3250 | swap(status_, other->status_); |
| 3251 | swap(reason_, other->reason_); |
| 3252 | } |
| 3253 | |
| 3254 | ::google::protobuf::Metadata ListEventsResponse::GetMetadata() const { |
| 3255 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 3256 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 3257 | } |
| 3258 | |
| 3259 | |
| 3260 | // =================================================================== |
| 3261 | |
| 3262 | void EventsConfigurationRequest::InitAsDefaultInstance() { |
| 3263 | ::dmi::_EventsConfigurationRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3264 | ::dmi::Uuid::internal_default_instance()); |
| 3265 | ::dmi::_EventsConfigurationRequest_default_instance_.changes_ = const_cast< ::dmi::EventsCfg*>( |
| 3266 | ::dmi::EventsCfg::internal_default_instance()); |
| 3267 | ::dmi::_EventsConfigurationRequest_default_instance_.reset_to_default_ = false; |
| 3268 | } |
| 3269 | class EventsConfigurationRequest::HasBitSetters { |
| 3270 | public: |
| 3271 | static const ::dmi::Uuid& device_uuid(const EventsConfigurationRequest* msg); |
| 3272 | static const ::dmi::EventsCfg& changes(const EventsConfigurationRequest* msg); |
| 3273 | }; |
| 3274 | |
| 3275 | const ::dmi::Uuid& |
| 3276 | EventsConfigurationRequest::HasBitSetters::device_uuid(const EventsConfigurationRequest* msg) { |
| 3277 | return *msg->device_uuid_; |
| 3278 | } |
| 3279 | const ::dmi::EventsCfg& |
| 3280 | EventsConfigurationRequest::HasBitSetters::changes(const EventsConfigurationRequest* msg) { |
| 3281 | return *msg->operation_.changes_; |
| 3282 | } |
| 3283 | void EventsConfigurationRequest::clear_device_uuid() { |
| 3284 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3285 | delete device_uuid_; |
| 3286 | } |
| 3287 | device_uuid_ = nullptr; |
| 3288 | } |
| 3289 | void EventsConfigurationRequest::set_allocated_changes(::dmi::EventsCfg* changes) { |
| 3290 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 3291 | clear_operation(); |
| 3292 | if (changes) { |
| 3293 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 3294 | if (message_arena != submessage_arena) { |
| 3295 | changes = ::google::protobuf::internal::GetOwnedMessage( |
| 3296 | message_arena, changes, submessage_arena); |
| 3297 | } |
| 3298 | set_has_changes(); |
| 3299 | operation_.changes_ = changes; |
| 3300 | } |
| 3301 | // @@protoc_insertion_point(field_set_allocated:dmi.EventsConfigurationRequest.changes) |
| 3302 | } |
| 3303 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3304 | const int EventsConfigurationRequest::kDeviceUuidFieldNumber; |
| 3305 | const int EventsConfigurationRequest::kChangesFieldNumber; |
| 3306 | const int EventsConfigurationRequest::kResetToDefaultFieldNumber; |
| 3307 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3308 | |
| 3309 | EventsConfigurationRequest::EventsConfigurationRequest() |
| 3310 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3311 | SharedCtor(); |
| 3312 | // @@protoc_insertion_point(constructor:dmi.EventsConfigurationRequest) |
| 3313 | } |
| 3314 | EventsConfigurationRequest::EventsConfigurationRequest(const EventsConfigurationRequest& from) |
| 3315 | : ::google::protobuf::Message(), |
| 3316 | _internal_metadata_(nullptr) { |
| 3317 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3318 | if (from.has_device_uuid()) { |
| 3319 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3320 | } else { |
| 3321 | device_uuid_ = nullptr; |
| 3322 | } |
| 3323 | clear_has_operation(); |
| 3324 | switch (from.operation_case()) { |
| 3325 | case kChanges: { |
| 3326 | mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes()); |
| 3327 | break; |
| 3328 | } |
| 3329 | case kResetToDefault: { |
| 3330 | set_reset_to_default(from.reset_to_default()); |
| 3331 | break; |
| 3332 | } |
| 3333 | case OPERATION_NOT_SET: { |
| 3334 | break; |
| 3335 | } |
| 3336 | } |
| 3337 | // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationRequest) |
| 3338 | } |
| 3339 | |
| 3340 | void EventsConfigurationRequest::SharedCtor() { |
| 3341 | ::google::protobuf::internal::InitSCC( |
| 3342 | &scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3343 | device_uuid_ = nullptr; |
| 3344 | clear_has_operation(); |
| 3345 | } |
| 3346 | |
| 3347 | EventsConfigurationRequest::~EventsConfigurationRequest() { |
| 3348 | // @@protoc_insertion_point(destructor:dmi.EventsConfigurationRequest) |
| 3349 | SharedDtor(); |
| 3350 | } |
| 3351 | |
| 3352 | void EventsConfigurationRequest::SharedDtor() { |
| 3353 | if (this != internal_default_instance()) delete device_uuid_; |
| 3354 | if (has_operation()) { |
| 3355 | clear_operation(); |
| 3356 | } |
| 3357 | } |
| 3358 | |
| 3359 | void EventsConfigurationRequest::SetCachedSize(int size) const { |
| 3360 | _cached_size_.Set(size); |
| 3361 | } |
| 3362 | const EventsConfigurationRequest& EventsConfigurationRequest::default_instance() { |
| 3363 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3364 | return *internal_default_instance(); |
| 3365 | } |
| 3366 | |
| 3367 | |
| 3368 | void EventsConfigurationRequest::clear_operation() { |
| 3369 | // @@protoc_insertion_point(one_of_clear_start:dmi.EventsConfigurationRequest) |
| 3370 | switch (operation_case()) { |
| 3371 | case kChanges: { |
| 3372 | delete operation_.changes_; |
| 3373 | break; |
| 3374 | } |
| 3375 | case kResetToDefault: { |
| 3376 | // No need to clear |
| 3377 | break; |
| 3378 | } |
| 3379 | case OPERATION_NOT_SET: { |
| 3380 | break; |
| 3381 | } |
| 3382 | } |
| 3383 | _oneof_case_[0] = OPERATION_NOT_SET; |
| 3384 | } |
| 3385 | |
| 3386 | |
| 3387 | void EventsConfigurationRequest::Clear() { |
| 3388 | // @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationRequest) |
| 3389 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3390 | // Prevent compiler warnings about cached_has_bits being unused |
| 3391 | (void) cached_has_bits; |
| 3392 | |
| 3393 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3394 | delete device_uuid_; |
| 3395 | } |
| 3396 | device_uuid_ = nullptr; |
| 3397 | clear_operation(); |
| 3398 | _internal_metadata_.Clear(); |
| 3399 | } |
| 3400 | |
| 3401 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3402 | const char* EventsConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3403 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3404 | auto msg = static_cast<EventsConfigurationRequest*>(object); |
| 3405 | ::google::protobuf::int32 size; (void)size; |
| 3406 | int depth; (void)depth; |
| 3407 | ::google::protobuf::uint32 tag; |
| 3408 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3409 | auto ptr = begin; |
| 3410 | while (ptr < end) { |
| 3411 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3412 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3413 | switch (tag >> 3) { |
| 3414 | // .dmi.Uuid device_uuid = 1; |
| 3415 | case 1: { |
| 3416 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3417 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3418 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3419 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3420 | object = msg->mutable_device_uuid(); |
| 3421 | if (size > end - ptr) goto len_delim_till_end; |
| 3422 | ptr += size; |
| 3423 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3424 | {parser_till_end, object}, ptr - size, ptr)); |
| 3425 | break; |
| 3426 | } |
| 3427 | // .dmi.EventsCfg changes = 2; |
| 3428 | case 2: { |
| 3429 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3430 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3431 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3432 | parser_till_end = ::dmi::EventsCfg::_InternalParse; |
| 3433 | object = msg->mutable_changes(); |
| 3434 | if (size > end - ptr) goto len_delim_till_end; |
| 3435 | ptr += size; |
| 3436 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3437 | {parser_till_end, object}, ptr - size, ptr)); |
| 3438 | break; |
| 3439 | } |
| 3440 | // bool reset_to_default = 3; |
| 3441 | case 3: { |
| 3442 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 3443 | msg->set_reset_to_default(::google::protobuf::internal::ReadVarint(&ptr)); |
| 3444 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3445 | break; |
| 3446 | } |
| 3447 | default: { |
| 3448 | handle_unusual: |
| 3449 | if ((tag & 7) == 4 || tag == 0) { |
| 3450 | ctx->EndGroup(tag); |
| 3451 | return ptr; |
| 3452 | } |
| 3453 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3454 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3455 | ptr = res.first; |
| 3456 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3457 | if (res.second) return ptr; |
| 3458 | } |
| 3459 | } // switch |
| 3460 | } // while |
| 3461 | return ptr; |
| 3462 | len_delim_till_end: |
| 3463 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3464 | {parser_till_end, object}, size); |
| 3465 | } |
| 3466 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3467 | bool EventsConfigurationRequest::MergePartialFromCodedStream( |
| 3468 | ::google::protobuf::io::CodedInputStream* input) { |
| 3469 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3470 | ::google::protobuf::uint32 tag; |
| 3471 | // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationRequest) |
| 3472 | for (;;) { |
| 3473 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3474 | tag = p.first; |
| 3475 | if (!p.second) goto handle_unusual; |
| 3476 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3477 | // .dmi.Uuid device_uuid = 1; |
| 3478 | case 1: { |
| 3479 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3480 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3481 | input, mutable_device_uuid())); |
| 3482 | } else { |
| 3483 | goto handle_unusual; |
| 3484 | } |
| 3485 | break; |
| 3486 | } |
| 3487 | |
| 3488 | // .dmi.EventsCfg changes = 2; |
| 3489 | case 2: { |
| 3490 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3491 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3492 | input, mutable_changes())); |
| 3493 | } else { |
| 3494 | goto handle_unusual; |
| 3495 | } |
| 3496 | break; |
| 3497 | } |
| 3498 | |
| 3499 | // bool reset_to_default = 3; |
| 3500 | case 3: { |
| 3501 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 3502 | clear_operation(); |
| 3503 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3504 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 3505 | input, &operation_.reset_to_default_))); |
| 3506 | set_has_reset_to_default(); |
| 3507 | } else { |
| 3508 | goto handle_unusual; |
| 3509 | } |
| 3510 | break; |
| 3511 | } |
| 3512 | |
| 3513 | default: { |
| 3514 | handle_unusual: |
| 3515 | if (tag == 0) { |
| 3516 | goto success; |
| 3517 | } |
| 3518 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3519 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3520 | break; |
| 3521 | } |
| 3522 | } |
| 3523 | } |
| 3524 | success: |
| 3525 | // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationRequest) |
| 3526 | return true; |
| 3527 | failure: |
| 3528 | // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationRequest) |
| 3529 | return false; |
| 3530 | #undef DO_ |
| 3531 | } |
| 3532 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3533 | |
| 3534 | void EventsConfigurationRequest::SerializeWithCachedSizes( |
| 3535 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3536 | // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationRequest) |
| 3537 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3538 | (void) cached_has_bits; |
| 3539 | |
| 3540 | // .dmi.Uuid device_uuid = 1; |
| 3541 | if (this->has_device_uuid()) { |
| 3542 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3543 | 1, HasBitSetters::device_uuid(this), output); |
| 3544 | } |
| 3545 | |
| 3546 | // .dmi.EventsCfg changes = 2; |
| 3547 | if (has_changes()) { |
| 3548 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3549 | 2, HasBitSetters::changes(this), output); |
| 3550 | } |
| 3551 | |
| 3552 | // bool reset_to_default = 3; |
| 3553 | if (has_reset_to_default()) { |
| 3554 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->reset_to_default(), output); |
| 3555 | } |
| 3556 | |
| 3557 | if (_internal_metadata_.have_unknown_fields()) { |
| 3558 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3559 | _internal_metadata_.unknown_fields(), output); |
| 3560 | } |
| 3561 | // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationRequest) |
| 3562 | } |
| 3563 | |
| 3564 | ::google::protobuf::uint8* EventsConfigurationRequest::InternalSerializeWithCachedSizesToArray( |
| 3565 | ::google::protobuf::uint8* target) const { |
| 3566 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationRequest) |
| 3567 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3568 | (void) cached_has_bits; |
| 3569 | |
| 3570 | // .dmi.Uuid device_uuid = 1; |
| 3571 | if (this->has_device_uuid()) { |
| 3572 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3573 | InternalWriteMessageToArray( |
| 3574 | 1, HasBitSetters::device_uuid(this), target); |
| 3575 | } |
| 3576 | |
| 3577 | // .dmi.EventsCfg changes = 2; |
| 3578 | if (has_changes()) { |
| 3579 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3580 | InternalWriteMessageToArray( |
| 3581 | 2, HasBitSetters::changes(this), target); |
| 3582 | } |
| 3583 | |
| 3584 | // bool reset_to_default = 3; |
| 3585 | if (has_reset_to_default()) { |
| 3586 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->reset_to_default(), target); |
| 3587 | } |
| 3588 | |
| 3589 | if (_internal_metadata_.have_unknown_fields()) { |
| 3590 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3591 | _internal_metadata_.unknown_fields(), target); |
| 3592 | } |
| 3593 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationRequest) |
| 3594 | return target; |
| 3595 | } |
| 3596 | |
| 3597 | size_t EventsConfigurationRequest::ByteSizeLong() const { |
| 3598 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationRequest) |
| 3599 | size_t total_size = 0; |
| 3600 | |
| 3601 | if (_internal_metadata_.have_unknown_fields()) { |
| 3602 | total_size += |
| 3603 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3604 | _internal_metadata_.unknown_fields()); |
| 3605 | } |
| 3606 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3607 | // Prevent compiler warnings about cached_has_bits being unused |
| 3608 | (void) cached_has_bits; |
| 3609 | |
| 3610 | // .dmi.Uuid device_uuid = 1; |
| 3611 | if (this->has_device_uuid()) { |
| 3612 | total_size += 1 + |
| 3613 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3614 | *device_uuid_); |
| 3615 | } |
| 3616 | |
| 3617 | switch (operation_case()) { |
| 3618 | // .dmi.EventsCfg changes = 2; |
| 3619 | case kChanges: { |
| 3620 | total_size += 1 + |
| 3621 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3622 | *operation_.changes_); |
| 3623 | break; |
| 3624 | } |
| 3625 | // bool reset_to_default = 3; |
| 3626 | case kResetToDefault: { |
| 3627 | total_size += 1 + 1; |
| 3628 | break; |
| 3629 | } |
| 3630 | case OPERATION_NOT_SET: { |
| 3631 | break; |
| 3632 | } |
| 3633 | } |
| 3634 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3635 | SetCachedSize(cached_size); |
| 3636 | return total_size; |
| 3637 | } |
| 3638 | |
| 3639 | void EventsConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3640 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationRequest) |
| 3641 | GOOGLE_DCHECK_NE(&from, this); |
| 3642 | const EventsConfigurationRequest* source = |
| 3643 | ::google::protobuf::DynamicCastToGenerated<EventsConfigurationRequest>( |
| 3644 | &from); |
| 3645 | if (source == nullptr) { |
| 3646 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationRequest) |
| 3647 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3648 | } else { |
| 3649 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationRequest) |
| 3650 | MergeFrom(*source); |
| 3651 | } |
| 3652 | } |
| 3653 | |
| 3654 | void EventsConfigurationRequest::MergeFrom(const EventsConfigurationRequest& from) { |
| 3655 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationRequest) |
| 3656 | GOOGLE_DCHECK_NE(&from, this); |
| 3657 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3658 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3659 | (void) cached_has_bits; |
| 3660 | |
| 3661 | if (from.has_device_uuid()) { |
| 3662 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3663 | } |
| 3664 | switch (from.operation_case()) { |
| 3665 | case kChanges: { |
| 3666 | mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes()); |
| 3667 | break; |
| 3668 | } |
| 3669 | case kResetToDefault: { |
| 3670 | set_reset_to_default(from.reset_to_default()); |
| 3671 | break; |
| 3672 | } |
| 3673 | case OPERATION_NOT_SET: { |
| 3674 | break; |
| 3675 | } |
| 3676 | } |
| 3677 | } |
| 3678 | |
| 3679 | void EventsConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3680 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationRequest) |
| 3681 | if (&from == this) return; |
| 3682 | Clear(); |
| 3683 | MergeFrom(from); |
| 3684 | } |
| 3685 | |
| 3686 | void EventsConfigurationRequest::CopyFrom(const EventsConfigurationRequest& from) { |
| 3687 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationRequest) |
| 3688 | if (&from == this) return; |
| 3689 | Clear(); |
| 3690 | MergeFrom(from); |
| 3691 | } |
| 3692 | |
| 3693 | bool EventsConfigurationRequest::IsInitialized() const { |
| 3694 | return true; |
| 3695 | } |
| 3696 | |
| 3697 | void EventsConfigurationRequest::Swap(EventsConfigurationRequest* other) { |
| 3698 | if (other == this) return; |
| 3699 | InternalSwap(other); |
| 3700 | } |
| 3701 | void EventsConfigurationRequest::InternalSwap(EventsConfigurationRequest* other) { |
| 3702 | using std::swap; |
| 3703 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3704 | swap(device_uuid_, other->device_uuid_); |
| 3705 | swap(operation_, other->operation_); |
| 3706 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 3707 | } |
| 3708 | |
| 3709 | ::google::protobuf::Metadata EventsConfigurationRequest::GetMetadata() const { |
| 3710 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 3711 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 3712 | } |
| 3713 | |
| 3714 | |
| 3715 | // =================================================================== |
| 3716 | |
| 3717 | void EventsConfigurationResponse::InitAsDefaultInstance() { |
| 3718 | } |
| 3719 | class EventsConfigurationResponse::HasBitSetters { |
| 3720 | public: |
| 3721 | }; |
| 3722 | |
| 3723 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3724 | const int EventsConfigurationResponse::kStatusFieldNumber; |
| 3725 | const int EventsConfigurationResponse::kReasonFieldNumber; |
| 3726 | const int EventsConfigurationResponse::kReasonDetailFieldNumber; |
| 3727 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3728 | |
| 3729 | EventsConfigurationResponse::EventsConfigurationResponse() |
| 3730 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3731 | SharedCtor(); |
| 3732 | // @@protoc_insertion_point(constructor:dmi.EventsConfigurationResponse) |
| 3733 | } |
| 3734 | EventsConfigurationResponse::EventsConfigurationResponse(const EventsConfigurationResponse& from) |
| 3735 | : ::google::protobuf::Message(), |
| 3736 | _internal_metadata_(nullptr) { |
| 3737 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3738 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3739 | if (from.reason_detail().size() > 0) { |
| 3740 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3741 | } |
| 3742 | ::memcpy(&status_, &from.status_, |
| 3743 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3744 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3745 | // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationResponse) |
| 3746 | } |
| 3747 | |
| 3748 | void EventsConfigurationResponse::SharedCtor() { |
| 3749 | ::google::protobuf::internal::InitSCC( |
| 3750 | &scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3751 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3752 | ::memset(&status_, 0, static_cast<size_t>( |
| 3753 | reinterpret_cast<char*>(&reason_) - |
| 3754 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3755 | } |
| 3756 | |
| 3757 | EventsConfigurationResponse::~EventsConfigurationResponse() { |
| 3758 | // @@protoc_insertion_point(destructor:dmi.EventsConfigurationResponse) |
| 3759 | SharedDtor(); |
| 3760 | } |
| 3761 | |
| 3762 | void EventsConfigurationResponse::SharedDtor() { |
| 3763 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3764 | } |
| 3765 | |
| 3766 | void EventsConfigurationResponse::SetCachedSize(int size) const { |
| 3767 | _cached_size_.Set(size); |
| 3768 | } |
| 3769 | const EventsConfigurationResponse& EventsConfigurationResponse::default_instance() { |
| 3770 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3771 | return *internal_default_instance(); |
| 3772 | } |
| 3773 | |
| 3774 | |
| 3775 | void EventsConfigurationResponse::Clear() { |
| 3776 | // @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationResponse) |
| 3777 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3778 | // Prevent compiler warnings about cached_has_bits being unused |
| 3779 | (void) cached_has_bits; |
| 3780 | |
| 3781 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3782 | ::memset(&status_, 0, static_cast<size_t>( |
| 3783 | reinterpret_cast<char*>(&reason_) - |
| 3784 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3785 | _internal_metadata_.Clear(); |
| 3786 | } |
| 3787 | |
| 3788 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3789 | const char* EventsConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3790 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3791 | auto msg = static_cast<EventsConfigurationResponse*>(object); |
| 3792 | ::google::protobuf::int32 size; (void)size; |
| 3793 | int depth; (void)depth; |
| 3794 | ::google::protobuf::uint32 tag; |
| 3795 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3796 | auto ptr = begin; |
| 3797 | while (ptr < end) { |
| 3798 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3799 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3800 | switch (tag >> 3) { |
| 3801 | // .dmi.Status status = 1; |
| 3802 | case 1: { |
| 3803 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3804 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3805 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3806 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3807 | break; |
| 3808 | } |
| 3809 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 3810 | case 2: { |
| 3811 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3812 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3813 | msg->set_reason(static_cast<::dmi::EventsConfigurationResponse_Reason>(val)); |
| 3814 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3815 | break; |
| 3816 | } |
| 3817 | // string reason_detail = 3; |
| 3818 | case 3: { |
| 3819 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3820 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3821 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3822 | ctx->extra_parse_data().SetFieldName("dmi.EventsConfigurationResponse.reason_detail"); |
| 3823 | object = msg->mutable_reason_detail(); |
| 3824 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3825 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3826 | goto string_till_end; |
| 3827 | } |
| 3828 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3829 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3830 | ptr += size; |
| 3831 | break; |
| 3832 | } |
| 3833 | default: { |
| 3834 | handle_unusual: |
| 3835 | if ((tag & 7) == 4 || tag == 0) { |
| 3836 | ctx->EndGroup(tag); |
| 3837 | return ptr; |
| 3838 | } |
| 3839 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3840 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3841 | ptr = res.first; |
| 3842 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3843 | if (res.second) return ptr; |
| 3844 | } |
| 3845 | } // switch |
| 3846 | } // while |
| 3847 | return ptr; |
| 3848 | string_till_end: |
| 3849 | static_cast<::std::string*>(object)->clear(); |
| 3850 | static_cast<::std::string*>(object)->reserve(size); |
| 3851 | goto len_delim_till_end; |
| 3852 | len_delim_till_end: |
| 3853 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3854 | {parser_till_end, object}, size); |
| 3855 | } |
| 3856 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3857 | bool EventsConfigurationResponse::MergePartialFromCodedStream( |
| 3858 | ::google::protobuf::io::CodedInputStream* input) { |
| 3859 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3860 | ::google::protobuf::uint32 tag; |
| 3861 | // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationResponse) |
| 3862 | for (;;) { |
| 3863 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3864 | tag = p.first; |
| 3865 | if (!p.second) goto handle_unusual; |
| 3866 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3867 | // .dmi.Status status = 1; |
| 3868 | case 1: { |
| 3869 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3870 | int value = 0; |
| 3871 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3872 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3873 | input, &value))); |
| 3874 | set_status(static_cast< ::dmi::Status >(value)); |
| 3875 | } else { |
| 3876 | goto handle_unusual; |
| 3877 | } |
| 3878 | break; |
| 3879 | } |
| 3880 | |
| 3881 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 3882 | case 2: { |
| 3883 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3884 | int value = 0; |
| 3885 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3886 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3887 | input, &value))); |
| 3888 | set_reason(static_cast< ::dmi::EventsConfigurationResponse_Reason >(value)); |
| 3889 | } else { |
| 3890 | goto handle_unusual; |
| 3891 | } |
| 3892 | break; |
| 3893 | } |
| 3894 | |
| 3895 | // string reason_detail = 3; |
| 3896 | case 3: { |
| 3897 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3898 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3899 | input, this->mutable_reason_detail())); |
| 3900 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3901 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3902 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3903 | "dmi.EventsConfigurationResponse.reason_detail")); |
| 3904 | } else { |
| 3905 | goto handle_unusual; |
| 3906 | } |
| 3907 | break; |
| 3908 | } |
| 3909 | |
| 3910 | default: { |
| 3911 | handle_unusual: |
| 3912 | if (tag == 0) { |
| 3913 | goto success; |
| 3914 | } |
| 3915 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3916 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3917 | break; |
| 3918 | } |
| 3919 | } |
| 3920 | } |
| 3921 | success: |
| 3922 | // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationResponse) |
| 3923 | return true; |
| 3924 | failure: |
| 3925 | // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationResponse) |
| 3926 | return false; |
| 3927 | #undef DO_ |
| 3928 | } |
| 3929 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3930 | |
| 3931 | void EventsConfigurationResponse::SerializeWithCachedSizes( |
| 3932 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3933 | // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationResponse) |
| 3934 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3935 | (void) cached_has_bits; |
| 3936 | |
| 3937 | // .dmi.Status status = 1; |
| 3938 | if (this->status() != 0) { |
| 3939 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3940 | 1, this->status(), output); |
| 3941 | } |
| 3942 | |
| 3943 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 3944 | if (this->reason() != 0) { |
| 3945 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3946 | 2, this->reason(), output); |
| 3947 | } |
| 3948 | |
| 3949 | // string reason_detail = 3; |
| 3950 | if (this->reason_detail().size() > 0) { |
| 3951 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3952 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3953 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3954 | "dmi.EventsConfigurationResponse.reason_detail"); |
| 3955 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3956 | 3, this->reason_detail(), output); |
| 3957 | } |
| 3958 | |
| 3959 | if (_internal_metadata_.have_unknown_fields()) { |
| 3960 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3961 | _internal_metadata_.unknown_fields(), output); |
| 3962 | } |
| 3963 | // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationResponse) |
| 3964 | } |
| 3965 | |
| 3966 | ::google::protobuf::uint8* EventsConfigurationResponse::InternalSerializeWithCachedSizesToArray( |
| 3967 | ::google::protobuf::uint8* target) const { |
| 3968 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationResponse) |
| 3969 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3970 | (void) cached_has_bits; |
| 3971 | |
| 3972 | // .dmi.Status status = 1; |
| 3973 | if (this->status() != 0) { |
| 3974 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3975 | 1, this->status(), target); |
| 3976 | } |
| 3977 | |
| 3978 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 3979 | if (this->reason() != 0) { |
| 3980 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3981 | 2, this->reason(), target); |
| 3982 | } |
| 3983 | |
| 3984 | // string reason_detail = 3; |
| 3985 | if (this->reason_detail().size() > 0) { |
| 3986 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3987 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3988 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3989 | "dmi.EventsConfigurationResponse.reason_detail"); |
| 3990 | target = |
| 3991 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3992 | 3, this->reason_detail(), target); |
| 3993 | } |
| 3994 | |
| 3995 | if (_internal_metadata_.have_unknown_fields()) { |
| 3996 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3997 | _internal_metadata_.unknown_fields(), target); |
| 3998 | } |
| 3999 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationResponse) |
| 4000 | return target; |
| 4001 | } |
| 4002 | |
| 4003 | size_t EventsConfigurationResponse::ByteSizeLong() const { |
| 4004 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationResponse) |
| 4005 | size_t total_size = 0; |
| 4006 | |
| 4007 | if (_internal_metadata_.have_unknown_fields()) { |
| 4008 | total_size += |
| 4009 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4010 | _internal_metadata_.unknown_fields()); |
| 4011 | } |
| 4012 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4013 | // Prevent compiler warnings about cached_has_bits being unused |
| 4014 | (void) cached_has_bits; |
| 4015 | |
| 4016 | // string reason_detail = 3; |
| 4017 | if (this->reason_detail().size() > 0) { |
| 4018 | total_size += 1 + |
| 4019 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4020 | this->reason_detail()); |
| 4021 | } |
| 4022 | |
| 4023 | // .dmi.Status status = 1; |
| 4024 | if (this->status() != 0) { |
| 4025 | total_size += 1 + |
| 4026 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4027 | } |
| 4028 | |
| 4029 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4030 | if (this->reason() != 0) { |
| 4031 | total_size += 1 + |
| 4032 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4033 | } |
| 4034 | |
| 4035 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4036 | SetCachedSize(cached_size); |
| 4037 | return total_size; |
| 4038 | } |
| 4039 | |
| 4040 | void EventsConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4041 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationResponse) |
| 4042 | GOOGLE_DCHECK_NE(&from, this); |
| 4043 | const EventsConfigurationResponse* source = |
| 4044 | ::google::protobuf::DynamicCastToGenerated<EventsConfigurationResponse>( |
| 4045 | &from); |
| 4046 | if (source == nullptr) { |
| 4047 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationResponse) |
| 4048 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4049 | } else { |
| 4050 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationResponse) |
| 4051 | MergeFrom(*source); |
| 4052 | } |
| 4053 | } |
| 4054 | |
| 4055 | void EventsConfigurationResponse::MergeFrom(const EventsConfigurationResponse& from) { |
| 4056 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationResponse) |
| 4057 | GOOGLE_DCHECK_NE(&from, this); |
| 4058 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4059 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4060 | (void) cached_has_bits; |
| 4061 | |
| 4062 | if (from.reason_detail().size() > 0) { |
| 4063 | |
| 4064 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4065 | } |
| 4066 | if (from.status() != 0) { |
| 4067 | set_status(from.status()); |
| 4068 | } |
| 4069 | if (from.reason() != 0) { |
| 4070 | set_reason(from.reason()); |
| 4071 | } |
| 4072 | } |
| 4073 | |
| 4074 | void EventsConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4075 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationResponse) |
| 4076 | if (&from == this) return; |
| 4077 | Clear(); |
| 4078 | MergeFrom(from); |
| 4079 | } |
| 4080 | |
| 4081 | void EventsConfigurationResponse::CopyFrom(const EventsConfigurationResponse& from) { |
| 4082 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationResponse) |
| 4083 | if (&from == this) return; |
| 4084 | Clear(); |
| 4085 | MergeFrom(from); |
| 4086 | } |
| 4087 | |
| 4088 | bool EventsConfigurationResponse::IsInitialized() const { |
| 4089 | return true; |
| 4090 | } |
| 4091 | |
| 4092 | void EventsConfigurationResponse::Swap(EventsConfigurationResponse* other) { |
| 4093 | if (other == this) return; |
| 4094 | InternalSwap(other); |
| 4095 | } |
| 4096 | void EventsConfigurationResponse::InternalSwap(EventsConfigurationResponse* other) { |
| 4097 | using std::swap; |
| 4098 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4099 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4100 | GetArenaNoVirtual()); |
| 4101 | swap(status_, other->status_); |
| 4102 | swap(reason_, other->reason_); |
| 4103 | } |
| 4104 | |
| 4105 | ::google::protobuf::Metadata EventsConfigurationResponse::GetMetadata() const { |
| 4106 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 4107 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 4108 | } |
| 4109 | |
| 4110 | |
| 4111 | // =================================================================== |
| 4112 | |
| 4113 | void EventMetaData::InitAsDefaultInstance() { |
| 4114 | ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4115 | ::dmi::Uuid::internal_default_instance()); |
| 4116 | ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4117 | ::dmi::Uuid::internal_default_instance()); |
| 4118 | } |
| 4119 | class EventMetaData::HasBitSetters { |
| 4120 | public: |
| 4121 | static const ::dmi::Uuid& device_uuid(const EventMetaData* msg); |
| 4122 | static const ::dmi::Uuid& component_uuid(const EventMetaData* msg); |
| 4123 | }; |
| 4124 | |
| 4125 | const ::dmi::Uuid& |
| 4126 | EventMetaData::HasBitSetters::device_uuid(const EventMetaData* msg) { |
| 4127 | return *msg->device_uuid_; |
| 4128 | } |
| 4129 | const ::dmi::Uuid& |
| 4130 | EventMetaData::HasBitSetters::component_uuid(const EventMetaData* msg) { |
| 4131 | return *msg->component_uuid_; |
| 4132 | } |
| 4133 | void EventMetaData::clear_device_uuid() { |
| 4134 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4135 | delete device_uuid_; |
| 4136 | } |
| 4137 | device_uuid_ = nullptr; |
| 4138 | } |
| 4139 | void EventMetaData::clear_component_uuid() { |
| 4140 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 4141 | delete component_uuid_; |
| 4142 | } |
| 4143 | component_uuid_ = nullptr; |
| 4144 | } |
| 4145 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4146 | const int EventMetaData::kDeviceUuidFieldNumber; |
| 4147 | const int EventMetaData::kComponentUuidFieldNumber; |
| 4148 | const int EventMetaData::kComponentNameFieldNumber; |
| 4149 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4150 | |
| 4151 | EventMetaData::EventMetaData() |
| 4152 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4153 | SharedCtor(); |
| 4154 | // @@protoc_insertion_point(constructor:dmi.EventMetaData) |
| 4155 | } |
| 4156 | EventMetaData::EventMetaData(const EventMetaData& from) |
| 4157 | : ::google::protobuf::Message(), |
| 4158 | _internal_metadata_(nullptr) { |
| 4159 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4160 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4161 | if (from.component_name().size() > 0) { |
| 4162 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 4163 | } |
| 4164 | if (from.has_device_uuid()) { |
| 4165 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 4166 | } else { |
| 4167 | device_uuid_ = nullptr; |
| 4168 | } |
| 4169 | if (from.has_component_uuid()) { |
| 4170 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 4171 | } else { |
| 4172 | component_uuid_ = nullptr; |
| 4173 | } |
| 4174 | // @@protoc_insertion_point(copy_constructor:dmi.EventMetaData) |
| 4175 | } |
| 4176 | |
| 4177 | void EventMetaData::SharedCtor() { |
| 4178 | ::google::protobuf::internal::InitSCC( |
| 4179 | &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4180 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4181 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 4182 | reinterpret_cast<char*>(&component_uuid_) - |
| 4183 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 4184 | } |
| 4185 | |
| 4186 | EventMetaData::~EventMetaData() { |
| 4187 | // @@protoc_insertion_point(destructor:dmi.EventMetaData) |
| 4188 | SharedDtor(); |
| 4189 | } |
| 4190 | |
| 4191 | void EventMetaData::SharedDtor() { |
| 4192 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4193 | if (this != internal_default_instance()) delete device_uuid_; |
| 4194 | if (this != internal_default_instance()) delete component_uuid_; |
| 4195 | } |
| 4196 | |
| 4197 | void EventMetaData::SetCachedSize(int size) const { |
| 4198 | _cached_size_.Set(size); |
| 4199 | } |
| 4200 | const EventMetaData& EventMetaData::default_instance() { |
| 4201 | ::google::protobuf::internal::InitSCC(&::scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4202 | return *internal_default_instance(); |
| 4203 | } |
| 4204 | |
| 4205 | |
| 4206 | void EventMetaData::Clear() { |
| 4207 | // @@protoc_insertion_point(message_clear_start:dmi.EventMetaData) |
| 4208 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4209 | // Prevent compiler warnings about cached_has_bits being unused |
| 4210 | (void) cached_has_bits; |
| 4211 | |
| 4212 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4213 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4214 | delete device_uuid_; |
| 4215 | } |
| 4216 | device_uuid_ = nullptr; |
| 4217 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 4218 | delete component_uuid_; |
| 4219 | } |
| 4220 | component_uuid_ = nullptr; |
| 4221 | _internal_metadata_.Clear(); |
| 4222 | } |
| 4223 | |
| 4224 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4225 | const char* EventMetaData::_InternalParse(const char* begin, const char* end, void* object, |
| 4226 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4227 | auto msg = static_cast<EventMetaData*>(object); |
| 4228 | ::google::protobuf::int32 size; (void)size; |
| 4229 | int depth; (void)depth; |
| 4230 | ::google::protobuf::uint32 tag; |
| 4231 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4232 | auto ptr = begin; |
| 4233 | while (ptr < end) { |
| 4234 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4235 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4236 | switch (tag >> 3) { |
| 4237 | // .dmi.Uuid device_uuid = 1; |
| 4238 | case 1: { |
| 4239 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4240 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4241 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4242 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 4243 | object = msg->mutable_device_uuid(); |
| 4244 | if (size > end - ptr) goto len_delim_till_end; |
| 4245 | ptr += size; |
| 4246 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4247 | {parser_till_end, object}, ptr - size, ptr)); |
| 4248 | break; |
| 4249 | } |
| 4250 | // .dmi.Uuid component_uuid = 2; |
| 4251 | case 2: { |
| 4252 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 4253 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4254 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4255 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 4256 | object = msg->mutable_component_uuid(); |
| 4257 | if (size > end - ptr) goto len_delim_till_end; |
| 4258 | ptr += size; |
| 4259 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4260 | {parser_till_end, object}, ptr - size, ptr)); |
| 4261 | break; |
| 4262 | } |
| 4263 | // string component_name = 3; |
| 4264 | case 3: { |
| 4265 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4266 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4267 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4268 | ctx->extra_parse_data().SetFieldName("dmi.EventMetaData.component_name"); |
| 4269 | object = msg->mutable_component_name(); |
| 4270 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4271 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4272 | goto string_till_end; |
| 4273 | } |
| 4274 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4275 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4276 | ptr += size; |
| 4277 | break; |
| 4278 | } |
| 4279 | default: { |
| 4280 | handle_unusual: |
| 4281 | if ((tag & 7) == 4 || tag == 0) { |
| 4282 | ctx->EndGroup(tag); |
| 4283 | return ptr; |
| 4284 | } |
| 4285 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4286 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4287 | ptr = res.first; |
| 4288 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4289 | if (res.second) return ptr; |
| 4290 | } |
| 4291 | } // switch |
| 4292 | } // while |
| 4293 | return ptr; |
| 4294 | string_till_end: |
| 4295 | static_cast<::std::string*>(object)->clear(); |
| 4296 | static_cast<::std::string*>(object)->reserve(size); |
| 4297 | goto len_delim_till_end; |
| 4298 | len_delim_till_end: |
| 4299 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4300 | {parser_till_end, object}, size); |
| 4301 | } |
| 4302 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4303 | bool EventMetaData::MergePartialFromCodedStream( |
| 4304 | ::google::protobuf::io::CodedInputStream* input) { |
| 4305 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4306 | ::google::protobuf::uint32 tag; |
| 4307 | // @@protoc_insertion_point(parse_start:dmi.EventMetaData) |
| 4308 | for (;;) { |
| 4309 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4310 | tag = p.first; |
| 4311 | if (!p.second) goto handle_unusual; |
| 4312 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4313 | // .dmi.Uuid device_uuid = 1; |
| 4314 | case 1: { |
| 4315 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4316 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4317 | input, mutable_device_uuid())); |
| 4318 | } else { |
| 4319 | goto handle_unusual; |
| 4320 | } |
| 4321 | break; |
| 4322 | } |
| 4323 | |
| 4324 | // .dmi.Uuid component_uuid = 2; |
| 4325 | case 2: { |
| 4326 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 4327 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4328 | input, mutable_component_uuid())); |
| 4329 | } else { |
| 4330 | goto handle_unusual; |
| 4331 | } |
| 4332 | break; |
| 4333 | } |
| 4334 | |
| 4335 | // string component_name = 3; |
| 4336 | case 3: { |
| 4337 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4338 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4339 | input, this->mutable_component_name())); |
| 4340 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4341 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4342 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4343 | "dmi.EventMetaData.component_name")); |
| 4344 | } else { |
| 4345 | goto handle_unusual; |
| 4346 | } |
| 4347 | break; |
| 4348 | } |
| 4349 | |
| 4350 | default: { |
| 4351 | handle_unusual: |
| 4352 | if (tag == 0) { |
| 4353 | goto success; |
| 4354 | } |
| 4355 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4356 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4357 | break; |
| 4358 | } |
| 4359 | } |
| 4360 | } |
| 4361 | success: |
| 4362 | // @@protoc_insertion_point(parse_success:dmi.EventMetaData) |
| 4363 | return true; |
| 4364 | failure: |
| 4365 | // @@protoc_insertion_point(parse_failure:dmi.EventMetaData) |
| 4366 | return false; |
| 4367 | #undef DO_ |
| 4368 | } |
| 4369 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4370 | |
| 4371 | void EventMetaData::SerializeWithCachedSizes( |
| 4372 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4373 | // @@protoc_insertion_point(serialize_start:dmi.EventMetaData) |
| 4374 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4375 | (void) cached_has_bits; |
| 4376 | |
| 4377 | // .dmi.Uuid device_uuid = 1; |
| 4378 | if (this->has_device_uuid()) { |
| 4379 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4380 | 1, HasBitSetters::device_uuid(this), output); |
| 4381 | } |
| 4382 | |
| 4383 | // .dmi.Uuid component_uuid = 2; |
| 4384 | if (this->has_component_uuid()) { |
| 4385 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4386 | 2, HasBitSetters::component_uuid(this), output); |
| 4387 | } |
| 4388 | |
| 4389 | // string component_name = 3; |
| 4390 | if (this->component_name().size() > 0) { |
| 4391 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4392 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4393 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4394 | "dmi.EventMetaData.component_name"); |
| 4395 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4396 | 3, this->component_name(), output); |
| 4397 | } |
| 4398 | |
| 4399 | if (_internal_metadata_.have_unknown_fields()) { |
| 4400 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4401 | _internal_metadata_.unknown_fields(), output); |
| 4402 | } |
| 4403 | // @@protoc_insertion_point(serialize_end:dmi.EventMetaData) |
| 4404 | } |
| 4405 | |
| 4406 | ::google::protobuf::uint8* EventMetaData::InternalSerializeWithCachedSizesToArray( |
| 4407 | ::google::protobuf::uint8* target) const { |
| 4408 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventMetaData) |
| 4409 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4410 | (void) cached_has_bits; |
| 4411 | |
| 4412 | // .dmi.Uuid device_uuid = 1; |
| 4413 | if (this->has_device_uuid()) { |
| 4414 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4415 | InternalWriteMessageToArray( |
| 4416 | 1, HasBitSetters::device_uuid(this), target); |
| 4417 | } |
| 4418 | |
| 4419 | // .dmi.Uuid component_uuid = 2; |
| 4420 | if (this->has_component_uuid()) { |
| 4421 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4422 | InternalWriteMessageToArray( |
| 4423 | 2, HasBitSetters::component_uuid(this), target); |
| 4424 | } |
| 4425 | |
| 4426 | // string component_name = 3; |
| 4427 | if (this->component_name().size() > 0) { |
| 4428 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4429 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4430 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4431 | "dmi.EventMetaData.component_name"); |
| 4432 | target = |
| 4433 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4434 | 3, this->component_name(), target); |
| 4435 | } |
| 4436 | |
| 4437 | if (_internal_metadata_.have_unknown_fields()) { |
| 4438 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4439 | _internal_metadata_.unknown_fields(), target); |
| 4440 | } |
| 4441 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventMetaData) |
| 4442 | return target; |
| 4443 | } |
| 4444 | |
| 4445 | size_t EventMetaData::ByteSizeLong() const { |
| 4446 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventMetaData) |
| 4447 | size_t total_size = 0; |
| 4448 | |
| 4449 | if (_internal_metadata_.have_unknown_fields()) { |
| 4450 | total_size += |
| 4451 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4452 | _internal_metadata_.unknown_fields()); |
| 4453 | } |
| 4454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4455 | // Prevent compiler warnings about cached_has_bits being unused |
| 4456 | (void) cached_has_bits; |
| 4457 | |
| 4458 | // string component_name = 3; |
| 4459 | if (this->component_name().size() > 0) { |
| 4460 | total_size += 1 + |
| 4461 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4462 | this->component_name()); |
| 4463 | } |
| 4464 | |
| 4465 | // .dmi.Uuid device_uuid = 1; |
| 4466 | if (this->has_device_uuid()) { |
| 4467 | total_size += 1 + |
| 4468 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4469 | *device_uuid_); |
| 4470 | } |
| 4471 | |
| 4472 | // .dmi.Uuid component_uuid = 2; |
| 4473 | if (this->has_component_uuid()) { |
| 4474 | total_size += 1 + |
| 4475 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4476 | *component_uuid_); |
| 4477 | } |
| 4478 | |
| 4479 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4480 | SetCachedSize(cached_size); |
| 4481 | return total_size; |
| 4482 | } |
| 4483 | |
| 4484 | void EventMetaData::MergeFrom(const ::google::protobuf::Message& from) { |
| 4485 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventMetaData) |
| 4486 | GOOGLE_DCHECK_NE(&from, this); |
| 4487 | const EventMetaData* source = |
| 4488 | ::google::protobuf::DynamicCastToGenerated<EventMetaData>( |
| 4489 | &from); |
| 4490 | if (source == nullptr) { |
| 4491 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventMetaData) |
| 4492 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4493 | } else { |
| 4494 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventMetaData) |
| 4495 | MergeFrom(*source); |
| 4496 | } |
| 4497 | } |
| 4498 | |
| 4499 | void EventMetaData::MergeFrom(const EventMetaData& from) { |
| 4500 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventMetaData) |
| 4501 | GOOGLE_DCHECK_NE(&from, this); |
| 4502 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4503 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4504 | (void) cached_has_bits; |
| 4505 | |
| 4506 | if (from.component_name().size() > 0) { |
| 4507 | |
| 4508 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 4509 | } |
| 4510 | if (from.has_device_uuid()) { |
| 4511 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4512 | } |
| 4513 | if (from.has_component_uuid()) { |
| 4514 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 4515 | } |
| 4516 | } |
| 4517 | |
| 4518 | void EventMetaData::CopyFrom(const ::google::protobuf::Message& from) { |
| 4519 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventMetaData) |
| 4520 | if (&from == this) return; |
| 4521 | Clear(); |
| 4522 | MergeFrom(from); |
| 4523 | } |
| 4524 | |
| 4525 | void EventMetaData::CopyFrom(const EventMetaData& from) { |
| 4526 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventMetaData) |
| 4527 | if (&from == this) return; |
| 4528 | Clear(); |
| 4529 | MergeFrom(from); |
| 4530 | } |
| 4531 | |
| 4532 | bool EventMetaData::IsInitialized() const { |
| 4533 | return true; |
| 4534 | } |
| 4535 | |
| 4536 | void EventMetaData::Swap(EventMetaData* other) { |
| 4537 | if (other == this) return; |
| 4538 | InternalSwap(other); |
| 4539 | } |
| 4540 | void EventMetaData::InternalSwap(EventMetaData* other) { |
| 4541 | using std::swap; |
| 4542 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4543 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4544 | GetArenaNoVirtual()); |
| 4545 | swap(device_uuid_, other->device_uuid_); |
| 4546 | swap(component_uuid_, other->component_uuid_); |
| 4547 | } |
| 4548 | |
| 4549 | ::google::protobuf::Metadata EventMetaData::GetMetadata() const { |
| 4550 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 4551 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 4552 | } |
| 4553 | |
| 4554 | |
| 4555 | // =================================================================== |
| 4556 | |
| 4557 | void Event::InitAsDefaultInstance() { |
| 4558 | ::dmi::_Event_default_instance_._instance.get_mutable()->event_metadata_ = const_cast< ::dmi::EventMetaData*>( |
| 4559 | ::dmi::EventMetaData::internal_default_instance()); |
| 4560 | ::dmi::_Event_default_instance_._instance.get_mutable()->raised_ts_ = const_cast< ::google::protobuf::Timestamp*>( |
| 4561 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 4562 | ::dmi::_Event_default_instance_._instance.get_mutable()->threshold_info_ = const_cast< ::dmi::ThresholdInformation*>( |
| 4563 | ::dmi::ThresholdInformation::internal_default_instance()); |
| 4564 | } |
| 4565 | class Event::HasBitSetters { |
| 4566 | public: |
| 4567 | static const ::dmi::EventMetaData& event_metadata(const Event* msg); |
| 4568 | static const ::google::protobuf::Timestamp& raised_ts(const Event* msg); |
| 4569 | static const ::dmi::ThresholdInformation& threshold_info(const Event* msg); |
| 4570 | }; |
| 4571 | |
| 4572 | const ::dmi::EventMetaData& |
| 4573 | Event::HasBitSetters::event_metadata(const Event* msg) { |
| 4574 | return *msg->event_metadata_; |
| 4575 | } |
| 4576 | const ::google::protobuf::Timestamp& |
| 4577 | Event::HasBitSetters::raised_ts(const Event* msg) { |
| 4578 | return *msg->raised_ts_; |
| 4579 | } |
| 4580 | const ::dmi::ThresholdInformation& |
| 4581 | Event::HasBitSetters::threshold_info(const Event* msg) { |
| 4582 | return *msg->threshold_info_; |
| 4583 | } |
| 4584 | void Event::clear_raised_ts() { |
| 4585 | if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) { |
| 4586 | delete raised_ts_; |
| 4587 | } |
| 4588 | raised_ts_ = nullptr; |
| 4589 | } |
| 4590 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4591 | const int Event::kEventMetadataFieldNumber; |
| 4592 | const int Event::kEventIdFieldNumber; |
| 4593 | const int Event::kRaisedTsFieldNumber; |
| 4594 | const int Event::kThresholdInfoFieldNumber; |
| 4595 | const int Event::kAddInfoFieldNumber; |
| 4596 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4597 | |
| 4598 | Event::Event() |
| 4599 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4600 | SharedCtor(); |
| 4601 | // @@protoc_insertion_point(constructor:dmi.Event) |
| 4602 | } |
| 4603 | Event::Event(const Event& from) |
| 4604 | : ::google::protobuf::Message(), |
| 4605 | _internal_metadata_(nullptr) { |
| 4606 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4607 | add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4608 | if (from.add_info().size() > 0) { |
| 4609 | add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_); |
| 4610 | } |
| 4611 | if (from.has_event_metadata()) { |
| 4612 | event_metadata_ = new ::dmi::EventMetaData(*from.event_metadata_); |
| 4613 | } else { |
| 4614 | event_metadata_ = nullptr; |
| 4615 | } |
| 4616 | if (from.has_raised_ts()) { |
| 4617 | raised_ts_ = new ::google::protobuf::Timestamp(*from.raised_ts_); |
| 4618 | } else { |
| 4619 | raised_ts_ = nullptr; |
| 4620 | } |
| 4621 | if (from.has_threshold_info()) { |
| 4622 | threshold_info_ = new ::dmi::ThresholdInformation(*from.threshold_info_); |
| 4623 | } else { |
| 4624 | threshold_info_ = nullptr; |
| 4625 | } |
| 4626 | event_id_ = from.event_id_; |
| 4627 | // @@protoc_insertion_point(copy_constructor:dmi.Event) |
| 4628 | } |
| 4629 | |
| 4630 | void Event::SharedCtor() { |
| 4631 | ::google::protobuf::internal::InitSCC( |
| 4632 | &scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4633 | add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4634 | ::memset(&event_metadata_, 0, static_cast<size_t>( |
| 4635 | reinterpret_cast<char*>(&event_id_) - |
| 4636 | reinterpret_cast<char*>(&event_metadata_)) + sizeof(event_id_)); |
| 4637 | } |
| 4638 | |
| 4639 | Event::~Event() { |
| 4640 | // @@protoc_insertion_point(destructor:dmi.Event) |
| 4641 | SharedDtor(); |
| 4642 | } |
| 4643 | |
| 4644 | void Event::SharedDtor() { |
| 4645 | add_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4646 | if (this != internal_default_instance()) delete event_metadata_; |
| 4647 | if (this != internal_default_instance()) delete raised_ts_; |
| 4648 | if (this != internal_default_instance()) delete threshold_info_; |
| 4649 | } |
| 4650 | |
| 4651 | void Event::SetCachedSize(int size) const { |
| 4652 | _cached_size_.Set(size); |
| 4653 | } |
| 4654 | const Event& Event::default_instance() { |
| 4655 | ::google::protobuf::internal::InitSCC(&::scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4656 | return *internal_default_instance(); |
| 4657 | } |
| 4658 | |
| 4659 | |
| 4660 | void Event::Clear() { |
| 4661 | // @@protoc_insertion_point(message_clear_start:dmi.Event) |
| 4662 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4663 | // Prevent compiler warnings about cached_has_bits being unused |
| 4664 | (void) cached_has_bits; |
| 4665 | |
| 4666 | add_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4667 | if (GetArenaNoVirtual() == nullptr && event_metadata_ != nullptr) { |
| 4668 | delete event_metadata_; |
| 4669 | } |
| 4670 | event_metadata_ = nullptr; |
| 4671 | if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) { |
| 4672 | delete raised_ts_; |
| 4673 | } |
| 4674 | raised_ts_ = nullptr; |
| 4675 | if (GetArenaNoVirtual() == nullptr && threshold_info_ != nullptr) { |
| 4676 | delete threshold_info_; |
| 4677 | } |
| 4678 | threshold_info_ = nullptr; |
| 4679 | event_id_ = 0; |
| 4680 | _internal_metadata_.Clear(); |
| 4681 | } |
| 4682 | |
| 4683 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4684 | const char* Event::_InternalParse(const char* begin, const char* end, void* object, |
| 4685 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4686 | auto msg = static_cast<Event*>(object); |
| 4687 | ::google::protobuf::int32 size; (void)size; |
| 4688 | int depth; (void)depth; |
| 4689 | ::google::protobuf::uint32 tag; |
| 4690 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4691 | auto ptr = begin; |
| 4692 | while (ptr < end) { |
| 4693 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4694 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4695 | switch (tag >> 3) { |
| 4696 | // .dmi.EventMetaData event_metadata = 1; |
| 4697 | case 1: { |
| 4698 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4699 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4700 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4701 | parser_till_end = ::dmi::EventMetaData::_InternalParse; |
| 4702 | object = msg->mutable_event_metadata(); |
| 4703 | if (size > end - ptr) goto len_delim_till_end; |
| 4704 | ptr += size; |
| 4705 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4706 | {parser_till_end, object}, ptr - size, ptr)); |
| 4707 | break; |
| 4708 | } |
| 4709 | // .dmi.EventIds event_id = 2; |
| 4710 | case 2: { |
| 4711 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4712 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4713 | msg->set_event_id(static_cast<::dmi::EventIds>(val)); |
| 4714 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4715 | break; |
| 4716 | } |
| 4717 | // .google.protobuf.Timestamp raised_ts = 3; |
| 4718 | case 3: { |
| 4719 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4720 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4721 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4722 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 4723 | object = msg->mutable_raised_ts(); |
| 4724 | if (size > end - ptr) goto len_delim_till_end; |
| 4725 | ptr += size; |
| 4726 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4727 | {parser_till_end, object}, ptr - size, ptr)); |
| 4728 | break; |
| 4729 | } |
| 4730 | // .dmi.ThresholdInformation threshold_info = 4; |
| 4731 | case 4: { |
| 4732 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 4733 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4734 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4735 | parser_till_end = ::dmi::ThresholdInformation::_InternalParse; |
| 4736 | object = msg->mutable_threshold_info(); |
| 4737 | if (size > end - ptr) goto len_delim_till_end; |
| 4738 | ptr += size; |
| 4739 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4740 | {parser_till_end, object}, ptr - size, ptr)); |
| 4741 | break; |
| 4742 | } |
| 4743 | // string add_info = 5; |
| 4744 | case 5: { |
| 4745 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 4746 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4747 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4748 | ctx->extra_parse_data().SetFieldName("dmi.Event.add_info"); |
| 4749 | object = msg->mutable_add_info(); |
| 4750 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4751 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4752 | goto string_till_end; |
| 4753 | } |
| 4754 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4755 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4756 | ptr += size; |
| 4757 | break; |
| 4758 | } |
| 4759 | default: { |
| 4760 | handle_unusual: |
| 4761 | if ((tag & 7) == 4 || tag == 0) { |
| 4762 | ctx->EndGroup(tag); |
| 4763 | return ptr; |
| 4764 | } |
| 4765 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4766 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4767 | ptr = res.first; |
| 4768 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4769 | if (res.second) return ptr; |
| 4770 | } |
| 4771 | } // switch |
| 4772 | } // while |
| 4773 | return ptr; |
| 4774 | string_till_end: |
| 4775 | static_cast<::std::string*>(object)->clear(); |
| 4776 | static_cast<::std::string*>(object)->reserve(size); |
| 4777 | goto len_delim_till_end; |
| 4778 | len_delim_till_end: |
| 4779 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4780 | {parser_till_end, object}, size); |
| 4781 | } |
| 4782 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4783 | bool Event::MergePartialFromCodedStream( |
| 4784 | ::google::protobuf::io::CodedInputStream* input) { |
| 4785 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4786 | ::google::protobuf::uint32 tag; |
| 4787 | // @@protoc_insertion_point(parse_start:dmi.Event) |
| 4788 | for (;;) { |
| 4789 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4790 | tag = p.first; |
| 4791 | if (!p.second) goto handle_unusual; |
| 4792 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4793 | // .dmi.EventMetaData event_metadata = 1; |
| 4794 | case 1: { |
| 4795 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4796 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4797 | input, mutable_event_metadata())); |
| 4798 | } else { |
| 4799 | goto handle_unusual; |
| 4800 | } |
| 4801 | break; |
| 4802 | } |
| 4803 | |
| 4804 | // .dmi.EventIds event_id = 2; |
| 4805 | case 2: { |
| 4806 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4807 | int value = 0; |
| 4808 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4809 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4810 | input, &value))); |
| 4811 | set_event_id(static_cast< ::dmi::EventIds >(value)); |
| 4812 | } else { |
| 4813 | goto handle_unusual; |
| 4814 | } |
| 4815 | break; |
| 4816 | } |
| 4817 | |
| 4818 | // .google.protobuf.Timestamp raised_ts = 3; |
| 4819 | case 3: { |
| 4820 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4821 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4822 | input, mutable_raised_ts())); |
| 4823 | } else { |
| 4824 | goto handle_unusual; |
| 4825 | } |
| 4826 | break; |
| 4827 | } |
| 4828 | |
| 4829 | // .dmi.ThresholdInformation threshold_info = 4; |
| 4830 | case 4: { |
| 4831 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 4832 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4833 | input, mutable_threshold_info())); |
| 4834 | } else { |
| 4835 | goto handle_unusual; |
| 4836 | } |
| 4837 | break; |
| 4838 | } |
| 4839 | |
| 4840 | // string add_info = 5; |
| 4841 | case 5: { |
| 4842 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 4843 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4844 | input, this->mutable_add_info())); |
| 4845 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4846 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 4847 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4848 | "dmi.Event.add_info")); |
| 4849 | } else { |
| 4850 | goto handle_unusual; |
| 4851 | } |
| 4852 | break; |
| 4853 | } |
| 4854 | |
| 4855 | default: { |
| 4856 | handle_unusual: |
| 4857 | if (tag == 0) { |
| 4858 | goto success; |
| 4859 | } |
| 4860 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4861 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4862 | break; |
| 4863 | } |
| 4864 | } |
| 4865 | } |
| 4866 | success: |
| 4867 | // @@protoc_insertion_point(parse_success:dmi.Event) |
| 4868 | return true; |
| 4869 | failure: |
| 4870 | // @@protoc_insertion_point(parse_failure:dmi.Event) |
| 4871 | return false; |
| 4872 | #undef DO_ |
| 4873 | } |
| 4874 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4875 | |
| 4876 | void Event::SerializeWithCachedSizes( |
| 4877 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4878 | // @@protoc_insertion_point(serialize_start:dmi.Event) |
| 4879 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4880 | (void) cached_has_bits; |
| 4881 | |
| 4882 | // .dmi.EventMetaData event_metadata = 1; |
| 4883 | if (this->has_event_metadata()) { |
| 4884 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4885 | 1, HasBitSetters::event_metadata(this), output); |
| 4886 | } |
| 4887 | |
| 4888 | // .dmi.EventIds event_id = 2; |
| 4889 | if (this->event_id() != 0) { |
| 4890 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4891 | 2, this->event_id(), output); |
| 4892 | } |
| 4893 | |
| 4894 | // .google.protobuf.Timestamp raised_ts = 3; |
| 4895 | if (this->has_raised_ts()) { |
| 4896 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4897 | 3, HasBitSetters::raised_ts(this), output); |
| 4898 | } |
| 4899 | |
| 4900 | // .dmi.ThresholdInformation threshold_info = 4; |
| 4901 | if (this->has_threshold_info()) { |
| 4902 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4903 | 4, HasBitSetters::threshold_info(this), output); |
| 4904 | } |
| 4905 | |
| 4906 | // string add_info = 5; |
| 4907 | if (this->add_info().size() > 0) { |
| 4908 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4909 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 4910 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4911 | "dmi.Event.add_info"); |
| 4912 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4913 | 5, this->add_info(), output); |
| 4914 | } |
| 4915 | |
| 4916 | if (_internal_metadata_.have_unknown_fields()) { |
| 4917 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4918 | _internal_metadata_.unknown_fields(), output); |
| 4919 | } |
| 4920 | // @@protoc_insertion_point(serialize_end:dmi.Event) |
| 4921 | } |
| 4922 | |
| 4923 | ::google::protobuf::uint8* Event::InternalSerializeWithCachedSizesToArray( |
| 4924 | ::google::protobuf::uint8* target) const { |
| 4925 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Event) |
| 4926 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4927 | (void) cached_has_bits; |
| 4928 | |
| 4929 | // .dmi.EventMetaData event_metadata = 1; |
| 4930 | if (this->has_event_metadata()) { |
| 4931 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4932 | InternalWriteMessageToArray( |
| 4933 | 1, HasBitSetters::event_metadata(this), target); |
| 4934 | } |
| 4935 | |
| 4936 | // .dmi.EventIds event_id = 2; |
| 4937 | if (this->event_id() != 0) { |
| 4938 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4939 | 2, this->event_id(), target); |
| 4940 | } |
| 4941 | |
| 4942 | // .google.protobuf.Timestamp raised_ts = 3; |
| 4943 | if (this->has_raised_ts()) { |
| 4944 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4945 | InternalWriteMessageToArray( |
| 4946 | 3, HasBitSetters::raised_ts(this), target); |
| 4947 | } |
| 4948 | |
| 4949 | // .dmi.ThresholdInformation threshold_info = 4; |
| 4950 | if (this->has_threshold_info()) { |
| 4951 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4952 | InternalWriteMessageToArray( |
| 4953 | 4, HasBitSetters::threshold_info(this), target); |
| 4954 | } |
| 4955 | |
| 4956 | // string add_info = 5; |
| 4957 | if (this->add_info().size() > 0) { |
| 4958 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4959 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 4960 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4961 | "dmi.Event.add_info"); |
| 4962 | target = |
| 4963 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4964 | 5, this->add_info(), target); |
| 4965 | } |
| 4966 | |
| 4967 | if (_internal_metadata_.have_unknown_fields()) { |
| 4968 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4969 | _internal_metadata_.unknown_fields(), target); |
| 4970 | } |
| 4971 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Event) |
| 4972 | return target; |
| 4973 | } |
| 4974 | |
| 4975 | size_t Event::ByteSizeLong() const { |
| 4976 | // @@protoc_insertion_point(message_byte_size_start:dmi.Event) |
| 4977 | size_t total_size = 0; |
| 4978 | |
| 4979 | if (_internal_metadata_.have_unknown_fields()) { |
| 4980 | total_size += |
| 4981 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4982 | _internal_metadata_.unknown_fields()); |
| 4983 | } |
| 4984 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4985 | // Prevent compiler warnings about cached_has_bits being unused |
| 4986 | (void) cached_has_bits; |
| 4987 | |
| 4988 | // string add_info = 5; |
| 4989 | if (this->add_info().size() > 0) { |
| 4990 | total_size += 1 + |
| 4991 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4992 | this->add_info()); |
| 4993 | } |
| 4994 | |
| 4995 | // .dmi.EventMetaData event_metadata = 1; |
| 4996 | if (this->has_event_metadata()) { |
| 4997 | total_size += 1 + |
| 4998 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4999 | *event_metadata_); |
| 5000 | } |
| 5001 | |
| 5002 | // .google.protobuf.Timestamp raised_ts = 3; |
| 5003 | if (this->has_raised_ts()) { |
| 5004 | total_size += 1 + |
| 5005 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5006 | *raised_ts_); |
| 5007 | } |
| 5008 | |
| 5009 | // .dmi.ThresholdInformation threshold_info = 4; |
| 5010 | if (this->has_threshold_info()) { |
| 5011 | total_size += 1 + |
| 5012 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5013 | *threshold_info_); |
| 5014 | } |
| 5015 | |
| 5016 | // .dmi.EventIds event_id = 2; |
| 5017 | if (this->event_id() != 0) { |
| 5018 | total_size += 1 + |
| 5019 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id()); |
| 5020 | } |
| 5021 | |
| 5022 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5023 | SetCachedSize(cached_size); |
| 5024 | return total_size; |
| 5025 | } |
| 5026 | |
| 5027 | void Event::MergeFrom(const ::google::protobuf::Message& from) { |
| 5028 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Event) |
| 5029 | GOOGLE_DCHECK_NE(&from, this); |
| 5030 | const Event* source = |
| 5031 | ::google::protobuf::DynamicCastToGenerated<Event>( |
| 5032 | &from); |
| 5033 | if (source == nullptr) { |
| 5034 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Event) |
| 5035 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5036 | } else { |
| 5037 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Event) |
| 5038 | MergeFrom(*source); |
| 5039 | } |
| 5040 | } |
| 5041 | |
| 5042 | void Event::MergeFrom(const Event& from) { |
| 5043 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Event) |
| 5044 | GOOGLE_DCHECK_NE(&from, this); |
| 5045 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5046 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5047 | (void) cached_has_bits; |
| 5048 | |
| 5049 | if (from.add_info().size() > 0) { |
| 5050 | |
| 5051 | add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_); |
| 5052 | } |
| 5053 | if (from.has_event_metadata()) { |
| 5054 | mutable_event_metadata()->::dmi::EventMetaData::MergeFrom(from.event_metadata()); |
| 5055 | } |
| 5056 | if (from.has_raised_ts()) { |
| 5057 | mutable_raised_ts()->::google::protobuf::Timestamp::MergeFrom(from.raised_ts()); |
| 5058 | } |
| 5059 | if (from.has_threshold_info()) { |
| 5060 | mutable_threshold_info()->::dmi::ThresholdInformation::MergeFrom(from.threshold_info()); |
| 5061 | } |
| 5062 | if (from.event_id() != 0) { |
| 5063 | set_event_id(from.event_id()); |
| 5064 | } |
| 5065 | } |
| 5066 | |
| 5067 | void Event::CopyFrom(const ::google::protobuf::Message& from) { |
| 5068 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Event) |
| 5069 | if (&from == this) return; |
| 5070 | Clear(); |
| 5071 | MergeFrom(from); |
| 5072 | } |
| 5073 | |
| 5074 | void Event::CopyFrom(const Event& from) { |
| 5075 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Event) |
| 5076 | if (&from == this) return; |
| 5077 | Clear(); |
| 5078 | MergeFrom(from); |
| 5079 | } |
| 5080 | |
| 5081 | bool Event::IsInitialized() const { |
| 5082 | return true; |
| 5083 | } |
| 5084 | |
| 5085 | void Event::Swap(Event* other) { |
| 5086 | if (other == this) return; |
| 5087 | InternalSwap(other); |
| 5088 | } |
| 5089 | void Event::InternalSwap(Event* other) { |
| 5090 | using std::swap; |
| 5091 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5092 | add_info_.Swap(&other->add_info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5093 | GetArenaNoVirtual()); |
| 5094 | swap(event_metadata_, other->event_metadata_); |
| 5095 | swap(raised_ts_, other->raised_ts_); |
| 5096 | swap(threshold_info_, other->threshold_info_); |
| 5097 | swap(event_id_, other->event_id_); |
| 5098 | } |
| 5099 | |
| 5100 | ::google::protobuf::Metadata Event::GetMetadata() const { |
| 5101 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 5102 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 5103 | } |
| 5104 | |
| 5105 | |
| 5106 | // @@protoc_insertion_point(namespace_scope) |
| 5107 | } // namespace dmi |
| 5108 | namespace google { |
| 5109 | namespace protobuf { |
| 5110 | template<> PROTOBUF_NOINLINE ::dmi::ValueType* Arena::CreateMaybeMessage< ::dmi::ValueType >(Arena* arena) { |
| 5111 | return Arena::CreateInternal< ::dmi::ValueType >(arena); |
| 5112 | } |
| 5113 | template<> PROTOBUF_NOINLINE ::dmi::WaterMarks* Arena::CreateMaybeMessage< ::dmi::WaterMarks >(Arena* arena) { |
| 5114 | return Arena::CreateInternal< ::dmi::WaterMarks >(arena); |
| 5115 | } |
| 5116 | template<> PROTOBUF_NOINLINE ::dmi::Thresholds* Arena::CreateMaybeMessage< ::dmi::Thresholds >(Arena* arena) { |
| 5117 | return Arena::CreateInternal< ::dmi::Thresholds >(arena); |
| 5118 | } |
| 5119 | template<> PROTOBUF_NOINLINE ::dmi::ThresholdInformation* Arena::CreateMaybeMessage< ::dmi::ThresholdInformation >(Arena* arena) { |
| 5120 | return Arena::CreateInternal< ::dmi::ThresholdInformation >(arena); |
| 5121 | } |
| 5122 | template<> PROTOBUF_NOINLINE ::dmi::EventCfg* Arena::CreateMaybeMessage< ::dmi::EventCfg >(Arena* arena) { |
| 5123 | return Arena::CreateInternal< ::dmi::EventCfg >(arena); |
| 5124 | } |
| 5125 | template<> PROTOBUF_NOINLINE ::dmi::EventsCfg* Arena::CreateMaybeMessage< ::dmi::EventsCfg >(Arena* arena) { |
| 5126 | return Arena::CreateInternal< ::dmi::EventsCfg >(arena); |
| 5127 | } |
| 5128 | template<> PROTOBUF_NOINLINE ::dmi::ListEventsResponse* Arena::CreateMaybeMessage< ::dmi::ListEventsResponse >(Arena* arena) { |
| 5129 | return Arena::CreateInternal< ::dmi::ListEventsResponse >(arena); |
| 5130 | } |
| 5131 | template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationRequest* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationRequest >(Arena* arena) { |
| 5132 | return Arena::CreateInternal< ::dmi::EventsConfigurationRequest >(arena); |
| 5133 | } |
| 5134 | template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationResponse* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationResponse >(Arena* arena) { |
| 5135 | return Arena::CreateInternal< ::dmi::EventsConfigurationResponse >(arena); |
| 5136 | } |
| 5137 | template<> PROTOBUF_NOINLINE ::dmi::EventMetaData* Arena::CreateMaybeMessage< ::dmi::EventMetaData >(Arena* arena) { |
| 5138 | return Arena::CreateInternal< ::dmi::EventMetaData >(arena); |
| 5139 | } |
| 5140 | template<> PROTOBUF_NOINLINE ::dmi::Event* Arena::CreateMaybeMessage< ::dmi::Event >(Arena* arena) { |
| 5141 | return Arena::CreateInternal< ::dmi::Event >(arena); |
| 5142 | } |
| 5143 | } // namespace protobuf |
| 5144 | } // namespace google |
| 5145 | |
| 5146 | // @@protoc_insertion_point(global_scope) |
| 5147 | #include <google/protobuf/port_undef.inc> |