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