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