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