| 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; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 22 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 23 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 25 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 26 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 27 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 28 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 29 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| 30 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 31 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 32 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 33 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 34 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; |
| 35 | namespace dmi { |
| 36 | class ValueTypeDefaultTypeInternal { |
| 37 | public: |
| 38 | ::google::protobuf::internal::ExplicitlyConstructed<ValueType> _instance; |
| 39 | ::google::protobuf::int64 int_val_; |
| 40 | ::google::protobuf::uint64 uint_val_; |
| 41 | float float_val_; |
| 42 | } _ValueType_default_instance_; |
| 43 | class WaterMarksDefaultTypeInternal { |
| 44 | public: |
| 45 | ::google::protobuf::internal::ExplicitlyConstructed<WaterMarks> _instance; |
| 46 | } _WaterMarks_default_instance_; |
| 47 | class ThresholdsDefaultTypeInternal { |
| 48 | public: |
| 49 | ::google::protobuf::internal::ExplicitlyConstructed<Thresholds> _instance; |
| 50 | const ::dmi::WaterMarks* upper_; |
| 51 | const ::dmi::WaterMarks* lower_; |
| 52 | } _Thresholds_default_instance_; |
| 53 | class ThresholdInformationDefaultTypeInternal { |
| 54 | public: |
| 55 | ::google::protobuf::internal::ExplicitlyConstructed<ThresholdInformation> _instance; |
| 56 | } _ThresholdInformation_default_instance_; |
| 57 | class EventCfgDefaultTypeInternal { |
| 58 | public: |
| 59 | ::google::protobuf::internal::ExplicitlyConstructed<EventCfg> _instance; |
| 60 | } _EventCfg_default_instance_; |
| 61 | class EventsCfgDefaultTypeInternal { |
| 62 | public: |
| 63 | ::google::protobuf::internal::ExplicitlyConstructed<EventsCfg> _instance; |
| 64 | } _EventsCfg_default_instance_; |
| 65 | class ListEventsResponseDefaultTypeInternal { |
| 66 | public: |
| 67 | ::google::protobuf::internal::ExplicitlyConstructed<ListEventsResponse> _instance; |
| 68 | } _ListEventsResponse_default_instance_; |
| 69 | class EventsConfigurationRequestDefaultTypeInternal { |
| 70 | public: |
| 71 | ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationRequest> _instance; |
| 72 | const ::dmi::EventsCfg* changes_; |
| 73 | bool reset_to_default_; |
| 74 | } _EventsConfigurationRequest_default_instance_; |
| 75 | class EventsConfigurationResponseDefaultTypeInternal { |
| 76 | public: |
| 77 | ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationResponse> _instance; |
| 78 | } _EventsConfigurationResponse_default_instance_; |
| 79 | class EventMetaDataDefaultTypeInternal { |
| 80 | public: |
| 81 | ::google::protobuf::internal::ExplicitlyConstructed<EventMetaData> _instance; |
| 82 | } _EventMetaData_default_instance_; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 83 | class AdminStateChangeDefaultTypeInternal { |
| 84 | public: |
| 85 | ::google::protobuf::internal::ExplicitlyConstructed<AdminStateChange> _instance; |
| 86 | } _AdminStateChange_default_instance_; |
| 87 | class OperStateChangeDefaultTypeInternal { |
| 88 | public: |
| 89 | ::google::protobuf::internal::ExplicitlyConstructed<OperStateChange> _instance; |
| 90 | } _OperStateChange_default_instance_; |
| 91 | class AlarmStateChangeDefaultTypeInternal { |
| 92 | public: |
| 93 | ::google::protobuf::internal::ExplicitlyConstructed<AlarmStateChange> _instance; |
| 94 | } _AlarmStateChange_default_instance_; |
| 95 | class UsageStateChangeDefaultTypeInternal { |
| 96 | public: |
| 97 | ::google::protobuf::internal::ExplicitlyConstructed<UsageStateChange> _instance; |
| 98 | } _UsageStateChange_default_instance_; |
| 99 | class StandbyStateChangeDefaultTypeInternal { |
| 100 | public: |
| 101 | ::google::protobuf::internal::ExplicitlyConstructed<StandbyStateChange> _instance; |
| 102 | } _StandbyStateChange_default_instance_; |
| 103 | class StateChangeInfoDefaultTypeInternal { |
| 104 | public: |
| 105 | ::google::protobuf::internal::ExplicitlyConstructed<StateChangeInfo> _instance; |
| 106 | const ::dmi::AdminStateChange* admin_state_change_; |
| 107 | const ::dmi::OperStateChange* oper_state_change_; |
| 108 | const ::dmi::AlarmStateChange* alarm_state_change_; |
| 109 | const ::dmi::UsageStateChange* usage_state_change_; |
| 110 | const ::dmi::StandbyStateChange* standby_state_change_; |
| 111 | } _StateChangeInfo_default_instance_; |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 112 | class GenericEventInfoDefaultTypeInternal { |
| 113 | public: |
| 114 | ::google::protobuf::internal::ExplicitlyConstructed<GenericEventInfo> _instance; |
| 115 | } _GenericEventInfo_default_instance_; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 116 | class EventDefaultTypeInternal { |
| 117 | public: |
| 118 | ::google::protobuf::internal::ExplicitlyConstructed<Event> _instance; |
| 119 | } _Event_default_instance_; |
| 120 | } // namespace dmi |
| 121 | static void InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 122 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 123 | |
| 124 | { |
| 125 | void* ptr = &::dmi::_ValueType_default_instance_; |
| 126 | new (ptr) ::dmi::ValueType(); |
| 127 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 128 | } |
| 129 | ::dmi::ValueType::InitAsDefaultInstance(); |
| 130 | } |
| 131 | |
| 132 | ::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 133 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 134 | |
| 135 | static void InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 136 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 137 | |
| 138 | { |
| 139 | void* ptr = &::dmi::_WaterMarks_default_instance_; |
| 140 | new (ptr) ::dmi::WaterMarks(); |
| 141 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 142 | } |
| 143 | ::dmi::WaterMarks::InitAsDefaultInstance(); |
| 144 | } |
| 145 | |
| 146 | ::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 147 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 148 | &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 149 | |
| 150 | static void InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 151 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 152 | |
| 153 | { |
| 154 | void* ptr = &::dmi::_Thresholds_default_instance_; |
| 155 | new (ptr) ::dmi::Thresholds(); |
| 156 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 157 | } |
| 158 | ::dmi::Thresholds::InitAsDefaultInstance(); |
| 159 | } |
| 160 | |
| 161 | ::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 162 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 163 | &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 164 | |
| 165 | static void InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 166 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 167 | |
| 168 | { |
| 169 | void* ptr = &::dmi::_ThresholdInformation_default_instance_; |
| 170 | new (ptr) ::dmi::ThresholdInformation(); |
| 171 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 172 | } |
| 173 | ::dmi::ThresholdInformation::InitAsDefaultInstance(); |
| 174 | } |
| 175 | |
| 176 | ::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 177 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 178 | &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 179 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 180 | |
| 181 | static void InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 182 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 183 | |
| 184 | { |
| 185 | void* ptr = &::dmi::_EventCfg_default_instance_; |
| 186 | new (ptr) ::dmi::EventCfg(); |
| 187 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 188 | } |
| 189 | ::dmi::EventCfg::InitAsDefaultInstance(); |
| 190 | } |
| 191 | |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 192 | ::google::protobuf::internal::SCCInfo<2> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 193 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 194 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 195 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 196 | |
| 197 | static void InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 198 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 199 | |
| 200 | { |
| 201 | void* ptr = &::dmi::_EventsCfg_default_instance_; |
| 202 | new (ptr) ::dmi::EventsCfg(); |
| 203 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 204 | } |
| 205 | ::dmi::EventsCfg::InitAsDefaultInstance(); |
| 206 | } |
| 207 | |
| 208 | ::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 209 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 210 | &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 211 | |
| 212 | static void InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 213 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 214 | |
| 215 | { |
| 216 | void* ptr = &::dmi::_ListEventsResponse_default_instance_; |
| 217 | new (ptr) ::dmi::ListEventsResponse(); |
| 218 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 219 | } |
| 220 | ::dmi::ListEventsResponse::InitAsDefaultInstance(); |
| 221 | } |
| 222 | |
| 223 | ::google::protobuf::internal::SCCInfo<1> scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 224 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 225 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 226 | |
| 227 | static void InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 228 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 229 | |
| 230 | { |
| 231 | void* ptr = &::dmi::_EventsConfigurationRequest_default_instance_; |
| 232 | new (ptr) ::dmi::EventsConfigurationRequest(); |
| 233 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 234 | } |
| 235 | ::dmi::EventsConfigurationRequest::InitAsDefaultInstance(); |
| 236 | } |
| 237 | |
| 238 | ::google::protobuf::internal::SCCInfo<2> scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 239 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 240 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 241 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 242 | |
| 243 | static void InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 244 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 245 | |
| 246 | { |
| 247 | void* ptr = &::dmi::_EventsConfigurationResponse_default_instance_; |
| 248 | new (ptr) ::dmi::EventsConfigurationResponse(); |
| 249 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 250 | } |
| 251 | ::dmi::EventsConfigurationResponse::InitAsDefaultInstance(); |
| 252 | } |
| 253 | |
| 254 | ::google::protobuf::internal::SCCInfo<0> scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 255 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 256 | |
| 257 | static void InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 258 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 259 | |
| 260 | { |
| 261 | void* ptr = &::dmi::_EventMetaData_default_instance_; |
| 262 | new (ptr) ::dmi::EventMetaData(); |
| 263 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 264 | } |
| 265 | ::dmi::EventMetaData::InitAsDefaultInstance(); |
| 266 | } |
| 267 | |
| 268 | ::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 269 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 270 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 271 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 272 | static void InitDefaultsAdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 273 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 274 | |
| 275 | { |
| 276 | void* ptr = &::dmi::_AdminStateChange_default_instance_; |
| 277 | new (ptr) ::dmi::AdminStateChange(); |
| 278 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 279 | } |
| 280 | ::dmi::AdminStateChange::InitAsDefaultInstance(); |
| 281 | } |
| 282 | |
| 283 | ::google::protobuf::internal::SCCInfo<0> scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 284 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 285 | |
| 286 | static void InitDefaultsOperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 287 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 288 | |
| 289 | { |
| 290 | void* ptr = &::dmi::_OperStateChange_default_instance_; |
| 291 | new (ptr) ::dmi::OperStateChange(); |
| 292 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 293 | } |
| 294 | ::dmi::OperStateChange::InitAsDefaultInstance(); |
| 295 | } |
| 296 | |
| 297 | ::google::protobuf::internal::SCCInfo<0> scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 298 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 299 | |
| 300 | static void InitDefaultsAlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 301 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 302 | |
| 303 | { |
| 304 | void* ptr = &::dmi::_AlarmStateChange_default_instance_; |
| 305 | new (ptr) ::dmi::AlarmStateChange(); |
| 306 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 307 | } |
| 308 | ::dmi::AlarmStateChange::InitAsDefaultInstance(); |
| 309 | } |
| 310 | |
| 311 | ::google::protobuf::internal::SCCInfo<0> scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 312 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 313 | |
| 314 | static void InitDefaultsUsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 315 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 316 | |
| 317 | { |
| 318 | void* ptr = &::dmi::_UsageStateChange_default_instance_; |
| 319 | new (ptr) ::dmi::UsageStateChange(); |
| 320 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 321 | } |
| 322 | ::dmi::UsageStateChange::InitAsDefaultInstance(); |
| 323 | } |
| 324 | |
| 325 | ::google::protobuf::internal::SCCInfo<0> scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 326 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 327 | |
| 328 | static void InitDefaultsStandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 329 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 330 | |
| 331 | { |
| 332 | void* ptr = &::dmi::_StandbyStateChange_default_instance_; |
| 333 | new (ptr) ::dmi::StandbyStateChange(); |
| 334 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 335 | } |
| 336 | ::dmi::StandbyStateChange::InitAsDefaultInstance(); |
| 337 | } |
| 338 | |
| 339 | ::google::protobuf::internal::SCCInfo<0> scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 340 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 341 | |
| 342 | static void InitDefaultsStateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 343 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 344 | |
| 345 | { |
| 346 | void* ptr = &::dmi::_StateChangeInfo_default_instance_; |
| 347 | new (ptr) ::dmi::StateChangeInfo(); |
| 348 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 349 | } |
| 350 | ::dmi::StateChangeInfo::InitAsDefaultInstance(); |
| 351 | } |
| 352 | |
| 353 | ::google::protobuf::internal::SCCInfo<5> scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 354 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsStateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| 355 | &scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 356 | &scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 357 | &scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 358 | &scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 359 | &scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| 360 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 361 | static void InitDefaultsGenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 362 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 363 | |
| 364 | { |
| 365 | void* ptr = &::dmi::_GenericEventInfo_default_instance_; |
| 366 | new (ptr) ::dmi::GenericEventInfo(); |
| 367 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 368 | } |
| 369 | ::dmi::GenericEventInfo::InitAsDefaultInstance(); |
| 370 | } |
| 371 | |
| 372 | ::google::protobuf::internal::SCCInfo<0> scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 373 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}}; |
| 374 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 375 | static void InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 376 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 377 | |
| 378 | { |
| 379 | void* ptr = &::dmi::_Event_default_instance_; |
| 380 | new (ptr) ::dmi::Event(); |
| 381 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 382 | } |
| 383 | ::dmi::Event::InitAsDefaultInstance(); |
| 384 | } |
| 385 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 386 | ::google::protobuf::internal::SCCInfo<5> scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = |
| 387 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, { |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 388 | &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 389 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 390 | &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 391 | &scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base, |
| 392 | &scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}}; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 393 | |
| 394 | void InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| 395 | ::google::protobuf::internal::InitSCC(&scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 396 | ::google::protobuf::internal::InitSCC(&scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 397 | ::google::protobuf::internal::InitSCC(&scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 398 | ::google::protobuf::internal::InitSCC(&scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 399 | ::google::protobuf::internal::InitSCC(&scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 400 | ::google::protobuf::internal::InitSCC(&scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 401 | ::google::protobuf::internal::InitSCC(&scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 402 | ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 403 | ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 404 | ::google::protobuf::internal::InitSCC(&scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 405 | ::google::protobuf::internal::InitSCC(&scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 406 | ::google::protobuf::internal::InitSCC(&scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 407 | ::google::protobuf::internal::InitSCC(&scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 408 | ::google::protobuf::internal::InitSCC(&scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 409 | ::google::protobuf::internal::InitSCC(&scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 410 | ::google::protobuf::internal::InitSCC(&scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 411 | ::google::protobuf::internal::InitSCC(&scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 412 | ::google::protobuf::internal::InitSCC(&scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 413 | } |
| 414 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 415 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[18]; |
| 416 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[4]; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 417 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = nullptr; |
| 418 | |
| 419 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 420 | ~0u, // no _has_bits_ |
| 421 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _internal_metadata_), |
| 422 | ~0u, // no _extensions_ |
| 423 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _oneof_case_[0]), |
| 424 | ~0u, // no _weak_field_map_ |
| 425 | offsetof(::dmi::ValueTypeDefaultTypeInternal, int_val_), |
| 426 | offsetof(::dmi::ValueTypeDefaultTypeInternal, uint_val_), |
| 427 | offsetof(::dmi::ValueTypeDefaultTypeInternal, float_val_), |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 428 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, typeofval_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 429 | PROTOBUF_FIELD_OFFSET(::dmi::ValueType, val_), |
| 430 | ~0u, // no _has_bits_ |
| 431 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, _internal_metadata_), |
| 432 | ~0u, // no _extensions_ |
| 433 | ~0u, // no _oneof_case_ |
| 434 | ~0u, // no _weak_field_map_ |
| 435 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, high_), |
| 436 | PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, low_), |
| 437 | ~0u, // no _has_bits_ |
| 438 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _internal_metadata_), |
| 439 | ~0u, // no _extensions_ |
| 440 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _oneof_case_[0]), |
| 441 | ~0u, // no _weak_field_map_ |
| 442 | offsetof(::dmi::ThresholdsDefaultTypeInternal, upper_), |
| 443 | offsetof(::dmi::ThresholdsDefaultTypeInternal, lower_), |
| 444 | PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, threshold_), |
| 445 | ~0u, // no _has_bits_ |
| 446 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, _internal_metadata_), |
| 447 | ~0u, // no _extensions_ |
| 448 | ~0u, // no _oneof_case_ |
| 449 | ~0u, // no _weak_field_map_ |
| 450 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, observed_value_), |
| 451 | PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, thresholds_), |
| 452 | ~0u, // no _has_bits_ |
| 453 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, _internal_metadata_), |
| 454 | ~0u, // no _extensions_ |
| 455 | ~0u, // no _oneof_case_ |
| 456 | ~0u, // no _weak_field_map_ |
| 457 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, event_id_), |
| 458 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, is_configured_), |
| 459 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, thresholds_), |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 460 | PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, component_uuid_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 461 | ~0u, // no _has_bits_ |
| 462 | PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, _internal_metadata_), |
| 463 | ~0u, // no _extensions_ |
| 464 | ~0u, // no _oneof_case_ |
| 465 | ~0u, // no _weak_field_map_ |
| 466 | PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, items_), |
| 467 | ~0u, // no _has_bits_ |
| 468 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, _internal_metadata_), |
| 469 | ~0u, // no _extensions_ |
| 470 | ~0u, // no _oneof_case_ |
| 471 | ~0u, // no _weak_field_map_ |
| 472 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, status_), |
| 473 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_), |
| 474 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, events_), |
| 475 | PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_detail_), |
| 476 | ~0u, // no _has_bits_ |
| 477 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _internal_metadata_), |
| 478 | ~0u, // no _extensions_ |
| 479 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _oneof_case_[0]), |
| 480 | ~0u, // no _weak_field_map_ |
| 481 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, device_uuid_), |
| 482 | offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, changes_), |
| 483 | offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, reset_to_default_), |
| 484 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, operation_), |
| 485 | ~0u, // no _has_bits_ |
| 486 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, _internal_metadata_), |
| 487 | ~0u, // no _extensions_ |
| 488 | ~0u, // no _oneof_case_ |
| 489 | ~0u, // no _weak_field_map_ |
| 490 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, status_), |
| 491 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_), |
| 492 | PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_detail_), |
| 493 | ~0u, // no _has_bits_ |
| 494 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, _internal_metadata_), |
| 495 | ~0u, // no _extensions_ |
| 496 | ~0u, // no _oneof_case_ |
| 497 | ~0u, // no _weak_field_map_ |
| 498 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, device_uuid_), |
| 499 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_uuid_), |
| 500 | PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_name_), |
| 501 | ~0u, // no _has_bits_ |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 502 | PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, _internal_metadata_), |
| 503 | ~0u, // no _extensions_ |
| 504 | ~0u, // no _oneof_case_ |
| 505 | ~0u, // no _weak_field_map_ |
| 506 | PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, old_), |
| 507 | PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, new__), |
| 508 | ~0u, // no _has_bits_ |
| 509 | PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, _internal_metadata_), |
| 510 | ~0u, // no _extensions_ |
| 511 | ~0u, // no _oneof_case_ |
| 512 | ~0u, // no _weak_field_map_ |
| 513 | PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, old_), |
| 514 | PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, new__), |
| 515 | ~0u, // no _has_bits_ |
| 516 | PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, _internal_metadata_), |
| 517 | ~0u, // no _extensions_ |
| 518 | ~0u, // no _oneof_case_ |
| 519 | ~0u, // no _weak_field_map_ |
| 520 | PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, old_), |
| 521 | PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, new__), |
| 522 | ~0u, // no _has_bits_ |
| 523 | PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, _internal_metadata_), |
| 524 | ~0u, // no _extensions_ |
| 525 | ~0u, // no _oneof_case_ |
| 526 | ~0u, // no _weak_field_map_ |
| 527 | PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, old_), |
| 528 | PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, new__), |
| 529 | ~0u, // no _has_bits_ |
| 530 | PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, _internal_metadata_), |
| 531 | ~0u, // no _extensions_ |
| 532 | ~0u, // no _oneof_case_ |
| 533 | ~0u, // no _weak_field_map_ |
| 534 | PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, old_), |
| 535 | PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, new__), |
| 536 | ~0u, // no _has_bits_ |
| 537 | PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, _internal_metadata_), |
| 538 | ~0u, // no _extensions_ |
| 539 | PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, _oneof_case_[0]), |
| 540 | ~0u, // no _weak_field_map_ |
| 541 | offsetof(::dmi::StateChangeInfoDefaultTypeInternal, admin_state_change_), |
| 542 | offsetof(::dmi::StateChangeInfoDefaultTypeInternal, oper_state_change_), |
| 543 | offsetof(::dmi::StateChangeInfoDefaultTypeInternal, alarm_state_change_), |
| 544 | offsetof(::dmi::StateChangeInfoDefaultTypeInternal, usage_state_change_), |
| 545 | offsetof(::dmi::StateChangeInfoDefaultTypeInternal, standby_state_change_), |
| 546 | PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, state_change_), |
| 547 | ~0u, // no _has_bits_ |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 548 | PROTOBUF_FIELD_OFFSET(::dmi::GenericEventInfo, _internal_metadata_), |
| 549 | ~0u, // no _extensions_ |
| 550 | ~0u, // no _oneof_case_ |
| 551 | ~0u, // no _weak_field_map_ |
| 552 | PROTOBUF_FIELD_OFFSET(::dmi::GenericEventInfo, message_), |
| 553 | PROTOBUF_FIELD_OFFSET(::dmi::GenericEventInfo, message_code_), |
| 554 | PROTOBUF_FIELD_OFFSET(::dmi::GenericEventInfo, severity_), |
| 555 | ~0u, // no _has_bits_ |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 556 | PROTOBUF_FIELD_OFFSET(::dmi::Event, _internal_metadata_), |
| 557 | ~0u, // no _extensions_ |
| 558 | ~0u, // no _oneof_case_ |
| 559 | ~0u, // no _weak_field_map_ |
| 560 | PROTOBUF_FIELD_OFFSET(::dmi::Event, event_metadata_), |
| 561 | PROTOBUF_FIELD_OFFSET(::dmi::Event, event_id_), |
| 562 | PROTOBUF_FIELD_OFFSET(::dmi::Event, raised_ts_), |
| 563 | PROTOBUF_FIELD_OFFSET(::dmi::Event, threshold_info_), |
| 564 | PROTOBUF_FIELD_OFFSET(::dmi::Event, add_info_), |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 565 | PROTOBUF_FIELD_OFFSET(::dmi::Event, state_change_info_), |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 566 | PROTOBUF_FIELD_OFFSET(::dmi::Event, generic_event_info_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 567 | }; |
| 568 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 569 | { 0, -1, sizeof(::dmi::ValueType)}, |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 570 | { 10, -1, sizeof(::dmi::WaterMarks)}, |
| 571 | { 17, -1, sizeof(::dmi::Thresholds)}, |
| 572 | { 25, -1, sizeof(::dmi::ThresholdInformation)}, |
| 573 | { 32, -1, sizeof(::dmi::EventCfg)}, |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 574 | { 41, -1, sizeof(::dmi::EventsCfg)}, |
| 575 | { 47, -1, sizeof(::dmi::ListEventsResponse)}, |
| 576 | { 56, -1, sizeof(::dmi::EventsConfigurationRequest)}, |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 577 | { 65, -1, sizeof(::dmi::EventsConfigurationResponse)}, |
| 578 | { 73, -1, sizeof(::dmi::EventMetaData)}, |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 579 | { 81, -1, sizeof(::dmi::AdminStateChange)}, |
| 580 | { 88, -1, sizeof(::dmi::OperStateChange)}, |
| 581 | { 95, -1, sizeof(::dmi::AlarmStateChange)}, |
| 582 | { 102, -1, sizeof(::dmi::UsageStateChange)}, |
| 583 | { 109, -1, sizeof(::dmi::StandbyStateChange)}, |
| 584 | { 116, -1, sizeof(::dmi::StateChangeInfo)}, |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 585 | { 127, -1, sizeof(::dmi::GenericEventInfo)}, |
| 586 | { 135, -1, sizeof(::dmi::Event)}, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 587 | }; |
| 588 | |
| 589 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 590 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ValueType_default_instance_), |
| 591 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_WaterMarks_default_instance_), |
| 592 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Thresholds_default_instance_), |
| 593 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ThresholdInformation_default_instance_), |
| 594 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventCfg_default_instance_), |
| 595 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsCfg_default_instance_), |
| 596 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ListEventsResponse_default_instance_), |
| 597 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationRequest_default_instance_), |
| 598 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationResponse_default_instance_), |
| 599 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventMetaData_default_instance_), |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 600 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_AdminStateChange_default_instance_), |
| 601 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_OperStateChange_default_instance_), |
| 602 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_AlarmStateChange_default_instance_), |
| 603 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_UsageStateChange_default_instance_), |
| 604 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StandbyStateChange_default_instance_), |
| 605 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StateChangeInfo_default_instance_), |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 606 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GenericEventInfo_default_instance_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 607 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Event_default_instance_), |
| 608 | }; |
| 609 | |
| 610 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = { |
| 611 | {}, AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, "dmi/hw_events_mgmt_service.proto", schemas, |
| 612 | file_default_instances, TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets, |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 613 | file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 18, file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 614 | }; |
| 615 | |
| 616 | const char descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[] = |
| 617 | "\n dmi/hw_events_mgmt_service.proto\022\003dmi\032" |
| 618 | "\021dmi/commons.proto\032\014dmi/hw.proto\032\037google" |
| Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 619 | "/protobuf/timestamp.proto\032\033google/protob" |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 620 | "uf/empty.proto\"u\n\tValueType\022\021\n\007int_val\030\001" |
| Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 621 | " \001(\003H\000\022\022\n\010uint_val\030\002 \001(\004H\000\022\023\n\tfloat_val\030" |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 622 | "\003 \001(\002H\000\022%\n\ttypeOfVal\030\004 \001(\0162\022.dmi.DataVal" |
| 623 | "ueTypeB\005\n\003val\"G\n\nWaterMarks\022\034\n\004high\030\001 \001(" |
| 624 | "\0132\016.dmi.ValueType\022\033\n\003low\030\002 \001(\0132\016.dmi.Val" |
| 625 | "ueType\"]\n\nThresholds\022 \n\005upper\030\001 \001(\0132\017.dm" |
| 626 | "i.WaterMarksH\000\022 \n\005lower\030\002 \001(\0132\017.dmi.Wate" |
| 627 | "rMarksH\000B\013\n\tthreshold\"c\n\024ThresholdInform" |
| 628 | "ation\022&\n\016observed_value\030\001 \001(\0132\016.dmi.Valu" |
| 629 | "eType\022#\n\nthresholds\030\002 \001(\0132\017.dmi.Threshol" |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 630 | "ds\"\212\001\n\010EventCfg\022\037\n\010event_id\030\001 \001(\0162\r.dmi." |
| 631 | "EventIds\022\025\n\ris_configured\030\002 \001(\010\022#\n\nthres" |
| 632 | "holds\030\003 \001(\0132\017.dmi.Thresholds\022!\n\016componen" |
| 633 | "t_uuid\030\004 \001(\0132\t.dmi.Uuid\")\n\tEventsCfg\022\034\n\005" |
| 634 | "items\030\001 \003(\0132\r.dmi.EventCfg\"\370\001\n\022ListEvent" |
| 635 | "sResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\022." |
| 636 | "\n\006reason\030\002 \001(\0162\036.dmi.ListEventsResponse." |
| 637 | "Reason\022\036\n\006events\030\003 \001(\0132\016.dmi.EventsCfg\022\025" |
| 638 | "\n\rreason_detail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEF" |
| 639 | "INED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INT" |
| 640 | "ERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"\210\001" |
| 641 | "\n\032EventsConfigurationRequest\022\036\n\013device_u" |
| 642 | "uid\030\001 \001(\0132\t.dmi.Uuid\022!\n\007changes\030\002 \001(\0132\016." |
| 643 | "dmi.EventsCfgH\000\022\032\n\020reset_to_default\030\003 \001(" |
| 644 | "\010H\000B\013\n\toperation\"\376\001\n\033EventsConfiguration" |
| 645 | "Response\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0227\n" |
| 646 | "\006reason\030\002 \001(\0162\'.dmi.EventsConfigurationR" |
| 647 | "esponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"r\n" |
| 648 | "\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN" |
| 649 | "_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\022\n\016INVALID" |
| 650 | "_CONFIG\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"j\n\rEve" |
| 651 | "ntMetaData\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uu" |
| 652 | "id\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.Uuid\022\026\n" |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 653 | "\016component_name\030\003 \001(\t\"`\n\020AdminStateChang" |
| 654 | "e\022%\n\003old\030\001 \001(\0162\030.dmi.ComponentAdminState" |
| 655 | "\022%\n\003new\030\002 \001(\0162\030.dmi.ComponentAdminState\"" |
| 656 | "]\n\017OperStateChange\022$\n\003old\030\001 \001(\0162\027.dmi.Co" |
| 657 | "mponentOperState\022$\n\003new\030\002 \001(\0162\027.dmi.Comp" |
| 658 | "onentOperState\"`\n\020AlarmStateChange\022%\n\003ol" |
| 659 | "d\030\001 \001(\0162\030.dmi.ComponentAlarmState\022%\n\003new" |
| 660 | "\030\002 \001(\0162\030.dmi.ComponentAlarmState\"`\n\020Usag" |
| 661 | "eStateChange\022%\n\003old\030\001 \001(\0162\030.dmi.Componen" |
| 662 | "tUsageState\022%\n\003new\030\002 \001(\0162\030.dmi.Component" |
| 663 | "UsageState\"f\n\022StandbyStateChange\022\'\n\003old\030" |
| 664 | "\001 \001(\0162\032.dmi.ComponentStandbyState\022\'\n\003new" |
| 665 | "\030\002 \001(\0162\032.dmi.ComponentStandbyState\"\254\002\n\017S" |
| 666 | "tateChangeInfo\0223\n\022admin_state_change\030\001 \001" |
| 667 | "(\0132\025.dmi.AdminStateChangeH\000\0221\n\021oper_stat" |
| 668 | "e_change\030\002 \001(\0132\024.dmi.OperStateChangeH\000\0223" |
| 669 | "\n\022alarm_state_change\030\003 \001(\0132\025.dmi.AlarmSt" |
| 670 | "ateChangeH\000\0223\n\022usage_state_change\030\004 \001(\0132" |
| 671 | "\025.dmi.UsageStateChangeH\000\0227\n\024standby_stat" |
| 672 | "e_change\030\005 \001(\0132\027.dmi.StandbyStateChangeH" |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 673 | "\000B\016\n\014state_change\"\333\001\n\020GenericEventInfo\022\017" |
| 674 | "\n\007message\030\001 \001(\t\022\024\n\014message_code\030\002 \001(\t\0225\n" |
| 675 | "\010severity\030\003 \001(\0162#.dmi.GenericEventInfo.E" |
| 676 | "ventSeverity\"i\n\rEventSeverity\022\036\n\032EVENT_S" |
| 677 | "EVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\t\n\005M" |
| 678 | "AJOR\020\002\022\t\n\005MINOR\020\003\022\n\n\006NORMAL\020\004\022\010\n\004INFO\020\005\"" |
| 679 | "\254\002\n\005Event\022*\n\016event_metadata\030\001 \001(\0132\022.dmi." |
| 680 | "EventMetaData\022\037\n\010event_id\030\002 \001(\0162\r.dmi.Ev" |
| 681 | "entIds\022-\n\traised_ts\030\003 \001(\0132\032.google.proto" |
| 682 | "buf.Timestamp\0221\n\016threshold_info\030\004 \001(\0132\031." |
| 683 | "dmi.ThresholdInformation\022\020\n\010add_info\030\005 \001" |
| 684 | "(\t\022/\n\021state_change_info\030\006 \001(\0132\024.dmi.Stat" |
| 685 | "eChangeInfo\0221\n\022generic_event_info\030\007 \001(\0132" |
| 686 | "\025.dmi.GenericEventInfo*\331\024\n\010EventIds\022\030\n\024E" |
| 687 | "VENT_NAME_UNDEFINED\020\000\022\036\n\032EVENT_TRANSCEIV" |
| 688 | "ER_PLUG_OUT\020d\022\035\n\031EVENT_TRANSCEIVER_PLUG_" |
| 689 | "IN\020e\022-\n)EVENT_TRANSCEIVER_VOLTAGE_ABOVE_" |
| 690 | "THRESHOLD\020f\022-\n)EVENT_TRANSCEIVER_VOLTAGE" |
| 691 | "_BELOW_THRESHOLD\020g\0221\n-EVENT_TRANSCEIVER_" |
| 692 | "TEMPERATURE_ABOVE_THRESHOLD\020h\0221\n-EVENT_T" |
| 693 | "RANSCEIVER_TEMPERATURE_BELOW_THRESHOLD\020i" |
| 694 | "\022-\n)EVENT_TRANSCEIVER_CURRENT_ABOVE_THRE" |
| 695 | "SHOLD\020j\022-\n)EVENT_TRANSCEIVER_CURRENT_BEL" |
| 696 | "OW_THRESHOLD\020k\022.\n*EVENT_TRANSCEIVER_RX_P" |
| 697 | "OWER_ABOVE_THRESHOLD\020l\022.\n*EVENT_TRANSCEI" |
| 698 | "VER_RX_POWER_BELOW_THRESHOLD\020m\022.\n*EVENT_" |
| 699 | "TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD\020n\022." |
| 700 | "\n*EVENT_TRANSCEIVER_TX_POWER_BELOW_THRES" |
| 701 | "HOLD\020o\022\035\n\031EVENT_TRANSCEIVER_FAILURE\020p\0227\n" |
| 702 | "3EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHO" |
| 703 | "LD_RECOVERED\020q\0227\n3EVENT_TRANSCEIVER_VOLT" |
| 704 | "AGE_BELOW_THRESHOLD_RECOVERED\020r\022;\n7EVENT" |
| 705 | "_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD" |
| 706 | "_RECOVERED\020s\022;\n7EVENT_TRANSCEIVER_TEMPER" |
| 707 | "ATURE_BELOW_THRESHOLD_RECOVERED\020t\0227\n3EVE" |
| 708 | "NT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_R" |
| 709 | "ECOVERED\020u\0227\n3EVENT_TRANSCEIVER_CURRENT_" |
| 710 | "BELOW_THRESHOLD_RECOVERED\020v\0228\n4EVENT_TRA" |
| 711 | "NSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVE" |
| 712 | "RED\020w\0228\n4EVENT_TRANSCEIVER_RX_POWER_BELO" |
| 713 | "W_THRESHOLD_RECOVERED\020x\0228\n4EVENT_TRANSCE" |
| 714 | "IVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED\020" |
| 715 | "y\0228\n4EVENT_TRANSCEIVER_TX_POWER_BELOW_TH" |
| 716 | "RESHOLD_RECOVERED\020z\022\'\n#EVENT_TRANSCEIVER" |
| 717 | "_FAILURE_RECOVERED\020{\022\027\n\022EVENT_PSU_PLUG_O" |
| 718 | "UT\020\310\001\022\026\n\021EVENT_PSU_PLUG_IN\020\311\001\022\026\n\021EVENT_P" |
| 719 | "SU_FAILURE\020\312\001\022 \n\033EVENT_PSU_FAILURE_RECOV" |
| 720 | "ERED\020\313\001\022\026\n\021EVENT_FAN_FAILURE\020\254\002\022\027\n\022EVENT" |
| 721 | "_FAN_PLUG_OUT\020\255\002\022\026\n\021EVENT_FAN_PLUG_IN\020\256\002" |
| 722 | "\022 \n\033EVENT_FAN_FAILURE_RECOVERED\020\257\002\022)\n$EV" |
| 723 | "ENT_CPU_TEMPERATURE_ABOVE_CRITICAL\020\220\003\022&\n" |
| 724 | "!EVENT_CPU_TEMPERATURE_ABOVE_FATAL\020\221\003\0223\n" |
| 725 | ".EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RE" |
| 726 | "COVERED\020\222\003\0220\n+EVENT_CPU_TEMPERATURE_ABOV" |
| 727 | "E_FATAL_RECOVERED\020\223\003\022$\n\037EVENT_CPU_USAGE_" |
| 728 | "ABOVE_THRESHOLD\020\224\003\022.\n)EVENT_CPU_USAGE_AB" |
| 729 | "OVE_THRESHOLD_RECOVERED\020\225\003\022\032\n\025EVENT_HW_D" |
| 730 | "EVICE_RESET\020\364\003\022/\n*EVENT_HW_DEVICE_TEMPER" |
| 731 | "ATURE_ABOVE_CRITICAL\020\365\003\022,\n\'EVENT_HW_DEVI" |
| 732 | "CE_TEMPERATURE_ABOVE_FATAL\020\366\003\0229\n4EVENT_H" |
| 733 | "W_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECO" |
| 734 | "VERED\020\367\003\0226\n1EVENT_HW_DEVICE_TEMPERATURE_" |
| 735 | "ABOVE_FATAL_RECOVERED\020\370\003\022\033\n\026EVENT_HW_DEV" |
| 736 | "ICE_REBOOT\020\371\003\022\'\n\"EVENT_HW_TEMPERATURE_SE" |
| 737 | "NSOR_FAILED\020\372\003\022,\n\'EVENT_HW_ALL_TEMPERATU" |
| 738 | "RE_SENSORS_FAILED\020\373\003\022(\n#EVENT_HW_DISK_US" |
| 739 | "AGE_ABOVE_THRESHOLD\020\374\003\0222\n-EVENT_HW_DISK_" |
| 740 | "USAGE_ABOVE_THRESHOLD_RECOVERED\020\375\003\022*\n%EV" |
| 741 | "ENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD\020\376\003\0224" |
| 742 | "\n/EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_" |
| 743 | "RECOVERED\020\377\003\022\036\n\031EVENT_HW_NTP_SYNC_FAILUR" |
| 744 | "E\020\200\004\022(\n#EVENT_HW_NTP_SYNC_FAILURE_RECOVE" |
| 745 | "RED\020\201\004\022\035\n\030EVENT_LINE_CARD_PLUG_OUT\020\330\004\022\034\n" |
| 746 | "\027EVENT_LINE_CARD_PLUG_IN\020\331\004\022(\n#EVENT_COM" |
| 747 | "PONENT_ADMIN_STATE_CHANGED\020\274\005\022\'\n\"EVENT_C" |
| 748 | "OMPONENT_OPER_STATE_CHANGED\020\275\005\022(\n#EVENT_" |
| 749 | "COMPONENT_ALARM_STATE_CHANGED\020\276\005\022(\n#EVEN" |
| 750 | "T_COMPONENT_USAGE_STATE_CHANGED\020\277\005\022*\n%EV" |
| 751 | "ENT_COMPONENT_STANDBY_STATE_CHANGED\020\300\005\022\"" |
| 752 | "\n\035EVENT_COMPONENT_GENERIC_EVENT\020\301\0052\355\001\n\035N" |
| 753 | "ativeEventsManagementService\0226\n\nListEven" |
| 754 | "ts\022\017.dmi.HardwareID\032\027.dmi.ListEventsResp" |
| 755 | "onse\022^\n\031UpdateEventsConfiguration\022\037.dmi." |
| 756 | "EventsConfigurationRequest\032 .dmi.EventsC" |
| 757 | "onfigurationResponse\0224\n\014StreamEvents\022\026.g" |
| 758 | "oogle.protobuf.Empty\032\n.dmi.Event0\001B;Z9gi" |
| 759 | "thub.com/opencord/device-management-inte" |
| 760 | "rface/v3/go/dmib\006proto3" |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 761 | ; |
| 762 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = { |
| 763 | false, InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
| 764 | descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 765 | "dmi/hw_events_mgmt_service.proto", &assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 5743, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 766 | }; |
| 767 | |
| 768 | void AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() { |
| Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 769 | static constexpr ::google::protobuf::internal::InitFunc deps[4] = |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 770 | { |
| 771 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 772 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 773 | ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, |
| Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 774 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 775 | }; |
| Chandrakanth Nalkudre Gowda | 68590a4 | 2021-04-22 15:19:21 +0530 | [diff] [blame] | 776 | ::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] | 777 | } |
| 778 | |
| 779 | // Force running AddDescriptors() at dynamic initialization time. |
| 780 | static bool dynamic_init_dummy_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto(); return true; }(); |
| 781 | namespace dmi { |
| 782 | const ::google::protobuf::EnumDescriptor* ListEventsResponse_Reason_descriptor() { |
| 783 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 784 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[0]; |
| 785 | } |
| 786 | bool ListEventsResponse_Reason_IsValid(int value) { |
| 787 | switch (value) { |
| 788 | case 0: |
| 789 | case 1: |
| 790 | case 2: |
| 791 | case 3: |
| 792 | return true; |
| 793 | default: |
| 794 | return false; |
| 795 | } |
| 796 | } |
| 797 | |
| 798 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 799 | const ListEventsResponse_Reason ListEventsResponse::UNDEFINED_REASON; |
| 800 | const ListEventsResponse_Reason ListEventsResponse::UNKNOWN_DEVICE; |
| 801 | const ListEventsResponse_Reason ListEventsResponse::INTERNAL_ERROR; |
| 802 | const ListEventsResponse_Reason ListEventsResponse::DEVICE_UNREACHABLE; |
| 803 | const ListEventsResponse_Reason ListEventsResponse::Reason_MIN; |
| 804 | const ListEventsResponse_Reason ListEventsResponse::Reason_MAX; |
| 805 | const int ListEventsResponse::Reason_ARRAYSIZE; |
| 806 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 807 | const ::google::protobuf::EnumDescriptor* EventsConfigurationResponse_Reason_descriptor() { |
| 808 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 809 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[1]; |
| 810 | } |
| 811 | bool EventsConfigurationResponse_Reason_IsValid(int value) { |
| 812 | switch (value) { |
| 813 | case 0: |
| 814 | case 1: |
| 815 | case 2: |
| 816 | case 3: |
| 817 | case 4: |
| 818 | return true; |
| 819 | default: |
| 820 | return false; |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 825 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNDEFINED_REASON; |
| 826 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNKNOWN_DEVICE; |
| 827 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::INTERNAL_ERROR; |
| 828 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::INVALID_CONFIG; |
| 829 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::DEVICE_UNREACHABLE; |
| 830 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MIN; |
| 831 | const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MAX; |
| 832 | const int EventsConfigurationResponse::Reason_ARRAYSIZE; |
| 833 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 834 | const ::google::protobuf::EnumDescriptor* GenericEventInfo_EventSeverity_descriptor() { |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 835 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 836 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[2]; |
| 837 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 838 | bool GenericEventInfo_EventSeverity_IsValid(int value) { |
| 839 | switch (value) { |
| 840 | case 0: |
| 841 | case 1: |
| 842 | case 2: |
| 843 | case 3: |
| 844 | case 4: |
| 845 | case 5: |
| 846 | return true; |
| 847 | default: |
| 848 | return false; |
| 849 | } |
| 850 | } |
| 851 | |
| 852 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 853 | const GenericEventInfo_EventSeverity GenericEventInfo::EVENT_SEVERITY_UNSPECIFIED; |
| 854 | const GenericEventInfo_EventSeverity GenericEventInfo::CRITICAL; |
| 855 | const GenericEventInfo_EventSeverity GenericEventInfo::MAJOR; |
| 856 | const GenericEventInfo_EventSeverity GenericEventInfo::MINOR; |
| 857 | const GenericEventInfo_EventSeverity GenericEventInfo::NORMAL; |
| 858 | const GenericEventInfo_EventSeverity GenericEventInfo::INFO; |
| 859 | const GenericEventInfo_EventSeverity GenericEventInfo::EventSeverity_MIN; |
| 860 | const GenericEventInfo_EventSeverity GenericEventInfo::EventSeverity_MAX; |
| 861 | const int GenericEventInfo::EventSeverity_ARRAYSIZE; |
| 862 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 863 | const ::google::protobuf::EnumDescriptor* EventIds_descriptor() { |
| 864 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 865 | return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[3]; |
| 866 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 867 | bool EventIds_IsValid(int value) { |
| 868 | switch (value) { |
| 869 | case 0: |
| 870 | case 100: |
| 871 | case 101: |
| 872 | case 102: |
| 873 | case 103: |
| 874 | case 104: |
| 875 | case 105: |
| 876 | case 106: |
| 877 | case 107: |
| 878 | case 108: |
| 879 | case 109: |
| 880 | case 110: |
| 881 | case 111: |
| 882 | case 112: |
| 883 | case 113: |
| 884 | case 114: |
| 885 | case 115: |
| 886 | case 116: |
| 887 | case 117: |
| 888 | case 118: |
| 889 | case 119: |
| 890 | case 120: |
| 891 | case 121: |
| 892 | case 122: |
| 893 | case 123: |
| 894 | case 200: |
| 895 | case 201: |
| 896 | case 202: |
| 897 | case 203: |
| 898 | case 300: |
| 899 | case 301: |
| 900 | case 302: |
| 901 | case 303: |
| 902 | case 400: |
| 903 | case 401: |
| 904 | case 402: |
| 905 | case 403: |
| amit.ghosh | 06f4978 | 2023-06-15 13:53:51 +0200 | [diff] [blame] | 906 | case 404: |
| 907 | case 405: |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 908 | case 500: |
| 909 | case 501: |
| 910 | case 502: |
| 911 | case 503: |
| 912 | case 504: |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 913 | case 505: |
| amit.ghosh | 8fe610f | 2022-01-14 17:44:53 +0100 | [diff] [blame] | 914 | case 506: |
| 915 | case 507: |
| amit.ghosh | 06f4978 | 2023-06-15 13:53:51 +0200 | [diff] [blame] | 916 | case 508: |
| 917 | case 509: |
| 918 | case 510: |
| 919 | case 511: |
| 920 | case 512: |
| 921 | case 513: |
| amit.ghosh | c0c3c24 | 2022-03-16 11:00:27 +0100 | [diff] [blame] | 922 | case 600: |
| 923 | case 601: |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 924 | case 700: |
| 925 | case 701: |
| 926 | case 702: |
| 927 | case 703: |
| 928 | case 704: |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 929 | case 705: |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 930 | return true; |
| 931 | default: |
| 932 | return false; |
| 933 | } |
| 934 | } |
| 935 | |
| 936 | |
| 937 | // =================================================================== |
| 938 | |
| 939 | void ValueType::InitAsDefaultInstance() { |
| 940 | ::dmi::_ValueType_default_instance_.int_val_ = PROTOBUF_LONGLONG(0); |
| 941 | ::dmi::_ValueType_default_instance_.uint_val_ = PROTOBUF_ULONGLONG(0); |
| 942 | ::dmi::_ValueType_default_instance_.float_val_ = 0; |
| 943 | } |
| 944 | class ValueType::HasBitSetters { |
| 945 | public: |
| 946 | }; |
| 947 | |
| 948 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 949 | const int ValueType::kIntValFieldNumber; |
| 950 | const int ValueType::kUintValFieldNumber; |
| 951 | const int ValueType::kFloatValFieldNumber; |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 952 | const int ValueType::kTypeOfValFieldNumber; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 953 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 954 | |
| 955 | ValueType::ValueType() |
| 956 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 957 | SharedCtor(); |
| 958 | // @@protoc_insertion_point(constructor:dmi.ValueType) |
| 959 | } |
| 960 | ValueType::ValueType(const ValueType& from) |
| 961 | : ::google::protobuf::Message(), |
| 962 | _internal_metadata_(nullptr) { |
| 963 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 964 | typeofval_ = from.typeofval_; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 965 | clear_has_val(); |
| 966 | switch (from.val_case()) { |
| 967 | case kIntVal: { |
| 968 | set_int_val(from.int_val()); |
| 969 | break; |
| 970 | } |
| 971 | case kUintVal: { |
| 972 | set_uint_val(from.uint_val()); |
| 973 | break; |
| 974 | } |
| 975 | case kFloatVal: { |
| 976 | set_float_val(from.float_val()); |
| 977 | break; |
| 978 | } |
| 979 | case VAL_NOT_SET: { |
| 980 | break; |
| 981 | } |
| 982 | } |
| 983 | // @@protoc_insertion_point(copy_constructor:dmi.ValueType) |
| 984 | } |
| 985 | |
| 986 | void ValueType::SharedCtor() { |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 987 | typeofval_ = 0; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 988 | clear_has_val(); |
| 989 | } |
| 990 | |
| 991 | ValueType::~ValueType() { |
| 992 | // @@protoc_insertion_point(destructor:dmi.ValueType) |
| 993 | SharedDtor(); |
| 994 | } |
| 995 | |
| 996 | void ValueType::SharedDtor() { |
| 997 | if (has_val()) { |
| 998 | clear_val(); |
| 999 | } |
| 1000 | } |
| 1001 | |
| 1002 | void ValueType::SetCachedSize(int size) const { |
| 1003 | _cached_size_.Set(size); |
| 1004 | } |
| 1005 | const ValueType& ValueType::default_instance() { |
| 1006 | ::google::protobuf::internal::InitSCC(&::scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1007 | return *internal_default_instance(); |
| 1008 | } |
| 1009 | |
| 1010 | |
| 1011 | void ValueType::clear_val() { |
| 1012 | // @@protoc_insertion_point(one_of_clear_start:dmi.ValueType) |
| 1013 | switch (val_case()) { |
| 1014 | case kIntVal: { |
| 1015 | // No need to clear |
| 1016 | break; |
| 1017 | } |
| 1018 | case kUintVal: { |
| 1019 | // No need to clear |
| 1020 | break; |
| 1021 | } |
| 1022 | case kFloatVal: { |
| 1023 | // No need to clear |
| 1024 | break; |
| 1025 | } |
| 1026 | case VAL_NOT_SET: { |
| 1027 | break; |
| 1028 | } |
| 1029 | } |
| 1030 | _oneof_case_[0] = VAL_NOT_SET; |
| 1031 | } |
| 1032 | |
| 1033 | |
| 1034 | void ValueType::Clear() { |
| 1035 | // @@protoc_insertion_point(message_clear_start:dmi.ValueType) |
| 1036 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1037 | // Prevent compiler warnings about cached_has_bits being unused |
| 1038 | (void) cached_has_bits; |
| 1039 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1040 | typeofval_ = 0; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1041 | clear_val(); |
| 1042 | _internal_metadata_.Clear(); |
| 1043 | } |
| 1044 | |
| 1045 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1046 | const char* ValueType::_InternalParse(const char* begin, const char* end, void* object, |
| 1047 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1048 | auto msg = static_cast<ValueType*>(object); |
| 1049 | ::google::protobuf::int32 size; (void)size; |
| 1050 | int depth; (void)depth; |
| 1051 | ::google::protobuf::uint32 tag; |
| 1052 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1053 | auto ptr = begin; |
| 1054 | while (ptr < end) { |
| 1055 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1056 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1057 | switch (tag >> 3) { |
| 1058 | // int64 int_val = 1; |
| 1059 | case 1: { |
| 1060 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 1061 | msg->set_int_val(::google::protobuf::internal::ReadVarint(&ptr)); |
| 1062 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1063 | break; |
| 1064 | } |
| 1065 | // uint64 uint_val = 2; |
| 1066 | case 2: { |
| 1067 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 1068 | msg->set_uint_val(::google::protobuf::internal::ReadVarint(&ptr)); |
| 1069 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1070 | break; |
| 1071 | } |
| 1072 | // float float_val = 3; |
| 1073 | case 3: { |
| 1074 | if (static_cast<::google::protobuf::uint8>(tag) != 29) goto handle_unusual; |
| 1075 | msg->set_float_val(::google::protobuf::io::UnalignedLoad<float>(ptr)); |
| 1076 | ptr += sizeof(float); |
| 1077 | break; |
| 1078 | } |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1079 | // .dmi.DataValueType typeOfVal = 4; |
| 1080 | case 4: { |
| 1081 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 1082 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1083 | msg->set_typeofval(static_cast<::dmi::DataValueType>(val)); |
| 1084 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1085 | break; |
| 1086 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1087 | default: { |
| 1088 | handle_unusual: |
| 1089 | if ((tag & 7) == 4 || tag == 0) { |
| 1090 | ctx->EndGroup(tag); |
| 1091 | return ptr; |
| 1092 | } |
| 1093 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1094 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1095 | ptr = res.first; |
| 1096 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1097 | if (res.second) return ptr; |
| 1098 | } |
| 1099 | } // switch |
| 1100 | } // while |
| 1101 | return ptr; |
| 1102 | } |
| 1103 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1104 | bool ValueType::MergePartialFromCodedStream( |
| 1105 | ::google::protobuf::io::CodedInputStream* input) { |
| 1106 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1107 | ::google::protobuf::uint32 tag; |
| 1108 | // @@protoc_insertion_point(parse_start:dmi.ValueType) |
| 1109 | for (;;) { |
| 1110 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1111 | tag = p.first; |
| 1112 | if (!p.second) goto handle_unusual; |
| 1113 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1114 | // int64 int_val = 1; |
| 1115 | case 1: { |
| 1116 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 1117 | clear_val(); |
| 1118 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1119 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
| 1120 | input, &val_.int_val_))); |
| 1121 | set_has_int_val(); |
| 1122 | } else { |
| 1123 | goto handle_unusual; |
| 1124 | } |
| 1125 | break; |
| 1126 | } |
| 1127 | |
| 1128 | // uint64 uint_val = 2; |
| 1129 | case 2: { |
| 1130 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 1131 | clear_val(); |
| 1132 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1133 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
| 1134 | input, &val_.uint_val_))); |
| 1135 | set_has_uint_val(); |
| 1136 | } else { |
| 1137 | goto handle_unusual; |
| 1138 | } |
| 1139 | break; |
| 1140 | } |
| 1141 | |
| 1142 | // float float_val = 3; |
| 1143 | case 3: { |
| 1144 | if (static_cast< ::google::protobuf::uint8>(tag) == (29 & 0xFF)) { |
| 1145 | clear_val(); |
| 1146 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1147 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
| 1148 | input, &val_.float_val_))); |
| 1149 | set_has_float_val(); |
| 1150 | } else { |
| 1151 | goto handle_unusual; |
| 1152 | } |
| 1153 | break; |
| 1154 | } |
| 1155 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1156 | // .dmi.DataValueType typeOfVal = 4; |
| 1157 | case 4: { |
| 1158 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 1159 | int value = 0; |
| 1160 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1161 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1162 | input, &value))); |
| 1163 | set_typeofval(static_cast< ::dmi::DataValueType >(value)); |
| 1164 | } else { |
| 1165 | goto handle_unusual; |
| 1166 | } |
| 1167 | break; |
| 1168 | } |
| 1169 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1170 | default: { |
| 1171 | handle_unusual: |
| 1172 | if (tag == 0) { |
| 1173 | goto success; |
| 1174 | } |
| 1175 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1176 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1177 | break; |
| 1178 | } |
| 1179 | } |
| 1180 | } |
| 1181 | success: |
| 1182 | // @@protoc_insertion_point(parse_success:dmi.ValueType) |
| 1183 | return true; |
| 1184 | failure: |
| 1185 | // @@protoc_insertion_point(parse_failure:dmi.ValueType) |
| 1186 | return false; |
| 1187 | #undef DO_ |
| 1188 | } |
| 1189 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1190 | |
| 1191 | void ValueType::SerializeWithCachedSizes( |
| 1192 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1193 | // @@protoc_insertion_point(serialize_start:dmi.ValueType) |
| 1194 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1195 | (void) cached_has_bits; |
| 1196 | |
| 1197 | // int64 int_val = 1; |
| 1198 | if (has_int_val()) { |
| 1199 | ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->int_val(), output); |
| 1200 | } |
| 1201 | |
| 1202 | // uint64 uint_val = 2; |
| 1203 | if (has_uint_val()) { |
| 1204 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->uint_val(), output); |
| 1205 | } |
| 1206 | |
| 1207 | // float float_val = 3; |
| 1208 | if (has_float_val()) { |
| 1209 | ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->float_val(), output); |
| 1210 | } |
| 1211 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1212 | // .dmi.DataValueType typeOfVal = 4; |
| 1213 | if (this->typeofval() != 0) { |
| 1214 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1215 | 4, this->typeofval(), output); |
| 1216 | } |
| 1217 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1218 | if (_internal_metadata_.have_unknown_fields()) { |
| 1219 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1220 | _internal_metadata_.unknown_fields(), output); |
| 1221 | } |
| 1222 | // @@protoc_insertion_point(serialize_end:dmi.ValueType) |
| 1223 | } |
| 1224 | |
| 1225 | ::google::protobuf::uint8* ValueType::InternalSerializeWithCachedSizesToArray( |
| 1226 | ::google::protobuf::uint8* target) const { |
| 1227 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ValueType) |
| 1228 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1229 | (void) cached_has_bits; |
| 1230 | |
| 1231 | // int64 int_val = 1; |
| 1232 | if (has_int_val()) { |
| 1233 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->int_val(), target); |
| 1234 | } |
| 1235 | |
| 1236 | // uint64 uint_val = 2; |
| 1237 | if (has_uint_val()) { |
| 1238 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->uint_val(), target); |
| 1239 | } |
| 1240 | |
| 1241 | // float float_val = 3; |
| 1242 | if (has_float_val()) { |
| 1243 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->float_val(), target); |
| 1244 | } |
| 1245 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1246 | // .dmi.DataValueType typeOfVal = 4; |
| 1247 | if (this->typeofval() != 0) { |
| 1248 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1249 | 4, this->typeofval(), target); |
| 1250 | } |
| 1251 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1252 | if (_internal_metadata_.have_unknown_fields()) { |
| 1253 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1254 | _internal_metadata_.unknown_fields(), target); |
| 1255 | } |
| 1256 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ValueType) |
| 1257 | return target; |
| 1258 | } |
| 1259 | |
| 1260 | size_t ValueType::ByteSizeLong() const { |
| 1261 | // @@protoc_insertion_point(message_byte_size_start:dmi.ValueType) |
| 1262 | size_t total_size = 0; |
| 1263 | |
| 1264 | if (_internal_metadata_.have_unknown_fields()) { |
| 1265 | total_size += |
| 1266 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1267 | _internal_metadata_.unknown_fields()); |
| 1268 | } |
| 1269 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1270 | // Prevent compiler warnings about cached_has_bits being unused |
| 1271 | (void) cached_has_bits; |
| 1272 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1273 | // .dmi.DataValueType typeOfVal = 4; |
| 1274 | if (this->typeofval() != 0) { |
| 1275 | total_size += 1 + |
| 1276 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->typeofval()); |
| 1277 | } |
| 1278 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1279 | switch (val_case()) { |
| 1280 | // int64 int_val = 1; |
| 1281 | case kIntVal: { |
| 1282 | total_size += 1 + |
| 1283 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 1284 | this->int_val()); |
| 1285 | break; |
| 1286 | } |
| 1287 | // uint64 uint_val = 2; |
| 1288 | case kUintVal: { |
| 1289 | total_size += 1 + |
| 1290 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 1291 | this->uint_val()); |
| 1292 | break; |
| 1293 | } |
| 1294 | // float float_val = 3; |
| 1295 | case kFloatVal: { |
| 1296 | total_size += 1 + 4; |
| 1297 | break; |
| 1298 | } |
| 1299 | case VAL_NOT_SET: { |
| 1300 | break; |
| 1301 | } |
| 1302 | } |
| 1303 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1304 | SetCachedSize(cached_size); |
| 1305 | return total_size; |
| 1306 | } |
| 1307 | |
| 1308 | void ValueType::MergeFrom(const ::google::protobuf::Message& from) { |
| 1309 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ValueType) |
| 1310 | GOOGLE_DCHECK_NE(&from, this); |
| 1311 | const ValueType* source = |
| 1312 | ::google::protobuf::DynamicCastToGenerated<ValueType>( |
| 1313 | &from); |
| 1314 | if (source == nullptr) { |
| 1315 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ValueType) |
| 1316 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1317 | } else { |
| 1318 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ValueType) |
| 1319 | MergeFrom(*source); |
| 1320 | } |
| 1321 | } |
| 1322 | |
| 1323 | void ValueType::MergeFrom(const ValueType& from) { |
| 1324 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ValueType) |
| 1325 | GOOGLE_DCHECK_NE(&from, this); |
| 1326 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1327 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1328 | (void) cached_has_bits; |
| 1329 | |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1330 | if (from.typeofval() != 0) { |
| 1331 | set_typeofval(from.typeofval()); |
| 1332 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1333 | switch (from.val_case()) { |
| 1334 | case kIntVal: { |
| 1335 | set_int_val(from.int_val()); |
| 1336 | break; |
| 1337 | } |
| 1338 | case kUintVal: { |
| 1339 | set_uint_val(from.uint_val()); |
| 1340 | break; |
| 1341 | } |
| 1342 | case kFloatVal: { |
| 1343 | set_float_val(from.float_val()); |
| 1344 | break; |
| 1345 | } |
| 1346 | case VAL_NOT_SET: { |
| 1347 | break; |
| 1348 | } |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | void ValueType::CopyFrom(const ::google::protobuf::Message& from) { |
| 1353 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ValueType) |
| 1354 | if (&from == this) return; |
| 1355 | Clear(); |
| 1356 | MergeFrom(from); |
| 1357 | } |
| 1358 | |
| 1359 | void ValueType::CopyFrom(const ValueType& from) { |
| 1360 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ValueType) |
| 1361 | if (&from == this) return; |
| 1362 | Clear(); |
| 1363 | MergeFrom(from); |
| 1364 | } |
| 1365 | |
| 1366 | bool ValueType::IsInitialized() const { |
| 1367 | return true; |
| 1368 | } |
| 1369 | |
| 1370 | void ValueType::Swap(ValueType* other) { |
| 1371 | if (other == this) return; |
| 1372 | InternalSwap(other); |
| 1373 | } |
| 1374 | void ValueType::InternalSwap(ValueType* other) { |
| 1375 | using std::swap; |
| 1376 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1377 | swap(typeofval_, other->typeofval_); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1378 | swap(val_, other->val_); |
| 1379 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 1380 | } |
| 1381 | |
| 1382 | ::google::protobuf::Metadata ValueType::GetMetadata() const { |
| 1383 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 1384 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 1385 | } |
| 1386 | |
| 1387 | |
| 1388 | // =================================================================== |
| 1389 | |
| 1390 | void WaterMarks::InitAsDefaultInstance() { |
| 1391 | ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->high_ = const_cast< ::dmi::ValueType*>( |
| 1392 | ::dmi::ValueType::internal_default_instance()); |
| 1393 | ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->low_ = const_cast< ::dmi::ValueType*>( |
| 1394 | ::dmi::ValueType::internal_default_instance()); |
| 1395 | } |
| 1396 | class WaterMarks::HasBitSetters { |
| 1397 | public: |
| 1398 | static const ::dmi::ValueType& high(const WaterMarks* msg); |
| 1399 | static const ::dmi::ValueType& low(const WaterMarks* msg); |
| 1400 | }; |
| 1401 | |
| 1402 | const ::dmi::ValueType& |
| 1403 | WaterMarks::HasBitSetters::high(const WaterMarks* msg) { |
| 1404 | return *msg->high_; |
| 1405 | } |
| 1406 | const ::dmi::ValueType& |
| 1407 | WaterMarks::HasBitSetters::low(const WaterMarks* msg) { |
| 1408 | return *msg->low_; |
| 1409 | } |
| 1410 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1411 | const int WaterMarks::kHighFieldNumber; |
| 1412 | const int WaterMarks::kLowFieldNumber; |
| 1413 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1414 | |
| 1415 | WaterMarks::WaterMarks() |
| 1416 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1417 | SharedCtor(); |
| 1418 | // @@protoc_insertion_point(constructor:dmi.WaterMarks) |
| 1419 | } |
| 1420 | WaterMarks::WaterMarks(const WaterMarks& from) |
| 1421 | : ::google::protobuf::Message(), |
| 1422 | _internal_metadata_(nullptr) { |
| 1423 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1424 | if (from.has_high()) { |
| 1425 | high_ = new ::dmi::ValueType(*from.high_); |
| 1426 | } else { |
| 1427 | high_ = nullptr; |
| 1428 | } |
| 1429 | if (from.has_low()) { |
| 1430 | low_ = new ::dmi::ValueType(*from.low_); |
| 1431 | } else { |
| 1432 | low_ = nullptr; |
| 1433 | } |
| 1434 | // @@protoc_insertion_point(copy_constructor:dmi.WaterMarks) |
| 1435 | } |
| 1436 | |
| 1437 | void WaterMarks::SharedCtor() { |
| 1438 | ::google::protobuf::internal::InitSCC( |
| 1439 | &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1440 | ::memset(&high_, 0, static_cast<size_t>( |
| 1441 | reinterpret_cast<char*>(&low_) - |
| 1442 | reinterpret_cast<char*>(&high_)) + sizeof(low_)); |
| 1443 | } |
| 1444 | |
| 1445 | WaterMarks::~WaterMarks() { |
| 1446 | // @@protoc_insertion_point(destructor:dmi.WaterMarks) |
| 1447 | SharedDtor(); |
| 1448 | } |
| 1449 | |
| 1450 | void WaterMarks::SharedDtor() { |
| 1451 | if (this != internal_default_instance()) delete high_; |
| 1452 | if (this != internal_default_instance()) delete low_; |
| 1453 | } |
| 1454 | |
| 1455 | void WaterMarks::SetCachedSize(int size) const { |
| 1456 | _cached_size_.Set(size); |
| 1457 | } |
| 1458 | const WaterMarks& WaterMarks::default_instance() { |
| 1459 | ::google::protobuf::internal::InitSCC(&::scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1460 | return *internal_default_instance(); |
| 1461 | } |
| 1462 | |
| 1463 | |
| 1464 | void WaterMarks::Clear() { |
| 1465 | // @@protoc_insertion_point(message_clear_start:dmi.WaterMarks) |
| 1466 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1467 | // Prevent compiler warnings about cached_has_bits being unused |
| 1468 | (void) cached_has_bits; |
| 1469 | |
| 1470 | if (GetArenaNoVirtual() == nullptr && high_ != nullptr) { |
| 1471 | delete high_; |
| 1472 | } |
| 1473 | high_ = nullptr; |
| 1474 | if (GetArenaNoVirtual() == nullptr && low_ != nullptr) { |
| 1475 | delete low_; |
| 1476 | } |
| 1477 | low_ = nullptr; |
| 1478 | _internal_metadata_.Clear(); |
| 1479 | } |
| 1480 | |
| 1481 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1482 | const char* WaterMarks::_InternalParse(const char* begin, const char* end, void* object, |
| 1483 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1484 | auto msg = static_cast<WaterMarks*>(object); |
| 1485 | ::google::protobuf::int32 size; (void)size; |
| 1486 | int depth; (void)depth; |
| 1487 | ::google::protobuf::uint32 tag; |
| 1488 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1489 | auto ptr = begin; |
| 1490 | while (ptr < end) { |
| 1491 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1492 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1493 | switch (tag >> 3) { |
| 1494 | // .dmi.ValueType high = 1; |
| 1495 | case 1: { |
| 1496 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1497 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1498 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1499 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 1500 | object = msg->mutable_high(); |
| 1501 | if (size > end - ptr) goto len_delim_till_end; |
| 1502 | ptr += size; |
| 1503 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1504 | {parser_till_end, object}, ptr - size, ptr)); |
| 1505 | break; |
| 1506 | } |
| 1507 | // .dmi.ValueType low = 2; |
| 1508 | case 2: { |
| 1509 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1510 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1511 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1512 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 1513 | object = msg->mutable_low(); |
| 1514 | if (size > end - ptr) goto len_delim_till_end; |
| 1515 | ptr += size; |
| 1516 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1517 | {parser_till_end, object}, ptr - size, ptr)); |
| 1518 | break; |
| 1519 | } |
| 1520 | default: { |
| 1521 | handle_unusual: |
| 1522 | if ((tag & 7) == 4 || tag == 0) { |
| 1523 | ctx->EndGroup(tag); |
| 1524 | return ptr; |
| 1525 | } |
| 1526 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1527 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1528 | ptr = res.first; |
| 1529 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1530 | if (res.second) return ptr; |
| 1531 | } |
| 1532 | } // switch |
| 1533 | } // while |
| 1534 | return ptr; |
| 1535 | len_delim_till_end: |
| 1536 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1537 | {parser_till_end, object}, size); |
| 1538 | } |
| 1539 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1540 | bool WaterMarks::MergePartialFromCodedStream( |
| 1541 | ::google::protobuf::io::CodedInputStream* input) { |
| 1542 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1543 | ::google::protobuf::uint32 tag; |
| 1544 | // @@protoc_insertion_point(parse_start:dmi.WaterMarks) |
| 1545 | for (;;) { |
| 1546 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1547 | tag = p.first; |
| 1548 | if (!p.second) goto handle_unusual; |
| 1549 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1550 | // .dmi.ValueType high = 1; |
| 1551 | case 1: { |
| 1552 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1553 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1554 | input, mutable_high())); |
| 1555 | } else { |
| 1556 | goto handle_unusual; |
| 1557 | } |
| 1558 | break; |
| 1559 | } |
| 1560 | |
| 1561 | // .dmi.ValueType low = 2; |
| 1562 | case 2: { |
| 1563 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1564 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1565 | input, mutable_low())); |
| 1566 | } else { |
| 1567 | goto handle_unusual; |
| 1568 | } |
| 1569 | break; |
| 1570 | } |
| 1571 | |
| 1572 | default: { |
| 1573 | handle_unusual: |
| 1574 | if (tag == 0) { |
| 1575 | goto success; |
| 1576 | } |
| 1577 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1578 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1579 | break; |
| 1580 | } |
| 1581 | } |
| 1582 | } |
| 1583 | success: |
| 1584 | // @@protoc_insertion_point(parse_success:dmi.WaterMarks) |
| 1585 | return true; |
| 1586 | failure: |
| 1587 | // @@protoc_insertion_point(parse_failure:dmi.WaterMarks) |
| 1588 | return false; |
| 1589 | #undef DO_ |
| 1590 | } |
| 1591 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1592 | |
| 1593 | void WaterMarks::SerializeWithCachedSizes( |
| 1594 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1595 | // @@protoc_insertion_point(serialize_start:dmi.WaterMarks) |
| 1596 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1597 | (void) cached_has_bits; |
| 1598 | |
| 1599 | // .dmi.ValueType high = 1; |
| 1600 | if (this->has_high()) { |
| 1601 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1602 | 1, HasBitSetters::high(this), output); |
| 1603 | } |
| 1604 | |
| 1605 | // .dmi.ValueType low = 2; |
| 1606 | if (this->has_low()) { |
| 1607 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1608 | 2, HasBitSetters::low(this), output); |
| 1609 | } |
| 1610 | |
| 1611 | if (_internal_metadata_.have_unknown_fields()) { |
| 1612 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1613 | _internal_metadata_.unknown_fields(), output); |
| 1614 | } |
| 1615 | // @@protoc_insertion_point(serialize_end:dmi.WaterMarks) |
| 1616 | } |
| 1617 | |
| 1618 | ::google::protobuf::uint8* WaterMarks::InternalSerializeWithCachedSizesToArray( |
| 1619 | ::google::protobuf::uint8* target) const { |
| 1620 | // @@protoc_insertion_point(serialize_to_array_start:dmi.WaterMarks) |
| 1621 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1622 | (void) cached_has_bits; |
| 1623 | |
| 1624 | // .dmi.ValueType high = 1; |
| 1625 | if (this->has_high()) { |
| 1626 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1627 | InternalWriteMessageToArray( |
| 1628 | 1, HasBitSetters::high(this), target); |
| 1629 | } |
| 1630 | |
| 1631 | // .dmi.ValueType low = 2; |
| 1632 | if (this->has_low()) { |
| 1633 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1634 | InternalWriteMessageToArray( |
| 1635 | 2, HasBitSetters::low(this), target); |
| 1636 | } |
| 1637 | |
| 1638 | if (_internal_metadata_.have_unknown_fields()) { |
| 1639 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1640 | _internal_metadata_.unknown_fields(), target); |
| 1641 | } |
| 1642 | // @@protoc_insertion_point(serialize_to_array_end:dmi.WaterMarks) |
| 1643 | return target; |
| 1644 | } |
| 1645 | |
| 1646 | size_t WaterMarks::ByteSizeLong() const { |
| 1647 | // @@protoc_insertion_point(message_byte_size_start:dmi.WaterMarks) |
| 1648 | size_t total_size = 0; |
| 1649 | |
| 1650 | if (_internal_metadata_.have_unknown_fields()) { |
| 1651 | total_size += |
| 1652 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1653 | _internal_metadata_.unknown_fields()); |
| 1654 | } |
| 1655 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1656 | // Prevent compiler warnings about cached_has_bits being unused |
| 1657 | (void) cached_has_bits; |
| 1658 | |
| 1659 | // .dmi.ValueType high = 1; |
| 1660 | if (this->has_high()) { |
| 1661 | total_size += 1 + |
| 1662 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1663 | *high_); |
| 1664 | } |
| 1665 | |
| 1666 | // .dmi.ValueType low = 2; |
| 1667 | if (this->has_low()) { |
| 1668 | total_size += 1 + |
| 1669 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1670 | *low_); |
| 1671 | } |
| 1672 | |
| 1673 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1674 | SetCachedSize(cached_size); |
| 1675 | return total_size; |
| 1676 | } |
| 1677 | |
| 1678 | void WaterMarks::MergeFrom(const ::google::protobuf::Message& from) { |
| 1679 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.WaterMarks) |
| 1680 | GOOGLE_DCHECK_NE(&from, this); |
| 1681 | const WaterMarks* source = |
| 1682 | ::google::protobuf::DynamicCastToGenerated<WaterMarks>( |
| 1683 | &from); |
| 1684 | if (source == nullptr) { |
| 1685 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.WaterMarks) |
| 1686 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1687 | } else { |
| 1688 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.WaterMarks) |
| 1689 | MergeFrom(*source); |
| 1690 | } |
| 1691 | } |
| 1692 | |
| 1693 | void WaterMarks::MergeFrom(const WaterMarks& from) { |
| 1694 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.WaterMarks) |
| 1695 | GOOGLE_DCHECK_NE(&from, this); |
| 1696 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1697 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1698 | (void) cached_has_bits; |
| 1699 | |
| 1700 | if (from.has_high()) { |
| 1701 | mutable_high()->::dmi::ValueType::MergeFrom(from.high()); |
| 1702 | } |
| 1703 | if (from.has_low()) { |
| 1704 | mutable_low()->::dmi::ValueType::MergeFrom(from.low()); |
| 1705 | } |
| 1706 | } |
| 1707 | |
| 1708 | void WaterMarks::CopyFrom(const ::google::protobuf::Message& from) { |
| 1709 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.WaterMarks) |
| 1710 | if (&from == this) return; |
| 1711 | Clear(); |
| 1712 | MergeFrom(from); |
| 1713 | } |
| 1714 | |
| 1715 | void WaterMarks::CopyFrom(const WaterMarks& from) { |
| 1716 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.WaterMarks) |
| 1717 | if (&from == this) return; |
| 1718 | Clear(); |
| 1719 | MergeFrom(from); |
| 1720 | } |
| 1721 | |
| 1722 | bool WaterMarks::IsInitialized() const { |
| 1723 | return true; |
| 1724 | } |
| 1725 | |
| 1726 | void WaterMarks::Swap(WaterMarks* other) { |
| 1727 | if (other == this) return; |
| 1728 | InternalSwap(other); |
| 1729 | } |
| 1730 | void WaterMarks::InternalSwap(WaterMarks* other) { |
| 1731 | using std::swap; |
| 1732 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1733 | swap(high_, other->high_); |
| 1734 | swap(low_, other->low_); |
| 1735 | } |
| 1736 | |
| 1737 | ::google::protobuf::Metadata WaterMarks::GetMetadata() const { |
| 1738 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 1739 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 1740 | } |
| 1741 | |
| 1742 | |
| 1743 | // =================================================================== |
| 1744 | |
| 1745 | void Thresholds::InitAsDefaultInstance() { |
| 1746 | ::dmi::_Thresholds_default_instance_.upper_ = const_cast< ::dmi::WaterMarks*>( |
| 1747 | ::dmi::WaterMarks::internal_default_instance()); |
| 1748 | ::dmi::_Thresholds_default_instance_.lower_ = const_cast< ::dmi::WaterMarks*>( |
| 1749 | ::dmi::WaterMarks::internal_default_instance()); |
| 1750 | } |
| 1751 | class Thresholds::HasBitSetters { |
| 1752 | public: |
| 1753 | static const ::dmi::WaterMarks& upper(const Thresholds* msg); |
| 1754 | static const ::dmi::WaterMarks& lower(const Thresholds* msg); |
| 1755 | }; |
| 1756 | |
| 1757 | const ::dmi::WaterMarks& |
| 1758 | Thresholds::HasBitSetters::upper(const Thresholds* msg) { |
| 1759 | return *msg->threshold_.upper_; |
| 1760 | } |
| 1761 | const ::dmi::WaterMarks& |
| 1762 | Thresholds::HasBitSetters::lower(const Thresholds* msg) { |
| 1763 | return *msg->threshold_.lower_; |
| 1764 | } |
| 1765 | void Thresholds::set_allocated_upper(::dmi::WaterMarks* upper) { |
| 1766 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1767 | clear_threshold(); |
| 1768 | if (upper) { |
| 1769 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1770 | if (message_arena != submessage_arena) { |
| 1771 | upper = ::google::protobuf::internal::GetOwnedMessage( |
| 1772 | message_arena, upper, submessage_arena); |
| 1773 | } |
| 1774 | set_has_upper(); |
| 1775 | threshold_.upper_ = upper; |
| 1776 | } |
| 1777 | // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.upper) |
| 1778 | } |
| 1779 | void Thresholds::set_allocated_lower(::dmi::WaterMarks* lower) { |
| 1780 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 1781 | clear_threshold(); |
| 1782 | if (lower) { |
| 1783 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 1784 | if (message_arena != submessage_arena) { |
| 1785 | lower = ::google::protobuf::internal::GetOwnedMessage( |
| 1786 | message_arena, lower, submessage_arena); |
| 1787 | } |
| 1788 | set_has_lower(); |
| 1789 | threshold_.lower_ = lower; |
| 1790 | } |
| 1791 | // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.lower) |
| 1792 | } |
| 1793 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1794 | const int Thresholds::kUpperFieldNumber; |
| 1795 | const int Thresholds::kLowerFieldNumber; |
| 1796 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1797 | |
| 1798 | Thresholds::Thresholds() |
| 1799 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1800 | SharedCtor(); |
| 1801 | // @@protoc_insertion_point(constructor:dmi.Thresholds) |
| 1802 | } |
| 1803 | Thresholds::Thresholds(const Thresholds& from) |
| 1804 | : ::google::protobuf::Message(), |
| 1805 | _internal_metadata_(nullptr) { |
| 1806 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1807 | clear_has_threshold(); |
| 1808 | switch (from.threshold_case()) { |
| 1809 | case kUpper: { |
| 1810 | mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper()); |
| 1811 | break; |
| 1812 | } |
| 1813 | case kLower: { |
| 1814 | mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower()); |
| 1815 | break; |
| 1816 | } |
| 1817 | case THRESHOLD_NOT_SET: { |
| 1818 | break; |
| 1819 | } |
| 1820 | } |
| 1821 | // @@protoc_insertion_point(copy_constructor:dmi.Thresholds) |
| 1822 | } |
| 1823 | |
| 1824 | void Thresholds::SharedCtor() { |
| 1825 | ::google::protobuf::internal::InitSCC( |
| 1826 | &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1827 | clear_has_threshold(); |
| 1828 | } |
| 1829 | |
| 1830 | Thresholds::~Thresholds() { |
| 1831 | // @@protoc_insertion_point(destructor:dmi.Thresholds) |
| 1832 | SharedDtor(); |
| 1833 | } |
| 1834 | |
| 1835 | void Thresholds::SharedDtor() { |
| 1836 | if (has_threshold()) { |
| 1837 | clear_threshold(); |
| 1838 | } |
| 1839 | } |
| 1840 | |
| 1841 | void Thresholds::SetCachedSize(int size) const { |
| 1842 | _cached_size_.Set(size); |
| 1843 | } |
| 1844 | const Thresholds& Thresholds::default_instance() { |
| 1845 | ::google::protobuf::internal::InitSCC(&::scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 1846 | return *internal_default_instance(); |
| 1847 | } |
| 1848 | |
| 1849 | |
| 1850 | void Thresholds::clear_threshold() { |
| 1851 | // @@protoc_insertion_point(one_of_clear_start:dmi.Thresholds) |
| 1852 | switch (threshold_case()) { |
| 1853 | case kUpper: { |
| 1854 | delete threshold_.upper_; |
| 1855 | break; |
| 1856 | } |
| 1857 | case kLower: { |
| 1858 | delete threshold_.lower_; |
| 1859 | break; |
| 1860 | } |
| 1861 | case THRESHOLD_NOT_SET: { |
| 1862 | break; |
| 1863 | } |
| 1864 | } |
| 1865 | _oneof_case_[0] = THRESHOLD_NOT_SET; |
| 1866 | } |
| 1867 | |
| 1868 | |
| 1869 | void Thresholds::Clear() { |
| 1870 | // @@protoc_insertion_point(message_clear_start:dmi.Thresholds) |
| 1871 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1872 | // Prevent compiler warnings about cached_has_bits being unused |
| 1873 | (void) cached_has_bits; |
| 1874 | |
| 1875 | clear_threshold(); |
| 1876 | _internal_metadata_.Clear(); |
| 1877 | } |
| 1878 | |
| 1879 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1880 | const char* Thresholds::_InternalParse(const char* begin, const char* end, void* object, |
| 1881 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1882 | auto msg = static_cast<Thresholds*>(object); |
| 1883 | ::google::protobuf::int32 size; (void)size; |
| 1884 | int depth; (void)depth; |
| 1885 | ::google::protobuf::uint32 tag; |
| 1886 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1887 | auto ptr = begin; |
| 1888 | while (ptr < end) { |
| 1889 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1890 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1891 | switch (tag >> 3) { |
| 1892 | // .dmi.WaterMarks upper = 1; |
| 1893 | case 1: { |
| 1894 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1895 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1896 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1897 | parser_till_end = ::dmi::WaterMarks::_InternalParse; |
| 1898 | object = msg->mutable_upper(); |
| 1899 | if (size > end - ptr) goto len_delim_till_end; |
| 1900 | ptr += size; |
| 1901 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1902 | {parser_till_end, object}, ptr - size, ptr)); |
| 1903 | break; |
| 1904 | } |
| 1905 | // .dmi.WaterMarks lower = 2; |
| 1906 | case 2: { |
| 1907 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 1908 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1909 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1910 | parser_till_end = ::dmi::WaterMarks::_InternalParse; |
| 1911 | object = msg->mutable_lower(); |
| 1912 | if (size > end - ptr) goto len_delim_till_end; |
| 1913 | ptr += size; |
| 1914 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1915 | {parser_till_end, object}, ptr - size, ptr)); |
| 1916 | break; |
| 1917 | } |
| 1918 | default: { |
| 1919 | handle_unusual: |
| 1920 | if ((tag & 7) == 4 || tag == 0) { |
| 1921 | ctx->EndGroup(tag); |
| 1922 | return ptr; |
| 1923 | } |
| 1924 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1925 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1926 | ptr = res.first; |
| 1927 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1928 | if (res.second) return ptr; |
| 1929 | } |
| 1930 | } // switch |
| 1931 | } // while |
| 1932 | return ptr; |
| 1933 | len_delim_till_end: |
| 1934 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1935 | {parser_till_end, object}, size); |
| 1936 | } |
| 1937 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1938 | bool Thresholds::MergePartialFromCodedStream( |
| 1939 | ::google::protobuf::io::CodedInputStream* input) { |
| 1940 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1941 | ::google::protobuf::uint32 tag; |
| 1942 | // @@protoc_insertion_point(parse_start:dmi.Thresholds) |
| 1943 | for (;;) { |
| 1944 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1945 | tag = p.first; |
| 1946 | if (!p.second) goto handle_unusual; |
| 1947 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1948 | // .dmi.WaterMarks upper = 1; |
| 1949 | case 1: { |
| 1950 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1951 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1952 | input, mutable_upper())); |
| 1953 | } else { |
| 1954 | goto handle_unusual; |
| 1955 | } |
| 1956 | break; |
| 1957 | } |
| 1958 | |
| 1959 | // .dmi.WaterMarks lower = 2; |
| 1960 | case 2: { |
| 1961 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 1962 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1963 | input, mutable_lower())); |
| 1964 | } else { |
| 1965 | goto handle_unusual; |
| 1966 | } |
| 1967 | break; |
| 1968 | } |
| 1969 | |
| 1970 | default: { |
| 1971 | handle_unusual: |
| 1972 | if (tag == 0) { |
| 1973 | goto success; |
| 1974 | } |
| 1975 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1976 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1977 | break; |
| 1978 | } |
| 1979 | } |
| 1980 | } |
| 1981 | success: |
| 1982 | // @@protoc_insertion_point(parse_success:dmi.Thresholds) |
| 1983 | return true; |
| 1984 | failure: |
| 1985 | // @@protoc_insertion_point(parse_failure:dmi.Thresholds) |
| 1986 | return false; |
| 1987 | #undef DO_ |
| 1988 | } |
| 1989 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1990 | |
| 1991 | void Thresholds::SerializeWithCachedSizes( |
| 1992 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1993 | // @@protoc_insertion_point(serialize_start:dmi.Thresholds) |
| 1994 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1995 | (void) cached_has_bits; |
| 1996 | |
| 1997 | // .dmi.WaterMarks upper = 1; |
| 1998 | if (has_upper()) { |
| 1999 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2000 | 1, HasBitSetters::upper(this), output); |
| 2001 | } |
| 2002 | |
| 2003 | // .dmi.WaterMarks lower = 2; |
| 2004 | if (has_lower()) { |
| 2005 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2006 | 2, HasBitSetters::lower(this), output); |
| 2007 | } |
| 2008 | |
| 2009 | if (_internal_metadata_.have_unknown_fields()) { |
| 2010 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2011 | _internal_metadata_.unknown_fields(), output); |
| 2012 | } |
| 2013 | // @@protoc_insertion_point(serialize_end:dmi.Thresholds) |
| 2014 | } |
| 2015 | |
| 2016 | ::google::protobuf::uint8* Thresholds::InternalSerializeWithCachedSizesToArray( |
| 2017 | ::google::protobuf::uint8* target) const { |
| 2018 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Thresholds) |
| 2019 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2020 | (void) cached_has_bits; |
| 2021 | |
| 2022 | // .dmi.WaterMarks upper = 1; |
| 2023 | if (has_upper()) { |
| 2024 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2025 | InternalWriteMessageToArray( |
| 2026 | 1, HasBitSetters::upper(this), target); |
| 2027 | } |
| 2028 | |
| 2029 | // .dmi.WaterMarks lower = 2; |
| 2030 | if (has_lower()) { |
| 2031 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2032 | InternalWriteMessageToArray( |
| 2033 | 2, HasBitSetters::lower(this), target); |
| 2034 | } |
| 2035 | |
| 2036 | if (_internal_metadata_.have_unknown_fields()) { |
| 2037 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2038 | _internal_metadata_.unknown_fields(), target); |
| 2039 | } |
| 2040 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Thresholds) |
| 2041 | return target; |
| 2042 | } |
| 2043 | |
| 2044 | size_t Thresholds::ByteSizeLong() const { |
| 2045 | // @@protoc_insertion_point(message_byte_size_start:dmi.Thresholds) |
| 2046 | size_t total_size = 0; |
| 2047 | |
| 2048 | if (_internal_metadata_.have_unknown_fields()) { |
| 2049 | total_size += |
| 2050 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2051 | _internal_metadata_.unknown_fields()); |
| 2052 | } |
| 2053 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2054 | // Prevent compiler warnings about cached_has_bits being unused |
| 2055 | (void) cached_has_bits; |
| 2056 | |
| 2057 | switch (threshold_case()) { |
| 2058 | // .dmi.WaterMarks upper = 1; |
| 2059 | case kUpper: { |
| 2060 | total_size += 1 + |
| 2061 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2062 | *threshold_.upper_); |
| 2063 | break; |
| 2064 | } |
| 2065 | // .dmi.WaterMarks lower = 2; |
| 2066 | case kLower: { |
| 2067 | total_size += 1 + |
| 2068 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2069 | *threshold_.lower_); |
| 2070 | break; |
| 2071 | } |
| 2072 | case THRESHOLD_NOT_SET: { |
| 2073 | break; |
| 2074 | } |
| 2075 | } |
| 2076 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2077 | SetCachedSize(cached_size); |
| 2078 | return total_size; |
| 2079 | } |
| 2080 | |
| 2081 | void Thresholds::MergeFrom(const ::google::protobuf::Message& from) { |
| 2082 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Thresholds) |
| 2083 | GOOGLE_DCHECK_NE(&from, this); |
| 2084 | const Thresholds* source = |
| 2085 | ::google::protobuf::DynamicCastToGenerated<Thresholds>( |
| 2086 | &from); |
| 2087 | if (source == nullptr) { |
| 2088 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Thresholds) |
| 2089 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2090 | } else { |
| 2091 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Thresholds) |
| 2092 | MergeFrom(*source); |
| 2093 | } |
| 2094 | } |
| 2095 | |
| 2096 | void Thresholds::MergeFrom(const Thresholds& from) { |
| 2097 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Thresholds) |
| 2098 | GOOGLE_DCHECK_NE(&from, this); |
| 2099 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2100 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2101 | (void) cached_has_bits; |
| 2102 | |
| 2103 | switch (from.threshold_case()) { |
| 2104 | case kUpper: { |
| 2105 | mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper()); |
| 2106 | break; |
| 2107 | } |
| 2108 | case kLower: { |
| 2109 | mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower()); |
| 2110 | break; |
| 2111 | } |
| 2112 | case THRESHOLD_NOT_SET: { |
| 2113 | break; |
| 2114 | } |
| 2115 | } |
| 2116 | } |
| 2117 | |
| 2118 | void Thresholds::CopyFrom(const ::google::protobuf::Message& from) { |
| 2119 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Thresholds) |
| 2120 | if (&from == this) return; |
| 2121 | Clear(); |
| 2122 | MergeFrom(from); |
| 2123 | } |
| 2124 | |
| 2125 | void Thresholds::CopyFrom(const Thresholds& from) { |
| 2126 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Thresholds) |
| 2127 | if (&from == this) return; |
| 2128 | Clear(); |
| 2129 | MergeFrom(from); |
| 2130 | } |
| 2131 | |
| 2132 | bool Thresholds::IsInitialized() const { |
| 2133 | return true; |
| 2134 | } |
| 2135 | |
| 2136 | void Thresholds::Swap(Thresholds* other) { |
| 2137 | if (other == this) return; |
| 2138 | InternalSwap(other); |
| 2139 | } |
| 2140 | void Thresholds::InternalSwap(Thresholds* other) { |
| 2141 | using std::swap; |
| 2142 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2143 | swap(threshold_, other->threshold_); |
| 2144 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 2145 | } |
| 2146 | |
| 2147 | ::google::protobuf::Metadata Thresholds::GetMetadata() const { |
| 2148 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2149 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2150 | } |
| 2151 | |
| 2152 | |
| 2153 | // =================================================================== |
| 2154 | |
| 2155 | void ThresholdInformation::InitAsDefaultInstance() { |
| 2156 | ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->observed_value_ = const_cast< ::dmi::ValueType*>( |
| 2157 | ::dmi::ValueType::internal_default_instance()); |
| 2158 | ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>( |
| 2159 | ::dmi::Thresholds::internal_default_instance()); |
| 2160 | } |
| 2161 | class ThresholdInformation::HasBitSetters { |
| 2162 | public: |
| 2163 | static const ::dmi::ValueType& observed_value(const ThresholdInformation* msg); |
| 2164 | static const ::dmi::Thresholds& thresholds(const ThresholdInformation* msg); |
| 2165 | }; |
| 2166 | |
| 2167 | const ::dmi::ValueType& |
| 2168 | ThresholdInformation::HasBitSetters::observed_value(const ThresholdInformation* msg) { |
| 2169 | return *msg->observed_value_; |
| 2170 | } |
| 2171 | const ::dmi::Thresholds& |
| 2172 | ThresholdInformation::HasBitSetters::thresholds(const ThresholdInformation* msg) { |
| 2173 | return *msg->thresholds_; |
| 2174 | } |
| 2175 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2176 | const int ThresholdInformation::kObservedValueFieldNumber; |
| 2177 | const int ThresholdInformation::kThresholdsFieldNumber; |
| 2178 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2179 | |
| 2180 | ThresholdInformation::ThresholdInformation() |
| 2181 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2182 | SharedCtor(); |
| 2183 | // @@protoc_insertion_point(constructor:dmi.ThresholdInformation) |
| 2184 | } |
| 2185 | ThresholdInformation::ThresholdInformation(const ThresholdInformation& from) |
| 2186 | : ::google::protobuf::Message(), |
| 2187 | _internal_metadata_(nullptr) { |
| 2188 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2189 | if (from.has_observed_value()) { |
| 2190 | observed_value_ = new ::dmi::ValueType(*from.observed_value_); |
| 2191 | } else { |
| 2192 | observed_value_ = nullptr; |
| 2193 | } |
| 2194 | if (from.has_thresholds()) { |
| 2195 | thresholds_ = new ::dmi::Thresholds(*from.thresholds_); |
| 2196 | } else { |
| 2197 | thresholds_ = nullptr; |
| 2198 | } |
| 2199 | // @@protoc_insertion_point(copy_constructor:dmi.ThresholdInformation) |
| 2200 | } |
| 2201 | |
| 2202 | void ThresholdInformation::SharedCtor() { |
| 2203 | ::google::protobuf::internal::InitSCC( |
| 2204 | &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2205 | ::memset(&observed_value_, 0, static_cast<size_t>( |
| 2206 | reinterpret_cast<char*>(&thresholds_) - |
| 2207 | reinterpret_cast<char*>(&observed_value_)) + sizeof(thresholds_)); |
| 2208 | } |
| 2209 | |
| 2210 | ThresholdInformation::~ThresholdInformation() { |
| 2211 | // @@protoc_insertion_point(destructor:dmi.ThresholdInformation) |
| 2212 | SharedDtor(); |
| 2213 | } |
| 2214 | |
| 2215 | void ThresholdInformation::SharedDtor() { |
| 2216 | if (this != internal_default_instance()) delete observed_value_; |
| 2217 | if (this != internal_default_instance()) delete thresholds_; |
| 2218 | } |
| 2219 | |
| 2220 | void ThresholdInformation::SetCachedSize(int size) const { |
| 2221 | _cached_size_.Set(size); |
| 2222 | } |
| 2223 | const ThresholdInformation& ThresholdInformation::default_instance() { |
| 2224 | ::google::protobuf::internal::InitSCC(&::scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2225 | return *internal_default_instance(); |
| 2226 | } |
| 2227 | |
| 2228 | |
| 2229 | void ThresholdInformation::Clear() { |
| 2230 | // @@protoc_insertion_point(message_clear_start:dmi.ThresholdInformation) |
| 2231 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2232 | // Prevent compiler warnings about cached_has_bits being unused |
| 2233 | (void) cached_has_bits; |
| 2234 | |
| 2235 | if (GetArenaNoVirtual() == nullptr && observed_value_ != nullptr) { |
| 2236 | delete observed_value_; |
| 2237 | } |
| 2238 | observed_value_ = nullptr; |
| 2239 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 2240 | delete thresholds_; |
| 2241 | } |
| 2242 | thresholds_ = nullptr; |
| 2243 | _internal_metadata_.Clear(); |
| 2244 | } |
| 2245 | |
| 2246 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2247 | const char* ThresholdInformation::_InternalParse(const char* begin, const char* end, void* object, |
| 2248 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2249 | auto msg = static_cast<ThresholdInformation*>(object); |
| 2250 | ::google::protobuf::int32 size; (void)size; |
| 2251 | int depth; (void)depth; |
| 2252 | ::google::protobuf::uint32 tag; |
| 2253 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2254 | auto ptr = begin; |
| 2255 | while (ptr < end) { |
| 2256 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2257 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2258 | switch (tag >> 3) { |
| 2259 | // .dmi.ValueType observed_value = 1; |
| 2260 | case 1: { |
| 2261 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2262 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2263 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2264 | parser_till_end = ::dmi::ValueType::_InternalParse; |
| 2265 | object = msg->mutable_observed_value(); |
| 2266 | if (size > end - ptr) goto len_delim_till_end; |
| 2267 | ptr += size; |
| 2268 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2269 | {parser_till_end, object}, ptr - size, ptr)); |
| 2270 | break; |
| 2271 | } |
| 2272 | // .dmi.Thresholds thresholds = 2; |
| 2273 | case 2: { |
| 2274 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 2275 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2276 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2277 | parser_till_end = ::dmi::Thresholds::_InternalParse; |
| 2278 | object = msg->mutable_thresholds(); |
| 2279 | if (size > end - ptr) goto len_delim_till_end; |
| 2280 | ptr += size; |
| 2281 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2282 | {parser_till_end, object}, ptr - size, ptr)); |
| 2283 | break; |
| 2284 | } |
| 2285 | default: { |
| 2286 | handle_unusual: |
| 2287 | if ((tag & 7) == 4 || tag == 0) { |
| 2288 | ctx->EndGroup(tag); |
| 2289 | return ptr; |
| 2290 | } |
| 2291 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2292 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2293 | ptr = res.first; |
| 2294 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2295 | if (res.second) return ptr; |
| 2296 | } |
| 2297 | } // switch |
| 2298 | } // while |
| 2299 | return ptr; |
| 2300 | len_delim_till_end: |
| 2301 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2302 | {parser_till_end, object}, size); |
| 2303 | } |
| 2304 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2305 | bool ThresholdInformation::MergePartialFromCodedStream( |
| 2306 | ::google::protobuf::io::CodedInputStream* input) { |
| 2307 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2308 | ::google::protobuf::uint32 tag; |
| 2309 | // @@protoc_insertion_point(parse_start:dmi.ThresholdInformation) |
| 2310 | for (;;) { |
| 2311 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2312 | tag = p.first; |
| 2313 | if (!p.second) goto handle_unusual; |
| 2314 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2315 | // .dmi.ValueType observed_value = 1; |
| 2316 | case 1: { |
| 2317 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2318 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2319 | input, mutable_observed_value())); |
| 2320 | } else { |
| 2321 | goto handle_unusual; |
| 2322 | } |
| 2323 | break; |
| 2324 | } |
| 2325 | |
| 2326 | // .dmi.Thresholds thresholds = 2; |
| 2327 | case 2: { |
| 2328 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 2329 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2330 | input, mutable_thresholds())); |
| 2331 | } else { |
| 2332 | goto handle_unusual; |
| 2333 | } |
| 2334 | break; |
| 2335 | } |
| 2336 | |
| 2337 | default: { |
| 2338 | handle_unusual: |
| 2339 | if (tag == 0) { |
| 2340 | goto success; |
| 2341 | } |
| 2342 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2343 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2344 | break; |
| 2345 | } |
| 2346 | } |
| 2347 | } |
| 2348 | success: |
| 2349 | // @@protoc_insertion_point(parse_success:dmi.ThresholdInformation) |
| 2350 | return true; |
| 2351 | failure: |
| 2352 | // @@protoc_insertion_point(parse_failure:dmi.ThresholdInformation) |
| 2353 | return false; |
| 2354 | #undef DO_ |
| 2355 | } |
| 2356 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2357 | |
| 2358 | void ThresholdInformation::SerializeWithCachedSizes( |
| 2359 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2360 | // @@protoc_insertion_point(serialize_start:dmi.ThresholdInformation) |
| 2361 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2362 | (void) cached_has_bits; |
| 2363 | |
| 2364 | // .dmi.ValueType observed_value = 1; |
| 2365 | if (this->has_observed_value()) { |
| 2366 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2367 | 1, HasBitSetters::observed_value(this), output); |
| 2368 | } |
| 2369 | |
| 2370 | // .dmi.Thresholds thresholds = 2; |
| 2371 | if (this->has_thresholds()) { |
| 2372 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2373 | 2, HasBitSetters::thresholds(this), output); |
| 2374 | } |
| 2375 | |
| 2376 | if (_internal_metadata_.have_unknown_fields()) { |
| 2377 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2378 | _internal_metadata_.unknown_fields(), output); |
| 2379 | } |
| 2380 | // @@protoc_insertion_point(serialize_end:dmi.ThresholdInformation) |
| 2381 | } |
| 2382 | |
| 2383 | ::google::protobuf::uint8* ThresholdInformation::InternalSerializeWithCachedSizesToArray( |
| 2384 | ::google::protobuf::uint8* target) const { |
| 2385 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ThresholdInformation) |
| 2386 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2387 | (void) cached_has_bits; |
| 2388 | |
| 2389 | // .dmi.ValueType observed_value = 1; |
| 2390 | if (this->has_observed_value()) { |
| 2391 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2392 | InternalWriteMessageToArray( |
| 2393 | 1, HasBitSetters::observed_value(this), target); |
| 2394 | } |
| 2395 | |
| 2396 | // .dmi.Thresholds thresholds = 2; |
| 2397 | if (this->has_thresholds()) { |
| 2398 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2399 | InternalWriteMessageToArray( |
| 2400 | 2, HasBitSetters::thresholds(this), target); |
| 2401 | } |
| 2402 | |
| 2403 | if (_internal_metadata_.have_unknown_fields()) { |
| 2404 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2405 | _internal_metadata_.unknown_fields(), target); |
| 2406 | } |
| 2407 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ThresholdInformation) |
| 2408 | return target; |
| 2409 | } |
| 2410 | |
| 2411 | size_t ThresholdInformation::ByteSizeLong() const { |
| 2412 | // @@protoc_insertion_point(message_byte_size_start:dmi.ThresholdInformation) |
| 2413 | size_t total_size = 0; |
| 2414 | |
| 2415 | if (_internal_metadata_.have_unknown_fields()) { |
| 2416 | total_size += |
| 2417 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2418 | _internal_metadata_.unknown_fields()); |
| 2419 | } |
| 2420 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2421 | // Prevent compiler warnings about cached_has_bits being unused |
| 2422 | (void) cached_has_bits; |
| 2423 | |
| 2424 | // .dmi.ValueType observed_value = 1; |
| 2425 | if (this->has_observed_value()) { |
| 2426 | total_size += 1 + |
| 2427 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2428 | *observed_value_); |
| 2429 | } |
| 2430 | |
| 2431 | // .dmi.Thresholds thresholds = 2; |
| 2432 | if (this->has_thresholds()) { |
| 2433 | total_size += 1 + |
| 2434 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2435 | *thresholds_); |
| 2436 | } |
| 2437 | |
| 2438 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2439 | SetCachedSize(cached_size); |
| 2440 | return total_size; |
| 2441 | } |
| 2442 | |
| 2443 | void ThresholdInformation::MergeFrom(const ::google::protobuf::Message& from) { |
| 2444 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ThresholdInformation) |
| 2445 | GOOGLE_DCHECK_NE(&from, this); |
| 2446 | const ThresholdInformation* source = |
| 2447 | ::google::protobuf::DynamicCastToGenerated<ThresholdInformation>( |
| 2448 | &from); |
| 2449 | if (source == nullptr) { |
| 2450 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ThresholdInformation) |
| 2451 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2452 | } else { |
| 2453 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ThresholdInformation) |
| 2454 | MergeFrom(*source); |
| 2455 | } |
| 2456 | } |
| 2457 | |
| 2458 | void ThresholdInformation::MergeFrom(const ThresholdInformation& from) { |
| 2459 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ThresholdInformation) |
| 2460 | GOOGLE_DCHECK_NE(&from, this); |
| 2461 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2462 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2463 | (void) cached_has_bits; |
| 2464 | |
| 2465 | if (from.has_observed_value()) { |
| 2466 | mutable_observed_value()->::dmi::ValueType::MergeFrom(from.observed_value()); |
| 2467 | } |
| 2468 | if (from.has_thresholds()) { |
| 2469 | mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds()); |
| 2470 | } |
| 2471 | } |
| 2472 | |
| 2473 | void ThresholdInformation::CopyFrom(const ::google::protobuf::Message& from) { |
| 2474 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ThresholdInformation) |
| 2475 | if (&from == this) return; |
| 2476 | Clear(); |
| 2477 | MergeFrom(from); |
| 2478 | } |
| 2479 | |
| 2480 | void ThresholdInformation::CopyFrom(const ThresholdInformation& from) { |
| 2481 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ThresholdInformation) |
| 2482 | if (&from == this) return; |
| 2483 | Clear(); |
| 2484 | MergeFrom(from); |
| 2485 | } |
| 2486 | |
| 2487 | bool ThresholdInformation::IsInitialized() const { |
| 2488 | return true; |
| 2489 | } |
| 2490 | |
| 2491 | void ThresholdInformation::Swap(ThresholdInformation* other) { |
| 2492 | if (other == this) return; |
| 2493 | InternalSwap(other); |
| 2494 | } |
| 2495 | void ThresholdInformation::InternalSwap(ThresholdInformation* other) { |
| 2496 | using std::swap; |
| 2497 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2498 | swap(observed_value_, other->observed_value_); |
| 2499 | swap(thresholds_, other->thresholds_); |
| 2500 | } |
| 2501 | |
| 2502 | ::google::protobuf::Metadata ThresholdInformation::GetMetadata() const { |
| 2503 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2504 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2505 | } |
| 2506 | |
| 2507 | |
| 2508 | // =================================================================== |
| 2509 | |
| 2510 | void EventCfg::InitAsDefaultInstance() { |
| 2511 | ::dmi::_EventCfg_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>( |
| 2512 | ::dmi::Thresholds::internal_default_instance()); |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2513 | ::dmi::_EventCfg_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2514 | ::dmi::Uuid::internal_default_instance()); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2515 | } |
| 2516 | class EventCfg::HasBitSetters { |
| 2517 | public: |
| 2518 | static const ::dmi::Thresholds& thresholds(const EventCfg* msg); |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2519 | static const ::dmi::Uuid& component_uuid(const EventCfg* msg); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2520 | }; |
| 2521 | |
| 2522 | const ::dmi::Thresholds& |
| 2523 | EventCfg::HasBitSetters::thresholds(const EventCfg* msg) { |
| 2524 | return *msg->thresholds_; |
| 2525 | } |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2526 | const ::dmi::Uuid& |
| 2527 | EventCfg::HasBitSetters::component_uuid(const EventCfg* msg) { |
| 2528 | return *msg->component_uuid_; |
| 2529 | } |
| 2530 | void EventCfg::clear_component_uuid() { |
| 2531 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2532 | delete component_uuid_; |
| 2533 | } |
| 2534 | component_uuid_ = nullptr; |
| 2535 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2536 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2537 | const int EventCfg::kEventIdFieldNumber; |
| 2538 | const int EventCfg::kIsConfiguredFieldNumber; |
| 2539 | const int EventCfg::kThresholdsFieldNumber; |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2540 | const int EventCfg::kComponentUuidFieldNumber; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2541 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2542 | |
| 2543 | EventCfg::EventCfg() |
| 2544 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2545 | SharedCtor(); |
| 2546 | // @@protoc_insertion_point(constructor:dmi.EventCfg) |
| 2547 | } |
| 2548 | EventCfg::EventCfg(const EventCfg& from) |
| 2549 | : ::google::protobuf::Message(), |
| 2550 | _internal_metadata_(nullptr) { |
| 2551 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2552 | if (from.has_thresholds()) { |
| 2553 | thresholds_ = new ::dmi::Thresholds(*from.thresholds_); |
| 2554 | } else { |
| 2555 | thresholds_ = nullptr; |
| 2556 | } |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2557 | if (from.has_component_uuid()) { |
| 2558 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 2559 | } else { |
| 2560 | component_uuid_ = nullptr; |
| 2561 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2562 | ::memcpy(&event_id_, &from.event_id_, |
| 2563 | static_cast<size_t>(reinterpret_cast<char*>(&is_configured_) - |
| 2564 | reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_)); |
| 2565 | // @@protoc_insertion_point(copy_constructor:dmi.EventCfg) |
| 2566 | } |
| 2567 | |
| 2568 | void EventCfg::SharedCtor() { |
| 2569 | ::google::protobuf::internal::InitSCC( |
| 2570 | &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2571 | ::memset(&thresholds_, 0, static_cast<size_t>( |
| 2572 | reinterpret_cast<char*>(&is_configured_) - |
| 2573 | reinterpret_cast<char*>(&thresholds_)) + sizeof(is_configured_)); |
| 2574 | } |
| 2575 | |
| 2576 | EventCfg::~EventCfg() { |
| 2577 | // @@protoc_insertion_point(destructor:dmi.EventCfg) |
| 2578 | SharedDtor(); |
| 2579 | } |
| 2580 | |
| 2581 | void EventCfg::SharedDtor() { |
| 2582 | if (this != internal_default_instance()) delete thresholds_; |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2583 | if (this != internal_default_instance()) delete component_uuid_; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2584 | } |
| 2585 | |
| 2586 | void EventCfg::SetCachedSize(int size) const { |
| 2587 | _cached_size_.Set(size); |
| 2588 | } |
| 2589 | const EventCfg& EventCfg::default_instance() { |
| 2590 | ::google::protobuf::internal::InitSCC(&::scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2591 | return *internal_default_instance(); |
| 2592 | } |
| 2593 | |
| 2594 | |
| 2595 | void EventCfg::Clear() { |
| 2596 | // @@protoc_insertion_point(message_clear_start:dmi.EventCfg) |
| 2597 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2598 | // Prevent compiler warnings about cached_has_bits being unused |
| 2599 | (void) cached_has_bits; |
| 2600 | |
| 2601 | if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) { |
| 2602 | delete thresholds_; |
| 2603 | } |
| 2604 | thresholds_ = nullptr; |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2605 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2606 | delete component_uuid_; |
| 2607 | } |
| 2608 | component_uuid_ = nullptr; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2609 | ::memset(&event_id_, 0, static_cast<size_t>( |
| 2610 | reinterpret_cast<char*>(&is_configured_) - |
| 2611 | reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_)); |
| 2612 | _internal_metadata_.Clear(); |
| 2613 | } |
| 2614 | |
| 2615 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2616 | const char* EventCfg::_InternalParse(const char* begin, const char* end, void* object, |
| 2617 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2618 | auto msg = static_cast<EventCfg*>(object); |
| 2619 | ::google::protobuf::int32 size; (void)size; |
| 2620 | int depth; (void)depth; |
| 2621 | ::google::protobuf::uint32 tag; |
| 2622 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2623 | auto ptr = begin; |
| 2624 | while (ptr < end) { |
| 2625 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2626 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2627 | switch (tag >> 3) { |
| 2628 | // .dmi.EventIds event_id = 1; |
| 2629 | case 1: { |
| 2630 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2631 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2632 | msg->set_event_id(static_cast<::dmi::EventIds>(val)); |
| 2633 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2634 | break; |
| 2635 | } |
| 2636 | // bool is_configured = 2; |
| 2637 | case 2: { |
| 2638 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2639 | msg->set_is_configured(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2640 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2641 | break; |
| 2642 | } |
| 2643 | // .dmi.Thresholds thresholds = 3; |
| 2644 | case 3: { |
| 2645 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2646 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2647 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2648 | parser_till_end = ::dmi::Thresholds::_InternalParse; |
| 2649 | object = msg->mutable_thresholds(); |
| 2650 | if (size > end - ptr) goto len_delim_till_end; |
| 2651 | ptr += size; |
| 2652 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2653 | {parser_till_end, object}, ptr - size, ptr)); |
| 2654 | break; |
| 2655 | } |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2656 | // .dmi.Uuid component_uuid = 4; |
| 2657 | case 4: { |
| 2658 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2659 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2660 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2661 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2662 | object = msg->mutable_component_uuid(); |
| 2663 | if (size > end - ptr) goto len_delim_till_end; |
| 2664 | ptr += size; |
| 2665 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2666 | {parser_till_end, object}, ptr - size, ptr)); |
| 2667 | break; |
| 2668 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2669 | default: { |
| 2670 | handle_unusual: |
| 2671 | if ((tag & 7) == 4 || tag == 0) { |
| 2672 | ctx->EndGroup(tag); |
| 2673 | return ptr; |
| 2674 | } |
| 2675 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2676 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2677 | ptr = res.first; |
| 2678 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2679 | if (res.second) return ptr; |
| 2680 | } |
| 2681 | } // switch |
| 2682 | } // while |
| 2683 | return ptr; |
| 2684 | len_delim_till_end: |
| 2685 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2686 | {parser_till_end, object}, size); |
| 2687 | } |
| 2688 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2689 | bool EventCfg::MergePartialFromCodedStream( |
| 2690 | ::google::protobuf::io::CodedInputStream* input) { |
| 2691 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2692 | ::google::protobuf::uint32 tag; |
| 2693 | // @@protoc_insertion_point(parse_start:dmi.EventCfg) |
| 2694 | for (;;) { |
| 2695 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2696 | tag = p.first; |
| 2697 | if (!p.second) goto handle_unusual; |
| 2698 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2699 | // .dmi.EventIds event_id = 1; |
| 2700 | case 1: { |
| 2701 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2702 | int value = 0; |
| 2703 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2704 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2705 | input, &value))); |
| 2706 | set_event_id(static_cast< ::dmi::EventIds >(value)); |
| 2707 | } else { |
| 2708 | goto handle_unusual; |
| 2709 | } |
| 2710 | break; |
| 2711 | } |
| 2712 | |
| 2713 | // bool is_configured = 2; |
| 2714 | case 2: { |
| 2715 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2716 | |
| 2717 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2718 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 2719 | input, &is_configured_))); |
| 2720 | } else { |
| 2721 | goto handle_unusual; |
| 2722 | } |
| 2723 | break; |
| 2724 | } |
| 2725 | |
| 2726 | // .dmi.Thresholds thresholds = 3; |
| 2727 | case 3: { |
| 2728 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2729 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2730 | input, mutable_thresholds())); |
| 2731 | } else { |
| 2732 | goto handle_unusual; |
| 2733 | } |
| 2734 | break; |
| 2735 | } |
| 2736 | |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2737 | // .dmi.Uuid component_uuid = 4; |
| 2738 | case 4: { |
| 2739 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2740 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2741 | input, mutable_component_uuid())); |
| 2742 | } else { |
| 2743 | goto handle_unusual; |
| 2744 | } |
| 2745 | break; |
| 2746 | } |
| 2747 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2748 | default: { |
| 2749 | handle_unusual: |
| 2750 | if (tag == 0) { |
| 2751 | goto success; |
| 2752 | } |
| 2753 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2754 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2755 | break; |
| 2756 | } |
| 2757 | } |
| 2758 | } |
| 2759 | success: |
| 2760 | // @@protoc_insertion_point(parse_success:dmi.EventCfg) |
| 2761 | return true; |
| 2762 | failure: |
| 2763 | // @@protoc_insertion_point(parse_failure:dmi.EventCfg) |
| 2764 | return false; |
| 2765 | #undef DO_ |
| 2766 | } |
| 2767 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2768 | |
| 2769 | void EventCfg::SerializeWithCachedSizes( |
| 2770 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2771 | // @@protoc_insertion_point(serialize_start:dmi.EventCfg) |
| 2772 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2773 | (void) cached_has_bits; |
| 2774 | |
| 2775 | // .dmi.EventIds event_id = 1; |
| 2776 | if (this->event_id() != 0) { |
| 2777 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2778 | 1, this->event_id(), output); |
| 2779 | } |
| 2780 | |
| 2781 | // bool is_configured = 2; |
| 2782 | if (this->is_configured() != 0) { |
| 2783 | ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_configured(), output); |
| 2784 | } |
| 2785 | |
| 2786 | // .dmi.Thresholds thresholds = 3; |
| 2787 | if (this->has_thresholds()) { |
| 2788 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2789 | 3, HasBitSetters::thresholds(this), output); |
| 2790 | } |
| 2791 | |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2792 | // .dmi.Uuid component_uuid = 4; |
| 2793 | if (this->has_component_uuid()) { |
| 2794 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2795 | 4, HasBitSetters::component_uuid(this), output); |
| 2796 | } |
| 2797 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2798 | if (_internal_metadata_.have_unknown_fields()) { |
| 2799 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2800 | _internal_metadata_.unknown_fields(), output); |
| 2801 | } |
| 2802 | // @@protoc_insertion_point(serialize_end:dmi.EventCfg) |
| 2803 | } |
| 2804 | |
| 2805 | ::google::protobuf::uint8* EventCfg::InternalSerializeWithCachedSizesToArray( |
| 2806 | ::google::protobuf::uint8* target) const { |
| 2807 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventCfg) |
| 2808 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2809 | (void) cached_has_bits; |
| 2810 | |
| 2811 | // .dmi.EventIds event_id = 1; |
| 2812 | if (this->event_id() != 0) { |
| 2813 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2814 | 1, this->event_id(), target); |
| 2815 | } |
| 2816 | |
| 2817 | // bool is_configured = 2; |
| 2818 | if (this->is_configured() != 0) { |
| 2819 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_configured(), target); |
| 2820 | } |
| 2821 | |
| 2822 | // .dmi.Thresholds thresholds = 3; |
| 2823 | if (this->has_thresholds()) { |
| 2824 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2825 | InternalWriteMessageToArray( |
| 2826 | 3, HasBitSetters::thresholds(this), target); |
| 2827 | } |
| 2828 | |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2829 | // .dmi.Uuid component_uuid = 4; |
| 2830 | if (this->has_component_uuid()) { |
| 2831 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2832 | InternalWriteMessageToArray( |
| 2833 | 4, HasBitSetters::component_uuid(this), target); |
| 2834 | } |
| 2835 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2836 | if (_internal_metadata_.have_unknown_fields()) { |
| 2837 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2838 | _internal_metadata_.unknown_fields(), target); |
| 2839 | } |
| 2840 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventCfg) |
| 2841 | return target; |
| 2842 | } |
| 2843 | |
| 2844 | size_t EventCfg::ByteSizeLong() const { |
| 2845 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventCfg) |
| 2846 | size_t total_size = 0; |
| 2847 | |
| 2848 | if (_internal_metadata_.have_unknown_fields()) { |
| 2849 | total_size += |
| 2850 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2851 | _internal_metadata_.unknown_fields()); |
| 2852 | } |
| 2853 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2854 | // Prevent compiler warnings about cached_has_bits being unused |
| 2855 | (void) cached_has_bits; |
| 2856 | |
| 2857 | // .dmi.Thresholds thresholds = 3; |
| 2858 | if (this->has_thresholds()) { |
| 2859 | total_size += 1 + |
| 2860 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2861 | *thresholds_); |
| 2862 | } |
| 2863 | |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2864 | // .dmi.Uuid component_uuid = 4; |
| 2865 | if (this->has_component_uuid()) { |
| 2866 | total_size += 1 + |
| 2867 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2868 | *component_uuid_); |
| 2869 | } |
| 2870 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2871 | // .dmi.EventIds event_id = 1; |
| 2872 | if (this->event_id() != 0) { |
| 2873 | total_size += 1 + |
| 2874 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id()); |
| 2875 | } |
| 2876 | |
| 2877 | // bool is_configured = 2; |
| 2878 | if (this->is_configured() != 0) { |
| 2879 | total_size += 1 + 1; |
| 2880 | } |
| 2881 | |
| 2882 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2883 | SetCachedSize(cached_size); |
| 2884 | return total_size; |
| 2885 | } |
| 2886 | |
| 2887 | void EventCfg::MergeFrom(const ::google::protobuf::Message& from) { |
| 2888 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventCfg) |
| 2889 | GOOGLE_DCHECK_NE(&from, this); |
| 2890 | const EventCfg* source = |
| 2891 | ::google::protobuf::DynamicCastToGenerated<EventCfg>( |
| 2892 | &from); |
| 2893 | if (source == nullptr) { |
| 2894 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventCfg) |
| 2895 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2896 | } else { |
| 2897 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventCfg) |
| 2898 | MergeFrom(*source); |
| 2899 | } |
| 2900 | } |
| 2901 | |
| 2902 | void EventCfg::MergeFrom(const EventCfg& from) { |
| 2903 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventCfg) |
| 2904 | GOOGLE_DCHECK_NE(&from, this); |
| 2905 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2906 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2907 | (void) cached_has_bits; |
| 2908 | |
| 2909 | if (from.has_thresholds()) { |
| 2910 | mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds()); |
| 2911 | } |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2912 | if (from.has_component_uuid()) { |
| 2913 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 2914 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2915 | if (from.event_id() != 0) { |
| 2916 | set_event_id(from.event_id()); |
| 2917 | } |
| 2918 | if (from.is_configured() != 0) { |
| 2919 | set_is_configured(from.is_configured()); |
| 2920 | } |
| 2921 | } |
| 2922 | |
| 2923 | void EventCfg::CopyFrom(const ::google::protobuf::Message& from) { |
| 2924 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventCfg) |
| 2925 | if (&from == this) return; |
| 2926 | Clear(); |
| 2927 | MergeFrom(from); |
| 2928 | } |
| 2929 | |
| 2930 | void EventCfg::CopyFrom(const EventCfg& from) { |
| 2931 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventCfg) |
| 2932 | if (&from == this) return; |
| 2933 | Clear(); |
| 2934 | MergeFrom(from); |
| 2935 | } |
| 2936 | |
| 2937 | bool EventCfg::IsInitialized() const { |
| 2938 | return true; |
| 2939 | } |
| 2940 | |
| 2941 | void EventCfg::Swap(EventCfg* other) { |
| 2942 | if (other == this) return; |
| 2943 | InternalSwap(other); |
| 2944 | } |
| 2945 | void EventCfg::InternalSwap(EventCfg* other) { |
| 2946 | using std::swap; |
| 2947 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2948 | swap(thresholds_, other->thresholds_); |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 2949 | swap(component_uuid_, other->component_uuid_); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 2950 | swap(event_id_, other->event_id_); |
| 2951 | swap(is_configured_, other->is_configured_); |
| 2952 | } |
| 2953 | |
| 2954 | ::google::protobuf::Metadata EventCfg::GetMetadata() const { |
| 2955 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 2956 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 2957 | } |
| 2958 | |
| 2959 | |
| 2960 | // =================================================================== |
| 2961 | |
| 2962 | void EventsCfg::InitAsDefaultInstance() { |
| 2963 | } |
| 2964 | class EventsCfg::HasBitSetters { |
| 2965 | public: |
| 2966 | }; |
| 2967 | |
| 2968 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2969 | const int EventsCfg::kItemsFieldNumber; |
| 2970 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2971 | |
| 2972 | EventsCfg::EventsCfg() |
| 2973 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2974 | SharedCtor(); |
| 2975 | // @@protoc_insertion_point(constructor:dmi.EventsCfg) |
| 2976 | } |
| 2977 | EventsCfg::EventsCfg(const EventsCfg& from) |
| 2978 | : ::google::protobuf::Message(), |
| 2979 | _internal_metadata_(nullptr), |
| 2980 | items_(from.items_) { |
| 2981 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2982 | // @@protoc_insertion_point(copy_constructor:dmi.EventsCfg) |
| 2983 | } |
| 2984 | |
| 2985 | void EventsCfg::SharedCtor() { |
| 2986 | ::google::protobuf::internal::InitSCC( |
| 2987 | &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 2988 | } |
| 2989 | |
| 2990 | EventsCfg::~EventsCfg() { |
| 2991 | // @@protoc_insertion_point(destructor:dmi.EventsCfg) |
| 2992 | SharedDtor(); |
| 2993 | } |
| 2994 | |
| 2995 | void EventsCfg::SharedDtor() { |
| 2996 | } |
| 2997 | |
| 2998 | void EventsCfg::SetCachedSize(int size) const { |
| 2999 | _cached_size_.Set(size); |
| 3000 | } |
| 3001 | const EventsCfg& EventsCfg::default_instance() { |
| 3002 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3003 | return *internal_default_instance(); |
| 3004 | } |
| 3005 | |
| 3006 | |
| 3007 | void EventsCfg::Clear() { |
| 3008 | // @@protoc_insertion_point(message_clear_start:dmi.EventsCfg) |
| 3009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3010 | // Prevent compiler warnings about cached_has_bits being unused |
| 3011 | (void) cached_has_bits; |
| 3012 | |
| 3013 | items_.Clear(); |
| 3014 | _internal_metadata_.Clear(); |
| 3015 | } |
| 3016 | |
| 3017 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3018 | const char* EventsCfg::_InternalParse(const char* begin, const char* end, void* object, |
| 3019 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3020 | auto msg = static_cast<EventsCfg*>(object); |
| 3021 | ::google::protobuf::int32 size; (void)size; |
| 3022 | int depth; (void)depth; |
| 3023 | ::google::protobuf::uint32 tag; |
| 3024 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3025 | auto ptr = begin; |
| 3026 | while (ptr < end) { |
| 3027 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3028 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3029 | switch (tag >> 3) { |
| 3030 | // repeated .dmi.EventCfg items = 1; |
| 3031 | case 1: { |
| 3032 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3033 | do { |
| 3034 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3035 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3036 | parser_till_end = ::dmi::EventCfg::_InternalParse; |
| 3037 | object = msg->add_items(); |
| 3038 | if (size > end - ptr) goto len_delim_till_end; |
| 3039 | ptr += size; |
| 3040 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3041 | {parser_till_end, object}, ptr - size, ptr)); |
| 3042 | if (ptr >= end) break; |
| 3043 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); |
| 3044 | break; |
| 3045 | } |
| 3046 | default: { |
| 3047 | handle_unusual: |
| 3048 | if ((tag & 7) == 4 || tag == 0) { |
| 3049 | ctx->EndGroup(tag); |
| 3050 | return ptr; |
| 3051 | } |
| 3052 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3053 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3054 | ptr = res.first; |
| 3055 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3056 | if (res.second) return ptr; |
| 3057 | } |
| 3058 | } // switch |
| 3059 | } // while |
| 3060 | return ptr; |
| 3061 | len_delim_till_end: |
| 3062 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3063 | {parser_till_end, object}, size); |
| 3064 | } |
| 3065 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3066 | bool EventsCfg::MergePartialFromCodedStream( |
| 3067 | ::google::protobuf::io::CodedInputStream* input) { |
| 3068 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3069 | ::google::protobuf::uint32 tag; |
| 3070 | // @@protoc_insertion_point(parse_start:dmi.EventsCfg) |
| 3071 | for (;;) { |
| 3072 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3073 | tag = p.first; |
| 3074 | if (!p.second) goto handle_unusual; |
| 3075 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3076 | // repeated .dmi.EventCfg items = 1; |
| 3077 | case 1: { |
| 3078 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3079 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3080 | input, add_items())); |
| 3081 | } else { |
| 3082 | goto handle_unusual; |
| 3083 | } |
| 3084 | break; |
| 3085 | } |
| 3086 | |
| 3087 | default: { |
| 3088 | handle_unusual: |
| 3089 | if (tag == 0) { |
| 3090 | goto success; |
| 3091 | } |
| 3092 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3093 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3094 | break; |
| 3095 | } |
| 3096 | } |
| 3097 | } |
| 3098 | success: |
| 3099 | // @@protoc_insertion_point(parse_success:dmi.EventsCfg) |
| 3100 | return true; |
| 3101 | failure: |
| 3102 | // @@protoc_insertion_point(parse_failure:dmi.EventsCfg) |
| 3103 | return false; |
| 3104 | #undef DO_ |
| 3105 | } |
| 3106 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3107 | |
| 3108 | void EventsCfg::SerializeWithCachedSizes( |
| 3109 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3110 | // @@protoc_insertion_point(serialize_start:dmi.EventsCfg) |
| 3111 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3112 | (void) cached_has_bits; |
| 3113 | |
| 3114 | // repeated .dmi.EventCfg items = 1; |
| 3115 | for (unsigned int i = 0, |
| 3116 | n = static_cast<unsigned int>(this->items_size()); i < n; i++) { |
| 3117 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3118 | 1, |
| 3119 | this->items(static_cast<int>(i)), |
| 3120 | output); |
| 3121 | } |
| 3122 | |
| 3123 | if (_internal_metadata_.have_unknown_fields()) { |
| 3124 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3125 | _internal_metadata_.unknown_fields(), output); |
| 3126 | } |
| 3127 | // @@protoc_insertion_point(serialize_end:dmi.EventsCfg) |
| 3128 | } |
| 3129 | |
| 3130 | ::google::protobuf::uint8* EventsCfg::InternalSerializeWithCachedSizesToArray( |
| 3131 | ::google::protobuf::uint8* target) const { |
| 3132 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsCfg) |
| 3133 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3134 | (void) cached_has_bits; |
| 3135 | |
| 3136 | // repeated .dmi.EventCfg items = 1; |
| 3137 | for (unsigned int i = 0, |
| 3138 | n = static_cast<unsigned int>(this->items_size()); i < n; i++) { |
| 3139 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3140 | InternalWriteMessageToArray( |
| 3141 | 1, this->items(static_cast<int>(i)), target); |
| 3142 | } |
| 3143 | |
| 3144 | if (_internal_metadata_.have_unknown_fields()) { |
| 3145 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3146 | _internal_metadata_.unknown_fields(), target); |
| 3147 | } |
| 3148 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsCfg) |
| 3149 | return target; |
| 3150 | } |
| 3151 | |
| 3152 | size_t EventsCfg::ByteSizeLong() const { |
| 3153 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsCfg) |
| 3154 | size_t total_size = 0; |
| 3155 | |
| 3156 | if (_internal_metadata_.have_unknown_fields()) { |
| 3157 | total_size += |
| 3158 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3159 | _internal_metadata_.unknown_fields()); |
| 3160 | } |
| 3161 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3162 | // Prevent compiler warnings about cached_has_bits being unused |
| 3163 | (void) cached_has_bits; |
| 3164 | |
| 3165 | // repeated .dmi.EventCfg items = 1; |
| 3166 | { |
| 3167 | unsigned int count = static_cast<unsigned int>(this->items_size()); |
| 3168 | total_size += 1UL * count; |
| 3169 | for (unsigned int i = 0; i < count; i++) { |
| 3170 | total_size += |
| 3171 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3172 | this->items(static_cast<int>(i))); |
| 3173 | } |
| 3174 | } |
| 3175 | |
| 3176 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3177 | SetCachedSize(cached_size); |
| 3178 | return total_size; |
| 3179 | } |
| 3180 | |
| 3181 | void EventsCfg::MergeFrom(const ::google::protobuf::Message& from) { |
| 3182 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsCfg) |
| 3183 | GOOGLE_DCHECK_NE(&from, this); |
| 3184 | const EventsCfg* source = |
| 3185 | ::google::protobuf::DynamicCastToGenerated<EventsCfg>( |
| 3186 | &from); |
| 3187 | if (source == nullptr) { |
| 3188 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsCfg) |
| 3189 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3190 | } else { |
| 3191 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsCfg) |
| 3192 | MergeFrom(*source); |
| 3193 | } |
| 3194 | } |
| 3195 | |
| 3196 | void EventsCfg::MergeFrom(const EventsCfg& from) { |
| 3197 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsCfg) |
| 3198 | GOOGLE_DCHECK_NE(&from, this); |
| 3199 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3200 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3201 | (void) cached_has_bits; |
| 3202 | |
| 3203 | items_.MergeFrom(from.items_); |
| 3204 | } |
| 3205 | |
| 3206 | void EventsCfg::CopyFrom(const ::google::protobuf::Message& from) { |
| 3207 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsCfg) |
| 3208 | if (&from == this) return; |
| 3209 | Clear(); |
| 3210 | MergeFrom(from); |
| 3211 | } |
| 3212 | |
| 3213 | void EventsCfg::CopyFrom(const EventsCfg& from) { |
| 3214 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsCfg) |
| 3215 | if (&from == this) return; |
| 3216 | Clear(); |
| 3217 | MergeFrom(from); |
| 3218 | } |
| 3219 | |
| 3220 | bool EventsCfg::IsInitialized() const { |
| 3221 | return true; |
| 3222 | } |
| 3223 | |
| 3224 | void EventsCfg::Swap(EventsCfg* other) { |
| 3225 | if (other == this) return; |
| 3226 | InternalSwap(other); |
| 3227 | } |
| 3228 | void EventsCfg::InternalSwap(EventsCfg* other) { |
| 3229 | using std::swap; |
| 3230 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3231 | CastToBase(&items_)->InternalSwap(CastToBase(&other->items_)); |
| 3232 | } |
| 3233 | |
| 3234 | ::google::protobuf::Metadata EventsCfg::GetMetadata() const { |
| 3235 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 3236 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 3237 | } |
| 3238 | |
| 3239 | |
| 3240 | // =================================================================== |
| 3241 | |
| 3242 | void ListEventsResponse::InitAsDefaultInstance() { |
| 3243 | ::dmi::_ListEventsResponse_default_instance_._instance.get_mutable()->events_ = const_cast< ::dmi::EventsCfg*>( |
| 3244 | ::dmi::EventsCfg::internal_default_instance()); |
| 3245 | } |
| 3246 | class ListEventsResponse::HasBitSetters { |
| 3247 | public: |
| 3248 | static const ::dmi::EventsCfg& events(const ListEventsResponse* msg); |
| 3249 | }; |
| 3250 | |
| 3251 | const ::dmi::EventsCfg& |
| 3252 | ListEventsResponse::HasBitSetters::events(const ListEventsResponse* msg) { |
| 3253 | return *msg->events_; |
| 3254 | } |
| 3255 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3256 | const int ListEventsResponse::kStatusFieldNumber; |
| 3257 | const int ListEventsResponse::kReasonFieldNumber; |
| 3258 | const int ListEventsResponse::kEventsFieldNumber; |
| 3259 | const int ListEventsResponse::kReasonDetailFieldNumber; |
| 3260 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3261 | |
| 3262 | ListEventsResponse::ListEventsResponse() |
| 3263 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3264 | SharedCtor(); |
| 3265 | // @@protoc_insertion_point(constructor:dmi.ListEventsResponse) |
| 3266 | } |
| 3267 | ListEventsResponse::ListEventsResponse(const ListEventsResponse& from) |
| 3268 | : ::google::protobuf::Message(), |
| 3269 | _internal_metadata_(nullptr) { |
| 3270 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3271 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3272 | if (from.reason_detail().size() > 0) { |
| 3273 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3274 | } |
| 3275 | if (from.has_events()) { |
| 3276 | events_ = new ::dmi::EventsCfg(*from.events_); |
| 3277 | } else { |
| 3278 | events_ = nullptr; |
| 3279 | } |
| 3280 | ::memcpy(&status_, &from.status_, |
| 3281 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3282 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3283 | // @@protoc_insertion_point(copy_constructor:dmi.ListEventsResponse) |
| 3284 | } |
| 3285 | |
| 3286 | void ListEventsResponse::SharedCtor() { |
| 3287 | ::google::protobuf::internal::InitSCC( |
| 3288 | &scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3289 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3290 | ::memset(&events_, 0, static_cast<size_t>( |
| 3291 | reinterpret_cast<char*>(&reason_) - |
| 3292 | reinterpret_cast<char*>(&events_)) + sizeof(reason_)); |
| 3293 | } |
| 3294 | |
| 3295 | ListEventsResponse::~ListEventsResponse() { |
| 3296 | // @@protoc_insertion_point(destructor:dmi.ListEventsResponse) |
| 3297 | SharedDtor(); |
| 3298 | } |
| 3299 | |
| 3300 | void ListEventsResponse::SharedDtor() { |
| 3301 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3302 | if (this != internal_default_instance()) delete events_; |
| 3303 | } |
| 3304 | |
| 3305 | void ListEventsResponse::SetCachedSize(int size) const { |
| 3306 | _cached_size_.Set(size); |
| 3307 | } |
| 3308 | const ListEventsResponse& ListEventsResponse::default_instance() { |
| 3309 | ::google::protobuf::internal::InitSCC(&::scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3310 | return *internal_default_instance(); |
| 3311 | } |
| 3312 | |
| 3313 | |
| 3314 | void ListEventsResponse::Clear() { |
| 3315 | // @@protoc_insertion_point(message_clear_start:dmi.ListEventsResponse) |
| 3316 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3317 | // Prevent compiler warnings about cached_has_bits being unused |
| 3318 | (void) cached_has_bits; |
| 3319 | |
| 3320 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3321 | if (GetArenaNoVirtual() == nullptr && events_ != nullptr) { |
| 3322 | delete events_; |
| 3323 | } |
| 3324 | events_ = nullptr; |
| 3325 | ::memset(&status_, 0, static_cast<size_t>( |
| 3326 | reinterpret_cast<char*>(&reason_) - |
| 3327 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3328 | _internal_metadata_.Clear(); |
| 3329 | } |
| 3330 | |
| 3331 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3332 | const char* ListEventsResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3333 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3334 | auto msg = static_cast<ListEventsResponse*>(object); |
| 3335 | ::google::protobuf::int32 size; (void)size; |
| 3336 | int depth; (void)depth; |
| 3337 | ::google::protobuf::uint32 tag; |
| 3338 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3339 | auto ptr = begin; |
| 3340 | while (ptr < end) { |
| 3341 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3342 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3343 | switch (tag >> 3) { |
| 3344 | // .dmi.Status status = 1; |
| 3345 | case 1: { |
| 3346 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3347 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3348 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3349 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3350 | break; |
| 3351 | } |
| 3352 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3353 | case 2: { |
| 3354 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3355 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3356 | msg->set_reason(static_cast<::dmi::ListEventsResponse_Reason>(val)); |
| 3357 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3358 | break; |
| 3359 | } |
| 3360 | // .dmi.EventsCfg events = 3; |
| 3361 | case 3: { |
| 3362 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3363 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3364 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3365 | parser_till_end = ::dmi::EventsCfg::_InternalParse; |
| 3366 | object = msg->mutable_events(); |
| 3367 | if (size > end - ptr) goto len_delim_till_end; |
| 3368 | ptr += size; |
| 3369 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3370 | {parser_till_end, object}, ptr - size, ptr)); |
| 3371 | break; |
| 3372 | } |
| 3373 | // string reason_detail = 4; |
| 3374 | case 4: { |
| 3375 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3376 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3377 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3378 | ctx->extra_parse_data().SetFieldName("dmi.ListEventsResponse.reason_detail"); |
| 3379 | object = msg->mutable_reason_detail(); |
| 3380 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3381 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3382 | goto string_till_end; |
| 3383 | } |
| 3384 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3385 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3386 | ptr += size; |
| 3387 | break; |
| 3388 | } |
| 3389 | default: { |
| 3390 | handle_unusual: |
| 3391 | if ((tag & 7) == 4 || tag == 0) { |
| 3392 | ctx->EndGroup(tag); |
| 3393 | return ptr; |
| 3394 | } |
| 3395 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3396 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3397 | ptr = res.first; |
| 3398 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3399 | if (res.second) return ptr; |
| 3400 | } |
| 3401 | } // switch |
| 3402 | } // while |
| 3403 | return ptr; |
| 3404 | string_till_end: |
| 3405 | static_cast<::std::string*>(object)->clear(); |
| 3406 | static_cast<::std::string*>(object)->reserve(size); |
| 3407 | goto len_delim_till_end; |
| 3408 | len_delim_till_end: |
| 3409 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3410 | {parser_till_end, object}, size); |
| 3411 | } |
| 3412 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3413 | bool ListEventsResponse::MergePartialFromCodedStream( |
| 3414 | ::google::protobuf::io::CodedInputStream* input) { |
| 3415 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3416 | ::google::protobuf::uint32 tag; |
| 3417 | // @@protoc_insertion_point(parse_start:dmi.ListEventsResponse) |
| 3418 | for (;;) { |
| 3419 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3420 | tag = p.first; |
| 3421 | if (!p.second) goto handle_unusual; |
| 3422 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3423 | // .dmi.Status status = 1; |
| 3424 | case 1: { |
| 3425 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3426 | int value = 0; |
| 3427 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3428 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3429 | input, &value))); |
| 3430 | set_status(static_cast< ::dmi::Status >(value)); |
| 3431 | } else { |
| 3432 | goto handle_unusual; |
| 3433 | } |
| 3434 | break; |
| 3435 | } |
| 3436 | |
| 3437 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3438 | case 2: { |
| 3439 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3440 | int value = 0; |
| 3441 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3442 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3443 | input, &value))); |
| 3444 | set_reason(static_cast< ::dmi::ListEventsResponse_Reason >(value)); |
| 3445 | } else { |
| 3446 | goto handle_unusual; |
| 3447 | } |
| 3448 | break; |
| 3449 | } |
| 3450 | |
| 3451 | // .dmi.EventsCfg events = 3; |
| 3452 | case 3: { |
| 3453 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3454 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3455 | input, mutable_events())); |
| 3456 | } else { |
| 3457 | goto handle_unusual; |
| 3458 | } |
| 3459 | break; |
| 3460 | } |
| 3461 | |
| 3462 | // string reason_detail = 4; |
| 3463 | case 4: { |
| 3464 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3465 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3466 | input, this->mutable_reason_detail())); |
| 3467 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3468 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3469 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3470 | "dmi.ListEventsResponse.reason_detail")); |
| 3471 | } else { |
| 3472 | goto handle_unusual; |
| 3473 | } |
| 3474 | break; |
| 3475 | } |
| 3476 | |
| 3477 | default: { |
| 3478 | handle_unusual: |
| 3479 | if (tag == 0) { |
| 3480 | goto success; |
| 3481 | } |
| 3482 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3483 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3484 | break; |
| 3485 | } |
| 3486 | } |
| 3487 | } |
| 3488 | success: |
| 3489 | // @@protoc_insertion_point(parse_success:dmi.ListEventsResponse) |
| 3490 | return true; |
| 3491 | failure: |
| 3492 | // @@protoc_insertion_point(parse_failure:dmi.ListEventsResponse) |
| 3493 | return false; |
| 3494 | #undef DO_ |
| 3495 | } |
| 3496 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3497 | |
| 3498 | void ListEventsResponse::SerializeWithCachedSizes( |
| 3499 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3500 | // @@protoc_insertion_point(serialize_start:dmi.ListEventsResponse) |
| 3501 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3502 | (void) cached_has_bits; |
| 3503 | |
| 3504 | // .dmi.Status status = 1; |
| 3505 | if (this->status() != 0) { |
| 3506 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3507 | 1, this->status(), output); |
| 3508 | } |
| 3509 | |
| 3510 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3511 | if (this->reason() != 0) { |
| 3512 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3513 | 2, this->reason(), output); |
| 3514 | } |
| 3515 | |
| 3516 | // .dmi.EventsCfg events = 3; |
| 3517 | if (this->has_events()) { |
| 3518 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3519 | 3, HasBitSetters::events(this), output); |
| 3520 | } |
| 3521 | |
| 3522 | // string reason_detail = 4; |
| 3523 | if (this->reason_detail().size() > 0) { |
| 3524 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3525 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3526 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3527 | "dmi.ListEventsResponse.reason_detail"); |
| 3528 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3529 | 4, this->reason_detail(), output); |
| 3530 | } |
| 3531 | |
| 3532 | if (_internal_metadata_.have_unknown_fields()) { |
| 3533 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3534 | _internal_metadata_.unknown_fields(), output); |
| 3535 | } |
| 3536 | // @@protoc_insertion_point(serialize_end:dmi.ListEventsResponse) |
| 3537 | } |
| 3538 | |
| 3539 | ::google::protobuf::uint8* ListEventsResponse::InternalSerializeWithCachedSizesToArray( |
| 3540 | ::google::protobuf::uint8* target) const { |
| 3541 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ListEventsResponse) |
| 3542 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3543 | (void) cached_has_bits; |
| 3544 | |
| 3545 | // .dmi.Status status = 1; |
| 3546 | if (this->status() != 0) { |
| 3547 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3548 | 1, this->status(), target); |
| 3549 | } |
| 3550 | |
| 3551 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3552 | if (this->reason() != 0) { |
| 3553 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3554 | 2, this->reason(), target); |
| 3555 | } |
| 3556 | |
| 3557 | // .dmi.EventsCfg events = 3; |
| 3558 | if (this->has_events()) { |
| 3559 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3560 | InternalWriteMessageToArray( |
| 3561 | 3, HasBitSetters::events(this), target); |
| 3562 | } |
| 3563 | |
| 3564 | // string reason_detail = 4; |
| 3565 | if (this->reason_detail().size() > 0) { |
| 3566 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3567 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3568 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3569 | "dmi.ListEventsResponse.reason_detail"); |
| 3570 | target = |
| 3571 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3572 | 4, this->reason_detail(), target); |
| 3573 | } |
| 3574 | |
| 3575 | if (_internal_metadata_.have_unknown_fields()) { |
| 3576 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3577 | _internal_metadata_.unknown_fields(), target); |
| 3578 | } |
| 3579 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ListEventsResponse) |
| 3580 | return target; |
| 3581 | } |
| 3582 | |
| 3583 | size_t ListEventsResponse::ByteSizeLong() const { |
| 3584 | // @@protoc_insertion_point(message_byte_size_start:dmi.ListEventsResponse) |
| 3585 | size_t total_size = 0; |
| 3586 | |
| 3587 | if (_internal_metadata_.have_unknown_fields()) { |
| 3588 | total_size += |
| 3589 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3590 | _internal_metadata_.unknown_fields()); |
| 3591 | } |
| 3592 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3593 | // Prevent compiler warnings about cached_has_bits being unused |
| 3594 | (void) cached_has_bits; |
| 3595 | |
| 3596 | // string reason_detail = 4; |
| 3597 | if (this->reason_detail().size() > 0) { |
| 3598 | total_size += 1 + |
| 3599 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3600 | this->reason_detail()); |
| 3601 | } |
| 3602 | |
| 3603 | // .dmi.EventsCfg events = 3; |
| 3604 | if (this->has_events()) { |
| 3605 | total_size += 1 + |
| 3606 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3607 | *events_); |
| 3608 | } |
| 3609 | |
| 3610 | // .dmi.Status status = 1; |
| 3611 | if (this->status() != 0) { |
| 3612 | total_size += 1 + |
| 3613 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3614 | } |
| 3615 | |
| 3616 | // .dmi.ListEventsResponse.Reason reason = 2; |
| 3617 | if (this->reason() != 0) { |
| 3618 | total_size += 1 + |
| 3619 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3620 | } |
| 3621 | |
| 3622 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3623 | SetCachedSize(cached_size); |
| 3624 | return total_size; |
| 3625 | } |
| 3626 | |
| 3627 | void ListEventsResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3628 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ListEventsResponse) |
| 3629 | GOOGLE_DCHECK_NE(&from, this); |
| 3630 | const ListEventsResponse* source = |
| 3631 | ::google::protobuf::DynamicCastToGenerated<ListEventsResponse>( |
| 3632 | &from); |
| 3633 | if (source == nullptr) { |
| 3634 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ListEventsResponse) |
| 3635 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3636 | } else { |
| 3637 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ListEventsResponse) |
| 3638 | MergeFrom(*source); |
| 3639 | } |
| 3640 | } |
| 3641 | |
| 3642 | void ListEventsResponse::MergeFrom(const ListEventsResponse& from) { |
| 3643 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ListEventsResponse) |
| 3644 | GOOGLE_DCHECK_NE(&from, this); |
| 3645 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3646 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3647 | (void) cached_has_bits; |
| 3648 | |
| 3649 | if (from.reason_detail().size() > 0) { |
| 3650 | |
| 3651 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3652 | } |
| 3653 | if (from.has_events()) { |
| 3654 | mutable_events()->::dmi::EventsCfg::MergeFrom(from.events()); |
| 3655 | } |
| 3656 | if (from.status() != 0) { |
| 3657 | set_status(from.status()); |
| 3658 | } |
| 3659 | if (from.reason() != 0) { |
| 3660 | set_reason(from.reason()); |
| 3661 | } |
| 3662 | } |
| 3663 | |
| 3664 | void ListEventsResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3665 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ListEventsResponse) |
| 3666 | if (&from == this) return; |
| 3667 | Clear(); |
| 3668 | MergeFrom(from); |
| 3669 | } |
| 3670 | |
| 3671 | void ListEventsResponse::CopyFrom(const ListEventsResponse& from) { |
| 3672 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ListEventsResponse) |
| 3673 | if (&from == this) return; |
| 3674 | Clear(); |
| 3675 | MergeFrom(from); |
| 3676 | } |
| 3677 | |
| 3678 | bool ListEventsResponse::IsInitialized() const { |
| 3679 | return true; |
| 3680 | } |
| 3681 | |
| 3682 | void ListEventsResponse::Swap(ListEventsResponse* other) { |
| 3683 | if (other == this) return; |
| 3684 | InternalSwap(other); |
| 3685 | } |
| 3686 | void ListEventsResponse::InternalSwap(ListEventsResponse* other) { |
| 3687 | using std::swap; |
| 3688 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3689 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3690 | GetArenaNoVirtual()); |
| 3691 | swap(events_, other->events_); |
| 3692 | swap(status_, other->status_); |
| 3693 | swap(reason_, other->reason_); |
| 3694 | } |
| 3695 | |
| 3696 | ::google::protobuf::Metadata ListEventsResponse::GetMetadata() const { |
| 3697 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 3698 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 3699 | } |
| 3700 | |
| 3701 | |
| 3702 | // =================================================================== |
| 3703 | |
| 3704 | void EventsConfigurationRequest::InitAsDefaultInstance() { |
| 3705 | ::dmi::_EventsConfigurationRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3706 | ::dmi::Uuid::internal_default_instance()); |
| 3707 | ::dmi::_EventsConfigurationRequest_default_instance_.changes_ = const_cast< ::dmi::EventsCfg*>( |
| 3708 | ::dmi::EventsCfg::internal_default_instance()); |
| 3709 | ::dmi::_EventsConfigurationRequest_default_instance_.reset_to_default_ = false; |
| 3710 | } |
| 3711 | class EventsConfigurationRequest::HasBitSetters { |
| 3712 | public: |
| 3713 | static const ::dmi::Uuid& device_uuid(const EventsConfigurationRequest* msg); |
| 3714 | static const ::dmi::EventsCfg& changes(const EventsConfigurationRequest* msg); |
| 3715 | }; |
| 3716 | |
| 3717 | const ::dmi::Uuid& |
| 3718 | EventsConfigurationRequest::HasBitSetters::device_uuid(const EventsConfigurationRequest* msg) { |
| 3719 | return *msg->device_uuid_; |
| 3720 | } |
| 3721 | const ::dmi::EventsCfg& |
| 3722 | EventsConfigurationRequest::HasBitSetters::changes(const EventsConfigurationRequest* msg) { |
| 3723 | return *msg->operation_.changes_; |
| 3724 | } |
| 3725 | void EventsConfigurationRequest::clear_device_uuid() { |
| 3726 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3727 | delete device_uuid_; |
| 3728 | } |
| 3729 | device_uuid_ = nullptr; |
| 3730 | } |
| 3731 | void EventsConfigurationRequest::set_allocated_changes(::dmi::EventsCfg* changes) { |
| 3732 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 3733 | clear_operation(); |
| 3734 | if (changes) { |
| 3735 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 3736 | if (message_arena != submessage_arena) { |
| 3737 | changes = ::google::protobuf::internal::GetOwnedMessage( |
| 3738 | message_arena, changes, submessage_arena); |
| 3739 | } |
| 3740 | set_has_changes(); |
| 3741 | operation_.changes_ = changes; |
| 3742 | } |
| 3743 | // @@protoc_insertion_point(field_set_allocated:dmi.EventsConfigurationRequest.changes) |
| 3744 | } |
| 3745 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3746 | const int EventsConfigurationRequest::kDeviceUuidFieldNumber; |
| 3747 | const int EventsConfigurationRequest::kChangesFieldNumber; |
| 3748 | const int EventsConfigurationRequest::kResetToDefaultFieldNumber; |
| 3749 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3750 | |
| 3751 | EventsConfigurationRequest::EventsConfigurationRequest() |
| 3752 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3753 | SharedCtor(); |
| 3754 | // @@protoc_insertion_point(constructor:dmi.EventsConfigurationRequest) |
| 3755 | } |
| 3756 | EventsConfigurationRequest::EventsConfigurationRequest(const EventsConfigurationRequest& from) |
| 3757 | : ::google::protobuf::Message(), |
| 3758 | _internal_metadata_(nullptr) { |
| 3759 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3760 | if (from.has_device_uuid()) { |
| 3761 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3762 | } else { |
| 3763 | device_uuid_ = nullptr; |
| 3764 | } |
| 3765 | clear_has_operation(); |
| 3766 | switch (from.operation_case()) { |
| 3767 | case kChanges: { |
| 3768 | mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes()); |
| 3769 | break; |
| 3770 | } |
| 3771 | case kResetToDefault: { |
| 3772 | set_reset_to_default(from.reset_to_default()); |
| 3773 | break; |
| 3774 | } |
| 3775 | case OPERATION_NOT_SET: { |
| 3776 | break; |
| 3777 | } |
| 3778 | } |
| 3779 | // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationRequest) |
| 3780 | } |
| 3781 | |
| 3782 | void EventsConfigurationRequest::SharedCtor() { |
| 3783 | ::google::protobuf::internal::InitSCC( |
| 3784 | &scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| amit.ghosh | 7a093bd | 2023-03-07 16:31:56 +0100 | [diff] [blame] | 3785 | device_uuid_ = nullptr; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3786 | clear_has_operation(); |
| 3787 | } |
| 3788 | |
| 3789 | EventsConfigurationRequest::~EventsConfigurationRequest() { |
| 3790 | // @@protoc_insertion_point(destructor:dmi.EventsConfigurationRequest) |
| 3791 | SharedDtor(); |
| 3792 | } |
| 3793 | |
| 3794 | void EventsConfigurationRequest::SharedDtor() { |
| 3795 | if (this != internal_default_instance()) delete device_uuid_; |
| 3796 | if (has_operation()) { |
| 3797 | clear_operation(); |
| 3798 | } |
| 3799 | } |
| 3800 | |
| 3801 | void EventsConfigurationRequest::SetCachedSize(int size) const { |
| 3802 | _cached_size_.Set(size); |
| 3803 | } |
| 3804 | const EventsConfigurationRequest& EventsConfigurationRequest::default_instance() { |
| 3805 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 3806 | return *internal_default_instance(); |
| 3807 | } |
| 3808 | |
| 3809 | |
| 3810 | void EventsConfigurationRequest::clear_operation() { |
| 3811 | // @@protoc_insertion_point(one_of_clear_start:dmi.EventsConfigurationRequest) |
| 3812 | switch (operation_case()) { |
| 3813 | case kChanges: { |
| 3814 | delete operation_.changes_; |
| 3815 | break; |
| 3816 | } |
| 3817 | case kResetToDefault: { |
| 3818 | // No need to clear |
| 3819 | break; |
| 3820 | } |
| 3821 | case OPERATION_NOT_SET: { |
| 3822 | break; |
| 3823 | } |
| 3824 | } |
| 3825 | _oneof_case_[0] = OPERATION_NOT_SET; |
| 3826 | } |
| 3827 | |
| 3828 | |
| 3829 | void EventsConfigurationRequest::Clear() { |
| 3830 | // @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationRequest) |
| 3831 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3832 | // Prevent compiler warnings about cached_has_bits being unused |
| 3833 | (void) cached_has_bits; |
| 3834 | |
| 3835 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3836 | delete device_uuid_; |
| 3837 | } |
| 3838 | device_uuid_ = nullptr; |
| 3839 | clear_operation(); |
| 3840 | _internal_metadata_.Clear(); |
| 3841 | } |
| 3842 | |
| 3843 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3844 | const char* EventsConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3845 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3846 | auto msg = static_cast<EventsConfigurationRequest*>(object); |
| 3847 | ::google::protobuf::int32 size; (void)size; |
| 3848 | int depth; (void)depth; |
| 3849 | ::google::protobuf::uint32 tag; |
| 3850 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3851 | auto ptr = begin; |
| 3852 | while (ptr < end) { |
| 3853 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3854 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3855 | switch (tag >> 3) { |
| 3856 | // .dmi.Uuid device_uuid = 1; |
| 3857 | case 1: { |
| 3858 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3859 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3860 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3861 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3862 | object = msg->mutable_device_uuid(); |
| 3863 | if (size > end - ptr) goto len_delim_till_end; |
| 3864 | ptr += size; |
| 3865 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3866 | {parser_till_end, object}, ptr - size, ptr)); |
| 3867 | break; |
| 3868 | } |
| 3869 | // .dmi.EventsCfg changes = 2; |
| 3870 | case 2: { |
| 3871 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3872 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3873 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3874 | parser_till_end = ::dmi::EventsCfg::_InternalParse; |
| 3875 | object = msg->mutable_changes(); |
| 3876 | if (size > end - ptr) goto len_delim_till_end; |
| 3877 | ptr += size; |
| 3878 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3879 | {parser_till_end, object}, ptr - size, ptr)); |
| 3880 | break; |
| 3881 | } |
| 3882 | // bool reset_to_default = 3; |
| 3883 | case 3: { |
| 3884 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 3885 | msg->set_reset_to_default(::google::protobuf::internal::ReadVarint(&ptr)); |
| 3886 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3887 | break; |
| 3888 | } |
| 3889 | default: { |
| 3890 | handle_unusual: |
| 3891 | if ((tag & 7) == 4 || tag == 0) { |
| 3892 | ctx->EndGroup(tag); |
| 3893 | return ptr; |
| 3894 | } |
| 3895 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3896 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3897 | ptr = res.first; |
| 3898 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3899 | if (res.second) return ptr; |
| 3900 | } |
| 3901 | } // switch |
| 3902 | } // while |
| 3903 | return ptr; |
| 3904 | len_delim_till_end: |
| 3905 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3906 | {parser_till_end, object}, size); |
| 3907 | } |
| 3908 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3909 | bool EventsConfigurationRequest::MergePartialFromCodedStream( |
| 3910 | ::google::protobuf::io::CodedInputStream* input) { |
| 3911 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3912 | ::google::protobuf::uint32 tag; |
| 3913 | // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationRequest) |
| 3914 | for (;;) { |
| 3915 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3916 | tag = p.first; |
| 3917 | if (!p.second) goto handle_unusual; |
| 3918 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3919 | // .dmi.Uuid device_uuid = 1; |
| 3920 | case 1: { |
| 3921 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3922 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3923 | input, mutable_device_uuid())); |
| 3924 | } else { |
| 3925 | goto handle_unusual; |
| 3926 | } |
| 3927 | break; |
| 3928 | } |
| 3929 | |
| 3930 | // .dmi.EventsCfg changes = 2; |
| 3931 | case 2: { |
| 3932 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3933 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3934 | input, mutable_changes())); |
| 3935 | } else { |
| 3936 | goto handle_unusual; |
| 3937 | } |
| 3938 | break; |
| 3939 | } |
| 3940 | |
| 3941 | // bool reset_to_default = 3; |
| 3942 | case 3: { |
| 3943 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 3944 | clear_operation(); |
| 3945 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3946 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 3947 | input, &operation_.reset_to_default_))); |
| 3948 | set_has_reset_to_default(); |
| 3949 | } else { |
| 3950 | goto handle_unusual; |
| 3951 | } |
| 3952 | break; |
| 3953 | } |
| 3954 | |
| 3955 | default: { |
| 3956 | handle_unusual: |
| 3957 | if (tag == 0) { |
| 3958 | goto success; |
| 3959 | } |
| 3960 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3961 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3962 | break; |
| 3963 | } |
| 3964 | } |
| 3965 | } |
| 3966 | success: |
| 3967 | // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationRequest) |
| 3968 | return true; |
| 3969 | failure: |
| 3970 | // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationRequest) |
| 3971 | return false; |
| 3972 | #undef DO_ |
| 3973 | } |
| 3974 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3975 | |
| 3976 | void EventsConfigurationRequest::SerializeWithCachedSizes( |
| 3977 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3978 | // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationRequest) |
| 3979 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3980 | (void) cached_has_bits; |
| 3981 | |
| 3982 | // .dmi.Uuid device_uuid = 1; |
| 3983 | if (this->has_device_uuid()) { |
| 3984 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3985 | 1, HasBitSetters::device_uuid(this), output); |
| 3986 | } |
| 3987 | |
| 3988 | // .dmi.EventsCfg changes = 2; |
| 3989 | if (has_changes()) { |
| 3990 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3991 | 2, HasBitSetters::changes(this), output); |
| 3992 | } |
| 3993 | |
| 3994 | // bool reset_to_default = 3; |
| 3995 | if (has_reset_to_default()) { |
| 3996 | ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->reset_to_default(), output); |
| 3997 | } |
| 3998 | |
| 3999 | if (_internal_metadata_.have_unknown_fields()) { |
| 4000 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4001 | _internal_metadata_.unknown_fields(), output); |
| 4002 | } |
| 4003 | // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationRequest) |
| 4004 | } |
| 4005 | |
| 4006 | ::google::protobuf::uint8* EventsConfigurationRequest::InternalSerializeWithCachedSizesToArray( |
| 4007 | ::google::protobuf::uint8* target) const { |
| 4008 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationRequest) |
| 4009 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4010 | (void) cached_has_bits; |
| 4011 | |
| 4012 | // .dmi.Uuid device_uuid = 1; |
| 4013 | if (this->has_device_uuid()) { |
| 4014 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4015 | InternalWriteMessageToArray( |
| 4016 | 1, HasBitSetters::device_uuid(this), target); |
| 4017 | } |
| 4018 | |
| 4019 | // .dmi.EventsCfg changes = 2; |
| 4020 | if (has_changes()) { |
| 4021 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4022 | InternalWriteMessageToArray( |
| 4023 | 2, HasBitSetters::changes(this), target); |
| 4024 | } |
| 4025 | |
| 4026 | // bool reset_to_default = 3; |
| 4027 | if (has_reset_to_default()) { |
| 4028 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->reset_to_default(), target); |
| 4029 | } |
| 4030 | |
| 4031 | if (_internal_metadata_.have_unknown_fields()) { |
| 4032 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4033 | _internal_metadata_.unknown_fields(), target); |
| 4034 | } |
| 4035 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationRequest) |
| 4036 | return target; |
| 4037 | } |
| 4038 | |
| 4039 | size_t EventsConfigurationRequest::ByteSizeLong() const { |
| 4040 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationRequest) |
| 4041 | size_t total_size = 0; |
| 4042 | |
| 4043 | if (_internal_metadata_.have_unknown_fields()) { |
| 4044 | total_size += |
| 4045 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4046 | _internal_metadata_.unknown_fields()); |
| 4047 | } |
| 4048 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4049 | // Prevent compiler warnings about cached_has_bits being unused |
| 4050 | (void) cached_has_bits; |
| 4051 | |
| 4052 | // .dmi.Uuid device_uuid = 1; |
| 4053 | if (this->has_device_uuid()) { |
| 4054 | total_size += 1 + |
| 4055 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4056 | *device_uuid_); |
| 4057 | } |
| 4058 | |
| 4059 | switch (operation_case()) { |
| 4060 | // .dmi.EventsCfg changes = 2; |
| 4061 | case kChanges: { |
| 4062 | total_size += 1 + |
| 4063 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4064 | *operation_.changes_); |
| 4065 | break; |
| 4066 | } |
| 4067 | // bool reset_to_default = 3; |
| 4068 | case kResetToDefault: { |
| 4069 | total_size += 1 + 1; |
| 4070 | break; |
| 4071 | } |
| 4072 | case OPERATION_NOT_SET: { |
| 4073 | break; |
| 4074 | } |
| 4075 | } |
| 4076 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4077 | SetCachedSize(cached_size); |
| 4078 | return total_size; |
| 4079 | } |
| 4080 | |
| 4081 | void EventsConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 4082 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationRequest) |
| 4083 | GOOGLE_DCHECK_NE(&from, this); |
| 4084 | const EventsConfigurationRequest* source = |
| 4085 | ::google::protobuf::DynamicCastToGenerated<EventsConfigurationRequest>( |
| 4086 | &from); |
| 4087 | if (source == nullptr) { |
| 4088 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationRequest) |
| 4089 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4090 | } else { |
| 4091 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationRequest) |
| 4092 | MergeFrom(*source); |
| 4093 | } |
| 4094 | } |
| 4095 | |
| 4096 | void EventsConfigurationRequest::MergeFrom(const EventsConfigurationRequest& from) { |
| 4097 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationRequest) |
| 4098 | GOOGLE_DCHECK_NE(&from, this); |
| 4099 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4100 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4101 | (void) cached_has_bits; |
| 4102 | |
| 4103 | if (from.has_device_uuid()) { |
| 4104 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4105 | } |
| 4106 | switch (from.operation_case()) { |
| 4107 | case kChanges: { |
| 4108 | mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes()); |
| 4109 | break; |
| 4110 | } |
| 4111 | case kResetToDefault: { |
| 4112 | set_reset_to_default(from.reset_to_default()); |
| 4113 | break; |
| 4114 | } |
| 4115 | case OPERATION_NOT_SET: { |
| 4116 | break; |
| 4117 | } |
| 4118 | } |
| 4119 | } |
| 4120 | |
| 4121 | void EventsConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 4122 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationRequest) |
| 4123 | if (&from == this) return; |
| 4124 | Clear(); |
| 4125 | MergeFrom(from); |
| 4126 | } |
| 4127 | |
| 4128 | void EventsConfigurationRequest::CopyFrom(const EventsConfigurationRequest& from) { |
| 4129 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationRequest) |
| 4130 | if (&from == this) return; |
| 4131 | Clear(); |
| 4132 | MergeFrom(from); |
| 4133 | } |
| 4134 | |
| 4135 | bool EventsConfigurationRequest::IsInitialized() const { |
| 4136 | return true; |
| 4137 | } |
| 4138 | |
| 4139 | void EventsConfigurationRequest::Swap(EventsConfigurationRequest* other) { |
| 4140 | if (other == this) return; |
| 4141 | InternalSwap(other); |
| 4142 | } |
| 4143 | void EventsConfigurationRequest::InternalSwap(EventsConfigurationRequest* other) { |
| 4144 | using std::swap; |
| 4145 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4146 | swap(device_uuid_, other->device_uuid_); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 4147 | swap(operation_, other->operation_); |
| 4148 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 4149 | } |
| 4150 | |
| 4151 | ::google::protobuf::Metadata EventsConfigurationRequest::GetMetadata() const { |
| 4152 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 4153 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 4154 | } |
| 4155 | |
| 4156 | |
| 4157 | // =================================================================== |
| 4158 | |
| 4159 | void EventsConfigurationResponse::InitAsDefaultInstance() { |
| 4160 | } |
| 4161 | class EventsConfigurationResponse::HasBitSetters { |
| 4162 | public: |
| 4163 | }; |
| 4164 | |
| 4165 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4166 | const int EventsConfigurationResponse::kStatusFieldNumber; |
| 4167 | const int EventsConfigurationResponse::kReasonFieldNumber; |
| 4168 | const int EventsConfigurationResponse::kReasonDetailFieldNumber; |
| 4169 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4170 | |
| 4171 | EventsConfigurationResponse::EventsConfigurationResponse() |
| 4172 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4173 | SharedCtor(); |
| 4174 | // @@protoc_insertion_point(constructor:dmi.EventsConfigurationResponse) |
| 4175 | } |
| 4176 | EventsConfigurationResponse::EventsConfigurationResponse(const EventsConfigurationResponse& from) |
| 4177 | : ::google::protobuf::Message(), |
| 4178 | _internal_metadata_(nullptr) { |
| 4179 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4180 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4181 | if (from.reason_detail().size() > 0) { |
| 4182 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4183 | } |
| 4184 | ::memcpy(&status_, &from.status_, |
| 4185 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 4186 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4187 | // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationResponse) |
| 4188 | } |
| 4189 | |
| 4190 | void EventsConfigurationResponse::SharedCtor() { |
| 4191 | ::google::protobuf::internal::InitSCC( |
| 4192 | &scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4193 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4194 | ::memset(&status_, 0, static_cast<size_t>( |
| 4195 | reinterpret_cast<char*>(&reason_) - |
| 4196 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4197 | } |
| 4198 | |
| 4199 | EventsConfigurationResponse::~EventsConfigurationResponse() { |
| 4200 | // @@protoc_insertion_point(destructor:dmi.EventsConfigurationResponse) |
| 4201 | SharedDtor(); |
| 4202 | } |
| 4203 | |
| 4204 | void EventsConfigurationResponse::SharedDtor() { |
| 4205 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4206 | } |
| 4207 | |
| 4208 | void EventsConfigurationResponse::SetCachedSize(int size) const { |
| 4209 | _cached_size_.Set(size); |
| 4210 | } |
| 4211 | const EventsConfigurationResponse& EventsConfigurationResponse::default_instance() { |
| 4212 | ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4213 | return *internal_default_instance(); |
| 4214 | } |
| 4215 | |
| 4216 | |
| 4217 | void EventsConfigurationResponse::Clear() { |
| 4218 | // @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationResponse) |
| 4219 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4220 | // Prevent compiler warnings about cached_has_bits being unused |
| 4221 | (void) cached_has_bits; |
| 4222 | |
| 4223 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4224 | ::memset(&status_, 0, static_cast<size_t>( |
| 4225 | reinterpret_cast<char*>(&reason_) - |
| 4226 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4227 | _internal_metadata_.Clear(); |
| 4228 | } |
| 4229 | |
| 4230 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4231 | const char* EventsConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4232 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4233 | auto msg = static_cast<EventsConfigurationResponse*>(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.Status status = 1; |
| 4244 | case 1: { |
| 4245 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4246 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4247 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4248 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4249 | break; |
| 4250 | } |
| 4251 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4252 | case 2: { |
| 4253 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4254 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4255 | msg->set_reason(static_cast<::dmi::EventsConfigurationResponse_Reason>(val)); |
| 4256 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4257 | break; |
| 4258 | } |
| 4259 | // string reason_detail = 3; |
| 4260 | case 3: { |
| 4261 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4262 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4263 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4264 | ctx->extra_parse_data().SetFieldName("dmi.EventsConfigurationResponse.reason_detail"); |
| 4265 | object = msg->mutable_reason_detail(); |
| 4266 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4267 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4268 | goto string_till_end; |
| 4269 | } |
| 4270 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4271 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4272 | ptr += size; |
| 4273 | break; |
| 4274 | } |
| 4275 | default: { |
| 4276 | handle_unusual: |
| 4277 | if ((tag & 7) == 4 || tag == 0) { |
| 4278 | ctx->EndGroup(tag); |
| 4279 | return ptr; |
| 4280 | } |
| 4281 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4282 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4283 | ptr = res.first; |
| 4284 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4285 | if (res.second) return ptr; |
| 4286 | } |
| 4287 | } // switch |
| 4288 | } // while |
| 4289 | return ptr; |
| 4290 | string_till_end: |
| 4291 | static_cast<::std::string*>(object)->clear(); |
| 4292 | static_cast<::std::string*>(object)->reserve(size); |
| 4293 | goto len_delim_till_end; |
| 4294 | len_delim_till_end: |
| 4295 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4296 | {parser_till_end, object}, size); |
| 4297 | } |
| 4298 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4299 | bool EventsConfigurationResponse::MergePartialFromCodedStream( |
| 4300 | ::google::protobuf::io::CodedInputStream* input) { |
| 4301 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4302 | ::google::protobuf::uint32 tag; |
| 4303 | // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationResponse) |
| 4304 | for (;;) { |
| 4305 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4306 | tag = p.first; |
| 4307 | if (!p.second) goto handle_unusual; |
| 4308 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4309 | // .dmi.Status status = 1; |
| 4310 | case 1: { |
| 4311 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4312 | int value = 0; |
| 4313 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4314 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4315 | input, &value))); |
| 4316 | set_status(static_cast< ::dmi::Status >(value)); |
| 4317 | } else { |
| 4318 | goto handle_unusual; |
| 4319 | } |
| 4320 | break; |
| 4321 | } |
| 4322 | |
| 4323 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4324 | case 2: { |
| 4325 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4326 | int value = 0; |
| 4327 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4328 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4329 | input, &value))); |
| 4330 | set_reason(static_cast< ::dmi::EventsConfigurationResponse_Reason >(value)); |
| 4331 | } else { |
| 4332 | goto handle_unusual; |
| 4333 | } |
| 4334 | break; |
| 4335 | } |
| 4336 | |
| 4337 | // string reason_detail = 3; |
| 4338 | case 3: { |
| 4339 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4340 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4341 | input, this->mutable_reason_detail())); |
| 4342 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4343 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4344 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4345 | "dmi.EventsConfigurationResponse.reason_detail")); |
| 4346 | } else { |
| 4347 | goto handle_unusual; |
| 4348 | } |
| 4349 | break; |
| 4350 | } |
| 4351 | |
| 4352 | default: { |
| 4353 | handle_unusual: |
| 4354 | if (tag == 0) { |
| 4355 | goto success; |
| 4356 | } |
| 4357 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4358 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4359 | break; |
| 4360 | } |
| 4361 | } |
| 4362 | } |
| 4363 | success: |
| 4364 | // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationResponse) |
| 4365 | return true; |
| 4366 | failure: |
| 4367 | // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationResponse) |
| 4368 | return false; |
| 4369 | #undef DO_ |
| 4370 | } |
| 4371 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4372 | |
| 4373 | void EventsConfigurationResponse::SerializeWithCachedSizes( |
| 4374 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4375 | // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationResponse) |
| 4376 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4377 | (void) cached_has_bits; |
| 4378 | |
| 4379 | // .dmi.Status status = 1; |
| 4380 | if (this->status() != 0) { |
| 4381 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4382 | 1, this->status(), output); |
| 4383 | } |
| 4384 | |
| 4385 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4386 | if (this->reason() != 0) { |
| 4387 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4388 | 2, this->reason(), output); |
| 4389 | } |
| 4390 | |
| 4391 | // string reason_detail = 3; |
| 4392 | if (this->reason_detail().size() > 0) { |
| 4393 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4394 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4395 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4396 | "dmi.EventsConfigurationResponse.reason_detail"); |
| 4397 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4398 | 3, this->reason_detail(), output); |
| 4399 | } |
| 4400 | |
| 4401 | if (_internal_metadata_.have_unknown_fields()) { |
| 4402 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4403 | _internal_metadata_.unknown_fields(), output); |
| 4404 | } |
| 4405 | // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationResponse) |
| 4406 | } |
| 4407 | |
| 4408 | ::google::protobuf::uint8* EventsConfigurationResponse::InternalSerializeWithCachedSizesToArray( |
| 4409 | ::google::protobuf::uint8* target) const { |
| 4410 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationResponse) |
| 4411 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4412 | (void) cached_has_bits; |
| 4413 | |
| 4414 | // .dmi.Status status = 1; |
| 4415 | if (this->status() != 0) { |
| 4416 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4417 | 1, this->status(), target); |
| 4418 | } |
| 4419 | |
| 4420 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4421 | if (this->reason() != 0) { |
| 4422 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4423 | 2, this->reason(), target); |
| 4424 | } |
| 4425 | |
| 4426 | // string reason_detail = 3; |
| 4427 | if (this->reason_detail().size() > 0) { |
| 4428 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4429 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4430 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4431 | "dmi.EventsConfigurationResponse.reason_detail"); |
| 4432 | target = |
| 4433 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4434 | 3, this->reason_detail(), target); |
| 4435 | } |
| 4436 | |
| 4437 | if (_internal_metadata_.have_unknown_fields()) { |
| 4438 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4439 | _internal_metadata_.unknown_fields(), target); |
| 4440 | } |
| 4441 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationResponse) |
| 4442 | return target; |
| 4443 | } |
| 4444 | |
| 4445 | size_t EventsConfigurationResponse::ByteSizeLong() const { |
| 4446 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationResponse) |
| 4447 | size_t total_size = 0; |
| 4448 | |
| 4449 | if (_internal_metadata_.have_unknown_fields()) { |
| 4450 | total_size += |
| 4451 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4452 | _internal_metadata_.unknown_fields()); |
| 4453 | } |
| 4454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4455 | // Prevent compiler warnings about cached_has_bits being unused |
| 4456 | (void) cached_has_bits; |
| 4457 | |
| 4458 | // string reason_detail = 3; |
| 4459 | if (this->reason_detail().size() > 0) { |
| 4460 | total_size += 1 + |
| 4461 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4462 | this->reason_detail()); |
| 4463 | } |
| 4464 | |
| 4465 | // .dmi.Status status = 1; |
| 4466 | if (this->status() != 0) { |
| 4467 | total_size += 1 + |
| 4468 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4469 | } |
| 4470 | |
| 4471 | // .dmi.EventsConfigurationResponse.Reason reason = 2; |
| 4472 | if (this->reason() != 0) { |
| 4473 | total_size += 1 + |
| 4474 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4475 | } |
| 4476 | |
| 4477 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4478 | SetCachedSize(cached_size); |
| 4479 | return total_size; |
| 4480 | } |
| 4481 | |
| 4482 | void EventsConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4483 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationResponse) |
| 4484 | GOOGLE_DCHECK_NE(&from, this); |
| 4485 | const EventsConfigurationResponse* source = |
| 4486 | ::google::protobuf::DynamicCastToGenerated<EventsConfigurationResponse>( |
| 4487 | &from); |
| 4488 | if (source == nullptr) { |
| 4489 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationResponse) |
| 4490 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4491 | } else { |
| 4492 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationResponse) |
| 4493 | MergeFrom(*source); |
| 4494 | } |
| 4495 | } |
| 4496 | |
| 4497 | void EventsConfigurationResponse::MergeFrom(const EventsConfigurationResponse& from) { |
| 4498 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationResponse) |
| 4499 | GOOGLE_DCHECK_NE(&from, this); |
| 4500 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4501 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4502 | (void) cached_has_bits; |
| 4503 | |
| 4504 | if (from.reason_detail().size() > 0) { |
| 4505 | |
| 4506 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4507 | } |
| 4508 | if (from.status() != 0) { |
| 4509 | set_status(from.status()); |
| 4510 | } |
| 4511 | if (from.reason() != 0) { |
| 4512 | set_reason(from.reason()); |
| 4513 | } |
| 4514 | } |
| 4515 | |
| 4516 | void EventsConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4517 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationResponse) |
| 4518 | if (&from == this) return; |
| 4519 | Clear(); |
| 4520 | MergeFrom(from); |
| 4521 | } |
| 4522 | |
| 4523 | void EventsConfigurationResponse::CopyFrom(const EventsConfigurationResponse& from) { |
| 4524 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationResponse) |
| 4525 | if (&from == this) return; |
| 4526 | Clear(); |
| 4527 | MergeFrom(from); |
| 4528 | } |
| 4529 | |
| 4530 | bool EventsConfigurationResponse::IsInitialized() const { |
| 4531 | return true; |
| 4532 | } |
| 4533 | |
| 4534 | void EventsConfigurationResponse::Swap(EventsConfigurationResponse* other) { |
| 4535 | if (other == this) return; |
| 4536 | InternalSwap(other); |
| 4537 | } |
| 4538 | void EventsConfigurationResponse::InternalSwap(EventsConfigurationResponse* other) { |
| 4539 | using std::swap; |
| 4540 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4541 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4542 | GetArenaNoVirtual()); |
| 4543 | swap(status_, other->status_); |
| 4544 | swap(reason_, other->reason_); |
| 4545 | } |
| 4546 | |
| 4547 | ::google::protobuf::Metadata EventsConfigurationResponse::GetMetadata() const { |
| 4548 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 4549 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 4550 | } |
| 4551 | |
| 4552 | |
| 4553 | // =================================================================== |
| 4554 | |
| 4555 | void EventMetaData::InitAsDefaultInstance() { |
| 4556 | ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4557 | ::dmi::Uuid::internal_default_instance()); |
| 4558 | ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4559 | ::dmi::Uuid::internal_default_instance()); |
| 4560 | } |
| 4561 | class EventMetaData::HasBitSetters { |
| 4562 | public: |
| 4563 | static const ::dmi::Uuid& device_uuid(const EventMetaData* msg); |
| 4564 | static const ::dmi::Uuid& component_uuid(const EventMetaData* msg); |
| 4565 | }; |
| 4566 | |
| 4567 | const ::dmi::Uuid& |
| 4568 | EventMetaData::HasBitSetters::device_uuid(const EventMetaData* msg) { |
| 4569 | return *msg->device_uuid_; |
| 4570 | } |
| 4571 | const ::dmi::Uuid& |
| 4572 | EventMetaData::HasBitSetters::component_uuid(const EventMetaData* msg) { |
| 4573 | return *msg->component_uuid_; |
| 4574 | } |
| 4575 | void EventMetaData::clear_device_uuid() { |
| 4576 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4577 | delete device_uuid_; |
| 4578 | } |
| 4579 | device_uuid_ = nullptr; |
| 4580 | } |
| 4581 | void EventMetaData::clear_component_uuid() { |
| 4582 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 4583 | delete component_uuid_; |
| 4584 | } |
| 4585 | component_uuid_ = nullptr; |
| 4586 | } |
| 4587 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4588 | const int EventMetaData::kDeviceUuidFieldNumber; |
| 4589 | const int EventMetaData::kComponentUuidFieldNumber; |
| 4590 | const int EventMetaData::kComponentNameFieldNumber; |
| 4591 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4592 | |
| 4593 | EventMetaData::EventMetaData() |
| 4594 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4595 | SharedCtor(); |
| 4596 | // @@protoc_insertion_point(constructor:dmi.EventMetaData) |
| 4597 | } |
| 4598 | EventMetaData::EventMetaData(const EventMetaData& from) |
| 4599 | : ::google::protobuf::Message(), |
| 4600 | _internal_metadata_(nullptr) { |
| 4601 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4602 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4603 | if (from.component_name().size() > 0) { |
| 4604 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 4605 | } |
| 4606 | if (from.has_device_uuid()) { |
| 4607 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 4608 | } else { |
| 4609 | device_uuid_ = nullptr; |
| 4610 | } |
| 4611 | if (from.has_component_uuid()) { |
| 4612 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 4613 | } else { |
| 4614 | component_uuid_ = nullptr; |
| 4615 | } |
| 4616 | // @@protoc_insertion_point(copy_constructor:dmi.EventMetaData) |
| 4617 | } |
| 4618 | |
| 4619 | void EventMetaData::SharedCtor() { |
| 4620 | ::google::protobuf::internal::InitSCC( |
| 4621 | &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4622 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4623 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 4624 | reinterpret_cast<char*>(&component_uuid_) - |
| 4625 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 4626 | } |
| 4627 | |
| 4628 | EventMetaData::~EventMetaData() { |
| 4629 | // @@protoc_insertion_point(destructor:dmi.EventMetaData) |
| 4630 | SharedDtor(); |
| 4631 | } |
| 4632 | |
| 4633 | void EventMetaData::SharedDtor() { |
| 4634 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4635 | if (this != internal_default_instance()) delete device_uuid_; |
| 4636 | if (this != internal_default_instance()) delete component_uuid_; |
| 4637 | } |
| 4638 | |
| 4639 | void EventMetaData::SetCachedSize(int size) const { |
| 4640 | _cached_size_.Set(size); |
| 4641 | } |
| 4642 | const EventMetaData& EventMetaData::default_instance() { |
| 4643 | ::google::protobuf::internal::InitSCC(&::scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 4644 | return *internal_default_instance(); |
| 4645 | } |
| 4646 | |
| 4647 | |
| 4648 | void EventMetaData::Clear() { |
| 4649 | // @@protoc_insertion_point(message_clear_start:dmi.EventMetaData) |
| 4650 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4651 | // Prevent compiler warnings about cached_has_bits being unused |
| 4652 | (void) cached_has_bits; |
| 4653 | |
| 4654 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4655 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4656 | delete device_uuid_; |
| 4657 | } |
| 4658 | device_uuid_ = nullptr; |
| 4659 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 4660 | delete component_uuid_; |
| 4661 | } |
| 4662 | component_uuid_ = nullptr; |
| 4663 | _internal_metadata_.Clear(); |
| 4664 | } |
| 4665 | |
| 4666 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4667 | const char* EventMetaData::_InternalParse(const char* begin, const char* end, void* object, |
| 4668 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4669 | auto msg = static_cast<EventMetaData*>(object); |
| 4670 | ::google::protobuf::int32 size; (void)size; |
| 4671 | int depth; (void)depth; |
| 4672 | ::google::protobuf::uint32 tag; |
| 4673 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4674 | auto ptr = begin; |
| 4675 | while (ptr < end) { |
| 4676 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4677 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4678 | switch (tag >> 3) { |
| 4679 | // .dmi.Uuid device_uuid = 1; |
| 4680 | case 1: { |
| 4681 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4682 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4683 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4684 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 4685 | object = msg->mutable_device_uuid(); |
| 4686 | if (size > end - ptr) goto len_delim_till_end; |
| 4687 | ptr += size; |
| 4688 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4689 | {parser_till_end, object}, ptr - size, ptr)); |
| 4690 | break; |
| 4691 | } |
| 4692 | // .dmi.Uuid component_uuid = 2; |
| 4693 | case 2: { |
| 4694 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 4695 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4696 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4697 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 4698 | object = msg->mutable_component_uuid(); |
| 4699 | if (size > end - ptr) goto len_delim_till_end; |
| 4700 | ptr += size; |
| 4701 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4702 | {parser_till_end, object}, ptr - size, ptr)); |
| 4703 | break; |
| 4704 | } |
| 4705 | // string component_name = 3; |
| 4706 | case 3: { |
| 4707 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4708 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4709 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4710 | ctx->extra_parse_data().SetFieldName("dmi.EventMetaData.component_name"); |
| 4711 | object = msg->mutable_component_name(); |
| 4712 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4713 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4714 | goto string_till_end; |
| 4715 | } |
| 4716 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4717 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4718 | ptr += size; |
| 4719 | break; |
| 4720 | } |
| 4721 | default: { |
| 4722 | handle_unusual: |
| 4723 | if ((tag & 7) == 4 || tag == 0) { |
| 4724 | ctx->EndGroup(tag); |
| 4725 | return ptr; |
| 4726 | } |
| 4727 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4728 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4729 | ptr = res.first; |
| 4730 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4731 | if (res.second) return ptr; |
| 4732 | } |
| 4733 | } // switch |
| 4734 | } // while |
| 4735 | return ptr; |
| 4736 | string_till_end: |
| 4737 | static_cast<::std::string*>(object)->clear(); |
| 4738 | static_cast<::std::string*>(object)->reserve(size); |
| 4739 | goto len_delim_till_end; |
| 4740 | len_delim_till_end: |
| 4741 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4742 | {parser_till_end, object}, size); |
| 4743 | } |
| 4744 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4745 | bool EventMetaData::MergePartialFromCodedStream( |
| 4746 | ::google::protobuf::io::CodedInputStream* input) { |
| 4747 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4748 | ::google::protobuf::uint32 tag; |
| 4749 | // @@protoc_insertion_point(parse_start:dmi.EventMetaData) |
| 4750 | for (;;) { |
| 4751 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4752 | tag = p.first; |
| 4753 | if (!p.second) goto handle_unusual; |
| 4754 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4755 | // .dmi.Uuid device_uuid = 1; |
| 4756 | case 1: { |
| 4757 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4758 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4759 | input, mutable_device_uuid())); |
| 4760 | } else { |
| 4761 | goto handle_unusual; |
| 4762 | } |
| 4763 | break; |
| 4764 | } |
| 4765 | |
| 4766 | // .dmi.Uuid component_uuid = 2; |
| 4767 | case 2: { |
| 4768 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 4769 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4770 | input, mutable_component_uuid())); |
| 4771 | } else { |
| 4772 | goto handle_unusual; |
| 4773 | } |
| 4774 | break; |
| 4775 | } |
| 4776 | |
| 4777 | // string component_name = 3; |
| 4778 | case 3: { |
| 4779 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4780 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4781 | input, this->mutable_component_name())); |
| 4782 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4783 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4784 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4785 | "dmi.EventMetaData.component_name")); |
| 4786 | } else { |
| 4787 | goto handle_unusual; |
| 4788 | } |
| 4789 | break; |
| 4790 | } |
| 4791 | |
| 4792 | default: { |
| 4793 | handle_unusual: |
| 4794 | if (tag == 0) { |
| 4795 | goto success; |
| 4796 | } |
| 4797 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4798 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4799 | break; |
| 4800 | } |
| 4801 | } |
| 4802 | } |
| 4803 | success: |
| 4804 | // @@protoc_insertion_point(parse_success:dmi.EventMetaData) |
| 4805 | return true; |
| 4806 | failure: |
| 4807 | // @@protoc_insertion_point(parse_failure:dmi.EventMetaData) |
| 4808 | return false; |
| 4809 | #undef DO_ |
| 4810 | } |
| 4811 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4812 | |
| 4813 | void EventMetaData::SerializeWithCachedSizes( |
| 4814 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4815 | // @@protoc_insertion_point(serialize_start:dmi.EventMetaData) |
| 4816 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4817 | (void) cached_has_bits; |
| 4818 | |
| 4819 | // .dmi.Uuid device_uuid = 1; |
| 4820 | if (this->has_device_uuid()) { |
| 4821 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4822 | 1, HasBitSetters::device_uuid(this), output); |
| 4823 | } |
| 4824 | |
| 4825 | // .dmi.Uuid component_uuid = 2; |
| 4826 | if (this->has_component_uuid()) { |
| 4827 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4828 | 2, HasBitSetters::component_uuid(this), output); |
| 4829 | } |
| 4830 | |
| 4831 | // string component_name = 3; |
| 4832 | if (this->component_name().size() > 0) { |
| 4833 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4834 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4835 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4836 | "dmi.EventMetaData.component_name"); |
| 4837 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4838 | 3, this->component_name(), output); |
| 4839 | } |
| 4840 | |
| 4841 | if (_internal_metadata_.have_unknown_fields()) { |
| 4842 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4843 | _internal_metadata_.unknown_fields(), output); |
| 4844 | } |
| 4845 | // @@protoc_insertion_point(serialize_end:dmi.EventMetaData) |
| 4846 | } |
| 4847 | |
| 4848 | ::google::protobuf::uint8* EventMetaData::InternalSerializeWithCachedSizesToArray( |
| 4849 | ::google::protobuf::uint8* target) const { |
| 4850 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EventMetaData) |
| 4851 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4852 | (void) cached_has_bits; |
| 4853 | |
| 4854 | // .dmi.Uuid device_uuid = 1; |
| 4855 | if (this->has_device_uuid()) { |
| 4856 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4857 | InternalWriteMessageToArray( |
| 4858 | 1, HasBitSetters::device_uuid(this), target); |
| 4859 | } |
| 4860 | |
| 4861 | // .dmi.Uuid component_uuid = 2; |
| 4862 | if (this->has_component_uuid()) { |
| 4863 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4864 | InternalWriteMessageToArray( |
| 4865 | 2, HasBitSetters::component_uuid(this), target); |
| 4866 | } |
| 4867 | |
| 4868 | // string component_name = 3; |
| 4869 | if (this->component_name().size() > 0) { |
| 4870 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4871 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 4872 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4873 | "dmi.EventMetaData.component_name"); |
| 4874 | target = |
| 4875 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4876 | 3, this->component_name(), target); |
| 4877 | } |
| 4878 | |
| 4879 | if (_internal_metadata_.have_unknown_fields()) { |
| 4880 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4881 | _internal_metadata_.unknown_fields(), target); |
| 4882 | } |
| 4883 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EventMetaData) |
| 4884 | return target; |
| 4885 | } |
| 4886 | |
| 4887 | size_t EventMetaData::ByteSizeLong() const { |
| 4888 | // @@protoc_insertion_point(message_byte_size_start:dmi.EventMetaData) |
| 4889 | size_t total_size = 0; |
| 4890 | |
| 4891 | if (_internal_metadata_.have_unknown_fields()) { |
| 4892 | total_size += |
| 4893 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4894 | _internal_metadata_.unknown_fields()); |
| 4895 | } |
| 4896 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4897 | // Prevent compiler warnings about cached_has_bits being unused |
| 4898 | (void) cached_has_bits; |
| 4899 | |
| 4900 | // string component_name = 3; |
| 4901 | if (this->component_name().size() > 0) { |
| 4902 | total_size += 1 + |
| 4903 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4904 | this->component_name()); |
| 4905 | } |
| 4906 | |
| 4907 | // .dmi.Uuid device_uuid = 1; |
| 4908 | if (this->has_device_uuid()) { |
| 4909 | total_size += 1 + |
| 4910 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4911 | *device_uuid_); |
| 4912 | } |
| 4913 | |
| 4914 | // .dmi.Uuid component_uuid = 2; |
| 4915 | if (this->has_component_uuid()) { |
| 4916 | total_size += 1 + |
| 4917 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4918 | *component_uuid_); |
| 4919 | } |
| 4920 | |
| 4921 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4922 | SetCachedSize(cached_size); |
| 4923 | return total_size; |
| 4924 | } |
| 4925 | |
| 4926 | void EventMetaData::MergeFrom(const ::google::protobuf::Message& from) { |
| 4927 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EventMetaData) |
| 4928 | GOOGLE_DCHECK_NE(&from, this); |
| 4929 | const EventMetaData* source = |
| 4930 | ::google::protobuf::DynamicCastToGenerated<EventMetaData>( |
| 4931 | &from); |
| 4932 | if (source == nullptr) { |
| 4933 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventMetaData) |
| 4934 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4935 | } else { |
| 4936 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventMetaData) |
| 4937 | MergeFrom(*source); |
| 4938 | } |
| 4939 | } |
| 4940 | |
| 4941 | void EventMetaData::MergeFrom(const EventMetaData& from) { |
| 4942 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventMetaData) |
| 4943 | GOOGLE_DCHECK_NE(&from, this); |
| 4944 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4945 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4946 | (void) cached_has_bits; |
| 4947 | |
| 4948 | if (from.component_name().size() > 0) { |
| 4949 | |
| 4950 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 4951 | } |
| 4952 | if (from.has_device_uuid()) { |
| 4953 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4954 | } |
| 4955 | if (from.has_component_uuid()) { |
| 4956 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 4957 | } |
| 4958 | } |
| 4959 | |
| 4960 | void EventMetaData::CopyFrom(const ::google::protobuf::Message& from) { |
| 4961 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EventMetaData) |
| 4962 | if (&from == this) return; |
| 4963 | Clear(); |
| 4964 | MergeFrom(from); |
| 4965 | } |
| 4966 | |
| 4967 | void EventMetaData::CopyFrom(const EventMetaData& from) { |
| 4968 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventMetaData) |
| 4969 | if (&from == this) return; |
| 4970 | Clear(); |
| 4971 | MergeFrom(from); |
| 4972 | } |
| 4973 | |
| 4974 | bool EventMetaData::IsInitialized() const { |
| 4975 | return true; |
| 4976 | } |
| 4977 | |
| 4978 | void EventMetaData::Swap(EventMetaData* other) { |
| 4979 | if (other == this) return; |
| 4980 | InternalSwap(other); |
| 4981 | } |
| 4982 | void EventMetaData::InternalSwap(EventMetaData* other) { |
| 4983 | using std::swap; |
| 4984 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4985 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4986 | GetArenaNoVirtual()); |
| 4987 | swap(device_uuid_, other->device_uuid_); |
| 4988 | swap(component_uuid_, other->component_uuid_); |
| 4989 | } |
| 4990 | |
| 4991 | ::google::protobuf::Metadata EventMetaData::GetMetadata() const { |
| 4992 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 4993 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 4994 | } |
| 4995 | |
| 4996 | |
| 4997 | // =================================================================== |
| 4998 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 4999 | void AdminStateChange::InitAsDefaultInstance() { |
| 5000 | } |
| 5001 | class AdminStateChange::HasBitSetters { |
| 5002 | public: |
| 5003 | }; |
| 5004 | |
| 5005 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5006 | const int AdminStateChange::kOldFieldNumber; |
| 5007 | const int AdminStateChange::kNewFieldNumber; |
| 5008 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5009 | |
| 5010 | AdminStateChange::AdminStateChange() |
| 5011 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5012 | SharedCtor(); |
| 5013 | // @@protoc_insertion_point(constructor:dmi.AdminStateChange) |
| 5014 | } |
| 5015 | AdminStateChange::AdminStateChange(const AdminStateChange& from) |
| 5016 | : ::google::protobuf::Message(), |
| 5017 | _internal_metadata_(nullptr) { |
| 5018 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5019 | ::memcpy(&old_, &from.old_, |
| 5020 | static_cast<size_t>(reinterpret_cast<char*>(&new__) - |
| 5021 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5022 | // @@protoc_insertion_point(copy_constructor:dmi.AdminStateChange) |
| 5023 | } |
| 5024 | |
| 5025 | void AdminStateChange::SharedCtor() { |
| 5026 | ::memset(&old_, 0, static_cast<size_t>( |
| 5027 | reinterpret_cast<char*>(&new__) - |
| 5028 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5029 | } |
| 5030 | |
| 5031 | AdminStateChange::~AdminStateChange() { |
| 5032 | // @@protoc_insertion_point(destructor:dmi.AdminStateChange) |
| 5033 | SharedDtor(); |
| 5034 | } |
| 5035 | |
| 5036 | void AdminStateChange::SharedDtor() { |
| 5037 | } |
| 5038 | |
| 5039 | void AdminStateChange::SetCachedSize(int size) const { |
| 5040 | _cached_size_.Set(size); |
| 5041 | } |
| 5042 | const AdminStateChange& AdminStateChange::default_instance() { |
| 5043 | ::google::protobuf::internal::InitSCC(&::scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 5044 | return *internal_default_instance(); |
| 5045 | } |
| 5046 | |
| 5047 | |
| 5048 | void AdminStateChange::Clear() { |
| 5049 | // @@protoc_insertion_point(message_clear_start:dmi.AdminStateChange) |
| 5050 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5051 | // Prevent compiler warnings about cached_has_bits being unused |
| 5052 | (void) cached_has_bits; |
| 5053 | |
| 5054 | ::memset(&old_, 0, static_cast<size_t>( |
| 5055 | reinterpret_cast<char*>(&new__) - |
| 5056 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5057 | _internal_metadata_.Clear(); |
| 5058 | } |
| 5059 | |
| 5060 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5061 | const char* AdminStateChange::_InternalParse(const char* begin, const char* end, void* object, |
| 5062 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5063 | auto msg = static_cast<AdminStateChange*>(object); |
| 5064 | ::google::protobuf::int32 size; (void)size; |
| 5065 | int depth; (void)depth; |
| 5066 | ::google::protobuf::uint32 tag; |
| 5067 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5068 | auto ptr = begin; |
| 5069 | while (ptr < end) { |
| 5070 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5071 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5072 | switch (tag >> 3) { |
| 5073 | // .dmi.ComponentAdminState old = 1; |
| 5074 | case 1: { |
| 5075 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5076 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5077 | msg->set_old(static_cast<::dmi::ComponentAdminState>(val)); |
| 5078 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5079 | break; |
| 5080 | } |
| 5081 | // .dmi.ComponentAdminState new = 2; |
| 5082 | case 2: { |
| 5083 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5084 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5085 | msg->set_new_(static_cast<::dmi::ComponentAdminState>(val)); |
| 5086 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5087 | break; |
| 5088 | } |
| 5089 | default: { |
| 5090 | handle_unusual: |
| 5091 | if ((tag & 7) == 4 || tag == 0) { |
| 5092 | ctx->EndGroup(tag); |
| 5093 | return ptr; |
| 5094 | } |
| 5095 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5096 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5097 | ptr = res.first; |
| 5098 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5099 | if (res.second) return ptr; |
| 5100 | } |
| 5101 | } // switch |
| 5102 | } // while |
| 5103 | return ptr; |
| 5104 | } |
| 5105 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5106 | bool AdminStateChange::MergePartialFromCodedStream( |
| 5107 | ::google::protobuf::io::CodedInputStream* input) { |
| 5108 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5109 | ::google::protobuf::uint32 tag; |
| 5110 | // @@protoc_insertion_point(parse_start:dmi.AdminStateChange) |
| 5111 | for (;;) { |
| 5112 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5113 | tag = p.first; |
| 5114 | if (!p.second) goto handle_unusual; |
| 5115 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5116 | // .dmi.ComponentAdminState old = 1; |
| 5117 | case 1: { |
| 5118 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5119 | int value = 0; |
| 5120 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5121 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5122 | input, &value))); |
| 5123 | set_old(static_cast< ::dmi::ComponentAdminState >(value)); |
| 5124 | } else { |
| 5125 | goto handle_unusual; |
| 5126 | } |
| 5127 | break; |
| 5128 | } |
| 5129 | |
| 5130 | // .dmi.ComponentAdminState new = 2; |
| 5131 | case 2: { |
| 5132 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5133 | int value = 0; |
| 5134 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5135 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5136 | input, &value))); |
| 5137 | set_new_(static_cast< ::dmi::ComponentAdminState >(value)); |
| 5138 | } else { |
| 5139 | goto handle_unusual; |
| 5140 | } |
| 5141 | break; |
| 5142 | } |
| 5143 | |
| 5144 | default: { |
| 5145 | handle_unusual: |
| 5146 | if (tag == 0) { |
| 5147 | goto success; |
| 5148 | } |
| 5149 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5150 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5151 | break; |
| 5152 | } |
| 5153 | } |
| 5154 | } |
| 5155 | success: |
| 5156 | // @@protoc_insertion_point(parse_success:dmi.AdminStateChange) |
| 5157 | return true; |
| 5158 | failure: |
| 5159 | // @@protoc_insertion_point(parse_failure:dmi.AdminStateChange) |
| 5160 | return false; |
| 5161 | #undef DO_ |
| 5162 | } |
| 5163 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5164 | |
| 5165 | void AdminStateChange::SerializeWithCachedSizes( |
| 5166 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5167 | // @@protoc_insertion_point(serialize_start:dmi.AdminStateChange) |
| 5168 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5169 | (void) cached_has_bits; |
| 5170 | |
| 5171 | // .dmi.ComponentAdminState old = 1; |
| 5172 | if (this->old() != 0) { |
| 5173 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5174 | 1, this->old(), output); |
| 5175 | } |
| 5176 | |
| 5177 | // .dmi.ComponentAdminState new = 2; |
| 5178 | if (this->new_() != 0) { |
| 5179 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5180 | 2, this->new_(), output); |
| 5181 | } |
| 5182 | |
| 5183 | if (_internal_metadata_.have_unknown_fields()) { |
| 5184 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5185 | _internal_metadata_.unknown_fields(), output); |
| 5186 | } |
| 5187 | // @@protoc_insertion_point(serialize_end:dmi.AdminStateChange) |
| 5188 | } |
| 5189 | |
| 5190 | ::google::protobuf::uint8* AdminStateChange::InternalSerializeWithCachedSizesToArray( |
| 5191 | ::google::protobuf::uint8* target) const { |
| 5192 | // @@protoc_insertion_point(serialize_to_array_start:dmi.AdminStateChange) |
| 5193 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5194 | (void) cached_has_bits; |
| 5195 | |
| 5196 | // .dmi.ComponentAdminState old = 1; |
| 5197 | if (this->old() != 0) { |
| 5198 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5199 | 1, this->old(), target); |
| 5200 | } |
| 5201 | |
| 5202 | // .dmi.ComponentAdminState new = 2; |
| 5203 | if (this->new_() != 0) { |
| 5204 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5205 | 2, this->new_(), target); |
| 5206 | } |
| 5207 | |
| 5208 | if (_internal_metadata_.have_unknown_fields()) { |
| 5209 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5210 | _internal_metadata_.unknown_fields(), target); |
| 5211 | } |
| 5212 | // @@protoc_insertion_point(serialize_to_array_end:dmi.AdminStateChange) |
| 5213 | return target; |
| 5214 | } |
| 5215 | |
| 5216 | size_t AdminStateChange::ByteSizeLong() const { |
| 5217 | // @@protoc_insertion_point(message_byte_size_start:dmi.AdminStateChange) |
| 5218 | size_t total_size = 0; |
| 5219 | |
| 5220 | if (_internal_metadata_.have_unknown_fields()) { |
| 5221 | total_size += |
| 5222 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5223 | _internal_metadata_.unknown_fields()); |
| 5224 | } |
| 5225 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5226 | // Prevent compiler warnings about cached_has_bits being unused |
| 5227 | (void) cached_has_bits; |
| 5228 | |
| 5229 | // .dmi.ComponentAdminState old = 1; |
| 5230 | if (this->old() != 0) { |
| 5231 | total_size += 1 + |
| 5232 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->old()); |
| 5233 | } |
| 5234 | |
| 5235 | // .dmi.ComponentAdminState new = 2; |
| 5236 | if (this->new_() != 0) { |
| 5237 | total_size += 1 + |
| 5238 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_()); |
| 5239 | } |
| 5240 | |
| 5241 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5242 | SetCachedSize(cached_size); |
| 5243 | return total_size; |
| 5244 | } |
| 5245 | |
| 5246 | void AdminStateChange::MergeFrom(const ::google::protobuf::Message& from) { |
| 5247 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.AdminStateChange) |
| 5248 | GOOGLE_DCHECK_NE(&from, this); |
| 5249 | const AdminStateChange* source = |
| 5250 | ::google::protobuf::DynamicCastToGenerated<AdminStateChange>( |
| 5251 | &from); |
| 5252 | if (source == nullptr) { |
| 5253 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.AdminStateChange) |
| 5254 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5255 | } else { |
| 5256 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.AdminStateChange) |
| 5257 | MergeFrom(*source); |
| 5258 | } |
| 5259 | } |
| 5260 | |
| 5261 | void AdminStateChange::MergeFrom(const AdminStateChange& from) { |
| 5262 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.AdminStateChange) |
| 5263 | GOOGLE_DCHECK_NE(&from, this); |
| 5264 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5265 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5266 | (void) cached_has_bits; |
| 5267 | |
| 5268 | if (from.old() != 0) { |
| 5269 | set_old(from.old()); |
| 5270 | } |
| 5271 | if (from.new_() != 0) { |
| 5272 | set_new_(from.new_()); |
| 5273 | } |
| 5274 | } |
| 5275 | |
| 5276 | void AdminStateChange::CopyFrom(const ::google::protobuf::Message& from) { |
| 5277 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.AdminStateChange) |
| 5278 | if (&from == this) return; |
| 5279 | Clear(); |
| 5280 | MergeFrom(from); |
| 5281 | } |
| 5282 | |
| 5283 | void AdminStateChange::CopyFrom(const AdminStateChange& from) { |
| 5284 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.AdminStateChange) |
| 5285 | if (&from == this) return; |
| 5286 | Clear(); |
| 5287 | MergeFrom(from); |
| 5288 | } |
| 5289 | |
| 5290 | bool AdminStateChange::IsInitialized() const { |
| 5291 | return true; |
| 5292 | } |
| 5293 | |
| 5294 | void AdminStateChange::Swap(AdminStateChange* other) { |
| 5295 | if (other == this) return; |
| 5296 | InternalSwap(other); |
| 5297 | } |
| 5298 | void AdminStateChange::InternalSwap(AdminStateChange* other) { |
| 5299 | using std::swap; |
| 5300 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5301 | swap(old_, other->old_); |
| 5302 | swap(new__, other->new__); |
| 5303 | } |
| 5304 | |
| 5305 | ::google::protobuf::Metadata AdminStateChange::GetMetadata() const { |
| 5306 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 5307 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 5308 | } |
| 5309 | |
| 5310 | |
| 5311 | // =================================================================== |
| 5312 | |
| 5313 | void OperStateChange::InitAsDefaultInstance() { |
| 5314 | } |
| 5315 | class OperStateChange::HasBitSetters { |
| 5316 | public: |
| 5317 | }; |
| 5318 | |
| 5319 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5320 | const int OperStateChange::kOldFieldNumber; |
| 5321 | const int OperStateChange::kNewFieldNumber; |
| 5322 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5323 | |
| 5324 | OperStateChange::OperStateChange() |
| 5325 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5326 | SharedCtor(); |
| 5327 | // @@protoc_insertion_point(constructor:dmi.OperStateChange) |
| 5328 | } |
| 5329 | OperStateChange::OperStateChange(const OperStateChange& from) |
| 5330 | : ::google::protobuf::Message(), |
| 5331 | _internal_metadata_(nullptr) { |
| 5332 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5333 | ::memcpy(&old_, &from.old_, |
| 5334 | static_cast<size_t>(reinterpret_cast<char*>(&new__) - |
| 5335 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5336 | // @@protoc_insertion_point(copy_constructor:dmi.OperStateChange) |
| 5337 | } |
| 5338 | |
| 5339 | void OperStateChange::SharedCtor() { |
| 5340 | ::memset(&old_, 0, static_cast<size_t>( |
| 5341 | reinterpret_cast<char*>(&new__) - |
| 5342 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5343 | } |
| 5344 | |
| 5345 | OperStateChange::~OperStateChange() { |
| 5346 | // @@protoc_insertion_point(destructor:dmi.OperStateChange) |
| 5347 | SharedDtor(); |
| 5348 | } |
| 5349 | |
| 5350 | void OperStateChange::SharedDtor() { |
| 5351 | } |
| 5352 | |
| 5353 | void OperStateChange::SetCachedSize(int size) const { |
| 5354 | _cached_size_.Set(size); |
| 5355 | } |
| 5356 | const OperStateChange& OperStateChange::default_instance() { |
| 5357 | ::google::protobuf::internal::InitSCC(&::scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 5358 | return *internal_default_instance(); |
| 5359 | } |
| 5360 | |
| 5361 | |
| 5362 | void OperStateChange::Clear() { |
| 5363 | // @@protoc_insertion_point(message_clear_start:dmi.OperStateChange) |
| 5364 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5365 | // Prevent compiler warnings about cached_has_bits being unused |
| 5366 | (void) cached_has_bits; |
| 5367 | |
| 5368 | ::memset(&old_, 0, static_cast<size_t>( |
| 5369 | reinterpret_cast<char*>(&new__) - |
| 5370 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5371 | _internal_metadata_.Clear(); |
| 5372 | } |
| 5373 | |
| 5374 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5375 | const char* OperStateChange::_InternalParse(const char* begin, const char* end, void* object, |
| 5376 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5377 | auto msg = static_cast<OperStateChange*>(object); |
| 5378 | ::google::protobuf::int32 size; (void)size; |
| 5379 | int depth; (void)depth; |
| 5380 | ::google::protobuf::uint32 tag; |
| 5381 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5382 | auto ptr = begin; |
| 5383 | while (ptr < end) { |
| 5384 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5385 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5386 | switch (tag >> 3) { |
| 5387 | // .dmi.ComponentOperState old = 1; |
| 5388 | case 1: { |
| 5389 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5390 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5391 | msg->set_old(static_cast<::dmi::ComponentOperState>(val)); |
| 5392 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5393 | break; |
| 5394 | } |
| 5395 | // .dmi.ComponentOperState new = 2; |
| 5396 | case 2: { |
| 5397 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5398 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5399 | msg->set_new_(static_cast<::dmi::ComponentOperState>(val)); |
| 5400 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5401 | break; |
| 5402 | } |
| 5403 | default: { |
| 5404 | handle_unusual: |
| 5405 | if ((tag & 7) == 4 || tag == 0) { |
| 5406 | ctx->EndGroup(tag); |
| 5407 | return ptr; |
| 5408 | } |
| 5409 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5410 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5411 | ptr = res.first; |
| 5412 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5413 | if (res.second) return ptr; |
| 5414 | } |
| 5415 | } // switch |
| 5416 | } // while |
| 5417 | return ptr; |
| 5418 | } |
| 5419 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5420 | bool OperStateChange::MergePartialFromCodedStream( |
| 5421 | ::google::protobuf::io::CodedInputStream* input) { |
| 5422 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5423 | ::google::protobuf::uint32 tag; |
| 5424 | // @@protoc_insertion_point(parse_start:dmi.OperStateChange) |
| 5425 | for (;;) { |
| 5426 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5427 | tag = p.first; |
| 5428 | if (!p.second) goto handle_unusual; |
| 5429 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5430 | // .dmi.ComponentOperState old = 1; |
| 5431 | case 1: { |
| 5432 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5433 | int value = 0; |
| 5434 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5435 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5436 | input, &value))); |
| 5437 | set_old(static_cast< ::dmi::ComponentOperState >(value)); |
| 5438 | } else { |
| 5439 | goto handle_unusual; |
| 5440 | } |
| 5441 | break; |
| 5442 | } |
| 5443 | |
| 5444 | // .dmi.ComponentOperState new = 2; |
| 5445 | case 2: { |
| 5446 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5447 | int value = 0; |
| 5448 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5449 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5450 | input, &value))); |
| 5451 | set_new_(static_cast< ::dmi::ComponentOperState >(value)); |
| 5452 | } else { |
| 5453 | goto handle_unusual; |
| 5454 | } |
| 5455 | break; |
| 5456 | } |
| 5457 | |
| 5458 | default: { |
| 5459 | handle_unusual: |
| 5460 | if (tag == 0) { |
| 5461 | goto success; |
| 5462 | } |
| 5463 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5464 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5465 | break; |
| 5466 | } |
| 5467 | } |
| 5468 | } |
| 5469 | success: |
| 5470 | // @@protoc_insertion_point(parse_success:dmi.OperStateChange) |
| 5471 | return true; |
| 5472 | failure: |
| 5473 | // @@protoc_insertion_point(parse_failure:dmi.OperStateChange) |
| 5474 | return false; |
| 5475 | #undef DO_ |
| 5476 | } |
| 5477 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5478 | |
| 5479 | void OperStateChange::SerializeWithCachedSizes( |
| 5480 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5481 | // @@protoc_insertion_point(serialize_start:dmi.OperStateChange) |
| 5482 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5483 | (void) cached_has_bits; |
| 5484 | |
| 5485 | // .dmi.ComponentOperState old = 1; |
| 5486 | if (this->old() != 0) { |
| 5487 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5488 | 1, this->old(), output); |
| 5489 | } |
| 5490 | |
| 5491 | // .dmi.ComponentOperState new = 2; |
| 5492 | if (this->new_() != 0) { |
| 5493 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5494 | 2, this->new_(), output); |
| 5495 | } |
| 5496 | |
| 5497 | if (_internal_metadata_.have_unknown_fields()) { |
| 5498 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5499 | _internal_metadata_.unknown_fields(), output); |
| 5500 | } |
| 5501 | // @@protoc_insertion_point(serialize_end:dmi.OperStateChange) |
| 5502 | } |
| 5503 | |
| 5504 | ::google::protobuf::uint8* OperStateChange::InternalSerializeWithCachedSizesToArray( |
| 5505 | ::google::protobuf::uint8* target) const { |
| 5506 | // @@protoc_insertion_point(serialize_to_array_start:dmi.OperStateChange) |
| 5507 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5508 | (void) cached_has_bits; |
| 5509 | |
| 5510 | // .dmi.ComponentOperState old = 1; |
| 5511 | if (this->old() != 0) { |
| 5512 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5513 | 1, this->old(), target); |
| 5514 | } |
| 5515 | |
| 5516 | // .dmi.ComponentOperState new = 2; |
| 5517 | if (this->new_() != 0) { |
| 5518 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5519 | 2, this->new_(), target); |
| 5520 | } |
| 5521 | |
| 5522 | if (_internal_metadata_.have_unknown_fields()) { |
| 5523 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5524 | _internal_metadata_.unknown_fields(), target); |
| 5525 | } |
| 5526 | // @@protoc_insertion_point(serialize_to_array_end:dmi.OperStateChange) |
| 5527 | return target; |
| 5528 | } |
| 5529 | |
| 5530 | size_t OperStateChange::ByteSizeLong() const { |
| 5531 | // @@protoc_insertion_point(message_byte_size_start:dmi.OperStateChange) |
| 5532 | size_t total_size = 0; |
| 5533 | |
| 5534 | if (_internal_metadata_.have_unknown_fields()) { |
| 5535 | total_size += |
| 5536 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5537 | _internal_metadata_.unknown_fields()); |
| 5538 | } |
| 5539 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5540 | // Prevent compiler warnings about cached_has_bits being unused |
| 5541 | (void) cached_has_bits; |
| 5542 | |
| 5543 | // .dmi.ComponentOperState old = 1; |
| 5544 | if (this->old() != 0) { |
| 5545 | total_size += 1 + |
| 5546 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->old()); |
| 5547 | } |
| 5548 | |
| 5549 | // .dmi.ComponentOperState new = 2; |
| 5550 | if (this->new_() != 0) { |
| 5551 | total_size += 1 + |
| 5552 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_()); |
| 5553 | } |
| 5554 | |
| 5555 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5556 | SetCachedSize(cached_size); |
| 5557 | return total_size; |
| 5558 | } |
| 5559 | |
| 5560 | void OperStateChange::MergeFrom(const ::google::protobuf::Message& from) { |
| 5561 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.OperStateChange) |
| 5562 | GOOGLE_DCHECK_NE(&from, this); |
| 5563 | const OperStateChange* source = |
| 5564 | ::google::protobuf::DynamicCastToGenerated<OperStateChange>( |
| 5565 | &from); |
| 5566 | if (source == nullptr) { |
| 5567 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.OperStateChange) |
| 5568 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5569 | } else { |
| 5570 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.OperStateChange) |
| 5571 | MergeFrom(*source); |
| 5572 | } |
| 5573 | } |
| 5574 | |
| 5575 | void OperStateChange::MergeFrom(const OperStateChange& from) { |
| 5576 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.OperStateChange) |
| 5577 | GOOGLE_DCHECK_NE(&from, this); |
| 5578 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5579 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5580 | (void) cached_has_bits; |
| 5581 | |
| 5582 | if (from.old() != 0) { |
| 5583 | set_old(from.old()); |
| 5584 | } |
| 5585 | if (from.new_() != 0) { |
| 5586 | set_new_(from.new_()); |
| 5587 | } |
| 5588 | } |
| 5589 | |
| 5590 | void OperStateChange::CopyFrom(const ::google::protobuf::Message& from) { |
| 5591 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.OperStateChange) |
| 5592 | if (&from == this) return; |
| 5593 | Clear(); |
| 5594 | MergeFrom(from); |
| 5595 | } |
| 5596 | |
| 5597 | void OperStateChange::CopyFrom(const OperStateChange& from) { |
| 5598 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.OperStateChange) |
| 5599 | if (&from == this) return; |
| 5600 | Clear(); |
| 5601 | MergeFrom(from); |
| 5602 | } |
| 5603 | |
| 5604 | bool OperStateChange::IsInitialized() const { |
| 5605 | return true; |
| 5606 | } |
| 5607 | |
| 5608 | void OperStateChange::Swap(OperStateChange* other) { |
| 5609 | if (other == this) return; |
| 5610 | InternalSwap(other); |
| 5611 | } |
| 5612 | void OperStateChange::InternalSwap(OperStateChange* other) { |
| 5613 | using std::swap; |
| 5614 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5615 | swap(old_, other->old_); |
| 5616 | swap(new__, other->new__); |
| 5617 | } |
| 5618 | |
| 5619 | ::google::protobuf::Metadata OperStateChange::GetMetadata() const { |
| 5620 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 5621 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 5622 | } |
| 5623 | |
| 5624 | |
| 5625 | // =================================================================== |
| 5626 | |
| 5627 | void AlarmStateChange::InitAsDefaultInstance() { |
| 5628 | } |
| 5629 | class AlarmStateChange::HasBitSetters { |
| 5630 | public: |
| 5631 | }; |
| 5632 | |
| 5633 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5634 | const int AlarmStateChange::kOldFieldNumber; |
| 5635 | const int AlarmStateChange::kNewFieldNumber; |
| 5636 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5637 | |
| 5638 | AlarmStateChange::AlarmStateChange() |
| 5639 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5640 | SharedCtor(); |
| 5641 | // @@protoc_insertion_point(constructor:dmi.AlarmStateChange) |
| 5642 | } |
| 5643 | AlarmStateChange::AlarmStateChange(const AlarmStateChange& from) |
| 5644 | : ::google::protobuf::Message(), |
| 5645 | _internal_metadata_(nullptr) { |
| 5646 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5647 | ::memcpy(&old_, &from.old_, |
| 5648 | static_cast<size_t>(reinterpret_cast<char*>(&new__) - |
| 5649 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5650 | // @@protoc_insertion_point(copy_constructor:dmi.AlarmStateChange) |
| 5651 | } |
| 5652 | |
| 5653 | void AlarmStateChange::SharedCtor() { |
| 5654 | ::memset(&old_, 0, static_cast<size_t>( |
| 5655 | reinterpret_cast<char*>(&new__) - |
| 5656 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5657 | } |
| 5658 | |
| 5659 | AlarmStateChange::~AlarmStateChange() { |
| 5660 | // @@protoc_insertion_point(destructor:dmi.AlarmStateChange) |
| 5661 | SharedDtor(); |
| 5662 | } |
| 5663 | |
| 5664 | void AlarmStateChange::SharedDtor() { |
| 5665 | } |
| 5666 | |
| 5667 | void AlarmStateChange::SetCachedSize(int size) const { |
| 5668 | _cached_size_.Set(size); |
| 5669 | } |
| 5670 | const AlarmStateChange& AlarmStateChange::default_instance() { |
| 5671 | ::google::protobuf::internal::InitSCC(&::scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 5672 | return *internal_default_instance(); |
| 5673 | } |
| 5674 | |
| 5675 | |
| 5676 | void AlarmStateChange::Clear() { |
| 5677 | // @@protoc_insertion_point(message_clear_start:dmi.AlarmStateChange) |
| 5678 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5679 | // Prevent compiler warnings about cached_has_bits being unused |
| 5680 | (void) cached_has_bits; |
| 5681 | |
| 5682 | ::memset(&old_, 0, static_cast<size_t>( |
| 5683 | reinterpret_cast<char*>(&new__) - |
| 5684 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5685 | _internal_metadata_.Clear(); |
| 5686 | } |
| 5687 | |
| 5688 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5689 | const char* AlarmStateChange::_InternalParse(const char* begin, const char* end, void* object, |
| 5690 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5691 | auto msg = static_cast<AlarmStateChange*>(object); |
| 5692 | ::google::protobuf::int32 size; (void)size; |
| 5693 | int depth; (void)depth; |
| 5694 | ::google::protobuf::uint32 tag; |
| 5695 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5696 | auto ptr = begin; |
| 5697 | while (ptr < end) { |
| 5698 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5699 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5700 | switch (tag >> 3) { |
| 5701 | // .dmi.ComponentAlarmState old = 1; |
| 5702 | case 1: { |
| 5703 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5704 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5705 | msg->set_old(static_cast<::dmi::ComponentAlarmState>(val)); |
| 5706 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5707 | break; |
| 5708 | } |
| 5709 | // .dmi.ComponentAlarmState new = 2; |
| 5710 | case 2: { |
| 5711 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5712 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5713 | msg->set_new_(static_cast<::dmi::ComponentAlarmState>(val)); |
| 5714 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5715 | break; |
| 5716 | } |
| 5717 | default: { |
| 5718 | handle_unusual: |
| 5719 | if ((tag & 7) == 4 || tag == 0) { |
| 5720 | ctx->EndGroup(tag); |
| 5721 | return ptr; |
| 5722 | } |
| 5723 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5724 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5725 | ptr = res.first; |
| 5726 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5727 | if (res.second) return ptr; |
| 5728 | } |
| 5729 | } // switch |
| 5730 | } // while |
| 5731 | return ptr; |
| 5732 | } |
| 5733 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5734 | bool AlarmStateChange::MergePartialFromCodedStream( |
| 5735 | ::google::protobuf::io::CodedInputStream* input) { |
| 5736 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5737 | ::google::protobuf::uint32 tag; |
| 5738 | // @@protoc_insertion_point(parse_start:dmi.AlarmStateChange) |
| 5739 | for (;;) { |
| 5740 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5741 | tag = p.first; |
| 5742 | if (!p.second) goto handle_unusual; |
| 5743 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5744 | // .dmi.ComponentAlarmState old = 1; |
| 5745 | case 1: { |
| 5746 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5747 | int value = 0; |
| 5748 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5749 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5750 | input, &value))); |
| 5751 | set_old(static_cast< ::dmi::ComponentAlarmState >(value)); |
| 5752 | } else { |
| 5753 | goto handle_unusual; |
| 5754 | } |
| 5755 | break; |
| 5756 | } |
| 5757 | |
| 5758 | // .dmi.ComponentAlarmState new = 2; |
| 5759 | case 2: { |
| 5760 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5761 | int value = 0; |
| 5762 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5763 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5764 | input, &value))); |
| 5765 | set_new_(static_cast< ::dmi::ComponentAlarmState >(value)); |
| 5766 | } else { |
| 5767 | goto handle_unusual; |
| 5768 | } |
| 5769 | break; |
| 5770 | } |
| 5771 | |
| 5772 | default: { |
| 5773 | handle_unusual: |
| 5774 | if (tag == 0) { |
| 5775 | goto success; |
| 5776 | } |
| 5777 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5778 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5779 | break; |
| 5780 | } |
| 5781 | } |
| 5782 | } |
| 5783 | success: |
| 5784 | // @@protoc_insertion_point(parse_success:dmi.AlarmStateChange) |
| 5785 | return true; |
| 5786 | failure: |
| 5787 | // @@protoc_insertion_point(parse_failure:dmi.AlarmStateChange) |
| 5788 | return false; |
| 5789 | #undef DO_ |
| 5790 | } |
| 5791 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5792 | |
| 5793 | void AlarmStateChange::SerializeWithCachedSizes( |
| 5794 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5795 | // @@protoc_insertion_point(serialize_start:dmi.AlarmStateChange) |
| 5796 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5797 | (void) cached_has_bits; |
| 5798 | |
| 5799 | // .dmi.ComponentAlarmState old = 1; |
| 5800 | if (this->old() != 0) { |
| 5801 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5802 | 1, this->old(), output); |
| 5803 | } |
| 5804 | |
| 5805 | // .dmi.ComponentAlarmState new = 2; |
| 5806 | if (this->new_() != 0) { |
| 5807 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5808 | 2, this->new_(), output); |
| 5809 | } |
| 5810 | |
| 5811 | if (_internal_metadata_.have_unknown_fields()) { |
| 5812 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5813 | _internal_metadata_.unknown_fields(), output); |
| 5814 | } |
| 5815 | // @@protoc_insertion_point(serialize_end:dmi.AlarmStateChange) |
| 5816 | } |
| 5817 | |
| 5818 | ::google::protobuf::uint8* AlarmStateChange::InternalSerializeWithCachedSizesToArray( |
| 5819 | ::google::protobuf::uint8* target) const { |
| 5820 | // @@protoc_insertion_point(serialize_to_array_start:dmi.AlarmStateChange) |
| 5821 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5822 | (void) cached_has_bits; |
| 5823 | |
| 5824 | // .dmi.ComponentAlarmState old = 1; |
| 5825 | if (this->old() != 0) { |
| 5826 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5827 | 1, this->old(), target); |
| 5828 | } |
| 5829 | |
| 5830 | // .dmi.ComponentAlarmState new = 2; |
| 5831 | if (this->new_() != 0) { |
| 5832 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5833 | 2, this->new_(), target); |
| 5834 | } |
| 5835 | |
| 5836 | if (_internal_metadata_.have_unknown_fields()) { |
| 5837 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5838 | _internal_metadata_.unknown_fields(), target); |
| 5839 | } |
| 5840 | // @@protoc_insertion_point(serialize_to_array_end:dmi.AlarmStateChange) |
| 5841 | return target; |
| 5842 | } |
| 5843 | |
| 5844 | size_t AlarmStateChange::ByteSizeLong() const { |
| 5845 | // @@protoc_insertion_point(message_byte_size_start:dmi.AlarmStateChange) |
| 5846 | size_t total_size = 0; |
| 5847 | |
| 5848 | if (_internal_metadata_.have_unknown_fields()) { |
| 5849 | total_size += |
| 5850 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5851 | _internal_metadata_.unknown_fields()); |
| 5852 | } |
| 5853 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5854 | // Prevent compiler warnings about cached_has_bits being unused |
| 5855 | (void) cached_has_bits; |
| 5856 | |
| 5857 | // .dmi.ComponentAlarmState old = 1; |
| 5858 | if (this->old() != 0) { |
| 5859 | total_size += 1 + |
| 5860 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->old()); |
| 5861 | } |
| 5862 | |
| 5863 | // .dmi.ComponentAlarmState new = 2; |
| 5864 | if (this->new_() != 0) { |
| 5865 | total_size += 1 + |
| 5866 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_()); |
| 5867 | } |
| 5868 | |
| 5869 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5870 | SetCachedSize(cached_size); |
| 5871 | return total_size; |
| 5872 | } |
| 5873 | |
| 5874 | void AlarmStateChange::MergeFrom(const ::google::protobuf::Message& from) { |
| 5875 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.AlarmStateChange) |
| 5876 | GOOGLE_DCHECK_NE(&from, this); |
| 5877 | const AlarmStateChange* source = |
| 5878 | ::google::protobuf::DynamicCastToGenerated<AlarmStateChange>( |
| 5879 | &from); |
| 5880 | if (source == nullptr) { |
| 5881 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.AlarmStateChange) |
| 5882 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5883 | } else { |
| 5884 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.AlarmStateChange) |
| 5885 | MergeFrom(*source); |
| 5886 | } |
| 5887 | } |
| 5888 | |
| 5889 | void AlarmStateChange::MergeFrom(const AlarmStateChange& from) { |
| 5890 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.AlarmStateChange) |
| 5891 | GOOGLE_DCHECK_NE(&from, this); |
| 5892 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5893 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5894 | (void) cached_has_bits; |
| 5895 | |
| 5896 | if (from.old() != 0) { |
| 5897 | set_old(from.old()); |
| 5898 | } |
| 5899 | if (from.new_() != 0) { |
| 5900 | set_new_(from.new_()); |
| 5901 | } |
| 5902 | } |
| 5903 | |
| 5904 | void AlarmStateChange::CopyFrom(const ::google::protobuf::Message& from) { |
| 5905 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.AlarmStateChange) |
| 5906 | if (&from == this) return; |
| 5907 | Clear(); |
| 5908 | MergeFrom(from); |
| 5909 | } |
| 5910 | |
| 5911 | void AlarmStateChange::CopyFrom(const AlarmStateChange& from) { |
| 5912 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.AlarmStateChange) |
| 5913 | if (&from == this) return; |
| 5914 | Clear(); |
| 5915 | MergeFrom(from); |
| 5916 | } |
| 5917 | |
| 5918 | bool AlarmStateChange::IsInitialized() const { |
| 5919 | return true; |
| 5920 | } |
| 5921 | |
| 5922 | void AlarmStateChange::Swap(AlarmStateChange* other) { |
| 5923 | if (other == this) return; |
| 5924 | InternalSwap(other); |
| 5925 | } |
| 5926 | void AlarmStateChange::InternalSwap(AlarmStateChange* other) { |
| 5927 | using std::swap; |
| 5928 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5929 | swap(old_, other->old_); |
| 5930 | swap(new__, other->new__); |
| 5931 | } |
| 5932 | |
| 5933 | ::google::protobuf::Metadata AlarmStateChange::GetMetadata() const { |
| 5934 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 5935 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 5936 | } |
| 5937 | |
| 5938 | |
| 5939 | // =================================================================== |
| 5940 | |
| 5941 | void UsageStateChange::InitAsDefaultInstance() { |
| 5942 | } |
| 5943 | class UsageStateChange::HasBitSetters { |
| 5944 | public: |
| 5945 | }; |
| 5946 | |
| 5947 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5948 | const int UsageStateChange::kOldFieldNumber; |
| 5949 | const int UsageStateChange::kNewFieldNumber; |
| 5950 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5951 | |
| 5952 | UsageStateChange::UsageStateChange() |
| 5953 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5954 | SharedCtor(); |
| 5955 | // @@protoc_insertion_point(constructor:dmi.UsageStateChange) |
| 5956 | } |
| 5957 | UsageStateChange::UsageStateChange(const UsageStateChange& from) |
| 5958 | : ::google::protobuf::Message(), |
| 5959 | _internal_metadata_(nullptr) { |
| 5960 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5961 | ::memcpy(&old_, &from.old_, |
| 5962 | static_cast<size_t>(reinterpret_cast<char*>(&new__) - |
| 5963 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5964 | // @@protoc_insertion_point(copy_constructor:dmi.UsageStateChange) |
| 5965 | } |
| 5966 | |
| 5967 | void UsageStateChange::SharedCtor() { |
| 5968 | ::memset(&old_, 0, static_cast<size_t>( |
| 5969 | reinterpret_cast<char*>(&new__) - |
| 5970 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5971 | } |
| 5972 | |
| 5973 | UsageStateChange::~UsageStateChange() { |
| 5974 | // @@protoc_insertion_point(destructor:dmi.UsageStateChange) |
| 5975 | SharedDtor(); |
| 5976 | } |
| 5977 | |
| 5978 | void UsageStateChange::SharedDtor() { |
| 5979 | } |
| 5980 | |
| 5981 | void UsageStateChange::SetCachedSize(int size) const { |
| 5982 | _cached_size_.Set(size); |
| 5983 | } |
| 5984 | const UsageStateChange& UsageStateChange::default_instance() { |
| 5985 | ::google::protobuf::internal::InitSCC(&::scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 5986 | return *internal_default_instance(); |
| 5987 | } |
| 5988 | |
| 5989 | |
| 5990 | void UsageStateChange::Clear() { |
| 5991 | // @@protoc_insertion_point(message_clear_start:dmi.UsageStateChange) |
| 5992 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5993 | // Prevent compiler warnings about cached_has_bits being unused |
| 5994 | (void) cached_has_bits; |
| 5995 | |
| 5996 | ::memset(&old_, 0, static_cast<size_t>( |
| 5997 | reinterpret_cast<char*>(&new__) - |
| 5998 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 5999 | _internal_metadata_.Clear(); |
| 6000 | } |
| 6001 | |
| 6002 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6003 | const char* UsageStateChange::_InternalParse(const char* begin, const char* end, void* object, |
| 6004 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6005 | auto msg = static_cast<UsageStateChange*>(object); |
| 6006 | ::google::protobuf::int32 size; (void)size; |
| 6007 | int depth; (void)depth; |
| 6008 | ::google::protobuf::uint32 tag; |
| 6009 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6010 | auto ptr = begin; |
| 6011 | while (ptr < end) { |
| 6012 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6013 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6014 | switch (tag >> 3) { |
| 6015 | // .dmi.ComponentUsageState old = 1; |
| 6016 | case 1: { |
| 6017 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6018 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6019 | msg->set_old(static_cast<::dmi::ComponentUsageState>(val)); |
| 6020 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6021 | break; |
| 6022 | } |
| 6023 | // .dmi.ComponentUsageState new = 2; |
| 6024 | case 2: { |
| 6025 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6026 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6027 | msg->set_new_(static_cast<::dmi::ComponentUsageState>(val)); |
| 6028 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6029 | break; |
| 6030 | } |
| 6031 | default: { |
| 6032 | handle_unusual: |
| 6033 | if ((tag & 7) == 4 || tag == 0) { |
| 6034 | ctx->EndGroup(tag); |
| 6035 | return ptr; |
| 6036 | } |
| 6037 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6038 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6039 | ptr = res.first; |
| 6040 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6041 | if (res.second) return ptr; |
| 6042 | } |
| 6043 | } // switch |
| 6044 | } // while |
| 6045 | return ptr; |
| 6046 | } |
| 6047 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6048 | bool UsageStateChange::MergePartialFromCodedStream( |
| 6049 | ::google::protobuf::io::CodedInputStream* input) { |
| 6050 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6051 | ::google::protobuf::uint32 tag; |
| 6052 | // @@protoc_insertion_point(parse_start:dmi.UsageStateChange) |
| 6053 | for (;;) { |
| 6054 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6055 | tag = p.first; |
| 6056 | if (!p.second) goto handle_unusual; |
| 6057 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6058 | // .dmi.ComponentUsageState old = 1; |
| 6059 | case 1: { |
| 6060 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6061 | int value = 0; |
| 6062 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6063 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6064 | input, &value))); |
| 6065 | set_old(static_cast< ::dmi::ComponentUsageState >(value)); |
| 6066 | } else { |
| 6067 | goto handle_unusual; |
| 6068 | } |
| 6069 | break; |
| 6070 | } |
| 6071 | |
| 6072 | // .dmi.ComponentUsageState new = 2; |
| 6073 | case 2: { |
| 6074 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6075 | int value = 0; |
| 6076 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6077 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6078 | input, &value))); |
| 6079 | set_new_(static_cast< ::dmi::ComponentUsageState >(value)); |
| 6080 | } else { |
| 6081 | goto handle_unusual; |
| 6082 | } |
| 6083 | break; |
| 6084 | } |
| 6085 | |
| 6086 | default: { |
| 6087 | handle_unusual: |
| 6088 | if (tag == 0) { |
| 6089 | goto success; |
| 6090 | } |
| 6091 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6092 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6093 | break; |
| 6094 | } |
| 6095 | } |
| 6096 | } |
| 6097 | success: |
| 6098 | // @@protoc_insertion_point(parse_success:dmi.UsageStateChange) |
| 6099 | return true; |
| 6100 | failure: |
| 6101 | // @@protoc_insertion_point(parse_failure:dmi.UsageStateChange) |
| 6102 | return false; |
| 6103 | #undef DO_ |
| 6104 | } |
| 6105 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6106 | |
| 6107 | void UsageStateChange::SerializeWithCachedSizes( |
| 6108 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6109 | // @@protoc_insertion_point(serialize_start:dmi.UsageStateChange) |
| 6110 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6111 | (void) cached_has_bits; |
| 6112 | |
| 6113 | // .dmi.ComponentUsageState old = 1; |
| 6114 | if (this->old() != 0) { |
| 6115 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6116 | 1, this->old(), output); |
| 6117 | } |
| 6118 | |
| 6119 | // .dmi.ComponentUsageState new = 2; |
| 6120 | if (this->new_() != 0) { |
| 6121 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6122 | 2, this->new_(), output); |
| 6123 | } |
| 6124 | |
| 6125 | if (_internal_metadata_.have_unknown_fields()) { |
| 6126 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6127 | _internal_metadata_.unknown_fields(), output); |
| 6128 | } |
| 6129 | // @@protoc_insertion_point(serialize_end:dmi.UsageStateChange) |
| 6130 | } |
| 6131 | |
| 6132 | ::google::protobuf::uint8* UsageStateChange::InternalSerializeWithCachedSizesToArray( |
| 6133 | ::google::protobuf::uint8* target) const { |
| 6134 | // @@protoc_insertion_point(serialize_to_array_start:dmi.UsageStateChange) |
| 6135 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6136 | (void) cached_has_bits; |
| 6137 | |
| 6138 | // .dmi.ComponentUsageState old = 1; |
| 6139 | if (this->old() != 0) { |
| 6140 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6141 | 1, this->old(), target); |
| 6142 | } |
| 6143 | |
| 6144 | // .dmi.ComponentUsageState new = 2; |
| 6145 | if (this->new_() != 0) { |
| 6146 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6147 | 2, this->new_(), target); |
| 6148 | } |
| 6149 | |
| 6150 | if (_internal_metadata_.have_unknown_fields()) { |
| 6151 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6152 | _internal_metadata_.unknown_fields(), target); |
| 6153 | } |
| 6154 | // @@protoc_insertion_point(serialize_to_array_end:dmi.UsageStateChange) |
| 6155 | return target; |
| 6156 | } |
| 6157 | |
| 6158 | size_t UsageStateChange::ByteSizeLong() const { |
| 6159 | // @@protoc_insertion_point(message_byte_size_start:dmi.UsageStateChange) |
| 6160 | size_t total_size = 0; |
| 6161 | |
| 6162 | if (_internal_metadata_.have_unknown_fields()) { |
| 6163 | total_size += |
| 6164 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6165 | _internal_metadata_.unknown_fields()); |
| 6166 | } |
| 6167 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6168 | // Prevent compiler warnings about cached_has_bits being unused |
| 6169 | (void) cached_has_bits; |
| 6170 | |
| 6171 | // .dmi.ComponentUsageState old = 1; |
| 6172 | if (this->old() != 0) { |
| 6173 | total_size += 1 + |
| 6174 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->old()); |
| 6175 | } |
| 6176 | |
| 6177 | // .dmi.ComponentUsageState new = 2; |
| 6178 | if (this->new_() != 0) { |
| 6179 | total_size += 1 + |
| 6180 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_()); |
| 6181 | } |
| 6182 | |
| 6183 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6184 | SetCachedSize(cached_size); |
| 6185 | return total_size; |
| 6186 | } |
| 6187 | |
| 6188 | void UsageStateChange::MergeFrom(const ::google::protobuf::Message& from) { |
| 6189 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.UsageStateChange) |
| 6190 | GOOGLE_DCHECK_NE(&from, this); |
| 6191 | const UsageStateChange* source = |
| 6192 | ::google::protobuf::DynamicCastToGenerated<UsageStateChange>( |
| 6193 | &from); |
| 6194 | if (source == nullptr) { |
| 6195 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.UsageStateChange) |
| 6196 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6197 | } else { |
| 6198 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.UsageStateChange) |
| 6199 | MergeFrom(*source); |
| 6200 | } |
| 6201 | } |
| 6202 | |
| 6203 | void UsageStateChange::MergeFrom(const UsageStateChange& from) { |
| 6204 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.UsageStateChange) |
| 6205 | GOOGLE_DCHECK_NE(&from, this); |
| 6206 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6207 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6208 | (void) cached_has_bits; |
| 6209 | |
| 6210 | if (from.old() != 0) { |
| 6211 | set_old(from.old()); |
| 6212 | } |
| 6213 | if (from.new_() != 0) { |
| 6214 | set_new_(from.new_()); |
| 6215 | } |
| 6216 | } |
| 6217 | |
| 6218 | void UsageStateChange::CopyFrom(const ::google::protobuf::Message& from) { |
| 6219 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.UsageStateChange) |
| 6220 | if (&from == this) return; |
| 6221 | Clear(); |
| 6222 | MergeFrom(from); |
| 6223 | } |
| 6224 | |
| 6225 | void UsageStateChange::CopyFrom(const UsageStateChange& from) { |
| 6226 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.UsageStateChange) |
| 6227 | if (&from == this) return; |
| 6228 | Clear(); |
| 6229 | MergeFrom(from); |
| 6230 | } |
| 6231 | |
| 6232 | bool UsageStateChange::IsInitialized() const { |
| 6233 | return true; |
| 6234 | } |
| 6235 | |
| 6236 | void UsageStateChange::Swap(UsageStateChange* other) { |
| 6237 | if (other == this) return; |
| 6238 | InternalSwap(other); |
| 6239 | } |
| 6240 | void UsageStateChange::InternalSwap(UsageStateChange* other) { |
| 6241 | using std::swap; |
| 6242 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6243 | swap(old_, other->old_); |
| 6244 | swap(new__, other->new__); |
| 6245 | } |
| 6246 | |
| 6247 | ::google::protobuf::Metadata UsageStateChange::GetMetadata() const { |
| 6248 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 6249 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 6250 | } |
| 6251 | |
| 6252 | |
| 6253 | // =================================================================== |
| 6254 | |
| 6255 | void StandbyStateChange::InitAsDefaultInstance() { |
| 6256 | } |
| 6257 | class StandbyStateChange::HasBitSetters { |
| 6258 | public: |
| 6259 | }; |
| 6260 | |
| 6261 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6262 | const int StandbyStateChange::kOldFieldNumber; |
| 6263 | const int StandbyStateChange::kNewFieldNumber; |
| 6264 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6265 | |
| 6266 | StandbyStateChange::StandbyStateChange() |
| 6267 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6268 | SharedCtor(); |
| 6269 | // @@protoc_insertion_point(constructor:dmi.StandbyStateChange) |
| 6270 | } |
| 6271 | StandbyStateChange::StandbyStateChange(const StandbyStateChange& from) |
| 6272 | : ::google::protobuf::Message(), |
| 6273 | _internal_metadata_(nullptr) { |
| 6274 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6275 | ::memcpy(&old_, &from.old_, |
| 6276 | static_cast<size_t>(reinterpret_cast<char*>(&new__) - |
| 6277 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 6278 | // @@protoc_insertion_point(copy_constructor:dmi.StandbyStateChange) |
| 6279 | } |
| 6280 | |
| 6281 | void StandbyStateChange::SharedCtor() { |
| 6282 | ::memset(&old_, 0, static_cast<size_t>( |
| 6283 | reinterpret_cast<char*>(&new__) - |
| 6284 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 6285 | } |
| 6286 | |
| 6287 | StandbyStateChange::~StandbyStateChange() { |
| 6288 | // @@protoc_insertion_point(destructor:dmi.StandbyStateChange) |
| 6289 | SharedDtor(); |
| 6290 | } |
| 6291 | |
| 6292 | void StandbyStateChange::SharedDtor() { |
| 6293 | } |
| 6294 | |
| 6295 | void StandbyStateChange::SetCachedSize(int size) const { |
| 6296 | _cached_size_.Set(size); |
| 6297 | } |
| 6298 | const StandbyStateChange& StandbyStateChange::default_instance() { |
| 6299 | ::google::protobuf::internal::InitSCC(&::scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 6300 | return *internal_default_instance(); |
| 6301 | } |
| 6302 | |
| 6303 | |
| 6304 | void StandbyStateChange::Clear() { |
| 6305 | // @@protoc_insertion_point(message_clear_start:dmi.StandbyStateChange) |
| 6306 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6307 | // Prevent compiler warnings about cached_has_bits being unused |
| 6308 | (void) cached_has_bits; |
| 6309 | |
| 6310 | ::memset(&old_, 0, static_cast<size_t>( |
| 6311 | reinterpret_cast<char*>(&new__) - |
| 6312 | reinterpret_cast<char*>(&old_)) + sizeof(new__)); |
| 6313 | _internal_metadata_.Clear(); |
| 6314 | } |
| 6315 | |
| 6316 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6317 | const char* StandbyStateChange::_InternalParse(const char* begin, const char* end, void* object, |
| 6318 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6319 | auto msg = static_cast<StandbyStateChange*>(object); |
| 6320 | ::google::protobuf::int32 size; (void)size; |
| 6321 | int depth; (void)depth; |
| 6322 | ::google::protobuf::uint32 tag; |
| 6323 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6324 | auto ptr = begin; |
| 6325 | while (ptr < end) { |
| 6326 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6327 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6328 | switch (tag >> 3) { |
| 6329 | // .dmi.ComponentStandbyState old = 1; |
| 6330 | case 1: { |
| 6331 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6332 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6333 | msg->set_old(static_cast<::dmi::ComponentStandbyState>(val)); |
| 6334 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6335 | break; |
| 6336 | } |
| 6337 | // .dmi.ComponentStandbyState new = 2; |
| 6338 | case 2: { |
| 6339 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6340 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6341 | msg->set_new_(static_cast<::dmi::ComponentStandbyState>(val)); |
| 6342 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6343 | break; |
| 6344 | } |
| 6345 | default: { |
| 6346 | handle_unusual: |
| 6347 | if ((tag & 7) == 4 || tag == 0) { |
| 6348 | ctx->EndGroup(tag); |
| 6349 | return ptr; |
| 6350 | } |
| 6351 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6352 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6353 | ptr = res.first; |
| 6354 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6355 | if (res.second) return ptr; |
| 6356 | } |
| 6357 | } // switch |
| 6358 | } // while |
| 6359 | return ptr; |
| 6360 | } |
| 6361 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6362 | bool StandbyStateChange::MergePartialFromCodedStream( |
| 6363 | ::google::protobuf::io::CodedInputStream* input) { |
| 6364 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6365 | ::google::protobuf::uint32 tag; |
| 6366 | // @@protoc_insertion_point(parse_start:dmi.StandbyStateChange) |
| 6367 | for (;;) { |
| 6368 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6369 | tag = p.first; |
| 6370 | if (!p.second) goto handle_unusual; |
| 6371 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6372 | // .dmi.ComponentStandbyState old = 1; |
| 6373 | case 1: { |
| 6374 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6375 | int value = 0; |
| 6376 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6377 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6378 | input, &value))); |
| 6379 | set_old(static_cast< ::dmi::ComponentStandbyState >(value)); |
| 6380 | } else { |
| 6381 | goto handle_unusual; |
| 6382 | } |
| 6383 | break; |
| 6384 | } |
| 6385 | |
| 6386 | // .dmi.ComponentStandbyState new = 2; |
| 6387 | case 2: { |
| 6388 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6389 | int value = 0; |
| 6390 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6391 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6392 | input, &value))); |
| 6393 | set_new_(static_cast< ::dmi::ComponentStandbyState >(value)); |
| 6394 | } else { |
| 6395 | goto handle_unusual; |
| 6396 | } |
| 6397 | break; |
| 6398 | } |
| 6399 | |
| 6400 | default: { |
| 6401 | handle_unusual: |
| 6402 | if (tag == 0) { |
| 6403 | goto success; |
| 6404 | } |
| 6405 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6406 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6407 | break; |
| 6408 | } |
| 6409 | } |
| 6410 | } |
| 6411 | success: |
| 6412 | // @@protoc_insertion_point(parse_success:dmi.StandbyStateChange) |
| 6413 | return true; |
| 6414 | failure: |
| 6415 | // @@protoc_insertion_point(parse_failure:dmi.StandbyStateChange) |
| 6416 | return false; |
| 6417 | #undef DO_ |
| 6418 | } |
| 6419 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6420 | |
| 6421 | void StandbyStateChange::SerializeWithCachedSizes( |
| 6422 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6423 | // @@protoc_insertion_point(serialize_start:dmi.StandbyStateChange) |
| 6424 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6425 | (void) cached_has_bits; |
| 6426 | |
| 6427 | // .dmi.ComponentStandbyState old = 1; |
| 6428 | if (this->old() != 0) { |
| 6429 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6430 | 1, this->old(), output); |
| 6431 | } |
| 6432 | |
| 6433 | // .dmi.ComponentStandbyState new = 2; |
| 6434 | if (this->new_() != 0) { |
| 6435 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6436 | 2, this->new_(), output); |
| 6437 | } |
| 6438 | |
| 6439 | if (_internal_metadata_.have_unknown_fields()) { |
| 6440 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6441 | _internal_metadata_.unknown_fields(), output); |
| 6442 | } |
| 6443 | // @@protoc_insertion_point(serialize_end:dmi.StandbyStateChange) |
| 6444 | } |
| 6445 | |
| 6446 | ::google::protobuf::uint8* StandbyStateChange::InternalSerializeWithCachedSizesToArray( |
| 6447 | ::google::protobuf::uint8* target) const { |
| 6448 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StandbyStateChange) |
| 6449 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6450 | (void) cached_has_bits; |
| 6451 | |
| 6452 | // .dmi.ComponentStandbyState old = 1; |
| 6453 | if (this->old() != 0) { |
| 6454 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6455 | 1, this->old(), target); |
| 6456 | } |
| 6457 | |
| 6458 | // .dmi.ComponentStandbyState new = 2; |
| 6459 | if (this->new_() != 0) { |
| 6460 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6461 | 2, this->new_(), target); |
| 6462 | } |
| 6463 | |
| 6464 | if (_internal_metadata_.have_unknown_fields()) { |
| 6465 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6466 | _internal_metadata_.unknown_fields(), target); |
| 6467 | } |
| 6468 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StandbyStateChange) |
| 6469 | return target; |
| 6470 | } |
| 6471 | |
| 6472 | size_t StandbyStateChange::ByteSizeLong() const { |
| 6473 | // @@protoc_insertion_point(message_byte_size_start:dmi.StandbyStateChange) |
| 6474 | size_t total_size = 0; |
| 6475 | |
| 6476 | if (_internal_metadata_.have_unknown_fields()) { |
| 6477 | total_size += |
| 6478 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6479 | _internal_metadata_.unknown_fields()); |
| 6480 | } |
| 6481 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6482 | // Prevent compiler warnings about cached_has_bits being unused |
| 6483 | (void) cached_has_bits; |
| 6484 | |
| 6485 | // .dmi.ComponentStandbyState old = 1; |
| 6486 | if (this->old() != 0) { |
| 6487 | total_size += 1 + |
| 6488 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->old()); |
| 6489 | } |
| 6490 | |
| 6491 | // .dmi.ComponentStandbyState new = 2; |
| 6492 | if (this->new_() != 0) { |
| 6493 | total_size += 1 + |
| 6494 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_()); |
| 6495 | } |
| 6496 | |
| 6497 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6498 | SetCachedSize(cached_size); |
| 6499 | return total_size; |
| 6500 | } |
| 6501 | |
| 6502 | void StandbyStateChange::MergeFrom(const ::google::protobuf::Message& from) { |
| 6503 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StandbyStateChange) |
| 6504 | GOOGLE_DCHECK_NE(&from, this); |
| 6505 | const StandbyStateChange* source = |
| 6506 | ::google::protobuf::DynamicCastToGenerated<StandbyStateChange>( |
| 6507 | &from); |
| 6508 | if (source == nullptr) { |
| 6509 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StandbyStateChange) |
| 6510 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6511 | } else { |
| 6512 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StandbyStateChange) |
| 6513 | MergeFrom(*source); |
| 6514 | } |
| 6515 | } |
| 6516 | |
| 6517 | void StandbyStateChange::MergeFrom(const StandbyStateChange& from) { |
| 6518 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StandbyStateChange) |
| 6519 | GOOGLE_DCHECK_NE(&from, this); |
| 6520 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6521 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6522 | (void) cached_has_bits; |
| 6523 | |
| 6524 | if (from.old() != 0) { |
| 6525 | set_old(from.old()); |
| 6526 | } |
| 6527 | if (from.new_() != 0) { |
| 6528 | set_new_(from.new_()); |
| 6529 | } |
| 6530 | } |
| 6531 | |
| 6532 | void StandbyStateChange::CopyFrom(const ::google::protobuf::Message& from) { |
| 6533 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StandbyStateChange) |
| 6534 | if (&from == this) return; |
| 6535 | Clear(); |
| 6536 | MergeFrom(from); |
| 6537 | } |
| 6538 | |
| 6539 | void StandbyStateChange::CopyFrom(const StandbyStateChange& from) { |
| 6540 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StandbyStateChange) |
| 6541 | if (&from == this) return; |
| 6542 | Clear(); |
| 6543 | MergeFrom(from); |
| 6544 | } |
| 6545 | |
| 6546 | bool StandbyStateChange::IsInitialized() const { |
| 6547 | return true; |
| 6548 | } |
| 6549 | |
| 6550 | void StandbyStateChange::Swap(StandbyStateChange* other) { |
| 6551 | if (other == this) return; |
| 6552 | InternalSwap(other); |
| 6553 | } |
| 6554 | void StandbyStateChange::InternalSwap(StandbyStateChange* other) { |
| 6555 | using std::swap; |
| 6556 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6557 | swap(old_, other->old_); |
| 6558 | swap(new__, other->new__); |
| 6559 | } |
| 6560 | |
| 6561 | ::google::protobuf::Metadata StandbyStateChange::GetMetadata() const { |
| 6562 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 6563 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 6564 | } |
| 6565 | |
| 6566 | |
| 6567 | // =================================================================== |
| 6568 | |
| 6569 | void StateChangeInfo::InitAsDefaultInstance() { |
| 6570 | ::dmi::_StateChangeInfo_default_instance_.admin_state_change_ = const_cast< ::dmi::AdminStateChange*>( |
| 6571 | ::dmi::AdminStateChange::internal_default_instance()); |
| 6572 | ::dmi::_StateChangeInfo_default_instance_.oper_state_change_ = const_cast< ::dmi::OperStateChange*>( |
| 6573 | ::dmi::OperStateChange::internal_default_instance()); |
| 6574 | ::dmi::_StateChangeInfo_default_instance_.alarm_state_change_ = const_cast< ::dmi::AlarmStateChange*>( |
| 6575 | ::dmi::AlarmStateChange::internal_default_instance()); |
| 6576 | ::dmi::_StateChangeInfo_default_instance_.usage_state_change_ = const_cast< ::dmi::UsageStateChange*>( |
| 6577 | ::dmi::UsageStateChange::internal_default_instance()); |
| 6578 | ::dmi::_StateChangeInfo_default_instance_.standby_state_change_ = const_cast< ::dmi::StandbyStateChange*>( |
| 6579 | ::dmi::StandbyStateChange::internal_default_instance()); |
| 6580 | } |
| 6581 | class StateChangeInfo::HasBitSetters { |
| 6582 | public: |
| 6583 | static const ::dmi::AdminStateChange& admin_state_change(const StateChangeInfo* msg); |
| 6584 | static const ::dmi::OperStateChange& oper_state_change(const StateChangeInfo* msg); |
| 6585 | static const ::dmi::AlarmStateChange& alarm_state_change(const StateChangeInfo* msg); |
| 6586 | static const ::dmi::UsageStateChange& usage_state_change(const StateChangeInfo* msg); |
| 6587 | static const ::dmi::StandbyStateChange& standby_state_change(const StateChangeInfo* msg); |
| 6588 | }; |
| 6589 | |
| 6590 | const ::dmi::AdminStateChange& |
| 6591 | StateChangeInfo::HasBitSetters::admin_state_change(const StateChangeInfo* msg) { |
| 6592 | return *msg->state_change_.admin_state_change_; |
| 6593 | } |
| 6594 | const ::dmi::OperStateChange& |
| 6595 | StateChangeInfo::HasBitSetters::oper_state_change(const StateChangeInfo* msg) { |
| 6596 | return *msg->state_change_.oper_state_change_; |
| 6597 | } |
| 6598 | const ::dmi::AlarmStateChange& |
| 6599 | StateChangeInfo::HasBitSetters::alarm_state_change(const StateChangeInfo* msg) { |
| 6600 | return *msg->state_change_.alarm_state_change_; |
| 6601 | } |
| 6602 | const ::dmi::UsageStateChange& |
| 6603 | StateChangeInfo::HasBitSetters::usage_state_change(const StateChangeInfo* msg) { |
| 6604 | return *msg->state_change_.usage_state_change_; |
| 6605 | } |
| 6606 | const ::dmi::StandbyStateChange& |
| 6607 | StateChangeInfo::HasBitSetters::standby_state_change(const StateChangeInfo* msg) { |
| 6608 | return *msg->state_change_.standby_state_change_; |
| 6609 | } |
| 6610 | void StateChangeInfo::set_allocated_admin_state_change(::dmi::AdminStateChange* admin_state_change) { |
| 6611 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6612 | clear_state_change(); |
| 6613 | if (admin_state_change) { |
| 6614 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6615 | if (message_arena != submessage_arena) { |
| 6616 | admin_state_change = ::google::protobuf::internal::GetOwnedMessage( |
| 6617 | message_arena, admin_state_change, submessage_arena); |
| 6618 | } |
| 6619 | set_has_admin_state_change(); |
| 6620 | state_change_.admin_state_change_ = admin_state_change; |
| 6621 | } |
| 6622 | // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.admin_state_change) |
| 6623 | } |
| 6624 | void StateChangeInfo::set_allocated_oper_state_change(::dmi::OperStateChange* oper_state_change) { |
| 6625 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6626 | clear_state_change(); |
| 6627 | if (oper_state_change) { |
| 6628 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6629 | if (message_arena != submessage_arena) { |
| 6630 | oper_state_change = ::google::protobuf::internal::GetOwnedMessage( |
| 6631 | message_arena, oper_state_change, submessage_arena); |
| 6632 | } |
| 6633 | set_has_oper_state_change(); |
| 6634 | state_change_.oper_state_change_ = oper_state_change; |
| 6635 | } |
| 6636 | // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.oper_state_change) |
| 6637 | } |
| 6638 | void StateChangeInfo::set_allocated_alarm_state_change(::dmi::AlarmStateChange* alarm_state_change) { |
| 6639 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6640 | clear_state_change(); |
| 6641 | if (alarm_state_change) { |
| 6642 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6643 | if (message_arena != submessage_arena) { |
| 6644 | alarm_state_change = ::google::protobuf::internal::GetOwnedMessage( |
| 6645 | message_arena, alarm_state_change, submessage_arena); |
| 6646 | } |
| 6647 | set_has_alarm_state_change(); |
| 6648 | state_change_.alarm_state_change_ = alarm_state_change; |
| 6649 | } |
| 6650 | // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.alarm_state_change) |
| 6651 | } |
| 6652 | void StateChangeInfo::set_allocated_usage_state_change(::dmi::UsageStateChange* usage_state_change) { |
| 6653 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6654 | clear_state_change(); |
| 6655 | if (usage_state_change) { |
| 6656 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6657 | if (message_arena != submessage_arena) { |
| 6658 | usage_state_change = ::google::protobuf::internal::GetOwnedMessage( |
| 6659 | message_arena, usage_state_change, submessage_arena); |
| 6660 | } |
| 6661 | set_has_usage_state_change(); |
| 6662 | state_change_.usage_state_change_ = usage_state_change; |
| 6663 | } |
| 6664 | // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.usage_state_change) |
| 6665 | } |
| 6666 | void StateChangeInfo::set_allocated_standby_state_change(::dmi::StandbyStateChange* standby_state_change) { |
| 6667 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6668 | clear_state_change(); |
| 6669 | if (standby_state_change) { |
| 6670 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6671 | if (message_arena != submessage_arena) { |
| 6672 | standby_state_change = ::google::protobuf::internal::GetOwnedMessage( |
| 6673 | message_arena, standby_state_change, submessage_arena); |
| 6674 | } |
| 6675 | set_has_standby_state_change(); |
| 6676 | state_change_.standby_state_change_ = standby_state_change; |
| 6677 | } |
| 6678 | // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.standby_state_change) |
| 6679 | } |
| 6680 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6681 | const int StateChangeInfo::kAdminStateChangeFieldNumber; |
| 6682 | const int StateChangeInfo::kOperStateChangeFieldNumber; |
| 6683 | const int StateChangeInfo::kAlarmStateChangeFieldNumber; |
| 6684 | const int StateChangeInfo::kUsageStateChangeFieldNumber; |
| 6685 | const int StateChangeInfo::kStandbyStateChangeFieldNumber; |
| 6686 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6687 | |
| 6688 | StateChangeInfo::StateChangeInfo() |
| 6689 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6690 | SharedCtor(); |
| 6691 | // @@protoc_insertion_point(constructor:dmi.StateChangeInfo) |
| 6692 | } |
| 6693 | StateChangeInfo::StateChangeInfo(const StateChangeInfo& from) |
| 6694 | : ::google::protobuf::Message(), |
| 6695 | _internal_metadata_(nullptr) { |
| 6696 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6697 | clear_has_state_change(); |
| 6698 | switch (from.state_change_case()) { |
| 6699 | case kAdminStateChange: { |
| 6700 | mutable_admin_state_change()->::dmi::AdminStateChange::MergeFrom(from.admin_state_change()); |
| 6701 | break; |
| 6702 | } |
| 6703 | case kOperStateChange: { |
| 6704 | mutable_oper_state_change()->::dmi::OperStateChange::MergeFrom(from.oper_state_change()); |
| 6705 | break; |
| 6706 | } |
| 6707 | case kAlarmStateChange: { |
| 6708 | mutable_alarm_state_change()->::dmi::AlarmStateChange::MergeFrom(from.alarm_state_change()); |
| 6709 | break; |
| 6710 | } |
| 6711 | case kUsageStateChange: { |
| 6712 | mutable_usage_state_change()->::dmi::UsageStateChange::MergeFrom(from.usage_state_change()); |
| 6713 | break; |
| 6714 | } |
| 6715 | case kStandbyStateChange: { |
| 6716 | mutable_standby_state_change()->::dmi::StandbyStateChange::MergeFrom(from.standby_state_change()); |
| 6717 | break; |
| 6718 | } |
| 6719 | case STATE_CHANGE_NOT_SET: { |
| 6720 | break; |
| 6721 | } |
| 6722 | } |
| 6723 | // @@protoc_insertion_point(copy_constructor:dmi.StateChangeInfo) |
| 6724 | } |
| 6725 | |
| 6726 | void StateChangeInfo::SharedCtor() { |
| 6727 | ::google::protobuf::internal::InitSCC( |
| 6728 | &scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 6729 | clear_has_state_change(); |
| 6730 | } |
| 6731 | |
| 6732 | StateChangeInfo::~StateChangeInfo() { |
| 6733 | // @@protoc_insertion_point(destructor:dmi.StateChangeInfo) |
| 6734 | SharedDtor(); |
| 6735 | } |
| 6736 | |
| 6737 | void StateChangeInfo::SharedDtor() { |
| 6738 | if (has_state_change()) { |
| 6739 | clear_state_change(); |
| 6740 | } |
| 6741 | } |
| 6742 | |
| 6743 | void StateChangeInfo::SetCachedSize(int size) const { |
| 6744 | _cached_size_.Set(size); |
| 6745 | } |
| 6746 | const StateChangeInfo& StateChangeInfo::default_instance() { |
| 6747 | ::google::protobuf::internal::InitSCC(&::scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 6748 | return *internal_default_instance(); |
| 6749 | } |
| 6750 | |
| 6751 | |
| 6752 | void StateChangeInfo::clear_state_change() { |
| 6753 | // @@protoc_insertion_point(one_of_clear_start:dmi.StateChangeInfo) |
| 6754 | switch (state_change_case()) { |
| 6755 | case kAdminStateChange: { |
| 6756 | delete state_change_.admin_state_change_; |
| 6757 | break; |
| 6758 | } |
| 6759 | case kOperStateChange: { |
| 6760 | delete state_change_.oper_state_change_; |
| 6761 | break; |
| 6762 | } |
| 6763 | case kAlarmStateChange: { |
| 6764 | delete state_change_.alarm_state_change_; |
| 6765 | break; |
| 6766 | } |
| 6767 | case kUsageStateChange: { |
| 6768 | delete state_change_.usage_state_change_; |
| 6769 | break; |
| 6770 | } |
| 6771 | case kStandbyStateChange: { |
| 6772 | delete state_change_.standby_state_change_; |
| 6773 | break; |
| 6774 | } |
| 6775 | case STATE_CHANGE_NOT_SET: { |
| 6776 | break; |
| 6777 | } |
| 6778 | } |
| 6779 | _oneof_case_[0] = STATE_CHANGE_NOT_SET; |
| 6780 | } |
| 6781 | |
| 6782 | |
| 6783 | void StateChangeInfo::Clear() { |
| 6784 | // @@protoc_insertion_point(message_clear_start:dmi.StateChangeInfo) |
| 6785 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6786 | // Prevent compiler warnings about cached_has_bits being unused |
| 6787 | (void) cached_has_bits; |
| 6788 | |
| 6789 | clear_state_change(); |
| 6790 | _internal_metadata_.Clear(); |
| 6791 | } |
| 6792 | |
| 6793 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6794 | const char* StateChangeInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 6795 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6796 | auto msg = static_cast<StateChangeInfo*>(object); |
| 6797 | ::google::protobuf::int32 size; (void)size; |
| 6798 | int depth; (void)depth; |
| 6799 | ::google::protobuf::uint32 tag; |
| 6800 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6801 | auto ptr = begin; |
| 6802 | while (ptr < end) { |
| 6803 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6804 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6805 | switch (tag >> 3) { |
| 6806 | // .dmi.AdminStateChange admin_state_change = 1; |
| 6807 | case 1: { |
| 6808 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 6809 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6810 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6811 | parser_till_end = ::dmi::AdminStateChange::_InternalParse; |
| 6812 | object = msg->mutable_admin_state_change(); |
| 6813 | if (size > end - ptr) goto len_delim_till_end; |
| 6814 | ptr += size; |
| 6815 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6816 | {parser_till_end, object}, ptr - size, ptr)); |
| 6817 | break; |
| 6818 | } |
| 6819 | // .dmi.OperStateChange oper_state_change = 2; |
| 6820 | case 2: { |
| 6821 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 6822 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6823 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6824 | parser_till_end = ::dmi::OperStateChange::_InternalParse; |
| 6825 | object = msg->mutable_oper_state_change(); |
| 6826 | if (size > end - ptr) goto len_delim_till_end; |
| 6827 | ptr += size; |
| 6828 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6829 | {parser_till_end, object}, ptr - size, ptr)); |
| 6830 | break; |
| 6831 | } |
| 6832 | // .dmi.AlarmStateChange alarm_state_change = 3; |
| 6833 | case 3: { |
| 6834 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6835 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6836 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6837 | parser_till_end = ::dmi::AlarmStateChange::_InternalParse; |
| 6838 | object = msg->mutable_alarm_state_change(); |
| 6839 | if (size > end - ptr) goto len_delim_till_end; |
| 6840 | ptr += size; |
| 6841 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6842 | {parser_till_end, object}, ptr - size, ptr)); |
| 6843 | break; |
| 6844 | } |
| 6845 | // .dmi.UsageStateChange usage_state_change = 4; |
| 6846 | case 4: { |
| 6847 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6848 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6849 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6850 | parser_till_end = ::dmi::UsageStateChange::_InternalParse; |
| 6851 | object = msg->mutable_usage_state_change(); |
| 6852 | if (size > end - ptr) goto len_delim_till_end; |
| 6853 | ptr += size; |
| 6854 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6855 | {parser_till_end, object}, ptr - size, ptr)); |
| 6856 | break; |
| 6857 | } |
| 6858 | // .dmi.StandbyStateChange standby_state_change = 5; |
| 6859 | case 5: { |
| 6860 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 6861 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6862 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6863 | parser_till_end = ::dmi::StandbyStateChange::_InternalParse; |
| 6864 | object = msg->mutable_standby_state_change(); |
| 6865 | if (size > end - ptr) goto len_delim_till_end; |
| 6866 | ptr += size; |
| 6867 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6868 | {parser_till_end, object}, ptr - size, ptr)); |
| 6869 | break; |
| 6870 | } |
| 6871 | default: { |
| 6872 | handle_unusual: |
| 6873 | if ((tag & 7) == 4 || tag == 0) { |
| 6874 | ctx->EndGroup(tag); |
| 6875 | return ptr; |
| 6876 | } |
| 6877 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6878 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6879 | ptr = res.first; |
| 6880 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6881 | if (res.second) return ptr; |
| 6882 | } |
| 6883 | } // switch |
| 6884 | } // while |
| 6885 | return ptr; |
| 6886 | len_delim_till_end: |
| 6887 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6888 | {parser_till_end, object}, size); |
| 6889 | } |
| 6890 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6891 | bool StateChangeInfo::MergePartialFromCodedStream( |
| 6892 | ::google::protobuf::io::CodedInputStream* input) { |
| 6893 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6894 | ::google::protobuf::uint32 tag; |
| 6895 | // @@protoc_insertion_point(parse_start:dmi.StateChangeInfo) |
| 6896 | for (;;) { |
| 6897 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6898 | tag = p.first; |
| 6899 | if (!p.second) goto handle_unusual; |
| 6900 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6901 | // .dmi.AdminStateChange admin_state_change = 1; |
| 6902 | case 1: { |
| 6903 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 6904 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6905 | input, mutable_admin_state_change())); |
| 6906 | } else { |
| 6907 | goto handle_unusual; |
| 6908 | } |
| 6909 | break; |
| 6910 | } |
| 6911 | |
| 6912 | // .dmi.OperStateChange oper_state_change = 2; |
| 6913 | case 2: { |
| 6914 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 6915 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6916 | input, mutable_oper_state_change())); |
| 6917 | } else { |
| 6918 | goto handle_unusual; |
| 6919 | } |
| 6920 | break; |
| 6921 | } |
| 6922 | |
| 6923 | // .dmi.AlarmStateChange alarm_state_change = 3; |
| 6924 | case 3: { |
| 6925 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6926 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6927 | input, mutable_alarm_state_change())); |
| 6928 | } else { |
| 6929 | goto handle_unusual; |
| 6930 | } |
| 6931 | break; |
| 6932 | } |
| 6933 | |
| 6934 | // .dmi.UsageStateChange usage_state_change = 4; |
| 6935 | case 4: { |
| 6936 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 6937 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6938 | input, mutable_usage_state_change())); |
| 6939 | } else { |
| 6940 | goto handle_unusual; |
| 6941 | } |
| 6942 | break; |
| 6943 | } |
| 6944 | |
| 6945 | // .dmi.StandbyStateChange standby_state_change = 5; |
| 6946 | case 5: { |
| 6947 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 6948 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6949 | input, mutable_standby_state_change())); |
| 6950 | } else { |
| 6951 | goto handle_unusual; |
| 6952 | } |
| 6953 | break; |
| 6954 | } |
| 6955 | |
| 6956 | default: { |
| 6957 | handle_unusual: |
| 6958 | if (tag == 0) { |
| 6959 | goto success; |
| 6960 | } |
| 6961 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6962 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6963 | break; |
| 6964 | } |
| 6965 | } |
| 6966 | } |
| 6967 | success: |
| 6968 | // @@protoc_insertion_point(parse_success:dmi.StateChangeInfo) |
| 6969 | return true; |
| 6970 | failure: |
| 6971 | // @@protoc_insertion_point(parse_failure:dmi.StateChangeInfo) |
| 6972 | return false; |
| 6973 | #undef DO_ |
| 6974 | } |
| 6975 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6976 | |
| 6977 | void StateChangeInfo::SerializeWithCachedSizes( |
| 6978 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6979 | // @@protoc_insertion_point(serialize_start:dmi.StateChangeInfo) |
| 6980 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6981 | (void) cached_has_bits; |
| 6982 | |
| 6983 | // .dmi.AdminStateChange admin_state_change = 1; |
| 6984 | if (has_admin_state_change()) { |
| 6985 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6986 | 1, HasBitSetters::admin_state_change(this), output); |
| 6987 | } |
| 6988 | |
| 6989 | // .dmi.OperStateChange oper_state_change = 2; |
| 6990 | if (has_oper_state_change()) { |
| 6991 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6992 | 2, HasBitSetters::oper_state_change(this), output); |
| 6993 | } |
| 6994 | |
| 6995 | // .dmi.AlarmStateChange alarm_state_change = 3; |
| 6996 | if (has_alarm_state_change()) { |
| 6997 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6998 | 3, HasBitSetters::alarm_state_change(this), output); |
| 6999 | } |
| 7000 | |
| 7001 | // .dmi.UsageStateChange usage_state_change = 4; |
| 7002 | if (has_usage_state_change()) { |
| 7003 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7004 | 4, HasBitSetters::usage_state_change(this), output); |
| 7005 | } |
| 7006 | |
| 7007 | // .dmi.StandbyStateChange standby_state_change = 5; |
| 7008 | if (has_standby_state_change()) { |
| 7009 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7010 | 5, HasBitSetters::standby_state_change(this), output); |
| 7011 | } |
| 7012 | |
| 7013 | if (_internal_metadata_.have_unknown_fields()) { |
| 7014 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7015 | _internal_metadata_.unknown_fields(), output); |
| 7016 | } |
| 7017 | // @@protoc_insertion_point(serialize_end:dmi.StateChangeInfo) |
| 7018 | } |
| 7019 | |
| 7020 | ::google::protobuf::uint8* StateChangeInfo::InternalSerializeWithCachedSizesToArray( |
| 7021 | ::google::protobuf::uint8* target) const { |
| 7022 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StateChangeInfo) |
| 7023 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7024 | (void) cached_has_bits; |
| 7025 | |
| 7026 | // .dmi.AdminStateChange admin_state_change = 1; |
| 7027 | if (has_admin_state_change()) { |
| 7028 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7029 | InternalWriteMessageToArray( |
| 7030 | 1, HasBitSetters::admin_state_change(this), target); |
| 7031 | } |
| 7032 | |
| 7033 | // .dmi.OperStateChange oper_state_change = 2; |
| 7034 | if (has_oper_state_change()) { |
| 7035 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7036 | InternalWriteMessageToArray( |
| 7037 | 2, HasBitSetters::oper_state_change(this), target); |
| 7038 | } |
| 7039 | |
| 7040 | // .dmi.AlarmStateChange alarm_state_change = 3; |
| 7041 | if (has_alarm_state_change()) { |
| 7042 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7043 | InternalWriteMessageToArray( |
| 7044 | 3, HasBitSetters::alarm_state_change(this), target); |
| 7045 | } |
| 7046 | |
| 7047 | // .dmi.UsageStateChange usage_state_change = 4; |
| 7048 | if (has_usage_state_change()) { |
| 7049 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7050 | InternalWriteMessageToArray( |
| 7051 | 4, HasBitSetters::usage_state_change(this), target); |
| 7052 | } |
| 7053 | |
| 7054 | // .dmi.StandbyStateChange standby_state_change = 5; |
| 7055 | if (has_standby_state_change()) { |
| 7056 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7057 | InternalWriteMessageToArray( |
| 7058 | 5, HasBitSetters::standby_state_change(this), target); |
| 7059 | } |
| 7060 | |
| 7061 | if (_internal_metadata_.have_unknown_fields()) { |
| 7062 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7063 | _internal_metadata_.unknown_fields(), target); |
| 7064 | } |
| 7065 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StateChangeInfo) |
| 7066 | return target; |
| 7067 | } |
| 7068 | |
| 7069 | size_t StateChangeInfo::ByteSizeLong() const { |
| 7070 | // @@protoc_insertion_point(message_byte_size_start:dmi.StateChangeInfo) |
| 7071 | size_t total_size = 0; |
| 7072 | |
| 7073 | if (_internal_metadata_.have_unknown_fields()) { |
| 7074 | total_size += |
| 7075 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7076 | _internal_metadata_.unknown_fields()); |
| 7077 | } |
| 7078 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7079 | // Prevent compiler warnings about cached_has_bits being unused |
| 7080 | (void) cached_has_bits; |
| 7081 | |
| 7082 | switch (state_change_case()) { |
| 7083 | // .dmi.AdminStateChange admin_state_change = 1; |
| 7084 | case kAdminStateChange: { |
| 7085 | total_size += 1 + |
| 7086 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7087 | *state_change_.admin_state_change_); |
| 7088 | break; |
| 7089 | } |
| 7090 | // .dmi.OperStateChange oper_state_change = 2; |
| 7091 | case kOperStateChange: { |
| 7092 | total_size += 1 + |
| 7093 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7094 | *state_change_.oper_state_change_); |
| 7095 | break; |
| 7096 | } |
| 7097 | // .dmi.AlarmStateChange alarm_state_change = 3; |
| 7098 | case kAlarmStateChange: { |
| 7099 | total_size += 1 + |
| 7100 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7101 | *state_change_.alarm_state_change_); |
| 7102 | break; |
| 7103 | } |
| 7104 | // .dmi.UsageStateChange usage_state_change = 4; |
| 7105 | case kUsageStateChange: { |
| 7106 | total_size += 1 + |
| 7107 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7108 | *state_change_.usage_state_change_); |
| 7109 | break; |
| 7110 | } |
| 7111 | // .dmi.StandbyStateChange standby_state_change = 5; |
| 7112 | case kStandbyStateChange: { |
| 7113 | total_size += 1 + |
| 7114 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7115 | *state_change_.standby_state_change_); |
| 7116 | break; |
| 7117 | } |
| 7118 | case STATE_CHANGE_NOT_SET: { |
| 7119 | break; |
| 7120 | } |
| 7121 | } |
| 7122 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7123 | SetCachedSize(cached_size); |
| 7124 | return total_size; |
| 7125 | } |
| 7126 | |
| 7127 | void StateChangeInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 7128 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StateChangeInfo) |
| 7129 | GOOGLE_DCHECK_NE(&from, this); |
| 7130 | const StateChangeInfo* source = |
| 7131 | ::google::protobuf::DynamicCastToGenerated<StateChangeInfo>( |
| 7132 | &from); |
| 7133 | if (source == nullptr) { |
| 7134 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StateChangeInfo) |
| 7135 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7136 | } else { |
| 7137 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StateChangeInfo) |
| 7138 | MergeFrom(*source); |
| 7139 | } |
| 7140 | } |
| 7141 | |
| 7142 | void StateChangeInfo::MergeFrom(const StateChangeInfo& from) { |
| 7143 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StateChangeInfo) |
| 7144 | GOOGLE_DCHECK_NE(&from, this); |
| 7145 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7146 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7147 | (void) cached_has_bits; |
| 7148 | |
| 7149 | switch (from.state_change_case()) { |
| 7150 | case kAdminStateChange: { |
| 7151 | mutable_admin_state_change()->::dmi::AdminStateChange::MergeFrom(from.admin_state_change()); |
| 7152 | break; |
| 7153 | } |
| 7154 | case kOperStateChange: { |
| 7155 | mutable_oper_state_change()->::dmi::OperStateChange::MergeFrom(from.oper_state_change()); |
| 7156 | break; |
| 7157 | } |
| 7158 | case kAlarmStateChange: { |
| 7159 | mutable_alarm_state_change()->::dmi::AlarmStateChange::MergeFrom(from.alarm_state_change()); |
| 7160 | break; |
| 7161 | } |
| 7162 | case kUsageStateChange: { |
| 7163 | mutable_usage_state_change()->::dmi::UsageStateChange::MergeFrom(from.usage_state_change()); |
| 7164 | break; |
| 7165 | } |
| 7166 | case kStandbyStateChange: { |
| 7167 | mutable_standby_state_change()->::dmi::StandbyStateChange::MergeFrom(from.standby_state_change()); |
| 7168 | break; |
| 7169 | } |
| 7170 | case STATE_CHANGE_NOT_SET: { |
| 7171 | break; |
| 7172 | } |
| 7173 | } |
| 7174 | } |
| 7175 | |
| 7176 | void StateChangeInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 7177 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StateChangeInfo) |
| 7178 | if (&from == this) return; |
| 7179 | Clear(); |
| 7180 | MergeFrom(from); |
| 7181 | } |
| 7182 | |
| 7183 | void StateChangeInfo::CopyFrom(const StateChangeInfo& from) { |
| 7184 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StateChangeInfo) |
| 7185 | if (&from == this) return; |
| 7186 | Clear(); |
| 7187 | MergeFrom(from); |
| 7188 | } |
| 7189 | |
| 7190 | bool StateChangeInfo::IsInitialized() const { |
| 7191 | return true; |
| 7192 | } |
| 7193 | |
| 7194 | void StateChangeInfo::Swap(StateChangeInfo* other) { |
| 7195 | if (other == this) return; |
| 7196 | InternalSwap(other); |
| 7197 | } |
| 7198 | void StateChangeInfo::InternalSwap(StateChangeInfo* other) { |
| 7199 | using std::swap; |
| 7200 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7201 | swap(state_change_, other->state_change_); |
| 7202 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 7203 | } |
| 7204 | |
| 7205 | ::google::protobuf::Metadata StateChangeInfo::GetMetadata() const { |
| 7206 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 7207 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 7208 | } |
| 7209 | |
| 7210 | |
| 7211 | // =================================================================== |
| 7212 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7213 | void GenericEventInfo::InitAsDefaultInstance() { |
| 7214 | } |
| 7215 | class GenericEventInfo::HasBitSetters { |
| 7216 | public: |
| 7217 | }; |
| 7218 | |
| 7219 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7220 | const int GenericEventInfo::kMessageFieldNumber; |
| 7221 | const int GenericEventInfo::kMessageCodeFieldNumber; |
| 7222 | const int GenericEventInfo::kSeverityFieldNumber; |
| 7223 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7224 | |
| 7225 | GenericEventInfo::GenericEventInfo() |
| 7226 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7227 | SharedCtor(); |
| 7228 | // @@protoc_insertion_point(constructor:dmi.GenericEventInfo) |
| 7229 | } |
| 7230 | GenericEventInfo::GenericEventInfo(const GenericEventInfo& from) |
| 7231 | : ::google::protobuf::Message(), |
| 7232 | _internal_metadata_(nullptr) { |
| 7233 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7234 | message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7235 | if (from.message().size() > 0) { |
| 7236 | message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); |
| 7237 | } |
| 7238 | message_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7239 | if (from.message_code().size() > 0) { |
| 7240 | message_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_code_); |
| 7241 | } |
| 7242 | severity_ = from.severity_; |
| 7243 | // @@protoc_insertion_point(copy_constructor:dmi.GenericEventInfo) |
| 7244 | } |
| 7245 | |
| 7246 | void GenericEventInfo::SharedCtor() { |
| 7247 | ::google::protobuf::internal::InitSCC( |
| 7248 | &scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 7249 | message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7250 | message_code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7251 | severity_ = 0; |
| 7252 | } |
| 7253 | |
| 7254 | GenericEventInfo::~GenericEventInfo() { |
| 7255 | // @@protoc_insertion_point(destructor:dmi.GenericEventInfo) |
| 7256 | SharedDtor(); |
| 7257 | } |
| 7258 | |
| 7259 | void GenericEventInfo::SharedDtor() { |
| 7260 | message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7261 | message_code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7262 | } |
| 7263 | |
| 7264 | void GenericEventInfo::SetCachedSize(int size) const { |
| 7265 | _cached_size_.Set(size); |
| 7266 | } |
| 7267 | const GenericEventInfo& GenericEventInfo::default_instance() { |
| 7268 | ::google::protobuf::internal::InitSCC(&::scc_info_GenericEventInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 7269 | return *internal_default_instance(); |
| 7270 | } |
| 7271 | |
| 7272 | |
| 7273 | void GenericEventInfo::Clear() { |
| 7274 | // @@protoc_insertion_point(message_clear_start:dmi.GenericEventInfo) |
| 7275 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7276 | // Prevent compiler warnings about cached_has_bits being unused |
| 7277 | (void) cached_has_bits; |
| 7278 | |
| 7279 | message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7280 | message_code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7281 | severity_ = 0; |
| 7282 | _internal_metadata_.Clear(); |
| 7283 | } |
| 7284 | |
| 7285 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7286 | const char* GenericEventInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 7287 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7288 | auto msg = static_cast<GenericEventInfo*>(object); |
| 7289 | ::google::protobuf::int32 size; (void)size; |
| 7290 | int depth; (void)depth; |
| 7291 | ::google::protobuf::uint32 tag; |
| 7292 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7293 | auto ptr = begin; |
| 7294 | while (ptr < end) { |
| 7295 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7296 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7297 | switch (tag >> 3) { |
| 7298 | // string message = 1; |
| 7299 | case 1: { |
| 7300 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7301 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7302 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7303 | ctx->extra_parse_data().SetFieldName("dmi.GenericEventInfo.message"); |
| 7304 | object = msg->mutable_message(); |
| 7305 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7306 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7307 | goto string_till_end; |
| 7308 | } |
| 7309 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7310 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7311 | ptr += size; |
| 7312 | break; |
| 7313 | } |
| 7314 | // string message_code = 2; |
| 7315 | case 2: { |
| 7316 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 7317 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7318 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7319 | ctx->extra_parse_data().SetFieldName("dmi.GenericEventInfo.message_code"); |
| 7320 | object = msg->mutable_message_code(); |
| 7321 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7322 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7323 | goto string_till_end; |
| 7324 | } |
| 7325 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7326 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7327 | ptr += size; |
| 7328 | break; |
| 7329 | } |
| 7330 | // .dmi.GenericEventInfo.EventSeverity severity = 3; |
| 7331 | case 3: { |
| 7332 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 7333 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7334 | msg->set_severity(static_cast<::dmi::GenericEventInfo_EventSeverity>(val)); |
| 7335 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7336 | break; |
| 7337 | } |
| 7338 | default: { |
| 7339 | handle_unusual: |
| 7340 | if ((tag & 7) == 4 || tag == 0) { |
| 7341 | ctx->EndGroup(tag); |
| 7342 | return ptr; |
| 7343 | } |
| 7344 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7345 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7346 | ptr = res.first; |
| 7347 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7348 | if (res.second) return ptr; |
| 7349 | } |
| 7350 | } // switch |
| 7351 | } // while |
| 7352 | return ptr; |
| 7353 | string_till_end: |
| 7354 | static_cast<::std::string*>(object)->clear(); |
| 7355 | static_cast<::std::string*>(object)->reserve(size); |
| 7356 | goto len_delim_till_end; |
| 7357 | len_delim_till_end: |
| 7358 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7359 | {parser_till_end, object}, size); |
| 7360 | } |
| 7361 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7362 | bool GenericEventInfo::MergePartialFromCodedStream( |
| 7363 | ::google::protobuf::io::CodedInputStream* input) { |
| 7364 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7365 | ::google::protobuf::uint32 tag; |
| 7366 | // @@protoc_insertion_point(parse_start:dmi.GenericEventInfo) |
| 7367 | for (;;) { |
| 7368 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7369 | tag = p.first; |
| 7370 | if (!p.second) goto handle_unusual; |
| 7371 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7372 | // string message = 1; |
| 7373 | case 1: { |
| 7374 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7375 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7376 | input, this->mutable_message())); |
| 7377 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7378 | this->message().data(), static_cast<int>(this->message().length()), |
| 7379 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7380 | "dmi.GenericEventInfo.message")); |
| 7381 | } else { |
| 7382 | goto handle_unusual; |
| 7383 | } |
| 7384 | break; |
| 7385 | } |
| 7386 | |
| 7387 | // string message_code = 2; |
| 7388 | case 2: { |
| 7389 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 7390 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7391 | input, this->mutable_message_code())); |
| 7392 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7393 | this->message_code().data(), static_cast<int>(this->message_code().length()), |
| 7394 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7395 | "dmi.GenericEventInfo.message_code")); |
| 7396 | } else { |
| 7397 | goto handle_unusual; |
| 7398 | } |
| 7399 | break; |
| 7400 | } |
| 7401 | |
| 7402 | // .dmi.GenericEventInfo.EventSeverity severity = 3; |
| 7403 | case 3: { |
| 7404 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 7405 | int value = 0; |
| 7406 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7407 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7408 | input, &value))); |
| 7409 | set_severity(static_cast< ::dmi::GenericEventInfo_EventSeverity >(value)); |
| 7410 | } else { |
| 7411 | goto handle_unusual; |
| 7412 | } |
| 7413 | break; |
| 7414 | } |
| 7415 | |
| 7416 | default: { |
| 7417 | handle_unusual: |
| 7418 | if (tag == 0) { |
| 7419 | goto success; |
| 7420 | } |
| 7421 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7422 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7423 | break; |
| 7424 | } |
| 7425 | } |
| 7426 | } |
| 7427 | success: |
| 7428 | // @@protoc_insertion_point(parse_success:dmi.GenericEventInfo) |
| 7429 | return true; |
| 7430 | failure: |
| 7431 | // @@protoc_insertion_point(parse_failure:dmi.GenericEventInfo) |
| 7432 | return false; |
| 7433 | #undef DO_ |
| 7434 | } |
| 7435 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7436 | |
| 7437 | void GenericEventInfo::SerializeWithCachedSizes( |
| 7438 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7439 | // @@protoc_insertion_point(serialize_start:dmi.GenericEventInfo) |
| 7440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7441 | (void) cached_has_bits; |
| 7442 | |
| 7443 | // string message = 1; |
| 7444 | if (this->message().size() > 0) { |
| 7445 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7446 | this->message().data(), static_cast<int>(this->message().length()), |
| 7447 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7448 | "dmi.GenericEventInfo.message"); |
| 7449 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7450 | 1, this->message(), output); |
| 7451 | } |
| 7452 | |
| 7453 | // string message_code = 2; |
| 7454 | if (this->message_code().size() > 0) { |
| 7455 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7456 | this->message_code().data(), static_cast<int>(this->message_code().length()), |
| 7457 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7458 | "dmi.GenericEventInfo.message_code"); |
| 7459 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7460 | 2, this->message_code(), output); |
| 7461 | } |
| 7462 | |
| 7463 | // .dmi.GenericEventInfo.EventSeverity severity = 3; |
| 7464 | if (this->severity() != 0) { |
| 7465 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7466 | 3, this->severity(), output); |
| 7467 | } |
| 7468 | |
| 7469 | if (_internal_metadata_.have_unknown_fields()) { |
| 7470 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7471 | _internal_metadata_.unknown_fields(), output); |
| 7472 | } |
| 7473 | // @@protoc_insertion_point(serialize_end:dmi.GenericEventInfo) |
| 7474 | } |
| 7475 | |
| 7476 | ::google::protobuf::uint8* GenericEventInfo::InternalSerializeWithCachedSizesToArray( |
| 7477 | ::google::protobuf::uint8* target) const { |
| 7478 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GenericEventInfo) |
| 7479 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7480 | (void) cached_has_bits; |
| 7481 | |
| 7482 | // string message = 1; |
| 7483 | if (this->message().size() > 0) { |
| 7484 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7485 | this->message().data(), static_cast<int>(this->message().length()), |
| 7486 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7487 | "dmi.GenericEventInfo.message"); |
| 7488 | target = |
| 7489 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7490 | 1, this->message(), target); |
| 7491 | } |
| 7492 | |
| 7493 | // string message_code = 2; |
| 7494 | if (this->message_code().size() > 0) { |
| 7495 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7496 | this->message_code().data(), static_cast<int>(this->message_code().length()), |
| 7497 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7498 | "dmi.GenericEventInfo.message_code"); |
| 7499 | target = |
| 7500 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7501 | 2, this->message_code(), target); |
| 7502 | } |
| 7503 | |
| 7504 | // .dmi.GenericEventInfo.EventSeverity severity = 3; |
| 7505 | if (this->severity() != 0) { |
| 7506 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7507 | 3, this->severity(), target); |
| 7508 | } |
| 7509 | |
| 7510 | if (_internal_metadata_.have_unknown_fields()) { |
| 7511 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7512 | _internal_metadata_.unknown_fields(), target); |
| 7513 | } |
| 7514 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GenericEventInfo) |
| 7515 | return target; |
| 7516 | } |
| 7517 | |
| 7518 | size_t GenericEventInfo::ByteSizeLong() const { |
| 7519 | // @@protoc_insertion_point(message_byte_size_start:dmi.GenericEventInfo) |
| 7520 | size_t total_size = 0; |
| 7521 | |
| 7522 | if (_internal_metadata_.have_unknown_fields()) { |
| 7523 | total_size += |
| 7524 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7525 | _internal_metadata_.unknown_fields()); |
| 7526 | } |
| 7527 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7528 | // Prevent compiler warnings about cached_has_bits being unused |
| 7529 | (void) cached_has_bits; |
| 7530 | |
| 7531 | // string message = 1; |
| 7532 | if (this->message().size() > 0) { |
| 7533 | total_size += 1 + |
| 7534 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7535 | this->message()); |
| 7536 | } |
| 7537 | |
| 7538 | // string message_code = 2; |
| 7539 | if (this->message_code().size() > 0) { |
| 7540 | total_size += 1 + |
| 7541 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7542 | this->message_code()); |
| 7543 | } |
| 7544 | |
| 7545 | // .dmi.GenericEventInfo.EventSeverity severity = 3; |
| 7546 | if (this->severity() != 0) { |
| 7547 | total_size += 1 + |
| 7548 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->severity()); |
| 7549 | } |
| 7550 | |
| 7551 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7552 | SetCachedSize(cached_size); |
| 7553 | return total_size; |
| 7554 | } |
| 7555 | |
| 7556 | void GenericEventInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 7557 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GenericEventInfo) |
| 7558 | GOOGLE_DCHECK_NE(&from, this); |
| 7559 | const GenericEventInfo* source = |
| 7560 | ::google::protobuf::DynamicCastToGenerated<GenericEventInfo>( |
| 7561 | &from); |
| 7562 | if (source == nullptr) { |
| 7563 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GenericEventInfo) |
| 7564 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7565 | } else { |
| 7566 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GenericEventInfo) |
| 7567 | MergeFrom(*source); |
| 7568 | } |
| 7569 | } |
| 7570 | |
| 7571 | void GenericEventInfo::MergeFrom(const GenericEventInfo& from) { |
| 7572 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GenericEventInfo) |
| 7573 | GOOGLE_DCHECK_NE(&from, this); |
| 7574 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7575 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7576 | (void) cached_has_bits; |
| 7577 | |
| 7578 | if (from.message().size() > 0) { |
| 7579 | |
| 7580 | message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); |
| 7581 | } |
| 7582 | if (from.message_code().size() > 0) { |
| 7583 | |
| 7584 | message_code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_code_); |
| 7585 | } |
| 7586 | if (from.severity() != 0) { |
| 7587 | set_severity(from.severity()); |
| 7588 | } |
| 7589 | } |
| 7590 | |
| 7591 | void GenericEventInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 7592 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GenericEventInfo) |
| 7593 | if (&from == this) return; |
| 7594 | Clear(); |
| 7595 | MergeFrom(from); |
| 7596 | } |
| 7597 | |
| 7598 | void GenericEventInfo::CopyFrom(const GenericEventInfo& from) { |
| 7599 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GenericEventInfo) |
| 7600 | if (&from == this) return; |
| 7601 | Clear(); |
| 7602 | MergeFrom(from); |
| 7603 | } |
| 7604 | |
| 7605 | bool GenericEventInfo::IsInitialized() const { |
| 7606 | return true; |
| 7607 | } |
| 7608 | |
| 7609 | void GenericEventInfo::Swap(GenericEventInfo* other) { |
| 7610 | if (other == this) return; |
| 7611 | InternalSwap(other); |
| 7612 | } |
| 7613 | void GenericEventInfo::InternalSwap(GenericEventInfo* other) { |
| 7614 | using std::swap; |
| 7615 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7616 | message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7617 | GetArenaNoVirtual()); |
| 7618 | message_code_.Swap(&other->message_code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7619 | GetArenaNoVirtual()); |
| 7620 | swap(severity_, other->severity_); |
| 7621 | } |
| 7622 | |
| 7623 | ::google::protobuf::Metadata GenericEventInfo::GetMetadata() const { |
| 7624 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 7625 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 7626 | } |
| 7627 | |
| 7628 | |
| 7629 | // =================================================================== |
| 7630 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7631 | void Event::InitAsDefaultInstance() { |
| 7632 | ::dmi::_Event_default_instance_._instance.get_mutable()->event_metadata_ = const_cast< ::dmi::EventMetaData*>( |
| 7633 | ::dmi::EventMetaData::internal_default_instance()); |
| 7634 | ::dmi::_Event_default_instance_._instance.get_mutable()->raised_ts_ = const_cast< ::google::protobuf::Timestamp*>( |
| 7635 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 7636 | ::dmi::_Event_default_instance_._instance.get_mutable()->threshold_info_ = const_cast< ::dmi::ThresholdInformation*>( |
| 7637 | ::dmi::ThresholdInformation::internal_default_instance()); |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7638 | ::dmi::_Event_default_instance_._instance.get_mutable()->state_change_info_ = const_cast< ::dmi::StateChangeInfo*>( |
| 7639 | ::dmi::StateChangeInfo::internal_default_instance()); |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7640 | ::dmi::_Event_default_instance_._instance.get_mutable()->generic_event_info_ = const_cast< ::dmi::GenericEventInfo*>( |
| 7641 | ::dmi::GenericEventInfo::internal_default_instance()); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7642 | } |
| 7643 | class Event::HasBitSetters { |
| 7644 | public: |
| 7645 | static const ::dmi::EventMetaData& event_metadata(const Event* msg); |
| 7646 | static const ::google::protobuf::Timestamp& raised_ts(const Event* msg); |
| 7647 | static const ::dmi::ThresholdInformation& threshold_info(const Event* msg); |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7648 | static const ::dmi::StateChangeInfo& state_change_info(const Event* msg); |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7649 | static const ::dmi::GenericEventInfo& generic_event_info(const Event* msg); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7650 | }; |
| 7651 | |
| 7652 | const ::dmi::EventMetaData& |
| 7653 | Event::HasBitSetters::event_metadata(const Event* msg) { |
| 7654 | return *msg->event_metadata_; |
| 7655 | } |
| 7656 | const ::google::protobuf::Timestamp& |
| 7657 | Event::HasBitSetters::raised_ts(const Event* msg) { |
| 7658 | return *msg->raised_ts_; |
| 7659 | } |
| 7660 | const ::dmi::ThresholdInformation& |
| 7661 | Event::HasBitSetters::threshold_info(const Event* msg) { |
| 7662 | return *msg->threshold_info_; |
| 7663 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7664 | const ::dmi::StateChangeInfo& |
| 7665 | Event::HasBitSetters::state_change_info(const Event* msg) { |
| 7666 | return *msg->state_change_info_; |
| 7667 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7668 | const ::dmi::GenericEventInfo& |
| 7669 | Event::HasBitSetters::generic_event_info(const Event* msg) { |
| 7670 | return *msg->generic_event_info_; |
| 7671 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7672 | void Event::clear_raised_ts() { |
| 7673 | if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) { |
| 7674 | delete raised_ts_; |
| 7675 | } |
| 7676 | raised_ts_ = nullptr; |
| 7677 | } |
| 7678 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7679 | const int Event::kEventMetadataFieldNumber; |
| 7680 | const int Event::kEventIdFieldNumber; |
| 7681 | const int Event::kRaisedTsFieldNumber; |
| 7682 | const int Event::kThresholdInfoFieldNumber; |
| 7683 | const int Event::kAddInfoFieldNumber; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7684 | const int Event::kStateChangeInfoFieldNumber; |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7685 | const int Event::kGenericEventInfoFieldNumber; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7686 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7687 | |
| 7688 | Event::Event() |
| 7689 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7690 | SharedCtor(); |
| 7691 | // @@protoc_insertion_point(constructor:dmi.Event) |
| 7692 | } |
| 7693 | Event::Event(const Event& from) |
| 7694 | : ::google::protobuf::Message(), |
| 7695 | _internal_metadata_(nullptr) { |
| 7696 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7697 | add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7698 | if (from.add_info().size() > 0) { |
| 7699 | add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_); |
| 7700 | } |
| 7701 | if (from.has_event_metadata()) { |
| 7702 | event_metadata_ = new ::dmi::EventMetaData(*from.event_metadata_); |
| 7703 | } else { |
| 7704 | event_metadata_ = nullptr; |
| 7705 | } |
| 7706 | if (from.has_raised_ts()) { |
| 7707 | raised_ts_ = new ::google::protobuf::Timestamp(*from.raised_ts_); |
| 7708 | } else { |
| 7709 | raised_ts_ = nullptr; |
| 7710 | } |
| 7711 | if (from.has_threshold_info()) { |
| 7712 | threshold_info_ = new ::dmi::ThresholdInformation(*from.threshold_info_); |
| 7713 | } else { |
| 7714 | threshold_info_ = nullptr; |
| 7715 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7716 | if (from.has_state_change_info()) { |
| 7717 | state_change_info_ = new ::dmi::StateChangeInfo(*from.state_change_info_); |
| 7718 | } else { |
| 7719 | state_change_info_ = nullptr; |
| 7720 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7721 | if (from.has_generic_event_info()) { |
| 7722 | generic_event_info_ = new ::dmi::GenericEventInfo(*from.generic_event_info_); |
| 7723 | } else { |
| 7724 | generic_event_info_ = nullptr; |
| 7725 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7726 | event_id_ = from.event_id_; |
| 7727 | // @@protoc_insertion_point(copy_constructor:dmi.Event) |
| 7728 | } |
| 7729 | |
| 7730 | void Event::SharedCtor() { |
| 7731 | ::google::protobuf::internal::InitSCC( |
| 7732 | &scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 7733 | add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7734 | ::memset(&event_metadata_, 0, static_cast<size_t>( |
| 7735 | reinterpret_cast<char*>(&event_id_) - |
| 7736 | reinterpret_cast<char*>(&event_metadata_)) + sizeof(event_id_)); |
| 7737 | } |
| 7738 | |
| 7739 | Event::~Event() { |
| 7740 | // @@protoc_insertion_point(destructor:dmi.Event) |
| 7741 | SharedDtor(); |
| 7742 | } |
| 7743 | |
| 7744 | void Event::SharedDtor() { |
| 7745 | add_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7746 | if (this != internal_default_instance()) delete event_metadata_; |
| 7747 | if (this != internal_default_instance()) delete raised_ts_; |
| 7748 | if (this != internal_default_instance()) delete threshold_info_; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7749 | if (this != internal_default_instance()) delete state_change_info_; |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7750 | if (this != internal_default_instance()) delete generic_event_info_; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7751 | } |
| 7752 | |
| 7753 | void Event::SetCachedSize(int size) const { |
| 7754 | _cached_size_.Set(size); |
| 7755 | } |
| 7756 | const Event& Event::default_instance() { |
| 7757 | ::google::protobuf::internal::InitSCC(&::scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base); |
| 7758 | return *internal_default_instance(); |
| 7759 | } |
| 7760 | |
| 7761 | |
| 7762 | void Event::Clear() { |
| 7763 | // @@protoc_insertion_point(message_clear_start:dmi.Event) |
| 7764 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7765 | // Prevent compiler warnings about cached_has_bits being unused |
| 7766 | (void) cached_has_bits; |
| 7767 | |
| 7768 | add_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7769 | if (GetArenaNoVirtual() == nullptr && event_metadata_ != nullptr) { |
| 7770 | delete event_metadata_; |
| 7771 | } |
| 7772 | event_metadata_ = nullptr; |
| 7773 | if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) { |
| 7774 | delete raised_ts_; |
| 7775 | } |
| 7776 | raised_ts_ = nullptr; |
| 7777 | if (GetArenaNoVirtual() == nullptr && threshold_info_ != nullptr) { |
| 7778 | delete threshold_info_; |
| 7779 | } |
| 7780 | threshold_info_ = nullptr; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7781 | if (GetArenaNoVirtual() == nullptr && state_change_info_ != nullptr) { |
| 7782 | delete state_change_info_; |
| 7783 | } |
| 7784 | state_change_info_ = nullptr; |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7785 | if (GetArenaNoVirtual() == nullptr && generic_event_info_ != nullptr) { |
| 7786 | delete generic_event_info_; |
| 7787 | } |
| 7788 | generic_event_info_ = nullptr; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7789 | event_id_ = 0; |
| 7790 | _internal_metadata_.Clear(); |
| 7791 | } |
| 7792 | |
| 7793 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7794 | const char* Event::_InternalParse(const char* begin, const char* end, void* object, |
| 7795 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7796 | auto msg = static_cast<Event*>(object); |
| 7797 | ::google::protobuf::int32 size; (void)size; |
| 7798 | int depth; (void)depth; |
| 7799 | ::google::protobuf::uint32 tag; |
| 7800 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7801 | auto ptr = begin; |
| 7802 | while (ptr < end) { |
| 7803 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7804 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7805 | switch (tag >> 3) { |
| 7806 | // .dmi.EventMetaData event_metadata = 1; |
| 7807 | case 1: { |
| 7808 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7809 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7810 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7811 | parser_till_end = ::dmi::EventMetaData::_InternalParse; |
| 7812 | object = msg->mutable_event_metadata(); |
| 7813 | if (size > end - ptr) goto len_delim_till_end; |
| 7814 | ptr += size; |
| 7815 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7816 | {parser_till_end, object}, ptr - size, ptr)); |
| 7817 | break; |
| 7818 | } |
| 7819 | // .dmi.EventIds event_id = 2; |
| 7820 | case 2: { |
| 7821 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 7822 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7823 | msg->set_event_id(static_cast<::dmi::EventIds>(val)); |
| 7824 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7825 | break; |
| 7826 | } |
| 7827 | // .google.protobuf.Timestamp raised_ts = 3; |
| 7828 | case 3: { |
| 7829 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7830 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7831 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7832 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 7833 | object = msg->mutable_raised_ts(); |
| 7834 | if (size > end - ptr) goto len_delim_till_end; |
| 7835 | ptr += size; |
| 7836 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7837 | {parser_till_end, object}, ptr - size, ptr)); |
| 7838 | break; |
| 7839 | } |
| 7840 | // .dmi.ThresholdInformation threshold_info = 4; |
| 7841 | case 4: { |
| 7842 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 7843 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7844 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7845 | parser_till_end = ::dmi::ThresholdInformation::_InternalParse; |
| 7846 | object = msg->mutable_threshold_info(); |
| 7847 | if (size > end - ptr) goto len_delim_till_end; |
| 7848 | ptr += size; |
| 7849 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7850 | {parser_till_end, object}, ptr - size, ptr)); |
| 7851 | break; |
| 7852 | } |
| 7853 | // string add_info = 5; |
| 7854 | case 5: { |
| 7855 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 7856 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7857 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7858 | ctx->extra_parse_data().SetFieldName("dmi.Event.add_info"); |
| 7859 | object = msg->mutable_add_info(); |
| 7860 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7861 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7862 | goto string_till_end; |
| 7863 | } |
| 7864 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7865 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7866 | ptr += size; |
| 7867 | break; |
| 7868 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7869 | // .dmi.StateChangeInfo state_change_info = 6; |
| 7870 | case 6: { |
| 7871 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 7872 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7873 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7874 | parser_till_end = ::dmi::StateChangeInfo::_InternalParse; |
| 7875 | object = msg->mutable_state_change_info(); |
| 7876 | if (size > end - ptr) goto len_delim_till_end; |
| 7877 | ptr += size; |
| 7878 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7879 | {parser_till_end, object}, ptr - size, ptr)); |
| 7880 | break; |
| 7881 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 7882 | // .dmi.GenericEventInfo generic_event_info = 7; |
| 7883 | case 7: { |
| 7884 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 7885 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7886 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7887 | parser_till_end = ::dmi::GenericEventInfo::_InternalParse; |
| 7888 | object = msg->mutable_generic_event_info(); |
| 7889 | if (size > end - ptr) goto len_delim_till_end; |
| 7890 | ptr += size; |
| 7891 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7892 | {parser_till_end, object}, ptr - size, ptr)); |
| 7893 | break; |
| 7894 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 7895 | default: { |
| 7896 | handle_unusual: |
| 7897 | if ((tag & 7) == 4 || tag == 0) { |
| 7898 | ctx->EndGroup(tag); |
| 7899 | return ptr; |
| 7900 | } |
| 7901 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7902 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7903 | ptr = res.first; |
| 7904 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7905 | if (res.second) return ptr; |
| 7906 | } |
| 7907 | } // switch |
| 7908 | } // while |
| 7909 | return ptr; |
| 7910 | string_till_end: |
| 7911 | static_cast<::std::string*>(object)->clear(); |
| 7912 | static_cast<::std::string*>(object)->reserve(size); |
| 7913 | goto len_delim_till_end; |
| 7914 | len_delim_till_end: |
| 7915 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7916 | {parser_till_end, object}, size); |
| 7917 | } |
| 7918 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7919 | bool Event::MergePartialFromCodedStream( |
| 7920 | ::google::protobuf::io::CodedInputStream* input) { |
| 7921 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7922 | ::google::protobuf::uint32 tag; |
| 7923 | // @@protoc_insertion_point(parse_start:dmi.Event) |
| 7924 | for (;;) { |
| 7925 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7926 | tag = p.first; |
| 7927 | if (!p.second) goto handle_unusual; |
| 7928 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7929 | // .dmi.EventMetaData event_metadata = 1; |
| 7930 | case 1: { |
| 7931 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7932 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7933 | input, mutable_event_metadata())); |
| 7934 | } else { |
| 7935 | goto handle_unusual; |
| 7936 | } |
| 7937 | break; |
| 7938 | } |
| 7939 | |
| 7940 | // .dmi.EventIds event_id = 2; |
| 7941 | case 2: { |
| 7942 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7943 | int value = 0; |
| 7944 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7945 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7946 | input, &value))); |
| 7947 | set_event_id(static_cast< ::dmi::EventIds >(value)); |
| 7948 | } else { |
| 7949 | goto handle_unusual; |
| 7950 | } |
| 7951 | break; |
| 7952 | } |
| 7953 | |
| 7954 | // .google.protobuf.Timestamp raised_ts = 3; |
| 7955 | case 3: { |
| 7956 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7957 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7958 | input, mutable_raised_ts())); |
| 7959 | } else { |
| 7960 | goto handle_unusual; |
| 7961 | } |
| 7962 | break; |
| 7963 | } |
| 7964 | |
| 7965 | // .dmi.ThresholdInformation threshold_info = 4; |
| 7966 | case 4: { |
| 7967 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7968 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7969 | input, mutable_threshold_info())); |
| 7970 | } else { |
| 7971 | goto handle_unusual; |
| 7972 | } |
| 7973 | break; |
| 7974 | } |
| 7975 | |
| 7976 | // string add_info = 5; |
| 7977 | case 5: { |
| 7978 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 7979 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7980 | input, this->mutable_add_info())); |
| 7981 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7982 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 7983 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7984 | "dmi.Event.add_info")); |
| 7985 | } else { |
| 7986 | goto handle_unusual; |
| 7987 | } |
| 7988 | break; |
| 7989 | } |
| 7990 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 7991 | // .dmi.StateChangeInfo state_change_info = 6; |
| 7992 | case 6: { |
| 7993 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 7994 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7995 | input, mutable_state_change_info())); |
| 7996 | } else { |
| 7997 | goto handle_unusual; |
| 7998 | } |
| 7999 | break; |
| 8000 | } |
| 8001 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8002 | // .dmi.GenericEventInfo generic_event_info = 7; |
| 8003 | case 7: { |
| 8004 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 8005 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8006 | input, mutable_generic_event_info())); |
| 8007 | } else { |
| 8008 | goto handle_unusual; |
| 8009 | } |
| 8010 | break; |
| 8011 | } |
| 8012 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8013 | default: { |
| 8014 | handle_unusual: |
| 8015 | if (tag == 0) { |
| 8016 | goto success; |
| 8017 | } |
| 8018 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8019 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8020 | break; |
| 8021 | } |
| 8022 | } |
| 8023 | } |
| 8024 | success: |
| 8025 | // @@protoc_insertion_point(parse_success:dmi.Event) |
| 8026 | return true; |
| 8027 | failure: |
| 8028 | // @@protoc_insertion_point(parse_failure:dmi.Event) |
| 8029 | return false; |
| 8030 | #undef DO_ |
| 8031 | } |
| 8032 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8033 | |
| 8034 | void Event::SerializeWithCachedSizes( |
| 8035 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8036 | // @@protoc_insertion_point(serialize_start:dmi.Event) |
| 8037 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8038 | (void) cached_has_bits; |
| 8039 | |
| 8040 | // .dmi.EventMetaData event_metadata = 1; |
| 8041 | if (this->has_event_metadata()) { |
| 8042 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8043 | 1, HasBitSetters::event_metadata(this), output); |
| 8044 | } |
| 8045 | |
| 8046 | // .dmi.EventIds event_id = 2; |
| 8047 | if (this->event_id() != 0) { |
| 8048 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8049 | 2, this->event_id(), output); |
| 8050 | } |
| 8051 | |
| 8052 | // .google.protobuf.Timestamp raised_ts = 3; |
| 8053 | if (this->has_raised_ts()) { |
| 8054 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8055 | 3, HasBitSetters::raised_ts(this), output); |
| 8056 | } |
| 8057 | |
| 8058 | // .dmi.ThresholdInformation threshold_info = 4; |
| 8059 | if (this->has_threshold_info()) { |
| 8060 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8061 | 4, HasBitSetters::threshold_info(this), output); |
| 8062 | } |
| 8063 | |
| 8064 | // string add_info = 5; |
| 8065 | if (this->add_info().size() > 0) { |
| 8066 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8067 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 8068 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8069 | "dmi.Event.add_info"); |
| 8070 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8071 | 5, this->add_info(), output); |
| 8072 | } |
| 8073 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8074 | // .dmi.StateChangeInfo state_change_info = 6; |
| 8075 | if (this->has_state_change_info()) { |
| 8076 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8077 | 6, HasBitSetters::state_change_info(this), output); |
| 8078 | } |
| 8079 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8080 | // .dmi.GenericEventInfo generic_event_info = 7; |
| 8081 | if (this->has_generic_event_info()) { |
| 8082 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8083 | 7, HasBitSetters::generic_event_info(this), output); |
| 8084 | } |
| 8085 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8086 | if (_internal_metadata_.have_unknown_fields()) { |
| 8087 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8088 | _internal_metadata_.unknown_fields(), output); |
| 8089 | } |
| 8090 | // @@protoc_insertion_point(serialize_end:dmi.Event) |
| 8091 | } |
| 8092 | |
| 8093 | ::google::protobuf::uint8* Event::InternalSerializeWithCachedSizesToArray( |
| 8094 | ::google::protobuf::uint8* target) const { |
| 8095 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Event) |
| 8096 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8097 | (void) cached_has_bits; |
| 8098 | |
| 8099 | // .dmi.EventMetaData event_metadata = 1; |
| 8100 | if (this->has_event_metadata()) { |
| 8101 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8102 | InternalWriteMessageToArray( |
| 8103 | 1, HasBitSetters::event_metadata(this), target); |
| 8104 | } |
| 8105 | |
| 8106 | // .dmi.EventIds event_id = 2; |
| 8107 | if (this->event_id() != 0) { |
| 8108 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8109 | 2, this->event_id(), target); |
| 8110 | } |
| 8111 | |
| 8112 | // .google.protobuf.Timestamp raised_ts = 3; |
| 8113 | if (this->has_raised_ts()) { |
| 8114 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8115 | InternalWriteMessageToArray( |
| 8116 | 3, HasBitSetters::raised_ts(this), target); |
| 8117 | } |
| 8118 | |
| 8119 | // .dmi.ThresholdInformation threshold_info = 4; |
| 8120 | if (this->has_threshold_info()) { |
| 8121 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8122 | InternalWriteMessageToArray( |
| 8123 | 4, HasBitSetters::threshold_info(this), target); |
| 8124 | } |
| 8125 | |
| 8126 | // string add_info = 5; |
| 8127 | if (this->add_info().size() > 0) { |
| 8128 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8129 | this->add_info().data(), static_cast<int>(this->add_info().length()), |
| 8130 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8131 | "dmi.Event.add_info"); |
| 8132 | target = |
| 8133 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8134 | 5, this->add_info(), target); |
| 8135 | } |
| 8136 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8137 | // .dmi.StateChangeInfo state_change_info = 6; |
| 8138 | if (this->has_state_change_info()) { |
| 8139 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8140 | InternalWriteMessageToArray( |
| 8141 | 6, HasBitSetters::state_change_info(this), target); |
| 8142 | } |
| 8143 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8144 | // .dmi.GenericEventInfo generic_event_info = 7; |
| 8145 | if (this->has_generic_event_info()) { |
| 8146 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8147 | InternalWriteMessageToArray( |
| 8148 | 7, HasBitSetters::generic_event_info(this), target); |
| 8149 | } |
| 8150 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8151 | if (_internal_metadata_.have_unknown_fields()) { |
| 8152 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8153 | _internal_metadata_.unknown_fields(), target); |
| 8154 | } |
| 8155 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Event) |
| 8156 | return target; |
| 8157 | } |
| 8158 | |
| 8159 | size_t Event::ByteSizeLong() const { |
| 8160 | // @@protoc_insertion_point(message_byte_size_start:dmi.Event) |
| 8161 | size_t total_size = 0; |
| 8162 | |
| 8163 | if (_internal_metadata_.have_unknown_fields()) { |
| 8164 | total_size += |
| 8165 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8166 | _internal_metadata_.unknown_fields()); |
| 8167 | } |
| 8168 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8169 | // Prevent compiler warnings about cached_has_bits being unused |
| 8170 | (void) cached_has_bits; |
| 8171 | |
| 8172 | // string add_info = 5; |
| 8173 | if (this->add_info().size() > 0) { |
| 8174 | total_size += 1 + |
| 8175 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8176 | this->add_info()); |
| 8177 | } |
| 8178 | |
| 8179 | // .dmi.EventMetaData event_metadata = 1; |
| 8180 | if (this->has_event_metadata()) { |
| 8181 | total_size += 1 + |
| 8182 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8183 | *event_metadata_); |
| 8184 | } |
| 8185 | |
| 8186 | // .google.protobuf.Timestamp raised_ts = 3; |
| 8187 | if (this->has_raised_ts()) { |
| 8188 | total_size += 1 + |
| 8189 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8190 | *raised_ts_); |
| 8191 | } |
| 8192 | |
| 8193 | // .dmi.ThresholdInformation threshold_info = 4; |
| 8194 | if (this->has_threshold_info()) { |
| 8195 | total_size += 1 + |
| 8196 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8197 | *threshold_info_); |
| 8198 | } |
| 8199 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8200 | // .dmi.StateChangeInfo state_change_info = 6; |
| 8201 | if (this->has_state_change_info()) { |
| 8202 | total_size += 1 + |
| 8203 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8204 | *state_change_info_); |
| 8205 | } |
| 8206 | |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8207 | // .dmi.GenericEventInfo generic_event_info = 7; |
| 8208 | if (this->has_generic_event_info()) { |
| 8209 | total_size += 1 + |
| 8210 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8211 | *generic_event_info_); |
| 8212 | } |
| 8213 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8214 | // .dmi.EventIds event_id = 2; |
| 8215 | if (this->event_id() != 0) { |
| 8216 | total_size += 1 + |
| 8217 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id()); |
| 8218 | } |
| 8219 | |
| 8220 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8221 | SetCachedSize(cached_size); |
| 8222 | return total_size; |
| 8223 | } |
| 8224 | |
| 8225 | void Event::MergeFrom(const ::google::protobuf::Message& from) { |
| 8226 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Event) |
| 8227 | GOOGLE_DCHECK_NE(&from, this); |
| 8228 | const Event* source = |
| 8229 | ::google::protobuf::DynamicCastToGenerated<Event>( |
| 8230 | &from); |
| 8231 | if (source == nullptr) { |
| 8232 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Event) |
| 8233 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8234 | } else { |
| 8235 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Event) |
| 8236 | MergeFrom(*source); |
| 8237 | } |
| 8238 | } |
| 8239 | |
| 8240 | void Event::MergeFrom(const Event& from) { |
| 8241 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Event) |
| 8242 | GOOGLE_DCHECK_NE(&from, this); |
| 8243 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8244 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8245 | (void) cached_has_bits; |
| 8246 | |
| 8247 | if (from.add_info().size() > 0) { |
| 8248 | |
| 8249 | add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_); |
| 8250 | } |
| 8251 | if (from.has_event_metadata()) { |
| 8252 | mutable_event_metadata()->::dmi::EventMetaData::MergeFrom(from.event_metadata()); |
| 8253 | } |
| 8254 | if (from.has_raised_ts()) { |
| 8255 | mutable_raised_ts()->::google::protobuf::Timestamp::MergeFrom(from.raised_ts()); |
| 8256 | } |
| 8257 | if (from.has_threshold_info()) { |
| 8258 | mutable_threshold_info()->::dmi::ThresholdInformation::MergeFrom(from.threshold_info()); |
| 8259 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8260 | if (from.has_state_change_info()) { |
| 8261 | mutable_state_change_info()->::dmi::StateChangeInfo::MergeFrom(from.state_change_info()); |
| 8262 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8263 | if (from.has_generic_event_info()) { |
| 8264 | mutable_generic_event_info()->::dmi::GenericEventInfo::MergeFrom(from.generic_event_info()); |
| 8265 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8266 | if (from.event_id() != 0) { |
| 8267 | set_event_id(from.event_id()); |
| 8268 | } |
| 8269 | } |
| 8270 | |
| 8271 | void Event::CopyFrom(const ::google::protobuf::Message& from) { |
| 8272 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Event) |
| 8273 | if (&from == this) return; |
| 8274 | Clear(); |
| 8275 | MergeFrom(from); |
| 8276 | } |
| 8277 | |
| 8278 | void Event::CopyFrom(const Event& from) { |
| 8279 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Event) |
| 8280 | if (&from == this) return; |
| 8281 | Clear(); |
| 8282 | MergeFrom(from); |
| 8283 | } |
| 8284 | |
| 8285 | bool Event::IsInitialized() const { |
| 8286 | return true; |
| 8287 | } |
| 8288 | |
| 8289 | void Event::Swap(Event* other) { |
| 8290 | if (other == this) return; |
| 8291 | InternalSwap(other); |
| 8292 | } |
| 8293 | void Event::InternalSwap(Event* other) { |
| 8294 | using std::swap; |
| 8295 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8296 | add_info_.Swap(&other->add_info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8297 | GetArenaNoVirtual()); |
| 8298 | swap(event_metadata_, other->event_metadata_); |
| 8299 | swap(raised_ts_, other->raised_ts_); |
| 8300 | swap(threshold_info_, other->threshold_info_); |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8301 | swap(state_change_info_, other->state_change_info_); |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8302 | swap(generic_event_info_, other->generic_event_info_); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8303 | swap(event_id_, other->event_id_); |
| 8304 | } |
| 8305 | |
| 8306 | ::google::protobuf::Metadata Event::GetMetadata() const { |
| 8307 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto); |
| 8308 | return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages]; |
| 8309 | } |
| 8310 | |
| 8311 | |
| 8312 | // @@protoc_insertion_point(namespace_scope) |
| 8313 | } // namespace dmi |
| 8314 | namespace google { |
| 8315 | namespace protobuf { |
| 8316 | template<> PROTOBUF_NOINLINE ::dmi::ValueType* Arena::CreateMaybeMessage< ::dmi::ValueType >(Arena* arena) { |
| 8317 | return Arena::CreateInternal< ::dmi::ValueType >(arena); |
| 8318 | } |
| 8319 | template<> PROTOBUF_NOINLINE ::dmi::WaterMarks* Arena::CreateMaybeMessage< ::dmi::WaterMarks >(Arena* arena) { |
| 8320 | return Arena::CreateInternal< ::dmi::WaterMarks >(arena); |
| 8321 | } |
| 8322 | template<> PROTOBUF_NOINLINE ::dmi::Thresholds* Arena::CreateMaybeMessage< ::dmi::Thresholds >(Arena* arena) { |
| 8323 | return Arena::CreateInternal< ::dmi::Thresholds >(arena); |
| 8324 | } |
| 8325 | template<> PROTOBUF_NOINLINE ::dmi::ThresholdInformation* Arena::CreateMaybeMessage< ::dmi::ThresholdInformation >(Arena* arena) { |
| 8326 | return Arena::CreateInternal< ::dmi::ThresholdInformation >(arena); |
| 8327 | } |
| 8328 | template<> PROTOBUF_NOINLINE ::dmi::EventCfg* Arena::CreateMaybeMessage< ::dmi::EventCfg >(Arena* arena) { |
| 8329 | return Arena::CreateInternal< ::dmi::EventCfg >(arena); |
| 8330 | } |
| 8331 | template<> PROTOBUF_NOINLINE ::dmi::EventsCfg* Arena::CreateMaybeMessage< ::dmi::EventsCfg >(Arena* arena) { |
| 8332 | return Arena::CreateInternal< ::dmi::EventsCfg >(arena); |
| 8333 | } |
| 8334 | template<> PROTOBUF_NOINLINE ::dmi::ListEventsResponse* Arena::CreateMaybeMessage< ::dmi::ListEventsResponse >(Arena* arena) { |
| 8335 | return Arena::CreateInternal< ::dmi::ListEventsResponse >(arena); |
| 8336 | } |
| 8337 | template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationRequest* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationRequest >(Arena* arena) { |
| 8338 | return Arena::CreateInternal< ::dmi::EventsConfigurationRequest >(arena); |
| 8339 | } |
| 8340 | template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationResponse* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationResponse >(Arena* arena) { |
| 8341 | return Arena::CreateInternal< ::dmi::EventsConfigurationResponse >(arena); |
| 8342 | } |
| 8343 | template<> PROTOBUF_NOINLINE ::dmi::EventMetaData* Arena::CreateMaybeMessage< ::dmi::EventMetaData >(Arena* arena) { |
| 8344 | return Arena::CreateInternal< ::dmi::EventMetaData >(arena); |
| 8345 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 8346 | template<> PROTOBUF_NOINLINE ::dmi::AdminStateChange* Arena::CreateMaybeMessage< ::dmi::AdminStateChange >(Arena* arena) { |
| 8347 | return Arena::CreateInternal< ::dmi::AdminStateChange >(arena); |
| 8348 | } |
| 8349 | template<> PROTOBUF_NOINLINE ::dmi::OperStateChange* Arena::CreateMaybeMessage< ::dmi::OperStateChange >(Arena* arena) { |
| 8350 | return Arena::CreateInternal< ::dmi::OperStateChange >(arena); |
| 8351 | } |
| 8352 | template<> PROTOBUF_NOINLINE ::dmi::AlarmStateChange* Arena::CreateMaybeMessage< ::dmi::AlarmStateChange >(Arena* arena) { |
| 8353 | return Arena::CreateInternal< ::dmi::AlarmStateChange >(arena); |
| 8354 | } |
| 8355 | template<> PROTOBUF_NOINLINE ::dmi::UsageStateChange* Arena::CreateMaybeMessage< ::dmi::UsageStateChange >(Arena* arena) { |
| 8356 | return Arena::CreateInternal< ::dmi::UsageStateChange >(arena); |
| 8357 | } |
| 8358 | template<> PROTOBUF_NOINLINE ::dmi::StandbyStateChange* Arena::CreateMaybeMessage< ::dmi::StandbyStateChange >(Arena* arena) { |
| 8359 | return Arena::CreateInternal< ::dmi::StandbyStateChange >(arena); |
| 8360 | } |
| 8361 | template<> PROTOBUF_NOINLINE ::dmi::StateChangeInfo* Arena::CreateMaybeMessage< ::dmi::StateChangeInfo >(Arena* arena) { |
| 8362 | return Arena::CreateInternal< ::dmi::StateChangeInfo >(arena); |
| 8363 | } |
| Amit Ghosh | d0151a3 | 2025-10-03 10:53:14 +0200 | [diff] [blame^] | 8364 | template<> PROTOBUF_NOINLINE ::dmi::GenericEventInfo* Arena::CreateMaybeMessage< ::dmi::GenericEventInfo >(Arena* arena) { |
| 8365 | return Arena::CreateInternal< ::dmi::GenericEventInfo >(arena); |
| 8366 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8367 | template<> PROTOBUF_NOINLINE ::dmi::Event* Arena::CreateMaybeMessage< ::dmi::Event >(Arena* arena) { |
| 8368 | return Arena::CreateInternal< ::dmi::Event >(arena); |
| 8369 | } |
| 8370 | } // namespace protobuf |
| 8371 | } // namespace google |
| 8372 | |
| 8373 | // @@protoc_insertion_point(global_scope) |
| 8374 | #include <google/protobuf/port_undef.inc> |