blob: 1b32844ca3de743dd2c265348166626457426a69 [file] [log] [blame]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: dmi/hw.proto
3
4#include "dmi/hw.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_ContainerComponentAttributes_dmi_2fhw_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PortComponentAttributes_dmi_2fhw_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto;
24extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto;
29namespace dmi {
30class UuidDefaultTypeInternal {
31 public:
32 ::google::protobuf::internal::ExplicitlyConstructed<Uuid> _instance;
33} _Uuid_default_instance_;
34class HardwareIDDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<HardwareID> _instance;
37} _HardwareID_default_instance_;
38class UriDefaultTypeInternal {
39 public:
40 ::google::protobuf::internal::ExplicitlyConstructed<Uri> _instance;
41} _Uri_default_instance_;
42class ComponentStateDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<ComponentState> _instance;
45} _ComponentState_default_instance_;
46class ComponentSensorDataDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<ComponentSensorData> _instance;
49} _ComponentSensorData_default_instance_;
50class PortComponentAttributesDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<PortComponentAttributes> _instance;
53} _PortComponentAttributes_default_instance_;
54class ContainerComponentAttributesDefaultTypeInternal {
55 public:
56 ::google::protobuf::internal::ExplicitlyConstructed<ContainerComponentAttributes> _instance;
57} _ContainerComponentAttributes_default_instance_;
58class PsuComponentAttributesDefaultTypeInternal {
59 public:
60 ::google::protobuf::internal::ExplicitlyConstructed<PsuComponentAttributes> _instance;
61} _PsuComponentAttributes_default_instance_;
62class TransceiverComponentsAttributesDefaultTypeInternal {
63 public:
64 ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentsAttributes> _instance;
65} _TransceiverComponentsAttributes_default_instance_;
66class ComponentDefaultTypeInternal {
67 public:
68 ::google::protobuf::internal::ExplicitlyConstructed<Component> _instance;
69 const ::dmi::PortComponentAttributes* port_attr_;
70 const ::dmi::ContainerComponentAttributes* container_attr_;
71 const ::dmi::PsuComponentAttributes* psu_attr_;
72 const ::dmi::TransceiverComponentsAttributes* transceiver_attr_;
73} _Component_default_instance_;
74class HardwareDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<Hardware> _instance;
77} _Hardware_default_instance_;
78class ModifiableComponentDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<ModifiableComponent> _instance;
81} _ModifiableComponent_default_instance_;
82} // namespace dmi
83static void InitDefaultsUuid_dmi_2fhw_2eproto() {
84 GOOGLE_PROTOBUF_VERIFY_VERSION;
85
86 {
87 void* ptr = &::dmi::_Uuid_default_instance_;
88 new (ptr) ::dmi::Uuid();
89 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
90 }
91 ::dmi::Uuid::InitAsDefaultInstance();
92}
93
94::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto =
95 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUuid_dmi_2fhw_2eproto}, {}};
96
97static void InitDefaultsHardwareID_dmi_2fhw_2eproto() {
98 GOOGLE_PROTOBUF_VERIFY_VERSION;
99
100 {
101 void* ptr = &::dmi::_HardwareID_default_instance_;
102 new (ptr) ::dmi::HardwareID();
103 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
104 }
105 ::dmi::HardwareID::InitAsDefaultInstance();
106}
107
108::google::protobuf::internal::SCCInfo<1> scc_info_HardwareID_dmi_2fhw_2eproto =
109 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHardwareID_dmi_2fhw_2eproto}, {
110 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
111
112static void InitDefaultsUri_dmi_2fhw_2eproto() {
113 GOOGLE_PROTOBUF_VERIFY_VERSION;
114
115 {
116 void* ptr = &::dmi::_Uri_default_instance_;
117 new (ptr) ::dmi::Uri();
118 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
119 }
120 ::dmi::Uri::InitAsDefaultInstance();
121}
122
123::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto =
124 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUri_dmi_2fhw_2eproto}, {}};
125
126static void InitDefaultsComponentState_dmi_2fhw_2eproto() {
127 GOOGLE_PROTOBUF_VERIFY_VERSION;
128
129 {
130 void* ptr = &::dmi::_ComponentState_default_instance_;
131 new (ptr) ::dmi::ComponentState();
132 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
133 }
134 ::dmi::ComponentState::InitAsDefaultInstance();
135}
136
137::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto =
138 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentState_dmi_2fhw_2eproto}, {
139 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}};
140
141static void InitDefaultsComponentSensorData_dmi_2fhw_2eproto() {
142 GOOGLE_PROTOBUF_VERIFY_VERSION;
143
144 {
145 void* ptr = &::dmi::_ComponentSensorData_default_instance_;
146 new (ptr) ::dmi::ComponentSensorData();
147 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
148 }
149 ::dmi::ComponentSensorData::InitAsDefaultInstance();
150}
151
152::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto =
153 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentSensorData_dmi_2fhw_2eproto}, {
154 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}};
155
156static void InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto() {
157 GOOGLE_PROTOBUF_VERIFY_VERSION;
158
159 {
160 void* ptr = &::dmi::_PortComponentAttributes_default_instance_;
161 new (ptr) ::dmi::PortComponentAttributes();
162 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
163 }
164 ::dmi::PortComponentAttributes::InitAsDefaultInstance();
165}
166
167::google::protobuf::internal::SCCInfo<0> scc_info_PortComponentAttributes_dmi_2fhw_2eproto =
168 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto}, {}};
169
170static void InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto() {
171 GOOGLE_PROTOBUF_VERIFY_VERSION;
172
173 {
174 void* ptr = &::dmi::_ContainerComponentAttributes_default_instance_;
175 new (ptr) ::dmi::ContainerComponentAttributes();
176 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
177 }
178 ::dmi::ContainerComponentAttributes::InitAsDefaultInstance();
179}
180
181::google::protobuf::internal::SCCInfo<0> scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto =
182 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto}, {}};
183
184static void InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto() {
185 GOOGLE_PROTOBUF_VERIFY_VERSION;
186
187 {
188 void* ptr = &::dmi::_PsuComponentAttributes_default_instance_;
189 new (ptr) ::dmi::PsuComponentAttributes();
190 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
191 }
192 ::dmi::PsuComponentAttributes::InitAsDefaultInstance();
193}
194
195::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto =
196 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto}, {}};
197
198static void InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto() {
199 GOOGLE_PROTOBUF_VERIFY_VERSION;
200
201 {
202 void* ptr = &::dmi::_TransceiverComponentsAttributes_default_instance_;
203 new (ptr) ::dmi::TransceiverComponentsAttributes();
204 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
205 }
206 ::dmi::TransceiverComponentsAttributes::InitAsDefaultInstance();
207}
208
209::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto =
210 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto}, {}};
211
212static void InitDefaultsComponent_dmi_2fhw_2eproto() {
213 GOOGLE_PROTOBUF_VERIFY_VERSION;
214
215 {
216 void* ptr = &::dmi::_Component_default_instance_;
217 new (ptr) ::dmi::Component();
218 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
219 }
220 ::dmi::Component::InitAsDefaultInstance();
221}
222
223::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto =
224 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsComponent_dmi_2fhw_2eproto}, {
225 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
226 &scc_info_Uri_dmi_2fhw_2eproto.base,
227 &scc_info_Uuid_dmi_2fhw_2eproto.base,
228 &scc_info_ComponentState_dmi_2fhw_2eproto.base,
229 &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base,
230 &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base,
231 &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base,
232 &scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base,
233 &scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base,}};
234
235static void InitDefaultsHardware_dmi_2fhw_2eproto() {
236 GOOGLE_PROTOBUF_VERIFY_VERSION;
237
238 {
239 void* ptr = &::dmi::_Hardware_default_instance_;
240 new (ptr) ::dmi::Hardware();
241 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
242 }
243 ::dmi::Hardware::InitAsDefaultInstance();
244}
245
246::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto =
247 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_dmi_2fhw_2eproto}, {
248 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
249 &scc_info_Component_dmi_2fhw_2eproto.base,}};
250
251static void InitDefaultsModifiableComponent_dmi_2fhw_2eproto() {
252 GOOGLE_PROTOBUF_VERIFY_VERSION;
253
254 {
255 void* ptr = &::dmi::_ModifiableComponent_default_instance_;
256 new (ptr) ::dmi::ModifiableComponent();
257 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
258 }
259 ::dmi::ModifiableComponent::InitAsDefaultInstance();
260}
261
262::google::protobuf::internal::SCCInfo<2> scc_info_ModifiableComponent_dmi_2fhw_2eproto =
263 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsModifiableComponent_dmi_2fhw_2eproto}, {
264 &scc_info_Component_dmi_2fhw_2eproto.base,
265 &scc_info_Uri_dmi_2fhw_2eproto.base,}};
266
267void InitDefaults_dmi_2fhw_2eproto() {
268 ::google::protobuf::internal::InitSCC(&scc_info_Uuid_dmi_2fhw_2eproto.base);
269 ::google::protobuf::internal::InitSCC(&scc_info_HardwareID_dmi_2fhw_2eproto.base);
270 ::google::protobuf::internal::InitSCC(&scc_info_Uri_dmi_2fhw_2eproto.base);
271 ::google::protobuf::internal::InitSCC(&scc_info_ComponentState_dmi_2fhw_2eproto.base);
272 ::google::protobuf::internal::InitSCC(&scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
273 ::google::protobuf::internal::InitSCC(&scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
274 ::google::protobuf::internal::InitSCC(&scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
275 ::google::protobuf::internal::InitSCC(&scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base);
276 ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base);
277 ::google::protobuf::internal::InitSCC(&scc_info_Component_dmi_2fhw_2eproto.base);
278 ::google::protobuf::internal::InitSCC(&scc_info_Hardware_dmi_2fhw_2eproto.base);
279 ::google::protobuf::internal::InitSCC(&scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
280}
281
282::google::protobuf::Metadata file_level_metadata_dmi_2fhw_2eproto[12];
283const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_2eproto[15];
284constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_2eproto = nullptr;
285
286const ::google::protobuf::uint32 TableStruct_dmi_2fhw_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
287 ~0u, // no _has_bits_
288 PROTOBUF_FIELD_OFFSET(::dmi::Uuid, _internal_metadata_),
289 ~0u, // no _extensions_
290 ~0u, // no _oneof_case_
291 ~0u, // no _weak_field_map_
292 PROTOBUF_FIELD_OFFSET(::dmi::Uuid, uuid_),
293 ~0u, // no _has_bits_
294 PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, _internal_metadata_),
295 ~0u, // no _extensions_
296 ~0u, // no _oneof_case_
297 ~0u, // no _weak_field_map_
298 PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, uuid_),
299 ~0u, // no _has_bits_
300 PROTOBUF_FIELD_OFFSET(::dmi::Uri, _internal_metadata_),
301 ~0u, // no _extensions_
302 ~0u, // no _oneof_case_
303 ~0u, // no _weak_field_map_
304 PROTOBUF_FIELD_OFFSET(::dmi::Uri, uri_),
305 ~0u, // no _has_bits_
306 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, _internal_metadata_),
307 ~0u, // no _extensions_
308 ~0u, // no _oneof_case_
309 ~0u, // no _weak_field_map_
310 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, state_last_changed_),
311 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, admin_state_),
312 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, oper_state_),
313 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, usage_state_),
314 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, alarm_state_),
315 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, standby_state_),
316 ~0u, // no _has_bits_
317 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, _internal_metadata_),
318 ~0u, // no _extensions_
319 ~0u, // no _oneof_case_
320 ~0u, // no _weak_field_map_
321 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_),
322 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, type_),
323 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, scale_),
324 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, precision_),
325 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, status_),
326 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, units_display_),
327 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, timestamp_),
328 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_update_rate_),
329 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, data_type_),
330 ~0u, // no _has_bits_
331 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, _internal_metadata_),
332 ~0u, // no _extensions_
333 ~0u, // no _oneof_case_
334 ~0u, // no _weak_field_map_
335 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, connector_type_),
336 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_),
337 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, protocol_),
338 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, physical_label_),
339 ~0u, // no _has_bits_
340 PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, _internal_metadata_),
341 ~0u, // no _extensions_
342 ~0u, // no _oneof_case_
343 ~0u, // no _weak_field_map_
344 PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, physical_label_),
345 ~0u, // no _has_bits_
346 PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, _internal_metadata_),
347 ~0u, // no _extensions_
348 ~0u, // no _oneof_case_
349 ~0u, // no _weak_field_map_
350 PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, supported_voltage_),
351 ~0u, // no _has_bits_
352 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, _internal_metadata_),
353 ~0u, // no _extensions_
354 ~0u, // no _oneof_case_
355 ~0u, // no _weak_field_map_
356 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, form_factor_),
357 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, trans_type_),
358 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_),
359 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_scale_),
360 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, rx_wavelength_),
361 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_wavelength_),
362 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, wavelength_scale_),
363 ~0u, // no _has_bits_
364 PROTOBUF_FIELD_OFFSET(::dmi::Component, _internal_metadata_),
365 ~0u, // no _extensions_
366 PROTOBUF_FIELD_OFFSET(::dmi::Component, _oneof_case_[0]),
367 ~0u, // no _weak_field_map_
368 PROTOBUF_FIELD_OFFSET(::dmi::Component, name_),
369 PROTOBUF_FIELD_OFFSET(::dmi::Component, class__),
370 PROTOBUF_FIELD_OFFSET(::dmi::Component, description_),
371 PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_),
372 PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_rel_pos_),
373 PROTOBUF_FIELD_OFFSET(::dmi::Component, children_),
374 PROTOBUF_FIELD_OFFSET(::dmi::Component, hardware_rev_),
375 PROTOBUF_FIELD_OFFSET(::dmi::Component, firmware_rev_),
376 PROTOBUF_FIELD_OFFSET(::dmi::Component, software_rev_),
377 PROTOBUF_FIELD_OFFSET(::dmi::Component, serial_num_),
378 PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_name_),
379 PROTOBUF_FIELD_OFFSET(::dmi::Component, model_name_),
380 PROTOBUF_FIELD_OFFSET(::dmi::Component, alias_),
381 PROTOBUF_FIELD_OFFSET(::dmi::Component, asset_id_),
382 PROTOBUF_FIELD_OFFSET(::dmi::Component, is_fru_),
383 PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_date_),
384 PROTOBUF_FIELD_OFFSET(::dmi::Component, uri_),
385 PROTOBUF_FIELD_OFFSET(::dmi::Component, uuid_),
386 PROTOBUF_FIELD_OFFSET(::dmi::Component, state_),
387 PROTOBUF_FIELD_OFFSET(::dmi::Component, sensor_data_),
388 offsetof(::dmi::ComponentDefaultTypeInternal, port_attr_),
389 offsetof(::dmi::ComponentDefaultTypeInternal, container_attr_),
390 offsetof(::dmi::ComponentDefaultTypeInternal, psu_attr_),
391 offsetof(::dmi::ComponentDefaultTypeInternal, transceiver_attr_),
392 PROTOBUF_FIELD_OFFSET(::dmi::Component, specific_),
393 ~0u, // no _has_bits_
394 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, _internal_metadata_),
395 ~0u, // no _extensions_
396 ~0u, // no _oneof_case_
397 ~0u, // no _weak_field_map_
398 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_change_),
399 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, root_),
400 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_booted_),
401 ~0u, // no _has_bits_
402 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _internal_metadata_),
403 ~0u, // no _extensions_
404 ~0u, // no _oneof_case_
405 ~0u, // no _weak_field_map_
406 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, name_),
407 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, class__),
408 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_),
409 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_rel_pos_),
410 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, alias_),
411 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, asset_id_),
412 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, uri_),
413 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, admin_state_),
414};
415static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
416 { 0, -1, sizeof(::dmi::Uuid)},
417 { 6, -1, sizeof(::dmi::HardwareID)},
418 { 12, -1, sizeof(::dmi::Uri)},
419 { 18, -1, sizeof(::dmi::ComponentState)},
420 { 29, -1, sizeof(::dmi::ComponentSensorData)},
421 { 43, -1, sizeof(::dmi::PortComponentAttributes)},
422 { 52, -1, sizeof(::dmi::ContainerComponentAttributes)},
423 { 58, -1, sizeof(::dmi::PsuComponentAttributes)},
424 { 64, -1, sizeof(::dmi::TransceiverComponentsAttributes)},
425 { 76, -1, sizeof(::dmi::Component)},
426 { 106, -1, sizeof(::dmi::Hardware)},
427 { 114, -1, sizeof(::dmi::ModifiableComponent)},
428};
429
430static ::google::protobuf::Message const * const file_default_instances[] = {
431 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uuid_default_instance_),
432 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HardwareID_default_instance_),
433 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uri_default_instance_),
434 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentState_default_instance_),
435 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentSensorData_default_instance_),
436 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentAttributes_default_instance_),
437 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ContainerComponentAttributes_default_instance_),
438 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PsuComponentAttributes_default_instance_),
439 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentsAttributes_default_instance_),
440 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Component_default_instance_),
441 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Hardware_default_instance_),
442 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ModifiableComponent_default_instance_),
443};
444
445::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_2eproto = {
446 {}, AddDescriptors_dmi_2fhw_2eproto, "dmi/hw.proto", schemas,
447 file_default_instances, TableStruct_dmi_2fhw_2eproto::offsets,
448 file_level_metadata_dmi_2fhw_2eproto, 12, file_level_enum_descriptors_dmi_2fhw_2eproto, file_level_service_descriptors_dmi_2fhw_2eproto,
449};
450
451const char descriptor_table_protodef_dmi_2fhw_2eproto[] =
452 "\n\014dmi/hw.proto\022\003dmi\032\037google/protobuf/tim"
453 "estamp.proto\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"%\n\nHa"
454 "rdwareID\022\027\n\004uuid\030\001 \001(\0132\t.dmi.Uuid\"\022\n\003Uri"
455 "\022\013\n\003uri\030\001 \001(\t\"\265\002\n\016ComponentState\0226\n\022stat"
456 "e_last_changed\030\001 \001(\0132\032.google.protobuf.T"
457 "imestamp\022-\n\013admin_state\030\002 \001(\0162\030.dmi.Comp"
458 "onentAdminState\022+\n\noper_state\030\003 \001(\0162\027.dm"
459 "i.ComponentOperState\022-\n\013usage_state\030\004 \001("
460 "\0162\030.dmi.ComponentUsageState\022-\n\013alarm_sta"
461 "te\030\005 \001(\0162\030.dmi.ComponentAlarmState\0221\n\rst"
462 "andby_state\030\006 \001(\0162\032.dmi.ComponentStandby"
463 "State\"\220\002\n\023ComponentSensorData\022\r\n\005value\030\001"
464 " \001(\005\022 \n\004type\030\002 \001(\0162\022.dmi.DataValueType\022\036"
465 "\n\005scale\030\003 \001(\0162\017.dmi.ValueScale\022\021\n\tprecis"
466 "ion\030\004 \001(\005\022!\n\006status\030\005 \001(\0162\021.dmi.SensorSt"
467 "atus\022\025\n\runits_display\030\006 \001(\t\022-\n\ttimestamp"
468 "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\031\n\021va"
469 "lue_update_rate\030\010 \001(\r\022\021\n\tdata_type\030\t \001(\t"
470 "\"\202\005\n\027PortComponentAttributes\022B\n\016connecto"
471 "r_type\030\001 \001(\0162*.dmi.PortComponentAttribut"
472 "es.ConnectorType\0221\n\005speed\030\002 \001(\0162\".dmi.Po"
473 "rtComponentAttributes.Speed\0227\n\010protocol\030"
474 "\003 \001(\0162%.dmi.PortComponentAttributes.Prot"
475 "ocol\022\026\n\016physical_label\030\004 \001(\t\"p\n\rConnecto"
476 "rType\022\034\n\030CONNECTOR_TYPE_UNDEFINED\020\000\022\010\n\004R"
477 "J45\020\001\022\014\n\010FIBER_LC\020\002\022\017\n\013FIBER_SC_PC\020\003\022\r\n\t"
478 "FIBER_MPO\020\004\022\t\n\005RS232\020\005\"\256\001\n\005Speed\022\023\n\017SPEE"
479 "D_UNDEFINED\020\000\022\013\n\007DYNAMIC\020\001\022\r\n\tGIGABIT_1\020"
480 "\002\022\016\n\nGIGABIT_10\020\003\022\016\n\nGIGABIT_25\020\004\022\016\n\nGIG"
481 "ABIT_40\020\005\022\017\n\013GIGABIT_100\020\006\022\017\n\013GIGABIT_40"
482 "0\020\007\022\020\n\014MEGABIT_2500\020\010\022\020\n\014MEGABIT_1250\020\t\""
483 "|\n\010Protocol\022\026\n\022PROTOCOL_UNDEFINED\020\000\022\014\n\010E"
484 "THERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON\020\003\022\n\n\006XGSPON"
485 "\020\004\022\t\n\005GFAST\020\005\022\n\n\006SERIAL\020\006\022\010\n\004EPON\020\007\022\010\n\004B"
486 "ITS\020\010\"6\n\034ContainerComponentAttributes\022\026\n"
487 "\016physical_label\030\001 \001(\t\"\263\001\n\026PsuComponentAt"
488 "tributes\022G\n\021supported_voltage\030\001 \001(\0162,.dm"
489 "i.PsuComponentAttributes.SupportedVoltag"
490 "e\"P\n\020SupportedVoltage\022\037\n\033SUPPORTED_VOLTA"
491 "GE_UNDEFINED\020\000\022\007\n\003V48\020\001\022\010\n\004V230\020\002\022\010\n\004V11"
492 "5\020\003\"\357\004\n\037TransceiverComponentsAttributes\022"
493 "D\n\013form_factor\030\001 \001(\0162/.dmi.TransceiverCo"
494 "mponentsAttributes.FormFactor\022=\n\ntrans_t"
495 "ype\030\002 \001(\0162).dmi.TransceiverComponentsAtt"
496 "ributes.Type\022\024\n\014max_distance\030\003 \001(\r\022+\n\022ma"
497 "x_distance_scale\030\004 \001(\0162\017.dmi.ValueScale\022"
498 "\025\n\rrx_wavelength\030\005 \003(\r\022\025\n\rtx_wavelength\030"
499 "\006 \003(\r\022)\n\020wavelength_scale\030\007 \001(\0162\017.dmi.Va"
500 "lueScale\"\300\001\n\nFormFactor\022\027\n\023FORM_FACTOR_U"
501 "NKNOWN\020\000\022\010\n\004QSFP\020\001\022\r\n\tQSFP_PLUS\020\002\022\n\n\006QSF"
502 "P28\020\003\022\007\n\003SFP\020\004\022\014\n\010SFP_PLUS\020\005\022\007\n\003XFP\020\006\022\010\n"
503 "\004CFP4\020\007\022\010\n\004CFP2\020\010\022\010\n\004CPAK\020\t\022\006\n\002X2\020\n\022\t\n\005O"
504 "THER\020\013\022\007\n\003CFP\020\014\022\014\n\010CFP2_ACO\020\r\022\014\n\010CFP2_DC"
505 "O\020\016\"h\n\004Type\022\020\n\014TYPE_UNKNOWN\020\000\022\014\n\010ETHERNE"
506 "T\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON\020\003\022\n\n\006XGSPON\020\004\022\010\n\004"
507 "CPON\020\005\022\013\n\007NG_PON2\020\006\022\010\n\004EPON\020\007\"\350\005\n\tCompon"
508 "ent\022\014\n\004name\030\001 \001(\t\022!\n\005class\030\002 \001(\0162\022.dmi.C"
509 "omponentType\022\023\n\013description\030\003 \001(\t\022\016\n\006par"
510 "ent\030\004 \001(\t\022\026\n\016parent_rel_pos\030\005 \001(\005\022 \n\010chi"
511 "ldren\030\006 \003(\0132\016.dmi.Component\022\024\n\014hardware_"
512 "rev\030\007 \001(\t\022\024\n\014firmware_rev\030\010 \001(\t\022\024\n\014softw"
513 "are_rev\030\t \001(\t\022\022\n\nserial_num\030\n \001(\t\022\020\n\010mfg"
514 "_name\030\013 \001(\t\022\022\n\nmodel_name\030\014 \001(\t\022\r\n\005alias"
515 "\030\r \001(\t\022\020\n\010asset_id\030\016 \001(\t\022\016\n\006is_fru\030\017 \001(\010"
516 "\022,\n\010mfg_date\030\020 \001(\0132\032.google.protobuf.Tim"
517 "estamp\022\025\n\003uri\030\021 \001(\0132\010.dmi.Uri\022\027\n\004uuid\030\022 "
518 "\001(\0132\t.dmi.Uuid\022\"\n\005state\030\023 \001(\0132\023.dmi.Comp"
519 "onentState\022-\n\013sensor_data\030\024 \003(\0132\030.dmi.Co"
520 "mponentSensorData\0221\n\tport_attr\0302 \001(\0132\034.d"
521 "mi.PortComponentAttributesH\000\022;\n\016containe"
522 "r_attr\0303 \001(\0132!.dmi.ContainerComponentAtt"
523 "ributesH\000\022/\n\010psu_attr\0304 \001(\0132\033.dmi.PsuCom"
524 "ponentAttributesH\000\022@\n\020transceiver_attr\0305"
525 " \001(\0132$.dmi.TransceiverComponentsAttribut"
526 "esH\000B\n\n\010specific\"\212\001\n\010Hardware\022/\n\013last_ch"
527 "ange\030\001 \001(\0132\032.google.protobuf.Timestamp\022\034"
528 "\n\004root\030\002 \001(\0132\016.dmi.Component\022/\n\013last_boo"
529 "ted\030\003 \001(\0132\032.google.protobuf.Timestamp\"\345\001"
530 "\n\023ModifiableComponent\022\014\n\004name\030\001 \001(\t\022!\n\005c"
531 "lass\030\002 \001(\0162\022.dmi.ComponentType\022\036\n\006parent"
532 "\030\003 \001(\0132\016.dmi.Component\022\026\n\016parent_rel_pos"
533 "\030\004 \001(\005\022\r\n\005alias\030\005 \001(\t\022\020\n\010asset_id\030\006 \001(\t\022"
534 "\025\n\003uri\030\007 \001(\0132\010.dmi.Uri\022-\n\013admin_state\030\010 "
535 "\001(\0162\030.dmi.ComponentAdminState*\264\003\n\rCompon"
536 "entType\022\034\n\030COMPONENT_TYPE_UNDEFINED\020\000\022\032\n"
537 "\026COMPONENT_TYPE_UNKNOWN\020\001\022\032\n\026COMPONENT_T"
538 "YPE_CHASSIS\020\002\022\034\n\030COMPONENT_TYPE_BACKPLAN"
539 "E\020\003\022\034\n\030COMPONENT_TYPE_CONTAINER\020\004\022\037\n\033COM"
540 "PONENT_TYPE_POWER_SUPPLY\020\005\022\026\n\022COMPONENT_"
541 "TYPE_FAN\020\006\022\031\n\025COMPONENT_TYPE_SENSOR\020\007\022\031\n"
542 "\025COMPONENT_TYPE_MODULE\020\010\022\027\n\023COMPONENT_TY"
543 "PE_PORT\020\t\022\026\n\022COMPONENT_TYPE_CPU\020\n\022\032\n\026COM"
544 "PONENT_TYPE_BATTERY\020\013\022\032\n\026COMPONENT_TYPE_"
545 "STORAGE\020\014\022\031\n\025COMPONENT_TYPE_MEMORY\020\r\022\036\n\032"
546 "COMPONENT_TYPE_TRANSCEIVER\020\016*\263\001\n\023Compone"
547 "ntAdminState\022\036\n\032COMP_ADMIN_STATE_UNDEFIN"
548 "ED\020\000\022\034\n\030COMP_ADMIN_STATE_UNKNOWN\020\001\022\033\n\027CO"
549 "MP_ADMIN_STATE_LOCKED\020\002\022\"\n\036COMP_ADMIN_ST"
550 "ATE_SHUTTING_DOWN\020\003\022\035\n\031COMP_ADMIN_STATE_"
551 "UNLOCKED\020\004*\250\001\n\022ComponentOperState\022\035\n\031COM"
552 "P_OPER_STATE_UNDEFINED\020\000\022\033\n\027COMP_OPER_ST"
553 "ATE_UNKNOWN\020\001\022\034\n\030COMP_OPER_STATE_DISABLE"
554 "D\020\002\022\033\n\027COMP_OPER_STATE_ENABLED\020\003\022\033\n\027COMP"
555 "_OPER_STATE_TESTING\020\004*\246\001\n\023ComponentUsage"
556 "State\022\036\n\032COMP_USAGE_STATE_UNDEFINED\020\000\022\034\n"
557 "\030COMP_USAGE_STATE_UNKNOWN\020\001\022\031\n\025COMP_USAG"
558 "E_STATE_IDLE\020\002\022\033\n\027COMP_USAGE_STATE_ACTIV"
559 "E\020\003\022\031\n\025COMP_USAGE_STATE_BUSY\020\004*\217\002\n\023Compo"
560 "nentAlarmState\022\036\n\032COMP_ALARM_STATE_UNDEF"
561 "INED\020\000\022\034\n\030COMP_ALARM_STATE_UNKNOWN\020\001\022!\n\035"
562 "COMP_ALARM_STATE_UNDER_REPAIR\020\002\022\035\n\031COMP_"
563 "ALARM_STATE_CRITICAL\020\003\022\032\n\026COMP_ALARM_STA"
564 "TE_MAJOR\020\004\022\032\n\026COMP_ALARM_STATE_MINOR\020\005\022\034"
565 "\n\030COMP_ALARM_STATE_WARNING\020\006\022\"\n\036COMP_ALA"
566 "RM_STATE_INDETERMINATE\020\007*\274\001\n\025ComponentSt"
567 "andbyState\022 \n\034COMP_STANDBY_STATE_UNDEFIN"
568 "ED\020\000\022\036\n\032COMP_STANDBY_STATE_UNKNOWN\020\001\022\032\n\026"
569 "COMP_STANDBY_STATE_HOT\020\002\022\033\n\027COMP_STANDBY"
570 "_STATE_COLD\020\003\022(\n$COMP_STANDBY_STATE_PROV"
571 "IDING_SERVICE\020\004*\211\003\n\rDataValueType\022\030\n\024VAL"
572 "UE_TYPE_UNDEFINED\020\000\022\024\n\020VALUE_TYPE_OTHER\020"
573 "\001\022\026\n\022VALUE_TYPE_UNKNOWN\020\002\022\027\n\023VALUE_TYPE_"
574 "VOLTS_AC\020\003\022\027\n\023VALUE_TYPE_VOLTS_DC\020\004\022\026\n\022V"
575 "ALUE_TYPE_AMPERES\020\005\022\024\n\020VALUE_TYPE_WATTS\020"
576 "\006\022\024\n\020VALUE_TYPE_HERTZ\020\007\022\026\n\022VALUE_TYPE_CE"
577 "LSIUS\020\010\022\031\n\025VALUE_TYPE_PERCENT_RH\020\t\022\022\n\016VA"
578 "LUE_TYPE_RPM\020\n\022\022\n\016VALUE_TYPE_CMM\020\013\022\032\n\026VA"
579 "LUE_TYPE_TRUTH_VALUE\020\014\022\026\n\022VALUE_TYPE_PER"
580 "CENT\020\r\022\025\n\021VALUE_TYPE_METERS\020\016\022\024\n\020VALUE_T"
581 "YPE_BYTES\020\017*\244\003\n\nValueScale\022\031\n\025VALUE_SCAL"
582 "E_UNDEFINED\020\000\022\025\n\021VALUE_SCALE_YOCTO\020\001\022\025\n\021"
583 "VALUE_SCALE_ZEPTO\020\002\022\024\n\020VALUE_SCALE_ATTO\020"
584 "\003\022\025\n\021VALUE_SCALE_FEMTO\020\004\022\024\n\020VALUE_SCALE_"
585 "PICO\020\005\022\024\n\020VALUE_SCALE_NANO\020\006\022\025\n\021VALUE_SC"
586 "ALE_MICRO\020\007\022\025\n\021VALUE_SCALE_MILLI\020\010\022\025\n\021VA"
587 "LUE_SCALE_UNITS\020\t\022\024\n\020VALUE_SCALE_KILO\020\n\022"
588 "\024\n\020VALUE_SCALE_MEGA\020\013\022\024\n\020VALUE_SCALE_GIG"
589 "A\020\014\022\024\n\020VALUE_SCALE_TERA\020\r\022\024\n\020VALUE_SCALE"
590 "_PETA\020\016\022\023\n\017VALUE_SCALE_EXA\020\017\022\025\n\021VALUE_SC"
591 "ALE_ZETTA\020\020\022\025\n\021VALUE_SCALE_YOTTA\020\021*\202\001\n\014S"
592 "ensorStatus\022\033\n\027SENSOR_STATUS_UNDEFINED\020\000"
593 "\022\024\n\020SENSOR_STATUS_OK\020\001\022\035\n\031SENSOR_STATUS_"
594 "UNAVAILABLE\020\002\022 \n\034SENSOR_STATUS_NONOPERAT"
595 "IONAL\020\003B;Z9github.com/opencord/device-ma"
596 "nagement-interface/v3/go/dmib\006proto3"
597 ;
598::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_2eproto = {
599 false, InitDefaults_dmi_2fhw_2eproto,
600 descriptor_table_protodef_dmi_2fhw_2eproto,
601 "dmi/hw.proto", &assign_descriptors_table_dmi_2fhw_2eproto, 5796,
602};
603
604void AddDescriptors_dmi_2fhw_2eproto() {
605 static constexpr ::google::protobuf::internal::InitFunc deps[1] =
606 {
607 ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto,
608 };
609 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_2eproto, deps, 1);
610}
611
612// Force running AddDescriptors() at dynamic initialization time.
613static bool dynamic_init_dummy_dmi_2fhw_2eproto = []() { AddDescriptors_dmi_2fhw_2eproto(); return true; }();
614namespace dmi {
615const ::google::protobuf::EnumDescriptor* PortComponentAttributes_ConnectorType_descriptor() {
616 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
617 return file_level_enum_descriptors_dmi_2fhw_2eproto[0];
618}
619bool PortComponentAttributes_ConnectorType_IsValid(int value) {
620 switch (value) {
621 case 0:
622 case 1:
623 case 2:
624 case 3:
625 case 4:
626 case 5:
627 return true;
628 default:
629 return false;
630 }
631}
632
633#if !defined(_MSC_VER) || _MSC_VER >= 1900
634const PortComponentAttributes_ConnectorType PortComponentAttributes::CONNECTOR_TYPE_UNDEFINED;
635const PortComponentAttributes_ConnectorType PortComponentAttributes::RJ45;
636const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_LC;
637const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_SC_PC;
638const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_MPO;
639const PortComponentAttributes_ConnectorType PortComponentAttributes::RS232;
640const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MIN;
641const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MAX;
642const int PortComponentAttributes::ConnectorType_ARRAYSIZE;
643#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
644const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Speed_descriptor() {
645 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
646 return file_level_enum_descriptors_dmi_2fhw_2eproto[1];
647}
648bool PortComponentAttributes_Speed_IsValid(int value) {
649 switch (value) {
650 case 0:
651 case 1:
652 case 2:
653 case 3:
654 case 4:
655 case 5:
656 case 6:
657 case 7:
658 case 8:
659 case 9:
660 return true;
661 default:
662 return false;
663 }
664}
665
666#if !defined(_MSC_VER) || _MSC_VER >= 1900
667const PortComponentAttributes_Speed PortComponentAttributes::SPEED_UNDEFINED;
668const PortComponentAttributes_Speed PortComponentAttributes::DYNAMIC;
669const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_1;
670const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_10;
671const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_25;
672const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_40;
673const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_100;
674const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_400;
675const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_2500;
676const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_1250;
677const PortComponentAttributes_Speed PortComponentAttributes::Speed_MIN;
678const PortComponentAttributes_Speed PortComponentAttributes::Speed_MAX;
679const int PortComponentAttributes::Speed_ARRAYSIZE;
680#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
681const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Protocol_descriptor() {
682 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
683 return file_level_enum_descriptors_dmi_2fhw_2eproto[2];
684}
685bool PortComponentAttributes_Protocol_IsValid(int value) {
686 switch (value) {
687 case 0:
688 case 1:
689 case 2:
690 case 3:
691 case 4:
692 case 5:
693 case 6:
694 case 7:
695 case 8:
696 return true;
697 default:
698 return false;
699 }
700}
701
702#if !defined(_MSC_VER) || _MSC_VER >= 1900
703const PortComponentAttributes_Protocol PortComponentAttributes::PROTOCOL_UNDEFINED;
704const PortComponentAttributes_Protocol PortComponentAttributes::ETHERNET;
705const PortComponentAttributes_Protocol PortComponentAttributes::GPON;
706const PortComponentAttributes_Protocol PortComponentAttributes::XGPON;
707const PortComponentAttributes_Protocol PortComponentAttributes::XGSPON;
708const PortComponentAttributes_Protocol PortComponentAttributes::GFAST;
709const PortComponentAttributes_Protocol PortComponentAttributes::SERIAL;
710const PortComponentAttributes_Protocol PortComponentAttributes::EPON;
711const PortComponentAttributes_Protocol PortComponentAttributes::BITS;
712const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MIN;
713const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MAX;
714const int PortComponentAttributes::Protocol_ARRAYSIZE;
715#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
716const ::google::protobuf::EnumDescriptor* PsuComponentAttributes_SupportedVoltage_descriptor() {
717 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
718 return file_level_enum_descriptors_dmi_2fhw_2eproto[3];
719}
720bool PsuComponentAttributes_SupportedVoltage_IsValid(int value) {
721 switch (value) {
722 case 0:
723 case 1:
724 case 2:
725 case 3:
726 return true;
727 default:
728 return false;
729 }
730}
731
732#if !defined(_MSC_VER) || _MSC_VER >= 1900
733const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SUPPORTED_VOLTAGE_UNDEFINED;
734const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V48;
735const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V230;
736const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V115;
737const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MIN;
738const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MAX;
739const int PsuComponentAttributes::SupportedVoltage_ARRAYSIZE;
740#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
741const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_FormFactor_descriptor() {
742 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
743 return file_level_enum_descriptors_dmi_2fhw_2eproto[4];
744}
745bool TransceiverComponentsAttributes_FormFactor_IsValid(int value) {
746 switch (value) {
747 case 0:
748 case 1:
749 case 2:
750 case 3:
751 case 4:
752 case 5:
753 case 6:
754 case 7:
755 case 8:
756 case 9:
757 case 10:
758 case 11:
759 case 12:
760 case 13:
761 case 14:
762 return true;
763 default:
764 return false;
765 }
766}
767
768#if !defined(_MSC_VER) || _MSC_VER >= 1900
769const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FORM_FACTOR_UNKNOWN;
770const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP;
771const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_PLUS;
772const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP28;
773const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP;
774const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP_PLUS;
775const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::XFP;
776const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP4;
777const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2;
778const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CPAK;
779const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::X2;
780const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::OTHER;
781const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP;
782const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_ACO;
783const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_DCO;
784const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MIN;
785const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MAX;
786const int TransceiverComponentsAttributes::FormFactor_ARRAYSIZE;
787#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
788const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_Type_descriptor() {
789 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
790 return file_level_enum_descriptors_dmi_2fhw_2eproto[5];
791}
792bool TransceiverComponentsAttributes_Type_IsValid(int value) {
793 switch (value) {
794 case 0:
795 case 1:
796 case 2:
797 case 3:
798 case 4:
799 case 5:
800 case 6:
801 case 7:
802 return true;
803 default:
804 return false;
805 }
806}
807
808#if !defined(_MSC_VER) || _MSC_VER >= 1900
809const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::TYPE_UNKNOWN;
810const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::ETHERNET;
811const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::GPON;
812const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::XGPON;
813const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::XGSPON;
814const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::CPON;
815const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::NG_PON2;
816const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::EPON;
817const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::Type_MIN;
818const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::Type_MAX;
819const int TransceiverComponentsAttributes::Type_ARRAYSIZE;
820#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
821const ::google::protobuf::EnumDescriptor* ComponentType_descriptor() {
822 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
823 return file_level_enum_descriptors_dmi_2fhw_2eproto[6];
824}
825bool ComponentType_IsValid(int value) {
826 switch (value) {
827 case 0:
828 case 1:
829 case 2:
830 case 3:
831 case 4:
832 case 5:
833 case 6:
834 case 7:
835 case 8:
836 case 9:
837 case 10:
838 case 11:
839 case 12:
840 case 13:
841 case 14:
842 return true;
843 default:
844 return false;
845 }
846}
847
848const ::google::protobuf::EnumDescriptor* ComponentAdminState_descriptor() {
849 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
850 return file_level_enum_descriptors_dmi_2fhw_2eproto[7];
851}
852bool ComponentAdminState_IsValid(int value) {
853 switch (value) {
854 case 0:
855 case 1:
856 case 2:
857 case 3:
858 case 4:
859 return true;
860 default:
861 return false;
862 }
863}
864
865const ::google::protobuf::EnumDescriptor* ComponentOperState_descriptor() {
866 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
867 return file_level_enum_descriptors_dmi_2fhw_2eproto[8];
868}
869bool ComponentOperState_IsValid(int value) {
870 switch (value) {
871 case 0:
872 case 1:
873 case 2:
874 case 3:
875 case 4:
876 return true;
877 default:
878 return false;
879 }
880}
881
882const ::google::protobuf::EnumDescriptor* ComponentUsageState_descriptor() {
883 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
884 return file_level_enum_descriptors_dmi_2fhw_2eproto[9];
885}
886bool ComponentUsageState_IsValid(int value) {
887 switch (value) {
888 case 0:
889 case 1:
890 case 2:
891 case 3:
892 case 4:
893 return true;
894 default:
895 return false;
896 }
897}
898
899const ::google::protobuf::EnumDescriptor* ComponentAlarmState_descriptor() {
900 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
901 return file_level_enum_descriptors_dmi_2fhw_2eproto[10];
902}
903bool ComponentAlarmState_IsValid(int value) {
904 switch (value) {
905 case 0:
906 case 1:
907 case 2:
908 case 3:
909 case 4:
910 case 5:
911 case 6:
912 case 7:
913 return true;
914 default:
915 return false;
916 }
917}
918
919const ::google::protobuf::EnumDescriptor* ComponentStandbyState_descriptor() {
920 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
921 return file_level_enum_descriptors_dmi_2fhw_2eproto[11];
922}
923bool ComponentStandbyState_IsValid(int value) {
924 switch (value) {
925 case 0:
926 case 1:
927 case 2:
928 case 3:
929 case 4:
930 return true;
931 default:
932 return false;
933 }
934}
935
936const ::google::protobuf::EnumDescriptor* DataValueType_descriptor() {
937 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
938 return file_level_enum_descriptors_dmi_2fhw_2eproto[12];
939}
940bool DataValueType_IsValid(int value) {
941 switch (value) {
942 case 0:
943 case 1:
944 case 2:
945 case 3:
946 case 4:
947 case 5:
948 case 6:
949 case 7:
950 case 8:
951 case 9:
952 case 10:
953 case 11:
954 case 12:
955 case 13:
956 case 14:
957 case 15:
958 return true;
959 default:
960 return false;
961 }
962}
963
964const ::google::protobuf::EnumDescriptor* ValueScale_descriptor() {
965 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
966 return file_level_enum_descriptors_dmi_2fhw_2eproto[13];
967}
968bool ValueScale_IsValid(int value) {
969 switch (value) {
970 case 0:
971 case 1:
972 case 2:
973 case 3:
974 case 4:
975 case 5:
976 case 6:
977 case 7:
978 case 8:
979 case 9:
980 case 10:
981 case 11:
982 case 12:
983 case 13:
984 case 14:
985 case 15:
986 case 16:
987 case 17:
988 return true;
989 default:
990 return false;
991 }
992}
993
994const ::google::protobuf::EnumDescriptor* SensorStatus_descriptor() {
995 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
996 return file_level_enum_descriptors_dmi_2fhw_2eproto[14];
997}
998bool SensorStatus_IsValid(int value) {
999 switch (value) {
1000 case 0:
1001 case 1:
1002 case 2:
1003 case 3:
1004 return true;
1005 default:
1006 return false;
1007 }
1008}
1009
1010
1011// ===================================================================
1012
1013void Uuid::InitAsDefaultInstance() {
1014}
1015class Uuid::HasBitSetters {
1016 public:
1017};
1018
1019#if !defined(_MSC_VER) || _MSC_VER >= 1900
1020const int Uuid::kUuidFieldNumber;
1021#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1022
1023Uuid::Uuid()
1024 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1025 SharedCtor();
1026 // @@protoc_insertion_point(constructor:dmi.Uuid)
1027}
1028Uuid::Uuid(const Uuid& from)
1029 : ::google::protobuf::Message(),
1030 _internal_metadata_(nullptr) {
1031 _internal_metadata_.MergeFrom(from._internal_metadata_);
1032 uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1033 if (from.uuid().size() > 0) {
1034 uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
1035 }
1036 // @@protoc_insertion_point(copy_constructor:dmi.Uuid)
1037}
1038
1039void Uuid::SharedCtor() {
1040 ::google::protobuf::internal::InitSCC(
1041 &scc_info_Uuid_dmi_2fhw_2eproto.base);
1042 uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1043}
1044
1045Uuid::~Uuid() {
1046 // @@protoc_insertion_point(destructor:dmi.Uuid)
1047 SharedDtor();
1048}
1049
1050void Uuid::SharedDtor() {
1051 uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1052}
1053
1054void Uuid::SetCachedSize(int size) const {
1055 _cached_size_.Set(size);
1056}
1057const Uuid& Uuid::default_instance() {
1058 ::google::protobuf::internal::InitSCC(&::scc_info_Uuid_dmi_2fhw_2eproto.base);
1059 return *internal_default_instance();
1060}
1061
1062
1063void Uuid::Clear() {
1064// @@protoc_insertion_point(message_clear_start:dmi.Uuid)
1065 ::google::protobuf::uint32 cached_has_bits = 0;
1066 // Prevent compiler warnings about cached_has_bits being unused
1067 (void) cached_has_bits;
1068
1069 uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1070 _internal_metadata_.Clear();
1071}
1072
1073#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1074const char* Uuid::_InternalParse(const char* begin, const char* end, void* object,
1075 ::google::protobuf::internal::ParseContext* ctx) {
1076 auto msg = static_cast<Uuid*>(object);
1077 ::google::protobuf::int32 size; (void)size;
1078 int depth; (void)depth;
1079 ::google::protobuf::uint32 tag;
1080 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1081 auto ptr = begin;
1082 while (ptr < end) {
1083 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1084 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1085 switch (tag >> 3) {
1086 // string uuid = 1;
1087 case 1: {
1088 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1089 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1090 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1091 ctx->extra_parse_data().SetFieldName("dmi.Uuid.uuid");
1092 object = msg->mutable_uuid();
1093 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1094 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1095 goto string_till_end;
1096 }
1097 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1098 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1099 ptr += size;
1100 break;
1101 }
1102 default: {
1103 handle_unusual:
1104 if ((tag & 7) == 4 || tag == 0) {
1105 ctx->EndGroup(tag);
1106 return ptr;
1107 }
1108 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1109 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1110 ptr = res.first;
1111 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1112 if (res.second) return ptr;
1113 }
1114 } // switch
1115 } // while
1116 return ptr;
1117string_till_end:
1118 static_cast<::std::string*>(object)->clear();
1119 static_cast<::std::string*>(object)->reserve(size);
1120 goto len_delim_till_end;
1121len_delim_till_end:
1122 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1123 {parser_till_end, object}, size);
1124}
1125#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1126bool Uuid::MergePartialFromCodedStream(
1127 ::google::protobuf::io::CodedInputStream* input) {
1128#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1129 ::google::protobuf::uint32 tag;
1130 // @@protoc_insertion_point(parse_start:dmi.Uuid)
1131 for (;;) {
1132 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1133 tag = p.first;
1134 if (!p.second) goto handle_unusual;
1135 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1136 // string uuid = 1;
1137 case 1: {
1138 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1139 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1140 input, this->mutable_uuid()));
1141 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1142 this->uuid().data(), static_cast<int>(this->uuid().length()),
1143 ::google::protobuf::internal::WireFormatLite::PARSE,
1144 "dmi.Uuid.uuid"));
1145 } else {
1146 goto handle_unusual;
1147 }
1148 break;
1149 }
1150
1151 default: {
1152 handle_unusual:
1153 if (tag == 0) {
1154 goto success;
1155 }
1156 DO_(::google::protobuf::internal::WireFormat::SkipField(
1157 input, tag, _internal_metadata_.mutable_unknown_fields()));
1158 break;
1159 }
1160 }
1161 }
1162success:
1163 // @@protoc_insertion_point(parse_success:dmi.Uuid)
1164 return true;
1165failure:
1166 // @@protoc_insertion_point(parse_failure:dmi.Uuid)
1167 return false;
1168#undef DO_
1169}
1170#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1171
1172void Uuid::SerializeWithCachedSizes(
1173 ::google::protobuf::io::CodedOutputStream* output) const {
1174 // @@protoc_insertion_point(serialize_start:dmi.Uuid)
1175 ::google::protobuf::uint32 cached_has_bits = 0;
1176 (void) cached_has_bits;
1177
1178 // string uuid = 1;
1179 if (this->uuid().size() > 0) {
1180 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1181 this->uuid().data(), static_cast<int>(this->uuid().length()),
1182 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1183 "dmi.Uuid.uuid");
1184 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1185 1, this->uuid(), output);
1186 }
1187
1188 if (_internal_metadata_.have_unknown_fields()) {
1189 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1190 _internal_metadata_.unknown_fields(), output);
1191 }
1192 // @@protoc_insertion_point(serialize_end:dmi.Uuid)
1193}
1194
1195::google::protobuf::uint8* Uuid::InternalSerializeWithCachedSizesToArray(
1196 ::google::protobuf::uint8* target) const {
1197 // @@protoc_insertion_point(serialize_to_array_start:dmi.Uuid)
1198 ::google::protobuf::uint32 cached_has_bits = 0;
1199 (void) cached_has_bits;
1200
1201 // string uuid = 1;
1202 if (this->uuid().size() > 0) {
1203 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1204 this->uuid().data(), static_cast<int>(this->uuid().length()),
1205 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1206 "dmi.Uuid.uuid");
1207 target =
1208 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1209 1, this->uuid(), target);
1210 }
1211
1212 if (_internal_metadata_.have_unknown_fields()) {
1213 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1214 _internal_metadata_.unknown_fields(), target);
1215 }
1216 // @@protoc_insertion_point(serialize_to_array_end:dmi.Uuid)
1217 return target;
1218}
1219
1220size_t Uuid::ByteSizeLong() const {
1221// @@protoc_insertion_point(message_byte_size_start:dmi.Uuid)
1222 size_t total_size = 0;
1223
1224 if (_internal_metadata_.have_unknown_fields()) {
1225 total_size +=
1226 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1227 _internal_metadata_.unknown_fields());
1228 }
1229 ::google::protobuf::uint32 cached_has_bits = 0;
1230 // Prevent compiler warnings about cached_has_bits being unused
1231 (void) cached_has_bits;
1232
1233 // string uuid = 1;
1234 if (this->uuid().size() > 0) {
1235 total_size += 1 +
1236 ::google::protobuf::internal::WireFormatLite::StringSize(
1237 this->uuid());
1238 }
1239
1240 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1241 SetCachedSize(cached_size);
1242 return total_size;
1243}
1244
1245void Uuid::MergeFrom(const ::google::protobuf::Message& from) {
1246// @@protoc_insertion_point(generalized_merge_from_start:dmi.Uuid)
1247 GOOGLE_DCHECK_NE(&from, this);
1248 const Uuid* source =
1249 ::google::protobuf::DynamicCastToGenerated<Uuid>(
1250 &from);
1251 if (source == nullptr) {
1252 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uuid)
1253 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1254 } else {
1255 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uuid)
1256 MergeFrom(*source);
1257 }
1258}
1259
1260void Uuid::MergeFrom(const Uuid& from) {
1261// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uuid)
1262 GOOGLE_DCHECK_NE(&from, this);
1263 _internal_metadata_.MergeFrom(from._internal_metadata_);
1264 ::google::protobuf::uint32 cached_has_bits = 0;
1265 (void) cached_has_bits;
1266
1267 if (from.uuid().size() > 0) {
1268
1269 uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
1270 }
1271}
1272
1273void Uuid::CopyFrom(const ::google::protobuf::Message& from) {
1274// @@protoc_insertion_point(generalized_copy_from_start:dmi.Uuid)
1275 if (&from == this) return;
1276 Clear();
1277 MergeFrom(from);
1278}
1279
1280void Uuid::CopyFrom(const Uuid& from) {
1281// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uuid)
1282 if (&from == this) return;
1283 Clear();
1284 MergeFrom(from);
1285}
1286
1287bool Uuid::IsInitialized() const {
1288 return true;
1289}
1290
1291void Uuid::Swap(Uuid* other) {
1292 if (other == this) return;
1293 InternalSwap(other);
1294}
1295void Uuid::InternalSwap(Uuid* other) {
1296 using std::swap;
1297 _internal_metadata_.Swap(&other->_internal_metadata_);
1298 uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1299 GetArenaNoVirtual());
1300}
1301
1302::google::protobuf::Metadata Uuid::GetMetadata() const {
1303 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
1304 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
1305}
1306
1307
1308// ===================================================================
1309
1310void HardwareID::InitAsDefaultInstance() {
1311 ::dmi::_HardwareID_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>(
1312 ::dmi::Uuid::internal_default_instance());
1313}
1314class HardwareID::HasBitSetters {
1315 public:
1316 static const ::dmi::Uuid& uuid(const HardwareID* msg);
1317};
1318
1319const ::dmi::Uuid&
1320HardwareID::HasBitSetters::uuid(const HardwareID* msg) {
1321 return *msg->uuid_;
1322}
1323#if !defined(_MSC_VER) || _MSC_VER >= 1900
1324const int HardwareID::kUuidFieldNumber;
1325#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1326
1327HardwareID::HardwareID()
1328 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1329 SharedCtor();
1330 // @@protoc_insertion_point(constructor:dmi.HardwareID)
1331}
1332HardwareID::HardwareID(const HardwareID& from)
1333 : ::google::protobuf::Message(),
1334 _internal_metadata_(nullptr) {
1335 _internal_metadata_.MergeFrom(from._internal_metadata_);
1336 if (from.has_uuid()) {
1337 uuid_ = new ::dmi::Uuid(*from.uuid_);
1338 } else {
1339 uuid_ = nullptr;
1340 }
1341 // @@protoc_insertion_point(copy_constructor:dmi.HardwareID)
1342}
1343
1344void HardwareID::SharedCtor() {
1345 ::google::protobuf::internal::InitSCC(
1346 &scc_info_HardwareID_dmi_2fhw_2eproto.base);
1347 uuid_ = nullptr;
1348}
1349
1350HardwareID::~HardwareID() {
1351 // @@protoc_insertion_point(destructor:dmi.HardwareID)
1352 SharedDtor();
1353}
1354
1355void HardwareID::SharedDtor() {
1356 if (this != internal_default_instance()) delete uuid_;
1357}
1358
1359void HardwareID::SetCachedSize(int size) const {
1360 _cached_size_.Set(size);
1361}
1362const HardwareID& HardwareID::default_instance() {
1363 ::google::protobuf::internal::InitSCC(&::scc_info_HardwareID_dmi_2fhw_2eproto.base);
1364 return *internal_default_instance();
1365}
1366
1367
1368void HardwareID::Clear() {
1369// @@protoc_insertion_point(message_clear_start:dmi.HardwareID)
1370 ::google::protobuf::uint32 cached_has_bits = 0;
1371 // Prevent compiler warnings about cached_has_bits being unused
1372 (void) cached_has_bits;
1373
1374 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
1375 delete uuid_;
1376 }
1377 uuid_ = nullptr;
1378 _internal_metadata_.Clear();
1379}
1380
1381#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1382const char* HardwareID::_InternalParse(const char* begin, const char* end, void* object,
1383 ::google::protobuf::internal::ParseContext* ctx) {
1384 auto msg = static_cast<HardwareID*>(object);
1385 ::google::protobuf::int32 size; (void)size;
1386 int depth; (void)depth;
1387 ::google::protobuf::uint32 tag;
1388 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1389 auto ptr = begin;
1390 while (ptr < end) {
1391 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1392 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1393 switch (tag >> 3) {
1394 // .dmi.Uuid uuid = 1;
1395 case 1: {
1396 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1397 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1398 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1399 parser_till_end = ::dmi::Uuid::_InternalParse;
1400 object = msg->mutable_uuid();
1401 if (size > end - ptr) goto len_delim_till_end;
1402 ptr += size;
1403 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1404 {parser_till_end, object}, ptr - size, ptr));
1405 break;
1406 }
1407 default: {
1408 handle_unusual:
1409 if ((tag & 7) == 4 || tag == 0) {
1410 ctx->EndGroup(tag);
1411 return ptr;
1412 }
1413 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1414 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1415 ptr = res.first;
1416 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1417 if (res.second) return ptr;
1418 }
1419 } // switch
1420 } // while
1421 return ptr;
1422len_delim_till_end:
1423 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1424 {parser_till_end, object}, size);
1425}
1426#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1427bool HardwareID::MergePartialFromCodedStream(
1428 ::google::protobuf::io::CodedInputStream* input) {
1429#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1430 ::google::protobuf::uint32 tag;
1431 // @@protoc_insertion_point(parse_start:dmi.HardwareID)
1432 for (;;) {
1433 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1434 tag = p.first;
1435 if (!p.second) goto handle_unusual;
1436 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1437 // .dmi.Uuid uuid = 1;
1438 case 1: {
1439 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1440 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1441 input, mutable_uuid()));
1442 } else {
1443 goto handle_unusual;
1444 }
1445 break;
1446 }
1447
1448 default: {
1449 handle_unusual:
1450 if (tag == 0) {
1451 goto success;
1452 }
1453 DO_(::google::protobuf::internal::WireFormat::SkipField(
1454 input, tag, _internal_metadata_.mutable_unknown_fields()));
1455 break;
1456 }
1457 }
1458 }
1459success:
1460 // @@protoc_insertion_point(parse_success:dmi.HardwareID)
1461 return true;
1462failure:
1463 // @@protoc_insertion_point(parse_failure:dmi.HardwareID)
1464 return false;
1465#undef DO_
1466}
1467#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1468
1469void HardwareID::SerializeWithCachedSizes(
1470 ::google::protobuf::io::CodedOutputStream* output) const {
1471 // @@protoc_insertion_point(serialize_start:dmi.HardwareID)
1472 ::google::protobuf::uint32 cached_has_bits = 0;
1473 (void) cached_has_bits;
1474
1475 // .dmi.Uuid uuid = 1;
1476 if (this->has_uuid()) {
1477 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1478 1, HasBitSetters::uuid(this), output);
1479 }
1480
1481 if (_internal_metadata_.have_unknown_fields()) {
1482 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1483 _internal_metadata_.unknown_fields(), output);
1484 }
1485 // @@protoc_insertion_point(serialize_end:dmi.HardwareID)
1486}
1487
1488::google::protobuf::uint8* HardwareID::InternalSerializeWithCachedSizesToArray(
1489 ::google::protobuf::uint8* target) const {
1490 // @@protoc_insertion_point(serialize_to_array_start:dmi.HardwareID)
1491 ::google::protobuf::uint32 cached_has_bits = 0;
1492 (void) cached_has_bits;
1493
1494 // .dmi.Uuid uuid = 1;
1495 if (this->has_uuid()) {
1496 target = ::google::protobuf::internal::WireFormatLite::
1497 InternalWriteMessageToArray(
1498 1, HasBitSetters::uuid(this), target);
1499 }
1500
1501 if (_internal_metadata_.have_unknown_fields()) {
1502 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1503 _internal_metadata_.unknown_fields(), target);
1504 }
1505 // @@protoc_insertion_point(serialize_to_array_end:dmi.HardwareID)
1506 return target;
1507}
1508
1509size_t HardwareID::ByteSizeLong() const {
1510// @@protoc_insertion_point(message_byte_size_start:dmi.HardwareID)
1511 size_t total_size = 0;
1512
1513 if (_internal_metadata_.have_unknown_fields()) {
1514 total_size +=
1515 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1516 _internal_metadata_.unknown_fields());
1517 }
1518 ::google::protobuf::uint32 cached_has_bits = 0;
1519 // Prevent compiler warnings about cached_has_bits being unused
1520 (void) cached_has_bits;
1521
1522 // .dmi.Uuid uuid = 1;
1523 if (this->has_uuid()) {
1524 total_size += 1 +
1525 ::google::protobuf::internal::WireFormatLite::MessageSize(
1526 *uuid_);
1527 }
1528
1529 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1530 SetCachedSize(cached_size);
1531 return total_size;
1532}
1533
1534void HardwareID::MergeFrom(const ::google::protobuf::Message& from) {
1535// @@protoc_insertion_point(generalized_merge_from_start:dmi.HardwareID)
1536 GOOGLE_DCHECK_NE(&from, this);
1537 const HardwareID* source =
1538 ::google::protobuf::DynamicCastToGenerated<HardwareID>(
1539 &from);
1540 if (source == nullptr) {
1541 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HardwareID)
1542 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1543 } else {
1544 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HardwareID)
1545 MergeFrom(*source);
1546 }
1547}
1548
1549void HardwareID::MergeFrom(const HardwareID& from) {
1550// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HardwareID)
1551 GOOGLE_DCHECK_NE(&from, this);
1552 _internal_metadata_.MergeFrom(from._internal_metadata_);
1553 ::google::protobuf::uint32 cached_has_bits = 0;
1554 (void) cached_has_bits;
1555
1556 if (from.has_uuid()) {
1557 mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid());
1558 }
1559}
1560
1561void HardwareID::CopyFrom(const ::google::protobuf::Message& from) {
1562// @@protoc_insertion_point(generalized_copy_from_start:dmi.HardwareID)
1563 if (&from == this) return;
1564 Clear();
1565 MergeFrom(from);
1566}
1567
1568void HardwareID::CopyFrom(const HardwareID& from) {
1569// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HardwareID)
1570 if (&from == this) return;
1571 Clear();
1572 MergeFrom(from);
1573}
1574
1575bool HardwareID::IsInitialized() const {
1576 return true;
1577}
1578
1579void HardwareID::Swap(HardwareID* other) {
1580 if (other == this) return;
1581 InternalSwap(other);
1582}
1583void HardwareID::InternalSwap(HardwareID* other) {
1584 using std::swap;
1585 _internal_metadata_.Swap(&other->_internal_metadata_);
1586 swap(uuid_, other->uuid_);
1587}
1588
1589::google::protobuf::Metadata HardwareID::GetMetadata() const {
1590 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
1591 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
1592}
1593
1594
1595// ===================================================================
1596
1597void Uri::InitAsDefaultInstance() {
1598}
1599class Uri::HasBitSetters {
1600 public:
1601};
1602
1603#if !defined(_MSC_VER) || _MSC_VER >= 1900
1604const int Uri::kUriFieldNumber;
1605#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1606
1607Uri::Uri()
1608 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1609 SharedCtor();
1610 // @@protoc_insertion_point(constructor:dmi.Uri)
1611}
1612Uri::Uri(const Uri& from)
1613 : ::google::protobuf::Message(),
1614 _internal_metadata_(nullptr) {
1615 _internal_metadata_.MergeFrom(from._internal_metadata_);
1616 uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1617 if (from.uri().size() > 0) {
1618 uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_);
1619 }
1620 // @@protoc_insertion_point(copy_constructor:dmi.Uri)
1621}
1622
1623void Uri::SharedCtor() {
1624 ::google::protobuf::internal::InitSCC(
1625 &scc_info_Uri_dmi_2fhw_2eproto.base);
1626 uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1627}
1628
1629Uri::~Uri() {
1630 // @@protoc_insertion_point(destructor:dmi.Uri)
1631 SharedDtor();
1632}
1633
1634void Uri::SharedDtor() {
1635 uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1636}
1637
1638void Uri::SetCachedSize(int size) const {
1639 _cached_size_.Set(size);
1640}
1641const Uri& Uri::default_instance() {
1642 ::google::protobuf::internal::InitSCC(&::scc_info_Uri_dmi_2fhw_2eproto.base);
1643 return *internal_default_instance();
1644}
1645
1646
1647void Uri::Clear() {
1648// @@protoc_insertion_point(message_clear_start:dmi.Uri)
1649 ::google::protobuf::uint32 cached_has_bits = 0;
1650 // Prevent compiler warnings about cached_has_bits being unused
1651 (void) cached_has_bits;
1652
1653 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1654 _internal_metadata_.Clear();
1655}
1656
1657#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1658const char* Uri::_InternalParse(const char* begin, const char* end, void* object,
1659 ::google::protobuf::internal::ParseContext* ctx) {
1660 auto msg = static_cast<Uri*>(object);
1661 ::google::protobuf::int32 size; (void)size;
1662 int depth; (void)depth;
1663 ::google::protobuf::uint32 tag;
1664 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1665 auto ptr = begin;
1666 while (ptr < end) {
1667 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1668 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1669 switch (tag >> 3) {
1670 // string uri = 1;
1671 case 1: {
1672 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1673 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1674 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1675 ctx->extra_parse_data().SetFieldName("dmi.Uri.uri");
1676 object = msg->mutable_uri();
1677 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1678 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1679 goto string_till_end;
1680 }
1681 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1682 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1683 ptr += size;
1684 break;
1685 }
1686 default: {
1687 handle_unusual:
1688 if ((tag & 7) == 4 || tag == 0) {
1689 ctx->EndGroup(tag);
1690 return ptr;
1691 }
1692 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1693 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1694 ptr = res.first;
1695 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1696 if (res.second) return ptr;
1697 }
1698 } // switch
1699 } // while
1700 return ptr;
1701string_till_end:
1702 static_cast<::std::string*>(object)->clear();
1703 static_cast<::std::string*>(object)->reserve(size);
1704 goto len_delim_till_end;
1705len_delim_till_end:
1706 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1707 {parser_till_end, object}, size);
1708}
1709#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1710bool Uri::MergePartialFromCodedStream(
1711 ::google::protobuf::io::CodedInputStream* input) {
1712#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1713 ::google::protobuf::uint32 tag;
1714 // @@protoc_insertion_point(parse_start:dmi.Uri)
1715 for (;;) {
1716 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1717 tag = p.first;
1718 if (!p.second) goto handle_unusual;
1719 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1720 // string uri = 1;
1721 case 1: {
1722 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1723 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1724 input, this->mutable_uri()));
1725 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1726 this->uri().data(), static_cast<int>(this->uri().length()),
1727 ::google::protobuf::internal::WireFormatLite::PARSE,
1728 "dmi.Uri.uri"));
1729 } else {
1730 goto handle_unusual;
1731 }
1732 break;
1733 }
1734
1735 default: {
1736 handle_unusual:
1737 if (tag == 0) {
1738 goto success;
1739 }
1740 DO_(::google::protobuf::internal::WireFormat::SkipField(
1741 input, tag, _internal_metadata_.mutable_unknown_fields()));
1742 break;
1743 }
1744 }
1745 }
1746success:
1747 // @@protoc_insertion_point(parse_success:dmi.Uri)
1748 return true;
1749failure:
1750 // @@protoc_insertion_point(parse_failure:dmi.Uri)
1751 return false;
1752#undef DO_
1753}
1754#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1755
1756void Uri::SerializeWithCachedSizes(
1757 ::google::protobuf::io::CodedOutputStream* output) const {
1758 // @@protoc_insertion_point(serialize_start:dmi.Uri)
1759 ::google::protobuf::uint32 cached_has_bits = 0;
1760 (void) cached_has_bits;
1761
1762 // string uri = 1;
1763 if (this->uri().size() > 0) {
1764 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1765 this->uri().data(), static_cast<int>(this->uri().length()),
1766 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1767 "dmi.Uri.uri");
1768 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1769 1, this->uri(), output);
1770 }
1771
1772 if (_internal_metadata_.have_unknown_fields()) {
1773 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1774 _internal_metadata_.unknown_fields(), output);
1775 }
1776 // @@protoc_insertion_point(serialize_end:dmi.Uri)
1777}
1778
1779::google::protobuf::uint8* Uri::InternalSerializeWithCachedSizesToArray(
1780 ::google::protobuf::uint8* target) const {
1781 // @@protoc_insertion_point(serialize_to_array_start:dmi.Uri)
1782 ::google::protobuf::uint32 cached_has_bits = 0;
1783 (void) cached_has_bits;
1784
1785 // string uri = 1;
1786 if (this->uri().size() > 0) {
1787 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1788 this->uri().data(), static_cast<int>(this->uri().length()),
1789 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1790 "dmi.Uri.uri");
1791 target =
1792 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1793 1, this->uri(), target);
1794 }
1795
1796 if (_internal_metadata_.have_unknown_fields()) {
1797 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1798 _internal_metadata_.unknown_fields(), target);
1799 }
1800 // @@protoc_insertion_point(serialize_to_array_end:dmi.Uri)
1801 return target;
1802}
1803
1804size_t Uri::ByteSizeLong() const {
1805// @@protoc_insertion_point(message_byte_size_start:dmi.Uri)
1806 size_t total_size = 0;
1807
1808 if (_internal_metadata_.have_unknown_fields()) {
1809 total_size +=
1810 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1811 _internal_metadata_.unknown_fields());
1812 }
1813 ::google::protobuf::uint32 cached_has_bits = 0;
1814 // Prevent compiler warnings about cached_has_bits being unused
1815 (void) cached_has_bits;
1816
1817 // string uri = 1;
1818 if (this->uri().size() > 0) {
1819 total_size += 1 +
1820 ::google::protobuf::internal::WireFormatLite::StringSize(
1821 this->uri());
1822 }
1823
1824 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1825 SetCachedSize(cached_size);
1826 return total_size;
1827}
1828
1829void Uri::MergeFrom(const ::google::protobuf::Message& from) {
1830// @@protoc_insertion_point(generalized_merge_from_start:dmi.Uri)
1831 GOOGLE_DCHECK_NE(&from, this);
1832 const Uri* source =
1833 ::google::protobuf::DynamicCastToGenerated<Uri>(
1834 &from);
1835 if (source == nullptr) {
1836 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uri)
1837 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1838 } else {
1839 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uri)
1840 MergeFrom(*source);
1841 }
1842}
1843
1844void Uri::MergeFrom(const Uri& from) {
1845// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uri)
1846 GOOGLE_DCHECK_NE(&from, this);
1847 _internal_metadata_.MergeFrom(from._internal_metadata_);
1848 ::google::protobuf::uint32 cached_has_bits = 0;
1849 (void) cached_has_bits;
1850
1851 if (from.uri().size() > 0) {
1852
1853 uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_);
1854 }
1855}
1856
1857void Uri::CopyFrom(const ::google::protobuf::Message& from) {
1858// @@protoc_insertion_point(generalized_copy_from_start:dmi.Uri)
1859 if (&from == this) return;
1860 Clear();
1861 MergeFrom(from);
1862}
1863
1864void Uri::CopyFrom(const Uri& from) {
1865// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uri)
1866 if (&from == this) return;
1867 Clear();
1868 MergeFrom(from);
1869}
1870
1871bool Uri::IsInitialized() const {
1872 return true;
1873}
1874
1875void Uri::Swap(Uri* other) {
1876 if (other == this) return;
1877 InternalSwap(other);
1878}
1879void Uri::InternalSwap(Uri* other) {
1880 using std::swap;
1881 _internal_metadata_.Swap(&other->_internal_metadata_);
1882 uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1883 GetArenaNoVirtual());
1884}
1885
1886::google::protobuf::Metadata Uri::GetMetadata() const {
1887 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
1888 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
1889}
1890
1891
1892// ===================================================================
1893
1894void ComponentState::InitAsDefaultInstance() {
1895 ::dmi::_ComponentState_default_instance_._instance.get_mutable()->state_last_changed_ = const_cast< ::google::protobuf::Timestamp*>(
1896 ::google::protobuf::Timestamp::internal_default_instance());
1897}
1898class ComponentState::HasBitSetters {
1899 public:
1900 static const ::google::protobuf::Timestamp& state_last_changed(const ComponentState* msg);
1901};
1902
1903const ::google::protobuf::Timestamp&
1904ComponentState::HasBitSetters::state_last_changed(const ComponentState* msg) {
1905 return *msg->state_last_changed_;
1906}
1907void ComponentState::clear_state_last_changed() {
1908 if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) {
1909 delete state_last_changed_;
1910 }
1911 state_last_changed_ = nullptr;
1912}
1913#if !defined(_MSC_VER) || _MSC_VER >= 1900
1914const int ComponentState::kStateLastChangedFieldNumber;
1915const int ComponentState::kAdminStateFieldNumber;
1916const int ComponentState::kOperStateFieldNumber;
1917const int ComponentState::kUsageStateFieldNumber;
1918const int ComponentState::kAlarmStateFieldNumber;
1919const int ComponentState::kStandbyStateFieldNumber;
1920#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1921
1922ComponentState::ComponentState()
1923 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1924 SharedCtor();
1925 // @@protoc_insertion_point(constructor:dmi.ComponentState)
1926}
1927ComponentState::ComponentState(const ComponentState& from)
1928 : ::google::protobuf::Message(),
1929 _internal_metadata_(nullptr) {
1930 _internal_metadata_.MergeFrom(from._internal_metadata_);
1931 if (from.has_state_last_changed()) {
1932 state_last_changed_ = new ::google::protobuf::Timestamp(*from.state_last_changed_);
1933 } else {
1934 state_last_changed_ = nullptr;
1935 }
1936 ::memcpy(&admin_state_, &from.admin_state_,
1937 static_cast<size_t>(reinterpret_cast<char*>(&standby_state_) -
1938 reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_));
1939 // @@protoc_insertion_point(copy_constructor:dmi.ComponentState)
1940}
1941
1942void ComponentState::SharedCtor() {
1943 ::google::protobuf::internal::InitSCC(
1944 &scc_info_ComponentState_dmi_2fhw_2eproto.base);
1945 ::memset(&state_last_changed_, 0, static_cast<size_t>(
1946 reinterpret_cast<char*>(&standby_state_) -
1947 reinterpret_cast<char*>(&state_last_changed_)) + sizeof(standby_state_));
1948}
1949
1950ComponentState::~ComponentState() {
1951 // @@protoc_insertion_point(destructor:dmi.ComponentState)
1952 SharedDtor();
1953}
1954
1955void ComponentState::SharedDtor() {
1956 if (this != internal_default_instance()) delete state_last_changed_;
1957}
1958
1959void ComponentState::SetCachedSize(int size) const {
1960 _cached_size_.Set(size);
1961}
1962const ComponentState& ComponentState::default_instance() {
1963 ::google::protobuf::internal::InitSCC(&::scc_info_ComponentState_dmi_2fhw_2eproto.base);
1964 return *internal_default_instance();
1965}
1966
1967
1968void ComponentState::Clear() {
1969// @@protoc_insertion_point(message_clear_start:dmi.ComponentState)
1970 ::google::protobuf::uint32 cached_has_bits = 0;
1971 // Prevent compiler warnings about cached_has_bits being unused
1972 (void) cached_has_bits;
1973
1974 if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) {
1975 delete state_last_changed_;
1976 }
1977 state_last_changed_ = nullptr;
1978 ::memset(&admin_state_, 0, static_cast<size_t>(
1979 reinterpret_cast<char*>(&standby_state_) -
1980 reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_));
1981 _internal_metadata_.Clear();
1982}
1983
1984#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1985const char* ComponentState::_InternalParse(const char* begin, const char* end, void* object,
1986 ::google::protobuf::internal::ParseContext* ctx) {
1987 auto msg = static_cast<ComponentState*>(object);
1988 ::google::protobuf::int32 size; (void)size;
1989 int depth; (void)depth;
1990 ::google::protobuf::uint32 tag;
1991 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1992 auto ptr = begin;
1993 while (ptr < end) {
1994 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1995 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1996 switch (tag >> 3) {
1997 // .google.protobuf.Timestamp state_last_changed = 1;
1998 case 1: {
1999 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2000 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2001 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2002 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
2003 object = msg->mutable_state_last_changed();
2004 if (size > end - ptr) goto len_delim_till_end;
2005 ptr += size;
2006 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2007 {parser_till_end, object}, ptr - size, ptr));
2008 break;
2009 }
2010 // .dmi.ComponentAdminState admin_state = 2;
2011 case 2: {
2012 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2013 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2014 msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val));
2015 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2016 break;
2017 }
2018 // .dmi.ComponentOperState oper_state = 3;
2019 case 3: {
2020 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
2021 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2022 msg->set_oper_state(static_cast<::dmi::ComponentOperState>(val));
2023 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2024 break;
2025 }
2026 // .dmi.ComponentUsageState usage_state = 4;
2027 case 4: {
2028 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
2029 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2030 msg->set_usage_state(static_cast<::dmi::ComponentUsageState>(val));
2031 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2032 break;
2033 }
2034 // .dmi.ComponentAlarmState alarm_state = 5;
2035 case 5: {
2036 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
2037 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2038 msg->set_alarm_state(static_cast<::dmi::ComponentAlarmState>(val));
2039 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2040 break;
2041 }
2042 // .dmi.ComponentStandbyState standby_state = 6;
2043 case 6: {
2044 if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual;
2045 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2046 msg->set_standby_state(static_cast<::dmi::ComponentStandbyState>(val));
2047 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2048 break;
2049 }
2050 default: {
2051 handle_unusual:
2052 if ((tag & 7) == 4 || tag == 0) {
2053 ctx->EndGroup(tag);
2054 return ptr;
2055 }
2056 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2057 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2058 ptr = res.first;
2059 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2060 if (res.second) return ptr;
2061 }
2062 } // switch
2063 } // while
2064 return ptr;
2065len_delim_till_end:
2066 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2067 {parser_till_end, object}, size);
2068}
2069#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2070bool ComponentState::MergePartialFromCodedStream(
2071 ::google::protobuf::io::CodedInputStream* input) {
2072#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2073 ::google::protobuf::uint32 tag;
2074 // @@protoc_insertion_point(parse_start:dmi.ComponentState)
2075 for (;;) {
2076 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2077 tag = p.first;
2078 if (!p.second) goto handle_unusual;
2079 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2080 // .google.protobuf.Timestamp state_last_changed = 1;
2081 case 1: {
2082 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2083 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2084 input, mutable_state_last_changed()));
2085 } else {
2086 goto handle_unusual;
2087 }
2088 break;
2089 }
2090
2091 // .dmi.ComponentAdminState admin_state = 2;
2092 case 2: {
2093 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2094 int value = 0;
2095 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2096 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2097 input, &value)));
2098 set_admin_state(static_cast< ::dmi::ComponentAdminState >(value));
2099 } else {
2100 goto handle_unusual;
2101 }
2102 break;
2103 }
2104
2105 // .dmi.ComponentOperState oper_state = 3;
2106 case 3: {
2107 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
2108 int value = 0;
2109 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2110 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2111 input, &value)));
2112 set_oper_state(static_cast< ::dmi::ComponentOperState >(value));
2113 } else {
2114 goto handle_unusual;
2115 }
2116 break;
2117 }
2118
2119 // .dmi.ComponentUsageState usage_state = 4;
2120 case 4: {
2121 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
2122 int value = 0;
2123 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2124 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2125 input, &value)));
2126 set_usage_state(static_cast< ::dmi::ComponentUsageState >(value));
2127 } else {
2128 goto handle_unusual;
2129 }
2130 break;
2131 }
2132
2133 // .dmi.ComponentAlarmState alarm_state = 5;
2134 case 5: {
2135 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
2136 int value = 0;
2137 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2138 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2139 input, &value)));
2140 set_alarm_state(static_cast< ::dmi::ComponentAlarmState >(value));
2141 } else {
2142 goto handle_unusual;
2143 }
2144 break;
2145 }
2146
2147 // .dmi.ComponentStandbyState standby_state = 6;
2148 case 6: {
2149 if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) {
2150 int value = 0;
2151 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2152 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2153 input, &value)));
2154 set_standby_state(static_cast< ::dmi::ComponentStandbyState >(value));
2155 } else {
2156 goto handle_unusual;
2157 }
2158 break;
2159 }
2160
2161 default: {
2162 handle_unusual:
2163 if (tag == 0) {
2164 goto success;
2165 }
2166 DO_(::google::protobuf::internal::WireFormat::SkipField(
2167 input, tag, _internal_metadata_.mutable_unknown_fields()));
2168 break;
2169 }
2170 }
2171 }
2172success:
2173 // @@protoc_insertion_point(parse_success:dmi.ComponentState)
2174 return true;
2175failure:
2176 // @@protoc_insertion_point(parse_failure:dmi.ComponentState)
2177 return false;
2178#undef DO_
2179}
2180#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2181
2182void ComponentState::SerializeWithCachedSizes(
2183 ::google::protobuf::io::CodedOutputStream* output) const {
2184 // @@protoc_insertion_point(serialize_start:dmi.ComponentState)
2185 ::google::protobuf::uint32 cached_has_bits = 0;
2186 (void) cached_has_bits;
2187
2188 // .google.protobuf.Timestamp state_last_changed = 1;
2189 if (this->has_state_last_changed()) {
2190 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2191 1, HasBitSetters::state_last_changed(this), output);
2192 }
2193
2194 // .dmi.ComponentAdminState admin_state = 2;
2195 if (this->admin_state() != 0) {
2196 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2197 2, this->admin_state(), output);
2198 }
2199
2200 // .dmi.ComponentOperState oper_state = 3;
2201 if (this->oper_state() != 0) {
2202 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2203 3, this->oper_state(), output);
2204 }
2205
2206 // .dmi.ComponentUsageState usage_state = 4;
2207 if (this->usage_state() != 0) {
2208 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2209 4, this->usage_state(), output);
2210 }
2211
2212 // .dmi.ComponentAlarmState alarm_state = 5;
2213 if (this->alarm_state() != 0) {
2214 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2215 5, this->alarm_state(), output);
2216 }
2217
2218 // .dmi.ComponentStandbyState standby_state = 6;
2219 if (this->standby_state() != 0) {
2220 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2221 6, this->standby_state(), output);
2222 }
2223
2224 if (_internal_metadata_.have_unknown_fields()) {
2225 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2226 _internal_metadata_.unknown_fields(), output);
2227 }
2228 // @@protoc_insertion_point(serialize_end:dmi.ComponentState)
2229}
2230
2231::google::protobuf::uint8* ComponentState::InternalSerializeWithCachedSizesToArray(
2232 ::google::protobuf::uint8* target) const {
2233 // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentState)
2234 ::google::protobuf::uint32 cached_has_bits = 0;
2235 (void) cached_has_bits;
2236
2237 // .google.protobuf.Timestamp state_last_changed = 1;
2238 if (this->has_state_last_changed()) {
2239 target = ::google::protobuf::internal::WireFormatLite::
2240 InternalWriteMessageToArray(
2241 1, HasBitSetters::state_last_changed(this), target);
2242 }
2243
2244 // .dmi.ComponentAdminState admin_state = 2;
2245 if (this->admin_state() != 0) {
2246 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2247 2, this->admin_state(), target);
2248 }
2249
2250 // .dmi.ComponentOperState oper_state = 3;
2251 if (this->oper_state() != 0) {
2252 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2253 3, this->oper_state(), target);
2254 }
2255
2256 // .dmi.ComponentUsageState usage_state = 4;
2257 if (this->usage_state() != 0) {
2258 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2259 4, this->usage_state(), target);
2260 }
2261
2262 // .dmi.ComponentAlarmState alarm_state = 5;
2263 if (this->alarm_state() != 0) {
2264 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2265 5, this->alarm_state(), target);
2266 }
2267
2268 // .dmi.ComponentStandbyState standby_state = 6;
2269 if (this->standby_state() != 0) {
2270 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2271 6, this->standby_state(), target);
2272 }
2273
2274 if (_internal_metadata_.have_unknown_fields()) {
2275 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2276 _internal_metadata_.unknown_fields(), target);
2277 }
2278 // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentState)
2279 return target;
2280}
2281
2282size_t ComponentState::ByteSizeLong() const {
2283// @@protoc_insertion_point(message_byte_size_start:dmi.ComponentState)
2284 size_t total_size = 0;
2285
2286 if (_internal_metadata_.have_unknown_fields()) {
2287 total_size +=
2288 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2289 _internal_metadata_.unknown_fields());
2290 }
2291 ::google::protobuf::uint32 cached_has_bits = 0;
2292 // Prevent compiler warnings about cached_has_bits being unused
2293 (void) cached_has_bits;
2294
2295 // .google.protobuf.Timestamp state_last_changed = 1;
2296 if (this->has_state_last_changed()) {
2297 total_size += 1 +
2298 ::google::protobuf::internal::WireFormatLite::MessageSize(
2299 *state_last_changed_);
2300 }
2301
2302 // .dmi.ComponentAdminState admin_state = 2;
2303 if (this->admin_state() != 0) {
2304 total_size += 1 +
2305 ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state());
2306 }
2307
2308 // .dmi.ComponentOperState oper_state = 3;
2309 if (this->oper_state() != 0) {
2310 total_size += 1 +
2311 ::google::protobuf::internal::WireFormatLite::EnumSize(this->oper_state());
2312 }
2313
2314 // .dmi.ComponentUsageState usage_state = 4;
2315 if (this->usage_state() != 0) {
2316 total_size += 1 +
2317 ::google::protobuf::internal::WireFormatLite::EnumSize(this->usage_state());
2318 }
2319
2320 // .dmi.ComponentAlarmState alarm_state = 5;
2321 if (this->alarm_state() != 0) {
2322 total_size += 1 +
2323 ::google::protobuf::internal::WireFormatLite::EnumSize(this->alarm_state());
2324 }
2325
2326 // .dmi.ComponentStandbyState standby_state = 6;
2327 if (this->standby_state() != 0) {
2328 total_size += 1 +
2329 ::google::protobuf::internal::WireFormatLite::EnumSize(this->standby_state());
2330 }
2331
2332 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2333 SetCachedSize(cached_size);
2334 return total_size;
2335}
2336
2337void ComponentState::MergeFrom(const ::google::protobuf::Message& from) {
2338// @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentState)
2339 GOOGLE_DCHECK_NE(&from, this);
2340 const ComponentState* source =
2341 ::google::protobuf::DynamicCastToGenerated<ComponentState>(
2342 &from);
2343 if (source == nullptr) {
2344 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentState)
2345 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2346 } else {
2347 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentState)
2348 MergeFrom(*source);
2349 }
2350}
2351
2352void ComponentState::MergeFrom(const ComponentState& from) {
2353// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentState)
2354 GOOGLE_DCHECK_NE(&from, this);
2355 _internal_metadata_.MergeFrom(from._internal_metadata_);
2356 ::google::protobuf::uint32 cached_has_bits = 0;
2357 (void) cached_has_bits;
2358
2359 if (from.has_state_last_changed()) {
2360 mutable_state_last_changed()->::google::protobuf::Timestamp::MergeFrom(from.state_last_changed());
2361 }
2362 if (from.admin_state() != 0) {
2363 set_admin_state(from.admin_state());
2364 }
2365 if (from.oper_state() != 0) {
2366 set_oper_state(from.oper_state());
2367 }
2368 if (from.usage_state() != 0) {
2369 set_usage_state(from.usage_state());
2370 }
2371 if (from.alarm_state() != 0) {
2372 set_alarm_state(from.alarm_state());
2373 }
2374 if (from.standby_state() != 0) {
2375 set_standby_state(from.standby_state());
2376 }
2377}
2378
2379void ComponentState::CopyFrom(const ::google::protobuf::Message& from) {
2380// @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentState)
2381 if (&from == this) return;
2382 Clear();
2383 MergeFrom(from);
2384}
2385
2386void ComponentState::CopyFrom(const ComponentState& from) {
2387// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentState)
2388 if (&from == this) return;
2389 Clear();
2390 MergeFrom(from);
2391}
2392
2393bool ComponentState::IsInitialized() const {
2394 return true;
2395}
2396
2397void ComponentState::Swap(ComponentState* other) {
2398 if (other == this) return;
2399 InternalSwap(other);
2400}
2401void ComponentState::InternalSwap(ComponentState* other) {
2402 using std::swap;
2403 _internal_metadata_.Swap(&other->_internal_metadata_);
2404 swap(state_last_changed_, other->state_last_changed_);
2405 swap(admin_state_, other->admin_state_);
2406 swap(oper_state_, other->oper_state_);
2407 swap(usage_state_, other->usage_state_);
2408 swap(alarm_state_, other->alarm_state_);
2409 swap(standby_state_, other->standby_state_);
2410}
2411
2412::google::protobuf::Metadata ComponentState::GetMetadata() const {
2413 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
2414 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
2415}
2416
2417
2418// ===================================================================
2419
2420void ComponentSensorData::InitAsDefaultInstance() {
2421 ::dmi::_ComponentSensorData_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>(
2422 ::google::protobuf::Timestamp::internal_default_instance());
2423}
2424class ComponentSensorData::HasBitSetters {
2425 public:
2426 static const ::google::protobuf::Timestamp& timestamp(const ComponentSensorData* msg);
2427};
2428
2429const ::google::protobuf::Timestamp&
2430ComponentSensorData::HasBitSetters::timestamp(const ComponentSensorData* msg) {
2431 return *msg->timestamp_;
2432}
2433void ComponentSensorData::clear_timestamp() {
2434 if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) {
2435 delete timestamp_;
2436 }
2437 timestamp_ = nullptr;
2438}
2439#if !defined(_MSC_VER) || _MSC_VER >= 1900
2440const int ComponentSensorData::kValueFieldNumber;
2441const int ComponentSensorData::kTypeFieldNumber;
2442const int ComponentSensorData::kScaleFieldNumber;
2443const int ComponentSensorData::kPrecisionFieldNumber;
2444const int ComponentSensorData::kStatusFieldNumber;
2445const int ComponentSensorData::kUnitsDisplayFieldNumber;
2446const int ComponentSensorData::kTimestampFieldNumber;
2447const int ComponentSensorData::kValueUpdateRateFieldNumber;
2448const int ComponentSensorData::kDataTypeFieldNumber;
2449#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2450
2451ComponentSensorData::ComponentSensorData()
2452 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2453 SharedCtor();
2454 // @@protoc_insertion_point(constructor:dmi.ComponentSensorData)
2455}
2456ComponentSensorData::ComponentSensorData(const ComponentSensorData& from)
2457 : ::google::protobuf::Message(),
2458 _internal_metadata_(nullptr) {
2459 _internal_metadata_.MergeFrom(from._internal_metadata_);
2460 units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2461 if (from.units_display().size() > 0) {
2462 units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_);
2463 }
2464 data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2465 if (from.data_type().size() > 0) {
2466 data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
2467 }
2468 if (from.has_timestamp()) {
2469 timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_);
2470 } else {
2471 timestamp_ = nullptr;
2472 }
2473 ::memcpy(&value_, &from.value_,
2474 static_cast<size_t>(reinterpret_cast<char*>(&value_update_rate_) -
2475 reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_));
2476 // @@protoc_insertion_point(copy_constructor:dmi.ComponentSensorData)
2477}
2478
2479void ComponentSensorData::SharedCtor() {
2480 ::google::protobuf::internal::InitSCC(
2481 &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
2482 units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2483 data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2484 ::memset(&timestamp_, 0, static_cast<size_t>(
2485 reinterpret_cast<char*>(&value_update_rate_) -
2486 reinterpret_cast<char*>(&timestamp_)) + sizeof(value_update_rate_));
2487}
2488
2489ComponentSensorData::~ComponentSensorData() {
2490 // @@protoc_insertion_point(destructor:dmi.ComponentSensorData)
2491 SharedDtor();
2492}
2493
2494void ComponentSensorData::SharedDtor() {
2495 units_display_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2496 data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2497 if (this != internal_default_instance()) delete timestamp_;
2498}
2499
2500void ComponentSensorData::SetCachedSize(int size) const {
2501 _cached_size_.Set(size);
2502}
2503const ComponentSensorData& ComponentSensorData::default_instance() {
2504 ::google::protobuf::internal::InitSCC(&::scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
2505 return *internal_default_instance();
2506}
2507
2508
2509void ComponentSensorData::Clear() {
2510// @@protoc_insertion_point(message_clear_start:dmi.ComponentSensorData)
2511 ::google::protobuf::uint32 cached_has_bits = 0;
2512 // Prevent compiler warnings about cached_has_bits being unused
2513 (void) cached_has_bits;
2514
2515 units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2516 data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2517 if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) {
2518 delete timestamp_;
2519 }
2520 timestamp_ = nullptr;
2521 ::memset(&value_, 0, static_cast<size_t>(
2522 reinterpret_cast<char*>(&value_update_rate_) -
2523 reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_));
2524 _internal_metadata_.Clear();
2525}
2526
2527#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2528const char* ComponentSensorData::_InternalParse(const char* begin, const char* end, void* object,
2529 ::google::protobuf::internal::ParseContext* ctx) {
2530 auto msg = static_cast<ComponentSensorData*>(object);
2531 ::google::protobuf::int32 size; (void)size;
2532 int depth; (void)depth;
2533 ::google::protobuf::uint32 tag;
2534 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2535 auto ptr = begin;
2536 while (ptr < end) {
2537 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2538 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2539 switch (tag >> 3) {
2540 // int32 value = 1;
2541 case 1: {
2542 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2543 msg->set_value(::google::protobuf::internal::ReadVarint(&ptr));
2544 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2545 break;
2546 }
2547 // .dmi.DataValueType type = 2;
2548 case 2: {
2549 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2550 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2551 msg->set_type(static_cast<::dmi::DataValueType>(val));
2552 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2553 break;
2554 }
2555 // .dmi.ValueScale scale = 3;
2556 case 3: {
2557 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
2558 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2559 msg->set_scale(static_cast<::dmi::ValueScale>(val));
2560 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2561 break;
2562 }
2563 // int32 precision = 4;
2564 case 4: {
2565 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
2566 msg->set_precision(::google::protobuf::internal::ReadVarint(&ptr));
2567 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2568 break;
2569 }
2570 // .dmi.SensorStatus status = 5;
2571 case 5: {
2572 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
2573 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2574 msg->set_status(static_cast<::dmi::SensorStatus>(val));
2575 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2576 break;
2577 }
2578 // string units_display = 6;
2579 case 6: {
2580 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
2581 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2582 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2583 ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.units_display");
2584 object = msg->mutable_units_display();
2585 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2586 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2587 goto string_till_end;
2588 }
2589 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2590 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2591 ptr += size;
2592 break;
2593 }
2594 // .google.protobuf.Timestamp timestamp = 7;
2595 case 7: {
2596 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
2597 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2598 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2599 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
2600 object = msg->mutable_timestamp();
2601 if (size > end - ptr) goto len_delim_till_end;
2602 ptr += size;
2603 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2604 {parser_till_end, object}, ptr - size, ptr));
2605 break;
2606 }
2607 // uint32 value_update_rate = 8;
2608 case 8: {
2609 if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual;
2610 msg->set_value_update_rate(::google::protobuf::internal::ReadVarint(&ptr));
2611 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2612 break;
2613 }
2614 // string data_type = 9;
2615 case 9: {
2616 if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual;
2617 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2618 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2619 ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.data_type");
2620 object = msg->mutable_data_type();
2621 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2622 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2623 goto string_till_end;
2624 }
2625 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2626 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2627 ptr += size;
2628 break;
2629 }
2630 default: {
2631 handle_unusual:
2632 if ((tag & 7) == 4 || tag == 0) {
2633 ctx->EndGroup(tag);
2634 return ptr;
2635 }
2636 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2637 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2638 ptr = res.first;
2639 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2640 if (res.second) return ptr;
2641 }
2642 } // switch
2643 } // while
2644 return ptr;
2645string_till_end:
2646 static_cast<::std::string*>(object)->clear();
2647 static_cast<::std::string*>(object)->reserve(size);
2648 goto len_delim_till_end;
2649len_delim_till_end:
2650 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2651 {parser_till_end, object}, size);
2652}
2653#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2654bool ComponentSensorData::MergePartialFromCodedStream(
2655 ::google::protobuf::io::CodedInputStream* input) {
2656#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2657 ::google::protobuf::uint32 tag;
2658 // @@protoc_insertion_point(parse_start:dmi.ComponentSensorData)
2659 for (;;) {
2660 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2661 tag = p.first;
2662 if (!p.second) goto handle_unusual;
2663 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2664 // int32 value = 1;
2665 case 1: {
2666 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2667
2668 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2669 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2670 input, &value_)));
2671 } else {
2672 goto handle_unusual;
2673 }
2674 break;
2675 }
2676
2677 // .dmi.DataValueType type = 2;
2678 case 2: {
2679 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2680 int value = 0;
2681 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2682 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2683 input, &value)));
2684 set_type(static_cast< ::dmi::DataValueType >(value));
2685 } else {
2686 goto handle_unusual;
2687 }
2688 break;
2689 }
2690
2691 // .dmi.ValueScale scale = 3;
2692 case 3: {
2693 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
2694 int value = 0;
2695 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2696 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2697 input, &value)));
2698 set_scale(static_cast< ::dmi::ValueScale >(value));
2699 } else {
2700 goto handle_unusual;
2701 }
2702 break;
2703 }
2704
2705 // int32 precision = 4;
2706 case 4: {
2707 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
2708
2709 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2710 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2711 input, &precision_)));
2712 } else {
2713 goto handle_unusual;
2714 }
2715 break;
2716 }
2717
2718 // .dmi.SensorStatus status = 5;
2719 case 5: {
2720 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
2721 int value = 0;
2722 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2723 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2724 input, &value)));
2725 set_status(static_cast< ::dmi::SensorStatus >(value));
2726 } else {
2727 goto handle_unusual;
2728 }
2729 break;
2730 }
2731
2732 // string units_display = 6;
2733 case 6: {
2734 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
2735 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2736 input, this->mutable_units_display()));
2737 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2738 this->units_display().data(), static_cast<int>(this->units_display().length()),
2739 ::google::protobuf::internal::WireFormatLite::PARSE,
2740 "dmi.ComponentSensorData.units_display"));
2741 } else {
2742 goto handle_unusual;
2743 }
2744 break;
2745 }
2746
2747 // .google.protobuf.Timestamp timestamp = 7;
2748 case 7: {
2749 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
2750 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2751 input, mutable_timestamp()));
2752 } else {
2753 goto handle_unusual;
2754 }
2755 break;
2756 }
2757
2758 // uint32 value_update_rate = 8;
2759 case 8: {
2760 if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) {
2761
2762 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2763 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2764 input, &value_update_rate_)));
2765 } else {
2766 goto handle_unusual;
2767 }
2768 break;
2769 }
2770
2771 // string data_type = 9;
2772 case 9: {
2773 if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) {
2774 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2775 input, this->mutable_data_type()));
2776 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2777 this->data_type().data(), static_cast<int>(this->data_type().length()),
2778 ::google::protobuf::internal::WireFormatLite::PARSE,
2779 "dmi.ComponentSensorData.data_type"));
2780 } else {
2781 goto handle_unusual;
2782 }
2783 break;
2784 }
2785
2786 default: {
2787 handle_unusual:
2788 if (tag == 0) {
2789 goto success;
2790 }
2791 DO_(::google::protobuf::internal::WireFormat::SkipField(
2792 input, tag, _internal_metadata_.mutable_unknown_fields()));
2793 break;
2794 }
2795 }
2796 }
2797success:
2798 // @@protoc_insertion_point(parse_success:dmi.ComponentSensorData)
2799 return true;
2800failure:
2801 // @@protoc_insertion_point(parse_failure:dmi.ComponentSensorData)
2802 return false;
2803#undef DO_
2804}
2805#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2806
2807void ComponentSensorData::SerializeWithCachedSizes(
2808 ::google::protobuf::io::CodedOutputStream* output) const {
2809 // @@protoc_insertion_point(serialize_start:dmi.ComponentSensorData)
2810 ::google::protobuf::uint32 cached_has_bits = 0;
2811 (void) cached_has_bits;
2812
2813 // int32 value = 1;
2814 if (this->value() != 0) {
2815 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output);
2816 }
2817
2818 // .dmi.DataValueType type = 2;
2819 if (this->type() != 0) {
2820 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2821 2, this->type(), output);
2822 }
2823
2824 // .dmi.ValueScale scale = 3;
2825 if (this->scale() != 0) {
2826 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2827 3, this->scale(), output);
2828 }
2829
2830 // int32 precision = 4;
2831 if (this->precision() != 0) {
2832 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->precision(), output);
2833 }
2834
2835 // .dmi.SensorStatus status = 5;
2836 if (this->status() != 0) {
2837 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2838 5, this->status(), output);
2839 }
2840
2841 // string units_display = 6;
2842 if (this->units_display().size() > 0) {
2843 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2844 this->units_display().data(), static_cast<int>(this->units_display().length()),
2845 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2846 "dmi.ComponentSensorData.units_display");
2847 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2848 6, this->units_display(), output);
2849 }
2850
2851 // .google.protobuf.Timestamp timestamp = 7;
2852 if (this->has_timestamp()) {
2853 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2854 7, HasBitSetters::timestamp(this), output);
2855 }
2856
2857 // uint32 value_update_rate = 8;
2858 if (this->value_update_rate() != 0) {
2859 ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->value_update_rate(), output);
2860 }
2861
2862 // string data_type = 9;
2863 if (this->data_type().size() > 0) {
2864 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2865 this->data_type().data(), static_cast<int>(this->data_type().length()),
2866 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2867 "dmi.ComponentSensorData.data_type");
2868 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2869 9, this->data_type(), output);
2870 }
2871
2872 if (_internal_metadata_.have_unknown_fields()) {
2873 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2874 _internal_metadata_.unknown_fields(), output);
2875 }
2876 // @@protoc_insertion_point(serialize_end:dmi.ComponentSensorData)
2877}
2878
2879::google::protobuf::uint8* ComponentSensorData::InternalSerializeWithCachedSizesToArray(
2880 ::google::protobuf::uint8* target) const {
2881 // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentSensorData)
2882 ::google::protobuf::uint32 cached_has_bits = 0;
2883 (void) cached_has_bits;
2884
2885 // int32 value = 1;
2886 if (this->value() != 0) {
2887 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target);
2888 }
2889
2890 // .dmi.DataValueType type = 2;
2891 if (this->type() != 0) {
2892 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2893 2, this->type(), target);
2894 }
2895
2896 // .dmi.ValueScale scale = 3;
2897 if (this->scale() != 0) {
2898 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2899 3, this->scale(), target);
2900 }
2901
2902 // int32 precision = 4;
2903 if (this->precision() != 0) {
2904 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->precision(), target);
2905 }
2906
2907 // .dmi.SensorStatus status = 5;
2908 if (this->status() != 0) {
2909 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2910 5, this->status(), target);
2911 }
2912
2913 // string units_display = 6;
2914 if (this->units_display().size() > 0) {
2915 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2916 this->units_display().data(), static_cast<int>(this->units_display().length()),
2917 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2918 "dmi.ComponentSensorData.units_display");
2919 target =
2920 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2921 6, this->units_display(), target);
2922 }
2923
2924 // .google.protobuf.Timestamp timestamp = 7;
2925 if (this->has_timestamp()) {
2926 target = ::google::protobuf::internal::WireFormatLite::
2927 InternalWriteMessageToArray(
2928 7, HasBitSetters::timestamp(this), target);
2929 }
2930
2931 // uint32 value_update_rate = 8;
2932 if (this->value_update_rate() != 0) {
2933 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->value_update_rate(), target);
2934 }
2935
2936 // string data_type = 9;
2937 if (this->data_type().size() > 0) {
2938 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2939 this->data_type().data(), static_cast<int>(this->data_type().length()),
2940 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
2941 "dmi.ComponentSensorData.data_type");
2942 target =
2943 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2944 9, this->data_type(), target);
2945 }
2946
2947 if (_internal_metadata_.have_unknown_fields()) {
2948 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2949 _internal_metadata_.unknown_fields(), target);
2950 }
2951 // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentSensorData)
2952 return target;
2953}
2954
2955size_t ComponentSensorData::ByteSizeLong() const {
2956// @@protoc_insertion_point(message_byte_size_start:dmi.ComponentSensorData)
2957 size_t total_size = 0;
2958
2959 if (_internal_metadata_.have_unknown_fields()) {
2960 total_size +=
2961 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2962 _internal_metadata_.unknown_fields());
2963 }
2964 ::google::protobuf::uint32 cached_has_bits = 0;
2965 // Prevent compiler warnings about cached_has_bits being unused
2966 (void) cached_has_bits;
2967
2968 // string units_display = 6;
2969 if (this->units_display().size() > 0) {
2970 total_size += 1 +
2971 ::google::protobuf::internal::WireFormatLite::StringSize(
2972 this->units_display());
2973 }
2974
2975 // string data_type = 9;
2976 if (this->data_type().size() > 0) {
2977 total_size += 1 +
2978 ::google::protobuf::internal::WireFormatLite::StringSize(
2979 this->data_type());
2980 }
2981
2982 // .google.protobuf.Timestamp timestamp = 7;
2983 if (this->has_timestamp()) {
2984 total_size += 1 +
2985 ::google::protobuf::internal::WireFormatLite::MessageSize(
2986 *timestamp_);
2987 }
2988
2989 // int32 value = 1;
2990 if (this->value() != 0) {
2991 total_size += 1 +
2992 ::google::protobuf::internal::WireFormatLite::Int32Size(
2993 this->value());
2994 }
2995
2996 // .dmi.DataValueType type = 2;
2997 if (this->type() != 0) {
2998 total_size += 1 +
2999 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
3000 }
3001
3002 // .dmi.ValueScale scale = 3;
3003 if (this->scale() != 0) {
3004 total_size += 1 +
3005 ::google::protobuf::internal::WireFormatLite::EnumSize(this->scale());
3006 }
3007
3008 // int32 precision = 4;
3009 if (this->precision() != 0) {
3010 total_size += 1 +
3011 ::google::protobuf::internal::WireFormatLite::Int32Size(
3012 this->precision());
3013 }
3014
3015 // .dmi.SensorStatus status = 5;
3016 if (this->status() != 0) {
3017 total_size += 1 +
3018 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3019 }
3020
3021 // uint32 value_update_rate = 8;
3022 if (this->value_update_rate() != 0) {
3023 total_size += 1 +
3024 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3025 this->value_update_rate());
3026 }
3027
3028 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3029 SetCachedSize(cached_size);
3030 return total_size;
3031}
3032
3033void ComponentSensorData::MergeFrom(const ::google::protobuf::Message& from) {
3034// @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentSensorData)
3035 GOOGLE_DCHECK_NE(&from, this);
3036 const ComponentSensorData* source =
3037 ::google::protobuf::DynamicCastToGenerated<ComponentSensorData>(
3038 &from);
3039 if (source == nullptr) {
3040 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentSensorData)
3041 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3042 } else {
3043 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentSensorData)
3044 MergeFrom(*source);
3045 }
3046}
3047
3048void ComponentSensorData::MergeFrom(const ComponentSensorData& from) {
3049// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentSensorData)
3050 GOOGLE_DCHECK_NE(&from, this);
3051 _internal_metadata_.MergeFrom(from._internal_metadata_);
3052 ::google::protobuf::uint32 cached_has_bits = 0;
3053 (void) cached_has_bits;
3054
3055 if (from.units_display().size() > 0) {
3056
3057 units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_);
3058 }
3059 if (from.data_type().size() > 0) {
3060
3061 data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
3062 }
3063 if (from.has_timestamp()) {
3064 mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp());
3065 }
3066 if (from.value() != 0) {
3067 set_value(from.value());
3068 }
3069 if (from.type() != 0) {
3070 set_type(from.type());
3071 }
3072 if (from.scale() != 0) {
3073 set_scale(from.scale());
3074 }
3075 if (from.precision() != 0) {
3076 set_precision(from.precision());
3077 }
3078 if (from.status() != 0) {
3079 set_status(from.status());
3080 }
3081 if (from.value_update_rate() != 0) {
3082 set_value_update_rate(from.value_update_rate());
3083 }
3084}
3085
3086void ComponentSensorData::CopyFrom(const ::google::protobuf::Message& from) {
3087// @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentSensorData)
3088 if (&from == this) return;
3089 Clear();
3090 MergeFrom(from);
3091}
3092
3093void ComponentSensorData::CopyFrom(const ComponentSensorData& from) {
3094// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentSensorData)
3095 if (&from == this) return;
3096 Clear();
3097 MergeFrom(from);
3098}
3099
3100bool ComponentSensorData::IsInitialized() const {
3101 return true;
3102}
3103
3104void ComponentSensorData::Swap(ComponentSensorData* other) {
3105 if (other == this) return;
3106 InternalSwap(other);
3107}
3108void ComponentSensorData::InternalSwap(ComponentSensorData* other) {
3109 using std::swap;
3110 _internal_metadata_.Swap(&other->_internal_metadata_);
3111 units_display_.Swap(&other->units_display_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3112 GetArenaNoVirtual());
3113 data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3114 GetArenaNoVirtual());
3115 swap(timestamp_, other->timestamp_);
3116 swap(value_, other->value_);
3117 swap(type_, other->type_);
3118 swap(scale_, other->scale_);
3119 swap(precision_, other->precision_);
3120 swap(status_, other->status_);
3121 swap(value_update_rate_, other->value_update_rate_);
3122}
3123
3124::google::protobuf::Metadata ComponentSensorData::GetMetadata() const {
3125 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
3126 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
3127}
3128
3129
3130// ===================================================================
3131
3132void PortComponentAttributes::InitAsDefaultInstance() {
3133}
3134class PortComponentAttributes::HasBitSetters {
3135 public:
3136};
3137
3138#if !defined(_MSC_VER) || _MSC_VER >= 1900
3139const int PortComponentAttributes::kConnectorTypeFieldNumber;
3140const int PortComponentAttributes::kSpeedFieldNumber;
3141const int PortComponentAttributes::kProtocolFieldNumber;
3142const int PortComponentAttributes::kPhysicalLabelFieldNumber;
3143#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3144
3145PortComponentAttributes::PortComponentAttributes()
3146 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3147 SharedCtor();
3148 // @@protoc_insertion_point(constructor:dmi.PortComponentAttributes)
3149}
3150PortComponentAttributes::PortComponentAttributes(const PortComponentAttributes& from)
3151 : ::google::protobuf::Message(),
3152 _internal_metadata_(nullptr) {
3153 _internal_metadata_.MergeFrom(from._internal_metadata_);
3154 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3155 if (from.physical_label().size() > 0) {
3156 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3157 }
3158 ::memcpy(&connector_type_, &from.connector_type_,
3159 static_cast<size_t>(reinterpret_cast<char*>(&protocol_) -
3160 reinterpret_cast<char*>(&connector_type_)) + sizeof(protocol_));
3161 // @@protoc_insertion_point(copy_constructor:dmi.PortComponentAttributes)
3162}
3163
3164void PortComponentAttributes::SharedCtor() {
3165 ::google::protobuf::internal::InitSCC(
3166 &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
3167 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3168 ::memset(&connector_type_, 0, static_cast<size_t>(
3169 reinterpret_cast<char*>(&protocol_) -
3170 reinterpret_cast<char*>(&connector_type_)) + sizeof(protocol_));
3171}
3172
3173PortComponentAttributes::~PortComponentAttributes() {
3174 // @@protoc_insertion_point(destructor:dmi.PortComponentAttributes)
3175 SharedDtor();
3176}
3177
3178void PortComponentAttributes::SharedDtor() {
3179 physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3180}
3181
3182void PortComponentAttributes::SetCachedSize(int size) const {
3183 _cached_size_.Set(size);
3184}
3185const PortComponentAttributes& PortComponentAttributes::default_instance() {
3186 ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
3187 return *internal_default_instance();
3188}
3189
3190
3191void PortComponentAttributes::Clear() {
3192// @@protoc_insertion_point(message_clear_start:dmi.PortComponentAttributes)
3193 ::google::protobuf::uint32 cached_has_bits = 0;
3194 // Prevent compiler warnings about cached_has_bits being unused
3195 (void) cached_has_bits;
3196
3197 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3198 ::memset(&connector_type_, 0, static_cast<size_t>(
3199 reinterpret_cast<char*>(&protocol_) -
3200 reinterpret_cast<char*>(&connector_type_)) + sizeof(protocol_));
3201 _internal_metadata_.Clear();
3202}
3203
3204#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3205const char* PortComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
3206 ::google::protobuf::internal::ParseContext* ctx) {
3207 auto msg = static_cast<PortComponentAttributes*>(object);
3208 ::google::protobuf::int32 size; (void)size;
3209 int depth; (void)depth;
3210 ::google::protobuf::uint32 tag;
3211 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3212 auto ptr = begin;
3213 while (ptr < end) {
3214 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3215 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3216 switch (tag >> 3) {
3217 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3218 case 1: {
3219 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3220 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3221 msg->set_connector_type(static_cast<::dmi::PortComponentAttributes_ConnectorType>(val));
3222 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3223 break;
3224 }
3225 // .dmi.PortComponentAttributes.Speed speed = 2;
3226 case 2: {
3227 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3228 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3229 msg->set_speed(static_cast<::dmi::PortComponentAttributes_Speed>(val));
3230 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3231 break;
3232 }
3233 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3234 case 3: {
3235 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
3236 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3237 msg->set_protocol(static_cast<::dmi::PortComponentAttributes_Protocol>(val));
3238 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3239 break;
3240 }
3241 // string physical_label = 4;
3242 case 4: {
3243 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3244 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3245 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3246 ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.physical_label");
3247 object = msg->mutable_physical_label();
3248 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3249 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3250 goto string_till_end;
3251 }
3252 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3253 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3254 ptr += size;
3255 break;
3256 }
3257 default: {
3258 handle_unusual:
3259 if ((tag & 7) == 4 || tag == 0) {
3260 ctx->EndGroup(tag);
3261 return ptr;
3262 }
3263 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3264 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3265 ptr = res.first;
3266 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3267 if (res.second) return ptr;
3268 }
3269 } // switch
3270 } // while
3271 return ptr;
3272string_till_end:
3273 static_cast<::std::string*>(object)->clear();
3274 static_cast<::std::string*>(object)->reserve(size);
3275 goto len_delim_till_end;
3276len_delim_till_end:
3277 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3278 {parser_till_end, object}, size);
3279}
3280#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3281bool PortComponentAttributes::MergePartialFromCodedStream(
3282 ::google::protobuf::io::CodedInputStream* input) {
3283#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3284 ::google::protobuf::uint32 tag;
3285 // @@protoc_insertion_point(parse_start:dmi.PortComponentAttributes)
3286 for (;;) {
3287 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3288 tag = p.first;
3289 if (!p.second) goto handle_unusual;
3290 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3291 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3292 case 1: {
3293 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3294 int value = 0;
3295 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3296 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3297 input, &value)));
3298 set_connector_type(static_cast< ::dmi::PortComponentAttributes_ConnectorType >(value));
3299 } else {
3300 goto handle_unusual;
3301 }
3302 break;
3303 }
3304
3305 // .dmi.PortComponentAttributes.Speed speed = 2;
3306 case 2: {
3307 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3308 int value = 0;
3309 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3310 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3311 input, &value)));
3312 set_speed(static_cast< ::dmi::PortComponentAttributes_Speed >(value));
3313 } else {
3314 goto handle_unusual;
3315 }
3316 break;
3317 }
3318
3319 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3320 case 3: {
3321 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
3322 int value = 0;
3323 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3324 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3325 input, &value)));
3326 set_protocol(static_cast< ::dmi::PortComponentAttributes_Protocol >(value));
3327 } else {
3328 goto handle_unusual;
3329 }
3330 break;
3331 }
3332
3333 // string physical_label = 4;
3334 case 4: {
3335 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3336 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3337 input, this->mutable_physical_label()));
3338 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3339 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3340 ::google::protobuf::internal::WireFormatLite::PARSE,
3341 "dmi.PortComponentAttributes.physical_label"));
3342 } else {
3343 goto handle_unusual;
3344 }
3345 break;
3346 }
3347
3348 default: {
3349 handle_unusual:
3350 if (tag == 0) {
3351 goto success;
3352 }
3353 DO_(::google::protobuf::internal::WireFormat::SkipField(
3354 input, tag, _internal_metadata_.mutable_unknown_fields()));
3355 break;
3356 }
3357 }
3358 }
3359success:
3360 // @@protoc_insertion_point(parse_success:dmi.PortComponentAttributes)
3361 return true;
3362failure:
3363 // @@protoc_insertion_point(parse_failure:dmi.PortComponentAttributes)
3364 return false;
3365#undef DO_
3366}
3367#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3368
3369void PortComponentAttributes::SerializeWithCachedSizes(
3370 ::google::protobuf::io::CodedOutputStream* output) const {
3371 // @@protoc_insertion_point(serialize_start:dmi.PortComponentAttributes)
3372 ::google::protobuf::uint32 cached_has_bits = 0;
3373 (void) cached_has_bits;
3374
3375 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3376 if (this->connector_type() != 0) {
3377 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3378 1, this->connector_type(), output);
3379 }
3380
3381 // .dmi.PortComponentAttributes.Speed speed = 2;
3382 if (this->speed() != 0) {
3383 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3384 2, this->speed(), output);
3385 }
3386
3387 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3388 if (this->protocol() != 0) {
3389 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3390 3, this->protocol(), output);
3391 }
3392
3393 // string physical_label = 4;
3394 if (this->physical_label().size() > 0) {
3395 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3396 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3397 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3398 "dmi.PortComponentAttributes.physical_label");
3399 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3400 4, this->physical_label(), output);
3401 }
3402
3403 if (_internal_metadata_.have_unknown_fields()) {
3404 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3405 _internal_metadata_.unknown_fields(), output);
3406 }
3407 // @@protoc_insertion_point(serialize_end:dmi.PortComponentAttributes)
3408}
3409
3410::google::protobuf::uint8* PortComponentAttributes::InternalSerializeWithCachedSizesToArray(
3411 ::google::protobuf::uint8* target) const {
3412 // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentAttributes)
3413 ::google::protobuf::uint32 cached_has_bits = 0;
3414 (void) cached_has_bits;
3415
3416 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3417 if (this->connector_type() != 0) {
3418 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3419 1, this->connector_type(), target);
3420 }
3421
3422 // .dmi.PortComponentAttributes.Speed speed = 2;
3423 if (this->speed() != 0) {
3424 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3425 2, this->speed(), target);
3426 }
3427
3428 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3429 if (this->protocol() != 0) {
3430 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3431 3, this->protocol(), target);
3432 }
3433
3434 // string physical_label = 4;
3435 if (this->physical_label().size() > 0) {
3436 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3437 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3438 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3439 "dmi.PortComponentAttributes.physical_label");
3440 target =
3441 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3442 4, this->physical_label(), target);
3443 }
3444
3445 if (_internal_metadata_.have_unknown_fields()) {
3446 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3447 _internal_metadata_.unknown_fields(), target);
3448 }
3449 // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentAttributes)
3450 return target;
3451}
3452
3453size_t PortComponentAttributes::ByteSizeLong() const {
3454// @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentAttributes)
3455 size_t total_size = 0;
3456
3457 if (_internal_metadata_.have_unknown_fields()) {
3458 total_size +=
3459 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3460 _internal_metadata_.unknown_fields());
3461 }
3462 ::google::protobuf::uint32 cached_has_bits = 0;
3463 // Prevent compiler warnings about cached_has_bits being unused
3464 (void) cached_has_bits;
3465
3466 // string physical_label = 4;
3467 if (this->physical_label().size() > 0) {
3468 total_size += 1 +
3469 ::google::protobuf::internal::WireFormatLite::StringSize(
3470 this->physical_label());
3471 }
3472
3473 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3474 if (this->connector_type() != 0) {
3475 total_size += 1 +
3476 ::google::protobuf::internal::WireFormatLite::EnumSize(this->connector_type());
3477 }
3478
3479 // .dmi.PortComponentAttributes.Speed speed = 2;
3480 if (this->speed() != 0) {
3481 total_size += 1 +
3482 ::google::protobuf::internal::WireFormatLite::EnumSize(this->speed());
3483 }
3484
3485 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3486 if (this->protocol() != 0) {
3487 total_size += 1 +
3488 ::google::protobuf::internal::WireFormatLite::EnumSize(this->protocol());
3489 }
3490
3491 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3492 SetCachedSize(cached_size);
3493 return total_size;
3494}
3495
3496void PortComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
3497// @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentAttributes)
3498 GOOGLE_DCHECK_NE(&from, this);
3499 const PortComponentAttributes* source =
3500 ::google::protobuf::DynamicCastToGenerated<PortComponentAttributes>(
3501 &from);
3502 if (source == nullptr) {
3503 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentAttributes)
3504 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3505 } else {
3506 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentAttributes)
3507 MergeFrom(*source);
3508 }
3509}
3510
3511void PortComponentAttributes::MergeFrom(const PortComponentAttributes& from) {
3512// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentAttributes)
3513 GOOGLE_DCHECK_NE(&from, this);
3514 _internal_metadata_.MergeFrom(from._internal_metadata_);
3515 ::google::protobuf::uint32 cached_has_bits = 0;
3516 (void) cached_has_bits;
3517
3518 if (from.physical_label().size() > 0) {
3519
3520 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3521 }
3522 if (from.connector_type() != 0) {
3523 set_connector_type(from.connector_type());
3524 }
3525 if (from.speed() != 0) {
3526 set_speed(from.speed());
3527 }
3528 if (from.protocol() != 0) {
3529 set_protocol(from.protocol());
3530 }
3531}
3532
3533void PortComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
3534// @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentAttributes)
3535 if (&from == this) return;
3536 Clear();
3537 MergeFrom(from);
3538}
3539
3540void PortComponentAttributes::CopyFrom(const PortComponentAttributes& from) {
3541// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentAttributes)
3542 if (&from == this) return;
3543 Clear();
3544 MergeFrom(from);
3545}
3546
3547bool PortComponentAttributes::IsInitialized() const {
3548 return true;
3549}
3550
3551void PortComponentAttributes::Swap(PortComponentAttributes* other) {
3552 if (other == this) return;
3553 InternalSwap(other);
3554}
3555void PortComponentAttributes::InternalSwap(PortComponentAttributes* other) {
3556 using std::swap;
3557 _internal_metadata_.Swap(&other->_internal_metadata_);
3558 physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3559 GetArenaNoVirtual());
3560 swap(connector_type_, other->connector_type_);
3561 swap(speed_, other->speed_);
3562 swap(protocol_, other->protocol_);
3563}
3564
3565::google::protobuf::Metadata PortComponentAttributes::GetMetadata() const {
3566 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
3567 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
3568}
3569
3570
3571// ===================================================================
3572
3573void ContainerComponentAttributes::InitAsDefaultInstance() {
3574}
3575class ContainerComponentAttributes::HasBitSetters {
3576 public:
3577};
3578
3579#if !defined(_MSC_VER) || _MSC_VER >= 1900
3580const int ContainerComponentAttributes::kPhysicalLabelFieldNumber;
3581#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3582
3583ContainerComponentAttributes::ContainerComponentAttributes()
3584 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3585 SharedCtor();
3586 // @@protoc_insertion_point(constructor:dmi.ContainerComponentAttributes)
3587}
3588ContainerComponentAttributes::ContainerComponentAttributes(const ContainerComponentAttributes& from)
3589 : ::google::protobuf::Message(),
3590 _internal_metadata_(nullptr) {
3591 _internal_metadata_.MergeFrom(from._internal_metadata_);
3592 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3593 if (from.physical_label().size() > 0) {
3594 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3595 }
3596 // @@protoc_insertion_point(copy_constructor:dmi.ContainerComponentAttributes)
3597}
3598
3599void ContainerComponentAttributes::SharedCtor() {
3600 ::google::protobuf::internal::InitSCC(
3601 &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
3602 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3603}
3604
3605ContainerComponentAttributes::~ContainerComponentAttributes() {
3606 // @@protoc_insertion_point(destructor:dmi.ContainerComponentAttributes)
3607 SharedDtor();
3608}
3609
3610void ContainerComponentAttributes::SharedDtor() {
3611 physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3612}
3613
3614void ContainerComponentAttributes::SetCachedSize(int size) const {
3615 _cached_size_.Set(size);
3616}
3617const ContainerComponentAttributes& ContainerComponentAttributes::default_instance() {
3618 ::google::protobuf::internal::InitSCC(&::scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
3619 return *internal_default_instance();
3620}
3621
3622
3623void ContainerComponentAttributes::Clear() {
3624// @@protoc_insertion_point(message_clear_start:dmi.ContainerComponentAttributes)
3625 ::google::protobuf::uint32 cached_has_bits = 0;
3626 // Prevent compiler warnings about cached_has_bits being unused
3627 (void) cached_has_bits;
3628
3629 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3630 _internal_metadata_.Clear();
3631}
3632
3633#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3634const char* ContainerComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
3635 ::google::protobuf::internal::ParseContext* ctx) {
3636 auto msg = static_cast<ContainerComponentAttributes*>(object);
3637 ::google::protobuf::int32 size; (void)size;
3638 int depth; (void)depth;
3639 ::google::protobuf::uint32 tag;
3640 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3641 auto ptr = begin;
3642 while (ptr < end) {
3643 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3644 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3645 switch (tag >> 3) {
3646 // string physical_label = 1;
3647 case 1: {
3648 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
3649 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3650 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3651 ctx->extra_parse_data().SetFieldName("dmi.ContainerComponentAttributes.physical_label");
3652 object = msg->mutable_physical_label();
3653 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3654 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3655 goto string_till_end;
3656 }
3657 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3658 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3659 ptr += size;
3660 break;
3661 }
3662 default: {
3663 handle_unusual:
3664 if ((tag & 7) == 4 || tag == 0) {
3665 ctx->EndGroup(tag);
3666 return ptr;
3667 }
3668 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3669 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3670 ptr = res.first;
3671 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3672 if (res.second) return ptr;
3673 }
3674 } // switch
3675 } // while
3676 return ptr;
3677string_till_end:
3678 static_cast<::std::string*>(object)->clear();
3679 static_cast<::std::string*>(object)->reserve(size);
3680 goto len_delim_till_end;
3681len_delim_till_end:
3682 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3683 {parser_till_end, object}, size);
3684}
3685#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3686bool ContainerComponentAttributes::MergePartialFromCodedStream(
3687 ::google::protobuf::io::CodedInputStream* input) {
3688#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3689 ::google::protobuf::uint32 tag;
3690 // @@protoc_insertion_point(parse_start:dmi.ContainerComponentAttributes)
3691 for (;;) {
3692 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3693 tag = p.first;
3694 if (!p.second) goto handle_unusual;
3695 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3696 // string physical_label = 1;
3697 case 1: {
3698 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
3699 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3700 input, this->mutable_physical_label()));
3701 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3702 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3703 ::google::protobuf::internal::WireFormatLite::PARSE,
3704 "dmi.ContainerComponentAttributes.physical_label"));
3705 } else {
3706 goto handle_unusual;
3707 }
3708 break;
3709 }
3710
3711 default: {
3712 handle_unusual:
3713 if (tag == 0) {
3714 goto success;
3715 }
3716 DO_(::google::protobuf::internal::WireFormat::SkipField(
3717 input, tag, _internal_metadata_.mutable_unknown_fields()));
3718 break;
3719 }
3720 }
3721 }
3722success:
3723 // @@protoc_insertion_point(parse_success:dmi.ContainerComponentAttributes)
3724 return true;
3725failure:
3726 // @@protoc_insertion_point(parse_failure:dmi.ContainerComponentAttributes)
3727 return false;
3728#undef DO_
3729}
3730#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3731
3732void ContainerComponentAttributes::SerializeWithCachedSizes(
3733 ::google::protobuf::io::CodedOutputStream* output) const {
3734 // @@protoc_insertion_point(serialize_start:dmi.ContainerComponentAttributes)
3735 ::google::protobuf::uint32 cached_has_bits = 0;
3736 (void) cached_has_bits;
3737
3738 // string physical_label = 1;
3739 if (this->physical_label().size() > 0) {
3740 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3741 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3742 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3743 "dmi.ContainerComponentAttributes.physical_label");
3744 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3745 1, this->physical_label(), output);
3746 }
3747
3748 if (_internal_metadata_.have_unknown_fields()) {
3749 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3750 _internal_metadata_.unknown_fields(), output);
3751 }
3752 // @@protoc_insertion_point(serialize_end:dmi.ContainerComponentAttributes)
3753}
3754
3755::google::protobuf::uint8* ContainerComponentAttributes::InternalSerializeWithCachedSizesToArray(
3756 ::google::protobuf::uint8* target) const {
3757 // @@protoc_insertion_point(serialize_to_array_start:dmi.ContainerComponentAttributes)
3758 ::google::protobuf::uint32 cached_has_bits = 0;
3759 (void) cached_has_bits;
3760
3761 // string physical_label = 1;
3762 if (this->physical_label().size() > 0) {
3763 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3764 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3765 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3766 "dmi.ContainerComponentAttributes.physical_label");
3767 target =
3768 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3769 1, this->physical_label(), target);
3770 }
3771
3772 if (_internal_metadata_.have_unknown_fields()) {
3773 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3774 _internal_metadata_.unknown_fields(), target);
3775 }
3776 // @@protoc_insertion_point(serialize_to_array_end:dmi.ContainerComponentAttributes)
3777 return target;
3778}
3779
3780size_t ContainerComponentAttributes::ByteSizeLong() const {
3781// @@protoc_insertion_point(message_byte_size_start:dmi.ContainerComponentAttributes)
3782 size_t total_size = 0;
3783
3784 if (_internal_metadata_.have_unknown_fields()) {
3785 total_size +=
3786 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3787 _internal_metadata_.unknown_fields());
3788 }
3789 ::google::protobuf::uint32 cached_has_bits = 0;
3790 // Prevent compiler warnings about cached_has_bits being unused
3791 (void) cached_has_bits;
3792
3793 // string physical_label = 1;
3794 if (this->physical_label().size() > 0) {
3795 total_size += 1 +
3796 ::google::protobuf::internal::WireFormatLite::StringSize(
3797 this->physical_label());
3798 }
3799
3800 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3801 SetCachedSize(cached_size);
3802 return total_size;
3803}
3804
3805void ContainerComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
3806// @@protoc_insertion_point(generalized_merge_from_start:dmi.ContainerComponentAttributes)
3807 GOOGLE_DCHECK_NE(&from, this);
3808 const ContainerComponentAttributes* source =
3809 ::google::protobuf::DynamicCastToGenerated<ContainerComponentAttributes>(
3810 &from);
3811 if (source == nullptr) {
3812 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ContainerComponentAttributes)
3813 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3814 } else {
3815 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ContainerComponentAttributes)
3816 MergeFrom(*source);
3817 }
3818}
3819
3820void ContainerComponentAttributes::MergeFrom(const ContainerComponentAttributes& from) {
3821// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ContainerComponentAttributes)
3822 GOOGLE_DCHECK_NE(&from, this);
3823 _internal_metadata_.MergeFrom(from._internal_metadata_);
3824 ::google::protobuf::uint32 cached_has_bits = 0;
3825 (void) cached_has_bits;
3826
3827 if (from.physical_label().size() > 0) {
3828
3829 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3830 }
3831}
3832
3833void ContainerComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
3834// @@protoc_insertion_point(generalized_copy_from_start:dmi.ContainerComponentAttributes)
3835 if (&from == this) return;
3836 Clear();
3837 MergeFrom(from);
3838}
3839
3840void ContainerComponentAttributes::CopyFrom(const ContainerComponentAttributes& from) {
3841// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ContainerComponentAttributes)
3842 if (&from == this) return;
3843 Clear();
3844 MergeFrom(from);
3845}
3846
3847bool ContainerComponentAttributes::IsInitialized() const {
3848 return true;
3849}
3850
3851void ContainerComponentAttributes::Swap(ContainerComponentAttributes* other) {
3852 if (other == this) return;
3853 InternalSwap(other);
3854}
3855void ContainerComponentAttributes::InternalSwap(ContainerComponentAttributes* other) {
3856 using std::swap;
3857 _internal_metadata_.Swap(&other->_internal_metadata_);
3858 physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3859 GetArenaNoVirtual());
3860}
3861
3862::google::protobuf::Metadata ContainerComponentAttributes::GetMetadata() const {
3863 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
3864 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
3865}
3866
3867
3868// ===================================================================
3869
3870void PsuComponentAttributes::InitAsDefaultInstance() {
3871}
3872class PsuComponentAttributes::HasBitSetters {
3873 public:
3874};
3875
3876#if !defined(_MSC_VER) || _MSC_VER >= 1900
3877const int PsuComponentAttributes::kSupportedVoltageFieldNumber;
3878#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3879
3880PsuComponentAttributes::PsuComponentAttributes()
3881 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3882 SharedCtor();
3883 // @@protoc_insertion_point(constructor:dmi.PsuComponentAttributes)
3884}
3885PsuComponentAttributes::PsuComponentAttributes(const PsuComponentAttributes& from)
3886 : ::google::protobuf::Message(),
3887 _internal_metadata_(nullptr) {
3888 _internal_metadata_.MergeFrom(from._internal_metadata_);
3889 supported_voltage_ = from.supported_voltage_;
3890 // @@protoc_insertion_point(copy_constructor:dmi.PsuComponentAttributes)
3891}
3892
3893void PsuComponentAttributes::SharedCtor() {
3894 supported_voltage_ = 0;
3895}
3896
3897PsuComponentAttributes::~PsuComponentAttributes() {
3898 // @@protoc_insertion_point(destructor:dmi.PsuComponentAttributes)
3899 SharedDtor();
3900}
3901
3902void PsuComponentAttributes::SharedDtor() {
3903}
3904
3905void PsuComponentAttributes::SetCachedSize(int size) const {
3906 _cached_size_.Set(size);
3907}
3908const PsuComponentAttributes& PsuComponentAttributes::default_instance() {
3909 ::google::protobuf::internal::InitSCC(&::scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base);
3910 return *internal_default_instance();
3911}
3912
3913
3914void PsuComponentAttributes::Clear() {
3915// @@protoc_insertion_point(message_clear_start:dmi.PsuComponentAttributes)
3916 ::google::protobuf::uint32 cached_has_bits = 0;
3917 // Prevent compiler warnings about cached_has_bits being unused
3918 (void) cached_has_bits;
3919
3920 supported_voltage_ = 0;
3921 _internal_metadata_.Clear();
3922}
3923
3924#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3925const char* PsuComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
3926 ::google::protobuf::internal::ParseContext* ctx) {
3927 auto msg = static_cast<PsuComponentAttributes*>(object);
3928 ::google::protobuf::int32 size; (void)size;
3929 int depth; (void)depth;
3930 ::google::protobuf::uint32 tag;
3931 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3932 auto ptr = begin;
3933 while (ptr < end) {
3934 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3935 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3936 switch (tag >> 3) {
3937 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
3938 case 1: {
3939 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3940 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3941 msg->set_supported_voltage(static_cast<::dmi::PsuComponentAttributes_SupportedVoltage>(val));
3942 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3943 break;
3944 }
3945 default: {
3946 handle_unusual:
3947 if ((tag & 7) == 4 || tag == 0) {
3948 ctx->EndGroup(tag);
3949 return ptr;
3950 }
3951 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3952 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3953 ptr = res.first;
3954 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3955 if (res.second) return ptr;
3956 }
3957 } // switch
3958 } // while
3959 return ptr;
3960}
3961#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3962bool PsuComponentAttributes::MergePartialFromCodedStream(
3963 ::google::protobuf::io::CodedInputStream* input) {
3964#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3965 ::google::protobuf::uint32 tag;
3966 // @@protoc_insertion_point(parse_start:dmi.PsuComponentAttributes)
3967 for (;;) {
3968 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3969 tag = p.first;
3970 if (!p.second) goto handle_unusual;
3971 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3972 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
3973 case 1: {
3974 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3975 int value = 0;
3976 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3977 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3978 input, &value)));
3979 set_supported_voltage(static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(value));
3980 } else {
3981 goto handle_unusual;
3982 }
3983 break;
3984 }
3985
3986 default: {
3987 handle_unusual:
3988 if (tag == 0) {
3989 goto success;
3990 }
3991 DO_(::google::protobuf::internal::WireFormat::SkipField(
3992 input, tag, _internal_metadata_.mutable_unknown_fields()));
3993 break;
3994 }
3995 }
3996 }
3997success:
3998 // @@protoc_insertion_point(parse_success:dmi.PsuComponentAttributes)
3999 return true;
4000failure:
4001 // @@protoc_insertion_point(parse_failure:dmi.PsuComponentAttributes)
4002 return false;
4003#undef DO_
4004}
4005#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4006
4007void PsuComponentAttributes::SerializeWithCachedSizes(
4008 ::google::protobuf::io::CodedOutputStream* output) const {
4009 // @@protoc_insertion_point(serialize_start:dmi.PsuComponentAttributes)
4010 ::google::protobuf::uint32 cached_has_bits = 0;
4011 (void) cached_has_bits;
4012
4013 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
4014 if (this->supported_voltage() != 0) {
4015 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4016 1, this->supported_voltage(), output);
4017 }
4018
4019 if (_internal_metadata_.have_unknown_fields()) {
4020 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4021 _internal_metadata_.unknown_fields(), output);
4022 }
4023 // @@protoc_insertion_point(serialize_end:dmi.PsuComponentAttributes)
4024}
4025
4026::google::protobuf::uint8* PsuComponentAttributes::InternalSerializeWithCachedSizesToArray(
4027 ::google::protobuf::uint8* target) const {
4028 // @@protoc_insertion_point(serialize_to_array_start:dmi.PsuComponentAttributes)
4029 ::google::protobuf::uint32 cached_has_bits = 0;
4030 (void) cached_has_bits;
4031
4032 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
4033 if (this->supported_voltage() != 0) {
4034 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4035 1, this->supported_voltage(), target);
4036 }
4037
4038 if (_internal_metadata_.have_unknown_fields()) {
4039 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4040 _internal_metadata_.unknown_fields(), target);
4041 }
4042 // @@protoc_insertion_point(serialize_to_array_end:dmi.PsuComponentAttributes)
4043 return target;
4044}
4045
4046size_t PsuComponentAttributes::ByteSizeLong() const {
4047// @@protoc_insertion_point(message_byte_size_start:dmi.PsuComponentAttributes)
4048 size_t total_size = 0;
4049
4050 if (_internal_metadata_.have_unknown_fields()) {
4051 total_size +=
4052 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4053 _internal_metadata_.unknown_fields());
4054 }
4055 ::google::protobuf::uint32 cached_has_bits = 0;
4056 // Prevent compiler warnings about cached_has_bits being unused
4057 (void) cached_has_bits;
4058
4059 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
4060 if (this->supported_voltage() != 0) {
4061 total_size += 1 +
4062 ::google::protobuf::internal::WireFormatLite::EnumSize(this->supported_voltage());
4063 }
4064
4065 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4066 SetCachedSize(cached_size);
4067 return total_size;
4068}
4069
4070void PsuComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
4071// @@protoc_insertion_point(generalized_merge_from_start:dmi.PsuComponentAttributes)
4072 GOOGLE_DCHECK_NE(&from, this);
4073 const PsuComponentAttributes* source =
4074 ::google::protobuf::DynamicCastToGenerated<PsuComponentAttributes>(
4075 &from);
4076 if (source == nullptr) {
4077 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PsuComponentAttributes)
4078 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4079 } else {
4080 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PsuComponentAttributes)
4081 MergeFrom(*source);
4082 }
4083}
4084
4085void PsuComponentAttributes::MergeFrom(const PsuComponentAttributes& from) {
4086// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PsuComponentAttributes)
4087 GOOGLE_DCHECK_NE(&from, this);
4088 _internal_metadata_.MergeFrom(from._internal_metadata_);
4089 ::google::protobuf::uint32 cached_has_bits = 0;
4090 (void) cached_has_bits;
4091
4092 if (from.supported_voltage() != 0) {
4093 set_supported_voltage(from.supported_voltage());
4094 }
4095}
4096
4097void PsuComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
4098// @@protoc_insertion_point(generalized_copy_from_start:dmi.PsuComponentAttributes)
4099 if (&from == this) return;
4100 Clear();
4101 MergeFrom(from);
4102}
4103
4104void PsuComponentAttributes::CopyFrom(const PsuComponentAttributes& from) {
4105// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PsuComponentAttributes)
4106 if (&from == this) return;
4107 Clear();
4108 MergeFrom(from);
4109}
4110
4111bool PsuComponentAttributes::IsInitialized() const {
4112 return true;
4113}
4114
4115void PsuComponentAttributes::Swap(PsuComponentAttributes* other) {
4116 if (other == this) return;
4117 InternalSwap(other);
4118}
4119void PsuComponentAttributes::InternalSwap(PsuComponentAttributes* other) {
4120 using std::swap;
4121 _internal_metadata_.Swap(&other->_internal_metadata_);
4122 swap(supported_voltage_, other->supported_voltage_);
4123}
4124
4125::google::protobuf::Metadata PsuComponentAttributes::GetMetadata() const {
4126 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
4127 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
4128}
4129
4130
4131// ===================================================================
4132
4133void TransceiverComponentsAttributes::InitAsDefaultInstance() {
4134}
4135class TransceiverComponentsAttributes::HasBitSetters {
4136 public:
4137};
4138
4139#if !defined(_MSC_VER) || _MSC_VER >= 1900
4140const int TransceiverComponentsAttributes::kFormFactorFieldNumber;
4141const int TransceiverComponentsAttributes::kTransTypeFieldNumber;
4142const int TransceiverComponentsAttributes::kMaxDistanceFieldNumber;
4143const int TransceiverComponentsAttributes::kMaxDistanceScaleFieldNumber;
4144const int TransceiverComponentsAttributes::kRxWavelengthFieldNumber;
4145const int TransceiverComponentsAttributes::kTxWavelengthFieldNumber;
4146const int TransceiverComponentsAttributes::kWavelengthScaleFieldNumber;
4147#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4148
4149TransceiverComponentsAttributes::TransceiverComponentsAttributes()
4150 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4151 SharedCtor();
4152 // @@protoc_insertion_point(constructor:dmi.TransceiverComponentsAttributes)
4153}
4154TransceiverComponentsAttributes::TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from)
4155 : ::google::protobuf::Message(),
4156 _internal_metadata_(nullptr),
4157 rx_wavelength_(from.rx_wavelength_),
4158 tx_wavelength_(from.tx_wavelength_) {
4159 _internal_metadata_.MergeFrom(from._internal_metadata_);
4160 ::memcpy(&form_factor_, &from.form_factor_,
4161 static_cast<size_t>(reinterpret_cast<char*>(&wavelength_scale_) -
4162 reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_));
4163 // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentsAttributes)
4164}
4165
4166void TransceiverComponentsAttributes::SharedCtor() {
4167 ::memset(&form_factor_, 0, static_cast<size_t>(
4168 reinterpret_cast<char*>(&wavelength_scale_) -
4169 reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_));
4170}
4171
4172TransceiverComponentsAttributes::~TransceiverComponentsAttributes() {
4173 // @@protoc_insertion_point(destructor:dmi.TransceiverComponentsAttributes)
4174 SharedDtor();
4175}
4176
4177void TransceiverComponentsAttributes::SharedDtor() {
4178}
4179
4180void TransceiverComponentsAttributes::SetCachedSize(int size) const {
4181 _cached_size_.Set(size);
4182}
4183const TransceiverComponentsAttributes& TransceiverComponentsAttributes::default_instance() {
4184 ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base);
4185 return *internal_default_instance();
4186}
4187
4188
4189void TransceiverComponentsAttributes::Clear() {
4190// @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentsAttributes)
4191 ::google::protobuf::uint32 cached_has_bits = 0;
4192 // Prevent compiler warnings about cached_has_bits being unused
4193 (void) cached_has_bits;
4194
4195 rx_wavelength_.Clear();
4196 tx_wavelength_.Clear();
4197 ::memset(&form_factor_, 0, static_cast<size_t>(
4198 reinterpret_cast<char*>(&wavelength_scale_) -
4199 reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_));
4200 _internal_metadata_.Clear();
4201}
4202
4203#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4204const char* TransceiverComponentsAttributes::_InternalParse(const char* begin, const char* end, void* object,
4205 ::google::protobuf::internal::ParseContext* ctx) {
4206 auto msg = static_cast<TransceiverComponentsAttributes*>(object);
4207 ::google::protobuf::int32 size; (void)size;
4208 int depth; (void)depth;
4209 ::google::protobuf::uint32 tag;
4210 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4211 auto ptr = begin;
4212 while (ptr < end) {
4213 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4214 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4215 switch (tag >> 3) {
4216 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4217 case 1: {
4218 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4219 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4220 msg->set_form_factor(static_cast<::dmi::TransceiverComponentsAttributes_FormFactor>(val));
4221 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4222 break;
4223 }
4224 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4225 case 2: {
4226 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4227 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4228 msg->set_trans_type(static_cast<::dmi::TransceiverComponentsAttributes_Type>(val));
4229 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4230 break;
4231 }
4232 // uint32 max_distance = 3;
4233 case 3: {
4234 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
4235 msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr));
4236 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4237 break;
4238 }
4239 // .dmi.ValueScale max_distance_scale = 4;
4240 case 4: {
4241 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
4242 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4243 msg->set_max_distance_scale(static_cast<::dmi::ValueScale>(val));
4244 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4245 break;
4246 }
4247 // repeated uint32 rx_wavelength = 5;
4248 case 5: {
4249 if (static_cast<::google::protobuf::uint8>(tag) == 42) {
4250 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4251 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4252 parser_till_end = ::google::protobuf::internal::PackedUInt32Parser;
4253 object = msg->mutable_rx_wavelength();
4254 if (size > end - ptr) goto len_delim_till_end;
4255 auto newend = ptr + size;
4256 if (size) ptr = parser_till_end(ptr, newend, object, ctx);
4257 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend);
4258 break;
4259 } else if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
4260 do {
4261 msg->add_rx_wavelength(::google::protobuf::internal::ReadVarint(&ptr));
4262 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4263 if (ptr >= end) break;
4264 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 40 && (ptr += 1));
4265 break;
4266 }
4267 // repeated uint32 tx_wavelength = 6;
4268 case 6: {
4269 if (static_cast<::google::protobuf::uint8>(tag) == 50) {
4270 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4271 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4272 parser_till_end = ::google::protobuf::internal::PackedUInt32Parser;
4273 object = msg->mutable_tx_wavelength();
4274 if (size > end - ptr) goto len_delim_till_end;
4275 auto newend = ptr + size;
4276 if (size) ptr = parser_till_end(ptr, newend, object, ctx);
4277 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend);
4278 break;
4279 } else if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual;
4280 do {
4281 msg->add_tx_wavelength(::google::protobuf::internal::ReadVarint(&ptr));
4282 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4283 if (ptr >= end) break;
4284 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 48 && (ptr += 1));
4285 break;
4286 }
4287 // .dmi.ValueScale wavelength_scale = 7;
4288 case 7: {
4289 if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual;
4290 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4291 msg->set_wavelength_scale(static_cast<::dmi::ValueScale>(val));
4292 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4293 break;
4294 }
4295 default: {
4296 handle_unusual:
4297 if ((tag & 7) == 4 || tag == 0) {
4298 ctx->EndGroup(tag);
4299 return ptr;
4300 }
4301 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4302 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4303 ptr = res.first;
4304 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4305 if (res.second) return ptr;
4306 }
4307 } // switch
4308 } // while
4309 return ptr;
4310len_delim_till_end:
4311 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4312 {parser_till_end, object}, size);
4313}
4314#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4315bool TransceiverComponentsAttributes::MergePartialFromCodedStream(
4316 ::google::protobuf::io::CodedInputStream* input) {
4317#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4318 ::google::protobuf::uint32 tag;
4319 // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentsAttributes)
4320 for (;;) {
4321 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4322 tag = p.first;
4323 if (!p.second) goto handle_unusual;
4324 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4325 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4326 case 1: {
4327 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4328 int value = 0;
4329 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4330 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4331 input, &value)));
4332 set_form_factor(static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(value));
4333 } else {
4334 goto handle_unusual;
4335 }
4336 break;
4337 }
4338
4339 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4340 case 2: {
4341 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4342 int value = 0;
4343 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4344 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4345 input, &value)));
4346 set_trans_type(static_cast< ::dmi::TransceiverComponentsAttributes_Type >(value));
4347 } else {
4348 goto handle_unusual;
4349 }
4350 break;
4351 }
4352
4353 // uint32 max_distance = 3;
4354 case 3: {
4355 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
4356
4357 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4358 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4359 input, &max_distance_)));
4360 } else {
4361 goto handle_unusual;
4362 }
4363 break;
4364 }
4365
4366 // .dmi.ValueScale max_distance_scale = 4;
4367 case 4: {
4368 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
4369 int value = 0;
4370 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4371 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4372 input, &value)));
4373 set_max_distance_scale(static_cast< ::dmi::ValueScale >(value));
4374 } else {
4375 goto handle_unusual;
4376 }
4377 break;
4378 }
4379
4380 // repeated uint32 rx_wavelength = 5;
4381 case 5: {
4382 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
4383 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
4384 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4385 input, this->mutable_rx_wavelength())));
4386 } else if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
4387 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
4388 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4389 1, 42u, input, this->mutable_rx_wavelength())));
4390 } else {
4391 goto handle_unusual;
4392 }
4393 break;
4394 }
4395
4396 // repeated uint32 tx_wavelength = 6;
4397 case 6: {
4398 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
4399 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
4400 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4401 input, this->mutable_tx_wavelength())));
4402 } else if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) {
4403 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
4404 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4405 1, 50u, input, this->mutable_tx_wavelength())));
4406 } else {
4407 goto handle_unusual;
4408 }
4409 break;
4410 }
4411
4412 // .dmi.ValueScale wavelength_scale = 7;
4413 case 7: {
4414 if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) {
4415 int value = 0;
4416 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4417 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4418 input, &value)));
4419 set_wavelength_scale(static_cast< ::dmi::ValueScale >(value));
4420 } else {
4421 goto handle_unusual;
4422 }
4423 break;
4424 }
4425
4426 default: {
4427 handle_unusual:
4428 if (tag == 0) {
4429 goto success;
4430 }
4431 DO_(::google::protobuf::internal::WireFormat::SkipField(
4432 input, tag, _internal_metadata_.mutable_unknown_fields()));
4433 break;
4434 }
4435 }
4436 }
4437success:
4438 // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentsAttributes)
4439 return true;
4440failure:
4441 // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentsAttributes)
4442 return false;
4443#undef DO_
4444}
4445#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4446
4447void TransceiverComponentsAttributes::SerializeWithCachedSizes(
4448 ::google::protobuf::io::CodedOutputStream* output) const {
4449 // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentsAttributes)
4450 ::google::protobuf::uint32 cached_has_bits = 0;
4451 (void) cached_has_bits;
4452
4453 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4454 if (this->form_factor() != 0) {
4455 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4456 1, this->form_factor(), output);
4457 }
4458
4459 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4460 if (this->trans_type() != 0) {
4461 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4462 2, this->trans_type(), output);
4463 }
4464
4465 // uint32 max_distance = 3;
4466 if (this->max_distance() != 0) {
4467 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_distance(), output);
4468 }
4469
4470 // .dmi.ValueScale max_distance_scale = 4;
4471 if (this->max_distance_scale() != 0) {
4472 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4473 4, this->max_distance_scale(), output);
4474 }
4475
4476 // repeated uint32 rx_wavelength = 5;
4477 if (this->rx_wavelength_size() > 0) {
4478 ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
4479 output->WriteVarint32(_rx_wavelength_cached_byte_size_.load(
4480 std::memory_order_relaxed));
4481 }
4482 for (int i = 0, n = this->rx_wavelength_size(); i < n; i++) {
4483 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
4484 this->rx_wavelength(i), output);
4485 }
4486
4487 // repeated uint32 tx_wavelength = 6;
4488 if (this->tx_wavelength_size() > 0) {
4489 ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
4490 output->WriteVarint32(_tx_wavelength_cached_byte_size_.load(
4491 std::memory_order_relaxed));
4492 }
4493 for (int i = 0, n = this->tx_wavelength_size(); i < n; i++) {
4494 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
4495 this->tx_wavelength(i), output);
4496 }
4497
4498 // .dmi.ValueScale wavelength_scale = 7;
4499 if (this->wavelength_scale() != 0) {
4500 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4501 7, this->wavelength_scale(), output);
4502 }
4503
4504 if (_internal_metadata_.have_unknown_fields()) {
4505 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4506 _internal_metadata_.unknown_fields(), output);
4507 }
4508 // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentsAttributes)
4509}
4510
4511::google::protobuf::uint8* TransceiverComponentsAttributes::InternalSerializeWithCachedSizesToArray(
4512 ::google::protobuf::uint8* target) const {
4513 // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentsAttributes)
4514 ::google::protobuf::uint32 cached_has_bits = 0;
4515 (void) cached_has_bits;
4516
4517 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4518 if (this->form_factor() != 0) {
4519 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4520 1, this->form_factor(), target);
4521 }
4522
4523 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4524 if (this->trans_type() != 0) {
4525 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4526 2, this->trans_type(), target);
4527 }
4528
4529 // uint32 max_distance = 3;
4530 if (this->max_distance() != 0) {
4531 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_distance(), target);
4532 }
4533
4534 // .dmi.ValueScale max_distance_scale = 4;
4535 if (this->max_distance_scale() != 0) {
4536 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4537 4, this->max_distance_scale(), target);
4538 }
4539
4540 // repeated uint32 rx_wavelength = 5;
4541 if (this->rx_wavelength_size() > 0) {
4542 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
4543 5,
4544 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
4545 target);
4546 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
4547 _rx_wavelength_cached_byte_size_.load(std::memory_order_relaxed),
4548 target);
4549 target = ::google::protobuf::internal::WireFormatLite::
4550 WriteUInt32NoTagToArray(this->rx_wavelength_, target);
4551 }
4552
4553 // repeated uint32 tx_wavelength = 6;
4554 if (this->tx_wavelength_size() > 0) {
4555 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
4556 6,
4557 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
4558 target);
4559 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
4560 _tx_wavelength_cached_byte_size_.load(std::memory_order_relaxed),
4561 target);
4562 target = ::google::protobuf::internal::WireFormatLite::
4563 WriteUInt32NoTagToArray(this->tx_wavelength_, target);
4564 }
4565
4566 // .dmi.ValueScale wavelength_scale = 7;
4567 if (this->wavelength_scale() != 0) {
4568 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4569 7, this->wavelength_scale(), target);
4570 }
4571
4572 if (_internal_metadata_.have_unknown_fields()) {
4573 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4574 _internal_metadata_.unknown_fields(), target);
4575 }
4576 // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentsAttributes)
4577 return target;
4578}
4579
4580size_t TransceiverComponentsAttributes::ByteSizeLong() const {
4581// @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentsAttributes)
4582 size_t total_size = 0;
4583
4584 if (_internal_metadata_.have_unknown_fields()) {
4585 total_size +=
4586 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4587 _internal_metadata_.unknown_fields());
4588 }
4589 ::google::protobuf::uint32 cached_has_bits = 0;
4590 // Prevent compiler warnings about cached_has_bits being unused
4591 (void) cached_has_bits;
4592
4593 // repeated uint32 rx_wavelength = 5;
4594 {
4595 size_t data_size = ::google::protobuf::internal::WireFormatLite::
4596 UInt32Size(this->rx_wavelength_);
4597 if (data_size > 0) {
4598 total_size += 1 +
4599 ::google::protobuf::internal::WireFormatLite::Int32Size(
4600 static_cast<::google::protobuf::int32>(data_size));
4601 }
4602 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
4603 _rx_wavelength_cached_byte_size_.store(cached_size,
4604 std::memory_order_relaxed);
4605 total_size += data_size;
4606 }
4607
4608 // repeated uint32 tx_wavelength = 6;
4609 {
4610 size_t data_size = ::google::protobuf::internal::WireFormatLite::
4611 UInt32Size(this->tx_wavelength_);
4612 if (data_size > 0) {
4613 total_size += 1 +
4614 ::google::protobuf::internal::WireFormatLite::Int32Size(
4615 static_cast<::google::protobuf::int32>(data_size));
4616 }
4617 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
4618 _tx_wavelength_cached_byte_size_.store(cached_size,
4619 std::memory_order_relaxed);
4620 total_size += data_size;
4621 }
4622
4623 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4624 if (this->form_factor() != 0) {
4625 total_size += 1 +
4626 ::google::protobuf::internal::WireFormatLite::EnumSize(this->form_factor());
4627 }
4628
4629 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4630 if (this->trans_type() != 0) {
4631 total_size += 1 +
4632 ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type());
4633 }
4634
4635 // uint32 max_distance = 3;
4636 if (this->max_distance() != 0) {
4637 total_size += 1 +
4638 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4639 this->max_distance());
4640 }
4641
4642 // .dmi.ValueScale max_distance_scale = 4;
4643 if (this->max_distance_scale() != 0) {
4644 total_size += 1 +
4645 ::google::protobuf::internal::WireFormatLite::EnumSize(this->max_distance_scale());
4646 }
4647
4648 // .dmi.ValueScale wavelength_scale = 7;
4649 if (this->wavelength_scale() != 0) {
4650 total_size += 1 +
4651 ::google::protobuf::internal::WireFormatLite::EnumSize(this->wavelength_scale());
4652 }
4653
4654 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4655 SetCachedSize(cached_size);
4656 return total_size;
4657}
4658
4659void TransceiverComponentsAttributes::MergeFrom(const ::google::protobuf::Message& from) {
4660// @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentsAttributes)
4661 GOOGLE_DCHECK_NE(&from, this);
4662 const TransceiverComponentsAttributes* source =
4663 ::google::protobuf::DynamicCastToGenerated<TransceiverComponentsAttributes>(
4664 &from);
4665 if (source == nullptr) {
4666 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentsAttributes)
4667 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4668 } else {
4669 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentsAttributes)
4670 MergeFrom(*source);
4671 }
4672}
4673
4674void TransceiverComponentsAttributes::MergeFrom(const TransceiverComponentsAttributes& from) {
4675// @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentsAttributes)
4676 GOOGLE_DCHECK_NE(&from, this);
4677 _internal_metadata_.MergeFrom(from._internal_metadata_);
4678 ::google::protobuf::uint32 cached_has_bits = 0;
4679 (void) cached_has_bits;
4680
4681 rx_wavelength_.MergeFrom(from.rx_wavelength_);
4682 tx_wavelength_.MergeFrom(from.tx_wavelength_);
4683 if (from.form_factor() != 0) {
4684 set_form_factor(from.form_factor());
4685 }
4686 if (from.trans_type() != 0) {
4687 set_trans_type(from.trans_type());
4688 }
4689 if (from.max_distance() != 0) {
4690 set_max_distance(from.max_distance());
4691 }
4692 if (from.max_distance_scale() != 0) {
4693 set_max_distance_scale(from.max_distance_scale());
4694 }
4695 if (from.wavelength_scale() != 0) {
4696 set_wavelength_scale(from.wavelength_scale());
4697 }
4698}
4699
4700void TransceiverComponentsAttributes::CopyFrom(const ::google::protobuf::Message& from) {
4701// @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentsAttributes)
4702 if (&from == this) return;
4703 Clear();
4704 MergeFrom(from);
4705}
4706
4707void TransceiverComponentsAttributes::CopyFrom(const TransceiverComponentsAttributes& from) {
4708// @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentsAttributes)
4709 if (&from == this) return;
4710 Clear();
4711 MergeFrom(from);
4712}
4713
4714bool TransceiverComponentsAttributes::IsInitialized() const {
4715 return true;
4716}
4717
4718void TransceiverComponentsAttributes::Swap(TransceiverComponentsAttributes* other) {
4719 if (other == this) return;
4720 InternalSwap(other);
4721}
4722void TransceiverComponentsAttributes::InternalSwap(TransceiverComponentsAttributes* other) {
4723 using std::swap;
4724 _internal_metadata_.Swap(&other->_internal_metadata_);
4725 rx_wavelength_.InternalSwap(&other->rx_wavelength_);
4726 tx_wavelength_.InternalSwap(&other->tx_wavelength_);
4727 swap(form_factor_, other->form_factor_);
4728 swap(trans_type_, other->trans_type_);
4729 swap(max_distance_, other->max_distance_);
4730 swap(max_distance_scale_, other->max_distance_scale_);
4731 swap(wavelength_scale_, other->wavelength_scale_);
4732}
4733
4734::google::protobuf::Metadata TransceiverComponentsAttributes::GetMetadata() const {
4735 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
4736 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
4737}
4738
4739
4740// ===================================================================
4741
4742void Component::InitAsDefaultInstance() {
4743 ::dmi::_Component_default_instance_._instance.get_mutable()->mfg_date_ = const_cast< ::google::protobuf::Timestamp*>(
4744 ::google::protobuf::Timestamp::internal_default_instance());
4745 ::dmi::_Component_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>(
4746 ::dmi::Uri::internal_default_instance());
4747 ::dmi::_Component_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>(
4748 ::dmi::Uuid::internal_default_instance());
4749 ::dmi::_Component_default_instance_._instance.get_mutable()->state_ = const_cast< ::dmi::ComponentState*>(
4750 ::dmi::ComponentState::internal_default_instance());
4751 ::dmi::_Component_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentAttributes*>(
4752 ::dmi::PortComponentAttributes::internal_default_instance());
4753 ::dmi::_Component_default_instance_.container_attr_ = const_cast< ::dmi::ContainerComponentAttributes*>(
4754 ::dmi::ContainerComponentAttributes::internal_default_instance());
4755 ::dmi::_Component_default_instance_.psu_attr_ = const_cast< ::dmi::PsuComponentAttributes*>(
4756 ::dmi::PsuComponentAttributes::internal_default_instance());
4757 ::dmi::_Component_default_instance_.transceiver_attr_ = const_cast< ::dmi::TransceiverComponentsAttributes*>(
4758 ::dmi::TransceiverComponentsAttributes::internal_default_instance());
4759}
4760class Component::HasBitSetters {
4761 public:
4762 static const ::google::protobuf::Timestamp& mfg_date(const Component* msg);
4763 static const ::dmi::Uri& uri(const Component* msg);
4764 static const ::dmi::Uuid& uuid(const Component* msg);
4765 static const ::dmi::ComponentState& state(const Component* msg);
4766 static const ::dmi::PortComponentAttributes& port_attr(const Component* msg);
4767 static const ::dmi::ContainerComponentAttributes& container_attr(const Component* msg);
4768 static const ::dmi::PsuComponentAttributes& psu_attr(const Component* msg);
4769 static const ::dmi::TransceiverComponentsAttributes& transceiver_attr(const Component* msg);
4770};
4771
4772const ::google::protobuf::Timestamp&
4773Component::HasBitSetters::mfg_date(const Component* msg) {
4774 return *msg->mfg_date_;
4775}
4776const ::dmi::Uri&
4777Component::HasBitSetters::uri(const Component* msg) {
4778 return *msg->uri_;
4779}
4780const ::dmi::Uuid&
4781Component::HasBitSetters::uuid(const Component* msg) {
4782 return *msg->uuid_;
4783}
4784const ::dmi::ComponentState&
4785Component::HasBitSetters::state(const Component* msg) {
4786 return *msg->state_;
4787}
4788const ::dmi::PortComponentAttributes&
4789Component::HasBitSetters::port_attr(const Component* msg) {
4790 return *msg->specific_.port_attr_;
4791}
4792const ::dmi::ContainerComponentAttributes&
4793Component::HasBitSetters::container_attr(const Component* msg) {
4794 return *msg->specific_.container_attr_;
4795}
4796const ::dmi::PsuComponentAttributes&
4797Component::HasBitSetters::psu_attr(const Component* msg) {
4798 return *msg->specific_.psu_attr_;
4799}
4800const ::dmi::TransceiverComponentsAttributes&
4801Component::HasBitSetters::transceiver_attr(const Component* msg) {
4802 return *msg->specific_.transceiver_attr_;
4803}
4804void Component::clear_mfg_date() {
4805 if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) {
4806 delete mfg_date_;
4807 }
4808 mfg_date_ = nullptr;
4809}
4810void Component::set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr) {
4811 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4812 clear_specific();
4813 if (port_attr) {
4814 ::google::protobuf::Arena* submessage_arena = nullptr;
4815 if (message_arena != submessage_arena) {
4816 port_attr = ::google::protobuf::internal::GetOwnedMessage(
4817 message_arena, port_attr, submessage_arena);
4818 }
4819 set_has_port_attr();
4820 specific_.port_attr_ = port_attr;
4821 }
4822 // @@protoc_insertion_point(field_set_allocated:dmi.Component.port_attr)
4823}
4824void Component::set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr) {
4825 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4826 clear_specific();
4827 if (container_attr) {
4828 ::google::protobuf::Arena* submessage_arena = nullptr;
4829 if (message_arena != submessage_arena) {
4830 container_attr = ::google::protobuf::internal::GetOwnedMessage(
4831 message_arena, container_attr, submessage_arena);
4832 }
4833 set_has_container_attr();
4834 specific_.container_attr_ = container_attr;
4835 }
4836 // @@protoc_insertion_point(field_set_allocated:dmi.Component.container_attr)
4837}
4838void Component::set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr) {
4839 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4840 clear_specific();
4841 if (psu_attr) {
4842 ::google::protobuf::Arena* submessage_arena = nullptr;
4843 if (message_arena != submessage_arena) {
4844 psu_attr = ::google::protobuf::internal::GetOwnedMessage(
4845 message_arena, psu_attr, submessage_arena);
4846 }
4847 set_has_psu_attr();
4848 specific_.psu_attr_ = psu_attr;
4849 }
4850 // @@protoc_insertion_point(field_set_allocated:dmi.Component.psu_attr)
4851}
4852void Component::set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr) {
4853 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4854 clear_specific();
4855 if (transceiver_attr) {
4856 ::google::protobuf::Arena* submessage_arena = nullptr;
4857 if (message_arena != submessage_arena) {
4858 transceiver_attr = ::google::protobuf::internal::GetOwnedMessage(
4859 message_arena, transceiver_attr, submessage_arena);
4860 }
4861 set_has_transceiver_attr();
4862 specific_.transceiver_attr_ = transceiver_attr;
4863 }
4864 // @@protoc_insertion_point(field_set_allocated:dmi.Component.transceiver_attr)
4865}
4866#if !defined(_MSC_VER) || _MSC_VER >= 1900
4867const int Component::kNameFieldNumber;
4868const int Component::kClassFieldNumber;
4869const int Component::kDescriptionFieldNumber;
4870const int Component::kParentFieldNumber;
4871const int Component::kParentRelPosFieldNumber;
4872const int Component::kChildrenFieldNumber;
4873const int Component::kHardwareRevFieldNumber;
4874const int Component::kFirmwareRevFieldNumber;
4875const int Component::kSoftwareRevFieldNumber;
4876const int Component::kSerialNumFieldNumber;
4877const int Component::kMfgNameFieldNumber;
4878const int Component::kModelNameFieldNumber;
4879const int Component::kAliasFieldNumber;
4880const int Component::kAssetIdFieldNumber;
4881const int Component::kIsFruFieldNumber;
4882const int Component::kMfgDateFieldNumber;
4883const int Component::kUriFieldNumber;
4884const int Component::kUuidFieldNumber;
4885const int Component::kStateFieldNumber;
4886const int Component::kSensorDataFieldNumber;
4887const int Component::kPortAttrFieldNumber;
4888const int Component::kContainerAttrFieldNumber;
4889const int Component::kPsuAttrFieldNumber;
4890const int Component::kTransceiverAttrFieldNumber;
4891#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4892
4893Component::Component()
4894 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4895 SharedCtor();
4896 // @@protoc_insertion_point(constructor:dmi.Component)
4897}
4898Component::Component(const Component& from)
4899 : ::google::protobuf::Message(),
4900 _internal_metadata_(nullptr),
4901 children_(from.children_),
4902 sensor_data_(from.sensor_data_) {
4903 _internal_metadata_.MergeFrom(from._internal_metadata_);
4904 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4905 if (from.name().size() > 0) {
4906 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
4907 }
4908 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4909 if (from.description().size() > 0) {
4910 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
4911 }
4912 parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4913 if (from.parent().size() > 0) {
4914 parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
4915 }
4916 hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4917 if (from.hardware_rev().size() > 0) {
4918 hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_);
4919 }
4920 firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4921 if (from.firmware_rev().size() > 0) {
4922 firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_);
4923 }
4924 software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4925 if (from.software_rev().size() > 0) {
4926 software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_);
4927 }
4928 serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4929 if (from.serial_num().size() > 0) {
4930 serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_);
4931 }
4932 mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4933 if (from.mfg_name().size() > 0) {
4934 mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_);
4935 }
4936 model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4937 if (from.model_name().size() > 0) {
4938 model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_);
4939 }
4940 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4941 if (from.alias().size() > 0) {
4942 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
4943 }
4944 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4945 if (from.asset_id().size() > 0) {
4946 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
4947 }
4948 if (from.has_mfg_date()) {
4949 mfg_date_ = new ::google::protobuf::Timestamp(*from.mfg_date_);
4950 } else {
4951 mfg_date_ = nullptr;
4952 }
4953 if (from.has_uri()) {
4954 uri_ = new ::dmi::Uri(*from.uri_);
4955 } else {
4956 uri_ = nullptr;
4957 }
4958 if (from.has_uuid()) {
4959 uuid_ = new ::dmi::Uuid(*from.uuid_);
4960 } else {
4961 uuid_ = nullptr;
4962 }
4963 if (from.has_state()) {
4964 state_ = new ::dmi::ComponentState(*from.state_);
4965 } else {
4966 state_ = nullptr;
4967 }
4968 ::memcpy(&class__, &from.class__,
4969 static_cast<size_t>(reinterpret_cast<char*>(&is_fru_) -
4970 reinterpret_cast<char*>(&class__)) + sizeof(is_fru_));
4971 clear_has_specific();
4972 switch (from.specific_case()) {
4973 case kPortAttr: {
4974 mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr());
4975 break;
4976 }
4977 case kContainerAttr: {
4978 mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr());
4979 break;
4980 }
4981 case kPsuAttr: {
4982 mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr());
4983 break;
4984 }
4985 case kTransceiverAttr: {
4986 mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr());
4987 break;
4988 }
4989 case SPECIFIC_NOT_SET: {
4990 break;
4991 }
4992 }
4993 // @@protoc_insertion_point(copy_constructor:dmi.Component)
4994}
4995
4996void Component::SharedCtor() {
4997 ::google::protobuf::internal::InitSCC(
4998 &scc_info_Component_dmi_2fhw_2eproto.base);
4999 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5000 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5001 parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5002 hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5003 firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5004 software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5005 serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5006 mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5007 model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5008 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5009 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5010 ::memset(&mfg_date_, 0, static_cast<size_t>(
5011 reinterpret_cast<char*>(&is_fru_) -
5012 reinterpret_cast<char*>(&mfg_date_)) + sizeof(is_fru_));
5013 clear_has_specific();
5014}
5015
5016Component::~Component() {
5017 // @@protoc_insertion_point(destructor:dmi.Component)
5018 SharedDtor();
5019}
5020
5021void Component::SharedDtor() {
5022 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5023 description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5024 parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5025 hardware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5026 firmware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5027 software_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5028 serial_num_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5029 mfg_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5030 model_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5031 alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5032 asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5033 if (this != internal_default_instance()) delete mfg_date_;
5034 if (this != internal_default_instance()) delete uri_;
5035 if (this != internal_default_instance()) delete uuid_;
5036 if (this != internal_default_instance()) delete state_;
5037 if (has_specific()) {
5038 clear_specific();
5039 }
5040}
5041
5042void Component::SetCachedSize(int size) const {
5043 _cached_size_.Set(size);
5044}
5045const Component& Component::default_instance() {
5046 ::google::protobuf::internal::InitSCC(&::scc_info_Component_dmi_2fhw_2eproto.base);
5047 return *internal_default_instance();
5048}
5049
5050
5051void Component::clear_specific() {
5052// @@protoc_insertion_point(one_of_clear_start:dmi.Component)
5053 switch (specific_case()) {
5054 case kPortAttr: {
5055 delete specific_.port_attr_;
5056 break;
5057 }
5058 case kContainerAttr: {
5059 delete specific_.container_attr_;
5060 break;
5061 }
5062 case kPsuAttr: {
5063 delete specific_.psu_attr_;
5064 break;
5065 }
5066 case kTransceiverAttr: {
5067 delete specific_.transceiver_attr_;
5068 break;
5069 }
5070 case SPECIFIC_NOT_SET: {
5071 break;
5072 }
5073 }
5074 _oneof_case_[0] = SPECIFIC_NOT_SET;
5075}
5076
5077
5078void Component::Clear() {
5079// @@protoc_insertion_point(message_clear_start:dmi.Component)
5080 ::google::protobuf::uint32 cached_has_bits = 0;
5081 // Prevent compiler warnings about cached_has_bits being unused
5082 (void) cached_has_bits;
5083
5084 children_.Clear();
5085 sensor_data_.Clear();
5086 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5087 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5088 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5089 hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5090 firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5091 software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5092 serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5093 mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5094 model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5095 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5096 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5097 if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) {
5098 delete mfg_date_;
5099 }
5100 mfg_date_ = nullptr;
5101 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
5102 delete uri_;
5103 }
5104 uri_ = nullptr;
5105 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
5106 delete uuid_;
5107 }
5108 uuid_ = nullptr;
5109 if (GetArenaNoVirtual() == nullptr && state_ != nullptr) {
5110 delete state_;
5111 }
5112 state_ = nullptr;
5113 ::memset(&class__, 0, static_cast<size_t>(
5114 reinterpret_cast<char*>(&is_fru_) -
5115 reinterpret_cast<char*>(&class__)) + sizeof(is_fru_));
5116 clear_specific();
5117 _internal_metadata_.Clear();
5118}
5119
5120#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5121const char* Component::_InternalParse(const char* begin, const char* end, void* object,
5122 ::google::protobuf::internal::ParseContext* ctx) {
5123 auto msg = static_cast<Component*>(object);
5124 ::google::protobuf::int32 size; (void)size;
5125 int depth; (void)depth;
5126 ::google::protobuf::uint32 tag;
5127 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5128 auto ptr = begin;
5129 while (ptr < end) {
5130 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5131 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5132 switch (tag >> 3) {
5133 // string name = 1;
5134 case 1: {
5135 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5136 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5137 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5138 ctx->extra_parse_data().SetFieldName("dmi.Component.name");
5139 object = msg->mutable_name();
5140 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5141 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5142 goto string_till_end;
5143 }
5144 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5145 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5146 ptr += size;
5147 break;
5148 }
5149 // .dmi.ComponentType class = 2;
5150 case 2: {
5151 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5152 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5153 msg->set_class_(static_cast<::dmi::ComponentType>(val));
5154 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5155 break;
5156 }
5157 // string description = 3;
5158 case 3: {
5159 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
5160 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5161 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5162 ctx->extra_parse_data().SetFieldName("dmi.Component.description");
5163 object = msg->mutable_description();
5164 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5165 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5166 goto string_till_end;
5167 }
5168 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5169 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5170 ptr += size;
5171 break;
5172 }
5173 // string parent = 4;
5174 case 4: {
5175 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
5176 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5177 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5178 ctx->extra_parse_data().SetFieldName("dmi.Component.parent");
5179 object = msg->mutable_parent();
5180 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5181 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5182 goto string_till_end;
5183 }
5184 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5185 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5186 ptr += size;
5187 break;
5188 }
5189 // int32 parent_rel_pos = 5;
5190 case 5: {
5191 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
5192 msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr));
5193 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5194 break;
5195 }
5196 // repeated .dmi.Component children = 6;
5197 case 6: {
5198 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
5199 do {
5200 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5201 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5202 parser_till_end = ::dmi::Component::_InternalParse;
5203 object = msg->add_children();
5204 if (size > end - ptr) goto len_delim_till_end;
5205 ptr += size;
5206 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5207 {parser_till_end, object}, ptr - size, ptr));
5208 if (ptr >= end) break;
5209 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1));
5210 break;
5211 }
5212 // string hardware_rev = 7;
5213 case 7: {
5214 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
5215 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5216 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5217 ctx->extra_parse_data().SetFieldName("dmi.Component.hardware_rev");
5218 object = msg->mutable_hardware_rev();
5219 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5220 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5221 goto string_till_end;
5222 }
5223 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5224 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5225 ptr += size;
5226 break;
5227 }
5228 // string firmware_rev = 8;
5229 case 8: {
5230 if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual;
5231 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5232 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5233 ctx->extra_parse_data().SetFieldName("dmi.Component.firmware_rev");
5234 object = msg->mutable_firmware_rev();
5235 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5236 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5237 goto string_till_end;
5238 }
5239 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5240 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5241 ptr += size;
5242 break;
5243 }
5244 // string software_rev = 9;
5245 case 9: {
5246 if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual;
5247 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5248 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5249 ctx->extra_parse_data().SetFieldName("dmi.Component.software_rev");
5250 object = msg->mutable_software_rev();
5251 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5252 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5253 goto string_till_end;
5254 }
5255 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5256 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5257 ptr += size;
5258 break;
5259 }
5260 // string serial_num = 10;
5261 case 10: {
5262 if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual;
5263 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5264 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5265 ctx->extra_parse_data().SetFieldName("dmi.Component.serial_num");
5266 object = msg->mutable_serial_num();
5267 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5268 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5269 goto string_till_end;
5270 }
5271 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5272 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5273 ptr += size;
5274 break;
5275 }
5276 // string mfg_name = 11;
5277 case 11: {
5278 if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual;
5279 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5280 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5281 ctx->extra_parse_data().SetFieldName("dmi.Component.mfg_name");
5282 object = msg->mutable_mfg_name();
5283 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5284 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5285 goto string_till_end;
5286 }
5287 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5288 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5289 ptr += size;
5290 break;
5291 }
5292 // string model_name = 12;
5293 case 12: {
5294 if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual;
5295 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5296 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5297 ctx->extra_parse_data().SetFieldName("dmi.Component.model_name");
5298 object = msg->mutable_model_name();
5299 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5300 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5301 goto string_till_end;
5302 }
5303 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5304 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5305 ptr += size;
5306 break;
5307 }
5308 // string alias = 13;
5309 case 13: {
5310 if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual;
5311 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5312 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5313 ctx->extra_parse_data().SetFieldName("dmi.Component.alias");
5314 object = msg->mutable_alias();
5315 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5316 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5317 goto string_till_end;
5318 }
5319 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5320 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5321 ptr += size;
5322 break;
5323 }
5324 // string asset_id = 14;
5325 case 14: {
5326 if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual;
5327 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5328 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5329 ctx->extra_parse_data().SetFieldName("dmi.Component.asset_id");
5330 object = msg->mutable_asset_id();
5331 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5332 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5333 goto string_till_end;
5334 }
5335 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5336 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5337 ptr += size;
5338 break;
5339 }
5340 // bool is_fru = 15;
5341 case 15: {
5342 if (static_cast<::google::protobuf::uint8>(tag) != 120) goto handle_unusual;
5343 msg->set_is_fru(::google::protobuf::internal::ReadVarint(&ptr));
5344 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5345 break;
5346 }
5347 // .google.protobuf.Timestamp mfg_date = 16;
5348 case 16: {
5349 if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual;
5350 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5351 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5352 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
5353 object = msg->mutable_mfg_date();
5354 if (size > end - ptr) goto len_delim_till_end;
5355 ptr += size;
5356 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5357 {parser_till_end, object}, ptr - size, ptr));
5358 break;
5359 }
5360 // .dmi.Uri uri = 17;
5361 case 17: {
5362 if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual;
5363 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5364 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5365 parser_till_end = ::dmi::Uri::_InternalParse;
5366 object = msg->mutable_uri();
5367 if (size > end - ptr) goto len_delim_till_end;
5368 ptr += size;
5369 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5370 {parser_till_end, object}, ptr - size, ptr));
5371 break;
5372 }
5373 // .dmi.Uuid uuid = 18;
5374 case 18: {
5375 if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
5376 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5377 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5378 parser_till_end = ::dmi::Uuid::_InternalParse;
5379 object = msg->mutable_uuid();
5380 if (size > end - ptr) goto len_delim_till_end;
5381 ptr += size;
5382 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5383 {parser_till_end, object}, ptr - size, ptr));
5384 break;
5385 }
5386 // .dmi.ComponentState state = 19;
5387 case 19: {
5388 if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual;
5389 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5390 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5391 parser_till_end = ::dmi::ComponentState::_InternalParse;
5392 object = msg->mutable_state();
5393 if (size > end - ptr) goto len_delim_till_end;
5394 ptr += size;
5395 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5396 {parser_till_end, object}, ptr - size, ptr));
5397 break;
5398 }
5399 // repeated .dmi.ComponentSensorData sensor_data = 20;
5400 case 20: {
5401 if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual;
5402 do {
5403 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5404 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5405 parser_till_end = ::dmi::ComponentSensorData::_InternalParse;
5406 object = msg->add_sensor_data();
5407 if (size > end - ptr) goto len_delim_till_end;
5408 ptr += size;
5409 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5410 {parser_till_end, object}, ptr - size, ptr));
5411 if (ptr >= end) break;
5412 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 418 && (ptr += 2));
5413 break;
5414 }
5415 // .dmi.PortComponentAttributes port_attr = 50;
5416 case 50: {
5417 if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
5418 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5419 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5420 parser_till_end = ::dmi::PortComponentAttributes::_InternalParse;
5421 object = msg->mutable_port_attr();
5422 if (size > end - ptr) goto len_delim_till_end;
5423 ptr += size;
5424 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5425 {parser_till_end, object}, ptr - size, ptr));
5426 break;
5427 }
5428 // .dmi.ContainerComponentAttributes container_attr = 51;
5429 case 51: {
5430 if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual;
5431 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5432 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5433 parser_till_end = ::dmi::ContainerComponentAttributes::_InternalParse;
5434 object = msg->mutable_container_attr();
5435 if (size > end - ptr) goto len_delim_till_end;
5436 ptr += size;
5437 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5438 {parser_till_end, object}, ptr - size, ptr));
5439 break;
5440 }
5441 // .dmi.PsuComponentAttributes psu_attr = 52;
5442 case 52: {
5443 if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual;
5444 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5445 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5446 parser_till_end = ::dmi::PsuComponentAttributes::_InternalParse;
5447 object = msg->mutable_psu_attr();
5448 if (size > end - ptr) goto len_delim_till_end;
5449 ptr += size;
5450 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5451 {parser_till_end, object}, ptr - size, ptr));
5452 break;
5453 }
5454 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
5455 case 53: {
5456 if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual;
5457 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5458 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5459 parser_till_end = ::dmi::TransceiverComponentsAttributes::_InternalParse;
5460 object = msg->mutable_transceiver_attr();
5461 if (size > end - ptr) goto len_delim_till_end;
5462 ptr += size;
5463 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
5464 {parser_till_end, object}, ptr - size, ptr));
5465 break;
5466 }
5467 default: {
5468 handle_unusual:
5469 if ((tag & 7) == 4 || tag == 0) {
5470 ctx->EndGroup(tag);
5471 return ptr;
5472 }
5473 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5474 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5475 ptr = res.first;
5476 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5477 if (res.second) return ptr;
5478 }
5479 } // switch
5480 } // while
5481 return ptr;
5482string_till_end:
5483 static_cast<::std::string*>(object)->clear();
5484 static_cast<::std::string*>(object)->reserve(size);
5485 goto len_delim_till_end;
5486len_delim_till_end:
5487 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5488 {parser_till_end, object}, size);
5489}
5490#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5491bool Component::MergePartialFromCodedStream(
5492 ::google::protobuf::io::CodedInputStream* input) {
5493#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5494 ::google::protobuf::uint32 tag;
5495 // @@protoc_insertion_point(parse_start:dmi.Component)
5496 for (;;) {
5497 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
5498 tag = p.first;
5499 if (!p.second) goto handle_unusual;
5500 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5501 // string name = 1;
5502 case 1: {
5503 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5504 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5505 input, this->mutable_name()));
5506 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5507 this->name().data(), static_cast<int>(this->name().length()),
5508 ::google::protobuf::internal::WireFormatLite::PARSE,
5509 "dmi.Component.name"));
5510 } else {
5511 goto handle_unusual;
5512 }
5513 break;
5514 }
5515
5516 // .dmi.ComponentType class = 2;
5517 case 2: {
5518 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5519 int value = 0;
5520 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5521 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5522 input, &value)));
5523 set_class_(static_cast< ::dmi::ComponentType >(value));
5524 } else {
5525 goto handle_unusual;
5526 }
5527 break;
5528 }
5529
5530 // string description = 3;
5531 case 3: {
5532 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
5533 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5534 input, this->mutable_description()));
5535 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5536 this->description().data(), static_cast<int>(this->description().length()),
5537 ::google::protobuf::internal::WireFormatLite::PARSE,
5538 "dmi.Component.description"));
5539 } else {
5540 goto handle_unusual;
5541 }
5542 break;
5543 }
5544
5545 // string parent = 4;
5546 case 4: {
5547 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
5548 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5549 input, this->mutable_parent()));
5550 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5551 this->parent().data(), static_cast<int>(this->parent().length()),
5552 ::google::protobuf::internal::WireFormatLite::PARSE,
5553 "dmi.Component.parent"));
5554 } else {
5555 goto handle_unusual;
5556 }
5557 break;
5558 }
5559
5560 // int32 parent_rel_pos = 5;
5561 case 5: {
5562 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
5563
5564 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5565 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
5566 input, &parent_rel_pos_)));
5567 } else {
5568 goto handle_unusual;
5569 }
5570 break;
5571 }
5572
5573 // repeated .dmi.Component children = 6;
5574 case 6: {
5575 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
5576 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5577 input, add_children()));
5578 } else {
5579 goto handle_unusual;
5580 }
5581 break;
5582 }
5583
5584 // string hardware_rev = 7;
5585 case 7: {
5586 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
5587 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5588 input, this->mutable_hardware_rev()));
5589 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5590 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
5591 ::google::protobuf::internal::WireFormatLite::PARSE,
5592 "dmi.Component.hardware_rev"));
5593 } else {
5594 goto handle_unusual;
5595 }
5596 break;
5597 }
5598
5599 // string firmware_rev = 8;
5600 case 8: {
5601 if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) {
5602 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5603 input, this->mutable_firmware_rev()));
5604 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5605 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
5606 ::google::protobuf::internal::WireFormatLite::PARSE,
5607 "dmi.Component.firmware_rev"));
5608 } else {
5609 goto handle_unusual;
5610 }
5611 break;
5612 }
5613
5614 // string software_rev = 9;
5615 case 9: {
5616 if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) {
5617 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5618 input, this->mutable_software_rev()));
5619 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5620 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
5621 ::google::protobuf::internal::WireFormatLite::PARSE,
5622 "dmi.Component.software_rev"));
5623 } else {
5624 goto handle_unusual;
5625 }
5626 break;
5627 }
5628
5629 // string serial_num = 10;
5630 case 10: {
5631 if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) {
5632 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5633 input, this->mutable_serial_num()));
5634 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5635 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
5636 ::google::protobuf::internal::WireFormatLite::PARSE,
5637 "dmi.Component.serial_num"));
5638 } else {
5639 goto handle_unusual;
5640 }
5641 break;
5642 }
5643
5644 // string mfg_name = 11;
5645 case 11: {
5646 if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) {
5647 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5648 input, this->mutable_mfg_name()));
5649 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5650 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
5651 ::google::protobuf::internal::WireFormatLite::PARSE,
5652 "dmi.Component.mfg_name"));
5653 } else {
5654 goto handle_unusual;
5655 }
5656 break;
5657 }
5658
5659 // string model_name = 12;
5660 case 12: {
5661 if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) {
5662 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5663 input, this->mutable_model_name()));
5664 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5665 this->model_name().data(), static_cast<int>(this->model_name().length()),
5666 ::google::protobuf::internal::WireFormatLite::PARSE,
5667 "dmi.Component.model_name"));
5668 } else {
5669 goto handle_unusual;
5670 }
5671 break;
5672 }
5673
5674 // string alias = 13;
5675 case 13: {
5676 if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) {
5677 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5678 input, this->mutable_alias()));
5679 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5680 this->alias().data(), static_cast<int>(this->alias().length()),
5681 ::google::protobuf::internal::WireFormatLite::PARSE,
5682 "dmi.Component.alias"));
5683 } else {
5684 goto handle_unusual;
5685 }
5686 break;
5687 }
5688
5689 // string asset_id = 14;
5690 case 14: {
5691 if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) {
5692 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5693 input, this->mutable_asset_id()));
5694 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5695 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
5696 ::google::protobuf::internal::WireFormatLite::PARSE,
5697 "dmi.Component.asset_id"));
5698 } else {
5699 goto handle_unusual;
5700 }
5701 break;
5702 }
5703
5704 // bool is_fru = 15;
5705 case 15: {
5706 if (static_cast< ::google::protobuf::uint8>(tag) == (120 & 0xFF)) {
5707
5708 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5709 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
5710 input, &is_fru_)));
5711 } else {
5712 goto handle_unusual;
5713 }
5714 break;
5715 }
5716
5717 // .google.protobuf.Timestamp mfg_date = 16;
5718 case 16: {
5719 if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) {
5720 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5721 input, mutable_mfg_date()));
5722 } else {
5723 goto handle_unusual;
5724 }
5725 break;
5726 }
5727
5728 // .dmi.Uri uri = 17;
5729 case 17: {
5730 if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) {
5731 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5732 input, mutable_uri()));
5733 } else {
5734 goto handle_unusual;
5735 }
5736 break;
5737 }
5738
5739 // .dmi.Uuid uuid = 18;
5740 case 18: {
5741 if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) {
5742 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5743 input, mutable_uuid()));
5744 } else {
5745 goto handle_unusual;
5746 }
5747 break;
5748 }
5749
5750 // .dmi.ComponentState state = 19;
5751 case 19: {
5752 if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) {
5753 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5754 input, mutable_state()));
5755 } else {
5756 goto handle_unusual;
5757 }
5758 break;
5759 }
5760
5761 // repeated .dmi.ComponentSensorData sensor_data = 20;
5762 case 20: {
5763 if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) {
5764 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5765 input, add_sensor_data()));
5766 } else {
5767 goto handle_unusual;
5768 }
5769 break;
5770 }
5771
5772 // .dmi.PortComponentAttributes port_attr = 50;
5773 case 50: {
5774 if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) {
5775 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5776 input, mutable_port_attr()));
5777 } else {
5778 goto handle_unusual;
5779 }
5780 break;
5781 }
5782
5783 // .dmi.ContainerComponentAttributes container_attr = 51;
5784 case 51: {
5785 if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) {
5786 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5787 input, mutable_container_attr()));
5788 } else {
5789 goto handle_unusual;
5790 }
5791 break;
5792 }
5793
5794 // .dmi.PsuComponentAttributes psu_attr = 52;
5795 case 52: {
5796 if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) {
5797 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5798 input, mutable_psu_attr()));
5799 } else {
5800 goto handle_unusual;
5801 }
5802 break;
5803 }
5804
5805 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
5806 case 53: {
5807 if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) {
5808 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5809 input, mutable_transceiver_attr()));
5810 } else {
5811 goto handle_unusual;
5812 }
5813 break;
5814 }
5815
5816 default: {
5817 handle_unusual:
5818 if (tag == 0) {
5819 goto success;
5820 }
5821 DO_(::google::protobuf::internal::WireFormat::SkipField(
5822 input, tag, _internal_metadata_.mutable_unknown_fields()));
5823 break;
5824 }
5825 }
5826 }
5827success:
5828 // @@protoc_insertion_point(parse_success:dmi.Component)
5829 return true;
5830failure:
5831 // @@protoc_insertion_point(parse_failure:dmi.Component)
5832 return false;
5833#undef DO_
5834}
5835#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5836
5837void Component::SerializeWithCachedSizes(
5838 ::google::protobuf::io::CodedOutputStream* output) const {
5839 // @@protoc_insertion_point(serialize_start:dmi.Component)
5840 ::google::protobuf::uint32 cached_has_bits = 0;
5841 (void) cached_has_bits;
5842
5843 // string name = 1;
5844 if (this->name().size() > 0) {
5845 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5846 this->name().data(), static_cast<int>(this->name().length()),
5847 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5848 "dmi.Component.name");
5849 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5850 1, this->name(), output);
5851 }
5852
5853 // .dmi.ComponentType class = 2;
5854 if (this->class_() != 0) {
5855 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5856 2, this->class_(), output);
5857 }
5858
5859 // string description = 3;
5860 if (this->description().size() > 0) {
5861 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5862 this->description().data(), static_cast<int>(this->description().length()),
5863 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5864 "dmi.Component.description");
5865 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5866 3, this->description(), output);
5867 }
5868
5869 // string parent = 4;
5870 if (this->parent().size() > 0) {
5871 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5872 this->parent().data(), static_cast<int>(this->parent().length()),
5873 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5874 "dmi.Component.parent");
5875 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5876 4, this->parent(), output);
5877 }
5878
5879 // int32 parent_rel_pos = 5;
5880 if (this->parent_rel_pos() != 0) {
5881 ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parent_rel_pos(), output);
5882 }
5883
5884 // repeated .dmi.Component children = 6;
5885 for (unsigned int i = 0,
5886 n = static_cast<unsigned int>(this->children_size()); i < n; i++) {
5887 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5888 6,
5889 this->children(static_cast<int>(i)),
5890 output);
5891 }
5892
5893 // string hardware_rev = 7;
5894 if (this->hardware_rev().size() > 0) {
5895 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5896 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
5897 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5898 "dmi.Component.hardware_rev");
5899 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5900 7, this->hardware_rev(), output);
5901 }
5902
5903 // string firmware_rev = 8;
5904 if (this->firmware_rev().size() > 0) {
5905 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5906 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
5907 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5908 "dmi.Component.firmware_rev");
5909 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5910 8, this->firmware_rev(), output);
5911 }
5912
5913 // string software_rev = 9;
5914 if (this->software_rev().size() > 0) {
5915 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5916 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
5917 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5918 "dmi.Component.software_rev");
5919 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5920 9, this->software_rev(), output);
5921 }
5922
5923 // string serial_num = 10;
5924 if (this->serial_num().size() > 0) {
5925 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5926 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
5927 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5928 "dmi.Component.serial_num");
5929 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5930 10, this->serial_num(), output);
5931 }
5932
5933 // string mfg_name = 11;
5934 if (this->mfg_name().size() > 0) {
5935 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5936 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
5937 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5938 "dmi.Component.mfg_name");
5939 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5940 11, this->mfg_name(), output);
5941 }
5942
5943 // string model_name = 12;
5944 if (this->model_name().size() > 0) {
5945 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5946 this->model_name().data(), static_cast<int>(this->model_name().length()),
5947 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5948 "dmi.Component.model_name");
5949 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5950 12, this->model_name(), output);
5951 }
5952
5953 // string alias = 13;
5954 if (this->alias().size() > 0) {
5955 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5956 this->alias().data(), static_cast<int>(this->alias().length()),
5957 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5958 "dmi.Component.alias");
5959 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5960 13, this->alias(), output);
5961 }
5962
5963 // string asset_id = 14;
5964 if (this->asset_id().size() > 0) {
5965 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5966 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
5967 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5968 "dmi.Component.asset_id");
5969 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5970 14, this->asset_id(), output);
5971 }
5972
5973 // bool is_fru = 15;
5974 if (this->is_fru() != 0) {
5975 ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_fru(), output);
5976 }
5977
5978 // .google.protobuf.Timestamp mfg_date = 16;
5979 if (this->has_mfg_date()) {
5980 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5981 16, HasBitSetters::mfg_date(this), output);
5982 }
5983
5984 // .dmi.Uri uri = 17;
5985 if (this->has_uri()) {
5986 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5987 17, HasBitSetters::uri(this), output);
5988 }
5989
5990 // .dmi.Uuid uuid = 18;
5991 if (this->has_uuid()) {
5992 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5993 18, HasBitSetters::uuid(this), output);
5994 }
5995
5996 // .dmi.ComponentState state = 19;
5997 if (this->has_state()) {
5998 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5999 19, HasBitSetters::state(this), output);
6000 }
6001
6002 // repeated .dmi.ComponentSensorData sensor_data = 20;
6003 for (unsigned int i = 0,
6004 n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) {
6005 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6006 20,
6007 this->sensor_data(static_cast<int>(i)),
6008 output);
6009 }
6010
6011 // .dmi.PortComponentAttributes port_attr = 50;
6012 if (has_port_attr()) {
6013 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6014 50, HasBitSetters::port_attr(this), output);
6015 }
6016
6017 // .dmi.ContainerComponentAttributes container_attr = 51;
6018 if (has_container_attr()) {
6019 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6020 51, HasBitSetters::container_attr(this), output);
6021 }
6022
6023 // .dmi.PsuComponentAttributes psu_attr = 52;
6024 if (has_psu_attr()) {
6025 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6026 52, HasBitSetters::psu_attr(this), output);
6027 }
6028
6029 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
6030 if (has_transceiver_attr()) {
6031 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6032 53, HasBitSetters::transceiver_attr(this), output);
6033 }
6034
6035 if (_internal_metadata_.have_unknown_fields()) {
6036 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6037 _internal_metadata_.unknown_fields(), output);
6038 }
6039 // @@protoc_insertion_point(serialize_end:dmi.Component)
6040}
6041
6042::google::protobuf::uint8* Component::InternalSerializeWithCachedSizesToArray(
6043 ::google::protobuf::uint8* target) const {
6044 // @@protoc_insertion_point(serialize_to_array_start:dmi.Component)
6045 ::google::protobuf::uint32 cached_has_bits = 0;
6046 (void) cached_has_bits;
6047
6048 // string name = 1;
6049 if (this->name().size() > 0) {
6050 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6051 this->name().data(), static_cast<int>(this->name().length()),
6052 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6053 "dmi.Component.name");
6054 target =
6055 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6056 1, this->name(), target);
6057 }
6058
6059 // .dmi.ComponentType class = 2;
6060 if (this->class_() != 0) {
6061 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6062 2, this->class_(), target);
6063 }
6064
6065 // string description = 3;
6066 if (this->description().size() > 0) {
6067 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6068 this->description().data(), static_cast<int>(this->description().length()),
6069 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6070 "dmi.Component.description");
6071 target =
6072 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6073 3, this->description(), target);
6074 }
6075
6076 // string parent = 4;
6077 if (this->parent().size() > 0) {
6078 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6079 this->parent().data(), static_cast<int>(this->parent().length()),
6080 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6081 "dmi.Component.parent");
6082 target =
6083 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6084 4, this->parent(), target);
6085 }
6086
6087 // int32 parent_rel_pos = 5;
6088 if (this->parent_rel_pos() != 0) {
6089 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parent_rel_pos(), target);
6090 }
6091
6092 // repeated .dmi.Component children = 6;
6093 for (unsigned int i = 0,
6094 n = static_cast<unsigned int>(this->children_size()); i < n; i++) {
6095 target = ::google::protobuf::internal::WireFormatLite::
6096 InternalWriteMessageToArray(
6097 6, this->children(static_cast<int>(i)), target);
6098 }
6099
6100 // string hardware_rev = 7;
6101 if (this->hardware_rev().size() > 0) {
6102 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6103 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
6104 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6105 "dmi.Component.hardware_rev");
6106 target =
6107 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6108 7, this->hardware_rev(), target);
6109 }
6110
6111 // string firmware_rev = 8;
6112 if (this->firmware_rev().size() > 0) {
6113 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6114 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
6115 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6116 "dmi.Component.firmware_rev");
6117 target =
6118 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6119 8, this->firmware_rev(), target);
6120 }
6121
6122 // string software_rev = 9;
6123 if (this->software_rev().size() > 0) {
6124 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6125 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
6126 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6127 "dmi.Component.software_rev");
6128 target =
6129 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6130 9, this->software_rev(), target);
6131 }
6132
6133 // string serial_num = 10;
6134 if (this->serial_num().size() > 0) {
6135 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6136 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
6137 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6138 "dmi.Component.serial_num");
6139 target =
6140 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6141 10, this->serial_num(), target);
6142 }
6143
6144 // string mfg_name = 11;
6145 if (this->mfg_name().size() > 0) {
6146 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6147 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
6148 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6149 "dmi.Component.mfg_name");
6150 target =
6151 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6152 11, this->mfg_name(), target);
6153 }
6154
6155 // string model_name = 12;
6156 if (this->model_name().size() > 0) {
6157 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6158 this->model_name().data(), static_cast<int>(this->model_name().length()),
6159 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6160 "dmi.Component.model_name");
6161 target =
6162 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6163 12, this->model_name(), target);
6164 }
6165
6166 // string alias = 13;
6167 if (this->alias().size() > 0) {
6168 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6169 this->alias().data(), static_cast<int>(this->alias().length()),
6170 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6171 "dmi.Component.alias");
6172 target =
6173 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6174 13, this->alias(), target);
6175 }
6176
6177 // string asset_id = 14;
6178 if (this->asset_id().size() > 0) {
6179 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
6180 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
6181 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
6182 "dmi.Component.asset_id");
6183 target =
6184 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6185 14, this->asset_id(), target);
6186 }
6187
6188 // bool is_fru = 15;
6189 if (this->is_fru() != 0) {
6190 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_fru(), target);
6191 }
6192
6193 // .google.protobuf.Timestamp mfg_date = 16;
6194 if (this->has_mfg_date()) {
6195 target = ::google::protobuf::internal::WireFormatLite::
6196 InternalWriteMessageToArray(
6197 16, HasBitSetters::mfg_date(this), target);
6198 }
6199
6200 // .dmi.Uri uri = 17;
6201 if (this->has_uri()) {
6202 target = ::google::protobuf::internal::WireFormatLite::
6203 InternalWriteMessageToArray(
6204 17, HasBitSetters::uri(this), target);
6205 }
6206
6207 // .dmi.Uuid uuid = 18;
6208 if (this->has_uuid()) {
6209 target = ::google::protobuf::internal::WireFormatLite::
6210 InternalWriteMessageToArray(
6211 18, HasBitSetters::uuid(this), target);
6212 }
6213
6214 // .dmi.ComponentState state = 19;
6215 if (this->has_state()) {
6216 target = ::google::protobuf::internal::WireFormatLite::
6217 InternalWriteMessageToArray(
6218 19, HasBitSetters::state(this), target);
6219 }
6220
6221 // repeated .dmi.ComponentSensorData sensor_data = 20;
6222 for (unsigned int i = 0,
6223 n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) {
6224 target = ::google::protobuf::internal::WireFormatLite::
6225 InternalWriteMessageToArray(
6226 20, this->sensor_data(static_cast<int>(i)), target);
6227 }
6228
6229 // .dmi.PortComponentAttributes port_attr = 50;
6230 if (has_port_attr()) {
6231 target = ::google::protobuf::internal::WireFormatLite::
6232 InternalWriteMessageToArray(
6233 50, HasBitSetters::port_attr(this), target);
6234 }
6235
6236 // .dmi.ContainerComponentAttributes container_attr = 51;
6237 if (has_container_attr()) {
6238 target = ::google::protobuf::internal::WireFormatLite::
6239 InternalWriteMessageToArray(
6240 51, HasBitSetters::container_attr(this), target);
6241 }
6242
6243 // .dmi.PsuComponentAttributes psu_attr = 52;
6244 if (has_psu_attr()) {
6245 target = ::google::protobuf::internal::WireFormatLite::
6246 InternalWriteMessageToArray(
6247 52, HasBitSetters::psu_attr(this), target);
6248 }
6249
6250 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
6251 if (has_transceiver_attr()) {
6252 target = ::google::protobuf::internal::WireFormatLite::
6253 InternalWriteMessageToArray(
6254 53, HasBitSetters::transceiver_attr(this), target);
6255 }
6256
6257 if (_internal_metadata_.have_unknown_fields()) {
6258 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6259 _internal_metadata_.unknown_fields(), target);
6260 }
6261 // @@protoc_insertion_point(serialize_to_array_end:dmi.Component)
6262 return target;
6263}
6264
6265size_t Component::ByteSizeLong() const {
6266// @@protoc_insertion_point(message_byte_size_start:dmi.Component)
6267 size_t total_size = 0;
6268
6269 if (_internal_metadata_.have_unknown_fields()) {
6270 total_size +=
6271 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6272 _internal_metadata_.unknown_fields());
6273 }
6274 ::google::protobuf::uint32 cached_has_bits = 0;
6275 // Prevent compiler warnings about cached_has_bits being unused
6276 (void) cached_has_bits;
6277
6278 // repeated .dmi.Component children = 6;
6279 {
6280 unsigned int count = static_cast<unsigned int>(this->children_size());
6281 total_size += 1UL * count;
6282 for (unsigned int i = 0; i < count; i++) {
6283 total_size +=
6284 ::google::protobuf::internal::WireFormatLite::MessageSize(
6285 this->children(static_cast<int>(i)));
6286 }
6287 }
6288
6289 // repeated .dmi.ComponentSensorData sensor_data = 20;
6290 {
6291 unsigned int count = static_cast<unsigned int>(this->sensor_data_size());
6292 total_size += 2UL * count;
6293 for (unsigned int i = 0; i < count; i++) {
6294 total_size +=
6295 ::google::protobuf::internal::WireFormatLite::MessageSize(
6296 this->sensor_data(static_cast<int>(i)));
6297 }
6298 }
6299
6300 // string name = 1;
6301 if (this->name().size() > 0) {
6302 total_size += 1 +
6303 ::google::protobuf::internal::WireFormatLite::StringSize(
6304 this->name());
6305 }
6306
6307 // string description = 3;
6308 if (this->description().size() > 0) {
6309 total_size += 1 +
6310 ::google::protobuf::internal::WireFormatLite::StringSize(
6311 this->description());
6312 }
6313
6314 // string parent = 4;
6315 if (this->parent().size() > 0) {
6316 total_size += 1 +
6317 ::google::protobuf::internal::WireFormatLite::StringSize(
6318 this->parent());
6319 }
6320
6321 // string hardware_rev = 7;
6322 if (this->hardware_rev().size() > 0) {
6323 total_size += 1 +
6324 ::google::protobuf::internal::WireFormatLite::StringSize(
6325 this->hardware_rev());
6326 }
6327
6328 // string firmware_rev = 8;
6329 if (this->firmware_rev().size() > 0) {
6330 total_size += 1 +
6331 ::google::protobuf::internal::WireFormatLite::StringSize(
6332 this->firmware_rev());
6333 }
6334
6335 // string software_rev = 9;
6336 if (this->software_rev().size() > 0) {
6337 total_size += 1 +
6338 ::google::protobuf::internal::WireFormatLite::StringSize(
6339 this->software_rev());
6340 }
6341
6342 // string serial_num = 10;
6343 if (this->serial_num().size() > 0) {
6344 total_size += 1 +
6345 ::google::protobuf::internal::WireFormatLite::StringSize(
6346 this->serial_num());
6347 }
6348
6349 // string mfg_name = 11;
6350 if (this->mfg_name().size() > 0) {
6351 total_size += 1 +
6352 ::google::protobuf::internal::WireFormatLite::StringSize(
6353 this->mfg_name());
6354 }
6355
6356 // string model_name = 12;
6357 if (this->model_name().size() > 0) {
6358 total_size += 1 +
6359 ::google::protobuf::internal::WireFormatLite::StringSize(
6360 this->model_name());
6361 }
6362
6363 // string alias = 13;
6364 if (this->alias().size() > 0) {
6365 total_size += 1 +
6366 ::google::protobuf::internal::WireFormatLite::StringSize(
6367 this->alias());
6368 }
6369
6370 // string asset_id = 14;
6371 if (this->asset_id().size() > 0) {
6372 total_size += 1 +
6373 ::google::protobuf::internal::WireFormatLite::StringSize(
6374 this->asset_id());
6375 }
6376
6377 // .google.protobuf.Timestamp mfg_date = 16;
6378 if (this->has_mfg_date()) {
6379 total_size += 2 +
6380 ::google::protobuf::internal::WireFormatLite::MessageSize(
6381 *mfg_date_);
6382 }
6383
6384 // .dmi.Uri uri = 17;
6385 if (this->has_uri()) {
6386 total_size += 2 +
6387 ::google::protobuf::internal::WireFormatLite::MessageSize(
6388 *uri_);
6389 }
6390
6391 // .dmi.Uuid uuid = 18;
6392 if (this->has_uuid()) {
6393 total_size += 2 +
6394 ::google::protobuf::internal::WireFormatLite::MessageSize(
6395 *uuid_);
6396 }
6397
6398 // .dmi.ComponentState state = 19;
6399 if (this->has_state()) {
6400 total_size += 2 +
6401 ::google::protobuf::internal::WireFormatLite::MessageSize(
6402 *state_);
6403 }
6404
6405 // .dmi.ComponentType class = 2;
6406 if (this->class_() != 0) {
6407 total_size += 1 +
6408 ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_());
6409 }
6410
6411 // int32 parent_rel_pos = 5;
6412 if (this->parent_rel_pos() != 0) {
6413 total_size += 1 +
6414 ::google::protobuf::internal::WireFormatLite::Int32Size(
6415 this->parent_rel_pos());
6416 }
6417
6418 // bool is_fru = 15;
6419 if (this->is_fru() != 0) {
6420 total_size += 1 + 1;
6421 }
6422
6423 switch (specific_case()) {
6424 // .dmi.PortComponentAttributes port_attr = 50;
6425 case kPortAttr: {
6426 total_size += 2 +
6427 ::google::protobuf::internal::WireFormatLite::MessageSize(
6428 *specific_.port_attr_);
6429 break;
6430 }
6431 // .dmi.ContainerComponentAttributes container_attr = 51;
6432 case kContainerAttr: {
6433 total_size += 2 +
6434 ::google::protobuf::internal::WireFormatLite::MessageSize(
6435 *specific_.container_attr_);
6436 break;
6437 }
6438 // .dmi.PsuComponentAttributes psu_attr = 52;
6439 case kPsuAttr: {
6440 total_size += 2 +
6441 ::google::protobuf::internal::WireFormatLite::MessageSize(
6442 *specific_.psu_attr_);
6443 break;
6444 }
6445 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
6446 case kTransceiverAttr: {
6447 total_size += 2 +
6448 ::google::protobuf::internal::WireFormatLite::MessageSize(
6449 *specific_.transceiver_attr_);
6450 break;
6451 }
6452 case SPECIFIC_NOT_SET: {
6453 break;
6454 }
6455 }
6456 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6457 SetCachedSize(cached_size);
6458 return total_size;
6459}
6460
6461void Component::MergeFrom(const ::google::protobuf::Message& from) {
6462// @@protoc_insertion_point(generalized_merge_from_start:dmi.Component)
6463 GOOGLE_DCHECK_NE(&from, this);
6464 const Component* source =
6465 ::google::protobuf::DynamicCastToGenerated<Component>(
6466 &from);
6467 if (source == nullptr) {
6468 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Component)
6469 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6470 } else {
6471 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Component)
6472 MergeFrom(*source);
6473 }
6474}
6475
6476void Component::MergeFrom(const Component& from) {
6477// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Component)
6478 GOOGLE_DCHECK_NE(&from, this);
6479 _internal_metadata_.MergeFrom(from._internal_metadata_);
6480 ::google::protobuf::uint32 cached_has_bits = 0;
6481 (void) cached_has_bits;
6482
6483 children_.MergeFrom(from.children_);
6484 sensor_data_.MergeFrom(from.sensor_data_);
6485 if (from.name().size() > 0) {
6486
6487 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6488 }
6489 if (from.description().size() > 0) {
6490
6491 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
6492 }
6493 if (from.parent().size() > 0) {
6494
6495 parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
6496 }
6497 if (from.hardware_rev().size() > 0) {
6498
6499 hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_);
6500 }
6501 if (from.firmware_rev().size() > 0) {
6502
6503 firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_);
6504 }
6505 if (from.software_rev().size() > 0) {
6506
6507 software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_);
6508 }
6509 if (from.serial_num().size() > 0) {
6510
6511 serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_);
6512 }
6513 if (from.mfg_name().size() > 0) {
6514
6515 mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_);
6516 }
6517 if (from.model_name().size() > 0) {
6518
6519 model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_);
6520 }
6521 if (from.alias().size() > 0) {
6522
6523 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
6524 }
6525 if (from.asset_id().size() > 0) {
6526
6527 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
6528 }
6529 if (from.has_mfg_date()) {
6530 mutable_mfg_date()->::google::protobuf::Timestamp::MergeFrom(from.mfg_date());
6531 }
6532 if (from.has_uri()) {
6533 mutable_uri()->::dmi::Uri::MergeFrom(from.uri());
6534 }
6535 if (from.has_uuid()) {
6536 mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid());
6537 }
6538 if (from.has_state()) {
6539 mutable_state()->::dmi::ComponentState::MergeFrom(from.state());
6540 }
6541 if (from.class_() != 0) {
6542 set_class_(from.class_());
6543 }
6544 if (from.parent_rel_pos() != 0) {
6545 set_parent_rel_pos(from.parent_rel_pos());
6546 }
6547 if (from.is_fru() != 0) {
6548 set_is_fru(from.is_fru());
6549 }
6550 switch (from.specific_case()) {
6551 case kPortAttr: {
6552 mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr());
6553 break;
6554 }
6555 case kContainerAttr: {
6556 mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr());
6557 break;
6558 }
6559 case kPsuAttr: {
6560 mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr());
6561 break;
6562 }
6563 case kTransceiverAttr: {
6564 mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr());
6565 break;
6566 }
6567 case SPECIFIC_NOT_SET: {
6568 break;
6569 }
6570 }
6571}
6572
6573void Component::CopyFrom(const ::google::protobuf::Message& from) {
6574// @@protoc_insertion_point(generalized_copy_from_start:dmi.Component)
6575 if (&from == this) return;
6576 Clear();
6577 MergeFrom(from);
6578}
6579
6580void Component::CopyFrom(const Component& from) {
6581// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Component)
6582 if (&from == this) return;
6583 Clear();
6584 MergeFrom(from);
6585}
6586
6587bool Component::IsInitialized() const {
6588 return true;
6589}
6590
6591void Component::Swap(Component* other) {
6592 if (other == this) return;
6593 InternalSwap(other);
6594}
6595void Component::InternalSwap(Component* other) {
6596 using std::swap;
6597 _internal_metadata_.Swap(&other->_internal_metadata_);
6598 CastToBase(&children_)->InternalSwap(CastToBase(&other->children_));
6599 CastToBase(&sensor_data_)->InternalSwap(CastToBase(&other->sensor_data_));
6600 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6601 GetArenaNoVirtual());
6602 description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6603 GetArenaNoVirtual());
6604 parent_.Swap(&other->parent_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6605 GetArenaNoVirtual());
6606 hardware_rev_.Swap(&other->hardware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6607 GetArenaNoVirtual());
6608 firmware_rev_.Swap(&other->firmware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6609 GetArenaNoVirtual());
6610 software_rev_.Swap(&other->software_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6611 GetArenaNoVirtual());
6612 serial_num_.Swap(&other->serial_num_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6613 GetArenaNoVirtual());
6614 mfg_name_.Swap(&other->mfg_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6615 GetArenaNoVirtual());
6616 model_name_.Swap(&other->model_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6617 GetArenaNoVirtual());
6618 alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6619 GetArenaNoVirtual());
6620 asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
6621 GetArenaNoVirtual());
6622 swap(mfg_date_, other->mfg_date_);
6623 swap(uri_, other->uri_);
6624 swap(uuid_, other->uuid_);
6625 swap(state_, other->state_);
6626 swap(class__, other->class__);
6627 swap(parent_rel_pos_, other->parent_rel_pos_);
6628 swap(is_fru_, other->is_fru_);
6629 swap(specific_, other->specific_);
6630 swap(_oneof_case_[0], other->_oneof_case_[0]);
6631}
6632
6633::google::protobuf::Metadata Component::GetMetadata() const {
6634 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
6635 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
6636}
6637
6638
6639// ===================================================================
6640
6641void Hardware::InitAsDefaultInstance() {
6642 ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_change_ = const_cast< ::google::protobuf::Timestamp*>(
6643 ::google::protobuf::Timestamp::internal_default_instance());
6644 ::dmi::_Hardware_default_instance_._instance.get_mutable()->root_ = const_cast< ::dmi::Component*>(
6645 ::dmi::Component::internal_default_instance());
6646 ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_booted_ = const_cast< ::google::protobuf::Timestamp*>(
6647 ::google::protobuf::Timestamp::internal_default_instance());
6648}
6649class Hardware::HasBitSetters {
6650 public:
6651 static const ::google::protobuf::Timestamp& last_change(const Hardware* msg);
6652 static const ::dmi::Component& root(const Hardware* msg);
6653 static const ::google::protobuf::Timestamp& last_booted(const Hardware* msg);
6654};
6655
6656const ::google::protobuf::Timestamp&
6657Hardware::HasBitSetters::last_change(const Hardware* msg) {
6658 return *msg->last_change_;
6659}
6660const ::dmi::Component&
6661Hardware::HasBitSetters::root(const Hardware* msg) {
6662 return *msg->root_;
6663}
6664const ::google::protobuf::Timestamp&
6665Hardware::HasBitSetters::last_booted(const Hardware* msg) {
6666 return *msg->last_booted_;
6667}
6668void Hardware::clear_last_change() {
6669 if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) {
6670 delete last_change_;
6671 }
6672 last_change_ = nullptr;
6673}
6674void Hardware::clear_last_booted() {
6675 if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) {
6676 delete last_booted_;
6677 }
6678 last_booted_ = nullptr;
6679}
6680#if !defined(_MSC_VER) || _MSC_VER >= 1900
6681const int Hardware::kLastChangeFieldNumber;
6682const int Hardware::kRootFieldNumber;
6683const int Hardware::kLastBootedFieldNumber;
6684#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6685
6686Hardware::Hardware()
6687 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6688 SharedCtor();
6689 // @@protoc_insertion_point(constructor:dmi.Hardware)
6690}
6691Hardware::Hardware(const Hardware& from)
6692 : ::google::protobuf::Message(),
6693 _internal_metadata_(nullptr) {
6694 _internal_metadata_.MergeFrom(from._internal_metadata_);
6695 if (from.has_last_change()) {
6696 last_change_ = new ::google::protobuf::Timestamp(*from.last_change_);
6697 } else {
6698 last_change_ = nullptr;
6699 }
6700 if (from.has_root()) {
6701 root_ = new ::dmi::Component(*from.root_);
6702 } else {
6703 root_ = nullptr;
6704 }
6705 if (from.has_last_booted()) {
6706 last_booted_ = new ::google::protobuf::Timestamp(*from.last_booted_);
6707 } else {
6708 last_booted_ = nullptr;
6709 }
6710 // @@protoc_insertion_point(copy_constructor:dmi.Hardware)
6711}
6712
6713void Hardware::SharedCtor() {
6714 ::google::protobuf::internal::InitSCC(
6715 &scc_info_Hardware_dmi_2fhw_2eproto.base);
6716 ::memset(&last_change_, 0, static_cast<size_t>(
6717 reinterpret_cast<char*>(&last_booted_) -
6718 reinterpret_cast<char*>(&last_change_)) + sizeof(last_booted_));
6719}
6720
6721Hardware::~Hardware() {
6722 // @@protoc_insertion_point(destructor:dmi.Hardware)
6723 SharedDtor();
6724}
6725
6726void Hardware::SharedDtor() {
6727 if (this != internal_default_instance()) delete last_change_;
6728 if (this != internal_default_instance()) delete root_;
6729 if (this != internal_default_instance()) delete last_booted_;
6730}
6731
6732void Hardware::SetCachedSize(int size) const {
6733 _cached_size_.Set(size);
6734}
6735const Hardware& Hardware::default_instance() {
6736 ::google::protobuf::internal::InitSCC(&::scc_info_Hardware_dmi_2fhw_2eproto.base);
6737 return *internal_default_instance();
6738}
6739
6740
6741void Hardware::Clear() {
6742// @@protoc_insertion_point(message_clear_start:dmi.Hardware)
6743 ::google::protobuf::uint32 cached_has_bits = 0;
6744 // Prevent compiler warnings about cached_has_bits being unused
6745 (void) cached_has_bits;
6746
6747 if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) {
6748 delete last_change_;
6749 }
6750 last_change_ = nullptr;
6751 if (GetArenaNoVirtual() == nullptr && root_ != nullptr) {
6752 delete root_;
6753 }
6754 root_ = nullptr;
6755 if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) {
6756 delete last_booted_;
6757 }
6758 last_booted_ = nullptr;
6759 _internal_metadata_.Clear();
6760}
6761
6762#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6763const char* Hardware::_InternalParse(const char* begin, const char* end, void* object,
6764 ::google::protobuf::internal::ParseContext* ctx) {
6765 auto msg = static_cast<Hardware*>(object);
6766 ::google::protobuf::int32 size; (void)size;
6767 int depth; (void)depth;
6768 ::google::protobuf::uint32 tag;
6769 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6770 auto ptr = begin;
6771 while (ptr < end) {
6772 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6773 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6774 switch (tag >> 3) {
6775 // .google.protobuf.Timestamp last_change = 1;
6776 case 1: {
6777 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
6778 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6779 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6780 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
6781 object = msg->mutable_last_change();
6782 if (size > end - ptr) goto len_delim_till_end;
6783 ptr += size;
6784 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6785 {parser_till_end, object}, ptr - size, ptr));
6786 break;
6787 }
6788 // .dmi.Component root = 2;
6789 case 2: {
6790 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
6791 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6792 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6793 parser_till_end = ::dmi::Component::_InternalParse;
6794 object = msg->mutable_root();
6795 if (size > end - ptr) goto len_delim_till_end;
6796 ptr += size;
6797 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6798 {parser_till_end, object}, ptr - size, ptr));
6799 break;
6800 }
6801 // .google.protobuf.Timestamp last_booted = 3;
6802 case 3: {
6803 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6804 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6805 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6806 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
6807 object = msg->mutable_last_booted();
6808 if (size > end - ptr) goto len_delim_till_end;
6809 ptr += size;
6810 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6811 {parser_till_end, object}, ptr - size, ptr));
6812 break;
6813 }
6814 default: {
6815 handle_unusual:
6816 if ((tag & 7) == 4 || tag == 0) {
6817 ctx->EndGroup(tag);
6818 return ptr;
6819 }
6820 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
6821 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
6822 ptr = res.first;
6823 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
6824 if (res.second) return ptr;
6825 }
6826 } // switch
6827 } // while
6828 return ptr;
6829len_delim_till_end:
6830 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6831 {parser_till_end, object}, size);
6832}
6833#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6834bool Hardware::MergePartialFromCodedStream(
6835 ::google::protobuf::io::CodedInputStream* input) {
6836#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6837 ::google::protobuf::uint32 tag;
6838 // @@protoc_insertion_point(parse_start:dmi.Hardware)
6839 for (;;) {
6840 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6841 tag = p.first;
6842 if (!p.second) goto handle_unusual;
6843 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6844 // .google.protobuf.Timestamp last_change = 1;
6845 case 1: {
6846 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
6847 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6848 input, mutable_last_change()));
6849 } else {
6850 goto handle_unusual;
6851 }
6852 break;
6853 }
6854
6855 // .dmi.Component root = 2;
6856 case 2: {
6857 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
6858 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6859 input, mutable_root()));
6860 } else {
6861 goto handle_unusual;
6862 }
6863 break;
6864 }
6865
6866 // .google.protobuf.Timestamp last_booted = 3;
6867 case 3: {
6868 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
6869 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6870 input, mutable_last_booted()));
6871 } else {
6872 goto handle_unusual;
6873 }
6874 break;
6875 }
6876
6877 default: {
6878 handle_unusual:
6879 if (tag == 0) {
6880 goto success;
6881 }
6882 DO_(::google::protobuf::internal::WireFormat::SkipField(
6883 input, tag, _internal_metadata_.mutable_unknown_fields()));
6884 break;
6885 }
6886 }
6887 }
6888success:
6889 // @@protoc_insertion_point(parse_success:dmi.Hardware)
6890 return true;
6891failure:
6892 // @@protoc_insertion_point(parse_failure:dmi.Hardware)
6893 return false;
6894#undef DO_
6895}
6896#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6897
6898void Hardware::SerializeWithCachedSizes(
6899 ::google::protobuf::io::CodedOutputStream* output) const {
6900 // @@protoc_insertion_point(serialize_start:dmi.Hardware)
6901 ::google::protobuf::uint32 cached_has_bits = 0;
6902 (void) cached_has_bits;
6903
6904 // .google.protobuf.Timestamp last_change = 1;
6905 if (this->has_last_change()) {
6906 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6907 1, HasBitSetters::last_change(this), output);
6908 }
6909
6910 // .dmi.Component root = 2;
6911 if (this->has_root()) {
6912 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6913 2, HasBitSetters::root(this), output);
6914 }
6915
6916 // .google.protobuf.Timestamp last_booted = 3;
6917 if (this->has_last_booted()) {
6918 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6919 3, HasBitSetters::last_booted(this), output);
6920 }
6921
6922 if (_internal_metadata_.have_unknown_fields()) {
6923 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6924 _internal_metadata_.unknown_fields(), output);
6925 }
6926 // @@protoc_insertion_point(serialize_end:dmi.Hardware)
6927}
6928
6929::google::protobuf::uint8* Hardware::InternalSerializeWithCachedSizesToArray(
6930 ::google::protobuf::uint8* target) const {
6931 // @@protoc_insertion_point(serialize_to_array_start:dmi.Hardware)
6932 ::google::protobuf::uint32 cached_has_bits = 0;
6933 (void) cached_has_bits;
6934
6935 // .google.protobuf.Timestamp last_change = 1;
6936 if (this->has_last_change()) {
6937 target = ::google::protobuf::internal::WireFormatLite::
6938 InternalWriteMessageToArray(
6939 1, HasBitSetters::last_change(this), target);
6940 }
6941
6942 // .dmi.Component root = 2;
6943 if (this->has_root()) {
6944 target = ::google::protobuf::internal::WireFormatLite::
6945 InternalWriteMessageToArray(
6946 2, HasBitSetters::root(this), target);
6947 }
6948
6949 // .google.protobuf.Timestamp last_booted = 3;
6950 if (this->has_last_booted()) {
6951 target = ::google::protobuf::internal::WireFormatLite::
6952 InternalWriteMessageToArray(
6953 3, HasBitSetters::last_booted(this), target);
6954 }
6955
6956 if (_internal_metadata_.have_unknown_fields()) {
6957 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6958 _internal_metadata_.unknown_fields(), target);
6959 }
6960 // @@protoc_insertion_point(serialize_to_array_end:dmi.Hardware)
6961 return target;
6962}
6963
6964size_t Hardware::ByteSizeLong() const {
6965// @@protoc_insertion_point(message_byte_size_start:dmi.Hardware)
6966 size_t total_size = 0;
6967
6968 if (_internal_metadata_.have_unknown_fields()) {
6969 total_size +=
6970 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6971 _internal_metadata_.unknown_fields());
6972 }
6973 ::google::protobuf::uint32 cached_has_bits = 0;
6974 // Prevent compiler warnings about cached_has_bits being unused
6975 (void) cached_has_bits;
6976
6977 // .google.protobuf.Timestamp last_change = 1;
6978 if (this->has_last_change()) {
6979 total_size += 1 +
6980 ::google::protobuf::internal::WireFormatLite::MessageSize(
6981 *last_change_);
6982 }
6983
6984 // .dmi.Component root = 2;
6985 if (this->has_root()) {
6986 total_size += 1 +
6987 ::google::protobuf::internal::WireFormatLite::MessageSize(
6988 *root_);
6989 }
6990
6991 // .google.protobuf.Timestamp last_booted = 3;
6992 if (this->has_last_booted()) {
6993 total_size += 1 +
6994 ::google::protobuf::internal::WireFormatLite::MessageSize(
6995 *last_booted_);
6996 }
6997
6998 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6999 SetCachedSize(cached_size);
7000 return total_size;
7001}
7002
7003void Hardware::MergeFrom(const ::google::protobuf::Message& from) {
7004// @@protoc_insertion_point(generalized_merge_from_start:dmi.Hardware)
7005 GOOGLE_DCHECK_NE(&from, this);
7006 const Hardware* source =
7007 ::google::protobuf::DynamicCastToGenerated<Hardware>(
7008 &from);
7009 if (source == nullptr) {
7010 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Hardware)
7011 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7012 } else {
7013 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Hardware)
7014 MergeFrom(*source);
7015 }
7016}
7017
7018void Hardware::MergeFrom(const Hardware& from) {
7019// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Hardware)
7020 GOOGLE_DCHECK_NE(&from, this);
7021 _internal_metadata_.MergeFrom(from._internal_metadata_);
7022 ::google::protobuf::uint32 cached_has_bits = 0;
7023 (void) cached_has_bits;
7024
7025 if (from.has_last_change()) {
7026 mutable_last_change()->::google::protobuf::Timestamp::MergeFrom(from.last_change());
7027 }
7028 if (from.has_root()) {
7029 mutable_root()->::dmi::Component::MergeFrom(from.root());
7030 }
7031 if (from.has_last_booted()) {
7032 mutable_last_booted()->::google::protobuf::Timestamp::MergeFrom(from.last_booted());
7033 }
7034}
7035
7036void Hardware::CopyFrom(const ::google::protobuf::Message& from) {
7037// @@protoc_insertion_point(generalized_copy_from_start:dmi.Hardware)
7038 if (&from == this) return;
7039 Clear();
7040 MergeFrom(from);
7041}
7042
7043void Hardware::CopyFrom(const Hardware& from) {
7044// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Hardware)
7045 if (&from == this) return;
7046 Clear();
7047 MergeFrom(from);
7048}
7049
7050bool Hardware::IsInitialized() const {
7051 return true;
7052}
7053
7054void Hardware::Swap(Hardware* other) {
7055 if (other == this) return;
7056 InternalSwap(other);
7057}
7058void Hardware::InternalSwap(Hardware* other) {
7059 using std::swap;
7060 _internal_metadata_.Swap(&other->_internal_metadata_);
7061 swap(last_change_, other->last_change_);
7062 swap(root_, other->root_);
7063 swap(last_booted_, other->last_booted_);
7064}
7065
7066::google::protobuf::Metadata Hardware::GetMetadata() const {
7067 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
7068 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
7069}
7070
7071
7072// ===================================================================
7073
7074void ModifiableComponent::InitAsDefaultInstance() {
7075 ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->parent_ = const_cast< ::dmi::Component*>(
7076 ::dmi::Component::internal_default_instance());
7077 ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>(
7078 ::dmi::Uri::internal_default_instance());
7079}
7080class ModifiableComponent::HasBitSetters {
7081 public:
7082 static const ::dmi::Component& parent(const ModifiableComponent* msg);
7083 static const ::dmi::Uri& uri(const ModifiableComponent* msg);
7084};
7085
7086const ::dmi::Component&
7087ModifiableComponent::HasBitSetters::parent(const ModifiableComponent* msg) {
7088 return *msg->parent_;
7089}
7090const ::dmi::Uri&
7091ModifiableComponent::HasBitSetters::uri(const ModifiableComponent* msg) {
7092 return *msg->uri_;
7093}
7094#if !defined(_MSC_VER) || _MSC_VER >= 1900
7095const int ModifiableComponent::kNameFieldNumber;
7096const int ModifiableComponent::kClassFieldNumber;
7097const int ModifiableComponent::kParentFieldNumber;
7098const int ModifiableComponent::kParentRelPosFieldNumber;
7099const int ModifiableComponent::kAliasFieldNumber;
7100const int ModifiableComponent::kAssetIdFieldNumber;
7101const int ModifiableComponent::kUriFieldNumber;
7102const int ModifiableComponent::kAdminStateFieldNumber;
7103#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
7104
7105ModifiableComponent::ModifiableComponent()
7106 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
7107 SharedCtor();
7108 // @@protoc_insertion_point(constructor:dmi.ModifiableComponent)
7109}
7110ModifiableComponent::ModifiableComponent(const ModifiableComponent& from)
7111 : ::google::protobuf::Message(),
7112 _internal_metadata_(nullptr) {
7113 _internal_metadata_.MergeFrom(from._internal_metadata_);
7114 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7115 if (from.name().size() > 0) {
7116 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7117 }
7118 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7119 if (from.alias().size() > 0) {
7120 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
7121 }
7122 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7123 if (from.asset_id().size() > 0) {
7124 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
7125 }
7126 if (from.has_parent()) {
7127 parent_ = new ::dmi::Component(*from.parent_);
7128 } else {
7129 parent_ = nullptr;
7130 }
7131 if (from.has_uri()) {
7132 uri_ = new ::dmi::Uri(*from.uri_);
7133 } else {
7134 uri_ = nullptr;
7135 }
7136 ::memcpy(&class__, &from.class__,
7137 static_cast<size_t>(reinterpret_cast<char*>(&admin_state_) -
7138 reinterpret_cast<char*>(&class__)) + sizeof(admin_state_));
7139 // @@protoc_insertion_point(copy_constructor:dmi.ModifiableComponent)
7140}
7141
7142void ModifiableComponent::SharedCtor() {
7143 ::google::protobuf::internal::InitSCC(
7144 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
7145 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7146 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7147 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7148 ::memset(&parent_, 0, static_cast<size_t>(
7149 reinterpret_cast<char*>(&admin_state_) -
7150 reinterpret_cast<char*>(&parent_)) + sizeof(admin_state_));
7151}
7152
7153ModifiableComponent::~ModifiableComponent() {
7154 // @@protoc_insertion_point(destructor:dmi.ModifiableComponent)
7155 SharedDtor();
7156}
7157
7158void ModifiableComponent::SharedDtor() {
7159 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7160 alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7161 asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7162 if (this != internal_default_instance()) delete parent_;
7163 if (this != internal_default_instance()) delete uri_;
7164}
7165
7166void ModifiableComponent::SetCachedSize(int size) const {
7167 _cached_size_.Set(size);
7168}
7169const ModifiableComponent& ModifiableComponent::default_instance() {
7170 ::google::protobuf::internal::InitSCC(&::scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
7171 return *internal_default_instance();
7172}
7173
7174
7175void ModifiableComponent::Clear() {
7176// @@protoc_insertion_point(message_clear_start:dmi.ModifiableComponent)
7177 ::google::protobuf::uint32 cached_has_bits = 0;
7178 // Prevent compiler warnings about cached_has_bits being unused
7179 (void) cached_has_bits;
7180
7181 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7182 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7183 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7184 if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) {
7185 delete parent_;
7186 }
7187 parent_ = nullptr;
7188 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
7189 delete uri_;
7190 }
7191 uri_ = nullptr;
7192 ::memset(&class__, 0, static_cast<size_t>(
7193 reinterpret_cast<char*>(&admin_state_) -
7194 reinterpret_cast<char*>(&class__)) + sizeof(admin_state_));
7195 _internal_metadata_.Clear();
7196}
7197
7198#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7199const char* ModifiableComponent::_InternalParse(const char* begin, const char* end, void* object,
7200 ::google::protobuf::internal::ParseContext* ctx) {
7201 auto msg = static_cast<ModifiableComponent*>(object);
7202 ::google::protobuf::int32 size; (void)size;
7203 int depth; (void)depth;
7204 ::google::protobuf::uint32 tag;
7205 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
7206 auto ptr = begin;
7207 while (ptr < end) {
7208 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
7209 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7210 switch (tag >> 3) {
7211 // string name = 1;
7212 case 1: {
7213 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
7214 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7215 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7216 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.name");
7217 object = msg->mutable_name();
7218 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7219 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7220 goto string_till_end;
7221 }
7222 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7223 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7224 ptr += size;
7225 break;
7226 }
7227 // .dmi.ComponentType class = 2;
7228 case 2: {
7229 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
7230 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7231 msg->set_class_(static_cast<::dmi::ComponentType>(val));
7232 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7233 break;
7234 }
7235 // .dmi.Component parent = 3;
7236 case 3: {
7237 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
7238 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7239 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7240 parser_till_end = ::dmi::Component::_InternalParse;
7241 object = msg->mutable_parent();
7242 if (size > end - ptr) goto len_delim_till_end;
7243 ptr += size;
7244 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7245 {parser_till_end, object}, ptr - size, ptr));
7246 break;
7247 }
7248 // int32 parent_rel_pos = 4;
7249 case 4: {
7250 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
7251 msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr));
7252 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7253 break;
7254 }
7255 // string alias = 5;
7256 case 5: {
7257 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
7258 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7259 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7260 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.alias");
7261 object = msg->mutable_alias();
7262 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7263 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7264 goto string_till_end;
7265 }
7266 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7267 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7268 ptr += size;
7269 break;
7270 }
7271 // string asset_id = 6;
7272 case 6: {
7273 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
7274 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7275 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7276 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.asset_id");
7277 object = msg->mutable_asset_id();
7278 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7279 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7280 goto string_till_end;
7281 }
7282 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7283 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7284 ptr += size;
7285 break;
7286 }
7287 // .dmi.Uri uri = 7;
7288 case 7: {
7289 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
7290 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7291 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7292 parser_till_end = ::dmi::Uri::_InternalParse;
7293 object = msg->mutable_uri();
7294 if (size > end - ptr) goto len_delim_till_end;
7295 ptr += size;
7296 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7297 {parser_till_end, object}, ptr - size, ptr));
7298 break;
7299 }
7300 // .dmi.ComponentAdminState admin_state = 8;
7301 case 8: {
7302 if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual;
7303 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
7304 msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val));
7305 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7306 break;
7307 }
7308 default: {
7309 handle_unusual:
7310 if ((tag & 7) == 4 || tag == 0) {
7311 ctx->EndGroup(tag);
7312 return ptr;
7313 }
7314 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7315 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7316 ptr = res.first;
7317 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7318 if (res.second) return ptr;
7319 }
7320 } // switch
7321 } // while
7322 return ptr;
7323string_till_end:
7324 static_cast<::std::string*>(object)->clear();
7325 static_cast<::std::string*>(object)->reserve(size);
7326 goto len_delim_till_end;
7327len_delim_till_end:
7328 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7329 {parser_till_end, object}, size);
7330}
7331#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7332bool ModifiableComponent::MergePartialFromCodedStream(
7333 ::google::protobuf::io::CodedInputStream* input) {
7334#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7335 ::google::protobuf::uint32 tag;
7336 // @@protoc_insertion_point(parse_start:dmi.ModifiableComponent)
7337 for (;;) {
7338 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7339 tag = p.first;
7340 if (!p.second) goto handle_unusual;
7341 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7342 // string name = 1;
7343 case 1: {
7344 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7345 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7346 input, this->mutable_name()));
7347 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7348 this->name().data(), static_cast<int>(this->name().length()),
7349 ::google::protobuf::internal::WireFormatLite::PARSE,
7350 "dmi.ModifiableComponent.name"));
7351 } else {
7352 goto handle_unusual;
7353 }
7354 break;
7355 }
7356
7357 // .dmi.ComponentType class = 2;
7358 case 2: {
7359 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7360 int value = 0;
7361 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7362 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7363 input, &value)));
7364 set_class_(static_cast< ::dmi::ComponentType >(value));
7365 } else {
7366 goto handle_unusual;
7367 }
7368 break;
7369 }
7370
7371 // .dmi.Component parent = 3;
7372 case 3: {
7373 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7374 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7375 input, mutable_parent()));
7376 } else {
7377 goto handle_unusual;
7378 }
7379 break;
7380 }
7381
7382 // int32 parent_rel_pos = 4;
7383 case 4: {
7384 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
7385
7386 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7387 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7388 input, &parent_rel_pos_)));
7389 } else {
7390 goto handle_unusual;
7391 }
7392 break;
7393 }
7394
7395 // string alias = 5;
7396 case 5: {
7397 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
7398 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7399 input, this->mutable_alias()));
7400 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7401 this->alias().data(), static_cast<int>(this->alias().length()),
7402 ::google::protobuf::internal::WireFormatLite::PARSE,
7403 "dmi.ModifiableComponent.alias"));
7404 } else {
7405 goto handle_unusual;
7406 }
7407 break;
7408 }
7409
7410 // string asset_id = 6;
7411 case 6: {
7412 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
7413 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7414 input, this->mutable_asset_id()));
7415 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7416 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7417 ::google::protobuf::internal::WireFormatLite::PARSE,
7418 "dmi.ModifiableComponent.asset_id"));
7419 } else {
7420 goto handle_unusual;
7421 }
7422 break;
7423 }
7424
7425 // .dmi.Uri uri = 7;
7426 case 7: {
7427 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
7428 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7429 input, mutable_uri()));
7430 } else {
7431 goto handle_unusual;
7432 }
7433 break;
7434 }
7435
7436 // .dmi.ComponentAdminState admin_state = 8;
7437 case 8: {
7438 if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) {
7439 int value = 0;
7440 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7441 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7442 input, &value)));
7443 set_admin_state(static_cast< ::dmi::ComponentAdminState >(value));
7444 } else {
7445 goto handle_unusual;
7446 }
7447 break;
7448 }
7449
7450 default: {
7451 handle_unusual:
7452 if (tag == 0) {
7453 goto success;
7454 }
7455 DO_(::google::protobuf::internal::WireFormat::SkipField(
7456 input, tag, _internal_metadata_.mutable_unknown_fields()));
7457 break;
7458 }
7459 }
7460 }
7461success:
7462 // @@protoc_insertion_point(parse_success:dmi.ModifiableComponent)
7463 return true;
7464failure:
7465 // @@protoc_insertion_point(parse_failure:dmi.ModifiableComponent)
7466 return false;
7467#undef DO_
7468}
7469#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7470
7471void ModifiableComponent::SerializeWithCachedSizes(
7472 ::google::protobuf::io::CodedOutputStream* output) const {
7473 // @@protoc_insertion_point(serialize_start:dmi.ModifiableComponent)
7474 ::google::protobuf::uint32 cached_has_bits = 0;
7475 (void) cached_has_bits;
7476
7477 // string name = 1;
7478 if (this->name().size() > 0) {
7479 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7480 this->name().data(), static_cast<int>(this->name().length()),
7481 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7482 "dmi.ModifiableComponent.name");
7483 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7484 1, this->name(), output);
7485 }
7486
7487 // .dmi.ComponentType class = 2;
7488 if (this->class_() != 0) {
7489 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7490 2, this->class_(), output);
7491 }
7492
7493 // .dmi.Component parent = 3;
7494 if (this->has_parent()) {
7495 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7496 3, HasBitSetters::parent(this), output);
7497 }
7498
7499 // int32 parent_rel_pos = 4;
7500 if (this->parent_rel_pos() != 0) {
7501 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parent_rel_pos(), output);
7502 }
7503
7504 // string alias = 5;
7505 if (this->alias().size() > 0) {
7506 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7507 this->alias().data(), static_cast<int>(this->alias().length()),
7508 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7509 "dmi.ModifiableComponent.alias");
7510 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7511 5, this->alias(), output);
7512 }
7513
7514 // string asset_id = 6;
7515 if (this->asset_id().size() > 0) {
7516 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7517 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7518 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7519 "dmi.ModifiableComponent.asset_id");
7520 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7521 6, this->asset_id(), output);
7522 }
7523
7524 // .dmi.Uri uri = 7;
7525 if (this->has_uri()) {
7526 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7527 7, HasBitSetters::uri(this), output);
7528 }
7529
7530 // .dmi.ComponentAdminState admin_state = 8;
7531 if (this->admin_state() != 0) {
7532 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7533 8, this->admin_state(), output);
7534 }
7535
7536 if (_internal_metadata_.have_unknown_fields()) {
7537 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7538 _internal_metadata_.unknown_fields(), output);
7539 }
7540 // @@protoc_insertion_point(serialize_end:dmi.ModifiableComponent)
7541}
7542
7543::google::protobuf::uint8* ModifiableComponent::InternalSerializeWithCachedSizesToArray(
7544 ::google::protobuf::uint8* target) const {
7545 // @@protoc_insertion_point(serialize_to_array_start:dmi.ModifiableComponent)
7546 ::google::protobuf::uint32 cached_has_bits = 0;
7547 (void) cached_has_bits;
7548
7549 // string name = 1;
7550 if (this->name().size() > 0) {
7551 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7552 this->name().data(), static_cast<int>(this->name().length()),
7553 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7554 "dmi.ModifiableComponent.name");
7555 target =
7556 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7557 1, this->name(), target);
7558 }
7559
7560 // .dmi.ComponentType class = 2;
7561 if (this->class_() != 0) {
7562 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7563 2, this->class_(), target);
7564 }
7565
7566 // .dmi.Component parent = 3;
7567 if (this->has_parent()) {
7568 target = ::google::protobuf::internal::WireFormatLite::
7569 InternalWriteMessageToArray(
7570 3, HasBitSetters::parent(this), target);
7571 }
7572
7573 // int32 parent_rel_pos = 4;
7574 if (this->parent_rel_pos() != 0) {
7575 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parent_rel_pos(), target);
7576 }
7577
7578 // string alias = 5;
7579 if (this->alias().size() > 0) {
7580 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7581 this->alias().data(), static_cast<int>(this->alias().length()),
7582 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7583 "dmi.ModifiableComponent.alias");
7584 target =
7585 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7586 5, this->alias(), target);
7587 }
7588
7589 // string asset_id = 6;
7590 if (this->asset_id().size() > 0) {
7591 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7592 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7593 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7594 "dmi.ModifiableComponent.asset_id");
7595 target =
7596 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7597 6, this->asset_id(), target);
7598 }
7599
7600 // .dmi.Uri uri = 7;
7601 if (this->has_uri()) {
7602 target = ::google::protobuf::internal::WireFormatLite::
7603 InternalWriteMessageToArray(
7604 7, HasBitSetters::uri(this), target);
7605 }
7606
7607 // .dmi.ComponentAdminState admin_state = 8;
7608 if (this->admin_state() != 0) {
7609 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7610 8, this->admin_state(), target);
7611 }
7612
7613 if (_internal_metadata_.have_unknown_fields()) {
7614 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7615 _internal_metadata_.unknown_fields(), target);
7616 }
7617 // @@protoc_insertion_point(serialize_to_array_end:dmi.ModifiableComponent)
7618 return target;
7619}
7620
7621size_t ModifiableComponent::ByteSizeLong() const {
7622// @@protoc_insertion_point(message_byte_size_start:dmi.ModifiableComponent)
7623 size_t total_size = 0;
7624
7625 if (_internal_metadata_.have_unknown_fields()) {
7626 total_size +=
7627 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7628 _internal_metadata_.unknown_fields());
7629 }
7630 ::google::protobuf::uint32 cached_has_bits = 0;
7631 // Prevent compiler warnings about cached_has_bits being unused
7632 (void) cached_has_bits;
7633
7634 // string name = 1;
7635 if (this->name().size() > 0) {
7636 total_size += 1 +
7637 ::google::protobuf::internal::WireFormatLite::StringSize(
7638 this->name());
7639 }
7640
7641 // string alias = 5;
7642 if (this->alias().size() > 0) {
7643 total_size += 1 +
7644 ::google::protobuf::internal::WireFormatLite::StringSize(
7645 this->alias());
7646 }
7647
7648 // string asset_id = 6;
7649 if (this->asset_id().size() > 0) {
7650 total_size += 1 +
7651 ::google::protobuf::internal::WireFormatLite::StringSize(
7652 this->asset_id());
7653 }
7654
7655 // .dmi.Component parent = 3;
7656 if (this->has_parent()) {
7657 total_size += 1 +
7658 ::google::protobuf::internal::WireFormatLite::MessageSize(
7659 *parent_);
7660 }
7661
7662 // .dmi.Uri uri = 7;
7663 if (this->has_uri()) {
7664 total_size += 1 +
7665 ::google::protobuf::internal::WireFormatLite::MessageSize(
7666 *uri_);
7667 }
7668
7669 // .dmi.ComponentType class = 2;
7670 if (this->class_() != 0) {
7671 total_size += 1 +
7672 ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_());
7673 }
7674
7675 // int32 parent_rel_pos = 4;
7676 if (this->parent_rel_pos() != 0) {
7677 total_size += 1 +
7678 ::google::protobuf::internal::WireFormatLite::Int32Size(
7679 this->parent_rel_pos());
7680 }
7681
7682 // .dmi.ComponentAdminState admin_state = 8;
7683 if (this->admin_state() != 0) {
7684 total_size += 1 +
7685 ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state());
7686 }
7687
7688 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7689 SetCachedSize(cached_size);
7690 return total_size;
7691}
7692
7693void ModifiableComponent::MergeFrom(const ::google::protobuf::Message& from) {
7694// @@protoc_insertion_point(generalized_merge_from_start:dmi.ModifiableComponent)
7695 GOOGLE_DCHECK_NE(&from, this);
7696 const ModifiableComponent* source =
7697 ::google::protobuf::DynamicCastToGenerated<ModifiableComponent>(
7698 &from);
7699 if (source == nullptr) {
7700 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ModifiableComponent)
7701 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7702 } else {
7703 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ModifiableComponent)
7704 MergeFrom(*source);
7705 }
7706}
7707
7708void ModifiableComponent::MergeFrom(const ModifiableComponent& from) {
7709// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ModifiableComponent)
7710 GOOGLE_DCHECK_NE(&from, this);
7711 _internal_metadata_.MergeFrom(from._internal_metadata_);
7712 ::google::protobuf::uint32 cached_has_bits = 0;
7713 (void) cached_has_bits;
7714
7715 if (from.name().size() > 0) {
7716
7717 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
7718 }
7719 if (from.alias().size() > 0) {
7720
7721 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
7722 }
7723 if (from.asset_id().size() > 0) {
7724
7725 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
7726 }
7727 if (from.has_parent()) {
7728 mutable_parent()->::dmi::Component::MergeFrom(from.parent());
7729 }
7730 if (from.has_uri()) {
7731 mutable_uri()->::dmi::Uri::MergeFrom(from.uri());
7732 }
7733 if (from.class_() != 0) {
7734 set_class_(from.class_());
7735 }
7736 if (from.parent_rel_pos() != 0) {
7737 set_parent_rel_pos(from.parent_rel_pos());
7738 }
7739 if (from.admin_state() != 0) {
7740 set_admin_state(from.admin_state());
7741 }
7742}
7743
7744void ModifiableComponent::CopyFrom(const ::google::protobuf::Message& from) {
7745// @@protoc_insertion_point(generalized_copy_from_start:dmi.ModifiableComponent)
7746 if (&from == this) return;
7747 Clear();
7748 MergeFrom(from);
7749}
7750
7751void ModifiableComponent::CopyFrom(const ModifiableComponent& from) {
7752// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ModifiableComponent)
7753 if (&from == this) return;
7754 Clear();
7755 MergeFrom(from);
7756}
7757
7758bool ModifiableComponent::IsInitialized() const {
7759 return true;
7760}
7761
7762void ModifiableComponent::Swap(ModifiableComponent* other) {
7763 if (other == this) return;
7764 InternalSwap(other);
7765}
7766void ModifiableComponent::InternalSwap(ModifiableComponent* other) {
7767 using std::swap;
7768 _internal_metadata_.Swap(&other->_internal_metadata_);
7769 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7770 GetArenaNoVirtual());
7771 alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7772 GetArenaNoVirtual());
7773 asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
7774 GetArenaNoVirtual());
7775 swap(parent_, other->parent_);
7776 swap(uri_, other->uri_);
7777 swap(class__, other->class__);
7778 swap(parent_rel_pos_, other->parent_rel_pos_);
7779 swap(admin_state_, other->admin_state_);
7780}
7781
7782::google::protobuf::Metadata ModifiableComponent::GetMetadata() const {
7783 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
7784 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
7785}
7786
7787
7788// @@protoc_insertion_point(namespace_scope)
7789} // namespace dmi
7790namespace google {
7791namespace protobuf {
7792template<> PROTOBUF_NOINLINE ::dmi::Uuid* Arena::CreateMaybeMessage< ::dmi::Uuid >(Arena* arena) {
7793 return Arena::CreateInternal< ::dmi::Uuid >(arena);
7794}
7795template<> PROTOBUF_NOINLINE ::dmi::HardwareID* Arena::CreateMaybeMessage< ::dmi::HardwareID >(Arena* arena) {
7796 return Arena::CreateInternal< ::dmi::HardwareID >(arena);
7797}
7798template<> PROTOBUF_NOINLINE ::dmi::Uri* Arena::CreateMaybeMessage< ::dmi::Uri >(Arena* arena) {
7799 return Arena::CreateInternal< ::dmi::Uri >(arena);
7800}
7801template<> PROTOBUF_NOINLINE ::dmi::ComponentState* Arena::CreateMaybeMessage< ::dmi::ComponentState >(Arena* arena) {
7802 return Arena::CreateInternal< ::dmi::ComponentState >(arena);
7803}
7804template<> PROTOBUF_NOINLINE ::dmi::ComponentSensorData* Arena::CreateMaybeMessage< ::dmi::ComponentSensorData >(Arena* arena) {
7805 return Arena::CreateInternal< ::dmi::ComponentSensorData >(arena);
7806}
7807template<> PROTOBUF_NOINLINE ::dmi::PortComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentAttributes >(Arena* arena) {
7808 return Arena::CreateInternal< ::dmi::PortComponentAttributes >(arena);
7809}
7810template<> PROTOBUF_NOINLINE ::dmi::ContainerComponentAttributes* Arena::CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(Arena* arena) {
7811 return Arena::CreateInternal< ::dmi::ContainerComponentAttributes >(arena);
7812}
7813template<> PROTOBUF_NOINLINE ::dmi::PsuComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PsuComponentAttributes >(Arena* arena) {
7814 return Arena::CreateInternal< ::dmi::PsuComponentAttributes >(arena);
7815}
7816template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentsAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(Arena* arena) {
7817 return Arena::CreateInternal< ::dmi::TransceiverComponentsAttributes >(arena);
7818}
7819template<> PROTOBUF_NOINLINE ::dmi::Component* Arena::CreateMaybeMessage< ::dmi::Component >(Arena* arena) {
7820 return Arena::CreateInternal< ::dmi::Component >(arena);
7821}
7822template<> PROTOBUF_NOINLINE ::dmi::Hardware* Arena::CreateMaybeMessage< ::dmi::Hardware >(Arena* arena) {
7823 return Arena::CreateInternal< ::dmi::Hardware >(arena);
7824}
7825template<> PROTOBUF_NOINLINE ::dmi::ModifiableComponent* Arena::CreateMaybeMessage< ::dmi::ModifiableComponent >(Arena* arena) {
7826 return Arena::CreateInternal< ::dmi::ModifiableComponent >(arena);
7827}
7828} // namespace protobuf
7829} // namespace google
7830
7831// @@protoc_insertion_point(global_scope)
7832#include <google/protobuf/port_undef.inc>