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