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