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