blob: 9a534e60667877c2548d3ed3d8c64aa7050f0244 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// 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
19extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
Amit Ghoshe45d9972025-06-26 14:52:48 +020020extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053025extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053026extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
29extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
amit.ghosh7a093bd2023-03-07 16:31:56 +010030extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053031extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
Amit Ghoshe45d9972025-06-26 14:52:48 +020032extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053033extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto;
34namespace dmi {
35class ValueTypeDefaultTypeInternal {
36 public:
37 ::google::protobuf::internal::ExplicitlyConstructed<ValueType> _instance;
38 ::google::protobuf::int64 int_val_;
39 ::google::protobuf::uint64 uint_val_;
40 float float_val_;
41} _ValueType_default_instance_;
42class WaterMarksDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<WaterMarks> _instance;
45} _WaterMarks_default_instance_;
46class ThresholdsDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<Thresholds> _instance;
49 const ::dmi::WaterMarks* upper_;
50 const ::dmi::WaterMarks* lower_;
51} _Thresholds_default_instance_;
52class ThresholdInformationDefaultTypeInternal {
53 public:
54 ::google::protobuf::internal::ExplicitlyConstructed<ThresholdInformation> _instance;
55} _ThresholdInformation_default_instance_;
56class EventCfgDefaultTypeInternal {
57 public:
58 ::google::protobuf::internal::ExplicitlyConstructed<EventCfg> _instance;
59} _EventCfg_default_instance_;
60class EventsCfgDefaultTypeInternal {
61 public:
62 ::google::protobuf::internal::ExplicitlyConstructed<EventsCfg> _instance;
63} _EventsCfg_default_instance_;
64class ListEventsResponseDefaultTypeInternal {
65 public:
66 ::google::protobuf::internal::ExplicitlyConstructed<ListEventsResponse> _instance;
67} _ListEventsResponse_default_instance_;
68class EventsConfigurationRequestDefaultTypeInternal {
69 public:
70 ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationRequest> _instance;
71 const ::dmi::EventsCfg* changes_;
72 bool reset_to_default_;
73} _EventsConfigurationRequest_default_instance_;
74class EventsConfigurationResponseDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<EventsConfigurationResponse> _instance;
77} _EventsConfigurationResponse_default_instance_;
78class EventMetaDataDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<EventMetaData> _instance;
81} _EventMetaData_default_instance_;
Amit Ghoshe45d9972025-06-26 14:52:48 +020082class AdminStateChangeDefaultTypeInternal {
83 public:
84 ::google::protobuf::internal::ExplicitlyConstructed<AdminStateChange> _instance;
85} _AdminStateChange_default_instance_;
86class OperStateChangeDefaultTypeInternal {
87 public:
88 ::google::protobuf::internal::ExplicitlyConstructed<OperStateChange> _instance;
89} _OperStateChange_default_instance_;
90class AlarmStateChangeDefaultTypeInternal {
91 public:
92 ::google::protobuf::internal::ExplicitlyConstructed<AlarmStateChange> _instance;
93} _AlarmStateChange_default_instance_;
94class UsageStateChangeDefaultTypeInternal {
95 public:
96 ::google::protobuf::internal::ExplicitlyConstructed<UsageStateChange> _instance;
97} _UsageStateChange_default_instance_;
98class StandbyStateChangeDefaultTypeInternal {
99 public:
100 ::google::protobuf::internal::ExplicitlyConstructed<StandbyStateChange> _instance;
101} _StandbyStateChange_default_instance_;
102class StateChangeInfoDefaultTypeInternal {
103 public:
104 ::google::protobuf::internal::ExplicitlyConstructed<StateChangeInfo> _instance;
105 const ::dmi::AdminStateChange* admin_state_change_;
106 const ::dmi::OperStateChange* oper_state_change_;
107 const ::dmi::AlarmStateChange* alarm_state_change_;
108 const ::dmi::UsageStateChange* usage_state_change_;
109 const ::dmi::StandbyStateChange* standby_state_change_;
110} _StateChangeInfo_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530111class EventDefaultTypeInternal {
112 public:
113 ::google::protobuf::internal::ExplicitlyConstructed<Event> _instance;
114} _Event_default_instance_;
115} // namespace dmi
116static void InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
117 GOOGLE_PROTOBUF_VERIFY_VERSION;
118
119 {
120 void* ptr = &::dmi::_ValueType_default_instance_;
121 new (ptr) ::dmi::ValueType();
122 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
123 }
124 ::dmi::ValueType::InitAsDefaultInstance();
125}
126
127::google::protobuf::internal::SCCInfo<0> scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
128 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
129
130static void InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
131 GOOGLE_PROTOBUF_VERIFY_VERSION;
132
133 {
134 void* ptr = &::dmi::_WaterMarks_default_instance_;
135 new (ptr) ::dmi::WaterMarks();
136 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
137 }
138 ::dmi::WaterMarks::InitAsDefaultInstance();
139}
140
141::google::protobuf::internal::SCCInfo<1> scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
142 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
143 &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
144
145static void InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
146 GOOGLE_PROTOBUF_VERIFY_VERSION;
147
148 {
149 void* ptr = &::dmi::_Thresholds_default_instance_;
150 new (ptr) ::dmi::Thresholds();
151 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
152 }
153 ::dmi::Thresholds::InitAsDefaultInstance();
154}
155
156::google::protobuf::internal::SCCInfo<1> scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
157 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsThresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
158 &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
159
160static void InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
161 GOOGLE_PROTOBUF_VERIFY_VERSION;
162
163 {
164 void* ptr = &::dmi::_ThresholdInformation_default_instance_;
165 new (ptr) ::dmi::ThresholdInformation();
166 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
167 }
168 ::dmi::ThresholdInformation::InitAsDefaultInstance();
169}
170
171::google::protobuf::internal::SCCInfo<2> scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
172 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
173 &scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
174 &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
175
176static void InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
177 GOOGLE_PROTOBUF_VERIFY_VERSION;
178
179 {
180 void* ptr = &::dmi::_EventCfg_default_instance_;
181 new (ptr) ::dmi::EventCfg();
182 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
183 }
184 ::dmi::EventCfg::InitAsDefaultInstance();
185}
186
amit.ghosh7a093bd2023-03-07 16:31:56 +0100187::google::protobuf::internal::SCCInfo<2> scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
188 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
189 &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
190 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530191
192static void InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
193 GOOGLE_PROTOBUF_VERIFY_VERSION;
194
195 {
196 void* ptr = &::dmi::_EventsCfg_default_instance_;
197 new (ptr) ::dmi::EventsCfg();
198 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
199 }
200 ::dmi::EventsCfg::InitAsDefaultInstance();
201}
202
203::google::protobuf::internal::SCCInfo<1> scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
204 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
205 &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
206
207static void InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
208 GOOGLE_PROTOBUF_VERIFY_VERSION;
209
210 {
211 void* ptr = &::dmi::_ListEventsResponse_default_instance_;
212 new (ptr) ::dmi::ListEventsResponse();
213 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
214 }
215 ::dmi::ListEventsResponse::InitAsDefaultInstance();
216}
217
218::google::protobuf::internal::SCCInfo<1> scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
219 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
220 &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
221
222static void InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
223 GOOGLE_PROTOBUF_VERIFY_VERSION;
224
225 {
226 void* ptr = &::dmi::_EventsConfigurationRequest_default_instance_;
227 new (ptr) ::dmi::EventsConfigurationRequest();
228 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
229 }
230 ::dmi::EventsConfigurationRequest::InitAsDefaultInstance();
231}
232
233::google::protobuf::internal::SCCInfo<2> scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
234 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
235 &scc_info_Uuid_dmi_2fhw_2eproto.base,
236 &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
237
238static void InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
239 GOOGLE_PROTOBUF_VERIFY_VERSION;
240
241 {
242 void* ptr = &::dmi::_EventsConfigurationResponse_default_instance_;
243 new (ptr) ::dmi::EventsConfigurationResponse();
244 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
245 }
246 ::dmi::EventsConfigurationResponse::InitAsDefaultInstance();
247}
248
249::google::protobuf::internal::SCCInfo<0> scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
250 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
251
252static void InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
253 GOOGLE_PROTOBUF_VERIFY_VERSION;
254
255 {
256 void* ptr = &::dmi::_EventMetaData_default_instance_;
257 new (ptr) ::dmi::EventMetaData();
258 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
259 }
260 ::dmi::EventMetaData::InitAsDefaultInstance();
261}
262
263::google::protobuf::internal::SCCInfo<1> scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
264 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
265 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
266
Amit Ghoshe45d9972025-06-26 14:52:48 +0200267static void InitDefaultsAdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
268 GOOGLE_PROTOBUF_VERIFY_VERSION;
269
270 {
271 void* ptr = &::dmi::_AdminStateChange_default_instance_;
272 new (ptr) ::dmi::AdminStateChange();
273 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
274 }
275 ::dmi::AdminStateChange::InitAsDefaultInstance();
276}
277
278::google::protobuf::internal::SCCInfo<0> scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
279 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
280
281static void InitDefaultsOperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
282 GOOGLE_PROTOBUF_VERIFY_VERSION;
283
284 {
285 void* ptr = &::dmi::_OperStateChange_default_instance_;
286 new (ptr) ::dmi::OperStateChange();
287 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
288 }
289 ::dmi::OperStateChange::InitAsDefaultInstance();
290}
291
292::google::protobuf::internal::SCCInfo<0> scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
293 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
294
295static void InitDefaultsAlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
296 GOOGLE_PROTOBUF_VERIFY_VERSION;
297
298 {
299 void* ptr = &::dmi::_AlarmStateChange_default_instance_;
300 new (ptr) ::dmi::AlarmStateChange();
301 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
302 }
303 ::dmi::AlarmStateChange::InitAsDefaultInstance();
304}
305
306::google::protobuf::internal::SCCInfo<0> scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
307 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
308
309static void InitDefaultsUsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
310 GOOGLE_PROTOBUF_VERIFY_VERSION;
311
312 {
313 void* ptr = &::dmi::_UsageStateChange_default_instance_;
314 new (ptr) ::dmi::UsageStateChange();
315 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
316 }
317 ::dmi::UsageStateChange::InitAsDefaultInstance();
318}
319
320::google::protobuf::internal::SCCInfo<0> scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
321 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
322
323static void InitDefaultsStandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
324 GOOGLE_PROTOBUF_VERIFY_VERSION;
325
326 {
327 void* ptr = &::dmi::_StandbyStateChange_default_instance_;
328 new (ptr) ::dmi::StandbyStateChange();
329 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
330 }
331 ::dmi::StandbyStateChange::InitAsDefaultInstance();
332}
333
334::google::protobuf::internal::SCCInfo<0> scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
335 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {}};
336
337static void InitDefaultsStateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
338 GOOGLE_PROTOBUF_VERIFY_VERSION;
339
340 {
341 void* ptr = &::dmi::_StateChangeInfo_default_instance_;
342 new (ptr) ::dmi::StateChangeInfo();
343 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
344 }
345 ::dmi::StateChangeInfo::InitAsDefaultInstance();
346}
347
348::google::protobuf::internal::SCCInfo<5> scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
349 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsStateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
350 &scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
351 &scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
352 &scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
353 &scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
354 &scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
355
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530356static void InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
357 GOOGLE_PROTOBUF_VERIFY_VERSION;
358
359 {
360 void* ptr = &::dmi::_Event_default_instance_;
361 new (ptr) ::dmi::Event();
362 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
363 }
364 ::dmi::Event::InitAsDefaultInstance();
365}
366
Amit Ghoshe45d9972025-06-26 14:52:48 +0200367::google::protobuf::internal::SCCInfo<4> scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto =
368 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsEvent_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto}, {
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530369 &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
370 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200371 &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,
372 &scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base,}};
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530373
374void InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
375 ::google::protobuf::internal::InitSCC(&scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
376 ::google::protobuf::internal::InitSCC(&scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
377 ::google::protobuf::internal::InitSCC(&scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
378 ::google::protobuf::internal::InitSCC(&scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
379 ::google::protobuf::internal::InitSCC(&scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
380 ::google::protobuf::internal::InitSCC(&scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
381 ::google::protobuf::internal::InitSCC(&scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
382 ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
383 ::google::protobuf::internal::InitSCC(&scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
384 ::google::protobuf::internal::InitSCC(&scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
Amit Ghoshe45d9972025-06-26 14:52:48 +0200385 ::google::protobuf::internal::InitSCC(&scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
386 ::google::protobuf::internal::InitSCC(&scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
387 ::google::protobuf::internal::InitSCC(&scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
388 ::google::protobuf::internal::InitSCC(&scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
389 ::google::protobuf::internal::InitSCC(&scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
390 ::google::protobuf::internal::InitSCC(&scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530391 ::google::protobuf::internal::InitSCC(&scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
392}
393
Amit Ghoshe45d9972025-06-26 14:52:48 +0200394::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[17];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530395const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[3];
396constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = nullptr;
397
398const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
399 ~0u, // no _has_bits_
400 PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _internal_metadata_),
401 ~0u, // no _extensions_
402 PROTOBUF_FIELD_OFFSET(::dmi::ValueType, _oneof_case_[0]),
403 ~0u, // no _weak_field_map_
404 offsetof(::dmi::ValueTypeDefaultTypeInternal, int_val_),
405 offsetof(::dmi::ValueTypeDefaultTypeInternal, uint_val_),
406 offsetof(::dmi::ValueTypeDefaultTypeInternal, float_val_),
amit.ghosh93921ec2022-09-08 17:22:40 +0200407 PROTOBUF_FIELD_OFFSET(::dmi::ValueType, typeofval_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530408 PROTOBUF_FIELD_OFFSET(::dmi::ValueType, val_),
409 ~0u, // no _has_bits_
410 PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, _internal_metadata_),
411 ~0u, // no _extensions_
412 ~0u, // no _oneof_case_
413 ~0u, // no _weak_field_map_
414 PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, high_),
415 PROTOBUF_FIELD_OFFSET(::dmi::WaterMarks, low_),
416 ~0u, // no _has_bits_
417 PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _internal_metadata_),
418 ~0u, // no _extensions_
419 PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, _oneof_case_[0]),
420 ~0u, // no _weak_field_map_
421 offsetof(::dmi::ThresholdsDefaultTypeInternal, upper_),
422 offsetof(::dmi::ThresholdsDefaultTypeInternal, lower_),
423 PROTOBUF_FIELD_OFFSET(::dmi::Thresholds, threshold_),
424 ~0u, // no _has_bits_
425 PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, _internal_metadata_),
426 ~0u, // no _extensions_
427 ~0u, // no _oneof_case_
428 ~0u, // no _weak_field_map_
429 PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, observed_value_),
430 PROTOBUF_FIELD_OFFSET(::dmi::ThresholdInformation, thresholds_),
431 ~0u, // no _has_bits_
432 PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, _internal_metadata_),
433 ~0u, // no _extensions_
434 ~0u, // no _oneof_case_
435 ~0u, // no _weak_field_map_
436 PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, event_id_),
437 PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, is_configured_),
438 PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, thresholds_),
amit.ghosh7a093bd2023-03-07 16:31:56 +0100439 PROTOBUF_FIELD_OFFSET(::dmi::EventCfg, component_uuid_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530440 ~0u, // no _has_bits_
441 PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, _internal_metadata_),
442 ~0u, // no _extensions_
443 ~0u, // no _oneof_case_
444 ~0u, // no _weak_field_map_
445 PROTOBUF_FIELD_OFFSET(::dmi::EventsCfg, items_),
446 ~0u, // no _has_bits_
447 PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, _internal_metadata_),
448 ~0u, // no _extensions_
449 ~0u, // no _oneof_case_
450 ~0u, // no _weak_field_map_
451 PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, status_),
452 PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_),
453 PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, events_),
454 PROTOBUF_FIELD_OFFSET(::dmi::ListEventsResponse, reason_detail_),
455 ~0u, // no _has_bits_
456 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _internal_metadata_),
457 ~0u, // no _extensions_
458 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, _oneof_case_[0]),
459 ~0u, // no _weak_field_map_
460 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, device_uuid_),
461 offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, changes_),
462 offsetof(::dmi::EventsConfigurationRequestDefaultTypeInternal, reset_to_default_),
463 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationRequest, operation_),
464 ~0u, // no _has_bits_
465 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, _internal_metadata_),
466 ~0u, // no _extensions_
467 ~0u, // no _oneof_case_
468 ~0u, // no _weak_field_map_
469 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, status_),
470 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_),
471 PROTOBUF_FIELD_OFFSET(::dmi::EventsConfigurationResponse, reason_detail_),
472 ~0u, // no _has_bits_
473 PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, _internal_metadata_),
474 ~0u, // no _extensions_
475 ~0u, // no _oneof_case_
476 ~0u, // no _weak_field_map_
477 PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, device_uuid_),
478 PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_uuid_),
479 PROTOBUF_FIELD_OFFSET(::dmi::EventMetaData, component_name_),
480 ~0u, // no _has_bits_
Amit Ghoshe45d9972025-06-26 14:52:48 +0200481 PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, _internal_metadata_),
482 ~0u, // no _extensions_
483 ~0u, // no _oneof_case_
484 ~0u, // no _weak_field_map_
485 PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, old_),
486 PROTOBUF_FIELD_OFFSET(::dmi::AdminStateChange, new__),
487 ~0u, // no _has_bits_
488 PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, _internal_metadata_),
489 ~0u, // no _extensions_
490 ~0u, // no _oneof_case_
491 ~0u, // no _weak_field_map_
492 PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, old_),
493 PROTOBUF_FIELD_OFFSET(::dmi::OperStateChange, new__),
494 ~0u, // no _has_bits_
495 PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, _internal_metadata_),
496 ~0u, // no _extensions_
497 ~0u, // no _oneof_case_
498 ~0u, // no _weak_field_map_
499 PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, old_),
500 PROTOBUF_FIELD_OFFSET(::dmi::AlarmStateChange, new__),
501 ~0u, // no _has_bits_
502 PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, _internal_metadata_),
503 ~0u, // no _extensions_
504 ~0u, // no _oneof_case_
505 ~0u, // no _weak_field_map_
506 PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, old_),
507 PROTOBUF_FIELD_OFFSET(::dmi::UsageStateChange, new__),
508 ~0u, // no _has_bits_
509 PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, _internal_metadata_),
510 ~0u, // no _extensions_
511 ~0u, // no _oneof_case_
512 ~0u, // no _weak_field_map_
513 PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, old_),
514 PROTOBUF_FIELD_OFFSET(::dmi::StandbyStateChange, new__),
515 ~0u, // no _has_bits_
516 PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, _internal_metadata_),
517 ~0u, // no _extensions_
518 PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, _oneof_case_[0]),
519 ~0u, // no _weak_field_map_
520 offsetof(::dmi::StateChangeInfoDefaultTypeInternal, admin_state_change_),
521 offsetof(::dmi::StateChangeInfoDefaultTypeInternal, oper_state_change_),
522 offsetof(::dmi::StateChangeInfoDefaultTypeInternal, alarm_state_change_),
523 offsetof(::dmi::StateChangeInfoDefaultTypeInternal, usage_state_change_),
524 offsetof(::dmi::StateChangeInfoDefaultTypeInternal, standby_state_change_),
525 PROTOBUF_FIELD_OFFSET(::dmi::StateChangeInfo, state_change_),
526 ~0u, // no _has_bits_
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530527 PROTOBUF_FIELD_OFFSET(::dmi::Event, _internal_metadata_),
528 ~0u, // no _extensions_
529 ~0u, // no _oneof_case_
530 ~0u, // no _weak_field_map_
531 PROTOBUF_FIELD_OFFSET(::dmi::Event, event_metadata_),
532 PROTOBUF_FIELD_OFFSET(::dmi::Event, event_id_),
533 PROTOBUF_FIELD_OFFSET(::dmi::Event, raised_ts_),
534 PROTOBUF_FIELD_OFFSET(::dmi::Event, threshold_info_),
535 PROTOBUF_FIELD_OFFSET(::dmi::Event, add_info_),
Amit Ghoshe45d9972025-06-26 14:52:48 +0200536 PROTOBUF_FIELD_OFFSET(::dmi::Event, state_change_info_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530537};
538static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
539 { 0, -1, sizeof(::dmi::ValueType)},
amit.ghosh93921ec2022-09-08 17:22:40 +0200540 { 10, -1, sizeof(::dmi::WaterMarks)},
541 { 17, -1, sizeof(::dmi::Thresholds)},
542 { 25, -1, sizeof(::dmi::ThresholdInformation)},
543 { 32, -1, sizeof(::dmi::EventCfg)},
amit.ghosh7a093bd2023-03-07 16:31:56 +0100544 { 41, -1, sizeof(::dmi::EventsCfg)},
545 { 47, -1, sizeof(::dmi::ListEventsResponse)},
546 { 56, -1, sizeof(::dmi::EventsConfigurationRequest)},
amit.ghosh93921ec2022-09-08 17:22:40 +0200547 { 65, -1, sizeof(::dmi::EventsConfigurationResponse)},
548 { 73, -1, sizeof(::dmi::EventMetaData)},
Amit Ghoshe45d9972025-06-26 14:52:48 +0200549 { 81, -1, sizeof(::dmi::AdminStateChange)},
550 { 88, -1, sizeof(::dmi::OperStateChange)},
551 { 95, -1, sizeof(::dmi::AlarmStateChange)},
552 { 102, -1, sizeof(::dmi::UsageStateChange)},
553 { 109, -1, sizeof(::dmi::StandbyStateChange)},
554 { 116, -1, sizeof(::dmi::StateChangeInfo)},
555 { 127, -1, sizeof(::dmi::Event)},
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530556};
557
558static ::google::protobuf::Message const * const file_default_instances[] = {
559 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ValueType_default_instance_),
560 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_WaterMarks_default_instance_),
561 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Thresholds_default_instance_),
562 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ThresholdInformation_default_instance_),
563 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventCfg_default_instance_),
564 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsCfg_default_instance_),
565 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ListEventsResponse_default_instance_),
566 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationRequest_default_instance_),
567 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventsConfigurationResponse_default_instance_),
568 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EventMetaData_default_instance_),
Amit Ghoshe45d9972025-06-26 14:52:48 +0200569 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_AdminStateChange_default_instance_),
570 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_OperStateChange_default_instance_),
571 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_AlarmStateChange_default_instance_),
572 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_UsageStateChange_default_instance_),
573 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StandbyStateChange_default_instance_),
574 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StateChangeInfo_default_instance_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530575 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Event_default_instance_),
576};
577
578::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = {
579 {}, AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, "dmi/hw_events_mgmt_service.proto", schemas,
580 file_default_instances, TableStruct_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto::offsets,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200581 file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 17, file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530582};
583
584const char descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[] =
585 "\n dmi/hw_events_mgmt_service.proto\022\003dmi\032"
586 "\021dmi/commons.proto\032\014dmi/hw.proto\032\037google"
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530587 "/protobuf/timestamp.proto\032\033google/protob"
amit.ghosh93921ec2022-09-08 17:22:40 +0200588 "uf/empty.proto\"u\n\tValueType\022\021\n\007int_val\030\001"
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530589 " \001(\003H\000\022\022\n\010uint_val\030\002 \001(\004H\000\022\023\n\tfloat_val\030"
amit.ghosh93921ec2022-09-08 17:22:40 +0200590 "\003 \001(\002H\000\022%\n\ttypeOfVal\030\004 \001(\0162\022.dmi.DataVal"
591 "ueTypeB\005\n\003val\"G\n\nWaterMarks\022\034\n\004high\030\001 \001("
592 "\0132\016.dmi.ValueType\022\033\n\003low\030\002 \001(\0132\016.dmi.Val"
593 "ueType\"]\n\nThresholds\022 \n\005upper\030\001 \001(\0132\017.dm"
594 "i.WaterMarksH\000\022 \n\005lower\030\002 \001(\0132\017.dmi.Wate"
595 "rMarksH\000B\013\n\tthreshold\"c\n\024ThresholdInform"
596 "ation\022&\n\016observed_value\030\001 \001(\0132\016.dmi.Valu"
597 "eType\022#\n\nthresholds\030\002 \001(\0132\017.dmi.Threshol"
amit.ghosh7a093bd2023-03-07 16:31:56 +0100598 "ds\"\212\001\n\010EventCfg\022\037\n\010event_id\030\001 \001(\0162\r.dmi."
599 "EventIds\022\025\n\ris_configured\030\002 \001(\010\022#\n\nthres"
600 "holds\030\003 \001(\0132\017.dmi.Thresholds\022!\n\016componen"
601 "t_uuid\030\004 \001(\0132\t.dmi.Uuid\")\n\tEventsCfg\022\034\n\005"
602 "items\030\001 \003(\0132\r.dmi.EventCfg\"\370\001\n\022ListEvent"
603 "sResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\022."
604 "\n\006reason\030\002 \001(\0162\036.dmi.ListEventsResponse."
605 "Reason\022\036\n\006events\030\003 \001(\0132\016.dmi.EventsCfg\022\025"
606 "\n\rreason_detail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEF"
607 "INED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INT"
608 "ERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"\210\001"
609 "\n\032EventsConfigurationRequest\022\036\n\013device_u"
610 "uid\030\001 \001(\0132\t.dmi.Uuid\022!\n\007changes\030\002 \001(\0132\016."
611 "dmi.EventsCfgH\000\022\032\n\020reset_to_default\030\003 \001("
612 "\010H\000B\013\n\toperation\"\376\001\n\033EventsConfiguration"
613 "Response\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0227\n"
614 "\006reason\030\002 \001(\0162\'.dmi.EventsConfigurationR"
615 "esponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"r\n"
616 "\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN"
617 "_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\022\n\016INVALID"
618 "_CONFIG\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"j\n\rEve"
619 "ntMetaData\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uu"
620 "id\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.Uuid\022\026\n"
Amit Ghoshe45d9972025-06-26 14:52:48 +0200621 "\016component_name\030\003 \001(\t\"`\n\020AdminStateChang"
622 "e\022%\n\003old\030\001 \001(\0162\030.dmi.ComponentAdminState"
623 "\022%\n\003new\030\002 \001(\0162\030.dmi.ComponentAdminState\""
624 "]\n\017OperStateChange\022$\n\003old\030\001 \001(\0162\027.dmi.Co"
625 "mponentOperState\022$\n\003new\030\002 \001(\0162\027.dmi.Comp"
626 "onentOperState\"`\n\020AlarmStateChange\022%\n\003ol"
627 "d\030\001 \001(\0162\030.dmi.ComponentAlarmState\022%\n\003new"
628 "\030\002 \001(\0162\030.dmi.ComponentAlarmState\"`\n\020Usag"
629 "eStateChange\022%\n\003old\030\001 \001(\0162\030.dmi.Componen"
630 "tUsageState\022%\n\003new\030\002 \001(\0162\030.dmi.Component"
631 "UsageState\"f\n\022StandbyStateChange\022\'\n\003old\030"
632 "\001 \001(\0162\032.dmi.ComponentStandbyState\022\'\n\003new"
633 "\030\002 \001(\0162\032.dmi.ComponentStandbyState\"\254\002\n\017S"
634 "tateChangeInfo\0223\n\022admin_state_change\030\001 \001"
635 "(\0132\025.dmi.AdminStateChangeH\000\0221\n\021oper_stat"
636 "e_change\030\002 \001(\0132\024.dmi.OperStateChangeH\000\0223"
637 "\n\022alarm_state_change\030\003 \001(\0132\025.dmi.AlarmSt"
638 "ateChangeH\000\0223\n\022usage_state_change\030\004 \001(\0132"
639 "\025.dmi.UsageStateChangeH\000\0227\n\024standby_stat"
640 "e_change\030\005 \001(\0132\027.dmi.StandbyStateChangeH"
641 "\000B\016\n\014state_change\"\371\001\n\005Event\022*\n\016event_met"
642 "adata\030\001 \001(\0132\022.dmi.EventMetaData\022\037\n\010event"
643 "_id\030\002 \001(\0162\r.dmi.EventIds\022-\n\traised_ts\030\003 "
644 "\001(\0132\032.google.protobuf.Timestamp\0221\n\016thres"
645 "hold_info\030\004 \001(\0132\031.dmi.ThresholdInformati"
646 "on\022\020\n\010add_info\030\005 \001(\t\022/\n\021state_change_inf"
647 "o\030\006 \001(\0132\024.dmi.StateChangeInfo*\265\024\n\010EventI"
648 "ds\022\030\n\024EVENT_NAME_UNDEFINED\020\000\022\036\n\032EVENT_TR"
649 "ANSCEIVER_PLUG_OUT\020d\022\035\n\031EVENT_TRANSCEIVE"
650 "R_PLUG_IN\020e\022-\n)EVENT_TRANSCEIVER_VOLTAGE"
651 "_ABOVE_THRESHOLD\020f\022-\n)EVENT_TRANSCEIVER_"
652 "VOLTAGE_BELOW_THRESHOLD\020g\0221\n-EVENT_TRANS"
653 "CEIVER_TEMPERATURE_ABOVE_THRESHOLD\020h\0221\n-"
654 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRE"
655 "SHOLD\020i\022-\n)EVENT_TRANSCEIVER_CURRENT_ABO"
656 "VE_THRESHOLD\020j\022-\n)EVENT_TRANSCEIVER_CURR"
657 "ENT_BELOW_THRESHOLD\020k\022.\n*EVENT_TRANSCEIV"
658 "ER_RX_POWER_ABOVE_THRESHOLD\020l\022.\n*EVENT_T"
659 "RANSCEIVER_RX_POWER_BELOW_THRESHOLD\020m\022.\n"
660 "*EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESH"
661 "OLD\020n\022.\n*EVENT_TRANSCEIVER_TX_POWER_BELO"
662 "W_THRESHOLD\020o\022\035\n\031EVENT_TRANSCEIVER_FAILU"
663 "RE\020p\0227\n3EVENT_TRANSCEIVER_VOLTAGE_ABOVE_"
664 "THRESHOLD_RECOVERED\020q\0227\n3EVENT_TRANSCEIV"
665 "ER_VOLTAGE_BELOW_THRESHOLD_RECOVERED\020r\022;"
666 "\n7EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_TH"
667 "RESHOLD_RECOVERED\020s\022;\n7EVENT_TRANSCEIVER"
668 "_TEMPERATURE_BELOW_THRESHOLD_RECOVERED\020t"
669 "\0227\n3EVENT_TRANSCEIVER_CURRENT_ABOVE_THRE"
670 "SHOLD_RECOVERED\020u\0227\n3EVENT_TRANSCEIVER_C"
671 "URRENT_BELOW_THRESHOLD_RECOVERED\020v\0228\n4EV"
672 "ENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD"
673 "_RECOVERED\020w\0228\n4EVENT_TRANSCEIVER_RX_POW"
674 "ER_BELOW_THRESHOLD_RECOVERED\020x\0228\n4EVENT_"
675 "TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_REC"
676 "OVERED\020y\0228\n4EVENT_TRANSCEIVER_TX_POWER_B"
677 "ELOW_THRESHOLD_RECOVERED\020z\022\'\n#EVENT_TRAN"
678 "SCEIVER_FAILURE_RECOVERED\020{\022\027\n\022EVENT_PSU"
679 "_PLUG_OUT\020\310\001\022\026\n\021EVENT_PSU_PLUG_IN\020\311\001\022\026\n\021"
680 "EVENT_PSU_FAILURE\020\312\001\022 \n\033EVENT_PSU_FAILUR"
681 "E_RECOVERED\020\313\001\022\026\n\021EVENT_FAN_FAILURE\020\254\002\022\027"
682 "\n\022EVENT_FAN_PLUG_OUT\020\255\002\022\026\n\021EVENT_FAN_PLU"
683 "G_IN\020\256\002\022 \n\033EVENT_FAN_FAILURE_RECOVERED\020\257"
684 "\002\022)\n$EVENT_CPU_TEMPERATURE_ABOVE_CRITICA"
685 "L\020\220\003\022&\n!EVENT_CPU_TEMPERATURE_ABOVE_FATA"
686 "L\020\221\003\0223\n.EVENT_CPU_TEMPERATURE_ABOVE_CRIT"
687 "ICAL_RECOVERED\020\222\003\0220\n+EVENT_CPU_TEMPERATU"
688 "RE_ABOVE_FATAL_RECOVERED\020\223\003\022$\n\037EVENT_CPU"
689 "_USAGE_ABOVE_THRESHOLD\020\224\003\022.\n)EVENT_CPU_U"
690 "SAGE_ABOVE_THRESHOLD_RECOVERED\020\225\003\022\032\n\025EVE"
691 "NT_HW_DEVICE_RESET\020\364\003\022/\n*EVENT_HW_DEVICE"
692 "_TEMPERATURE_ABOVE_CRITICAL\020\365\003\022,\n\'EVENT_"
693 "HW_DEVICE_TEMPERATURE_ABOVE_FATAL\020\366\003\0229\n4"
694 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITIC"
695 "AL_RECOVERED\020\367\003\0226\n1EVENT_HW_DEVICE_TEMPE"
696 "RATURE_ABOVE_FATAL_RECOVERED\020\370\003\022\033\n\026EVENT"
697 "_HW_DEVICE_REBOOT\020\371\003\022\'\n\"EVENT_HW_TEMPERA"
698 "TURE_SENSOR_FAILED\020\372\003\022,\n\'EVENT_HW_ALL_TE"
699 "MPERATURE_SENSORS_FAILED\020\373\003\022(\n#EVENT_HW_"
700 "DISK_USAGE_ABOVE_THRESHOLD\020\374\003\0222\n-EVENT_H"
701 "W_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED\020\375"
702 "\003\022*\n%EVENT_HW_MEMORY_USAGE_ABOVE_THRESHO"
703 "LD\020\376\003\0224\n/EVENT_HW_MEMORY_USAGE_ABOVE_THR"
704 "ESHOLD_RECOVERED\020\377\003\022\036\n\031EVENT_HW_NTP_SYNC"
705 "_FAILURE\020\200\004\022(\n#EVENT_HW_NTP_SYNC_FAILURE"
706 "_RECOVERED\020\201\004\022\035\n\030EVENT_LINE_CARD_PLUG_OU"
707 "T\020\330\004\022\034\n\027EVENT_LINE_CARD_PLUG_IN\020\331\004\022(\n#EV"
708 "ENT_COMPONENT_ADMIN_STATE_CHANGED\020\274\005\022\'\n\""
709 "EVENT_COMPONENT_OPER_STATE_CHANGED\020\275\005\022(\n"
710 "#EVENT_COMPONENT_ALARM_STATE_CHANGED\020\276\005\022"
711 "(\n#EVENT_COMPONENT_USAGE_STATE_CHANGED\020\277"
712 "\005\022*\n%EVENT_COMPONENT_STANDBY_STATE_CHANG"
713 "ED\020\300\0052\355\001\n\035NativeEventsManagementService\022"
714 "6\n\nListEvents\022\017.dmi.HardwareID\032\027.dmi.Lis"
715 "tEventsResponse\022^\n\031UpdateEventsConfigura"
716 "tion\022\037.dmi.EventsConfigurationRequest\032 ."
717 "dmi.EventsConfigurationResponse\0224\n\014Strea"
718 "mEvents\022\026.google.protobuf.Empty\032\n.dmi.Ev"
719 "ent0\001B;Z9github.com/opencord/device-mana"
720 "gement-interface/v3/go/dmib\006proto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530721 ;
722::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = {
723 false, InitDefaults_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto,
724 descriptor_table_protodef_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200725 "dmi/hw_events_mgmt_service.proto", &assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, 5434,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530726};
727
728void AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto() {
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530729 static constexpr ::google::protobuf::internal::InitFunc deps[4] =
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530730 {
731 ::AddDescriptors_dmi_2fcommons_2eproto,
732 ::AddDescriptors_dmi_2fhw_2eproto,
733 ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto,
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530734 ::AddDescriptors_google_2fprotobuf_2fempty_2eproto,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530735 };
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +0530736 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto, deps, 4);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530737}
738
739// Force running AddDescriptors() at dynamic initialization time.
740static bool dynamic_init_dummy_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto(); return true; }();
741namespace dmi {
742const ::google::protobuf::EnumDescriptor* ListEventsResponse_Reason_descriptor() {
743 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
744 return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[0];
745}
746bool ListEventsResponse_Reason_IsValid(int value) {
747 switch (value) {
748 case 0:
749 case 1:
750 case 2:
751 case 3:
752 return true;
753 default:
754 return false;
755 }
756}
757
758#if !defined(_MSC_VER) || _MSC_VER >= 1900
759const ListEventsResponse_Reason ListEventsResponse::UNDEFINED_REASON;
760const ListEventsResponse_Reason ListEventsResponse::UNKNOWN_DEVICE;
761const ListEventsResponse_Reason ListEventsResponse::INTERNAL_ERROR;
762const ListEventsResponse_Reason ListEventsResponse::DEVICE_UNREACHABLE;
763const ListEventsResponse_Reason ListEventsResponse::Reason_MIN;
764const ListEventsResponse_Reason ListEventsResponse::Reason_MAX;
765const int ListEventsResponse::Reason_ARRAYSIZE;
766#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
767const ::google::protobuf::EnumDescriptor* EventsConfigurationResponse_Reason_descriptor() {
768 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
769 return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[1];
770}
771bool EventsConfigurationResponse_Reason_IsValid(int value) {
772 switch (value) {
773 case 0:
774 case 1:
775 case 2:
776 case 3:
777 case 4:
778 return true;
779 default:
780 return false;
781 }
782}
783
784#if !defined(_MSC_VER) || _MSC_VER >= 1900
785const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNDEFINED_REASON;
786const EventsConfigurationResponse_Reason EventsConfigurationResponse::UNKNOWN_DEVICE;
787const EventsConfigurationResponse_Reason EventsConfigurationResponse::INTERNAL_ERROR;
788const EventsConfigurationResponse_Reason EventsConfigurationResponse::INVALID_CONFIG;
789const EventsConfigurationResponse_Reason EventsConfigurationResponse::DEVICE_UNREACHABLE;
790const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MIN;
791const EventsConfigurationResponse_Reason EventsConfigurationResponse::Reason_MAX;
792const int EventsConfigurationResponse::Reason_ARRAYSIZE;
793#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
794const ::google::protobuf::EnumDescriptor* EventIds_descriptor() {
795 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
796 return file_level_enum_descriptors_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[2];
797}
798bool EventIds_IsValid(int value) {
799 switch (value) {
800 case 0:
801 case 100:
802 case 101:
803 case 102:
804 case 103:
805 case 104:
806 case 105:
807 case 106:
808 case 107:
809 case 108:
810 case 109:
811 case 110:
812 case 111:
813 case 112:
814 case 113:
815 case 114:
816 case 115:
817 case 116:
818 case 117:
819 case 118:
820 case 119:
821 case 120:
822 case 121:
823 case 122:
824 case 123:
825 case 200:
826 case 201:
827 case 202:
828 case 203:
829 case 300:
830 case 301:
831 case 302:
832 case 303:
833 case 400:
834 case 401:
835 case 402:
836 case 403:
amit.ghosh06f49782023-06-15 13:53:51 +0200837 case 404:
838 case 405:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530839 case 500:
840 case 501:
841 case 502:
842 case 503:
843 case 504:
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530844 case 505:
amit.ghosh8fe610f2022-01-14 17:44:53 +0100845 case 506:
846 case 507:
amit.ghosh06f49782023-06-15 13:53:51 +0200847 case 508:
848 case 509:
849 case 510:
850 case 511:
851 case 512:
852 case 513:
amit.ghoshc0c3c242022-03-16 11:00:27 +0100853 case 600:
854 case 601:
Amit Ghoshe45d9972025-06-26 14:52:48 +0200855 case 700:
856 case 701:
857 case 702:
858 case 703:
859 case 704:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530860 return true;
861 default:
862 return false;
863 }
864}
865
866
867// ===================================================================
868
869void ValueType::InitAsDefaultInstance() {
870 ::dmi::_ValueType_default_instance_.int_val_ = PROTOBUF_LONGLONG(0);
871 ::dmi::_ValueType_default_instance_.uint_val_ = PROTOBUF_ULONGLONG(0);
872 ::dmi::_ValueType_default_instance_.float_val_ = 0;
873}
874class ValueType::HasBitSetters {
875 public:
876};
877
878#if !defined(_MSC_VER) || _MSC_VER >= 1900
879const int ValueType::kIntValFieldNumber;
880const int ValueType::kUintValFieldNumber;
881const int ValueType::kFloatValFieldNumber;
amit.ghosh93921ec2022-09-08 17:22:40 +0200882const int ValueType::kTypeOfValFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530883#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
884
885ValueType::ValueType()
886 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
887 SharedCtor();
888 // @@protoc_insertion_point(constructor:dmi.ValueType)
889}
890ValueType::ValueType(const ValueType& from)
891 : ::google::protobuf::Message(),
892 _internal_metadata_(nullptr) {
893 _internal_metadata_.MergeFrom(from._internal_metadata_);
amit.ghosh93921ec2022-09-08 17:22:40 +0200894 typeofval_ = from.typeofval_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530895 clear_has_val();
896 switch (from.val_case()) {
897 case kIntVal: {
898 set_int_val(from.int_val());
899 break;
900 }
901 case kUintVal: {
902 set_uint_val(from.uint_val());
903 break;
904 }
905 case kFloatVal: {
906 set_float_val(from.float_val());
907 break;
908 }
909 case VAL_NOT_SET: {
910 break;
911 }
912 }
913 // @@protoc_insertion_point(copy_constructor:dmi.ValueType)
914}
915
916void ValueType::SharedCtor() {
amit.ghosh93921ec2022-09-08 17:22:40 +0200917 typeofval_ = 0;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530918 clear_has_val();
919}
920
921ValueType::~ValueType() {
922 // @@protoc_insertion_point(destructor:dmi.ValueType)
923 SharedDtor();
924}
925
926void ValueType::SharedDtor() {
927 if (has_val()) {
928 clear_val();
929 }
930}
931
932void ValueType::SetCachedSize(int size) const {
933 _cached_size_.Set(size);
934}
935const ValueType& ValueType::default_instance() {
936 ::google::protobuf::internal::InitSCC(&::scc_info_ValueType_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
937 return *internal_default_instance();
938}
939
940
941void ValueType::clear_val() {
942// @@protoc_insertion_point(one_of_clear_start:dmi.ValueType)
943 switch (val_case()) {
944 case kIntVal: {
945 // No need to clear
946 break;
947 }
948 case kUintVal: {
949 // No need to clear
950 break;
951 }
952 case kFloatVal: {
953 // No need to clear
954 break;
955 }
956 case VAL_NOT_SET: {
957 break;
958 }
959 }
960 _oneof_case_[0] = VAL_NOT_SET;
961}
962
963
964void ValueType::Clear() {
965// @@protoc_insertion_point(message_clear_start:dmi.ValueType)
966 ::google::protobuf::uint32 cached_has_bits = 0;
967 // Prevent compiler warnings about cached_has_bits being unused
968 (void) cached_has_bits;
969
amit.ghosh93921ec2022-09-08 17:22:40 +0200970 typeofval_ = 0;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530971 clear_val();
972 _internal_metadata_.Clear();
973}
974
975#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
976const char* ValueType::_InternalParse(const char* begin, const char* end, void* object,
977 ::google::protobuf::internal::ParseContext* ctx) {
978 auto msg = static_cast<ValueType*>(object);
979 ::google::protobuf::int32 size; (void)size;
980 int depth; (void)depth;
981 ::google::protobuf::uint32 tag;
982 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
983 auto ptr = begin;
984 while (ptr < end) {
985 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
986 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
987 switch (tag >> 3) {
988 // int64 int_val = 1;
989 case 1: {
990 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
991 msg->set_int_val(::google::protobuf::internal::ReadVarint(&ptr));
992 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
993 break;
994 }
995 // uint64 uint_val = 2;
996 case 2: {
997 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
998 msg->set_uint_val(::google::protobuf::internal::ReadVarint(&ptr));
999 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1000 break;
1001 }
1002 // float float_val = 3;
1003 case 3: {
1004 if (static_cast<::google::protobuf::uint8>(tag) != 29) goto handle_unusual;
1005 msg->set_float_val(::google::protobuf::io::UnalignedLoad<float>(ptr));
1006 ptr += sizeof(float);
1007 break;
1008 }
amit.ghosh93921ec2022-09-08 17:22:40 +02001009 // .dmi.DataValueType typeOfVal = 4;
1010 case 4: {
1011 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
1012 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
1013 msg->set_typeofval(static_cast<::dmi::DataValueType>(val));
1014 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1015 break;
1016 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301017 default: {
1018 handle_unusual:
1019 if ((tag & 7) == 4 || tag == 0) {
1020 ctx->EndGroup(tag);
1021 return ptr;
1022 }
1023 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1024 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1025 ptr = res.first;
1026 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1027 if (res.second) return ptr;
1028 }
1029 } // switch
1030 } // while
1031 return ptr;
1032}
1033#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1034bool ValueType::MergePartialFromCodedStream(
1035 ::google::protobuf::io::CodedInputStream* input) {
1036#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1037 ::google::protobuf::uint32 tag;
1038 // @@protoc_insertion_point(parse_start:dmi.ValueType)
1039 for (;;) {
1040 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1041 tag = p.first;
1042 if (!p.second) goto handle_unusual;
1043 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1044 // int64 int_val = 1;
1045 case 1: {
1046 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
1047 clear_val();
1048 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1049 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1050 input, &val_.int_val_)));
1051 set_has_int_val();
1052 } else {
1053 goto handle_unusual;
1054 }
1055 break;
1056 }
1057
1058 // uint64 uint_val = 2;
1059 case 2: {
1060 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
1061 clear_val();
1062 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1063 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1064 input, &val_.uint_val_)));
1065 set_has_uint_val();
1066 } else {
1067 goto handle_unusual;
1068 }
1069 break;
1070 }
1071
1072 // float float_val = 3;
1073 case 3: {
1074 if (static_cast< ::google::protobuf::uint8>(tag) == (29 & 0xFF)) {
1075 clear_val();
1076 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1077 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
1078 input, &val_.float_val_)));
1079 set_has_float_val();
1080 } else {
1081 goto handle_unusual;
1082 }
1083 break;
1084 }
1085
amit.ghosh93921ec2022-09-08 17:22:40 +02001086 // .dmi.DataValueType typeOfVal = 4;
1087 case 4: {
1088 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
1089 int value = 0;
1090 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1091 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1092 input, &value)));
1093 set_typeofval(static_cast< ::dmi::DataValueType >(value));
1094 } else {
1095 goto handle_unusual;
1096 }
1097 break;
1098 }
1099
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301100 default: {
1101 handle_unusual:
1102 if (tag == 0) {
1103 goto success;
1104 }
1105 DO_(::google::protobuf::internal::WireFormat::SkipField(
1106 input, tag, _internal_metadata_.mutable_unknown_fields()));
1107 break;
1108 }
1109 }
1110 }
1111success:
1112 // @@protoc_insertion_point(parse_success:dmi.ValueType)
1113 return true;
1114failure:
1115 // @@protoc_insertion_point(parse_failure:dmi.ValueType)
1116 return false;
1117#undef DO_
1118}
1119#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1120
1121void ValueType::SerializeWithCachedSizes(
1122 ::google::protobuf::io::CodedOutputStream* output) const {
1123 // @@protoc_insertion_point(serialize_start:dmi.ValueType)
1124 ::google::protobuf::uint32 cached_has_bits = 0;
1125 (void) cached_has_bits;
1126
1127 // int64 int_val = 1;
1128 if (has_int_val()) {
1129 ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->int_val(), output);
1130 }
1131
1132 // uint64 uint_val = 2;
1133 if (has_uint_val()) {
1134 ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->uint_val(), output);
1135 }
1136
1137 // float float_val = 3;
1138 if (has_float_val()) {
1139 ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->float_val(), output);
1140 }
1141
amit.ghosh93921ec2022-09-08 17:22:40 +02001142 // .dmi.DataValueType typeOfVal = 4;
1143 if (this->typeofval() != 0) {
1144 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1145 4, this->typeofval(), output);
1146 }
1147
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301148 if (_internal_metadata_.have_unknown_fields()) {
1149 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1150 _internal_metadata_.unknown_fields(), output);
1151 }
1152 // @@protoc_insertion_point(serialize_end:dmi.ValueType)
1153}
1154
1155::google::protobuf::uint8* ValueType::InternalSerializeWithCachedSizesToArray(
1156 ::google::protobuf::uint8* target) const {
1157 // @@protoc_insertion_point(serialize_to_array_start:dmi.ValueType)
1158 ::google::protobuf::uint32 cached_has_bits = 0;
1159 (void) cached_has_bits;
1160
1161 // int64 int_val = 1;
1162 if (has_int_val()) {
1163 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->int_val(), target);
1164 }
1165
1166 // uint64 uint_val = 2;
1167 if (has_uint_val()) {
1168 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->uint_val(), target);
1169 }
1170
1171 // float float_val = 3;
1172 if (has_float_val()) {
1173 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->float_val(), target);
1174 }
1175
amit.ghosh93921ec2022-09-08 17:22:40 +02001176 // .dmi.DataValueType typeOfVal = 4;
1177 if (this->typeofval() != 0) {
1178 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1179 4, this->typeofval(), target);
1180 }
1181
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301182 if (_internal_metadata_.have_unknown_fields()) {
1183 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1184 _internal_metadata_.unknown_fields(), target);
1185 }
1186 // @@protoc_insertion_point(serialize_to_array_end:dmi.ValueType)
1187 return target;
1188}
1189
1190size_t ValueType::ByteSizeLong() const {
1191// @@protoc_insertion_point(message_byte_size_start:dmi.ValueType)
1192 size_t total_size = 0;
1193
1194 if (_internal_metadata_.have_unknown_fields()) {
1195 total_size +=
1196 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1197 _internal_metadata_.unknown_fields());
1198 }
1199 ::google::protobuf::uint32 cached_has_bits = 0;
1200 // Prevent compiler warnings about cached_has_bits being unused
1201 (void) cached_has_bits;
1202
amit.ghosh93921ec2022-09-08 17:22:40 +02001203 // .dmi.DataValueType typeOfVal = 4;
1204 if (this->typeofval() != 0) {
1205 total_size += 1 +
1206 ::google::protobuf::internal::WireFormatLite::EnumSize(this->typeofval());
1207 }
1208
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301209 switch (val_case()) {
1210 // int64 int_val = 1;
1211 case kIntVal: {
1212 total_size += 1 +
1213 ::google::protobuf::internal::WireFormatLite::Int64Size(
1214 this->int_val());
1215 break;
1216 }
1217 // uint64 uint_val = 2;
1218 case kUintVal: {
1219 total_size += 1 +
1220 ::google::protobuf::internal::WireFormatLite::UInt64Size(
1221 this->uint_val());
1222 break;
1223 }
1224 // float float_val = 3;
1225 case kFloatVal: {
1226 total_size += 1 + 4;
1227 break;
1228 }
1229 case VAL_NOT_SET: {
1230 break;
1231 }
1232 }
1233 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1234 SetCachedSize(cached_size);
1235 return total_size;
1236}
1237
1238void ValueType::MergeFrom(const ::google::protobuf::Message& from) {
1239// @@protoc_insertion_point(generalized_merge_from_start:dmi.ValueType)
1240 GOOGLE_DCHECK_NE(&from, this);
1241 const ValueType* source =
1242 ::google::protobuf::DynamicCastToGenerated<ValueType>(
1243 &from);
1244 if (source == nullptr) {
1245 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ValueType)
1246 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1247 } else {
1248 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ValueType)
1249 MergeFrom(*source);
1250 }
1251}
1252
1253void ValueType::MergeFrom(const ValueType& from) {
1254// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ValueType)
1255 GOOGLE_DCHECK_NE(&from, this);
1256 _internal_metadata_.MergeFrom(from._internal_metadata_);
1257 ::google::protobuf::uint32 cached_has_bits = 0;
1258 (void) cached_has_bits;
1259
amit.ghosh93921ec2022-09-08 17:22:40 +02001260 if (from.typeofval() != 0) {
1261 set_typeofval(from.typeofval());
1262 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301263 switch (from.val_case()) {
1264 case kIntVal: {
1265 set_int_val(from.int_val());
1266 break;
1267 }
1268 case kUintVal: {
1269 set_uint_val(from.uint_val());
1270 break;
1271 }
1272 case kFloatVal: {
1273 set_float_val(from.float_val());
1274 break;
1275 }
1276 case VAL_NOT_SET: {
1277 break;
1278 }
1279 }
1280}
1281
1282void ValueType::CopyFrom(const ::google::protobuf::Message& from) {
1283// @@protoc_insertion_point(generalized_copy_from_start:dmi.ValueType)
1284 if (&from == this) return;
1285 Clear();
1286 MergeFrom(from);
1287}
1288
1289void ValueType::CopyFrom(const ValueType& from) {
1290// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ValueType)
1291 if (&from == this) return;
1292 Clear();
1293 MergeFrom(from);
1294}
1295
1296bool ValueType::IsInitialized() const {
1297 return true;
1298}
1299
1300void ValueType::Swap(ValueType* other) {
1301 if (other == this) return;
1302 InternalSwap(other);
1303}
1304void ValueType::InternalSwap(ValueType* other) {
1305 using std::swap;
1306 _internal_metadata_.Swap(&other->_internal_metadata_);
amit.ghosh93921ec2022-09-08 17:22:40 +02001307 swap(typeofval_, other->typeofval_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301308 swap(val_, other->val_);
1309 swap(_oneof_case_[0], other->_oneof_case_[0]);
1310}
1311
1312::google::protobuf::Metadata ValueType::GetMetadata() const {
1313 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
1314 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
1315}
1316
1317
1318// ===================================================================
1319
1320void WaterMarks::InitAsDefaultInstance() {
1321 ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->high_ = const_cast< ::dmi::ValueType*>(
1322 ::dmi::ValueType::internal_default_instance());
1323 ::dmi::_WaterMarks_default_instance_._instance.get_mutable()->low_ = const_cast< ::dmi::ValueType*>(
1324 ::dmi::ValueType::internal_default_instance());
1325}
1326class WaterMarks::HasBitSetters {
1327 public:
1328 static const ::dmi::ValueType& high(const WaterMarks* msg);
1329 static const ::dmi::ValueType& low(const WaterMarks* msg);
1330};
1331
1332const ::dmi::ValueType&
1333WaterMarks::HasBitSetters::high(const WaterMarks* msg) {
1334 return *msg->high_;
1335}
1336const ::dmi::ValueType&
1337WaterMarks::HasBitSetters::low(const WaterMarks* msg) {
1338 return *msg->low_;
1339}
1340#if !defined(_MSC_VER) || _MSC_VER >= 1900
1341const int WaterMarks::kHighFieldNumber;
1342const int WaterMarks::kLowFieldNumber;
1343#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1344
1345WaterMarks::WaterMarks()
1346 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1347 SharedCtor();
1348 // @@protoc_insertion_point(constructor:dmi.WaterMarks)
1349}
1350WaterMarks::WaterMarks(const WaterMarks& from)
1351 : ::google::protobuf::Message(),
1352 _internal_metadata_(nullptr) {
1353 _internal_metadata_.MergeFrom(from._internal_metadata_);
1354 if (from.has_high()) {
1355 high_ = new ::dmi::ValueType(*from.high_);
1356 } else {
1357 high_ = nullptr;
1358 }
1359 if (from.has_low()) {
1360 low_ = new ::dmi::ValueType(*from.low_);
1361 } else {
1362 low_ = nullptr;
1363 }
1364 // @@protoc_insertion_point(copy_constructor:dmi.WaterMarks)
1365}
1366
1367void WaterMarks::SharedCtor() {
1368 ::google::protobuf::internal::InitSCC(
1369 &scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
1370 ::memset(&high_, 0, static_cast<size_t>(
1371 reinterpret_cast<char*>(&low_) -
1372 reinterpret_cast<char*>(&high_)) + sizeof(low_));
1373}
1374
1375WaterMarks::~WaterMarks() {
1376 // @@protoc_insertion_point(destructor:dmi.WaterMarks)
1377 SharedDtor();
1378}
1379
1380void WaterMarks::SharedDtor() {
1381 if (this != internal_default_instance()) delete high_;
1382 if (this != internal_default_instance()) delete low_;
1383}
1384
1385void WaterMarks::SetCachedSize(int size) const {
1386 _cached_size_.Set(size);
1387}
1388const WaterMarks& WaterMarks::default_instance() {
1389 ::google::protobuf::internal::InitSCC(&::scc_info_WaterMarks_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
1390 return *internal_default_instance();
1391}
1392
1393
1394void WaterMarks::Clear() {
1395// @@protoc_insertion_point(message_clear_start:dmi.WaterMarks)
1396 ::google::protobuf::uint32 cached_has_bits = 0;
1397 // Prevent compiler warnings about cached_has_bits being unused
1398 (void) cached_has_bits;
1399
1400 if (GetArenaNoVirtual() == nullptr && high_ != nullptr) {
1401 delete high_;
1402 }
1403 high_ = nullptr;
1404 if (GetArenaNoVirtual() == nullptr && low_ != nullptr) {
1405 delete low_;
1406 }
1407 low_ = nullptr;
1408 _internal_metadata_.Clear();
1409}
1410
1411#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1412const char* WaterMarks::_InternalParse(const char* begin, const char* end, void* object,
1413 ::google::protobuf::internal::ParseContext* ctx) {
1414 auto msg = static_cast<WaterMarks*>(object);
1415 ::google::protobuf::int32 size; (void)size;
1416 int depth; (void)depth;
1417 ::google::protobuf::uint32 tag;
1418 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1419 auto ptr = begin;
1420 while (ptr < end) {
1421 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1422 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1423 switch (tag >> 3) {
1424 // .dmi.ValueType high = 1;
1425 case 1: {
1426 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1427 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1428 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1429 parser_till_end = ::dmi::ValueType::_InternalParse;
1430 object = msg->mutable_high();
1431 if (size > end - ptr) goto len_delim_till_end;
1432 ptr += size;
1433 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1434 {parser_till_end, object}, ptr - size, ptr));
1435 break;
1436 }
1437 // .dmi.ValueType low = 2;
1438 case 2: {
1439 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
1440 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1441 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1442 parser_till_end = ::dmi::ValueType::_InternalParse;
1443 object = msg->mutable_low();
1444 if (size > end - ptr) goto len_delim_till_end;
1445 ptr += size;
1446 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1447 {parser_till_end, object}, ptr - size, ptr));
1448 break;
1449 }
1450 default: {
1451 handle_unusual:
1452 if ((tag & 7) == 4 || tag == 0) {
1453 ctx->EndGroup(tag);
1454 return ptr;
1455 }
1456 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1457 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1458 ptr = res.first;
1459 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1460 if (res.second) return ptr;
1461 }
1462 } // switch
1463 } // while
1464 return ptr;
1465len_delim_till_end:
1466 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1467 {parser_till_end, object}, size);
1468}
1469#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1470bool WaterMarks::MergePartialFromCodedStream(
1471 ::google::protobuf::io::CodedInputStream* input) {
1472#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1473 ::google::protobuf::uint32 tag;
1474 // @@protoc_insertion_point(parse_start:dmi.WaterMarks)
1475 for (;;) {
1476 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1477 tag = p.first;
1478 if (!p.second) goto handle_unusual;
1479 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1480 // .dmi.ValueType high = 1;
1481 case 1: {
1482 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1483 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1484 input, mutable_high()));
1485 } else {
1486 goto handle_unusual;
1487 }
1488 break;
1489 }
1490
1491 // .dmi.ValueType low = 2;
1492 case 2: {
1493 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
1494 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1495 input, mutable_low()));
1496 } else {
1497 goto handle_unusual;
1498 }
1499 break;
1500 }
1501
1502 default: {
1503 handle_unusual:
1504 if (tag == 0) {
1505 goto success;
1506 }
1507 DO_(::google::protobuf::internal::WireFormat::SkipField(
1508 input, tag, _internal_metadata_.mutable_unknown_fields()));
1509 break;
1510 }
1511 }
1512 }
1513success:
1514 // @@protoc_insertion_point(parse_success:dmi.WaterMarks)
1515 return true;
1516failure:
1517 // @@protoc_insertion_point(parse_failure:dmi.WaterMarks)
1518 return false;
1519#undef DO_
1520}
1521#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1522
1523void WaterMarks::SerializeWithCachedSizes(
1524 ::google::protobuf::io::CodedOutputStream* output) const {
1525 // @@protoc_insertion_point(serialize_start:dmi.WaterMarks)
1526 ::google::protobuf::uint32 cached_has_bits = 0;
1527 (void) cached_has_bits;
1528
1529 // .dmi.ValueType high = 1;
1530 if (this->has_high()) {
1531 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1532 1, HasBitSetters::high(this), output);
1533 }
1534
1535 // .dmi.ValueType low = 2;
1536 if (this->has_low()) {
1537 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1538 2, HasBitSetters::low(this), output);
1539 }
1540
1541 if (_internal_metadata_.have_unknown_fields()) {
1542 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1543 _internal_metadata_.unknown_fields(), output);
1544 }
1545 // @@protoc_insertion_point(serialize_end:dmi.WaterMarks)
1546}
1547
1548::google::protobuf::uint8* WaterMarks::InternalSerializeWithCachedSizesToArray(
1549 ::google::protobuf::uint8* target) const {
1550 // @@protoc_insertion_point(serialize_to_array_start:dmi.WaterMarks)
1551 ::google::protobuf::uint32 cached_has_bits = 0;
1552 (void) cached_has_bits;
1553
1554 // .dmi.ValueType high = 1;
1555 if (this->has_high()) {
1556 target = ::google::protobuf::internal::WireFormatLite::
1557 InternalWriteMessageToArray(
1558 1, HasBitSetters::high(this), target);
1559 }
1560
1561 // .dmi.ValueType low = 2;
1562 if (this->has_low()) {
1563 target = ::google::protobuf::internal::WireFormatLite::
1564 InternalWriteMessageToArray(
1565 2, HasBitSetters::low(this), target);
1566 }
1567
1568 if (_internal_metadata_.have_unknown_fields()) {
1569 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1570 _internal_metadata_.unknown_fields(), target);
1571 }
1572 // @@protoc_insertion_point(serialize_to_array_end:dmi.WaterMarks)
1573 return target;
1574}
1575
1576size_t WaterMarks::ByteSizeLong() const {
1577// @@protoc_insertion_point(message_byte_size_start:dmi.WaterMarks)
1578 size_t total_size = 0;
1579
1580 if (_internal_metadata_.have_unknown_fields()) {
1581 total_size +=
1582 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1583 _internal_metadata_.unknown_fields());
1584 }
1585 ::google::protobuf::uint32 cached_has_bits = 0;
1586 // Prevent compiler warnings about cached_has_bits being unused
1587 (void) cached_has_bits;
1588
1589 // .dmi.ValueType high = 1;
1590 if (this->has_high()) {
1591 total_size += 1 +
1592 ::google::protobuf::internal::WireFormatLite::MessageSize(
1593 *high_);
1594 }
1595
1596 // .dmi.ValueType low = 2;
1597 if (this->has_low()) {
1598 total_size += 1 +
1599 ::google::protobuf::internal::WireFormatLite::MessageSize(
1600 *low_);
1601 }
1602
1603 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1604 SetCachedSize(cached_size);
1605 return total_size;
1606}
1607
1608void WaterMarks::MergeFrom(const ::google::protobuf::Message& from) {
1609// @@protoc_insertion_point(generalized_merge_from_start:dmi.WaterMarks)
1610 GOOGLE_DCHECK_NE(&from, this);
1611 const WaterMarks* source =
1612 ::google::protobuf::DynamicCastToGenerated<WaterMarks>(
1613 &from);
1614 if (source == nullptr) {
1615 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.WaterMarks)
1616 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1617 } else {
1618 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.WaterMarks)
1619 MergeFrom(*source);
1620 }
1621}
1622
1623void WaterMarks::MergeFrom(const WaterMarks& from) {
1624// @@protoc_insertion_point(class_specific_merge_from_start:dmi.WaterMarks)
1625 GOOGLE_DCHECK_NE(&from, this);
1626 _internal_metadata_.MergeFrom(from._internal_metadata_);
1627 ::google::protobuf::uint32 cached_has_bits = 0;
1628 (void) cached_has_bits;
1629
1630 if (from.has_high()) {
1631 mutable_high()->::dmi::ValueType::MergeFrom(from.high());
1632 }
1633 if (from.has_low()) {
1634 mutable_low()->::dmi::ValueType::MergeFrom(from.low());
1635 }
1636}
1637
1638void WaterMarks::CopyFrom(const ::google::protobuf::Message& from) {
1639// @@protoc_insertion_point(generalized_copy_from_start:dmi.WaterMarks)
1640 if (&from == this) return;
1641 Clear();
1642 MergeFrom(from);
1643}
1644
1645void WaterMarks::CopyFrom(const WaterMarks& from) {
1646// @@protoc_insertion_point(class_specific_copy_from_start:dmi.WaterMarks)
1647 if (&from == this) return;
1648 Clear();
1649 MergeFrom(from);
1650}
1651
1652bool WaterMarks::IsInitialized() const {
1653 return true;
1654}
1655
1656void WaterMarks::Swap(WaterMarks* other) {
1657 if (other == this) return;
1658 InternalSwap(other);
1659}
1660void WaterMarks::InternalSwap(WaterMarks* other) {
1661 using std::swap;
1662 _internal_metadata_.Swap(&other->_internal_metadata_);
1663 swap(high_, other->high_);
1664 swap(low_, other->low_);
1665}
1666
1667::google::protobuf::Metadata WaterMarks::GetMetadata() const {
1668 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
1669 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
1670}
1671
1672
1673// ===================================================================
1674
1675void Thresholds::InitAsDefaultInstance() {
1676 ::dmi::_Thresholds_default_instance_.upper_ = const_cast< ::dmi::WaterMarks*>(
1677 ::dmi::WaterMarks::internal_default_instance());
1678 ::dmi::_Thresholds_default_instance_.lower_ = const_cast< ::dmi::WaterMarks*>(
1679 ::dmi::WaterMarks::internal_default_instance());
1680}
1681class Thresholds::HasBitSetters {
1682 public:
1683 static const ::dmi::WaterMarks& upper(const Thresholds* msg);
1684 static const ::dmi::WaterMarks& lower(const Thresholds* msg);
1685};
1686
1687const ::dmi::WaterMarks&
1688Thresholds::HasBitSetters::upper(const Thresholds* msg) {
1689 return *msg->threshold_.upper_;
1690}
1691const ::dmi::WaterMarks&
1692Thresholds::HasBitSetters::lower(const Thresholds* msg) {
1693 return *msg->threshold_.lower_;
1694}
1695void Thresholds::set_allocated_upper(::dmi::WaterMarks* upper) {
1696 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1697 clear_threshold();
1698 if (upper) {
1699 ::google::protobuf::Arena* submessage_arena = nullptr;
1700 if (message_arena != submessage_arena) {
1701 upper = ::google::protobuf::internal::GetOwnedMessage(
1702 message_arena, upper, submessage_arena);
1703 }
1704 set_has_upper();
1705 threshold_.upper_ = upper;
1706 }
1707 // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.upper)
1708}
1709void Thresholds::set_allocated_lower(::dmi::WaterMarks* lower) {
1710 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1711 clear_threshold();
1712 if (lower) {
1713 ::google::protobuf::Arena* submessage_arena = nullptr;
1714 if (message_arena != submessage_arena) {
1715 lower = ::google::protobuf::internal::GetOwnedMessage(
1716 message_arena, lower, submessage_arena);
1717 }
1718 set_has_lower();
1719 threshold_.lower_ = lower;
1720 }
1721 // @@protoc_insertion_point(field_set_allocated:dmi.Thresholds.lower)
1722}
1723#if !defined(_MSC_VER) || _MSC_VER >= 1900
1724const int Thresholds::kUpperFieldNumber;
1725const int Thresholds::kLowerFieldNumber;
1726#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1727
1728Thresholds::Thresholds()
1729 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1730 SharedCtor();
1731 // @@protoc_insertion_point(constructor:dmi.Thresholds)
1732}
1733Thresholds::Thresholds(const Thresholds& from)
1734 : ::google::protobuf::Message(),
1735 _internal_metadata_(nullptr) {
1736 _internal_metadata_.MergeFrom(from._internal_metadata_);
1737 clear_has_threshold();
1738 switch (from.threshold_case()) {
1739 case kUpper: {
1740 mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper());
1741 break;
1742 }
1743 case kLower: {
1744 mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower());
1745 break;
1746 }
1747 case THRESHOLD_NOT_SET: {
1748 break;
1749 }
1750 }
1751 // @@protoc_insertion_point(copy_constructor:dmi.Thresholds)
1752}
1753
1754void Thresholds::SharedCtor() {
1755 ::google::protobuf::internal::InitSCC(
1756 &scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
1757 clear_has_threshold();
1758}
1759
1760Thresholds::~Thresholds() {
1761 // @@protoc_insertion_point(destructor:dmi.Thresholds)
1762 SharedDtor();
1763}
1764
1765void Thresholds::SharedDtor() {
1766 if (has_threshold()) {
1767 clear_threshold();
1768 }
1769}
1770
1771void Thresholds::SetCachedSize(int size) const {
1772 _cached_size_.Set(size);
1773}
1774const Thresholds& Thresholds::default_instance() {
1775 ::google::protobuf::internal::InitSCC(&::scc_info_Thresholds_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
1776 return *internal_default_instance();
1777}
1778
1779
1780void Thresholds::clear_threshold() {
1781// @@protoc_insertion_point(one_of_clear_start:dmi.Thresholds)
1782 switch (threshold_case()) {
1783 case kUpper: {
1784 delete threshold_.upper_;
1785 break;
1786 }
1787 case kLower: {
1788 delete threshold_.lower_;
1789 break;
1790 }
1791 case THRESHOLD_NOT_SET: {
1792 break;
1793 }
1794 }
1795 _oneof_case_[0] = THRESHOLD_NOT_SET;
1796}
1797
1798
1799void Thresholds::Clear() {
1800// @@protoc_insertion_point(message_clear_start:dmi.Thresholds)
1801 ::google::protobuf::uint32 cached_has_bits = 0;
1802 // Prevent compiler warnings about cached_has_bits being unused
1803 (void) cached_has_bits;
1804
1805 clear_threshold();
1806 _internal_metadata_.Clear();
1807}
1808
1809#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1810const char* Thresholds::_InternalParse(const char* begin, const char* end, void* object,
1811 ::google::protobuf::internal::ParseContext* ctx) {
1812 auto msg = static_cast<Thresholds*>(object);
1813 ::google::protobuf::int32 size; (void)size;
1814 int depth; (void)depth;
1815 ::google::protobuf::uint32 tag;
1816 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1817 auto ptr = begin;
1818 while (ptr < end) {
1819 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1820 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1821 switch (tag >> 3) {
1822 // .dmi.WaterMarks upper = 1;
1823 case 1: {
1824 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1825 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1826 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1827 parser_till_end = ::dmi::WaterMarks::_InternalParse;
1828 object = msg->mutable_upper();
1829 if (size > end - ptr) goto len_delim_till_end;
1830 ptr += size;
1831 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1832 {parser_till_end, object}, ptr - size, ptr));
1833 break;
1834 }
1835 // .dmi.WaterMarks lower = 2;
1836 case 2: {
1837 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
1838 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1839 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1840 parser_till_end = ::dmi::WaterMarks::_InternalParse;
1841 object = msg->mutable_lower();
1842 if (size > end - ptr) goto len_delim_till_end;
1843 ptr += size;
1844 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1845 {parser_till_end, object}, ptr - size, ptr));
1846 break;
1847 }
1848 default: {
1849 handle_unusual:
1850 if ((tag & 7) == 4 || tag == 0) {
1851 ctx->EndGroup(tag);
1852 return ptr;
1853 }
1854 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1855 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1856 ptr = res.first;
1857 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1858 if (res.second) return ptr;
1859 }
1860 } // switch
1861 } // while
1862 return ptr;
1863len_delim_till_end:
1864 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1865 {parser_till_end, object}, size);
1866}
1867#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1868bool Thresholds::MergePartialFromCodedStream(
1869 ::google::protobuf::io::CodedInputStream* input) {
1870#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1871 ::google::protobuf::uint32 tag;
1872 // @@protoc_insertion_point(parse_start:dmi.Thresholds)
1873 for (;;) {
1874 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1875 tag = p.first;
1876 if (!p.second) goto handle_unusual;
1877 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1878 // .dmi.WaterMarks upper = 1;
1879 case 1: {
1880 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1881 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1882 input, mutable_upper()));
1883 } else {
1884 goto handle_unusual;
1885 }
1886 break;
1887 }
1888
1889 // .dmi.WaterMarks lower = 2;
1890 case 2: {
1891 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
1892 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1893 input, mutable_lower()));
1894 } else {
1895 goto handle_unusual;
1896 }
1897 break;
1898 }
1899
1900 default: {
1901 handle_unusual:
1902 if (tag == 0) {
1903 goto success;
1904 }
1905 DO_(::google::protobuf::internal::WireFormat::SkipField(
1906 input, tag, _internal_metadata_.mutable_unknown_fields()));
1907 break;
1908 }
1909 }
1910 }
1911success:
1912 // @@protoc_insertion_point(parse_success:dmi.Thresholds)
1913 return true;
1914failure:
1915 // @@protoc_insertion_point(parse_failure:dmi.Thresholds)
1916 return false;
1917#undef DO_
1918}
1919#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1920
1921void Thresholds::SerializeWithCachedSizes(
1922 ::google::protobuf::io::CodedOutputStream* output) const {
1923 // @@protoc_insertion_point(serialize_start:dmi.Thresholds)
1924 ::google::protobuf::uint32 cached_has_bits = 0;
1925 (void) cached_has_bits;
1926
1927 // .dmi.WaterMarks upper = 1;
1928 if (has_upper()) {
1929 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1930 1, HasBitSetters::upper(this), output);
1931 }
1932
1933 // .dmi.WaterMarks lower = 2;
1934 if (has_lower()) {
1935 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1936 2, HasBitSetters::lower(this), output);
1937 }
1938
1939 if (_internal_metadata_.have_unknown_fields()) {
1940 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1941 _internal_metadata_.unknown_fields(), output);
1942 }
1943 // @@protoc_insertion_point(serialize_end:dmi.Thresholds)
1944}
1945
1946::google::protobuf::uint8* Thresholds::InternalSerializeWithCachedSizesToArray(
1947 ::google::protobuf::uint8* target) const {
1948 // @@protoc_insertion_point(serialize_to_array_start:dmi.Thresholds)
1949 ::google::protobuf::uint32 cached_has_bits = 0;
1950 (void) cached_has_bits;
1951
1952 // .dmi.WaterMarks upper = 1;
1953 if (has_upper()) {
1954 target = ::google::protobuf::internal::WireFormatLite::
1955 InternalWriteMessageToArray(
1956 1, HasBitSetters::upper(this), target);
1957 }
1958
1959 // .dmi.WaterMarks lower = 2;
1960 if (has_lower()) {
1961 target = ::google::protobuf::internal::WireFormatLite::
1962 InternalWriteMessageToArray(
1963 2, HasBitSetters::lower(this), target);
1964 }
1965
1966 if (_internal_metadata_.have_unknown_fields()) {
1967 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1968 _internal_metadata_.unknown_fields(), target);
1969 }
1970 // @@protoc_insertion_point(serialize_to_array_end:dmi.Thresholds)
1971 return target;
1972}
1973
1974size_t Thresholds::ByteSizeLong() const {
1975// @@protoc_insertion_point(message_byte_size_start:dmi.Thresholds)
1976 size_t total_size = 0;
1977
1978 if (_internal_metadata_.have_unknown_fields()) {
1979 total_size +=
1980 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1981 _internal_metadata_.unknown_fields());
1982 }
1983 ::google::protobuf::uint32 cached_has_bits = 0;
1984 // Prevent compiler warnings about cached_has_bits being unused
1985 (void) cached_has_bits;
1986
1987 switch (threshold_case()) {
1988 // .dmi.WaterMarks upper = 1;
1989 case kUpper: {
1990 total_size += 1 +
1991 ::google::protobuf::internal::WireFormatLite::MessageSize(
1992 *threshold_.upper_);
1993 break;
1994 }
1995 // .dmi.WaterMarks lower = 2;
1996 case kLower: {
1997 total_size += 1 +
1998 ::google::protobuf::internal::WireFormatLite::MessageSize(
1999 *threshold_.lower_);
2000 break;
2001 }
2002 case THRESHOLD_NOT_SET: {
2003 break;
2004 }
2005 }
2006 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2007 SetCachedSize(cached_size);
2008 return total_size;
2009}
2010
2011void Thresholds::MergeFrom(const ::google::protobuf::Message& from) {
2012// @@protoc_insertion_point(generalized_merge_from_start:dmi.Thresholds)
2013 GOOGLE_DCHECK_NE(&from, this);
2014 const Thresholds* source =
2015 ::google::protobuf::DynamicCastToGenerated<Thresholds>(
2016 &from);
2017 if (source == nullptr) {
2018 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Thresholds)
2019 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2020 } else {
2021 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Thresholds)
2022 MergeFrom(*source);
2023 }
2024}
2025
2026void Thresholds::MergeFrom(const Thresholds& from) {
2027// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Thresholds)
2028 GOOGLE_DCHECK_NE(&from, this);
2029 _internal_metadata_.MergeFrom(from._internal_metadata_);
2030 ::google::protobuf::uint32 cached_has_bits = 0;
2031 (void) cached_has_bits;
2032
2033 switch (from.threshold_case()) {
2034 case kUpper: {
2035 mutable_upper()->::dmi::WaterMarks::MergeFrom(from.upper());
2036 break;
2037 }
2038 case kLower: {
2039 mutable_lower()->::dmi::WaterMarks::MergeFrom(from.lower());
2040 break;
2041 }
2042 case THRESHOLD_NOT_SET: {
2043 break;
2044 }
2045 }
2046}
2047
2048void Thresholds::CopyFrom(const ::google::protobuf::Message& from) {
2049// @@protoc_insertion_point(generalized_copy_from_start:dmi.Thresholds)
2050 if (&from == this) return;
2051 Clear();
2052 MergeFrom(from);
2053}
2054
2055void Thresholds::CopyFrom(const Thresholds& from) {
2056// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Thresholds)
2057 if (&from == this) return;
2058 Clear();
2059 MergeFrom(from);
2060}
2061
2062bool Thresholds::IsInitialized() const {
2063 return true;
2064}
2065
2066void Thresholds::Swap(Thresholds* other) {
2067 if (other == this) return;
2068 InternalSwap(other);
2069}
2070void Thresholds::InternalSwap(Thresholds* other) {
2071 using std::swap;
2072 _internal_metadata_.Swap(&other->_internal_metadata_);
2073 swap(threshold_, other->threshold_);
2074 swap(_oneof_case_[0], other->_oneof_case_[0]);
2075}
2076
2077::google::protobuf::Metadata Thresholds::GetMetadata() const {
2078 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
2079 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
2080}
2081
2082
2083// ===================================================================
2084
2085void ThresholdInformation::InitAsDefaultInstance() {
2086 ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->observed_value_ = const_cast< ::dmi::ValueType*>(
2087 ::dmi::ValueType::internal_default_instance());
2088 ::dmi::_ThresholdInformation_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>(
2089 ::dmi::Thresholds::internal_default_instance());
2090}
2091class ThresholdInformation::HasBitSetters {
2092 public:
2093 static const ::dmi::ValueType& observed_value(const ThresholdInformation* msg);
2094 static const ::dmi::Thresholds& thresholds(const ThresholdInformation* msg);
2095};
2096
2097const ::dmi::ValueType&
2098ThresholdInformation::HasBitSetters::observed_value(const ThresholdInformation* msg) {
2099 return *msg->observed_value_;
2100}
2101const ::dmi::Thresholds&
2102ThresholdInformation::HasBitSetters::thresholds(const ThresholdInformation* msg) {
2103 return *msg->thresholds_;
2104}
2105#if !defined(_MSC_VER) || _MSC_VER >= 1900
2106const int ThresholdInformation::kObservedValueFieldNumber;
2107const int ThresholdInformation::kThresholdsFieldNumber;
2108#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2109
2110ThresholdInformation::ThresholdInformation()
2111 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2112 SharedCtor();
2113 // @@protoc_insertion_point(constructor:dmi.ThresholdInformation)
2114}
2115ThresholdInformation::ThresholdInformation(const ThresholdInformation& from)
2116 : ::google::protobuf::Message(),
2117 _internal_metadata_(nullptr) {
2118 _internal_metadata_.MergeFrom(from._internal_metadata_);
2119 if (from.has_observed_value()) {
2120 observed_value_ = new ::dmi::ValueType(*from.observed_value_);
2121 } else {
2122 observed_value_ = nullptr;
2123 }
2124 if (from.has_thresholds()) {
2125 thresholds_ = new ::dmi::Thresholds(*from.thresholds_);
2126 } else {
2127 thresholds_ = nullptr;
2128 }
2129 // @@protoc_insertion_point(copy_constructor:dmi.ThresholdInformation)
2130}
2131
2132void ThresholdInformation::SharedCtor() {
2133 ::google::protobuf::internal::InitSCC(
2134 &scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2135 ::memset(&observed_value_, 0, static_cast<size_t>(
2136 reinterpret_cast<char*>(&thresholds_) -
2137 reinterpret_cast<char*>(&observed_value_)) + sizeof(thresholds_));
2138}
2139
2140ThresholdInformation::~ThresholdInformation() {
2141 // @@protoc_insertion_point(destructor:dmi.ThresholdInformation)
2142 SharedDtor();
2143}
2144
2145void ThresholdInformation::SharedDtor() {
2146 if (this != internal_default_instance()) delete observed_value_;
2147 if (this != internal_default_instance()) delete thresholds_;
2148}
2149
2150void ThresholdInformation::SetCachedSize(int size) const {
2151 _cached_size_.Set(size);
2152}
2153const ThresholdInformation& ThresholdInformation::default_instance() {
2154 ::google::protobuf::internal::InitSCC(&::scc_info_ThresholdInformation_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2155 return *internal_default_instance();
2156}
2157
2158
2159void ThresholdInformation::Clear() {
2160// @@protoc_insertion_point(message_clear_start:dmi.ThresholdInformation)
2161 ::google::protobuf::uint32 cached_has_bits = 0;
2162 // Prevent compiler warnings about cached_has_bits being unused
2163 (void) cached_has_bits;
2164
2165 if (GetArenaNoVirtual() == nullptr && observed_value_ != nullptr) {
2166 delete observed_value_;
2167 }
2168 observed_value_ = nullptr;
2169 if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) {
2170 delete thresholds_;
2171 }
2172 thresholds_ = nullptr;
2173 _internal_metadata_.Clear();
2174}
2175
2176#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2177const char* ThresholdInformation::_InternalParse(const char* begin, const char* end, void* object,
2178 ::google::protobuf::internal::ParseContext* ctx) {
2179 auto msg = static_cast<ThresholdInformation*>(object);
2180 ::google::protobuf::int32 size; (void)size;
2181 int depth; (void)depth;
2182 ::google::protobuf::uint32 tag;
2183 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2184 auto ptr = begin;
2185 while (ptr < end) {
2186 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2187 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2188 switch (tag >> 3) {
2189 // .dmi.ValueType observed_value = 1;
2190 case 1: {
2191 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2192 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2193 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2194 parser_till_end = ::dmi::ValueType::_InternalParse;
2195 object = msg->mutable_observed_value();
2196 if (size > end - ptr) goto len_delim_till_end;
2197 ptr += size;
2198 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2199 {parser_till_end, object}, ptr - size, ptr));
2200 break;
2201 }
2202 // .dmi.Thresholds thresholds = 2;
2203 case 2: {
2204 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
2205 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2206 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2207 parser_till_end = ::dmi::Thresholds::_InternalParse;
2208 object = msg->mutable_thresholds();
2209 if (size > end - ptr) goto len_delim_till_end;
2210 ptr += size;
2211 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2212 {parser_till_end, object}, ptr - size, ptr));
2213 break;
2214 }
2215 default: {
2216 handle_unusual:
2217 if ((tag & 7) == 4 || tag == 0) {
2218 ctx->EndGroup(tag);
2219 return ptr;
2220 }
2221 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2222 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2223 ptr = res.first;
2224 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2225 if (res.second) return ptr;
2226 }
2227 } // switch
2228 } // while
2229 return ptr;
2230len_delim_till_end:
2231 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2232 {parser_till_end, object}, size);
2233}
2234#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2235bool ThresholdInformation::MergePartialFromCodedStream(
2236 ::google::protobuf::io::CodedInputStream* input) {
2237#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2238 ::google::protobuf::uint32 tag;
2239 // @@protoc_insertion_point(parse_start:dmi.ThresholdInformation)
2240 for (;;) {
2241 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2242 tag = p.first;
2243 if (!p.second) goto handle_unusual;
2244 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2245 // .dmi.ValueType observed_value = 1;
2246 case 1: {
2247 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2248 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2249 input, mutable_observed_value()));
2250 } else {
2251 goto handle_unusual;
2252 }
2253 break;
2254 }
2255
2256 // .dmi.Thresholds thresholds = 2;
2257 case 2: {
2258 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
2259 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2260 input, mutable_thresholds()));
2261 } else {
2262 goto handle_unusual;
2263 }
2264 break;
2265 }
2266
2267 default: {
2268 handle_unusual:
2269 if (tag == 0) {
2270 goto success;
2271 }
2272 DO_(::google::protobuf::internal::WireFormat::SkipField(
2273 input, tag, _internal_metadata_.mutable_unknown_fields()));
2274 break;
2275 }
2276 }
2277 }
2278success:
2279 // @@protoc_insertion_point(parse_success:dmi.ThresholdInformation)
2280 return true;
2281failure:
2282 // @@protoc_insertion_point(parse_failure:dmi.ThresholdInformation)
2283 return false;
2284#undef DO_
2285}
2286#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2287
2288void ThresholdInformation::SerializeWithCachedSizes(
2289 ::google::protobuf::io::CodedOutputStream* output) const {
2290 // @@protoc_insertion_point(serialize_start:dmi.ThresholdInformation)
2291 ::google::protobuf::uint32 cached_has_bits = 0;
2292 (void) cached_has_bits;
2293
2294 // .dmi.ValueType observed_value = 1;
2295 if (this->has_observed_value()) {
2296 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2297 1, HasBitSetters::observed_value(this), output);
2298 }
2299
2300 // .dmi.Thresholds thresholds = 2;
2301 if (this->has_thresholds()) {
2302 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2303 2, HasBitSetters::thresholds(this), output);
2304 }
2305
2306 if (_internal_metadata_.have_unknown_fields()) {
2307 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2308 _internal_metadata_.unknown_fields(), output);
2309 }
2310 // @@protoc_insertion_point(serialize_end:dmi.ThresholdInformation)
2311}
2312
2313::google::protobuf::uint8* ThresholdInformation::InternalSerializeWithCachedSizesToArray(
2314 ::google::protobuf::uint8* target) const {
2315 // @@protoc_insertion_point(serialize_to_array_start:dmi.ThresholdInformation)
2316 ::google::protobuf::uint32 cached_has_bits = 0;
2317 (void) cached_has_bits;
2318
2319 // .dmi.ValueType observed_value = 1;
2320 if (this->has_observed_value()) {
2321 target = ::google::protobuf::internal::WireFormatLite::
2322 InternalWriteMessageToArray(
2323 1, HasBitSetters::observed_value(this), target);
2324 }
2325
2326 // .dmi.Thresholds thresholds = 2;
2327 if (this->has_thresholds()) {
2328 target = ::google::protobuf::internal::WireFormatLite::
2329 InternalWriteMessageToArray(
2330 2, HasBitSetters::thresholds(this), target);
2331 }
2332
2333 if (_internal_metadata_.have_unknown_fields()) {
2334 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2335 _internal_metadata_.unknown_fields(), target);
2336 }
2337 // @@protoc_insertion_point(serialize_to_array_end:dmi.ThresholdInformation)
2338 return target;
2339}
2340
2341size_t ThresholdInformation::ByteSizeLong() const {
2342// @@protoc_insertion_point(message_byte_size_start:dmi.ThresholdInformation)
2343 size_t total_size = 0;
2344
2345 if (_internal_metadata_.have_unknown_fields()) {
2346 total_size +=
2347 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2348 _internal_metadata_.unknown_fields());
2349 }
2350 ::google::protobuf::uint32 cached_has_bits = 0;
2351 // Prevent compiler warnings about cached_has_bits being unused
2352 (void) cached_has_bits;
2353
2354 // .dmi.ValueType observed_value = 1;
2355 if (this->has_observed_value()) {
2356 total_size += 1 +
2357 ::google::protobuf::internal::WireFormatLite::MessageSize(
2358 *observed_value_);
2359 }
2360
2361 // .dmi.Thresholds thresholds = 2;
2362 if (this->has_thresholds()) {
2363 total_size += 1 +
2364 ::google::protobuf::internal::WireFormatLite::MessageSize(
2365 *thresholds_);
2366 }
2367
2368 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2369 SetCachedSize(cached_size);
2370 return total_size;
2371}
2372
2373void ThresholdInformation::MergeFrom(const ::google::protobuf::Message& from) {
2374// @@protoc_insertion_point(generalized_merge_from_start:dmi.ThresholdInformation)
2375 GOOGLE_DCHECK_NE(&from, this);
2376 const ThresholdInformation* source =
2377 ::google::protobuf::DynamicCastToGenerated<ThresholdInformation>(
2378 &from);
2379 if (source == nullptr) {
2380 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ThresholdInformation)
2381 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2382 } else {
2383 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ThresholdInformation)
2384 MergeFrom(*source);
2385 }
2386}
2387
2388void ThresholdInformation::MergeFrom(const ThresholdInformation& from) {
2389// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ThresholdInformation)
2390 GOOGLE_DCHECK_NE(&from, this);
2391 _internal_metadata_.MergeFrom(from._internal_metadata_);
2392 ::google::protobuf::uint32 cached_has_bits = 0;
2393 (void) cached_has_bits;
2394
2395 if (from.has_observed_value()) {
2396 mutable_observed_value()->::dmi::ValueType::MergeFrom(from.observed_value());
2397 }
2398 if (from.has_thresholds()) {
2399 mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds());
2400 }
2401}
2402
2403void ThresholdInformation::CopyFrom(const ::google::protobuf::Message& from) {
2404// @@protoc_insertion_point(generalized_copy_from_start:dmi.ThresholdInformation)
2405 if (&from == this) return;
2406 Clear();
2407 MergeFrom(from);
2408}
2409
2410void ThresholdInformation::CopyFrom(const ThresholdInformation& from) {
2411// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ThresholdInformation)
2412 if (&from == this) return;
2413 Clear();
2414 MergeFrom(from);
2415}
2416
2417bool ThresholdInformation::IsInitialized() const {
2418 return true;
2419}
2420
2421void ThresholdInformation::Swap(ThresholdInformation* other) {
2422 if (other == this) return;
2423 InternalSwap(other);
2424}
2425void ThresholdInformation::InternalSwap(ThresholdInformation* other) {
2426 using std::swap;
2427 _internal_metadata_.Swap(&other->_internal_metadata_);
2428 swap(observed_value_, other->observed_value_);
2429 swap(thresholds_, other->thresholds_);
2430}
2431
2432::google::protobuf::Metadata ThresholdInformation::GetMetadata() const {
2433 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
2434 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
2435}
2436
2437
2438// ===================================================================
2439
2440void EventCfg::InitAsDefaultInstance() {
2441 ::dmi::_EventCfg_default_instance_._instance.get_mutable()->thresholds_ = const_cast< ::dmi::Thresholds*>(
2442 ::dmi::Thresholds::internal_default_instance());
amit.ghosh7a093bd2023-03-07 16:31:56 +01002443 ::dmi::_EventCfg_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
2444 ::dmi::Uuid::internal_default_instance());
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302445}
2446class EventCfg::HasBitSetters {
2447 public:
2448 static const ::dmi::Thresholds& thresholds(const EventCfg* msg);
amit.ghosh7a093bd2023-03-07 16:31:56 +01002449 static const ::dmi::Uuid& component_uuid(const EventCfg* msg);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302450};
2451
2452const ::dmi::Thresholds&
2453EventCfg::HasBitSetters::thresholds(const EventCfg* msg) {
2454 return *msg->thresholds_;
2455}
amit.ghosh7a093bd2023-03-07 16:31:56 +01002456const ::dmi::Uuid&
2457EventCfg::HasBitSetters::component_uuid(const EventCfg* msg) {
2458 return *msg->component_uuid_;
2459}
2460void EventCfg::clear_component_uuid() {
2461 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2462 delete component_uuid_;
2463 }
2464 component_uuid_ = nullptr;
2465}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302466#if !defined(_MSC_VER) || _MSC_VER >= 1900
2467const int EventCfg::kEventIdFieldNumber;
2468const int EventCfg::kIsConfiguredFieldNumber;
2469const int EventCfg::kThresholdsFieldNumber;
amit.ghosh7a093bd2023-03-07 16:31:56 +01002470const int EventCfg::kComponentUuidFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302471#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2472
2473EventCfg::EventCfg()
2474 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2475 SharedCtor();
2476 // @@protoc_insertion_point(constructor:dmi.EventCfg)
2477}
2478EventCfg::EventCfg(const EventCfg& from)
2479 : ::google::protobuf::Message(),
2480 _internal_metadata_(nullptr) {
2481 _internal_metadata_.MergeFrom(from._internal_metadata_);
2482 if (from.has_thresholds()) {
2483 thresholds_ = new ::dmi::Thresholds(*from.thresholds_);
2484 } else {
2485 thresholds_ = nullptr;
2486 }
amit.ghosh7a093bd2023-03-07 16:31:56 +01002487 if (from.has_component_uuid()) {
2488 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
2489 } else {
2490 component_uuid_ = nullptr;
2491 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302492 ::memcpy(&event_id_, &from.event_id_,
2493 static_cast<size_t>(reinterpret_cast<char*>(&is_configured_) -
2494 reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_));
2495 // @@protoc_insertion_point(copy_constructor:dmi.EventCfg)
2496}
2497
2498void EventCfg::SharedCtor() {
2499 ::google::protobuf::internal::InitSCC(
2500 &scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2501 ::memset(&thresholds_, 0, static_cast<size_t>(
2502 reinterpret_cast<char*>(&is_configured_) -
2503 reinterpret_cast<char*>(&thresholds_)) + sizeof(is_configured_));
2504}
2505
2506EventCfg::~EventCfg() {
2507 // @@protoc_insertion_point(destructor:dmi.EventCfg)
2508 SharedDtor();
2509}
2510
2511void EventCfg::SharedDtor() {
2512 if (this != internal_default_instance()) delete thresholds_;
amit.ghosh7a093bd2023-03-07 16:31:56 +01002513 if (this != internal_default_instance()) delete component_uuid_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302514}
2515
2516void EventCfg::SetCachedSize(int size) const {
2517 _cached_size_.Set(size);
2518}
2519const EventCfg& EventCfg::default_instance() {
2520 ::google::protobuf::internal::InitSCC(&::scc_info_EventCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2521 return *internal_default_instance();
2522}
2523
2524
2525void EventCfg::Clear() {
2526// @@protoc_insertion_point(message_clear_start:dmi.EventCfg)
2527 ::google::protobuf::uint32 cached_has_bits = 0;
2528 // Prevent compiler warnings about cached_has_bits being unused
2529 (void) cached_has_bits;
2530
2531 if (GetArenaNoVirtual() == nullptr && thresholds_ != nullptr) {
2532 delete thresholds_;
2533 }
2534 thresholds_ = nullptr;
amit.ghosh7a093bd2023-03-07 16:31:56 +01002535 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
2536 delete component_uuid_;
2537 }
2538 component_uuid_ = nullptr;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302539 ::memset(&event_id_, 0, static_cast<size_t>(
2540 reinterpret_cast<char*>(&is_configured_) -
2541 reinterpret_cast<char*>(&event_id_)) + sizeof(is_configured_));
2542 _internal_metadata_.Clear();
2543}
2544
2545#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2546const char* EventCfg::_InternalParse(const char* begin, const char* end, void* object,
2547 ::google::protobuf::internal::ParseContext* ctx) {
2548 auto msg = static_cast<EventCfg*>(object);
2549 ::google::protobuf::int32 size; (void)size;
2550 int depth; (void)depth;
2551 ::google::protobuf::uint32 tag;
2552 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2553 auto ptr = begin;
2554 while (ptr < end) {
2555 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2556 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2557 switch (tag >> 3) {
2558 // .dmi.EventIds event_id = 1;
2559 case 1: {
2560 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2561 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2562 msg->set_event_id(static_cast<::dmi::EventIds>(val));
2563 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2564 break;
2565 }
2566 // bool is_configured = 2;
2567 case 2: {
2568 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2569 msg->set_is_configured(::google::protobuf::internal::ReadVarint(&ptr));
2570 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2571 break;
2572 }
2573 // .dmi.Thresholds thresholds = 3;
2574 case 3: {
2575 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
2576 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2577 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2578 parser_till_end = ::dmi::Thresholds::_InternalParse;
2579 object = msg->mutable_thresholds();
2580 if (size > end - ptr) goto len_delim_till_end;
2581 ptr += size;
2582 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2583 {parser_till_end, object}, ptr - size, ptr));
2584 break;
2585 }
amit.ghosh7a093bd2023-03-07 16:31:56 +01002586 // .dmi.Uuid component_uuid = 4;
2587 case 4: {
2588 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
2589 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2590 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2591 parser_till_end = ::dmi::Uuid::_InternalParse;
2592 object = msg->mutable_component_uuid();
2593 if (size > end - ptr) goto len_delim_till_end;
2594 ptr += size;
2595 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2596 {parser_till_end, object}, ptr - size, ptr));
2597 break;
2598 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302599 default: {
2600 handle_unusual:
2601 if ((tag & 7) == 4 || tag == 0) {
2602 ctx->EndGroup(tag);
2603 return ptr;
2604 }
2605 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2606 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2607 ptr = res.first;
2608 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2609 if (res.second) return ptr;
2610 }
2611 } // switch
2612 } // while
2613 return ptr;
2614len_delim_till_end:
2615 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2616 {parser_till_end, object}, size);
2617}
2618#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2619bool EventCfg::MergePartialFromCodedStream(
2620 ::google::protobuf::io::CodedInputStream* input) {
2621#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2622 ::google::protobuf::uint32 tag;
2623 // @@protoc_insertion_point(parse_start:dmi.EventCfg)
2624 for (;;) {
2625 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2626 tag = p.first;
2627 if (!p.second) goto handle_unusual;
2628 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2629 // .dmi.EventIds event_id = 1;
2630 case 1: {
2631 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2632 int value = 0;
2633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2634 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2635 input, &value)));
2636 set_event_id(static_cast< ::dmi::EventIds >(value));
2637 } else {
2638 goto handle_unusual;
2639 }
2640 break;
2641 }
2642
2643 // bool is_configured = 2;
2644 case 2: {
2645 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2646
2647 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2648 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2649 input, &is_configured_)));
2650 } else {
2651 goto handle_unusual;
2652 }
2653 break;
2654 }
2655
2656 // .dmi.Thresholds thresholds = 3;
2657 case 3: {
2658 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
2659 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2660 input, mutable_thresholds()));
2661 } else {
2662 goto handle_unusual;
2663 }
2664 break;
2665 }
2666
amit.ghosh7a093bd2023-03-07 16:31:56 +01002667 // .dmi.Uuid component_uuid = 4;
2668 case 4: {
2669 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
2670 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2671 input, mutable_component_uuid()));
2672 } else {
2673 goto handle_unusual;
2674 }
2675 break;
2676 }
2677
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302678 default: {
2679 handle_unusual:
2680 if (tag == 0) {
2681 goto success;
2682 }
2683 DO_(::google::protobuf::internal::WireFormat::SkipField(
2684 input, tag, _internal_metadata_.mutable_unknown_fields()));
2685 break;
2686 }
2687 }
2688 }
2689success:
2690 // @@protoc_insertion_point(parse_success:dmi.EventCfg)
2691 return true;
2692failure:
2693 // @@protoc_insertion_point(parse_failure:dmi.EventCfg)
2694 return false;
2695#undef DO_
2696}
2697#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2698
2699void EventCfg::SerializeWithCachedSizes(
2700 ::google::protobuf::io::CodedOutputStream* output) const {
2701 // @@protoc_insertion_point(serialize_start:dmi.EventCfg)
2702 ::google::protobuf::uint32 cached_has_bits = 0;
2703 (void) cached_has_bits;
2704
2705 // .dmi.EventIds event_id = 1;
2706 if (this->event_id() != 0) {
2707 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2708 1, this->event_id(), output);
2709 }
2710
2711 // bool is_configured = 2;
2712 if (this->is_configured() != 0) {
2713 ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_configured(), output);
2714 }
2715
2716 // .dmi.Thresholds thresholds = 3;
2717 if (this->has_thresholds()) {
2718 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2719 3, HasBitSetters::thresholds(this), output);
2720 }
2721
amit.ghosh7a093bd2023-03-07 16:31:56 +01002722 // .dmi.Uuid component_uuid = 4;
2723 if (this->has_component_uuid()) {
2724 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2725 4, HasBitSetters::component_uuid(this), output);
2726 }
2727
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302728 if (_internal_metadata_.have_unknown_fields()) {
2729 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2730 _internal_metadata_.unknown_fields(), output);
2731 }
2732 // @@protoc_insertion_point(serialize_end:dmi.EventCfg)
2733}
2734
2735::google::protobuf::uint8* EventCfg::InternalSerializeWithCachedSizesToArray(
2736 ::google::protobuf::uint8* target) const {
2737 // @@protoc_insertion_point(serialize_to_array_start:dmi.EventCfg)
2738 ::google::protobuf::uint32 cached_has_bits = 0;
2739 (void) cached_has_bits;
2740
2741 // .dmi.EventIds event_id = 1;
2742 if (this->event_id() != 0) {
2743 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2744 1, this->event_id(), target);
2745 }
2746
2747 // bool is_configured = 2;
2748 if (this->is_configured() != 0) {
2749 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_configured(), target);
2750 }
2751
2752 // .dmi.Thresholds thresholds = 3;
2753 if (this->has_thresholds()) {
2754 target = ::google::protobuf::internal::WireFormatLite::
2755 InternalWriteMessageToArray(
2756 3, HasBitSetters::thresholds(this), target);
2757 }
2758
amit.ghosh7a093bd2023-03-07 16:31:56 +01002759 // .dmi.Uuid component_uuid = 4;
2760 if (this->has_component_uuid()) {
2761 target = ::google::protobuf::internal::WireFormatLite::
2762 InternalWriteMessageToArray(
2763 4, HasBitSetters::component_uuid(this), target);
2764 }
2765
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302766 if (_internal_metadata_.have_unknown_fields()) {
2767 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2768 _internal_metadata_.unknown_fields(), target);
2769 }
2770 // @@protoc_insertion_point(serialize_to_array_end:dmi.EventCfg)
2771 return target;
2772}
2773
2774size_t EventCfg::ByteSizeLong() const {
2775// @@protoc_insertion_point(message_byte_size_start:dmi.EventCfg)
2776 size_t total_size = 0;
2777
2778 if (_internal_metadata_.have_unknown_fields()) {
2779 total_size +=
2780 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2781 _internal_metadata_.unknown_fields());
2782 }
2783 ::google::protobuf::uint32 cached_has_bits = 0;
2784 // Prevent compiler warnings about cached_has_bits being unused
2785 (void) cached_has_bits;
2786
2787 // .dmi.Thresholds thresholds = 3;
2788 if (this->has_thresholds()) {
2789 total_size += 1 +
2790 ::google::protobuf::internal::WireFormatLite::MessageSize(
2791 *thresholds_);
2792 }
2793
amit.ghosh7a093bd2023-03-07 16:31:56 +01002794 // .dmi.Uuid component_uuid = 4;
2795 if (this->has_component_uuid()) {
2796 total_size += 1 +
2797 ::google::protobuf::internal::WireFormatLite::MessageSize(
2798 *component_uuid_);
2799 }
2800
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302801 // .dmi.EventIds event_id = 1;
2802 if (this->event_id() != 0) {
2803 total_size += 1 +
2804 ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id());
2805 }
2806
2807 // bool is_configured = 2;
2808 if (this->is_configured() != 0) {
2809 total_size += 1 + 1;
2810 }
2811
2812 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2813 SetCachedSize(cached_size);
2814 return total_size;
2815}
2816
2817void EventCfg::MergeFrom(const ::google::protobuf::Message& from) {
2818// @@protoc_insertion_point(generalized_merge_from_start:dmi.EventCfg)
2819 GOOGLE_DCHECK_NE(&from, this);
2820 const EventCfg* source =
2821 ::google::protobuf::DynamicCastToGenerated<EventCfg>(
2822 &from);
2823 if (source == nullptr) {
2824 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventCfg)
2825 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2826 } else {
2827 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventCfg)
2828 MergeFrom(*source);
2829 }
2830}
2831
2832void EventCfg::MergeFrom(const EventCfg& from) {
2833// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventCfg)
2834 GOOGLE_DCHECK_NE(&from, this);
2835 _internal_metadata_.MergeFrom(from._internal_metadata_);
2836 ::google::protobuf::uint32 cached_has_bits = 0;
2837 (void) cached_has_bits;
2838
2839 if (from.has_thresholds()) {
2840 mutable_thresholds()->::dmi::Thresholds::MergeFrom(from.thresholds());
2841 }
amit.ghosh7a093bd2023-03-07 16:31:56 +01002842 if (from.has_component_uuid()) {
2843 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
2844 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302845 if (from.event_id() != 0) {
2846 set_event_id(from.event_id());
2847 }
2848 if (from.is_configured() != 0) {
2849 set_is_configured(from.is_configured());
2850 }
2851}
2852
2853void EventCfg::CopyFrom(const ::google::protobuf::Message& from) {
2854// @@protoc_insertion_point(generalized_copy_from_start:dmi.EventCfg)
2855 if (&from == this) return;
2856 Clear();
2857 MergeFrom(from);
2858}
2859
2860void EventCfg::CopyFrom(const EventCfg& from) {
2861// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventCfg)
2862 if (&from == this) return;
2863 Clear();
2864 MergeFrom(from);
2865}
2866
2867bool EventCfg::IsInitialized() const {
2868 return true;
2869}
2870
2871void EventCfg::Swap(EventCfg* other) {
2872 if (other == this) return;
2873 InternalSwap(other);
2874}
2875void EventCfg::InternalSwap(EventCfg* other) {
2876 using std::swap;
2877 _internal_metadata_.Swap(&other->_internal_metadata_);
2878 swap(thresholds_, other->thresholds_);
amit.ghosh7a093bd2023-03-07 16:31:56 +01002879 swap(component_uuid_, other->component_uuid_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302880 swap(event_id_, other->event_id_);
2881 swap(is_configured_, other->is_configured_);
2882}
2883
2884::google::protobuf::Metadata EventCfg::GetMetadata() const {
2885 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
2886 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
2887}
2888
2889
2890// ===================================================================
2891
2892void EventsCfg::InitAsDefaultInstance() {
2893}
2894class EventsCfg::HasBitSetters {
2895 public:
2896};
2897
2898#if !defined(_MSC_VER) || _MSC_VER >= 1900
2899const int EventsCfg::kItemsFieldNumber;
2900#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2901
2902EventsCfg::EventsCfg()
2903 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2904 SharedCtor();
2905 // @@protoc_insertion_point(constructor:dmi.EventsCfg)
2906}
2907EventsCfg::EventsCfg(const EventsCfg& from)
2908 : ::google::protobuf::Message(),
2909 _internal_metadata_(nullptr),
2910 items_(from.items_) {
2911 _internal_metadata_.MergeFrom(from._internal_metadata_);
2912 // @@protoc_insertion_point(copy_constructor:dmi.EventsCfg)
2913}
2914
2915void EventsCfg::SharedCtor() {
2916 ::google::protobuf::internal::InitSCC(
2917 &scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2918}
2919
2920EventsCfg::~EventsCfg() {
2921 // @@protoc_insertion_point(destructor:dmi.EventsCfg)
2922 SharedDtor();
2923}
2924
2925void EventsCfg::SharedDtor() {
2926}
2927
2928void EventsCfg::SetCachedSize(int size) const {
2929 _cached_size_.Set(size);
2930}
2931const EventsCfg& EventsCfg::default_instance() {
2932 ::google::protobuf::internal::InitSCC(&::scc_info_EventsCfg_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
2933 return *internal_default_instance();
2934}
2935
2936
2937void EventsCfg::Clear() {
2938// @@protoc_insertion_point(message_clear_start:dmi.EventsCfg)
2939 ::google::protobuf::uint32 cached_has_bits = 0;
2940 // Prevent compiler warnings about cached_has_bits being unused
2941 (void) cached_has_bits;
2942
2943 items_.Clear();
2944 _internal_metadata_.Clear();
2945}
2946
2947#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2948const char* EventsCfg::_InternalParse(const char* begin, const char* end, void* object,
2949 ::google::protobuf::internal::ParseContext* ctx) {
2950 auto msg = static_cast<EventsCfg*>(object);
2951 ::google::protobuf::int32 size; (void)size;
2952 int depth; (void)depth;
2953 ::google::protobuf::uint32 tag;
2954 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2955 auto ptr = begin;
2956 while (ptr < end) {
2957 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2958 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2959 switch (tag >> 3) {
2960 // repeated .dmi.EventCfg items = 1;
2961 case 1: {
2962 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2963 do {
2964 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2965 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2966 parser_till_end = ::dmi::EventCfg::_InternalParse;
2967 object = msg->add_items();
2968 if (size > end - ptr) goto len_delim_till_end;
2969 ptr += size;
2970 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2971 {parser_till_end, object}, ptr - size, ptr));
2972 if (ptr >= end) break;
2973 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1));
2974 break;
2975 }
2976 default: {
2977 handle_unusual:
2978 if ((tag & 7) == 4 || tag == 0) {
2979 ctx->EndGroup(tag);
2980 return ptr;
2981 }
2982 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2983 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2984 ptr = res.first;
2985 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2986 if (res.second) return ptr;
2987 }
2988 } // switch
2989 } // while
2990 return ptr;
2991len_delim_till_end:
2992 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2993 {parser_till_end, object}, size);
2994}
2995#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2996bool EventsCfg::MergePartialFromCodedStream(
2997 ::google::protobuf::io::CodedInputStream* input) {
2998#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2999 ::google::protobuf::uint32 tag;
3000 // @@protoc_insertion_point(parse_start:dmi.EventsCfg)
3001 for (;;) {
3002 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3003 tag = p.first;
3004 if (!p.second) goto handle_unusual;
3005 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3006 // repeated .dmi.EventCfg items = 1;
3007 case 1: {
3008 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3009 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3010 input, add_items()));
3011 } else {
3012 goto handle_unusual;
3013 }
3014 break;
3015 }
3016
3017 default: {
3018 handle_unusual:
3019 if (tag == 0) {
3020 goto success;
3021 }
3022 DO_(::google::protobuf::internal::WireFormat::SkipField(
3023 input, tag, _internal_metadata_.mutable_unknown_fields()));
3024 break;
3025 }
3026 }
3027 }
3028success:
3029 // @@protoc_insertion_point(parse_success:dmi.EventsCfg)
3030 return true;
3031failure:
3032 // @@protoc_insertion_point(parse_failure:dmi.EventsCfg)
3033 return false;
3034#undef DO_
3035}
3036#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3037
3038void EventsCfg::SerializeWithCachedSizes(
3039 ::google::protobuf::io::CodedOutputStream* output) const {
3040 // @@protoc_insertion_point(serialize_start:dmi.EventsCfg)
3041 ::google::protobuf::uint32 cached_has_bits = 0;
3042 (void) cached_has_bits;
3043
3044 // repeated .dmi.EventCfg items = 1;
3045 for (unsigned int i = 0,
3046 n = static_cast<unsigned int>(this->items_size()); i < n; i++) {
3047 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3048 1,
3049 this->items(static_cast<int>(i)),
3050 output);
3051 }
3052
3053 if (_internal_metadata_.have_unknown_fields()) {
3054 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3055 _internal_metadata_.unknown_fields(), output);
3056 }
3057 // @@protoc_insertion_point(serialize_end:dmi.EventsCfg)
3058}
3059
3060::google::protobuf::uint8* EventsCfg::InternalSerializeWithCachedSizesToArray(
3061 ::google::protobuf::uint8* target) const {
3062 // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsCfg)
3063 ::google::protobuf::uint32 cached_has_bits = 0;
3064 (void) cached_has_bits;
3065
3066 // repeated .dmi.EventCfg items = 1;
3067 for (unsigned int i = 0,
3068 n = static_cast<unsigned int>(this->items_size()); i < n; i++) {
3069 target = ::google::protobuf::internal::WireFormatLite::
3070 InternalWriteMessageToArray(
3071 1, this->items(static_cast<int>(i)), target);
3072 }
3073
3074 if (_internal_metadata_.have_unknown_fields()) {
3075 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3076 _internal_metadata_.unknown_fields(), target);
3077 }
3078 // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsCfg)
3079 return target;
3080}
3081
3082size_t EventsCfg::ByteSizeLong() const {
3083// @@protoc_insertion_point(message_byte_size_start:dmi.EventsCfg)
3084 size_t total_size = 0;
3085
3086 if (_internal_metadata_.have_unknown_fields()) {
3087 total_size +=
3088 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3089 _internal_metadata_.unknown_fields());
3090 }
3091 ::google::protobuf::uint32 cached_has_bits = 0;
3092 // Prevent compiler warnings about cached_has_bits being unused
3093 (void) cached_has_bits;
3094
3095 // repeated .dmi.EventCfg items = 1;
3096 {
3097 unsigned int count = static_cast<unsigned int>(this->items_size());
3098 total_size += 1UL * count;
3099 for (unsigned int i = 0; i < count; i++) {
3100 total_size +=
3101 ::google::protobuf::internal::WireFormatLite::MessageSize(
3102 this->items(static_cast<int>(i)));
3103 }
3104 }
3105
3106 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3107 SetCachedSize(cached_size);
3108 return total_size;
3109}
3110
3111void EventsCfg::MergeFrom(const ::google::protobuf::Message& from) {
3112// @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsCfg)
3113 GOOGLE_DCHECK_NE(&from, this);
3114 const EventsCfg* source =
3115 ::google::protobuf::DynamicCastToGenerated<EventsCfg>(
3116 &from);
3117 if (source == nullptr) {
3118 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsCfg)
3119 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3120 } else {
3121 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsCfg)
3122 MergeFrom(*source);
3123 }
3124}
3125
3126void EventsCfg::MergeFrom(const EventsCfg& from) {
3127// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsCfg)
3128 GOOGLE_DCHECK_NE(&from, this);
3129 _internal_metadata_.MergeFrom(from._internal_metadata_);
3130 ::google::protobuf::uint32 cached_has_bits = 0;
3131 (void) cached_has_bits;
3132
3133 items_.MergeFrom(from.items_);
3134}
3135
3136void EventsCfg::CopyFrom(const ::google::protobuf::Message& from) {
3137// @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsCfg)
3138 if (&from == this) return;
3139 Clear();
3140 MergeFrom(from);
3141}
3142
3143void EventsCfg::CopyFrom(const EventsCfg& from) {
3144// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsCfg)
3145 if (&from == this) return;
3146 Clear();
3147 MergeFrom(from);
3148}
3149
3150bool EventsCfg::IsInitialized() const {
3151 return true;
3152}
3153
3154void EventsCfg::Swap(EventsCfg* other) {
3155 if (other == this) return;
3156 InternalSwap(other);
3157}
3158void EventsCfg::InternalSwap(EventsCfg* other) {
3159 using std::swap;
3160 _internal_metadata_.Swap(&other->_internal_metadata_);
3161 CastToBase(&items_)->InternalSwap(CastToBase(&other->items_));
3162}
3163
3164::google::protobuf::Metadata EventsCfg::GetMetadata() const {
3165 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
3166 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
3167}
3168
3169
3170// ===================================================================
3171
3172void ListEventsResponse::InitAsDefaultInstance() {
3173 ::dmi::_ListEventsResponse_default_instance_._instance.get_mutable()->events_ = const_cast< ::dmi::EventsCfg*>(
3174 ::dmi::EventsCfg::internal_default_instance());
3175}
3176class ListEventsResponse::HasBitSetters {
3177 public:
3178 static const ::dmi::EventsCfg& events(const ListEventsResponse* msg);
3179};
3180
3181const ::dmi::EventsCfg&
3182ListEventsResponse::HasBitSetters::events(const ListEventsResponse* msg) {
3183 return *msg->events_;
3184}
3185#if !defined(_MSC_VER) || _MSC_VER >= 1900
3186const int ListEventsResponse::kStatusFieldNumber;
3187const int ListEventsResponse::kReasonFieldNumber;
3188const int ListEventsResponse::kEventsFieldNumber;
3189const int ListEventsResponse::kReasonDetailFieldNumber;
3190#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3191
3192ListEventsResponse::ListEventsResponse()
3193 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3194 SharedCtor();
3195 // @@protoc_insertion_point(constructor:dmi.ListEventsResponse)
3196}
3197ListEventsResponse::ListEventsResponse(const ListEventsResponse& from)
3198 : ::google::protobuf::Message(),
3199 _internal_metadata_(nullptr) {
3200 _internal_metadata_.MergeFrom(from._internal_metadata_);
3201 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3202 if (from.reason_detail().size() > 0) {
3203 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3204 }
3205 if (from.has_events()) {
3206 events_ = new ::dmi::EventsCfg(*from.events_);
3207 } else {
3208 events_ = nullptr;
3209 }
3210 ::memcpy(&status_, &from.status_,
3211 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
3212 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3213 // @@protoc_insertion_point(copy_constructor:dmi.ListEventsResponse)
3214}
3215
3216void ListEventsResponse::SharedCtor() {
3217 ::google::protobuf::internal::InitSCC(
3218 &scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
3219 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3220 ::memset(&events_, 0, static_cast<size_t>(
3221 reinterpret_cast<char*>(&reason_) -
3222 reinterpret_cast<char*>(&events_)) + sizeof(reason_));
3223}
3224
3225ListEventsResponse::~ListEventsResponse() {
3226 // @@protoc_insertion_point(destructor:dmi.ListEventsResponse)
3227 SharedDtor();
3228}
3229
3230void ListEventsResponse::SharedDtor() {
3231 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3232 if (this != internal_default_instance()) delete events_;
3233}
3234
3235void ListEventsResponse::SetCachedSize(int size) const {
3236 _cached_size_.Set(size);
3237}
3238const ListEventsResponse& ListEventsResponse::default_instance() {
3239 ::google::protobuf::internal::InitSCC(&::scc_info_ListEventsResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
3240 return *internal_default_instance();
3241}
3242
3243
3244void ListEventsResponse::Clear() {
3245// @@protoc_insertion_point(message_clear_start:dmi.ListEventsResponse)
3246 ::google::protobuf::uint32 cached_has_bits = 0;
3247 // Prevent compiler warnings about cached_has_bits being unused
3248 (void) cached_has_bits;
3249
3250 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3251 if (GetArenaNoVirtual() == nullptr && events_ != nullptr) {
3252 delete events_;
3253 }
3254 events_ = nullptr;
3255 ::memset(&status_, 0, static_cast<size_t>(
3256 reinterpret_cast<char*>(&reason_) -
3257 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
3258 _internal_metadata_.Clear();
3259}
3260
3261#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3262const char* ListEventsResponse::_InternalParse(const char* begin, const char* end, void* object,
3263 ::google::protobuf::internal::ParseContext* ctx) {
3264 auto msg = static_cast<ListEventsResponse*>(object);
3265 ::google::protobuf::int32 size; (void)size;
3266 int depth; (void)depth;
3267 ::google::protobuf::uint32 tag;
3268 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3269 auto ptr = begin;
3270 while (ptr < end) {
3271 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3272 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3273 switch (tag >> 3) {
3274 // .dmi.Status status = 1;
3275 case 1: {
3276 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3277 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3278 msg->set_status(static_cast<::dmi::Status>(val));
3279 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3280 break;
3281 }
3282 // .dmi.ListEventsResponse.Reason reason = 2;
3283 case 2: {
3284 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3285 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3286 msg->set_reason(static_cast<::dmi::ListEventsResponse_Reason>(val));
3287 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3288 break;
3289 }
3290 // .dmi.EventsCfg events = 3;
3291 case 3: {
3292 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
3293 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3294 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3295 parser_till_end = ::dmi::EventsCfg::_InternalParse;
3296 object = msg->mutable_events();
3297 if (size > end - ptr) goto len_delim_till_end;
3298 ptr += size;
3299 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3300 {parser_till_end, object}, ptr - size, ptr));
3301 break;
3302 }
3303 // string reason_detail = 4;
3304 case 4: {
3305 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3306 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3307 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3308 ctx->extra_parse_data().SetFieldName("dmi.ListEventsResponse.reason_detail");
3309 object = msg->mutable_reason_detail();
3310 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3311 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3312 goto string_till_end;
3313 }
3314 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3315 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3316 ptr += size;
3317 break;
3318 }
3319 default: {
3320 handle_unusual:
3321 if ((tag & 7) == 4 || tag == 0) {
3322 ctx->EndGroup(tag);
3323 return ptr;
3324 }
3325 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3326 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3327 ptr = res.first;
3328 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3329 if (res.second) return ptr;
3330 }
3331 } // switch
3332 } // while
3333 return ptr;
3334string_till_end:
3335 static_cast<::std::string*>(object)->clear();
3336 static_cast<::std::string*>(object)->reserve(size);
3337 goto len_delim_till_end;
3338len_delim_till_end:
3339 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3340 {parser_till_end, object}, size);
3341}
3342#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3343bool ListEventsResponse::MergePartialFromCodedStream(
3344 ::google::protobuf::io::CodedInputStream* input) {
3345#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3346 ::google::protobuf::uint32 tag;
3347 // @@protoc_insertion_point(parse_start:dmi.ListEventsResponse)
3348 for (;;) {
3349 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3350 tag = p.first;
3351 if (!p.second) goto handle_unusual;
3352 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3353 // .dmi.Status status = 1;
3354 case 1: {
3355 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3356 int value = 0;
3357 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3358 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3359 input, &value)));
3360 set_status(static_cast< ::dmi::Status >(value));
3361 } else {
3362 goto handle_unusual;
3363 }
3364 break;
3365 }
3366
3367 // .dmi.ListEventsResponse.Reason reason = 2;
3368 case 2: {
3369 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3370 int value = 0;
3371 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3372 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3373 input, &value)));
3374 set_reason(static_cast< ::dmi::ListEventsResponse_Reason >(value));
3375 } else {
3376 goto handle_unusual;
3377 }
3378 break;
3379 }
3380
3381 // .dmi.EventsCfg events = 3;
3382 case 3: {
3383 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
3384 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3385 input, mutable_events()));
3386 } else {
3387 goto handle_unusual;
3388 }
3389 break;
3390 }
3391
3392 // string reason_detail = 4;
3393 case 4: {
3394 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3395 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3396 input, this->mutable_reason_detail()));
3397 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3398 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3399 ::google::protobuf::internal::WireFormatLite::PARSE,
3400 "dmi.ListEventsResponse.reason_detail"));
3401 } else {
3402 goto handle_unusual;
3403 }
3404 break;
3405 }
3406
3407 default: {
3408 handle_unusual:
3409 if (tag == 0) {
3410 goto success;
3411 }
3412 DO_(::google::protobuf::internal::WireFormat::SkipField(
3413 input, tag, _internal_metadata_.mutable_unknown_fields()));
3414 break;
3415 }
3416 }
3417 }
3418success:
3419 // @@protoc_insertion_point(parse_success:dmi.ListEventsResponse)
3420 return true;
3421failure:
3422 // @@protoc_insertion_point(parse_failure:dmi.ListEventsResponse)
3423 return false;
3424#undef DO_
3425}
3426#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3427
3428void ListEventsResponse::SerializeWithCachedSizes(
3429 ::google::protobuf::io::CodedOutputStream* output) const {
3430 // @@protoc_insertion_point(serialize_start:dmi.ListEventsResponse)
3431 ::google::protobuf::uint32 cached_has_bits = 0;
3432 (void) cached_has_bits;
3433
3434 // .dmi.Status status = 1;
3435 if (this->status() != 0) {
3436 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3437 1, this->status(), output);
3438 }
3439
3440 // .dmi.ListEventsResponse.Reason reason = 2;
3441 if (this->reason() != 0) {
3442 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3443 2, this->reason(), output);
3444 }
3445
3446 // .dmi.EventsCfg events = 3;
3447 if (this->has_events()) {
3448 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3449 3, HasBitSetters::events(this), output);
3450 }
3451
3452 // string reason_detail = 4;
3453 if (this->reason_detail().size() > 0) {
3454 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3455 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3456 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3457 "dmi.ListEventsResponse.reason_detail");
3458 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3459 4, this->reason_detail(), output);
3460 }
3461
3462 if (_internal_metadata_.have_unknown_fields()) {
3463 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3464 _internal_metadata_.unknown_fields(), output);
3465 }
3466 // @@protoc_insertion_point(serialize_end:dmi.ListEventsResponse)
3467}
3468
3469::google::protobuf::uint8* ListEventsResponse::InternalSerializeWithCachedSizesToArray(
3470 ::google::protobuf::uint8* target) const {
3471 // @@protoc_insertion_point(serialize_to_array_start:dmi.ListEventsResponse)
3472 ::google::protobuf::uint32 cached_has_bits = 0;
3473 (void) cached_has_bits;
3474
3475 // .dmi.Status status = 1;
3476 if (this->status() != 0) {
3477 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3478 1, this->status(), target);
3479 }
3480
3481 // .dmi.ListEventsResponse.Reason reason = 2;
3482 if (this->reason() != 0) {
3483 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3484 2, this->reason(), target);
3485 }
3486
3487 // .dmi.EventsCfg events = 3;
3488 if (this->has_events()) {
3489 target = ::google::protobuf::internal::WireFormatLite::
3490 InternalWriteMessageToArray(
3491 3, HasBitSetters::events(this), target);
3492 }
3493
3494 // string reason_detail = 4;
3495 if (this->reason_detail().size() > 0) {
3496 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3497 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
3498 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3499 "dmi.ListEventsResponse.reason_detail");
3500 target =
3501 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3502 4, this->reason_detail(), target);
3503 }
3504
3505 if (_internal_metadata_.have_unknown_fields()) {
3506 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3507 _internal_metadata_.unknown_fields(), target);
3508 }
3509 // @@protoc_insertion_point(serialize_to_array_end:dmi.ListEventsResponse)
3510 return target;
3511}
3512
3513size_t ListEventsResponse::ByteSizeLong() const {
3514// @@protoc_insertion_point(message_byte_size_start:dmi.ListEventsResponse)
3515 size_t total_size = 0;
3516
3517 if (_internal_metadata_.have_unknown_fields()) {
3518 total_size +=
3519 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3520 _internal_metadata_.unknown_fields());
3521 }
3522 ::google::protobuf::uint32 cached_has_bits = 0;
3523 // Prevent compiler warnings about cached_has_bits being unused
3524 (void) cached_has_bits;
3525
3526 // string reason_detail = 4;
3527 if (this->reason_detail().size() > 0) {
3528 total_size += 1 +
3529 ::google::protobuf::internal::WireFormatLite::StringSize(
3530 this->reason_detail());
3531 }
3532
3533 // .dmi.EventsCfg events = 3;
3534 if (this->has_events()) {
3535 total_size += 1 +
3536 ::google::protobuf::internal::WireFormatLite::MessageSize(
3537 *events_);
3538 }
3539
3540 // .dmi.Status status = 1;
3541 if (this->status() != 0) {
3542 total_size += 1 +
3543 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3544 }
3545
3546 // .dmi.ListEventsResponse.Reason reason = 2;
3547 if (this->reason() != 0) {
3548 total_size += 1 +
3549 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
3550 }
3551
3552 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3553 SetCachedSize(cached_size);
3554 return total_size;
3555}
3556
3557void ListEventsResponse::MergeFrom(const ::google::protobuf::Message& from) {
3558// @@protoc_insertion_point(generalized_merge_from_start:dmi.ListEventsResponse)
3559 GOOGLE_DCHECK_NE(&from, this);
3560 const ListEventsResponse* source =
3561 ::google::protobuf::DynamicCastToGenerated<ListEventsResponse>(
3562 &from);
3563 if (source == nullptr) {
3564 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ListEventsResponse)
3565 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3566 } else {
3567 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ListEventsResponse)
3568 MergeFrom(*source);
3569 }
3570}
3571
3572void ListEventsResponse::MergeFrom(const ListEventsResponse& from) {
3573// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ListEventsResponse)
3574 GOOGLE_DCHECK_NE(&from, this);
3575 _internal_metadata_.MergeFrom(from._internal_metadata_);
3576 ::google::protobuf::uint32 cached_has_bits = 0;
3577 (void) cached_has_bits;
3578
3579 if (from.reason_detail().size() > 0) {
3580
3581 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
3582 }
3583 if (from.has_events()) {
3584 mutable_events()->::dmi::EventsCfg::MergeFrom(from.events());
3585 }
3586 if (from.status() != 0) {
3587 set_status(from.status());
3588 }
3589 if (from.reason() != 0) {
3590 set_reason(from.reason());
3591 }
3592}
3593
3594void ListEventsResponse::CopyFrom(const ::google::protobuf::Message& from) {
3595// @@protoc_insertion_point(generalized_copy_from_start:dmi.ListEventsResponse)
3596 if (&from == this) return;
3597 Clear();
3598 MergeFrom(from);
3599}
3600
3601void ListEventsResponse::CopyFrom(const ListEventsResponse& from) {
3602// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ListEventsResponse)
3603 if (&from == this) return;
3604 Clear();
3605 MergeFrom(from);
3606}
3607
3608bool ListEventsResponse::IsInitialized() const {
3609 return true;
3610}
3611
3612void ListEventsResponse::Swap(ListEventsResponse* other) {
3613 if (other == this) return;
3614 InternalSwap(other);
3615}
3616void ListEventsResponse::InternalSwap(ListEventsResponse* other) {
3617 using std::swap;
3618 _internal_metadata_.Swap(&other->_internal_metadata_);
3619 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3620 GetArenaNoVirtual());
3621 swap(events_, other->events_);
3622 swap(status_, other->status_);
3623 swap(reason_, other->reason_);
3624}
3625
3626::google::protobuf::Metadata ListEventsResponse::GetMetadata() const {
3627 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
3628 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
3629}
3630
3631
3632// ===================================================================
3633
3634void EventsConfigurationRequest::InitAsDefaultInstance() {
3635 ::dmi::_EventsConfigurationRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
3636 ::dmi::Uuid::internal_default_instance());
3637 ::dmi::_EventsConfigurationRequest_default_instance_.changes_ = const_cast< ::dmi::EventsCfg*>(
3638 ::dmi::EventsCfg::internal_default_instance());
3639 ::dmi::_EventsConfigurationRequest_default_instance_.reset_to_default_ = false;
3640}
3641class EventsConfigurationRequest::HasBitSetters {
3642 public:
3643 static const ::dmi::Uuid& device_uuid(const EventsConfigurationRequest* msg);
3644 static const ::dmi::EventsCfg& changes(const EventsConfigurationRequest* msg);
3645};
3646
3647const ::dmi::Uuid&
3648EventsConfigurationRequest::HasBitSetters::device_uuid(const EventsConfigurationRequest* msg) {
3649 return *msg->device_uuid_;
3650}
3651const ::dmi::EventsCfg&
3652EventsConfigurationRequest::HasBitSetters::changes(const EventsConfigurationRequest* msg) {
3653 return *msg->operation_.changes_;
3654}
3655void EventsConfigurationRequest::clear_device_uuid() {
3656 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3657 delete device_uuid_;
3658 }
3659 device_uuid_ = nullptr;
3660}
3661void EventsConfigurationRequest::set_allocated_changes(::dmi::EventsCfg* changes) {
3662 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3663 clear_operation();
3664 if (changes) {
3665 ::google::protobuf::Arena* submessage_arena = nullptr;
3666 if (message_arena != submessage_arena) {
3667 changes = ::google::protobuf::internal::GetOwnedMessage(
3668 message_arena, changes, submessage_arena);
3669 }
3670 set_has_changes();
3671 operation_.changes_ = changes;
3672 }
3673 // @@protoc_insertion_point(field_set_allocated:dmi.EventsConfigurationRequest.changes)
3674}
3675#if !defined(_MSC_VER) || _MSC_VER >= 1900
3676const int EventsConfigurationRequest::kDeviceUuidFieldNumber;
3677const int EventsConfigurationRequest::kChangesFieldNumber;
3678const int EventsConfigurationRequest::kResetToDefaultFieldNumber;
3679#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3680
3681EventsConfigurationRequest::EventsConfigurationRequest()
3682 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3683 SharedCtor();
3684 // @@protoc_insertion_point(constructor:dmi.EventsConfigurationRequest)
3685}
3686EventsConfigurationRequest::EventsConfigurationRequest(const EventsConfigurationRequest& from)
3687 : ::google::protobuf::Message(),
3688 _internal_metadata_(nullptr) {
3689 _internal_metadata_.MergeFrom(from._internal_metadata_);
3690 if (from.has_device_uuid()) {
3691 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
3692 } else {
3693 device_uuid_ = nullptr;
3694 }
3695 clear_has_operation();
3696 switch (from.operation_case()) {
3697 case kChanges: {
3698 mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes());
3699 break;
3700 }
3701 case kResetToDefault: {
3702 set_reset_to_default(from.reset_to_default());
3703 break;
3704 }
3705 case OPERATION_NOT_SET: {
3706 break;
3707 }
3708 }
3709 // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationRequest)
3710}
3711
3712void EventsConfigurationRequest::SharedCtor() {
3713 ::google::protobuf::internal::InitSCC(
3714 &scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
amit.ghosh7a093bd2023-03-07 16:31:56 +01003715 device_uuid_ = nullptr;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303716 clear_has_operation();
3717}
3718
3719EventsConfigurationRequest::~EventsConfigurationRequest() {
3720 // @@protoc_insertion_point(destructor:dmi.EventsConfigurationRequest)
3721 SharedDtor();
3722}
3723
3724void EventsConfigurationRequest::SharedDtor() {
3725 if (this != internal_default_instance()) delete device_uuid_;
3726 if (has_operation()) {
3727 clear_operation();
3728 }
3729}
3730
3731void EventsConfigurationRequest::SetCachedSize(int size) const {
3732 _cached_size_.Set(size);
3733}
3734const EventsConfigurationRequest& EventsConfigurationRequest::default_instance() {
3735 ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationRequest_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
3736 return *internal_default_instance();
3737}
3738
3739
3740void EventsConfigurationRequest::clear_operation() {
3741// @@protoc_insertion_point(one_of_clear_start:dmi.EventsConfigurationRequest)
3742 switch (operation_case()) {
3743 case kChanges: {
3744 delete operation_.changes_;
3745 break;
3746 }
3747 case kResetToDefault: {
3748 // No need to clear
3749 break;
3750 }
3751 case OPERATION_NOT_SET: {
3752 break;
3753 }
3754 }
3755 _oneof_case_[0] = OPERATION_NOT_SET;
3756}
3757
3758
3759void EventsConfigurationRequest::Clear() {
3760// @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationRequest)
3761 ::google::protobuf::uint32 cached_has_bits = 0;
3762 // Prevent compiler warnings about cached_has_bits being unused
3763 (void) cached_has_bits;
3764
3765 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
3766 delete device_uuid_;
3767 }
3768 device_uuid_ = nullptr;
3769 clear_operation();
3770 _internal_metadata_.Clear();
3771}
3772
3773#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3774const char* EventsConfigurationRequest::_InternalParse(const char* begin, const char* end, void* object,
3775 ::google::protobuf::internal::ParseContext* ctx) {
3776 auto msg = static_cast<EventsConfigurationRequest*>(object);
3777 ::google::protobuf::int32 size; (void)size;
3778 int depth; (void)depth;
3779 ::google::protobuf::uint32 tag;
3780 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3781 auto ptr = begin;
3782 while (ptr < end) {
3783 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3784 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3785 switch (tag >> 3) {
3786 // .dmi.Uuid device_uuid = 1;
3787 case 1: {
3788 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3789 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3790 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3791 parser_till_end = ::dmi::Uuid::_InternalParse;
3792 object = msg->mutable_device_uuid();
3793 if (size > end - ptr) goto len_delim_till_end;
3794 ptr += size;
3795 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3796 {parser_till_end, object}, ptr - size, ptr));
3797 break;
3798 }
3799 // .dmi.EventsCfg changes = 2;
3800 case 2: {
3801 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
3802 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3803 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3804 parser_till_end = ::dmi::EventsCfg::_InternalParse;
3805 object = msg->mutable_changes();
3806 if (size > end - ptr) goto len_delim_till_end;
3807 ptr += size;
3808 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3809 {parser_till_end, object}, ptr - size, ptr));
3810 break;
3811 }
3812 // bool reset_to_default = 3;
3813 case 3: {
3814 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
3815 msg->set_reset_to_default(::google::protobuf::internal::ReadVarint(&ptr));
3816 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3817 break;
3818 }
3819 default: {
3820 handle_unusual:
3821 if ((tag & 7) == 4 || tag == 0) {
3822 ctx->EndGroup(tag);
3823 return ptr;
3824 }
3825 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3826 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3827 ptr = res.first;
3828 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3829 if (res.second) return ptr;
3830 }
3831 } // switch
3832 } // while
3833 return ptr;
3834len_delim_till_end:
3835 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3836 {parser_till_end, object}, size);
3837}
3838#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3839bool EventsConfigurationRequest::MergePartialFromCodedStream(
3840 ::google::protobuf::io::CodedInputStream* input) {
3841#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3842 ::google::protobuf::uint32 tag;
3843 // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationRequest)
3844 for (;;) {
3845 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3846 tag = p.first;
3847 if (!p.second) goto handle_unusual;
3848 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3849 // .dmi.Uuid device_uuid = 1;
3850 case 1: {
3851 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3852 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3853 input, mutable_device_uuid()));
3854 } else {
3855 goto handle_unusual;
3856 }
3857 break;
3858 }
3859
3860 // .dmi.EventsCfg changes = 2;
3861 case 2: {
3862 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
3863 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3864 input, mutable_changes()));
3865 } else {
3866 goto handle_unusual;
3867 }
3868 break;
3869 }
3870
3871 // bool reset_to_default = 3;
3872 case 3: {
3873 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
3874 clear_operation();
3875 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3876 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3877 input, &operation_.reset_to_default_)));
3878 set_has_reset_to_default();
3879 } else {
3880 goto handle_unusual;
3881 }
3882 break;
3883 }
3884
3885 default: {
3886 handle_unusual:
3887 if (tag == 0) {
3888 goto success;
3889 }
3890 DO_(::google::protobuf::internal::WireFormat::SkipField(
3891 input, tag, _internal_metadata_.mutable_unknown_fields()));
3892 break;
3893 }
3894 }
3895 }
3896success:
3897 // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationRequest)
3898 return true;
3899failure:
3900 // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationRequest)
3901 return false;
3902#undef DO_
3903}
3904#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3905
3906void EventsConfigurationRequest::SerializeWithCachedSizes(
3907 ::google::protobuf::io::CodedOutputStream* output) const {
3908 // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationRequest)
3909 ::google::protobuf::uint32 cached_has_bits = 0;
3910 (void) cached_has_bits;
3911
3912 // .dmi.Uuid device_uuid = 1;
3913 if (this->has_device_uuid()) {
3914 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3915 1, HasBitSetters::device_uuid(this), output);
3916 }
3917
3918 // .dmi.EventsCfg changes = 2;
3919 if (has_changes()) {
3920 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3921 2, HasBitSetters::changes(this), output);
3922 }
3923
3924 // bool reset_to_default = 3;
3925 if (has_reset_to_default()) {
3926 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->reset_to_default(), output);
3927 }
3928
3929 if (_internal_metadata_.have_unknown_fields()) {
3930 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3931 _internal_metadata_.unknown_fields(), output);
3932 }
3933 // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationRequest)
3934}
3935
3936::google::protobuf::uint8* EventsConfigurationRequest::InternalSerializeWithCachedSizesToArray(
3937 ::google::protobuf::uint8* target) const {
3938 // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationRequest)
3939 ::google::protobuf::uint32 cached_has_bits = 0;
3940 (void) cached_has_bits;
3941
3942 // .dmi.Uuid device_uuid = 1;
3943 if (this->has_device_uuid()) {
3944 target = ::google::protobuf::internal::WireFormatLite::
3945 InternalWriteMessageToArray(
3946 1, HasBitSetters::device_uuid(this), target);
3947 }
3948
3949 // .dmi.EventsCfg changes = 2;
3950 if (has_changes()) {
3951 target = ::google::protobuf::internal::WireFormatLite::
3952 InternalWriteMessageToArray(
3953 2, HasBitSetters::changes(this), target);
3954 }
3955
3956 // bool reset_to_default = 3;
3957 if (has_reset_to_default()) {
3958 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->reset_to_default(), target);
3959 }
3960
3961 if (_internal_metadata_.have_unknown_fields()) {
3962 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3963 _internal_metadata_.unknown_fields(), target);
3964 }
3965 // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationRequest)
3966 return target;
3967}
3968
3969size_t EventsConfigurationRequest::ByteSizeLong() const {
3970// @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationRequest)
3971 size_t total_size = 0;
3972
3973 if (_internal_metadata_.have_unknown_fields()) {
3974 total_size +=
3975 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3976 _internal_metadata_.unknown_fields());
3977 }
3978 ::google::protobuf::uint32 cached_has_bits = 0;
3979 // Prevent compiler warnings about cached_has_bits being unused
3980 (void) cached_has_bits;
3981
3982 // .dmi.Uuid device_uuid = 1;
3983 if (this->has_device_uuid()) {
3984 total_size += 1 +
3985 ::google::protobuf::internal::WireFormatLite::MessageSize(
3986 *device_uuid_);
3987 }
3988
3989 switch (operation_case()) {
3990 // .dmi.EventsCfg changes = 2;
3991 case kChanges: {
3992 total_size += 1 +
3993 ::google::protobuf::internal::WireFormatLite::MessageSize(
3994 *operation_.changes_);
3995 break;
3996 }
3997 // bool reset_to_default = 3;
3998 case kResetToDefault: {
3999 total_size += 1 + 1;
4000 break;
4001 }
4002 case OPERATION_NOT_SET: {
4003 break;
4004 }
4005 }
4006 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4007 SetCachedSize(cached_size);
4008 return total_size;
4009}
4010
4011void EventsConfigurationRequest::MergeFrom(const ::google::protobuf::Message& from) {
4012// @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationRequest)
4013 GOOGLE_DCHECK_NE(&from, this);
4014 const EventsConfigurationRequest* source =
4015 ::google::protobuf::DynamicCastToGenerated<EventsConfigurationRequest>(
4016 &from);
4017 if (source == nullptr) {
4018 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationRequest)
4019 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4020 } else {
4021 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationRequest)
4022 MergeFrom(*source);
4023 }
4024}
4025
4026void EventsConfigurationRequest::MergeFrom(const EventsConfigurationRequest& from) {
4027// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationRequest)
4028 GOOGLE_DCHECK_NE(&from, this);
4029 _internal_metadata_.MergeFrom(from._internal_metadata_);
4030 ::google::protobuf::uint32 cached_has_bits = 0;
4031 (void) cached_has_bits;
4032
4033 if (from.has_device_uuid()) {
4034 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4035 }
4036 switch (from.operation_case()) {
4037 case kChanges: {
4038 mutable_changes()->::dmi::EventsCfg::MergeFrom(from.changes());
4039 break;
4040 }
4041 case kResetToDefault: {
4042 set_reset_to_default(from.reset_to_default());
4043 break;
4044 }
4045 case OPERATION_NOT_SET: {
4046 break;
4047 }
4048 }
4049}
4050
4051void EventsConfigurationRequest::CopyFrom(const ::google::protobuf::Message& from) {
4052// @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationRequest)
4053 if (&from == this) return;
4054 Clear();
4055 MergeFrom(from);
4056}
4057
4058void EventsConfigurationRequest::CopyFrom(const EventsConfigurationRequest& from) {
4059// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationRequest)
4060 if (&from == this) return;
4061 Clear();
4062 MergeFrom(from);
4063}
4064
4065bool EventsConfigurationRequest::IsInitialized() const {
4066 return true;
4067}
4068
4069void EventsConfigurationRequest::Swap(EventsConfigurationRequest* other) {
4070 if (other == this) return;
4071 InternalSwap(other);
4072}
4073void EventsConfigurationRequest::InternalSwap(EventsConfigurationRequest* other) {
4074 using std::swap;
4075 _internal_metadata_.Swap(&other->_internal_metadata_);
4076 swap(device_uuid_, other->device_uuid_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304077 swap(operation_, other->operation_);
4078 swap(_oneof_case_[0], other->_oneof_case_[0]);
4079}
4080
4081::google::protobuf::Metadata EventsConfigurationRequest::GetMetadata() const {
4082 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
4083 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
4084}
4085
4086
4087// ===================================================================
4088
4089void EventsConfigurationResponse::InitAsDefaultInstance() {
4090}
4091class EventsConfigurationResponse::HasBitSetters {
4092 public:
4093};
4094
4095#if !defined(_MSC_VER) || _MSC_VER >= 1900
4096const int EventsConfigurationResponse::kStatusFieldNumber;
4097const int EventsConfigurationResponse::kReasonFieldNumber;
4098const int EventsConfigurationResponse::kReasonDetailFieldNumber;
4099#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4100
4101EventsConfigurationResponse::EventsConfigurationResponse()
4102 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4103 SharedCtor();
4104 // @@protoc_insertion_point(constructor:dmi.EventsConfigurationResponse)
4105}
4106EventsConfigurationResponse::EventsConfigurationResponse(const EventsConfigurationResponse& from)
4107 : ::google::protobuf::Message(),
4108 _internal_metadata_(nullptr) {
4109 _internal_metadata_.MergeFrom(from._internal_metadata_);
4110 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4111 if (from.reason_detail().size() > 0) {
4112 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4113 }
4114 ::memcpy(&status_, &from.status_,
4115 static_cast<size_t>(reinterpret_cast<char*>(&reason_) -
4116 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4117 // @@protoc_insertion_point(copy_constructor:dmi.EventsConfigurationResponse)
4118}
4119
4120void EventsConfigurationResponse::SharedCtor() {
4121 ::google::protobuf::internal::InitSCC(
4122 &scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
4123 reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4124 ::memset(&status_, 0, static_cast<size_t>(
4125 reinterpret_cast<char*>(&reason_) -
4126 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4127}
4128
4129EventsConfigurationResponse::~EventsConfigurationResponse() {
4130 // @@protoc_insertion_point(destructor:dmi.EventsConfigurationResponse)
4131 SharedDtor();
4132}
4133
4134void EventsConfigurationResponse::SharedDtor() {
4135 reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4136}
4137
4138void EventsConfigurationResponse::SetCachedSize(int size) const {
4139 _cached_size_.Set(size);
4140}
4141const EventsConfigurationResponse& EventsConfigurationResponse::default_instance() {
4142 ::google::protobuf::internal::InitSCC(&::scc_info_EventsConfigurationResponse_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
4143 return *internal_default_instance();
4144}
4145
4146
4147void EventsConfigurationResponse::Clear() {
4148// @@protoc_insertion_point(message_clear_start:dmi.EventsConfigurationResponse)
4149 ::google::protobuf::uint32 cached_has_bits = 0;
4150 // Prevent compiler warnings about cached_has_bits being unused
4151 (void) cached_has_bits;
4152
4153 reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4154 ::memset(&status_, 0, static_cast<size_t>(
4155 reinterpret_cast<char*>(&reason_) -
4156 reinterpret_cast<char*>(&status_)) + sizeof(reason_));
4157 _internal_metadata_.Clear();
4158}
4159
4160#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4161const char* EventsConfigurationResponse::_InternalParse(const char* begin, const char* end, void* object,
4162 ::google::protobuf::internal::ParseContext* ctx) {
4163 auto msg = static_cast<EventsConfigurationResponse*>(object);
4164 ::google::protobuf::int32 size; (void)size;
4165 int depth; (void)depth;
4166 ::google::protobuf::uint32 tag;
4167 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4168 auto ptr = begin;
4169 while (ptr < end) {
4170 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4171 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4172 switch (tag >> 3) {
4173 // .dmi.Status status = 1;
4174 case 1: {
4175 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4176 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4177 msg->set_status(static_cast<::dmi::Status>(val));
4178 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4179 break;
4180 }
4181 // .dmi.EventsConfigurationResponse.Reason reason = 2;
4182 case 2: {
4183 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4184 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4185 msg->set_reason(static_cast<::dmi::EventsConfigurationResponse_Reason>(val));
4186 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4187 break;
4188 }
4189 // string reason_detail = 3;
4190 case 3: {
4191 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4192 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4193 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4194 ctx->extra_parse_data().SetFieldName("dmi.EventsConfigurationResponse.reason_detail");
4195 object = msg->mutable_reason_detail();
4196 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4197 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4198 goto string_till_end;
4199 }
4200 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4201 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4202 ptr += size;
4203 break;
4204 }
4205 default: {
4206 handle_unusual:
4207 if ((tag & 7) == 4 || tag == 0) {
4208 ctx->EndGroup(tag);
4209 return ptr;
4210 }
4211 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4212 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4213 ptr = res.first;
4214 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4215 if (res.second) return ptr;
4216 }
4217 } // switch
4218 } // while
4219 return ptr;
4220string_till_end:
4221 static_cast<::std::string*>(object)->clear();
4222 static_cast<::std::string*>(object)->reserve(size);
4223 goto len_delim_till_end;
4224len_delim_till_end:
4225 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4226 {parser_till_end, object}, size);
4227}
4228#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4229bool EventsConfigurationResponse::MergePartialFromCodedStream(
4230 ::google::protobuf::io::CodedInputStream* input) {
4231#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4232 ::google::protobuf::uint32 tag;
4233 // @@protoc_insertion_point(parse_start:dmi.EventsConfigurationResponse)
4234 for (;;) {
4235 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4236 tag = p.first;
4237 if (!p.second) goto handle_unusual;
4238 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4239 // .dmi.Status status = 1;
4240 case 1: {
4241 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4242 int value = 0;
4243 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4244 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4245 input, &value)));
4246 set_status(static_cast< ::dmi::Status >(value));
4247 } else {
4248 goto handle_unusual;
4249 }
4250 break;
4251 }
4252
4253 // .dmi.EventsConfigurationResponse.Reason reason = 2;
4254 case 2: {
4255 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4256 int value = 0;
4257 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4258 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4259 input, &value)));
4260 set_reason(static_cast< ::dmi::EventsConfigurationResponse_Reason >(value));
4261 } else {
4262 goto handle_unusual;
4263 }
4264 break;
4265 }
4266
4267 // string reason_detail = 3;
4268 case 3: {
4269 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4270 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4271 input, this->mutable_reason_detail()));
4272 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4273 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4274 ::google::protobuf::internal::WireFormatLite::PARSE,
4275 "dmi.EventsConfigurationResponse.reason_detail"));
4276 } else {
4277 goto handle_unusual;
4278 }
4279 break;
4280 }
4281
4282 default: {
4283 handle_unusual:
4284 if (tag == 0) {
4285 goto success;
4286 }
4287 DO_(::google::protobuf::internal::WireFormat::SkipField(
4288 input, tag, _internal_metadata_.mutable_unknown_fields()));
4289 break;
4290 }
4291 }
4292 }
4293success:
4294 // @@protoc_insertion_point(parse_success:dmi.EventsConfigurationResponse)
4295 return true;
4296failure:
4297 // @@protoc_insertion_point(parse_failure:dmi.EventsConfigurationResponse)
4298 return false;
4299#undef DO_
4300}
4301#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4302
4303void EventsConfigurationResponse::SerializeWithCachedSizes(
4304 ::google::protobuf::io::CodedOutputStream* output) const {
4305 // @@protoc_insertion_point(serialize_start:dmi.EventsConfigurationResponse)
4306 ::google::protobuf::uint32 cached_has_bits = 0;
4307 (void) cached_has_bits;
4308
4309 // .dmi.Status status = 1;
4310 if (this->status() != 0) {
4311 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4312 1, this->status(), output);
4313 }
4314
4315 // .dmi.EventsConfigurationResponse.Reason reason = 2;
4316 if (this->reason() != 0) {
4317 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4318 2, this->reason(), output);
4319 }
4320
4321 // string reason_detail = 3;
4322 if (this->reason_detail().size() > 0) {
4323 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4324 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4325 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4326 "dmi.EventsConfigurationResponse.reason_detail");
4327 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4328 3, this->reason_detail(), output);
4329 }
4330
4331 if (_internal_metadata_.have_unknown_fields()) {
4332 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4333 _internal_metadata_.unknown_fields(), output);
4334 }
4335 // @@protoc_insertion_point(serialize_end:dmi.EventsConfigurationResponse)
4336}
4337
4338::google::protobuf::uint8* EventsConfigurationResponse::InternalSerializeWithCachedSizesToArray(
4339 ::google::protobuf::uint8* target) const {
4340 // @@protoc_insertion_point(serialize_to_array_start:dmi.EventsConfigurationResponse)
4341 ::google::protobuf::uint32 cached_has_bits = 0;
4342 (void) cached_has_bits;
4343
4344 // .dmi.Status status = 1;
4345 if (this->status() != 0) {
4346 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4347 1, this->status(), target);
4348 }
4349
4350 // .dmi.EventsConfigurationResponse.Reason reason = 2;
4351 if (this->reason() != 0) {
4352 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4353 2, this->reason(), target);
4354 }
4355
4356 // string reason_detail = 3;
4357 if (this->reason_detail().size() > 0) {
4358 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4359 this->reason_detail().data(), static_cast<int>(this->reason_detail().length()),
4360 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4361 "dmi.EventsConfigurationResponse.reason_detail");
4362 target =
4363 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4364 3, this->reason_detail(), target);
4365 }
4366
4367 if (_internal_metadata_.have_unknown_fields()) {
4368 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4369 _internal_metadata_.unknown_fields(), target);
4370 }
4371 // @@protoc_insertion_point(serialize_to_array_end:dmi.EventsConfigurationResponse)
4372 return target;
4373}
4374
4375size_t EventsConfigurationResponse::ByteSizeLong() const {
4376// @@protoc_insertion_point(message_byte_size_start:dmi.EventsConfigurationResponse)
4377 size_t total_size = 0;
4378
4379 if (_internal_metadata_.have_unknown_fields()) {
4380 total_size +=
4381 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4382 _internal_metadata_.unknown_fields());
4383 }
4384 ::google::protobuf::uint32 cached_has_bits = 0;
4385 // Prevent compiler warnings about cached_has_bits being unused
4386 (void) cached_has_bits;
4387
4388 // string reason_detail = 3;
4389 if (this->reason_detail().size() > 0) {
4390 total_size += 1 +
4391 ::google::protobuf::internal::WireFormatLite::StringSize(
4392 this->reason_detail());
4393 }
4394
4395 // .dmi.Status status = 1;
4396 if (this->status() != 0) {
4397 total_size += 1 +
4398 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
4399 }
4400
4401 // .dmi.EventsConfigurationResponse.Reason reason = 2;
4402 if (this->reason() != 0) {
4403 total_size += 1 +
4404 ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason());
4405 }
4406
4407 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4408 SetCachedSize(cached_size);
4409 return total_size;
4410}
4411
4412void EventsConfigurationResponse::MergeFrom(const ::google::protobuf::Message& from) {
4413// @@protoc_insertion_point(generalized_merge_from_start:dmi.EventsConfigurationResponse)
4414 GOOGLE_DCHECK_NE(&from, this);
4415 const EventsConfigurationResponse* source =
4416 ::google::protobuf::DynamicCastToGenerated<EventsConfigurationResponse>(
4417 &from);
4418 if (source == nullptr) {
4419 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventsConfigurationResponse)
4420 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4421 } else {
4422 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventsConfigurationResponse)
4423 MergeFrom(*source);
4424 }
4425}
4426
4427void EventsConfigurationResponse::MergeFrom(const EventsConfigurationResponse& from) {
4428// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventsConfigurationResponse)
4429 GOOGLE_DCHECK_NE(&from, this);
4430 _internal_metadata_.MergeFrom(from._internal_metadata_);
4431 ::google::protobuf::uint32 cached_has_bits = 0;
4432 (void) cached_has_bits;
4433
4434 if (from.reason_detail().size() > 0) {
4435
4436 reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_);
4437 }
4438 if (from.status() != 0) {
4439 set_status(from.status());
4440 }
4441 if (from.reason() != 0) {
4442 set_reason(from.reason());
4443 }
4444}
4445
4446void EventsConfigurationResponse::CopyFrom(const ::google::protobuf::Message& from) {
4447// @@protoc_insertion_point(generalized_copy_from_start:dmi.EventsConfigurationResponse)
4448 if (&from == this) return;
4449 Clear();
4450 MergeFrom(from);
4451}
4452
4453void EventsConfigurationResponse::CopyFrom(const EventsConfigurationResponse& from) {
4454// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventsConfigurationResponse)
4455 if (&from == this) return;
4456 Clear();
4457 MergeFrom(from);
4458}
4459
4460bool EventsConfigurationResponse::IsInitialized() const {
4461 return true;
4462}
4463
4464void EventsConfigurationResponse::Swap(EventsConfigurationResponse* other) {
4465 if (other == this) return;
4466 InternalSwap(other);
4467}
4468void EventsConfigurationResponse::InternalSwap(EventsConfigurationResponse* other) {
4469 using std::swap;
4470 _internal_metadata_.Swap(&other->_internal_metadata_);
4471 reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4472 GetArenaNoVirtual());
4473 swap(status_, other->status_);
4474 swap(reason_, other->reason_);
4475}
4476
4477::google::protobuf::Metadata EventsConfigurationResponse::GetMetadata() const {
4478 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
4479 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
4480}
4481
4482
4483// ===================================================================
4484
4485void EventMetaData::InitAsDefaultInstance() {
4486 ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>(
4487 ::dmi::Uuid::internal_default_instance());
4488 ::dmi::_EventMetaData_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>(
4489 ::dmi::Uuid::internal_default_instance());
4490}
4491class EventMetaData::HasBitSetters {
4492 public:
4493 static const ::dmi::Uuid& device_uuid(const EventMetaData* msg);
4494 static const ::dmi::Uuid& component_uuid(const EventMetaData* msg);
4495};
4496
4497const ::dmi::Uuid&
4498EventMetaData::HasBitSetters::device_uuid(const EventMetaData* msg) {
4499 return *msg->device_uuid_;
4500}
4501const ::dmi::Uuid&
4502EventMetaData::HasBitSetters::component_uuid(const EventMetaData* msg) {
4503 return *msg->component_uuid_;
4504}
4505void EventMetaData::clear_device_uuid() {
4506 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
4507 delete device_uuid_;
4508 }
4509 device_uuid_ = nullptr;
4510}
4511void EventMetaData::clear_component_uuid() {
4512 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
4513 delete component_uuid_;
4514 }
4515 component_uuid_ = nullptr;
4516}
4517#if !defined(_MSC_VER) || _MSC_VER >= 1900
4518const int EventMetaData::kDeviceUuidFieldNumber;
4519const int EventMetaData::kComponentUuidFieldNumber;
4520const int EventMetaData::kComponentNameFieldNumber;
4521#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4522
4523EventMetaData::EventMetaData()
4524 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4525 SharedCtor();
4526 // @@protoc_insertion_point(constructor:dmi.EventMetaData)
4527}
4528EventMetaData::EventMetaData(const EventMetaData& from)
4529 : ::google::protobuf::Message(),
4530 _internal_metadata_(nullptr) {
4531 _internal_metadata_.MergeFrom(from._internal_metadata_);
4532 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4533 if (from.component_name().size() > 0) {
4534 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
4535 }
4536 if (from.has_device_uuid()) {
4537 device_uuid_ = new ::dmi::Uuid(*from.device_uuid_);
4538 } else {
4539 device_uuid_ = nullptr;
4540 }
4541 if (from.has_component_uuid()) {
4542 component_uuid_ = new ::dmi::Uuid(*from.component_uuid_);
4543 } else {
4544 component_uuid_ = nullptr;
4545 }
4546 // @@protoc_insertion_point(copy_constructor:dmi.EventMetaData)
4547}
4548
4549void EventMetaData::SharedCtor() {
4550 ::google::protobuf::internal::InitSCC(
4551 &scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
4552 component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4553 ::memset(&device_uuid_, 0, static_cast<size_t>(
4554 reinterpret_cast<char*>(&component_uuid_) -
4555 reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_));
4556}
4557
4558EventMetaData::~EventMetaData() {
4559 // @@protoc_insertion_point(destructor:dmi.EventMetaData)
4560 SharedDtor();
4561}
4562
4563void EventMetaData::SharedDtor() {
4564 component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4565 if (this != internal_default_instance()) delete device_uuid_;
4566 if (this != internal_default_instance()) delete component_uuid_;
4567}
4568
4569void EventMetaData::SetCachedSize(int size) const {
4570 _cached_size_.Set(size);
4571}
4572const EventMetaData& EventMetaData::default_instance() {
4573 ::google::protobuf::internal::InitSCC(&::scc_info_EventMetaData_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
4574 return *internal_default_instance();
4575}
4576
4577
4578void EventMetaData::Clear() {
4579// @@protoc_insertion_point(message_clear_start:dmi.EventMetaData)
4580 ::google::protobuf::uint32 cached_has_bits = 0;
4581 // Prevent compiler warnings about cached_has_bits being unused
4582 (void) cached_has_bits;
4583
4584 component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4585 if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) {
4586 delete device_uuid_;
4587 }
4588 device_uuid_ = nullptr;
4589 if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) {
4590 delete component_uuid_;
4591 }
4592 component_uuid_ = nullptr;
4593 _internal_metadata_.Clear();
4594}
4595
4596#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4597const char* EventMetaData::_InternalParse(const char* begin, const char* end, void* object,
4598 ::google::protobuf::internal::ParseContext* ctx) {
4599 auto msg = static_cast<EventMetaData*>(object);
4600 ::google::protobuf::int32 size; (void)size;
4601 int depth; (void)depth;
4602 ::google::protobuf::uint32 tag;
4603 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4604 auto ptr = begin;
4605 while (ptr < end) {
4606 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4607 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4608 switch (tag >> 3) {
4609 // .dmi.Uuid device_uuid = 1;
4610 case 1: {
4611 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4612 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4613 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4614 parser_till_end = ::dmi::Uuid::_InternalParse;
4615 object = msg->mutable_device_uuid();
4616 if (size > end - ptr) goto len_delim_till_end;
4617 ptr += size;
4618 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
4619 {parser_till_end, object}, ptr - size, ptr));
4620 break;
4621 }
4622 // .dmi.Uuid component_uuid = 2;
4623 case 2: {
4624 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
4625 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4626 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4627 parser_till_end = ::dmi::Uuid::_InternalParse;
4628 object = msg->mutable_component_uuid();
4629 if (size > end - ptr) goto len_delim_till_end;
4630 ptr += size;
4631 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
4632 {parser_till_end, object}, ptr - size, ptr));
4633 break;
4634 }
4635 // string component_name = 3;
4636 case 3: {
4637 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
4638 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4639 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4640 ctx->extra_parse_data().SetFieldName("dmi.EventMetaData.component_name");
4641 object = msg->mutable_component_name();
4642 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4643 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
4644 goto string_till_end;
4645 }
4646 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
4647 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4648 ptr += size;
4649 break;
4650 }
4651 default: {
4652 handle_unusual:
4653 if ((tag & 7) == 4 || tag == 0) {
4654 ctx->EndGroup(tag);
4655 return ptr;
4656 }
4657 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4658 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4659 ptr = res.first;
4660 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4661 if (res.second) return ptr;
4662 }
4663 } // switch
4664 } // while
4665 return ptr;
4666string_till_end:
4667 static_cast<::std::string*>(object)->clear();
4668 static_cast<::std::string*>(object)->reserve(size);
4669 goto len_delim_till_end;
4670len_delim_till_end:
4671 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4672 {parser_till_end, object}, size);
4673}
4674#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4675bool EventMetaData::MergePartialFromCodedStream(
4676 ::google::protobuf::io::CodedInputStream* input) {
4677#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4678 ::google::protobuf::uint32 tag;
4679 // @@protoc_insertion_point(parse_start:dmi.EventMetaData)
4680 for (;;) {
4681 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4682 tag = p.first;
4683 if (!p.second) goto handle_unusual;
4684 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4685 // .dmi.Uuid device_uuid = 1;
4686 case 1: {
4687 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4688 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4689 input, mutable_device_uuid()));
4690 } else {
4691 goto handle_unusual;
4692 }
4693 break;
4694 }
4695
4696 // .dmi.Uuid component_uuid = 2;
4697 case 2: {
4698 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
4699 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4700 input, mutable_component_uuid()));
4701 } else {
4702 goto handle_unusual;
4703 }
4704 break;
4705 }
4706
4707 // string component_name = 3;
4708 case 3: {
4709 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
4710 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4711 input, this->mutable_component_name()));
4712 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4713 this->component_name().data(), static_cast<int>(this->component_name().length()),
4714 ::google::protobuf::internal::WireFormatLite::PARSE,
4715 "dmi.EventMetaData.component_name"));
4716 } else {
4717 goto handle_unusual;
4718 }
4719 break;
4720 }
4721
4722 default: {
4723 handle_unusual:
4724 if (tag == 0) {
4725 goto success;
4726 }
4727 DO_(::google::protobuf::internal::WireFormat::SkipField(
4728 input, tag, _internal_metadata_.mutable_unknown_fields()));
4729 break;
4730 }
4731 }
4732 }
4733success:
4734 // @@protoc_insertion_point(parse_success:dmi.EventMetaData)
4735 return true;
4736failure:
4737 // @@protoc_insertion_point(parse_failure:dmi.EventMetaData)
4738 return false;
4739#undef DO_
4740}
4741#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4742
4743void EventMetaData::SerializeWithCachedSizes(
4744 ::google::protobuf::io::CodedOutputStream* output) const {
4745 // @@protoc_insertion_point(serialize_start:dmi.EventMetaData)
4746 ::google::protobuf::uint32 cached_has_bits = 0;
4747 (void) cached_has_bits;
4748
4749 // .dmi.Uuid device_uuid = 1;
4750 if (this->has_device_uuid()) {
4751 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4752 1, HasBitSetters::device_uuid(this), output);
4753 }
4754
4755 // .dmi.Uuid component_uuid = 2;
4756 if (this->has_component_uuid()) {
4757 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4758 2, HasBitSetters::component_uuid(this), output);
4759 }
4760
4761 // string component_name = 3;
4762 if (this->component_name().size() > 0) {
4763 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4764 this->component_name().data(), static_cast<int>(this->component_name().length()),
4765 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4766 "dmi.EventMetaData.component_name");
4767 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4768 3, this->component_name(), output);
4769 }
4770
4771 if (_internal_metadata_.have_unknown_fields()) {
4772 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4773 _internal_metadata_.unknown_fields(), output);
4774 }
4775 // @@protoc_insertion_point(serialize_end:dmi.EventMetaData)
4776}
4777
4778::google::protobuf::uint8* EventMetaData::InternalSerializeWithCachedSizesToArray(
4779 ::google::protobuf::uint8* target) const {
4780 // @@protoc_insertion_point(serialize_to_array_start:dmi.EventMetaData)
4781 ::google::protobuf::uint32 cached_has_bits = 0;
4782 (void) cached_has_bits;
4783
4784 // .dmi.Uuid device_uuid = 1;
4785 if (this->has_device_uuid()) {
4786 target = ::google::protobuf::internal::WireFormatLite::
4787 InternalWriteMessageToArray(
4788 1, HasBitSetters::device_uuid(this), target);
4789 }
4790
4791 // .dmi.Uuid component_uuid = 2;
4792 if (this->has_component_uuid()) {
4793 target = ::google::protobuf::internal::WireFormatLite::
4794 InternalWriteMessageToArray(
4795 2, HasBitSetters::component_uuid(this), target);
4796 }
4797
4798 // string component_name = 3;
4799 if (this->component_name().size() > 0) {
4800 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
4801 this->component_name().data(), static_cast<int>(this->component_name().length()),
4802 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
4803 "dmi.EventMetaData.component_name");
4804 target =
4805 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4806 3, this->component_name(), target);
4807 }
4808
4809 if (_internal_metadata_.have_unknown_fields()) {
4810 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4811 _internal_metadata_.unknown_fields(), target);
4812 }
4813 // @@protoc_insertion_point(serialize_to_array_end:dmi.EventMetaData)
4814 return target;
4815}
4816
4817size_t EventMetaData::ByteSizeLong() const {
4818// @@protoc_insertion_point(message_byte_size_start:dmi.EventMetaData)
4819 size_t total_size = 0;
4820
4821 if (_internal_metadata_.have_unknown_fields()) {
4822 total_size +=
4823 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4824 _internal_metadata_.unknown_fields());
4825 }
4826 ::google::protobuf::uint32 cached_has_bits = 0;
4827 // Prevent compiler warnings about cached_has_bits being unused
4828 (void) cached_has_bits;
4829
4830 // string component_name = 3;
4831 if (this->component_name().size() > 0) {
4832 total_size += 1 +
4833 ::google::protobuf::internal::WireFormatLite::StringSize(
4834 this->component_name());
4835 }
4836
4837 // .dmi.Uuid device_uuid = 1;
4838 if (this->has_device_uuid()) {
4839 total_size += 1 +
4840 ::google::protobuf::internal::WireFormatLite::MessageSize(
4841 *device_uuid_);
4842 }
4843
4844 // .dmi.Uuid component_uuid = 2;
4845 if (this->has_component_uuid()) {
4846 total_size += 1 +
4847 ::google::protobuf::internal::WireFormatLite::MessageSize(
4848 *component_uuid_);
4849 }
4850
4851 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4852 SetCachedSize(cached_size);
4853 return total_size;
4854}
4855
4856void EventMetaData::MergeFrom(const ::google::protobuf::Message& from) {
4857// @@protoc_insertion_point(generalized_merge_from_start:dmi.EventMetaData)
4858 GOOGLE_DCHECK_NE(&from, this);
4859 const EventMetaData* source =
4860 ::google::protobuf::DynamicCastToGenerated<EventMetaData>(
4861 &from);
4862 if (source == nullptr) {
4863 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EventMetaData)
4864 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4865 } else {
4866 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EventMetaData)
4867 MergeFrom(*source);
4868 }
4869}
4870
4871void EventMetaData::MergeFrom(const EventMetaData& from) {
4872// @@protoc_insertion_point(class_specific_merge_from_start:dmi.EventMetaData)
4873 GOOGLE_DCHECK_NE(&from, this);
4874 _internal_metadata_.MergeFrom(from._internal_metadata_);
4875 ::google::protobuf::uint32 cached_has_bits = 0;
4876 (void) cached_has_bits;
4877
4878 if (from.component_name().size() > 0) {
4879
4880 component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_);
4881 }
4882 if (from.has_device_uuid()) {
4883 mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid());
4884 }
4885 if (from.has_component_uuid()) {
4886 mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid());
4887 }
4888}
4889
4890void EventMetaData::CopyFrom(const ::google::protobuf::Message& from) {
4891// @@protoc_insertion_point(generalized_copy_from_start:dmi.EventMetaData)
4892 if (&from == this) return;
4893 Clear();
4894 MergeFrom(from);
4895}
4896
4897void EventMetaData::CopyFrom(const EventMetaData& from) {
4898// @@protoc_insertion_point(class_specific_copy_from_start:dmi.EventMetaData)
4899 if (&from == this) return;
4900 Clear();
4901 MergeFrom(from);
4902}
4903
4904bool EventMetaData::IsInitialized() const {
4905 return true;
4906}
4907
4908void EventMetaData::Swap(EventMetaData* other) {
4909 if (other == this) return;
4910 InternalSwap(other);
4911}
4912void EventMetaData::InternalSwap(EventMetaData* other) {
4913 using std::swap;
4914 _internal_metadata_.Swap(&other->_internal_metadata_);
4915 component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4916 GetArenaNoVirtual());
4917 swap(device_uuid_, other->device_uuid_);
4918 swap(component_uuid_, other->component_uuid_);
4919}
4920
4921::google::protobuf::Metadata EventMetaData::GetMetadata() const {
4922 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
4923 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
4924}
4925
4926
4927// ===================================================================
4928
Amit Ghoshe45d9972025-06-26 14:52:48 +02004929void AdminStateChange::InitAsDefaultInstance() {
4930}
4931class AdminStateChange::HasBitSetters {
4932 public:
4933};
4934
4935#if !defined(_MSC_VER) || _MSC_VER >= 1900
4936const int AdminStateChange::kOldFieldNumber;
4937const int AdminStateChange::kNewFieldNumber;
4938#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4939
4940AdminStateChange::AdminStateChange()
4941 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4942 SharedCtor();
4943 // @@protoc_insertion_point(constructor:dmi.AdminStateChange)
4944}
4945AdminStateChange::AdminStateChange(const AdminStateChange& from)
4946 : ::google::protobuf::Message(),
4947 _internal_metadata_(nullptr) {
4948 _internal_metadata_.MergeFrom(from._internal_metadata_);
4949 ::memcpy(&old_, &from.old_,
4950 static_cast<size_t>(reinterpret_cast<char*>(&new__) -
4951 reinterpret_cast<char*>(&old_)) + sizeof(new__));
4952 // @@protoc_insertion_point(copy_constructor:dmi.AdminStateChange)
4953}
4954
4955void AdminStateChange::SharedCtor() {
4956 ::memset(&old_, 0, static_cast<size_t>(
4957 reinterpret_cast<char*>(&new__) -
4958 reinterpret_cast<char*>(&old_)) + sizeof(new__));
4959}
4960
4961AdminStateChange::~AdminStateChange() {
4962 // @@protoc_insertion_point(destructor:dmi.AdminStateChange)
4963 SharedDtor();
4964}
4965
4966void AdminStateChange::SharedDtor() {
4967}
4968
4969void AdminStateChange::SetCachedSize(int size) const {
4970 _cached_size_.Set(size);
4971}
4972const AdminStateChange& AdminStateChange::default_instance() {
4973 ::google::protobuf::internal::InitSCC(&::scc_info_AdminStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
4974 return *internal_default_instance();
4975}
4976
4977
4978void AdminStateChange::Clear() {
4979// @@protoc_insertion_point(message_clear_start:dmi.AdminStateChange)
4980 ::google::protobuf::uint32 cached_has_bits = 0;
4981 // Prevent compiler warnings about cached_has_bits being unused
4982 (void) cached_has_bits;
4983
4984 ::memset(&old_, 0, static_cast<size_t>(
4985 reinterpret_cast<char*>(&new__) -
4986 reinterpret_cast<char*>(&old_)) + sizeof(new__));
4987 _internal_metadata_.Clear();
4988}
4989
4990#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4991const char* AdminStateChange::_InternalParse(const char* begin, const char* end, void* object,
4992 ::google::protobuf::internal::ParseContext* ctx) {
4993 auto msg = static_cast<AdminStateChange*>(object);
4994 ::google::protobuf::int32 size; (void)size;
4995 int depth; (void)depth;
4996 ::google::protobuf::uint32 tag;
4997 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4998 auto ptr = begin;
4999 while (ptr < end) {
5000 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5001 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5002 switch (tag >> 3) {
5003 // .dmi.ComponentAdminState old = 1;
5004 case 1: {
5005 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5006 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5007 msg->set_old(static_cast<::dmi::ComponentAdminState>(val));
5008 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5009 break;
5010 }
5011 // .dmi.ComponentAdminState new = 2;
5012 case 2: {
5013 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5014 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5015 msg->set_new_(static_cast<::dmi::ComponentAdminState>(val));
5016 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5017 break;
5018 }
5019 default: {
5020 handle_unusual:
5021 if ((tag & 7) == 4 || tag == 0) {
5022 ctx->EndGroup(tag);
5023 return ptr;
5024 }
5025 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5026 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5027 ptr = res.first;
5028 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5029 if (res.second) return ptr;
5030 }
5031 } // switch
5032 } // while
5033 return ptr;
5034}
5035#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5036bool AdminStateChange::MergePartialFromCodedStream(
5037 ::google::protobuf::io::CodedInputStream* input) {
5038#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5039 ::google::protobuf::uint32 tag;
5040 // @@protoc_insertion_point(parse_start:dmi.AdminStateChange)
5041 for (;;) {
5042 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5043 tag = p.first;
5044 if (!p.second) goto handle_unusual;
5045 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5046 // .dmi.ComponentAdminState old = 1;
5047 case 1: {
5048 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5049 int value = 0;
5050 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5051 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5052 input, &value)));
5053 set_old(static_cast< ::dmi::ComponentAdminState >(value));
5054 } else {
5055 goto handle_unusual;
5056 }
5057 break;
5058 }
5059
5060 // .dmi.ComponentAdminState new = 2;
5061 case 2: {
5062 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5063 int value = 0;
5064 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5065 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5066 input, &value)));
5067 set_new_(static_cast< ::dmi::ComponentAdminState >(value));
5068 } else {
5069 goto handle_unusual;
5070 }
5071 break;
5072 }
5073
5074 default: {
5075 handle_unusual:
5076 if (tag == 0) {
5077 goto success;
5078 }
5079 DO_(::google::protobuf::internal::WireFormat::SkipField(
5080 input, tag, _internal_metadata_.mutable_unknown_fields()));
5081 break;
5082 }
5083 }
5084 }
5085success:
5086 // @@protoc_insertion_point(parse_success:dmi.AdminStateChange)
5087 return true;
5088failure:
5089 // @@protoc_insertion_point(parse_failure:dmi.AdminStateChange)
5090 return false;
5091#undef DO_
5092}
5093#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5094
5095void AdminStateChange::SerializeWithCachedSizes(
5096 ::google::protobuf::io::CodedOutputStream* output) const {
5097 // @@protoc_insertion_point(serialize_start:dmi.AdminStateChange)
5098 ::google::protobuf::uint32 cached_has_bits = 0;
5099 (void) cached_has_bits;
5100
5101 // .dmi.ComponentAdminState old = 1;
5102 if (this->old() != 0) {
5103 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5104 1, this->old(), output);
5105 }
5106
5107 // .dmi.ComponentAdminState new = 2;
5108 if (this->new_() != 0) {
5109 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5110 2, this->new_(), output);
5111 }
5112
5113 if (_internal_metadata_.have_unknown_fields()) {
5114 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5115 _internal_metadata_.unknown_fields(), output);
5116 }
5117 // @@protoc_insertion_point(serialize_end:dmi.AdminStateChange)
5118}
5119
5120::google::protobuf::uint8* AdminStateChange::InternalSerializeWithCachedSizesToArray(
5121 ::google::protobuf::uint8* target) const {
5122 // @@protoc_insertion_point(serialize_to_array_start:dmi.AdminStateChange)
5123 ::google::protobuf::uint32 cached_has_bits = 0;
5124 (void) cached_has_bits;
5125
5126 // .dmi.ComponentAdminState old = 1;
5127 if (this->old() != 0) {
5128 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5129 1, this->old(), target);
5130 }
5131
5132 // .dmi.ComponentAdminState new = 2;
5133 if (this->new_() != 0) {
5134 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5135 2, this->new_(), target);
5136 }
5137
5138 if (_internal_metadata_.have_unknown_fields()) {
5139 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5140 _internal_metadata_.unknown_fields(), target);
5141 }
5142 // @@protoc_insertion_point(serialize_to_array_end:dmi.AdminStateChange)
5143 return target;
5144}
5145
5146size_t AdminStateChange::ByteSizeLong() const {
5147// @@protoc_insertion_point(message_byte_size_start:dmi.AdminStateChange)
5148 size_t total_size = 0;
5149
5150 if (_internal_metadata_.have_unknown_fields()) {
5151 total_size +=
5152 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5153 _internal_metadata_.unknown_fields());
5154 }
5155 ::google::protobuf::uint32 cached_has_bits = 0;
5156 // Prevent compiler warnings about cached_has_bits being unused
5157 (void) cached_has_bits;
5158
5159 // .dmi.ComponentAdminState old = 1;
5160 if (this->old() != 0) {
5161 total_size += 1 +
5162 ::google::protobuf::internal::WireFormatLite::EnumSize(this->old());
5163 }
5164
5165 // .dmi.ComponentAdminState new = 2;
5166 if (this->new_() != 0) {
5167 total_size += 1 +
5168 ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_());
5169 }
5170
5171 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5172 SetCachedSize(cached_size);
5173 return total_size;
5174}
5175
5176void AdminStateChange::MergeFrom(const ::google::protobuf::Message& from) {
5177// @@protoc_insertion_point(generalized_merge_from_start:dmi.AdminStateChange)
5178 GOOGLE_DCHECK_NE(&from, this);
5179 const AdminStateChange* source =
5180 ::google::protobuf::DynamicCastToGenerated<AdminStateChange>(
5181 &from);
5182 if (source == nullptr) {
5183 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.AdminStateChange)
5184 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5185 } else {
5186 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.AdminStateChange)
5187 MergeFrom(*source);
5188 }
5189}
5190
5191void AdminStateChange::MergeFrom(const AdminStateChange& from) {
5192// @@protoc_insertion_point(class_specific_merge_from_start:dmi.AdminStateChange)
5193 GOOGLE_DCHECK_NE(&from, this);
5194 _internal_metadata_.MergeFrom(from._internal_metadata_);
5195 ::google::protobuf::uint32 cached_has_bits = 0;
5196 (void) cached_has_bits;
5197
5198 if (from.old() != 0) {
5199 set_old(from.old());
5200 }
5201 if (from.new_() != 0) {
5202 set_new_(from.new_());
5203 }
5204}
5205
5206void AdminStateChange::CopyFrom(const ::google::protobuf::Message& from) {
5207// @@protoc_insertion_point(generalized_copy_from_start:dmi.AdminStateChange)
5208 if (&from == this) return;
5209 Clear();
5210 MergeFrom(from);
5211}
5212
5213void AdminStateChange::CopyFrom(const AdminStateChange& from) {
5214// @@protoc_insertion_point(class_specific_copy_from_start:dmi.AdminStateChange)
5215 if (&from == this) return;
5216 Clear();
5217 MergeFrom(from);
5218}
5219
5220bool AdminStateChange::IsInitialized() const {
5221 return true;
5222}
5223
5224void AdminStateChange::Swap(AdminStateChange* other) {
5225 if (other == this) return;
5226 InternalSwap(other);
5227}
5228void AdminStateChange::InternalSwap(AdminStateChange* other) {
5229 using std::swap;
5230 _internal_metadata_.Swap(&other->_internal_metadata_);
5231 swap(old_, other->old_);
5232 swap(new__, other->new__);
5233}
5234
5235::google::protobuf::Metadata AdminStateChange::GetMetadata() const {
5236 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
5237 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
5238}
5239
5240
5241// ===================================================================
5242
5243void OperStateChange::InitAsDefaultInstance() {
5244}
5245class OperStateChange::HasBitSetters {
5246 public:
5247};
5248
5249#if !defined(_MSC_VER) || _MSC_VER >= 1900
5250const int OperStateChange::kOldFieldNumber;
5251const int OperStateChange::kNewFieldNumber;
5252#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5253
5254OperStateChange::OperStateChange()
5255 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5256 SharedCtor();
5257 // @@protoc_insertion_point(constructor:dmi.OperStateChange)
5258}
5259OperStateChange::OperStateChange(const OperStateChange& from)
5260 : ::google::protobuf::Message(),
5261 _internal_metadata_(nullptr) {
5262 _internal_metadata_.MergeFrom(from._internal_metadata_);
5263 ::memcpy(&old_, &from.old_,
5264 static_cast<size_t>(reinterpret_cast<char*>(&new__) -
5265 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5266 // @@protoc_insertion_point(copy_constructor:dmi.OperStateChange)
5267}
5268
5269void OperStateChange::SharedCtor() {
5270 ::memset(&old_, 0, static_cast<size_t>(
5271 reinterpret_cast<char*>(&new__) -
5272 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5273}
5274
5275OperStateChange::~OperStateChange() {
5276 // @@protoc_insertion_point(destructor:dmi.OperStateChange)
5277 SharedDtor();
5278}
5279
5280void OperStateChange::SharedDtor() {
5281}
5282
5283void OperStateChange::SetCachedSize(int size) const {
5284 _cached_size_.Set(size);
5285}
5286const OperStateChange& OperStateChange::default_instance() {
5287 ::google::protobuf::internal::InitSCC(&::scc_info_OperStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
5288 return *internal_default_instance();
5289}
5290
5291
5292void OperStateChange::Clear() {
5293// @@protoc_insertion_point(message_clear_start:dmi.OperStateChange)
5294 ::google::protobuf::uint32 cached_has_bits = 0;
5295 // Prevent compiler warnings about cached_has_bits being unused
5296 (void) cached_has_bits;
5297
5298 ::memset(&old_, 0, static_cast<size_t>(
5299 reinterpret_cast<char*>(&new__) -
5300 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5301 _internal_metadata_.Clear();
5302}
5303
5304#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5305const char* OperStateChange::_InternalParse(const char* begin, const char* end, void* object,
5306 ::google::protobuf::internal::ParseContext* ctx) {
5307 auto msg = static_cast<OperStateChange*>(object);
5308 ::google::protobuf::int32 size; (void)size;
5309 int depth; (void)depth;
5310 ::google::protobuf::uint32 tag;
5311 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5312 auto ptr = begin;
5313 while (ptr < end) {
5314 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5315 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5316 switch (tag >> 3) {
5317 // .dmi.ComponentOperState old = 1;
5318 case 1: {
5319 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5320 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5321 msg->set_old(static_cast<::dmi::ComponentOperState>(val));
5322 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5323 break;
5324 }
5325 // .dmi.ComponentOperState new = 2;
5326 case 2: {
5327 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5328 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5329 msg->set_new_(static_cast<::dmi::ComponentOperState>(val));
5330 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5331 break;
5332 }
5333 default: {
5334 handle_unusual:
5335 if ((tag & 7) == 4 || tag == 0) {
5336 ctx->EndGroup(tag);
5337 return ptr;
5338 }
5339 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5340 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5341 ptr = res.first;
5342 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5343 if (res.second) return ptr;
5344 }
5345 } // switch
5346 } // while
5347 return ptr;
5348}
5349#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5350bool OperStateChange::MergePartialFromCodedStream(
5351 ::google::protobuf::io::CodedInputStream* input) {
5352#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5353 ::google::protobuf::uint32 tag;
5354 // @@protoc_insertion_point(parse_start:dmi.OperStateChange)
5355 for (;;) {
5356 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5357 tag = p.first;
5358 if (!p.second) goto handle_unusual;
5359 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5360 // .dmi.ComponentOperState old = 1;
5361 case 1: {
5362 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5363 int value = 0;
5364 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5365 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5366 input, &value)));
5367 set_old(static_cast< ::dmi::ComponentOperState >(value));
5368 } else {
5369 goto handle_unusual;
5370 }
5371 break;
5372 }
5373
5374 // .dmi.ComponentOperState new = 2;
5375 case 2: {
5376 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5377 int value = 0;
5378 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5379 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5380 input, &value)));
5381 set_new_(static_cast< ::dmi::ComponentOperState >(value));
5382 } else {
5383 goto handle_unusual;
5384 }
5385 break;
5386 }
5387
5388 default: {
5389 handle_unusual:
5390 if (tag == 0) {
5391 goto success;
5392 }
5393 DO_(::google::protobuf::internal::WireFormat::SkipField(
5394 input, tag, _internal_metadata_.mutable_unknown_fields()));
5395 break;
5396 }
5397 }
5398 }
5399success:
5400 // @@protoc_insertion_point(parse_success:dmi.OperStateChange)
5401 return true;
5402failure:
5403 // @@protoc_insertion_point(parse_failure:dmi.OperStateChange)
5404 return false;
5405#undef DO_
5406}
5407#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5408
5409void OperStateChange::SerializeWithCachedSizes(
5410 ::google::protobuf::io::CodedOutputStream* output) const {
5411 // @@protoc_insertion_point(serialize_start:dmi.OperStateChange)
5412 ::google::protobuf::uint32 cached_has_bits = 0;
5413 (void) cached_has_bits;
5414
5415 // .dmi.ComponentOperState old = 1;
5416 if (this->old() != 0) {
5417 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5418 1, this->old(), output);
5419 }
5420
5421 // .dmi.ComponentOperState new = 2;
5422 if (this->new_() != 0) {
5423 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5424 2, this->new_(), output);
5425 }
5426
5427 if (_internal_metadata_.have_unknown_fields()) {
5428 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5429 _internal_metadata_.unknown_fields(), output);
5430 }
5431 // @@protoc_insertion_point(serialize_end:dmi.OperStateChange)
5432}
5433
5434::google::protobuf::uint8* OperStateChange::InternalSerializeWithCachedSizesToArray(
5435 ::google::protobuf::uint8* target) const {
5436 // @@protoc_insertion_point(serialize_to_array_start:dmi.OperStateChange)
5437 ::google::protobuf::uint32 cached_has_bits = 0;
5438 (void) cached_has_bits;
5439
5440 // .dmi.ComponentOperState old = 1;
5441 if (this->old() != 0) {
5442 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5443 1, this->old(), target);
5444 }
5445
5446 // .dmi.ComponentOperState new = 2;
5447 if (this->new_() != 0) {
5448 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5449 2, this->new_(), target);
5450 }
5451
5452 if (_internal_metadata_.have_unknown_fields()) {
5453 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5454 _internal_metadata_.unknown_fields(), target);
5455 }
5456 // @@protoc_insertion_point(serialize_to_array_end:dmi.OperStateChange)
5457 return target;
5458}
5459
5460size_t OperStateChange::ByteSizeLong() const {
5461// @@protoc_insertion_point(message_byte_size_start:dmi.OperStateChange)
5462 size_t total_size = 0;
5463
5464 if (_internal_metadata_.have_unknown_fields()) {
5465 total_size +=
5466 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5467 _internal_metadata_.unknown_fields());
5468 }
5469 ::google::protobuf::uint32 cached_has_bits = 0;
5470 // Prevent compiler warnings about cached_has_bits being unused
5471 (void) cached_has_bits;
5472
5473 // .dmi.ComponentOperState old = 1;
5474 if (this->old() != 0) {
5475 total_size += 1 +
5476 ::google::protobuf::internal::WireFormatLite::EnumSize(this->old());
5477 }
5478
5479 // .dmi.ComponentOperState new = 2;
5480 if (this->new_() != 0) {
5481 total_size += 1 +
5482 ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_());
5483 }
5484
5485 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5486 SetCachedSize(cached_size);
5487 return total_size;
5488}
5489
5490void OperStateChange::MergeFrom(const ::google::protobuf::Message& from) {
5491// @@protoc_insertion_point(generalized_merge_from_start:dmi.OperStateChange)
5492 GOOGLE_DCHECK_NE(&from, this);
5493 const OperStateChange* source =
5494 ::google::protobuf::DynamicCastToGenerated<OperStateChange>(
5495 &from);
5496 if (source == nullptr) {
5497 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.OperStateChange)
5498 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5499 } else {
5500 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.OperStateChange)
5501 MergeFrom(*source);
5502 }
5503}
5504
5505void OperStateChange::MergeFrom(const OperStateChange& from) {
5506// @@protoc_insertion_point(class_specific_merge_from_start:dmi.OperStateChange)
5507 GOOGLE_DCHECK_NE(&from, this);
5508 _internal_metadata_.MergeFrom(from._internal_metadata_);
5509 ::google::protobuf::uint32 cached_has_bits = 0;
5510 (void) cached_has_bits;
5511
5512 if (from.old() != 0) {
5513 set_old(from.old());
5514 }
5515 if (from.new_() != 0) {
5516 set_new_(from.new_());
5517 }
5518}
5519
5520void OperStateChange::CopyFrom(const ::google::protobuf::Message& from) {
5521// @@protoc_insertion_point(generalized_copy_from_start:dmi.OperStateChange)
5522 if (&from == this) return;
5523 Clear();
5524 MergeFrom(from);
5525}
5526
5527void OperStateChange::CopyFrom(const OperStateChange& from) {
5528// @@protoc_insertion_point(class_specific_copy_from_start:dmi.OperStateChange)
5529 if (&from == this) return;
5530 Clear();
5531 MergeFrom(from);
5532}
5533
5534bool OperStateChange::IsInitialized() const {
5535 return true;
5536}
5537
5538void OperStateChange::Swap(OperStateChange* other) {
5539 if (other == this) return;
5540 InternalSwap(other);
5541}
5542void OperStateChange::InternalSwap(OperStateChange* other) {
5543 using std::swap;
5544 _internal_metadata_.Swap(&other->_internal_metadata_);
5545 swap(old_, other->old_);
5546 swap(new__, other->new__);
5547}
5548
5549::google::protobuf::Metadata OperStateChange::GetMetadata() const {
5550 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
5551 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
5552}
5553
5554
5555// ===================================================================
5556
5557void AlarmStateChange::InitAsDefaultInstance() {
5558}
5559class AlarmStateChange::HasBitSetters {
5560 public:
5561};
5562
5563#if !defined(_MSC_VER) || _MSC_VER >= 1900
5564const int AlarmStateChange::kOldFieldNumber;
5565const int AlarmStateChange::kNewFieldNumber;
5566#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5567
5568AlarmStateChange::AlarmStateChange()
5569 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5570 SharedCtor();
5571 // @@protoc_insertion_point(constructor:dmi.AlarmStateChange)
5572}
5573AlarmStateChange::AlarmStateChange(const AlarmStateChange& from)
5574 : ::google::protobuf::Message(),
5575 _internal_metadata_(nullptr) {
5576 _internal_metadata_.MergeFrom(from._internal_metadata_);
5577 ::memcpy(&old_, &from.old_,
5578 static_cast<size_t>(reinterpret_cast<char*>(&new__) -
5579 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5580 // @@protoc_insertion_point(copy_constructor:dmi.AlarmStateChange)
5581}
5582
5583void AlarmStateChange::SharedCtor() {
5584 ::memset(&old_, 0, static_cast<size_t>(
5585 reinterpret_cast<char*>(&new__) -
5586 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5587}
5588
5589AlarmStateChange::~AlarmStateChange() {
5590 // @@protoc_insertion_point(destructor:dmi.AlarmStateChange)
5591 SharedDtor();
5592}
5593
5594void AlarmStateChange::SharedDtor() {
5595}
5596
5597void AlarmStateChange::SetCachedSize(int size) const {
5598 _cached_size_.Set(size);
5599}
5600const AlarmStateChange& AlarmStateChange::default_instance() {
5601 ::google::protobuf::internal::InitSCC(&::scc_info_AlarmStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
5602 return *internal_default_instance();
5603}
5604
5605
5606void AlarmStateChange::Clear() {
5607// @@protoc_insertion_point(message_clear_start:dmi.AlarmStateChange)
5608 ::google::protobuf::uint32 cached_has_bits = 0;
5609 // Prevent compiler warnings about cached_has_bits being unused
5610 (void) cached_has_bits;
5611
5612 ::memset(&old_, 0, static_cast<size_t>(
5613 reinterpret_cast<char*>(&new__) -
5614 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5615 _internal_metadata_.Clear();
5616}
5617
5618#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5619const char* AlarmStateChange::_InternalParse(const char* begin, const char* end, void* object,
5620 ::google::protobuf::internal::ParseContext* ctx) {
5621 auto msg = static_cast<AlarmStateChange*>(object);
5622 ::google::protobuf::int32 size; (void)size;
5623 int depth; (void)depth;
5624 ::google::protobuf::uint32 tag;
5625 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5626 auto ptr = begin;
5627 while (ptr < end) {
5628 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5629 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5630 switch (tag >> 3) {
5631 // .dmi.ComponentAlarmState old = 1;
5632 case 1: {
5633 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5634 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5635 msg->set_old(static_cast<::dmi::ComponentAlarmState>(val));
5636 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5637 break;
5638 }
5639 // .dmi.ComponentAlarmState new = 2;
5640 case 2: {
5641 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5642 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5643 msg->set_new_(static_cast<::dmi::ComponentAlarmState>(val));
5644 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5645 break;
5646 }
5647 default: {
5648 handle_unusual:
5649 if ((tag & 7) == 4 || tag == 0) {
5650 ctx->EndGroup(tag);
5651 return ptr;
5652 }
5653 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5654 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5655 ptr = res.first;
5656 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5657 if (res.second) return ptr;
5658 }
5659 } // switch
5660 } // while
5661 return ptr;
5662}
5663#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5664bool AlarmStateChange::MergePartialFromCodedStream(
5665 ::google::protobuf::io::CodedInputStream* input) {
5666#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5667 ::google::protobuf::uint32 tag;
5668 // @@protoc_insertion_point(parse_start:dmi.AlarmStateChange)
5669 for (;;) {
5670 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5671 tag = p.first;
5672 if (!p.second) goto handle_unusual;
5673 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5674 // .dmi.ComponentAlarmState old = 1;
5675 case 1: {
5676 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5677 int value = 0;
5678 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5679 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5680 input, &value)));
5681 set_old(static_cast< ::dmi::ComponentAlarmState >(value));
5682 } else {
5683 goto handle_unusual;
5684 }
5685 break;
5686 }
5687
5688 // .dmi.ComponentAlarmState new = 2;
5689 case 2: {
5690 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5691 int value = 0;
5692 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5693 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5694 input, &value)));
5695 set_new_(static_cast< ::dmi::ComponentAlarmState >(value));
5696 } else {
5697 goto handle_unusual;
5698 }
5699 break;
5700 }
5701
5702 default: {
5703 handle_unusual:
5704 if (tag == 0) {
5705 goto success;
5706 }
5707 DO_(::google::protobuf::internal::WireFormat::SkipField(
5708 input, tag, _internal_metadata_.mutable_unknown_fields()));
5709 break;
5710 }
5711 }
5712 }
5713success:
5714 // @@protoc_insertion_point(parse_success:dmi.AlarmStateChange)
5715 return true;
5716failure:
5717 // @@protoc_insertion_point(parse_failure:dmi.AlarmStateChange)
5718 return false;
5719#undef DO_
5720}
5721#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5722
5723void AlarmStateChange::SerializeWithCachedSizes(
5724 ::google::protobuf::io::CodedOutputStream* output) const {
5725 // @@protoc_insertion_point(serialize_start:dmi.AlarmStateChange)
5726 ::google::protobuf::uint32 cached_has_bits = 0;
5727 (void) cached_has_bits;
5728
5729 // .dmi.ComponentAlarmState old = 1;
5730 if (this->old() != 0) {
5731 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5732 1, this->old(), output);
5733 }
5734
5735 // .dmi.ComponentAlarmState new = 2;
5736 if (this->new_() != 0) {
5737 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5738 2, this->new_(), output);
5739 }
5740
5741 if (_internal_metadata_.have_unknown_fields()) {
5742 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5743 _internal_metadata_.unknown_fields(), output);
5744 }
5745 // @@protoc_insertion_point(serialize_end:dmi.AlarmStateChange)
5746}
5747
5748::google::protobuf::uint8* AlarmStateChange::InternalSerializeWithCachedSizesToArray(
5749 ::google::protobuf::uint8* target) const {
5750 // @@protoc_insertion_point(serialize_to_array_start:dmi.AlarmStateChange)
5751 ::google::protobuf::uint32 cached_has_bits = 0;
5752 (void) cached_has_bits;
5753
5754 // .dmi.ComponentAlarmState old = 1;
5755 if (this->old() != 0) {
5756 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5757 1, this->old(), target);
5758 }
5759
5760 // .dmi.ComponentAlarmState new = 2;
5761 if (this->new_() != 0) {
5762 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5763 2, this->new_(), target);
5764 }
5765
5766 if (_internal_metadata_.have_unknown_fields()) {
5767 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5768 _internal_metadata_.unknown_fields(), target);
5769 }
5770 // @@protoc_insertion_point(serialize_to_array_end:dmi.AlarmStateChange)
5771 return target;
5772}
5773
5774size_t AlarmStateChange::ByteSizeLong() const {
5775// @@protoc_insertion_point(message_byte_size_start:dmi.AlarmStateChange)
5776 size_t total_size = 0;
5777
5778 if (_internal_metadata_.have_unknown_fields()) {
5779 total_size +=
5780 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5781 _internal_metadata_.unknown_fields());
5782 }
5783 ::google::protobuf::uint32 cached_has_bits = 0;
5784 // Prevent compiler warnings about cached_has_bits being unused
5785 (void) cached_has_bits;
5786
5787 // .dmi.ComponentAlarmState old = 1;
5788 if (this->old() != 0) {
5789 total_size += 1 +
5790 ::google::protobuf::internal::WireFormatLite::EnumSize(this->old());
5791 }
5792
5793 // .dmi.ComponentAlarmState new = 2;
5794 if (this->new_() != 0) {
5795 total_size += 1 +
5796 ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_());
5797 }
5798
5799 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5800 SetCachedSize(cached_size);
5801 return total_size;
5802}
5803
5804void AlarmStateChange::MergeFrom(const ::google::protobuf::Message& from) {
5805// @@protoc_insertion_point(generalized_merge_from_start:dmi.AlarmStateChange)
5806 GOOGLE_DCHECK_NE(&from, this);
5807 const AlarmStateChange* source =
5808 ::google::protobuf::DynamicCastToGenerated<AlarmStateChange>(
5809 &from);
5810 if (source == nullptr) {
5811 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.AlarmStateChange)
5812 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5813 } else {
5814 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.AlarmStateChange)
5815 MergeFrom(*source);
5816 }
5817}
5818
5819void AlarmStateChange::MergeFrom(const AlarmStateChange& from) {
5820// @@protoc_insertion_point(class_specific_merge_from_start:dmi.AlarmStateChange)
5821 GOOGLE_DCHECK_NE(&from, this);
5822 _internal_metadata_.MergeFrom(from._internal_metadata_);
5823 ::google::protobuf::uint32 cached_has_bits = 0;
5824 (void) cached_has_bits;
5825
5826 if (from.old() != 0) {
5827 set_old(from.old());
5828 }
5829 if (from.new_() != 0) {
5830 set_new_(from.new_());
5831 }
5832}
5833
5834void AlarmStateChange::CopyFrom(const ::google::protobuf::Message& from) {
5835// @@protoc_insertion_point(generalized_copy_from_start:dmi.AlarmStateChange)
5836 if (&from == this) return;
5837 Clear();
5838 MergeFrom(from);
5839}
5840
5841void AlarmStateChange::CopyFrom(const AlarmStateChange& from) {
5842// @@protoc_insertion_point(class_specific_copy_from_start:dmi.AlarmStateChange)
5843 if (&from == this) return;
5844 Clear();
5845 MergeFrom(from);
5846}
5847
5848bool AlarmStateChange::IsInitialized() const {
5849 return true;
5850}
5851
5852void AlarmStateChange::Swap(AlarmStateChange* other) {
5853 if (other == this) return;
5854 InternalSwap(other);
5855}
5856void AlarmStateChange::InternalSwap(AlarmStateChange* other) {
5857 using std::swap;
5858 _internal_metadata_.Swap(&other->_internal_metadata_);
5859 swap(old_, other->old_);
5860 swap(new__, other->new__);
5861}
5862
5863::google::protobuf::Metadata AlarmStateChange::GetMetadata() const {
5864 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
5865 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
5866}
5867
5868
5869// ===================================================================
5870
5871void UsageStateChange::InitAsDefaultInstance() {
5872}
5873class UsageStateChange::HasBitSetters {
5874 public:
5875};
5876
5877#if !defined(_MSC_VER) || _MSC_VER >= 1900
5878const int UsageStateChange::kOldFieldNumber;
5879const int UsageStateChange::kNewFieldNumber;
5880#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5881
5882UsageStateChange::UsageStateChange()
5883 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5884 SharedCtor();
5885 // @@protoc_insertion_point(constructor:dmi.UsageStateChange)
5886}
5887UsageStateChange::UsageStateChange(const UsageStateChange& from)
5888 : ::google::protobuf::Message(),
5889 _internal_metadata_(nullptr) {
5890 _internal_metadata_.MergeFrom(from._internal_metadata_);
5891 ::memcpy(&old_, &from.old_,
5892 static_cast<size_t>(reinterpret_cast<char*>(&new__) -
5893 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5894 // @@protoc_insertion_point(copy_constructor:dmi.UsageStateChange)
5895}
5896
5897void UsageStateChange::SharedCtor() {
5898 ::memset(&old_, 0, static_cast<size_t>(
5899 reinterpret_cast<char*>(&new__) -
5900 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5901}
5902
5903UsageStateChange::~UsageStateChange() {
5904 // @@protoc_insertion_point(destructor:dmi.UsageStateChange)
5905 SharedDtor();
5906}
5907
5908void UsageStateChange::SharedDtor() {
5909}
5910
5911void UsageStateChange::SetCachedSize(int size) const {
5912 _cached_size_.Set(size);
5913}
5914const UsageStateChange& UsageStateChange::default_instance() {
5915 ::google::protobuf::internal::InitSCC(&::scc_info_UsageStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
5916 return *internal_default_instance();
5917}
5918
5919
5920void UsageStateChange::Clear() {
5921// @@protoc_insertion_point(message_clear_start:dmi.UsageStateChange)
5922 ::google::protobuf::uint32 cached_has_bits = 0;
5923 // Prevent compiler warnings about cached_has_bits being unused
5924 (void) cached_has_bits;
5925
5926 ::memset(&old_, 0, static_cast<size_t>(
5927 reinterpret_cast<char*>(&new__) -
5928 reinterpret_cast<char*>(&old_)) + sizeof(new__));
5929 _internal_metadata_.Clear();
5930}
5931
5932#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5933const char* UsageStateChange::_InternalParse(const char* begin, const char* end, void* object,
5934 ::google::protobuf::internal::ParseContext* ctx) {
5935 auto msg = static_cast<UsageStateChange*>(object);
5936 ::google::protobuf::int32 size; (void)size;
5937 int depth; (void)depth;
5938 ::google::protobuf::uint32 tag;
5939 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5940 auto ptr = begin;
5941 while (ptr < end) {
5942 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5943 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5944 switch (tag >> 3) {
5945 // .dmi.ComponentUsageState old = 1;
5946 case 1: {
5947 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5948 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5949 msg->set_old(static_cast<::dmi::ComponentUsageState>(val));
5950 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5951 break;
5952 }
5953 // .dmi.ComponentUsageState new = 2;
5954 case 2: {
5955 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5956 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5957 msg->set_new_(static_cast<::dmi::ComponentUsageState>(val));
5958 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5959 break;
5960 }
5961 default: {
5962 handle_unusual:
5963 if ((tag & 7) == 4 || tag == 0) {
5964 ctx->EndGroup(tag);
5965 return ptr;
5966 }
5967 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5968 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5969 ptr = res.first;
5970 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5971 if (res.second) return ptr;
5972 }
5973 } // switch
5974 } // while
5975 return ptr;
5976}
5977#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5978bool UsageStateChange::MergePartialFromCodedStream(
5979 ::google::protobuf::io::CodedInputStream* input) {
5980#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5981 ::google::protobuf::uint32 tag;
5982 // @@protoc_insertion_point(parse_start:dmi.UsageStateChange)
5983 for (;;) {
5984 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5985 tag = p.first;
5986 if (!p.second) goto handle_unusual;
5987 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5988 // .dmi.ComponentUsageState old = 1;
5989 case 1: {
5990 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5991 int value = 0;
5992 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5993 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5994 input, &value)));
5995 set_old(static_cast< ::dmi::ComponentUsageState >(value));
5996 } else {
5997 goto handle_unusual;
5998 }
5999 break;
6000 }
6001
6002 // .dmi.ComponentUsageState new = 2;
6003 case 2: {
6004 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6005 int value = 0;
6006 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6007 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6008 input, &value)));
6009 set_new_(static_cast< ::dmi::ComponentUsageState >(value));
6010 } else {
6011 goto handle_unusual;
6012 }
6013 break;
6014 }
6015
6016 default: {
6017 handle_unusual:
6018 if (tag == 0) {
6019 goto success;
6020 }
6021 DO_(::google::protobuf::internal::WireFormat::SkipField(
6022 input, tag, _internal_metadata_.mutable_unknown_fields()));
6023 break;
6024 }
6025 }
6026 }
6027success:
6028 // @@protoc_insertion_point(parse_success:dmi.UsageStateChange)
6029 return true;
6030failure:
6031 // @@protoc_insertion_point(parse_failure:dmi.UsageStateChange)
6032 return false;
6033#undef DO_
6034}
6035#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6036
6037void UsageStateChange::SerializeWithCachedSizes(
6038 ::google::protobuf::io::CodedOutputStream* output) const {
6039 // @@protoc_insertion_point(serialize_start:dmi.UsageStateChange)
6040 ::google::protobuf::uint32 cached_has_bits = 0;
6041 (void) cached_has_bits;
6042
6043 // .dmi.ComponentUsageState old = 1;
6044 if (this->old() != 0) {
6045 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6046 1, this->old(), output);
6047 }
6048
6049 // .dmi.ComponentUsageState new = 2;
6050 if (this->new_() != 0) {
6051 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6052 2, this->new_(), output);
6053 }
6054
6055 if (_internal_metadata_.have_unknown_fields()) {
6056 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6057 _internal_metadata_.unknown_fields(), output);
6058 }
6059 // @@protoc_insertion_point(serialize_end:dmi.UsageStateChange)
6060}
6061
6062::google::protobuf::uint8* UsageStateChange::InternalSerializeWithCachedSizesToArray(
6063 ::google::protobuf::uint8* target) const {
6064 // @@protoc_insertion_point(serialize_to_array_start:dmi.UsageStateChange)
6065 ::google::protobuf::uint32 cached_has_bits = 0;
6066 (void) cached_has_bits;
6067
6068 // .dmi.ComponentUsageState old = 1;
6069 if (this->old() != 0) {
6070 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6071 1, this->old(), target);
6072 }
6073
6074 // .dmi.ComponentUsageState new = 2;
6075 if (this->new_() != 0) {
6076 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6077 2, this->new_(), target);
6078 }
6079
6080 if (_internal_metadata_.have_unknown_fields()) {
6081 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6082 _internal_metadata_.unknown_fields(), target);
6083 }
6084 // @@protoc_insertion_point(serialize_to_array_end:dmi.UsageStateChange)
6085 return target;
6086}
6087
6088size_t UsageStateChange::ByteSizeLong() const {
6089// @@protoc_insertion_point(message_byte_size_start:dmi.UsageStateChange)
6090 size_t total_size = 0;
6091
6092 if (_internal_metadata_.have_unknown_fields()) {
6093 total_size +=
6094 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6095 _internal_metadata_.unknown_fields());
6096 }
6097 ::google::protobuf::uint32 cached_has_bits = 0;
6098 // Prevent compiler warnings about cached_has_bits being unused
6099 (void) cached_has_bits;
6100
6101 // .dmi.ComponentUsageState old = 1;
6102 if (this->old() != 0) {
6103 total_size += 1 +
6104 ::google::protobuf::internal::WireFormatLite::EnumSize(this->old());
6105 }
6106
6107 // .dmi.ComponentUsageState new = 2;
6108 if (this->new_() != 0) {
6109 total_size += 1 +
6110 ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_());
6111 }
6112
6113 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6114 SetCachedSize(cached_size);
6115 return total_size;
6116}
6117
6118void UsageStateChange::MergeFrom(const ::google::protobuf::Message& from) {
6119// @@protoc_insertion_point(generalized_merge_from_start:dmi.UsageStateChange)
6120 GOOGLE_DCHECK_NE(&from, this);
6121 const UsageStateChange* source =
6122 ::google::protobuf::DynamicCastToGenerated<UsageStateChange>(
6123 &from);
6124 if (source == nullptr) {
6125 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.UsageStateChange)
6126 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6127 } else {
6128 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.UsageStateChange)
6129 MergeFrom(*source);
6130 }
6131}
6132
6133void UsageStateChange::MergeFrom(const UsageStateChange& from) {
6134// @@protoc_insertion_point(class_specific_merge_from_start:dmi.UsageStateChange)
6135 GOOGLE_DCHECK_NE(&from, this);
6136 _internal_metadata_.MergeFrom(from._internal_metadata_);
6137 ::google::protobuf::uint32 cached_has_bits = 0;
6138 (void) cached_has_bits;
6139
6140 if (from.old() != 0) {
6141 set_old(from.old());
6142 }
6143 if (from.new_() != 0) {
6144 set_new_(from.new_());
6145 }
6146}
6147
6148void UsageStateChange::CopyFrom(const ::google::protobuf::Message& from) {
6149// @@protoc_insertion_point(generalized_copy_from_start:dmi.UsageStateChange)
6150 if (&from == this) return;
6151 Clear();
6152 MergeFrom(from);
6153}
6154
6155void UsageStateChange::CopyFrom(const UsageStateChange& from) {
6156// @@protoc_insertion_point(class_specific_copy_from_start:dmi.UsageStateChange)
6157 if (&from == this) return;
6158 Clear();
6159 MergeFrom(from);
6160}
6161
6162bool UsageStateChange::IsInitialized() const {
6163 return true;
6164}
6165
6166void UsageStateChange::Swap(UsageStateChange* other) {
6167 if (other == this) return;
6168 InternalSwap(other);
6169}
6170void UsageStateChange::InternalSwap(UsageStateChange* other) {
6171 using std::swap;
6172 _internal_metadata_.Swap(&other->_internal_metadata_);
6173 swap(old_, other->old_);
6174 swap(new__, other->new__);
6175}
6176
6177::google::protobuf::Metadata UsageStateChange::GetMetadata() const {
6178 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
6179 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
6180}
6181
6182
6183// ===================================================================
6184
6185void StandbyStateChange::InitAsDefaultInstance() {
6186}
6187class StandbyStateChange::HasBitSetters {
6188 public:
6189};
6190
6191#if !defined(_MSC_VER) || _MSC_VER >= 1900
6192const int StandbyStateChange::kOldFieldNumber;
6193const int StandbyStateChange::kNewFieldNumber;
6194#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6195
6196StandbyStateChange::StandbyStateChange()
6197 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6198 SharedCtor();
6199 // @@protoc_insertion_point(constructor:dmi.StandbyStateChange)
6200}
6201StandbyStateChange::StandbyStateChange(const StandbyStateChange& from)
6202 : ::google::protobuf::Message(),
6203 _internal_metadata_(nullptr) {
6204 _internal_metadata_.MergeFrom(from._internal_metadata_);
6205 ::memcpy(&old_, &from.old_,
6206 static_cast<size_t>(reinterpret_cast<char*>(&new__) -
6207 reinterpret_cast<char*>(&old_)) + sizeof(new__));
6208 // @@protoc_insertion_point(copy_constructor:dmi.StandbyStateChange)
6209}
6210
6211void StandbyStateChange::SharedCtor() {
6212 ::memset(&old_, 0, static_cast<size_t>(
6213 reinterpret_cast<char*>(&new__) -
6214 reinterpret_cast<char*>(&old_)) + sizeof(new__));
6215}
6216
6217StandbyStateChange::~StandbyStateChange() {
6218 // @@protoc_insertion_point(destructor:dmi.StandbyStateChange)
6219 SharedDtor();
6220}
6221
6222void StandbyStateChange::SharedDtor() {
6223}
6224
6225void StandbyStateChange::SetCachedSize(int size) const {
6226 _cached_size_.Set(size);
6227}
6228const StandbyStateChange& StandbyStateChange::default_instance() {
6229 ::google::protobuf::internal::InitSCC(&::scc_info_StandbyStateChange_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
6230 return *internal_default_instance();
6231}
6232
6233
6234void StandbyStateChange::Clear() {
6235// @@protoc_insertion_point(message_clear_start:dmi.StandbyStateChange)
6236 ::google::protobuf::uint32 cached_has_bits = 0;
6237 // Prevent compiler warnings about cached_has_bits being unused
6238 (void) cached_has_bits;
6239
6240 ::memset(&old_, 0, static_cast<size_t>(
6241 reinterpret_cast<char*>(&new__) -
6242 reinterpret_cast<char*>(&old_)) + sizeof(new__));
6243 _internal_metadata_.Clear();
6244}
6245
6246#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6247const char* StandbyStateChange::_InternalParse(const char* begin, const char* end, void* object,
6248 ::google::protobuf::internal::ParseContext* ctx) {
6249 auto msg = static_cast<StandbyStateChange*>(object);
6250 ::google::protobuf::int32 size; (void)size;
6251 int depth; (void)depth;
6252 ::google::protobuf::uint32 tag;
6253 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6254 auto ptr = begin;
6255 while (ptr < end) {
6256 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6257 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6258 switch (tag >> 3) {
6259 // .dmi.ComponentStandbyState old = 1;
6260 case 1: {
6261 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
6262 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6263 msg->set_old(static_cast<::dmi::ComponentStandbyState>(val));
6264 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6265 break;
6266 }
6267 // .dmi.ComponentStandbyState new = 2;
6268 case 2: {
6269 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6270 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6271 msg->set_new_(static_cast<::dmi::ComponentStandbyState>(val));
6272 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6273 break;
6274 }
6275 default: {
6276 handle_unusual:
6277 if ((tag & 7) == 4 || tag == 0) {
6278 ctx->EndGroup(tag);
6279 return ptr;
6280 }
6281 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6282 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6283 ptr = res.first;
6284 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6285 if (res.second) return ptr;
6286 }
6287 } // switch
6288 } // while
6289 return ptr;
6290}
6291#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6292bool StandbyStateChange::MergePartialFromCodedStream(
6293 ::google::protobuf::io::CodedInputStream* input) {
6294#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6295 ::google::protobuf::uint32 tag;
6296 // @@protoc_insertion_point(parse_start:dmi.StandbyStateChange)
6297 for (;;) {
6298 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6299 tag = p.first;
6300 if (!p.second) goto handle_unusual;
6301 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6302 // .dmi.ComponentStandbyState old = 1;
6303 case 1: {
6304 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6305 int value = 0;
6306 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6307 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6308 input, &value)));
6309 set_old(static_cast< ::dmi::ComponentStandbyState >(value));
6310 } else {
6311 goto handle_unusual;
6312 }
6313 break;
6314 }
6315
6316 // .dmi.ComponentStandbyState new = 2;
6317 case 2: {
6318 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6319 int value = 0;
6320 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6321 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6322 input, &value)));
6323 set_new_(static_cast< ::dmi::ComponentStandbyState >(value));
6324 } else {
6325 goto handle_unusual;
6326 }
6327 break;
6328 }
6329
6330 default: {
6331 handle_unusual:
6332 if (tag == 0) {
6333 goto success;
6334 }
6335 DO_(::google::protobuf::internal::WireFormat::SkipField(
6336 input, tag, _internal_metadata_.mutable_unknown_fields()));
6337 break;
6338 }
6339 }
6340 }
6341success:
6342 // @@protoc_insertion_point(parse_success:dmi.StandbyStateChange)
6343 return true;
6344failure:
6345 // @@protoc_insertion_point(parse_failure:dmi.StandbyStateChange)
6346 return false;
6347#undef DO_
6348}
6349#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6350
6351void StandbyStateChange::SerializeWithCachedSizes(
6352 ::google::protobuf::io::CodedOutputStream* output) const {
6353 // @@protoc_insertion_point(serialize_start:dmi.StandbyStateChange)
6354 ::google::protobuf::uint32 cached_has_bits = 0;
6355 (void) cached_has_bits;
6356
6357 // .dmi.ComponentStandbyState old = 1;
6358 if (this->old() != 0) {
6359 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6360 1, this->old(), output);
6361 }
6362
6363 // .dmi.ComponentStandbyState new = 2;
6364 if (this->new_() != 0) {
6365 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6366 2, this->new_(), output);
6367 }
6368
6369 if (_internal_metadata_.have_unknown_fields()) {
6370 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6371 _internal_metadata_.unknown_fields(), output);
6372 }
6373 // @@protoc_insertion_point(serialize_end:dmi.StandbyStateChange)
6374}
6375
6376::google::protobuf::uint8* StandbyStateChange::InternalSerializeWithCachedSizesToArray(
6377 ::google::protobuf::uint8* target) const {
6378 // @@protoc_insertion_point(serialize_to_array_start:dmi.StandbyStateChange)
6379 ::google::protobuf::uint32 cached_has_bits = 0;
6380 (void) cached_has_bits;
6381
6382 // .dmi.ComponentStandbyState old = 1;
6383 if (this->old() != 0) {
6384 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6385 1, this->old(), target);
6386 }
6387
6388 // .dmi.ComponentStandbyState new = 2;
6389 if (this->new_() != 0) {
6390 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6391 2, this->new_(), target);
6392 }
6393
6394 if (_internal_metadata_.have_unknown_fields()) {
6395 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6396 _internal_metadata_.unknown_fields(), target);
6397 }
6398 // @@protoc_insertion_point(serialize_to_array_end:dmi.StandbyStateChange)
6399 return target;
6400}
6401
6402size_t StandbyStateChange::ByteSizeLong() const {
6403// @@protoc_insertion_point(message_byte_size_start:dmi.StandbyStateChange)
6404 size_t total_size = 0;
6405
6406 if (_internal_metadata_.have_unknown_fields()) {
6407 total_size +=
6408 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6409 _internal_metadata_.unknown_fields());
6410 }
6411 ::google::protobuf::uint32 cached_has_bits = 0;
6412 // Prevent compiler warnings about cached_has_bits being unused
6413 (void) cached_has_bits;
6414
6415 // .dmi.ComponentStandbyState old = 1;
6416 if (this->old() != 0) {
6417 total_size += 1 +
6418 ::google::protobuf::internal::WireFormatLite::EnumSize(this->old());
6419 }
6420
6421 // .dmi.ComponentStandbyState new = 2;
6422 if (this->new_() != 0) {
6423 total_size += 1 +
6424 ::google::protobuf::internal::WireFormatLite::EnumSize(this->new_());
6425 }
6426
6427 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6428 SetCachedSize(cached_size);
6429 return total_size;
6430}
6431
6432void StandbyStateChange::MergeFrom(const ::google::protobuf::Message& from) {
6433// @@protoc_insertion_point(generalized_merge_from_start:dmi.StandbyStateChange)
6434 GOOGLE_DCHECK_NE(&from, this);
6435 const StandbyStateChange* source =
6436 ::google::protobuf::DynamicCastToGenerated<StandbyStateChange>(
6437 &from);
6438 if (source == nullptr) {
6439 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StandbyStateChange)
6440 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6441 } else {
6442 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StandbyStateChange)
6443 MergeFrom(*source);
6444 }
6445}
6446
6447void StandbyStateChange::MergeFrom(const StandbyStateChange& from) {
6448// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StandbyStateChange)
6449 GOOGLE_DCHECK_NE(&from, this);
6450 _internal_metadata_.MergeFrom(from._internal_metadata_);
6451 ::google::protobuf::uint32 cached_has_bits = 0;
6452 (void) cached_has_bits;
6453
6454 if (from.old() != 0) {
6455 set_old(from.old());
6456 }
6457 if (from.new_() != 0) {
6458 set_new_(from.new_());
6459 }
6460}
6461
6462void StandbyStateChange::CopyFrom(const ::google::protobuf::Message& from) {
6463// @@protoc_insertion_point(generalized_copy_from_start:dmi.StandbyStateChange)
6464 if (&from == this) return;
6465 Clear();
6466 MergeFrom(from);
6467}
6468
6469void StandbyStateChange::CopyFrom(const StandbyStateChange& from) {
6470// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StandbyStateChange)
6471 if (&from == this) return;
6472 Clear();
6473 MergeFrom(from);
6474}
6475
6476bool StandbyStateChange::IsInitialized() const {
6477 return true;
6478}
6479
6480void StandbyStateChange::Swap(StandbyStateChange* other) {
6481 if (other == this) return;
6482 InternalSwap(other);
6483}
6484void StandbyStateChange::InternalSwap(StandbyStateChange* other) {
6485 using std::swap;
6486 _internal_metadata_.Swap(&other->_internal_metadata_);
6487 swap(old_, other->old_);
6488 swap(new__, other->new__);
6489}
6490
6491::google::protobuf::Metadata StandbyStateChange::GetMetadata() const {
6492 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
6493 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
6494}
6495
6496
6497// ===================================================================
6498
6499void StateChangeInfo::InitAsDefaultInstance() {
6500 ::dmi::_StateChangeInfo_default_instance_.admin_state_change_ = const_cast< ::dmi::AdminStateChange*>(
6501 ::dmi::AdminStateChange::internal_default_instance());
6502 ::dmi::_StateChangeInfo_default_instance_.oper_state_change_ = const_cast< ::dmi::OperStateChange*>(
6503 ::dmi::OperStateChange::internal_default_instance());
6504 ::dmi::_StateChangeInfo_default_instance_.alarm_state_change_ = const_cast< ::dmi::AlarmStateChange*>(
6505 ::dmi::AlarmStateChange::internal_default_instance());
6506 ::dmi::_StateChangeInfo_default_instance_.usage_state_change_ = const_cast< ::dmi::UsageStateChange*>(
6507 ::dmi::UsageStateChange::internal_default_instance());
6508 ::dmi::_StateChangeInfo_default_instance_.standby_state_change_ = const_cast< ::dmi::StandbyStateChange*>(
6509 ::dmi::StandbyStateChange::internal_default_instance());
6510}
6511class StateChangeInfo::HasBitSetters {
6512 public:
6513 static const ::dmi::AdminStateChange& admin_state_change(const StateChangeInfo* msg);
6514 static const ::dmi::OperStateChange& oper_state_change(const StateChangeInfo* msg);
6515 static const ::dmi::AlarmStateChange& alarm_state_change(const StateChangeInfo* msg);
6516 static const ::dmi::UsageStateChange& usage_state_change(const StateChangeInfo* msg);
6517 static const ::dmi::StandbyStateChange& standby_state_change(const StateChangeInfo* msg);
6518};
6519
6520const ::dmi::AdminStateChange&
6521StateChangeInfo::HasBitSetters::admin_state_change(const StateChangeInfo* msg) {
6522 return *msg->state_change_.admin_state_change_;
6523}
6524const ::dmi::OperStateChange&
6525StateChangeInfo::HasBitSetters::oper_state_change(const StateChangeInfo* msg) {
6526 return *msg->state_change_.oper_state_change_;
6527}
6528const ::dmi::AlarmStateChange&
6529StateChangeInfo::HasBitSetters::alarm_state_change(const StateChangeInfo* msg) {
6530 return *msg->state_change_.alarm_state_change_;
6531}
6532const ::dmi::UsageStateChange&
6533StateChangeInfo::HasBitSetters::usage_state_change(const StateChangeInfo* msg) {
6534 return *msg->state_change_.usage_state_change_;
6535}
6536const ::dmi::StandbyStateChange&
6537StateChangeInfo::HasBitSetters::standby_state_change(const StateChangeInfo* msg) {
6538 return *msg->state_change_.standby_state_change_;
6539}
6540void StateChangeInfo::set_allocated_admin_state_change(::dmi::AdminStateChange* admin_state_change) {
6541 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6542 clear_state_change();
6543 if (admin_state_change) {
6544 ::google::protobuf::Arena* submessage_arena = nullptr;
6545 if (message_arena != submessage_arena) {
6546 admin_state_change = ::google::protobuf::internal::GetOwnedMessage(
6547 message_arena, admin_state_change, submessage_arena);
6548 }
6549 set_has_admin_state_change();
6550 state_change_.admin_state_change_ = admin_state_change;
6551 }
6552 // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.admin_state_change)
6553}
6554void StateChangeInfo::set_allocated_oper_state_change(::dmi::OperStateChange* oper_state_change) {
6555 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6556 clear_state_change();
6557 if (oper_state_change) {
6558 ::google::protobuf::Arena* submessage_arena = nullptr;
6559 if (message_arena != submessage_arena) {
6560 oper_state_change = ::google::protobuf::internal::GetOwnedMessage(
6561 message_arena, oper_state_change, submessage_arena);
6562 }
6563 set_has_oper_state_change();
6564 state_change_.oper_state_change_ = oper_state_change;
6565 }
6566 // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.oper_state_change)
6567}
6568void StateChangeInfo::set_allocated_alarm_state_change(::dmi::AlarmStateChange* alarm_state_change) {
6569 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6570 clear_state_change();
6571 if (alarm_state_change) {
6572 ::google::protobuf::Arena* submessage_arena = nullptr;
6573 if (message_arena != submessage_arena) {
6574 alarm_state_change = ::google::protobuf::internal::GetOwnedMessage(
6575 message_arena, alarm_state_change, submessage_arena);
6576 }
6577 set_has_alarm_state_change();
6578 state_change_.alarm_state_change_ = alarm_state_change;
6579 }
6580 // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.alarm_state_change)
6581}
6582void StateChangeInfo::set_allocated_usage_state_change(::dmi::UsageStateChange* usage_state_change) {
6583 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6584 clear_state_change();
6585 if (usage_state_change) {
6586 ::google::protobuf::Arena* submessage_arena = nullptr;
6587 if (message_arena != submessage_arena) {
6588 usage_state_change = ::google::protobuf::internal::GetOwnedMessage(
6589 message_arena, usage_state_change, submessage_arena);
6590 }
6591 set_has_usage_state_change();
6592 state_change_.usage_state_change_ = usage_state_change;
6593 }
6594 // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.usage_state_change)
6595}
6596void StateChangeInfo::set_allocated_standby_state_change(::dmi::StandbyStateChange* standby_state_change) {
6597 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6598 clear_state_change();
6599 if (standby_state_change) {
6600 ::google::protobuf::Arena* submessage_arena = nullptr;
6601 if (message_arena != submessage_arena) {
6602 standby_state_change = ::google::protobuf::internal::GetOwnedMessage(
6603 message_arena, standby_state_change, submessage_arena);
6604 }
6605 set_has_standby_state_change();
6606 state_change_.standby_state_change_ = standby_state_change;
6607 }
6608 // @@protoc_insertion_point(field_set_allocated:dmi.StateChangeInfo.standby_state_change)
6609}
6610#if !defined(_MSC_VER) || _MSC_VER >= 1900
6611const int StateChangeInfo::kAdminStateChangeFieldNumber;
6612const int StateChangeInfo::kOperStateChangeFieldNumber;
6613const int StateChangeInfo::kAlarmStateChangeFieldNumber;
6614const int StateChangeInfo::kUsageStateChangeFieldNumber;
6615const int StateChangeInfo::kStandbyStateChangeFieldNumber;
6616#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6617
6618StateChangeInfo::StateChangeInfo()
6619 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6620 SharedCtor();
6621 // @@protoc_insertion_point(constructor:dmi.StateChangeInfo)
6622}
6623StateChangeInfo::StateChangeInfo(const StateChangeInfo& from)
6624 : ::google::protobuf::Message(),
6625 _internal_metadata_(nullptr) {
6626 _internal_metadata_.MergeFrom(from._internal_metadata_);
6627 clear_has_state_change();
6628 switch (from.state_change_case()) {
6629 case kAdminStateChange: {
6630 mutable_admin_state_change()->::dmi::AdminStateChange::MergeFrom(from.admin_state_change());
6631 break;
6632 }
6633 case kOperStateChange: {
6634 mutable_oper_state_change()->::dmi::OperStateChange::MergeFrom(from.oper_state_change());
6635 break;
6636 }
6637 case kAlarmStateChange: {
6638 mutable_alarm_state_change()->::dmi::AlarmStateChange::MergeFrom(from.alarm_state_change());
6639 break;
6640 }
6641 case kUsageStateChange: {
6642 mutable_usage_state_change()->::dmi::UsageStateChange::MergeFrom(from.usage_state_change());
6643 break;
6644 }
6645 case kStandbyStateChange: {
6646 mutable_standby_state_change()->::dmi::StandbyStateChange::MergeFrom(from.standby_state_change());
6647 break;
6648 }
6649 case STATE_CHANGE_NOT_SET: {
6650 break;
6651 }
6652 }
6653 // @@protoc_insertion_point(copy_constructor:dmi.StateChangeInfo)
6654}
6655
6656void StateChangeInfo::SharedCtor() {
6657 ::google::protobuf::internal::InitSCC(
6658 &scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
6659 clear_has_state_change();
6660}
6661
6662StateChangeInfo::~StateChangeInfo() {
6663 // @@protoc_insertion_point(destructor:dmi.StateChangeInfo)
6664 SharedDtor();
6665}
6666
6667void StateChangeInfo::SharedDtor() {
6668 if (has_state_change()) {
6669 clear_state_change();
6670 }
6671}
6672
6673void StateChangeInfo::SetCachedSize(int size) const {
6674 _cached_size_.Set(size);
6675}
6676const StateChangeInfo& StateChangeInfo::default_instance() {
6677 ::google::protobuf::internal::InitSCC(&::scc_info_StateChangeInfo_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
6678 return *internal_default_instance();
6679}
6680
6681
6682void StateChangeInfo::clear_state_change() {
6683// @@protoc_insertion_point(one_of_clear_start:dmi.StateChangeInfo)
6684 switch (state_change_case()) {
6685 case kAdminStateChange: {
6686 delete state_change_.admin_state_change_;
6687 break;
6688 }
6689 case kOperStateChange: {
6690 delete state_change_.oper_state_change_;
6691 break;
6692 }
6693 case kAlarmStateChange: {
6694 delete state_change_.alarm_state_change_;
6695 break;
6696 }
6697 case kUsageStateChange: {
6698 delete state_change_.usage_state_change_;
6699 break;
6700 }
6701 case kStandbyStateChange: {
6702 delete state_change_.standby_state_change_;
6703 break;
6704 }
6705 case STATE_CHANGE_NOT_SET: {
6706 break;
6707 }
6708 }
6709 _oneof_case_[0] = STATE_CHANGE_NOT_SET;
6710}
6711
6712
6713void StateChangeInfo::Clear() {
6714// @@protoc_insertion_point(message_clear_start:dmi.StateChangeInfo)
6715 ::google::protobuf::uint32 cached_has_bits = 0;
6716 // Prevent compiler warnings about cached_has_bits being unused
6717 (void) cached_has_bits;
6718
6719 clear_state_change();
6720 _internal_metadata_.Clear();
6721}
6722
6723#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6724const char* StateChangeInfo::_InternalParse(const char* begin, const char* end, void* object,
6725 ::google::protobuf::internal::ParseContext* ctx) {
6726 auto msg = static_cast<StateChangeInfo*>(object);
6727 ::google::protobuf::int32 size; (void)size;
6728 int depth; (void)depth;
6729 ::google::protobuf::uint32 tag;
6730 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6731 auto ptr = begin;
6732 while (ptr < end) {
6733 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6734 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6735 switch (tag >> 3) {
6736 // .dmi.AdminStateChange admin_state_change = 1;
6737 case 1: {
6738 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
6739 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6740 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6741 parser_till_end = ::dmi::AdminStateChange::_InternalParse;
6742 object = msg->mutable_admin_state_change();
6743 if (size > end - ptr) goto len_delim_till_end;
6744 ptr += size;
6745 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6746 {parser_till_end, object}, ptr - size, ptr));
6747 break;
6748 }
6749 // .dmi.OperStateChange oper_state_change = 2;
6750 case 2: {
6751 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
6752 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6753 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6754 parser_till_end = ::dmi::OperStateChange::_InternalParse;
6755 object = msg->mutable_oper_state_change();
6756 if (size > end - ptr) goto len_delim_till_end;
6757 ptr += size;
6758 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6759 {parser_till_end, object}, ptr - size, ptr));
6760 break;
6761 }
6762 // .dmi.AlarmStateChange alarm_state_change = 3;
6763 case 3: {
6764 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6765 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6766 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6767 parser_till_end = ::dmi::AlarmStateChange::_InternalParse;
6768 object = msg->mutable_alarm_state_change();
6769 if (size > end - ptr) goto len_delim_till_end;
6770 ptr += size;
6771 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6772 {parser_till_end, object}, ptr - size, ptr));
6773 break;
6774 }
6775 // .dmi.UsageStateChange usage_state_change = 4;
6776 case 4: {
6777 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6778 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6779 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6780 parser_till_end = ::dmi::UsageStateChange::_InternalParse;
6781 object = msg->mutable_usage_state_change();
6782 if (size > end - ptr) goto len_delim_till_end;
6783 ptr += size;
6784 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6785 {parser_till_end, object}, ptr - size, ptr));
6786 break;
6787 }
6788 // .dmi.StandbyStateChange standby_state_change = 5;
6789 case 5: {
6790 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
6791 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6792 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6793 parser_till_end = ::dmi::StandbyStateChange::_InternalParse;
6794 object = msg->mutable_standby_state_change();
6795 if (size > end - ptr) goto len_delim_till_end;
6796 ptr += size;
6797 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6798 {parser_till_end, object}, ptr - size, ptr));
6799 break;
6800 }
6801 default: {
6802 handle_unusual:
6803 if ((tag & 7) == 4 || tag == 0) {
6804 ctx->EndGroup(tag);
6805 return ptr;
6806 }
6807 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6808 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6809 ptr = res.first;
6810 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6811 if (res.second) return ptr;
6812 }
6813 } // switch
6814 } // while
6815 return ptr;
6816len_delim_till_end:
6817 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6818 {parser_till_end, object}, size);
6819}
6820#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6821bool StateChangeInfo::MergePartialFromCodedStream(
6822 ::google::protobuf::io::CodedInputStream* input) {
6823#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6824 ::google::protobuf::uint32 tag;
6825 // @@protoc_insertion_point(parse_start:dmi.StateChangeInfo)
6826 for (;;) {
6827 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6828 tag = p.first;
6829 if (!p.second) goto handle_unusual;
6830 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6831 // .dmi.AdminStateChange admin_state_change = 1;
6832 case 1: {
6833 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
6834 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6835 input, mutable_admin_state_change()));
6836 } else {
6837 goto handle_unusual;
6838 }
6839 break;
6840 }
6841
6842 // .dmi.OperStateChange oper_state_change = 2;
6843 case 2: {
6844 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
6845 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6846 input, mutable_oper_state_change()));
6847 } else {
6848 goto handle_unusual;
6849 }
6850 break;
6851 }
6852
6853 // .dmi.AlarmStateChange alarm_state_change = 3;
6854 case 3: {
6855 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6856 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6857 input, mutable_alarm_state_change()));
6858 } else {
6859 goto handle_unusual;
6860 }
6861 break;
6862 }
6863
6864 // .dmi.UsageStateChange usage_state_change = 4;
6865 case 4: {
6866 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
6867 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6868 input, mutable_usage_state_change()));
6869 } else {
6870 goto handle_unusual;
6871 }
6872 break;
6873 }
6874
6875 // .dmi.StandbyStateChange standby_state_change = 5;
6876 case 5: {
6877 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
6878 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6879 input, mutable_standby_state_change()));
6880 } else {
6881 goto handle_unusual;
6882 }
6883 break;
6884 }
6885
6886 default: {
6887 handle_unusual:
6888 if (tag == 0) {
6889 goto success;
6890 }
6891 DO_(::google::protobuf::internal::WireFormat::SkipField(
6892 input, tag, _internal_metadata_.mutable_unknown_fields()));
6893 break;
6894 }
6895 }
6896 }
6897success:
6898 // @@protoc_insertion_point(parse_success:dmi.StateChangeInfo)
6899 return true;
6900failure:
6901 // @@protoc_insertion_point(parse_failure:dmi.StateChangeInfo)
6902 return false;
6903#undef DO_
6904}
6905#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6906
6907void StateChangeInfo::SerializeWithCachedSizes(
6908 ::google::protobuf::io::CodedOutputStream* output) const {
6909 // @@protoc_insertion_point(serialize_start:dmi.StateChangeInfo)
6910 ::google::protobuf::uint32 cached_has_bits = 0;
6911 (void) cached_has_bits;
6912
6913 // .dmi.AdminStateChange admin_state_change = 1;
6914 if (has_admin_state_change()) {
6915 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6916 1, HasBitSetters::admin_state_change(this), output);
6917 }
6918
6919 // .dmi.OperStateChange oper_state_change = 2;
6920 if (has_oper_state_change()) {
6921 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6922 2, HasBitSetters::oper_state_change(this), output);
6923 }
6924
6925 // .dmi.AlarmStateChange alarm_state_change = 3;
6926 if (has_alarm_state_change()) {
6927 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6928 3, HasBitSetters::alarm_state_change(this), output);
6929 }
6930
6931 // .dmi.UsageStateChange usage_state_change = 4;
6932 if (has_usage_state_change()) {
6933 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6934 4, HasBitSetters::usage_state_change(this), output);
6935 }
6936
6937 // .dmi.StandbyStateChange standby_state_change = 5;
6938 if (has_standby_state_change()) {
6939 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6940 5, HasBitSetters::standby_state_change(this), output);
6941 }
6942
6943 if (_internal_metadata_.have_unknown_fields()) {
6944 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6945 _internal_metadata_.unknown_fields(), output);
6946 }
6947 // @@protoc_insertion_point(serialize_end:dmi.StateChangeInfo)
6948}
6949
6950::google::protobuf::uint8* StateChangeInfo::InternalSerializeWithCachedSizesToArray(
6951 ::google::protobuf::uint8* target) const {
6952 // @@protoc_insertion_point(serialize_to_array_start:dmi.StateChangeInfo)
6953 ::google::protobuf::uint32 cached_has_bits = 0;
6954 (void) cached_has_bits;
6955
6956 // .dmi.AdminStateChange admin_state_change = 1;
6957 if (has_admin_state_change()) {
6958 target = ::google::protobuf::internal::WireFormatLite::
6959 InternalWriteMessageToArray(
6960 1, HasBitSetters::admin_state_change(this), target);
6961 }
6962
6963 // .dmi.OperStateChange oper_state_change = 2;
6964 if (has_oper_state_change()) {
6965 target = ::google::protobuf::internal::WireFormatLite::
6966 InternalWriteMessageToArray(
6967 2, HasBitSetters::oper_state_change(this), target);
6968 }
6969
6970 // .dmi.AlarmStateChange alarm_state_change = 3;
6971 if (has_alarm_state_change()) {
6972 target = ::google::protobuf::internal::WireFormatLite::
6973 InternalWriteMessageToArray(
6974 3, HasBitSetters::alarm_state_change(this), target);
6975 }
6976
6977 // .dmi.UsageStateChange usage_state_change = 4;
6978 if (has_usage_state_change()) {
6979 target = ::google::protobuf::internal::WireFormatLite::
6980 InternalWriteMessageToArray(
6981 4, HasBitSetters::usage_state_change(this), target);
6982 }
6983
6984 // .dmi.StandbyStateChange standby_state_change = 5;
6985 if (has_standby_state_change()) {
6986 target = ::google::protobuf::internal::WireFormatLite::
6987 InternalWriteMessageToArray(
6988 5, HasBitSetters::standby_state_change(this), target);
6989 }
6990
6991 if (_internal_metadata_.have_unknown_fields()) {
6992 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6993 _internal_metadata_.unknown_fields(), target);
6994 }
6995 // @@protoc_insertion_point(serialize_to_array_end:dmi.StateChangeInfo)
6996 return target;
6997}
6998
6999size_t StateChangeInfo::ByteSizeLong() const {
7000// @@protoc_insertion_point(message_byte_size_start:dmi.StateChangeInfo)
7001 size_t total_size = 0;
7002
7003 if (_internal_metadata_.have_unknown_fields()) {
7004 total_size +=
7005 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7006 _internal_metadata_.unknown_fields());
7007 }
7008 ::google::protobuf::uint32 cached_has_bits = 0;
7009 // Prevent compiler warnings about cached_has_bits being unused
7010 (void) cached_has_bits;
7011
7012 switch (state_change_case()) {
7013 // .dmi.AdminStateChange admin_state_change = 1;
7014 case kAdminStateChange: {
7015 total_size += 1 +
7016 ::google::protobuf::internal::WireFormatLite::MessageSize(
7017 *state_change_.admin_state_change_);
7018 break;
7019 }
7020 // .dmi.OperStateChange oper_state_change = 2;
7021 case kOperStateChange: {
7022 total_size += 1 +
7023 ::google::protobuf::internal::WireFormatLite::MessageSize(
7024 *state_change_.oper_state_change_);
7025 break;
7026 }
7027 // .dmi.AlarmStateChange alarm_state_change = 3;
7028 case kAlarmStateChange: {
7029 total_size += 1 +
7030 ::google::protobuf::internal::WireFormatLite::MessageSize(
7031 *state_change_.alarm_state_change_);
7032 break;
7033 }
7034 // .dmi.UsageStateChange usage_state_change = 4;
7035 case kUsageStateChange: {
7036 total_size += 1 +
7037 ::google::protobuf::internal::WireFormatLite::MessageSize(
7038 *state_change_.usage_state_change_);
7039 break;
7040 }
7041 // .dmi.StandbyStateChange standby_state_change = 5;
7042 case kStandbyStateChange: {
7043 total_size += 1 +
7044 ::google::protobuf::internal::WireFormatLite::MessageSize(
7045 *state_change_.standby_state_change_);
7046 break;
7047 }
7048 case STATE_CHANGE_NOT_SET: {
7049 break;
7050 }
7051 }
7052 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7053 SetCachedSize(cached_size);
7054 return total_size;
7055}
7056
7057void StateChangeInfo::MergeFrom(const ::google::protobuf::Message& from) {
7058// @@protoc_insertion_point(generalized_merge_from_start:dmi.StateChangeInfo)
7059 GOOGLE_DCHECK_NE(&from, this);
7060 const StateChangeInfo* source =
7061 ::google::protobuf::DynamicCastToGenerated<StateChangeInfo>(
7062 &from);
7063 if (source == nullptr) {
7064 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StateChangeInfo)
7065 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7066 } else {
7067 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StateChangeInfo)
7068 MergeFrom(*source);
7069 }
7070}
7071
7072void StateChangeInfo::MergeFrom(const StateChangeInfo& from) {
7073// @@protoc_insertion_point(class_specific_merge_from_start:dmi.StateChangeInfo)
7074 GOOGLE_DCHECK_NE(&from, this);
7075 _internal_metadata_.MergeFrom(from._internal_metadata_);
7076 ::google::protobuf::uint32 cached_has_bits = 0;
7077 (void) cached_has_bits;
7078
7079 switch (from.state_change_case()) {
7080 case kAdminStateChange: {
7081 mutable_admin_state_change()->::dmi::AdminStateChange::MergeFrom(from.admin_state_change());
7082 break;
7083 }
7084 case kOperStateChange: {
7085 mutable_oper_state_change()->::dmi::OperStateChange::MergeFrom(from.oper_state_change());
7086 break;
7087 }
7088 case kAlarmStateChange: {
7089 mutable_alarm_state_change()->::dmi::AlarmStateChange::MergeFrom(from.alarm_state_change());
7090 break;
7091 }
7092 case kUsageStateChange: {
7093 mutable_usage_state_change()->::dmi::UsageStateChange::MergeFrom(from.usage_state_change());
7094 break;
7095 }
7096 case kStandbyStateChange: {
7097 mutable_standby_state_change()->::dmi::StandbyStateChange::MergeFrom(from.standby_state_change());
7098 break;
7099 }
7100 case STATE_CHANGE_NOT_SET: {
7101 break;
7102 }
7103 }
7104}
7105
7106void StateChangeInfo::CopyFrom(const ::google::protobuf::Message& from) {
7107// @@protoc_insertion_point(generalized_copy_from_start:dmi.StateChangeInfo)
7108 if (&from == this) return;
7109 Clear();
7110 MergeFrom(from);
7111}
7112
7113void StateChangeInfo::CopyFrom(const StateChangeInfo& from) {
7114// @@protoc_insertion_point(class_specific_copy_from_start:dmi.StateChangeInfo)
7115 if (&from == this) return;
7116 Clear();
7117 MergeFrom(from);
7118}
7119
7120bool StateChangeInfo::IsInitialized() const {
7121 return true;
7122}
7123
7124void StateChangeInfo::Swap(StateChangeInfo* other) {
7125 if (other == this) return;
7126 InternalSwap(other);
7127}
7128void StateChangeInfo::InternalSwap(StateChangeInfo* other) {
7129 using std::swap;
7130 _internal_metadata_.Swap(&other->_internal_metadata_);
7131 swap(state_change_, other->state_change_);
7132 swap(_oneof_case_[0], other->_oneof_case_[0]);
7133}
7134
7135::google::protobuf::Metadata StateChangeInfo::GetMetadata() const {
7136 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
7137 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
7138}
7139
7140
7141// ===================================================================
7142
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307143void Event::InitAsDefaultInstance() {
7144 ::dmi::_Event_default_instance_._instance.get_mutable()->event_metadata_ = const_cast< ::dmi::EventMetaData*>(
7145 ::dmi::EventMetaData::internal_default_instance());
7146 ::dmi::_Event_default_instance_._instance.get_mutable()->raised_ts_ = const_cast< ::google::protobuf::Timestamp*>(
7147 ::google::protobuf::Timestamp::internal_default_instance());
7148 ::dmi::_Event_default_instance_._instance.get_mutable()->threshold_info_ = const_cast< ::dmi::ThresholdInformation*>(
7149 ::dmi::ThresholdInformation::internal_default_instance());
Amit Ghoshe45d9972025-06-26 14:52:48 +02007150 ::dmi::_Event_default_instance_._instance.get_mutable()->state_change_info_ = const_cast< ::dmi::StateChangeInfo*>(
7151 ::dmi::StateChangeInfo::internal_default_instance());
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307152}
7153class Event::HasBitSetters {
7154 public:
7155 static const ::dmi::EventMetaData& event_metadata(const Event* msg);
7156 static const ::google::protobuf::Timestamp& raised_ts(const Event* msg);
7157 static const ::dmi::ThresholdInformation& threshold_info(const Event* msg);
Amit Ghoshe45d9972025-06-26 14:52:48 +02007158 static const ::dmi::StateChangeInfo& state_change_info(const Event* msg);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307159};
7160
7161const ::dmi::EventMetaData&
7162Event::HasBitSetters::event_metadata(const Event* msg) {
7163 return *msg->event_metadata_;
7164}
7165const ::google::protobuf::Timestamp&
7166Event::HasBitSetters::raised_ts(const Event* msg) {
7167 return *msg->raised_ts_;
7168}
7169const ::dmi::ThresholdInformation&
7170Event::HasBitSetters::threshold_info(const Event* msg) {
7171 return *msg->threshold_info_;
7172}
Amit Ghoshe45d9972025-06-26 14:52:48 +02007173const ::dmi::StateChangeInfo&
7174Event::HasBitSetters::state_change_info(const Event* msg) {
7175 return *msg->state_change_info_;
7176}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307177void Event::clear_raised_ts() {
7178 if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) {
7179 delete raised_ts_;
7180 }
7181 raised_ts_ = nullptr;
7182}
7183#if !defined(_MSC_VER) || _MSC_VER >= 1900
7184const int Event::kEventMetadataFieldNumber;
7185const int Event::kEventIdFieldNumber;
7186const int Event::kRaisedTsFieldNumber;
7187const int Event::kThresholdInfoFieldNumber;
7188const int Event::kAddInfoFieldNumber;
Amit Ghoshe45d9972025-06-26 14:52:48 +02007189const int Event::kStateChangeInfoFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307190#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7191
7192Event::Event()
7193 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7194 SharedCtor();
7195 // @@protoc_insertion_point(constructor:dmi.Event)
7196}
7197Event::Event(const Event& from)
7198 : ::google::protobuf::Message(),
7199 _internal_metadata_(nullptr) {
7200 _internal_metadata_.MergeFrom(from._internal_metadata_);
7201 add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7202 if (from.add_info().size() > 0) {
7203 add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_);
7204 }
7205 if (from.has_event_metadata()) {
7206 event_metadata_ = new ::dmi::EventMetaData(*from.event_metadata_);
7207 } else {
7208 event_metadata_ = nullptr;
7209 }
7210 if (from.has_raised_ts()) {
7211 raised_ts_ = new ::google::protobuf::Timestamp(*from.raised_ts_);
7212 } else {
7213 raised_ts_ = nullptr;
7214 }
7215 if (from.has_threshold_info()) {
7216 threshold_info_ = new ::dmi::ThresholdInformation(*from.threshold_info_);
7217 } else {
7218 threshold_info_ = nullptr;
7219 }
Amit Ghoshe45d9972025-06-26 14:52:48 +02007220 if (from.has_state_change_info()) {
7221 state_change_info_ = new ::dmi::StateChangeInfo(*from.state_change_info_);
7222 } else {
7223 state_change_info_ = nullptr;
7224 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307225 event_id_ = from.event_id_;
7226 // @@protoc_insertion_point(copy_constructor:dmi.Event)
7227}
7228
7229void Event::SharedCtor() {
7230 ::google::protobuf::internal::InitSCC(
7231 &scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
7232 add_info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7233 ::memset(&event_metadata_, 0, static_cast<size_t>(
7234 reinterpret_cast<char*>(&event_id_) -
7235 reinterpret_cast<char*>(&event_metadata_)) + sizeof(event_id_));
7236}
7237
7238Event::~Event() {
7239 // @@protoc_insertion_point(destructor:dmi.Event)
7240 SharedDtor();
7241}
7242
7243void Event::SharedDtor() {
7244 add_info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7245 if (this != internal_default_instance()) delete event_metadata_;
7246 if (this != internal_default_instance()) delete raised_ts_;
7247 if (this != internal_default_instance()) delete threshold_info_;
Amit Ghoshe45d9972025-06-26 14:52:48 +02007248 if (this != internal_default_instance()) delete state_change_info_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307249}
7250
7251void Event::SetCachedSize(int size) const {
7252 _cached_size_.Set(size);
7253}
7254const Event& Event::default_instance() {
7255 ::google::protobuf::internal::InitSCC(&::scc_info_Event_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto.base);
7256 return *internal_default_instance();
7257}
7258
7259
7260void Event::Clear() {
7261// @@protoc_insertion_point(message_clear_start:dmi.Event)
7262 ::google::protobuf::uint32 cached_has_bits = 0;
7263 // Prevent compiler warnings about cached_has_bits being unused
7264 (void) cached_has_bits;
7265
7266 add_info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7267 if (GetArenaNoVirtual() == nullptr && event_metadata_ != nullptr) {
7268 delete event_metadata_;
7269 }
7270 event_metadata_ = nullptr;
7271 if (GetArenaNoVirtual() == nullptr && raised_ts_ != nullptr) {
7272 delete raised_ts_;
7273 }
7274 raised_ts_ = nullptr;
7275 if (GetArenaNoVirtual() == nullptr && threshold_info_ != nullptr) {
7276 delete threshold_info_;
7277 }
7278 threshold_info_ = nullptr;
Amit Ghoshe45d9972025-06-26 14:52:48 +02007279 if (GetArenaNoVirtual() == nullptr && state_change_info_ != nullptr) {
7280 delete state_change_info_;
7281 }
7282 state_change_info_ = nullptr;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307283 event_id_ = 0;
7284 _internal_metadata_.Clear();
7285}
7286
7287#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7288const char* Event::_InternalParse(const char* begin, const char* end, void* object,
7289 ::google::protobuf::internal::ParseContext* ctx) {
7290 auto msg = static_cast<Event*>(object);
7291 ::google::protobuf::int32 size; (void)size;
7292 int depth; (void)depth;
7293 ::google::protobuf::uint32 tag;
7294 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7295 auto ptr = begin;
7296 while (ptr < end) {
7297 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7298 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7299 switch (tag >> 3) {
7300 // .dmi.EventMetaData event_metadata = 1;
7301 case 1: {
7302 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7303 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7304 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7305 parser_till_end = ::dmi::EventMetaData::_InternalParse;
7306 object = msg->mutable_event_metadata();
7307 if (size > end - ptr) goto len_delim_till_end;
7308 ptr += size;
7309 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7310 {parser_till_end, object}, ptr - size, ptr));
7311 break;
7312 }
7313 // .dmi.EventIds event_id = 2;
7314 case 2: {
7315 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7316 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7317 msg->set_event_id(static_cast<::dmi::EventIds>(val));
7318 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7319 break;
7320 }
7321 // .google.protobuf.Timestamp raised_ts = 3;
7322 case 3: {
7323 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7324 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7325 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7326 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
7327 object = msg->mutable_raised_ts();
7328 if (size > end - ptr) goto len_delim_till_end;
7329 ptr += size;
7330 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7331 {parser_till_end, object}, ptr - size, ptr));
7332 break;
7333 }
7334 // .dmi.ThresholdInformation threshold_info = 4;
7335 case 4: {
7336 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
7337 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7338 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7339 parser_till_end = ::dmi::ThresholdInformation::_InternalParse;
7340 object = msg->mutable_threshold_info();
7341 if (size > end - ptr) goto len_delim_till_end;
7342 ptr += size;
7343 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7344 {parser_till_end, object}, ptr - size, ptr));
7345 break;
7346 }
7347 // string add_info = 5;
7348 case 5: {
7349 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
7350 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7351 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7352 ctx->extra_parse_data().SetFieldName("dmi.Event.add_info");
7353 object = msg->mutable_add_info();
7354 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7355 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7356 goto string_till_end;
7357 }
7358 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7359 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7360 ptr += size;
7361 break;
7362 }
Amit Ghoshe45d9972025-06-26 14:52:48 +02007363 // .dmi.StateChangeInfo state_change_info = 6;
7364 case 6: {
7365 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
7366 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7367 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7368 parser_till_end = ::dmi::StateChangeInfo::_InternalParse;
7369 object = msg->mutable_state_change_info();
7370 if (size > end - ptr) goto len_delim_till_end;
7371 ptr += size;
7372 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7373 {parser_till_end, object}, ptr - size, ptr));
7374 break;
7375 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307376 default: {
7377 handle_unusual:
7378 if ((tag & 7) == 4 || tag == 0) {
7379 ctx->EndGroup(tag);
7380 return ptr;
7381 }
7382 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7383 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7384 ptr = res.first;
7385 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7386 if (res.second) return ptr;
7387 }
7388 } // switch
7389 } // while
7390 return ptr;
7391string_till_end:
7392 static_cast<::std::string*>(object)->clear();
7393 static_cast<::std::string*>(object)->reserve(size);
7394 goto len_delim_till_end;
7395len_delim_till_end:
7396 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7397 {parser_till_end, object}, size);
7398}
7399#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7400bool Event::MergePartialFromCodedStream(
7401 ::google::protobuf::io::CodedInputStream* input) {
7402#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7403 ::google::protobuf::uint32 tag;
7404 // @@protoc_insertion_point(parse_start:dmi.Event)
7405 for (;;) {
7406 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7407 tag = p.first;
7408 if (!p.second) goto handle_unusual;
7409 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7410 // .dmi.EventMetaData event_metadata = 1;
7411 case 1: {
7412 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7413 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7414 input, mutable_event_metadata()));
7415 } else {
7416 goto handle_unusual;
7417 }
7418 break;
7419 }
7420
7421 // .dmi.EventIds event_id = 2;
7422 case 2: {
7423 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7424 int value = 0;
7425 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7426 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7427 input, &value)));
7428 set_event_id(static_cast< ::dmi::EventIds >(value));
7429 } else {
7430 goto handle_unusual;
7431 }
7432 break;
7433 }
7434
7435 // .google.protobuf.Timestamp raised_ts = 3;
7436 case 3: {
7437 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7438 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7439 input, mutable_raised_ts()));
7440 } else {
7441 goto handle_unusual;
7442 }
7443 break;
7444 }
7445
7446 // .dmi.ThresholdInformation threshold_info = 4;
7447 case 4: {
7448 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7449 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7450 input, mutable_threshold_info()));
7451 } else {
7452 goto handle_unusual;
7453 }
7454 break;
7455 }
7456
7457 // string add_info = 5;
7458 case 5: {
7459 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
7460 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7461 input, this->mutable_add_info()));
7462 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7463 this->add_info().data(), static_cast<int>(this->add_info().length()),
7464 ::google::protobuf::internal::WireFormatLite::PARSE,
7465 "dmi.Event.add_info"));
7466 } else {
7467 goto handle_unusual;
7468 }
7469 break;
7470 }
7471
Amit Ghoshe45d9972025-06-26 14:52:48 +02007472 // .dmi.StateChangeInfo state_change_info = 6;
7473 case 6: {
7474 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
7475 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7476 input, mutable_state_change_info()));
7477 } else {
7478 goto handle_unusual;
7479 }
7480 break;
7481 }
7482
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307483 default: {
7484 handle_unusual:
7485 if (tag == 0) {
7486 goto success;
7487 }
7488 DO_(::google::protobuf::internal::WireFormat::SkipField(
7489 input, tag, _internal_metadata_.mutable_unknown_fields()));
7490 break;
7491 }
7492 }
7493 }
7494success:
7495 // @@protoc_insertion_point(parse_success:dmi.Event)
7496 return true;
7497failure:
7498 // @@protoc_insertion_point(parse_failure:dmi.Event)
7499 return false;
7500#undef DO_
7501}
7502#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7503
7504void Event::SerializeWithCachedSizes(
7505 ::google::protobuf::io::CodedOutputStream* output) const {
7506 // @@protoc_insertion_point(serialize_start:dmi.Event)
7507 ::google::protobuf::uint32 cached_has_bits = 0;
7508 (void) cached_has_bits;
7509
7510 // .dmi.EventMetaData event_metadata = 1;
7511 if (this->has_event_metadata()) {
7512 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7513 1, HasBitSetters::event_metadata(this), output);
7514 }
7515
7516 // .dmi.EventIds event_id = 2;
7517 if (this->event_id() != 0) {
7518 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7519 2, this->event_id(), output);
7520 }
7521
7522 // .google.protobuf.Timestamp raised_ts = 3;
7523 if (this->has_raised_ts()) {
7524 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7525 3, HasBitSetters::raised_ts(this), output);
7526 }
7527
7528 // .dmi.ThresholdInformation threshold_info = 4;
7529 if (this->has_threshold_info()) {
7530 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7531 4, HasBitSetters::threshold_info(this), output);
7532 }
7533
7534 // string add_info = 5;
7535 if (this->add_info().size() > 0) {
7536 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7537 this->add_info().data(), static_cast<int>(this->add_info().length()),
7538 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7539 "dmi.Event.add_info");
7540 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7541 5, this->add_info(), output);
7542 }
7543
Amit Ghoshe45d9972025-06-26 14:52:48 +02007544 // .dmi.StateChangeInfo state_change_info = 6;
7545 if (this->has_state_change_info()) {
7546 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7547 6, HasBitSetters::state_change_info(this), output);
7548 }
7549
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307550 if (_internal_metadata_.have_unknown_fields()) {
7551 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7552 _internal_metadata_.unknown_fields(), output);
7553 }
7554 // @@protoc_insertion_point(serialize_end:dmi.Event)
7555}
7556
7557::google::protobuf::uint8* Event::InternalSerializeWithCachedSizesToArray(
7558 ::google::protobuf::uint8* target) const {
7559 // @@protoc_insertion_point(serialize_to_array_start:dmi.Event)
7560 ::google::protobuf::uint32 cached_has_bits = 0;
7561 (void) cached_has_bits;
7562
7563 // .dmi.EventMetaData event_metadata = 1;
7564 if (this->has_event_metadata()) {
7565 target = ::google::protobuf::internal::WireFormatLite::
7566 InternalWriteMessageToArray(
7567 1, HasBitSetters::event_metadata(this), target);
7568 }
7569
7570 // .dmi.EventIds event_id = 2;
7571 if (this->event_id() != 0) {
7572 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7573 2, this->event_id(), target);
7574 }
7575
7576 // .google.protobuf.Timestamp raised_ts = 3;
7577 if (this->has_raised_ts()) {
7578 target = ::google::protobuf::internal::WireFormatLite::
7579 InternalWriteMessageToArray(
7580 3, HasBitSetters::raised_ts(this), target);
7581 }
7582
7583 // .dmi.ThresholdInformation threshold_info = 4;
7584 if (this->has_threshold_info()) {
7585 target = ::google::protobuf::internal::WireFormatLite::
7586 InternalWriteMessageToArray(
7587 4, HasBitSetters::threshold_info(this), target);
7588 }
7589
7590 // string add_info = 5;
7591 if (this->add_info().size() > 0) {
7592 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7593 this->add_info().data(), static_cast<int>(this->add_info().length()),
7594 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7595 "dmi.Event.add_info");
7596 target =
7597 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7598 5, this->add_info(), target);
7599 }
7600
Amit Ghoshe45d9972025-06-26 14:52:48 +02007601 // .dmi.StateChangeInfo state_change_info = 6;
7602 if (this->has_state_change_info()) {
7603 target = ::google::protobuf::internal::WireFormatLite::
7604 InternalWriteMessageToArray(
7605 6, HasBitSetters::state_change_info(this), target);
7606 }
7607
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307608 if (_internal_metadata_.have_unknown_fields()) {
7609 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7610 _internal_metadata_.unknown_fields(), target);
7611 }
7612 // @@protoc_insertion_point(serialize_to_array_end:dmi.Event)
7613 return target;
7614}
7615
7616size_t Event::ByteSizeLong() const {
7617// @@protoc_insertion_point(message_byte_size_start:dmi.Event)
7618 size_t total_size = 0;
7619
7620 if (_internal_metadata_.have_unknown_fields()) {
7621 total_size +=
7622 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7623 _internal_metadata_.unknown_fields());
7624 }
7625 ::google::protobuf::uint32 cached_has_bits = 0;
7626 // Prevent compiler warnings about cached_has_bits being unused
7627 (void) cached_has_bits;
7628
7629 // string add_info = 5;
7630 if (this->add_info().size() > 0) {
7631 total_size += 1 +
7632 ::google::protobuf::internal::WireFormatLite::StringSize(
7633 this->add_info());
7634 }
7635
7636 // .dmi.EventMetaData event_metadata = 1;
7637 if (this->has_event_metadata()) {
7638 total_size += 1 +
7639 ::google::protobuf::internal::WireFormatLite::MessageSize(
7640 *event_metadata_);
7641 }
7642
7643 // .google.protobuf.Timestamp raised_ts = 3;
7644 if (this->has_raised_ts()) {
7645 total_size += 1 +
7646 ::google::protobuf::internal::WireFormatLite::MessageSize(
7647 *raised_ts_);
7648 }
7649
7650 // .dmi.ThresholdInformation threshold_info = 4;
7651 if (this->has_threshold_info()) {
7652 total_size += 1 +
7653 ::google::protobuf::internal::WireFormatLite::MessageSize(
7654 *threshold_info_);
7655 }
7656
Amit Ghoshe45d9972025-06-26 14:52:48 +02007657 // .dmi.StateChangeInfo state_change_info = 6;
7658 if (this->has_state_change_info()) {
7659 total_size += 1 +
7660 ::google::protobuf::internal::WireFormatLite::MessageSize(
7661 *state_change_info_);
7662 }
7663
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307664 // .dmi.EventIds event_id = 2;
7665 if (this->event_id() != 0) {
7666 total_size += 1 +
7667 ::google::protobuf::internal::WireFormatLite::EnumSize(this->event_id());
7668 }
7669
7670 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7671 SetCachedSize(cached_size);
7672 return total_size;
7673}
7674
7675void Event::MergeFrom(const ::google::protobuf::Message& from) {
7676// @@protoc_insertion_point(generalized_merge_from_start:dmi.Event)
7677 GOOGLE_DCHECK_NE(&from, this);
7678 const Event* source =
7679 ::google::protobuf::DynamicCastToGenerated<Event>(
7680 &from);
7681 if (source == nullptr) {
7682 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Event)
7683 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7684 } else {
7685 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Event)
7686 MergeFrom(*source);
7687 }
7688}
7689
7690void Event::MergeFrom(const Event& from) {
7691// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Event)
7692 GOOGLE_DCHECK_NE(&from, this);
7693 _internal_metadata_.MergeFrom(from._internal_metadata_);
7694 ::google::protobuf::uint32 cached_has_bits = 0;
7695 (void) cached_has_bits;
7696
7697 if (from.add_info().size() > 0) {
7698
7699 add_info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.add_info_);
7700 }
7701 if (from.has_event_metadata()) {
7702 mutable_event_metadata()->::dmi::EventMetaData::MergeFrom(from.event_metadata());
7703 }
7704 if (from.has_raised_ts()) {
7705 mutable_raised_ts()->::google::protobuf::Timestamp::MergeFrom(from.raised_ts());
7706 }
7707 if (from.has_threshold_info()) {
7708 mutable_threshold_info()->::dmi::ThresholdInformation::MergeFrom(from.threshold_info());
7709 }
Amit Ghoshe45d9972025-06-26 14:52:48 +02007710 if (from.has_state_change_info()) {
7711 mutable_state_change_info()->::dmi::StateChangeInfo::MergeFrom(from.state_change_info());
7712 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307713 if (from.event_id() != 0) {
7714 set_event_id(from.event_id());
7715 }
7716}
7717
7718void Event::CopyFrom(const ::google::protobuf::Message& from) {
7719// @@protoc_insertion_point(generalized_copy_from_start:dmi.Event)
7720 if (&from == this) return;
7721 Clear();
7722 MergeFrom(from);
7723}
7724
7725void Event::CopyFrom(const Event& from) {
7726// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Event)
7727 if (&from == this) return;
7728 Clear();
7729 MergeFrom(from);
7730}
7731
7732bool Event::IsInitialized() const {
7733 return true;
7734}
7735
7736void Event::Swap(Event* other) {
7737 if (other == this) return;
7738 InternalSwap(other);
7739}
7740void Event::InternalSwap(Event* other) {
7741 using std::swap;
7742 _internal_metadata_.Swap(&other->_internal_metadata_);
7743 add_info_.Swap(&other->add_info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7744 GetArenaNoVirtual());
7745 swap(event_metadata_, other->event_metadata_);
7746 swap(raised_ts_, other->raised_ts_);
7747 swap(threshold_info_, other->threshold_info_);
Amit Ghoshe45d9972025-06-26 14:52:48 +02007748 swap(state_change_info_, other->state_change_info_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307749 swap(event_id_, other->event_id_);
7750}
7751
7752::google::protobuf::Metadata Event::GetMetadata() const {
7753 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto);
7754 return ::file_level_metadata_dmi_2fhw_5fevents_5fmgmt_5fservice_2eproto[kIndexInFileMessages];
7755}
7756
7757
7758// @@protoc_insertion_point(namespace_scope)
7759} // namespace dmi
7760namespace google {
7761namespace protobuf {
7762template<> PROTOBUF_NOINLINE ::dmi::ValueType* Arena::CreateMaybeMessage< ::dmi::ValueType >(Arena* arena) {
7763 return Arena::CreateInternal< ::dmi::ValueType >(arena);
7764}
7765template<> PROTOBUF_NOINLINE ::dmi::WaterMarks* Arena::CreateMaybeMessage< ::dmi::WaterMarks >(Arena* arena) {
7766 return Arena::CreateInternal< ::dmi::WaterMarks >(arena);
7767}
7768template<> PROTOBUF_NOINLINE ::dmi::Thresholds* Arena::CreateMaybeMessage< ::dmi::Thresholds >(Arena* arena) {
7769 return Arena::CreateInternal< ::dmi::Thresholds >(arena);
7770}
7771template<> PROTOBUF_NOINLINE ::dmi::ThresholdInformation* Arena::CreateMaybeMessage< ::dmi::ThresholdInformation >(Arena* arena) {
7772 return Arena::CreateInternal< ::dmi::ThresholdInformation >(arena);
7773}
7774template<> PROTOBUF_NOINLINE ::dmi::EventCfg* Arena::CreateMaybeMessage< ::dmi::EventCfg >(Arena* arena) {
7775 return Arena::CreateInternal< ::dmi::EventCfg >(arena);
7776}
7777template<> PROTOBUF_NOINLINE ::dmi::EventsCfg* Arena::CreateMaybeMessage< ::dmi::EventsCfg >(Arena* arena) {
7778 return Arena::CreateInternal< ::dmi::EventsCfg >(arena);
7779}
7780template<> PROTOBUF_NOINLINE ::dmi::ListEventsResponse* Arena::CreateMaybeMessage< ::dmi::ListEventsResponse >(Arena* arena) {
7781 return Arena::CreateInternal< ::dmi::ListEventsResponse >(arena);
7782}
7783template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationRequest* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationRequest >(Arena* arena) {
7784 return Arena::CreateInternal< ::dmi::EventsConfigurationRequest >(arena);
7785}
7786template<> PROTOBUF_NOINLINE ::dmi::EventsConfigurationResponse* Arena::CreateMaybeMessage< ::dmi::EventsConfigurationResponse >(Arena* arena) {
7787 return Arena::CreateInternal< ::dmi::EventsConfigurationResponse >(arena);
7788}
7789template<> PROTOBUF_NOINLINE ::dmi::EventMetaData* Arena::CreateMaybeMessage< ::dmi::EventMetaData >(Arena* arena) {
7790 return Arena::CreateInternal< ::dmi::EventMetaData >(arena);
7791}
Amit Ghoshe45d9972025-06-26 14:52:48 +02007792template<> PROTOBUF_NOINLINE ::dmi::AdminStateChange* Arena::CreateMaybeMessage< ::dmi::AdminStateChange >(Arena* arena) {
7793 return Arena::CreateInternal< ::dmi::AdminStateChange >(arena);
7794}
7795template<> PROTOBUF_NOINLINE ::dmi::OperStateChange* Arena::CreateMaybeMessage< ::dmi::OperStateChange >(Arena* arena) {
7796 return Arena::CreateInternal< ::dmi::OperStateChange >(arena);
7797}
7798template<> PROTOBUF_NOINLINE ::dmi::AlarmStateChange* Arena::CreateMaybeMessage< ::dmi::AlarmStateChange >(Arena* arena) {
7799 return Arena::CreateInternal< ::dmi::AlarmStateChange >(arena);
7800}
7801template<> PROTOBUF_NOINLINE ::dmi::UsageStateChange* Arena::CreateMaybeMessage< ::dmi::UsageStateChange >(Arena* arena) {
7802 return Arena::CreateInternal< ::dmi::UsageStateChange >(arena);
7803}
7804template<> PROTOBUF_NOINLINE ::dmi::StandbyStateChange* Arena::CreateMaybeMessage< ::dmi::StandbyStateChange >(Arena* arena) {
7805 return Arena::CreateInternal< ::dmi::StandbyStateChange >(arena);
7806}
7807template<> PROTOBUF_NOINLINE ::dmi::StateChangeInfo* Arena::CreateMaybeMessage< ::dmi::StateChangeInfo >(Arena* arena) {
7808 return Arena::CreateInternal< ::dmi::StateChangeInfo >(arena);
7809}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05307810template<> PROTOBUF_NOINLINE ::dmi::Event* Arena::CreateMaybeMessage< ::dmi::Event >(Arena* arena) {
7811 return Arena::CreateInternal< ::dmi::Event >(arena);
7812}
7813} // namespace protobuf
7814} // namespace google
7815
7816// @@protoc_insertion_point(global_scope)
7817#include <google/protobuf/port_undef.inc>