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