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