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