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