blob: d25ab3d911620cba11b7059740a32e4f61b07630 [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;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +053020extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PonDistance_dmi_2fhw_2eproto;
amit.ghosh98c5a6c2021-08-12 16:19:46 +020021extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PonIdConfig_dmi_2fhw_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053022extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto;
Girish Gowdra997432d2022-03-10 15:59:33 -080023extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053024extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto;
25extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto;
26extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto;
27extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto;
28extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +053029extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentAttributes_dmi_2fhw_2eproto;
30extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053031extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto;
32extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto;
33namespace dmi {
34class UuidDefaultTypeInternal {
35 public:
36 ::google::protobuf::internal::ExplicitlyConstructed<Uuid> _instance;
37} _Uuid_default_instance_;
38class HardwareIDDefaultTypeInternal {
39 public:
40 ::google::protobuf::internal::ExplicitlyConstructed<HardwareID> _instance;
41} _HardwareID_default_instance_;
42class UriDefaultTypeInternal {
43 public:
44 ::google::protobuf::internal::ExplicitlyConstructed<Uri> _instance;
45} _Uri_default_instance_;
46class ComponentStateDefaultTypeInternal {
47 public:
48 ::google::protobuf::internal::ExplicitlyConstructed<ComponentState> _instance;
49} _ComponentState_default_instance_;
50class ComponentSensorDataDefaultTypeInternal {
51 public:
52 ::google::protobuf::internal::ExplicitlyConstructed<ComponentSensorData> _instance;
53} _ComponentSensorData_default_instance_;
54class PortComponentAttributesDefaultTypeInternal {
55 public:
56 ::google::protobuf::internal::ExplicitlyConstructed<PortComponentAttributes> _instance;
57} _PortComponentAttributes_default_instance_;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +053058class PonDistanceDefaultTypeInternal {
59 public:
60 ::google::protobuf::internal::ExplicitlyConstructed<PonDistance> _instance;
61} _PonDistance_default_instance_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +020062class PortComponentChangeAttributesDefaultTypeInternal {
63 public:
64 ::google::protobuf::internal::ExplicitlyConstructed<PortComponentChangeAttributes> _instance;
65} _PortComponentChangeAttributes_default_instance_;
Girish Gowdra997432d2022-03-10 15:59:33 -080066class TransceiverComponentChangeAttributesDefaultTypeInternal {
67 public:
68 ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentChangeAttributes> _instance;
69} _TransceiverComponentChangeAttributes_default_instance_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +020070class PonIdConfigDefaultTypeInternal {
71 public:
72 ::google::protobuf::internal::ExplicitlyConstructed<PonIdConfig> _instance;
73} _PonIdConfig_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053074class ContainerComponentAttributesDefaultTypeInternal {
75 public:
76 ::google::protobuf::internal::ExplicitlyConstructed<ContainerComponentAttributes> _instance;
77} _ContainerComponentAttributes_default_instance_;
78class PsuComponentAttributesDefaultTypeInternal {
79 public:
80 ::google::protobuf::internal::ExplicitlyConstructed<PsuComponentAttributes> _instance;
81} _PsuComponentAttributes_default_instance_;
82class TransceiverComponentsAttributesDefaultTypeInternal {
83 public:
84 ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentsAttributes> _instance;
85} _TransceiverComponentsAttributes_default_instance_;
86class ComponentDefaultTypeInternal {
87 public:
88 ::google::protobuf::internal::ExplicitlyConstructed<Component> _instance;
89 const ::dmi::PortComponentAttributes* port_attr_;
90 const ::dmi::ContainerComponentAttributes* container_attr_;
91 const ::dmi::PsuComponentAttributes* psu_attr_;
92 const ::dmi::TransceiverComponentsAttributes* transceiver_attr_;
93} _Component_default_instance_;
94class HardwareDefaultTypeInternal {
95 public:
96 ::google::protobuf::internal::ExplicitlyConstructed<Hardware> _instance;
97} _Hardware_default_instance_;
98class ModifiableComponentDefaultTypeInternal {
99 public:
100 ::google::protobuf::internal::ExplicitlyConstructed<ModifiableComponent> _instance;
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200101 const ::dmi::PortComponentChangeAttributes* port_attr_;
Girish Gowdra997432d2022-03-10 15:59:33 -0800102 const ::dmi::TransceiverComponentChangeAttributes* trx_attr_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530103} _ModifiableComponent_default_instance_;
104} // namespace dmi
105static void InitDefaultsUuid_dmi_2fhw_2eproto() {
106 GOOGLE_PROTOBUF_VERIFY_VERSION;
107
108 {
109 void* ptr = &::dmi::_Uuid_default_instance_;
110 new (ptr) ::dmi::Uuid();
111 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
112 }
113 ::dmi::Uuid::InitAsDefaultInstance();
114}
115
116::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto =
117 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUuid_dmi_2fhw_2eproto}, {}};
118
119static void InitDefaultsHardwareID_dmi_2fhw_2eproto() {
120 GOOGLE_PROTOBUF_VERIFY_VERSION;
121
122 {
123 void* ptr = &::dmi::_HardwareID_default_instance_;
124 new (ptr) ::dmi::HardwareID();
125 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
126 }
127 ::dmi::HardwareID::InitAsDefaultInstance();
128}
129
130::google::protobuf::internal::SCCInfo<1> scc_info_HardwareID_dmi_2fhw_2eproto =
131 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHardwareID_dmi_2fhw_2eproto}, {
132 &scc_info_Uuid_dmi_2fhw_2eproto.base,}};
133
134static void InitDefaultsUri_dmi_2fhw_2eproto() {
135 GOOGLE_PROTOBUF_VERIFY_VERSION;
136
137 {
138 void* ptr = &::dmi::_Uri_default_instance_;
139 new (ptr) ::dmi::Uri();
140 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
141 }
142 ::dmi::Uri::InitAsDefaultInstance();
143}
144
145::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto =
146 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUri_dmi_2fhw_2eproto}, {}};
147
148static void InitDefaultsComponentState_dmi_2fhw_2eproto() {
149 GOOGLE_PROTOBUF_VERIFY_VERSION;
150
151 {
152 void* ptr = &::dmi::_ComponentState_default_instance_;
153 new (ptr) ::dmi::ComponentState();
154 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
155 }
156 ::dmi::ComponentState::InitAsDefaultInstance();
157}
158
159::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto =
160 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentState_dmi_2fhw_2eproto}, {
161 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}};
162
163static void InitDefaultsComponentSensorData_dmi_2fhw_2eproto() {
164 GOOGLE_PROTOBUF_VERIFY_VERSION;
165
166 {
167 void* ptr = &::dmi::_ComponentSensorData_default_instance_;
168 new (ptr) ::dmi::ComponentSensorData();
169 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
170 }
171 ::dmi::ComponentSensorData::InitAsDefaultInstance();
172}
173
174::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto =
175 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentSensorData_dmi_2fhw_2eproto}, {
176 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}};
177
178static void InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto() {
179 GOOGLE_PROTOBUF_VERIFY_VERSION;
180
181 {
182 void* ptr = &::dmi::_PortComponentAttributes_default_instance_;
183 new (ptr) ::dmi::PortComponentAttributes();
184 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
185 }
186 ::dmi::PortComponentAttributes::InitAsDefaultInstance();
187}
188
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530189::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentAttributes_dmi_2fhw_2eproto =
190 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto}, {
191 &scc_info_PonIdConfig_dmi_2fhw_2eproto.base,
192 &scc_info_PonDistance_dmi_2fhw_2eproto.base,}};
193
194static void InitDefaultsPonDistance_dmi_2fhw_2eproto() {
195 GOOGLE_PROTOBUF_VERIFY_VERSION;
196
197 {
198 void* ptr = &::dmi::_PonDistance_default_instance_;
199 new (ptr) ::dmi::PonDistance();
200 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
201 }
202 ::dmi::PonDistance::InitAsDefaultInstance();
203}
204
205::google::protobuf::internal::SCCInfo<0> scc_info_PonDistance_dmi_2fhw_2eproto =
206 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPonDistance_dmi_2fhw_2eproto}, {}};
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200207
208static void InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto() {
209 GOOGLE_PROTOBUF_VERIFY_VERSION;
210
211 {
212 void* ptr = &::dmi::_PortComponentChangeAttributes_default_instance_;
213 new (ptr) ::dmi::PortComponentChangeAttributes();
214 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
215 }
216 ::dmi::PortComponentChangeAttributes::InitAsDefaultInstance();
217}
218
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530219::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto =
220 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto}, {
221 &scc_info_PonIdConfig_dmi_2fhw_2eproto.base,
222 &scc_info_PonDistance_dmi_2fhw_2eproto.base,}};
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200223
Girish Gowdra997432d2022-03-10 15:59:33 -0800224static void InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto() {
225 GOOGLE_PROTOBUF_VERIFY_VERSION;
226
227 {
228 void* ptr = &::dmi::_TransceiverComponentChangeAttributes_default_instance_;
229 new (ptr) ::dmi::TransceiverComponentChangeAttributes();
230 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
231 }
232 ::dmi::TransceiverComponentChangeAttributes::InitAsDefaultInstance();
233}
234
235::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto =
236 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto}, {}};
237
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200238static void InitDefaultsPonIdConfig_dmi_2fhw_2eproto() {
239 GOOGLE_PROTOBUF_VERIFY_VERSION;
240
241 {
242 void* ptr = &::dmi::_PonIdConfig_default_instance_;
243 new (ptr) ::dmi::PonIdConfig();
244 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
245 }
246 ::dmi::PonIdConfig::InitAsDefaultInstance();
247}
248
249::google::protobuf::internal::SCCInfo<0> scc_info_PonIdConfig_dmi_2fhw_2eproto =
250 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPonIdConfig_dmi_2fhw_2eproto}, {}};
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530251
252static void InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto() {
253 GOOGLE_PROTOBUF_VERIFY_VERSION;
254
255 {
256 void* ptr = &::dmi::_ContainerComponentAttributes_default_instance_;
257 new (ptr) ::dmi::ContainerComponentAttributes();
258 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
259 }
260 ::dmi::ContainerComponentAttributes::InitAsDefaultInstance();
261}
262
263::google::protobuf::internal::SCCInfo<0> scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto =
264 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto}, {}};
265
266static void InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto() {
267 GOOGLE_PROTOBUF_VERIFY_VERSION;
268
269 {
270 void* ptr = &::dmi::_PsuComponentAttributes_default_instance_;
271 new (ptr) ::dmi::PsuComponentAttributes();
272 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
273 }
274 ::dmi::PsuComponentAttributes::InitAsDefaultInstance();
275}
276
277::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto =
278 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto}, {}};
279
280static void InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto() {
281 GOOGLE_PROTOBUF_VERIFY_VERSION;
282
283 {
284 void* ptr = &::dmi::_TransceiverComponentsAttributes_default_instance_;
285 new (ptr) ::dmi::TransceiverComponentsAttributes();
286 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
287 }
288 ::dmi::TransceiverComponentsAttributes::InitAsDefaultInstance();
289}
290
291::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto =
292 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto}, {}};
293
294static void InitDefaultsComponent_dmi_2fhw_2eproto() {
295 GOOGLE_PROTOBUF_VERIFY_VERSION;
296
297 {
298 void* ptr = &::dmi::_Component_default_instance_;
299 new (ptr) ::dmi::Component();
300 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
301 }
302 ::dmi::Component::InitAsDefaultInstance();
303}
304
305::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto =
306 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsComponent_dmi_2fhw_2eproto}, {
307 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
308 &scc_info_Uri_dmi_2fhw_2eproto.base,
309 &scc_info_Uuid_dmi_2fhw_2eproto.base,
310 &scc_info_ComponentState_dmi_2fhw_2eproto.base,
311 &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base,
312 &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base,
313 &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base,
314 &scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base,
315 &scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base,}};
316
317static void InitDefaultsHardware_dmi_2fhw_2eproto() {
318 GOOGLE_PROTOBUF_VERIFY_VERSION;
319
320 {
321 void* ptr = &::dmi::_Hardware_default_instance_;
322 new (ptr) ::dmi::Hardware();
323 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
324 }
325 ::dmi::Hardware::InitAsDefaultInstance();
326}
327
328::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto =
329 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_dmi_2fhw_2eproto}, {
330 &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
331 &scc_info_Component_dmi_2fhw_2eproto.base,}};
332
333static void InitDefaultsModifiableComponent_dmi_2fhw_2eproto() {
334 GOOGLE_PROTOBUF_VERIFY_VERSION;
335
336 {
337 void* ptr = &::dmi::_ModifiableComponent_default_instance_;
338 new (ptr) ::dmi::ModifiableComponent();
339 ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
340 }
341 ::dmi::ModifiableComponent::InitAsDefaultInstance();
342}
343
Girish Gowdra997432d2022-03-10 15:59:33 -0800344::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto =
345 {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsModifiableComponent_dmi_2fhw_2eproto}, {
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530346 &scc_info_Component_dmi_2fhw_2eproto.base,
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200347 &scc_info_Uri_dmi_2fhw_2eproto.base,
Girish Gowdra997432d2022-03-10 15:59:33 -0800348 &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base,
349 &scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base,}};
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530350
351void InitDefaults_dmi_2fhw_2eproto() {
352 ::google::protobuf::internal::InitSCC(&scc_info_Uuid_dmi_2fhw_2eproto.base);
353 ::google::protobuf::internal::InitSCC(&scc_info_HardwareID_dmi_2fhw_2eproto.base);
354 ::google::protobuf::internal::InitSCC(&scc_info_Uri_dmi_2fhw_2eproto.base);
355 ::google::protobuf::internal::InitSCC(&scc_info_ComponentState_dmi_2fhw_2eproto.base);
356 ::google::protobuf::internal::InitSCC(&scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
357 ::google::protobuf::internal::InitSCC(&scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530358 ::google::protobuf::internal::InitSCC(&scc_info_PonDistance_dmi_2fhw_2eproto.base);
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200359 ::google::protobuf::internal::InitSCC(&scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base);
Girish Gowdra997432d2022-03-10 15:59:33 -0800360 ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base);
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200361 ::google::protobuf::internal::InitSCC(&scc_info_PonIdConfig_dmi_2fhw_2eproto.base);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530362 ::google::protobuf::internal::InitSCC(&scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
363 ::google::protobuf::internal::InitSCC(&scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base);
364 ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base);
365 ::google::protobuf::internal::InitSCC(&scc_info_Component_dmi_2fhw_2eproto.base);
366 ::google::protobuf::internal::InitSCC(&scc_info_Hardware_dmi_2fhw_2eproto.base);
367 ::google::protobuf::internal::InitSCC(&scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
368}
369
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530370::google::protobuf::Metadata file_level_metadata_dmi_2fhw_2eproto[16];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530371const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_2eproto[15];
372constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_2eproto = nullptr;
373
374const ::google::protobuf::uint32 TableStruct_dmi_2fhw_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
375 ~0u, // no _has_bits_
376 PROTOBUF_FIELD_OFFSET(::dmi::Uuid, _internal_metadata_),
377 ~0u, // no _extensions_
378 ~0u, // no _oneof_case_
379 ~0u, // no _weak_field_map_
380 PROTOBUF_FIELD_OFFSET(::dmi::Uuid, uuid_),
381 ~0u, // no _has_bits_
382 PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, _internal_metadata_),
383 ~0u, // no _extensions_
384 ~0u, // no _oneof_case_
385 ~0u, // no _weak_field_map_
386 PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, uuid_),
387 ~0u, // no _has_bits_
388 PROTOBUF_FIELD_OFFSET(::dmi::Uri, _internal_metadata_),
389 ~0u, // no _extensions_
390 ~0u, // no _oneof_case_
391 ~0u, // no _weak_field_map_
392 PROTOBUF_FIELD_OFFSET(::dmi::Uri, uri_),
393 ~0u, // no _has_bits_
394 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, _internal_metadata_),
395 ~0u, // no _extensions_
396 ~0u, // no _oneof_case_
397 ~0u, // no _weak_field_map_
398 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, state_last_changed_),
399 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, admin_state_),
400 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, oper_state_),
401 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, usage_state_),
402 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, alarm_state_),
403 PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, standby_state_),
404 ~0u, // no _has_bits_
405 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, _internal_metadata_),
406 ~0u, // no _extensions_
407 ~0u, // no _oneof_case_
408 ~0u, // no _weak_field_map_
409 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_),
410 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, type_),
411 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, scale_),
412 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, precision_),
413 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, status_),
414 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, units_display_),
415 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, timestamp_),
416 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_update_rate_),
417 PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, data_type_),
418 ~0u, // no _has_bits_
419 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, _internal_metadata_),
420 ~0u, // no _extensions_
421 ~0u, // no _oneof_case_
422 ~0u, // no _weak_field_map_
423 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, connector_type_),
424 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_),
425 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, protocol_),
426 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, physical_label_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200427 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, mapping_label_),
428 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, pon_id_config_),
Andrea Campanellafcd22292021-08-27 10:45:46 +0200429 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_autonegotiation_),
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530430 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, distance_),
431 ~0u, // no _has_bits_
432 PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, _internal_metadata_),
433 ~0u, // no _extensions_
434 ~0u, // no _oneof_case_
435 ~0u, // no _weak_field_map_
436 PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, max_distance_),
437 PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, max_differential_distance_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200438 ~0u, // no _has_bits_
439 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, _internal_metadata_),
440 ~0u, // no _extensions_
441 ~0u, // no _oneof_case_
442 ~0u, // no _weak_field_map_
443 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, pon_id_config_),
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530444 PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, distance_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200445 ~0u, // no _has_bits_
Girish Gowdra997432d2022-03-10 15:59:33 -0800446 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, _internal_metadata_),
447 ~0u, // no _extensions_
448 ~0u, // no _oneof_case_
449 ~0u, // no _weak_field_map_
450 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, trans_type_),
451 ~0u, // no _has_bits_
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200452 PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, _internal_metadata_),
453 ~0u, // no _extensions_
454 ~0u, // no _oneof_case_
455 ~0u, // no _weak_field_map_
456 PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_),
457 PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_transmit_periodicity_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530458 ~0u, // no _has_bits_
459 PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, _internal_metadata_),
460 ~0u, // no _extensions_
461 ~0u, // no _oneof_case_
462 ~0u, // no _weak_field_map_
463 PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, physical_label_),
464 ~0u, // no _has_bits_
465 PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, _internal_metadata_),
466 ~0u, // no _extensions_
467 ~0u, // no _oneof_case_
468 ~0u, // no _weak_field_map_
469 PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, supported_voltage_),
470 ~0u, // no _has_bits_
471 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, _internal_metadata_),
472 ~0u, // no _extensions_
473 ~0u, // no _oneof_case_
474 ~0u, // no _weak_field_map_
475 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, form_factor_),
476 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, trans_type_),
477 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_),
478 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_scale_),
479 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, rx_wavelength_),
480 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_wavelength_),
481 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, wavelength_scale_),
amit.ghosh52abaae2022-11-28 13:59:22 +0100482 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_power_),
483 PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_power_scale_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530484 ~0u, // no _has_bits_
485 PROTOBUF_FIELD_OFFSET(::dmi::Component, _internal_metadata_),
486 ~0u, // no _extensions_
487 PROTOBUF_FIELD_OFFSET(::dmi::Component, _oneof_case_[0]),
488 ~0u, // no _weak_field_map_
489 PROTOBUF_FIELD_OFFSET(::dmi::Component, name_),
490 PROTOBUF_FIELD_OFFSET(::dmi::Component, class__),
491 PROTOBUF_FIELD_OFFSET(::dmi::Component, description_),
492 PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_),
493 PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_rel_pos_),
494 PROTOBUF_FIELD_OFFSET(::dmi::Component, children_),
495 PROTOBUF_FIELD_OFFSET(::dmi::Component, hardware_rev_),
496 PROTOBUF_FIELD_OFFSET(::dmi::Component, firmware_rev_),
497 PROTOBUF_FIELD_OFFSET(::dmi::Component, software_rev_),
498 PROTOBUF_FIELD_OFFSET(::dmi::Component, serial_num_),
499 PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_name_),
500 PROTOBUF_FIELD_OFFSET(::dmi::Component, model_name_),
501 PROTOBUF_FIELD_OFFSET(::dmi::Component, alias_),
502 PROTOBUF_FIELD_OFFSET(::dmi::Component, asset_id_),
503 PROTOBUF_FIELD_OFFSET(::dmi::Component, is_fru_),
504 PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_date_),
505 PROTOBUF_FIELD_OFFSET(::dmi::Component, uri_),
506 PROTOBUF_FIELD_OFFSET(::dmi::Component, uuid_),
507 PROTOBUF_FIELD_OFFSET(::dmi::Component, state_),
508 PROTOBUF_FIELD_OFFSET(::dmi::Component, sensor_data_),
509 offsetof(::dmi::ComponentDefaultTypeInternal, port_attr_),
510 offsetof(::dmi::ComponentDefaultTypeInternal, container_attr_),
511 offsetof(::dmi::ComponentDefaultTypeInternal, psu_attr_),
512 offsetof(::dmi::ComponentDefaultTypeInternal, transceiver_attr_),
513 PROTOBUF_FIELD_OFFSET(::dmi::Component, specific_),
514 ~0u, // no _has_bits_
515 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, _internal_metadata_),
516 ~0u, // no _extensions_
517 ~0u, // no _oneof_case_
518 ~0u, // no _weak_field_map_
519 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_change_),
520 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, root_),
521 PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_booted_),
522 ~0u, // no _has_bits_
523 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _internal_metadata_),
524 ~0u, // no _extensions_
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200525 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _oneof_case_[0]),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530526 ~0u, // no _weak_field_map_
527 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, name_),
528 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, class__),
529 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_),
530 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_rel_pos_),
531 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, alias_),
532 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, asset_id_),
533 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, uri_),
534 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, admin_state_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200535 offsetof(::dmi::ModifiableComponentDefaultTypeInternal, port_attr_),
Girish Gowdra997432d2022-03-10 15:59:33 -0800536 offsetof(::dmi::ModifiableComponentDefaultTypeInternal, trx_attr_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200537 PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, specific_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530538};
539static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
540 { 0, -1, sizeof(::dmi::Uuid)},
541 { 6, -1, sizeof(::dmi::HardwareID)},
542 { 12, -1, sizeof(::dmi::Uri)},
543 { 18, -1, sizeof(::dmi::ComponentState)},
544 { 29, -1, sizeof(::dmi::ComponentSensorData)},
545 { 43, -1, sizeof(::dmi::PortComponentAttributes)},
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530546 { 56, -1, sizeof(::dmi::PonDistance)},
547 { 63, -1, sizeof(::dmi::PortComponentChangeAttributes)},
548 { 70, -1, sizeof(::dmi::TransceiverComponentChangeAttributes)},
549 { 76, -1, sizeof(::dmi::PonIdConfig)},
550 { 83, -1, sizeof(::dmi::ContainerComponentAttributes)},
551 { 89, -1, sizeof(::dmi::PsuComponentAttributes)},
552 { 95, -1, sizeof(::dmi::TransceiverComponentsAttributes)},
553 { 109, -1, sizeof(::dmi::Component)},
554 { 139, -1, sizeof(::dmi::Hardware)},
555 { 147, -1, sizeof(::dmi::ModifiableComponent)},
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530556};
557
558static ::google::protobuf::Message const * const file_default_instances[] = {
559 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uuid_default_instance_),
560 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HardwareID_default_instance_),
561 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uri_default_instance_),
562 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentState_default_instance_),
563 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentSensorData_default_instance_),
564 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentAttributes_default_instance_),
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530565 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PonDistance_default_instance_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200566 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentChangeAttributes_default_instance_),
Girish Gowdra997432d2022-03-10 15:59:33 -0800567 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentChangeAttributes_default_instance_),
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200568 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PonIdConfig_default_instance_),
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530569 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ContainerComponentAttributes_default_instance_),
570 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PsuComponentAttributes_default_instance_),
571 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentsAttributes_default_instance_),
572 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Component_default_instance_),
573 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Hardware_default_instance_),
574 reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ModifiableComponent_default_instance_),
575};
576
577::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_2eproto = {
578 {}, AddDescriptors_dmi_2fhw_2eproto, "dmi/hw.proto", schemas,
579 file_default_instances, TableStruct_dmi_2fhw_2eproto::offsets,
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530580 file_level_metadata_dmi_2fhw_2eproto, 16, file_level_enum_descriptors_dmi_2fhw_2eproto, file_level_service_descriptors_dmi_2fhw_2eproto,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530581};
582
583const char descriptor_table_protodef_dmi_2fhw_2eproto[] =
584 "\n\014dmi/hw.proto\022\003dmi\032\037google/protobuf/tim"
585 "estamp.proto\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"%\n\nHa"
586 "rdwareID\022\027\n\004uuid\030\001 \001(\0132\t.dmi.Uuid\"\022\n\003Uri"
587 "\022\013\n\003uri\030\001 \001(\t\"\265\002\n\016ComponentState\0226\n\022stat"
588 "e_last_changed\030\001 \001(\0132\032.google.protobuf.T"
589 "imestamp\022-\n\013admin_state\030\002 \001(\0162\030.dmi.Comp"
590 "onentAdminState\022+\n\noper_state\030\003 \001(\0162\027.dm"
591 "i.ComponentOperState\022-\n\013usage_state\030\004 \001("
592 "\0162\030.dmi.ComponentUsageState\022-\n\013alarm_sta"
593 "te\030\005 \001(\0162\030.dmi.ComponentAlarmState\0221\n\rst"
594 "andby_state\030\006 \001(\0162\032.dmi.ComponentStandby"
595 "State\"\220\002\n\023ComponentSensorData\022\r\n\005value\030\001"
596 " \001(\005\022 \n\004type\030\002 \001(\0162\022.dmi.DataValueType\022\036"
597 "\n\005scale\030\003 \001(\0162\017.dmi.ValueScale\022\021\n\tprecis"
598 "ion\030\004 \001(\005\022!\n\006status\030\005 \001(\0162\021.dmi.SensorSt"
599 "atus\022\025\n\runits_display\030\006 \001(\t\022-\n\ttimestamp"
600 "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\031\n\021va"
601 "lue_update_rate\030\010 \001(\r\022\021\n\tdata_type\030\t \001(\t"
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530602 "\"\205\006\n\027PortComponentAttributes\022B\n\016connecto"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530603 "r_type\030\001 \001(\0162*.dmi.PortComponentAttribut"
604 "es.ConnectorType\0221\n\005speed\030\002 \001(\0162\".dmi.Po"
605 "rtComponentAttributes.Speed\0227\n\010protocol\030"
606 "\003 \001(\0162%.dmi.PortComponentAttributes.Prot"
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200607 "ocol\022\026\n\016physical_label\030\004 \001(\t\022\025\n\rmapping_"
608 "label\030\005 \001(\t\022\'\n\rpon_id_config\030\006 \001(\0132\020.dmi"
Andrea Campanellafcd22292021-08-27 10:45:46 +0200609 ".PonIdConfig\022\035\n\025speed_autonegotiation\030\007 "
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530610 "\001(\010\022\"\n\010distance\030\010 \001(\0132\020.dmi.PonDistance\""
611 "p\n\rConnectorType\022\034\n\030CONNECTOR_TYPE_UNDEF"
612 "INED\020\000\022\010\n\004RJ45\020\001\022\014\n\010FIBER_LC\020\002\022\017\n\013FIBER_"
613 "SC_PC\020\003\022\r\n\tFIBER_MPO\020\004\022\t\n\005RS232\020\005\"\256\001\n\005Sp"
614 "eed\022\023\n\017SPEED_UNDEFINED\020\000\022\013\n\007DYNAMIC\020\001\022\r\n"
615 "\tGIGABIT_1\020\002\022\016\n\nGIGABIT_10\020\003\022\016\n\nGIGABIT_"
616 "25\020\004\022\016\n\nGIGABIT_40\020\005\022\017\n\013GIGABIT_100\020\006\022\017\n"
617 "\013GIGABIT_400\020\007\022\020\n\014MEGABIT_2500\020\010\022\020\n\014MEGA"
618 "BIT_1250\020\t\"|\n\010Protocol\022\026\n\022PROTOCOL_UNDEF"
619 "INED\020\000\022\014\n\010ETHERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON\020"
620 "\003\022\n\n\006XGSPON\020\004\022\t\n\005GFAST\020\005\022\n\n\006SERIAL\020\006\022\010\n\004"
621 "EPON\020\007\022\010\n\004BITS\020\010\"F\n\013PonDistance\022\024\n\014max_d"
622 "istance\030\001 \001(\r\022!\n\031max_differential_distan"
623 "ce\030\002 \001(\r\"l\n\035PortComponentChangeAttribute"
624 "s\022\'\n\rpon_id_config\030\001 \001(\0132\020.dmi.PonIdConf"
625 "ig\022\"\n\010distance\030\002 \001(\0132\020.dmi.PonDistance\"P"
626 "\n$TransceiverComponentChangeAttributes\022("
627 "\n\ntrans_type\030\001 \001(\0162\024.dmi.TransceiverType"
628 "\"B\n\013PonIdConfig\022\016\n\006pon_id\030\001 \001(\014\022#\n\033pon_i"
629 "d_transmit_periodicity\030\002 \001(\r\"6\n\034Containe"
630 "rComponentAttributes\022\026\n\016physical_label\030\001"
631 " \001(\t\"\263\001\n\026PsuComponentAttributes\022G\n\021suppo"
632 "rted_voltage\030\001 \001(\0162,.dmi.PsuComponentAtt"
633 "ributes.SupportedVoltage\"P\n\020SupportedVol"
634 "tage\022\037\n\033SUPPORTED_VOLTAGE_UNDEFINED\020\000\022\007\n"
amit.ghoshb68828f2023-10-25 18:56:01 +0200635 "\003V48\020\001\022\010\n\004V230\020\002\022\010\n\004V115\020\003\"\270\004\n\037Transceiv"
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530636 "erComponentsAttributes\022D\n\013form_factor\030\001 "
637 "\001(\0162/.dmi.TransceiverComponentsAttribute"
638 "s.FormFactor\022(\n\ntrans_type\030\002 \001(\0162\024.dmi.T"
639 "ransceiverType\022\024\n\014max_distance\030\003 \001(\r\022+\n\022"
640 "max_distance_scale\030\004 \001(\0162\017.dmi.ValueScal"
641 "e\022\025\n\rrx_wavelength\030\005 \003(\r\022\025\n\rtx_wavelengt"
642 "h\030\006 \003(\r\022)\n\020wavelength_scale\030\007 \001(\0162\017.dmi."
643 "ValueScale\022\020\n\010tx_power\030\010 \003(\005\022\'\n\016tx_power"
amit.ghoshb68828f2023-10-25 18:56:01 +0200644 "_scale\030\t \001(\0162\017.dmi.ValueScale\"\315\001\n\nFormFa"
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +0530645 "ctor\022\027\n\023FORM_FACTOR_UNKNOWN\020\000\022\010\n\004QSFP\020\001\022"
646 "\r\n\tQSFP_PLUS\020\002\022\n\n\006QSFP28\020\003\022\007\n\003SFP\020\004\022\014\n\010S"
647 "FP_PLUS\020\005\022\007\n\003XFP\020\006\022\010\n\004CFP4\020\007\022\010\n\004CFP2\020\010\022\010"
648 "\n\004CPAK\020\t\022\006\n\002X2\020\n\022\t\n\005OTHER\020\013\022\007\n\003CFP\020\014\022\014\n\010"
amit.ghoshb68828f2023-10-25 18:56:01 +0200649 "CFP2_ACO\020\r\022\014\n\010CFP2_DCO\020\016\022\013\n\007QSFP_DD\020\017\"\350\005"
650 "\n\tComponent\022\014\n\004name\030\001 \001(\t\022!\n\005class\030\002 \001(\016"
651 "2\022.dmi.ComponentType\022\023\n\013description\030\003 \001("
652 "\t\022\016\n\006parent\030\004 \001(\t\022\026\n\016parent_rel_pos\030\005 \001("
653 "\005\022 \n\010children\030\006 \003(\0132\016.dmi.Component\022\024\n\014h"
654 "ardware_rev\030\007 \001(\t\022\024\n\014firmware_rev\030\010 \001(\t\022"
655 "\024\n\014software_rev\030\t \001(\t\022\022\n\nserial_num\030\n \001("
656 "\t\022\020\n\010mfg_name\030\013 \001(\t\022\022\n\nmodel_name\030\014 \001(\t\022"
657 "\r\n\005alias\030\r \001(\t\022\020\n\010asset_id\030\016 \001(\t\022\016\n\006is_f"
658 "ru\030\017 \001(\010\022,\n\010mfg_date\030\020 \001(\0132\032.google.prot"
659 "obuf.Timestamp\022\025\n\003uri\030\021 \001(\0132\010.dmi.Uri\022\027\n"
660 "\004uuid\030\022 \001(\0132\t.dmi.Uuid\022\"\n\005state\030\023 \001(\0132\023."
661 "dmi.ComponentState\022-\n\013sensor_data\030\024 \003(\0132"
662 "\030.dmi.ComponentSensorData\0221\n\tport_attr\0302"
663 " \001(\0132\034.dmi.PortComponentAttributesH\000\022;\n\016"
664 "container_attr\0303 \001(\0132!.dmi.ContainerComp"
665 "onentAttributesH\000\022/\n\010psu_attr\0304 \001(\0132\033.dm"
666 "i.PsuComponentAttributesH\000\022@\n\020transceive"
667 "r_attr\0305 \001(\0132$.dmi.TransceiverComponents"
668 "AttributesH\000B\n\n\010specific\"\212\001\n\010Hardware\022/\n"
669 "\013last_change\030\001 \001(\0132\032.google.protobuf.Tim"
670 "estamp\022\034\n\004root\030\002 \001(\0132\016.dmi.Component\022/\n\013"
671 "last_booted\030\003 \001(\0132\032.google.protobuf.Time"
672 "stamp\"\351\002\n\023ModifiableComponent\022\014\n\004name\030\001 "
673 "\001(\t\022!\n\005class\030\002 \001(\0162\022.dmi.ComponentType\022\036"
674 "\n\006parent\030\003 \001(\0132\016.dmi.Component\022\026\n\016parent"
675 "_rel_pos\030\004 \001(\005\022\r\n\005alias\030\005 \001(\t\022\020\n\010asset_i"
676 "d\030\006 \001(\t\022\025\n\003uri\030\007 \001(\0132\010.dmi.Uri\022-\n\013admin_"
677 "state\030\010 \001(\0162\030.dmi.ComponentAdminState\0227\n"
678 "\tport_attr\0302 \001(\0132\".dmi.PortComponentChan"
679 "geAttributesH\000\022=\n\010trx_attr\0303 \001(\0132).dmi.T"
680 "ransceiverComponentChangeAttributesH\000B\n\n"
681 "\010specific*\264\003\n\rComponentType\022\034\n\030COMPONENT"
682 "_TYPE_UNDEFINED\020\000\022\032\n\026COMPONENT_TYPE_UNKN"
683 "OWN\020\001\022\032\n\026COMPONENT_TYPE_CHASSIS\020\002\022\034\n\030COM"
684 "PONENT_TYPE_BACKPLANE\020\003\022\034\n\030COMPONENT_TYP"
685 "E_CONTAINER\020\004\022\037\n\033COMPONENT_TYPE_POWER_SU"
686 "PPLY\020\005\022\026\n\022COMPONENT_TYPE_FAN\020\006\022\031\n\025COMPON"
687 "ENT_TYPE_SENSOR\020\007\022\031\n\025COMPONENT_TYPE_MODU"
688 "LE\020\010\022\027\n\023COMPONENT_TYPE_PORT\020\t\022\026\n\022COMPONE"
689 "NT_TYPE_CPU\020\n\022\032\n\026COMPONENT_TYPE_BATTERY\020"
690 "\013\022\032\n\026COMPONENT_TYPE_STORAGE\020\014\022\031\n\025COMPONE"
691 "NT_TYPE_MEMORY\020\r\022\036\n\032COMPONENT_TYPE_TRANS"
Amit Ghoshe45d9972025-06-26 14:52:48 +0200692 "CEIVER\020\016*\363\001\n\023ComponentAdminState\022\036\n\032COMP"
amit.ghoshb68828f2023-10-25 18:56:01 +0200693 "_ADMIN_STATE_UNDEFINED\020\000\022\034\n\030COMP_ADMIN_S"
694 "TATE_UNKNOWN\020\001\022\033\n\027COMP_ADMIN_STATE_LOCKE"
695 "D\020\002\022\"\n\036COMP_ADMIN_STATE_SHUTTING_DOWN\020\003\022"
Amit Ghoshe45d9972025-06-26 14:52:48 +0200696 "\035\n\031COMP_ADMIN_STATE_UNLOCKED\020\004\022\035\n\031COMP_A"
697 "DMIN_STATE_ISOLATED\020\006\022\037\n\033COMP_ADMIN_STAT"
698 "E_PROHIBITED\020\005*\303\003\n\022ComponentOperState\022\035\n"
699 "\031COMP_OPER_STATE_UNDEFINED\020\000\022\033\n\027COMP_OPE"
700 "R_STATE_UNKNOWN\020\001\022\034\n\030COMP_OPER_STATE_DIS"
701 "ABLED\020\002\022\033\n\027COMP_OPER_STATE_ENABLED\020\003\022\033\n\027"
702 "COMP_OPER_STATE_TESTING\020\004\022\032\n\026COMP_OPER_S"
703 "TATE_NORMAL\020\005\022\037\n\033COMP_OPER_STATE_CONFIGU"
704 "RING\020\006\022%\n!COMP_OPER_STATE_AUTOMATIC_LOAD"
705 "ING\020\007\022\032\n\026COMP_OPER_STATE_FAILED\020\010\022&\n\"COM"
706 "P_OPER_STATE_HIGH_TEMP_SHUTDOWN\020\t\022#\n\037COM"
707 "P_OPER_STATE_MANUAL_SHUTDOWN\020\n\022)\n%COMP_O"
708 "PER_STATE_POWER_SAVING_SHUTDOWN\020\013\022!\n\035COM"
709 "P_OPER_STATE_TYPE_MISMATCH\020\014*\246\001\n\023Compone"
710 "ntUsageState\022\036\n\032COMP_USAGE_STATE_UNDEFIN"
711 "ED\020\000\022\034\n\030COMP_USAGE_STATE_UNKNOWN\020\001\022\031\n\025CO"
712 "MP_USAGE_STATE_IDLE\020\002\022\033\n\027COMP_USAGE_STAT"
713 "E_ACTIVE\020\003\022\031\n\025COMP_USAGE_STATE_BUSY\020\004*\217\002"
714 "\n\023ComponentAlarmState\022\036\n\032COMP_ALARM_STAT"
715 "E_UNDEFINED\020\000\022\034\n\030COMP_ALARM_STATE_UNKNOW"
716 "N\020\001\022!\n\035COMP_ALARM_STATE_UNDER_REPAIR\020\002\022\035"
717 "\n\031COMP_ALARM_STATE_CRITICAL\020\003\022\032\n\026COMP_AL"
718 "ARM_STATE_MAJOR\020\004\022\032\n\026COMP_ALARM_STATE_MI"
719 "NOR\020\005\022\034\n\030COMP_ALARM_STATE_WARNING\020\006\022\"\n\036C"
720 "OMP_ALARM_STATE_INDETERMINATE\020\007*\274\001\n\025Comp"
721 "onentStandbyState\022 \n\034COMP_STANDBY_STATE_"
722 "UNDEFINED\020\000\022\036\n\032COMP_STANDBY_STATE_UNKNOW"
723 "N\020\001\022\032\n\026COMP_STANDBY_STATE_HOT\020\002\022\033\n\027COMP_"
724 "STANDBY_STATE_COLD\020\003\022(\n$COMP_STANDBY_STA"
725 "TE_PROVIDING_SERVICE\020\004*\235\003\n\rDataValueType"
726 "\022\030\n\024VALUE_TYPE_UNDEFINED\020\000\022\024\n\020VALUE_TYPE"
727 "_OTHER\020\001\022\026\n\022VALUE_TYPE_UNKNOWN\020\002\022\027\n\023VALU"
728 "E_TYPE_VOLTS_AC\020\003\022\027\n\023VALUE_TYPE_VOLTS_DC"
729 "\020\004\022\026\n\022VALUE_TYPE_AMPERES\020\005\022\024\n\020VALUE_TYPE"
730 "_WATTS\020\006\022\024\n\020VALUE_TYPE_HERTZ\020\007\022\026\n\022VALUE_"
731 "TYPE_CELSIUS\020\010\022\031\n\025VALUE_TYPE_PERCENT_RH\020"
732 "\t\022\022\n\016VALUE_TYPE_RPM\020\n\022\022\n\016VALUE_TYPE_CMM\020"
733 "\013\022\032\n\026VALUE_TYPE_TRUTH_VALUE\020\014\022\026\n\022VALUE_T"
734 "YPE_PERCENT\020\r\022\025\n\021VALUE_TYPE_METERS\020\016\022\024\n\020"
735 "VALUE_TYPE_BYTES\020\017\022\022\n\016VALUE_TYPE_DBM\020\020*\244"
736 "\003\n\nValueScale\022\031\n\025VALUE_SCALE_UNDEFINED\020\000"
737 "\022\025\n\021VALUE_SCALE_YOCTO\020\001\022\025\n\021VALUE_SCALE_Z"
738 "EPTO\020\002\022\024\n\020VALUE_SCALE_ATTO\020\003\022\025\n\021VALUE_SC"
739 "ALE_FEMTO\020\004\022\024\n\020VALUE_SCALE_PICO\020\005\022\024\n\020VAL"
740 "UE_SCALE_NANO\020\006\022\025\n\021VALUE_SCALE_MICRO\020\007\022\025"
741 "\n\021VALUE_SCALE_MILLI\020\010\022\025\n\021VALUE_SCALE_UNI"
742 "TS\020\t\022\024\n\020VALUE_SCALE_KILO\020\n\022\024\n\020VALUE_SCAL"
743 "E_MEGA\020\013\022\024\n\020VALUE_SCALE_GIGA\020\014\022\024\n\020VALUE_"
744 "SCALE_TERA\020\r\022\024\n\020VALUE_SCALE_PETA\020\016\022\023\n\017VA"
745 "LUE_SCALE_EXA\020\017\022\025\n\021VALUE_SCALE_ZETTA\020\020\022\025"
746 "\n\021VALUE_SCALE_YOTTA\020\021*\202\001\n\014SensorStatus\022\033"
747 "\n\027SENSOR_STATUS_UNDEFINED\020\000\022\024\n\020SENSOR_ST"
748 "ATUS_OK\020\001\022\035\n\031SENSOR_STATUS_UNAVAILABLE\020\002"
749 "\022 \n\034SENSOR_STATUS_NONOPERATIONAL\020\003*\244\001\n\017T"
750 "ransceiverType\022\022\n\016TYPE_UNDEFINED\020\000\022\014\n\010ET"
751 "HERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON\020\003\022\n\n\006XGSPON\020"
752 "\004\022\010\n\004CPON\020\005\022\013\n\007NG_PON2\020\006\022\010\n\004EPON\020\007\022\025\n\021CO"
753 "MBO_GPON_XGSPON\020\010\022\026\n\021TYPE_NOT_DETECTED\020\377"
754 "\001B;Z9github.com/opencord/device-manageme"
755 "nt-interface/v3/go/dmib\006proto3"
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530756 ;
757::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_2eproto = {
758 false, InitDefaults_dmi_2fhw_2eproto,
759 descriptor_table_protodef_dmi_2fhw_2eproto,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200760 "dmi/hw.proto", &assign_descriptors_table_dmi_2fhw_2eproto, 6870,
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530761};
762
763void AddDescriptors_dmi_2fhw_2eproto() {
764 static constexpr ::google::protobuf::internal::InitFunc deps[1] =
765 {
766 ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto,
767 };
768 ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_2eproto, deps, 1);
769}
770
771// Force running AddDescriptors() at dynamic initialization time.
772static bool dynamic_init_dummy_dmi_2fhw_2eproto = []() { AddDescriptors_dmi_2fhw_2eproto(); return true; }();
773namespace dmi {
774const ::google::protobuf::EnumDescriptor* PortComponentAttributes_ConnectorType_descriptor() {
775 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
776 return file_level_enum_descriptors_dmi_2fhw_2eproto[0];
777}
778bool PortComponentAttributes_ConnectorType_IsValid(int value) {
779 switch (value) {
780 case 0:
781 case 1:
782 case 2:
783 case 3:
784 case 4:
785 case 5:
786 return true;
787 default:
788 return false;
789 }
790}
791
792#if !defined(_MSC_VER) || _MSC_VER >= 1900
793const PortComponentAttributes_ConnectorType PortComponentAttributes::CONNECTOR_TYPE_UNDEFINED;
794const PortComponentAttributes_ConnectorType PortComponentAttributes::RJ45;
795const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_LC;
796const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_SC_PC;
797const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_MPO;
798const PortComponentAttributes_ConnectorType PortComponentAttributes::RS232;
799const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MIN;
800const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MAX;
801const int PortComponentAttributes::ConnectorType_ARRAYSIZE;
802#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
803const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Speed_descriptor() {
804 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
805 return file_level_enum_descriptors_dmi_2fhw_2eproto[1];
806}
807bool PortComponentAttributes_Speed_IsValid(int value) {
808 switch (value) {
809 case 0:
810 case 1:
811 case 2:
812 case 3:
813 case 4:
814 case 5:
815 case 6:
816 case 7:
817 case 8:
818 case 9:
819 return true;
820 default:
821 return false;
822 }
823}
824
825#if !defined(_MSC_VER) || _MSC_VER >= 1900
826const PortComponentAttributes_Speed PortComponentAttributes::SPEED_UNDEFINED;
827const PortComponentAttributes_Speed PortComponentAttributes::DYNAMIC;
828const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_1;
829const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_10;
830const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_25;
831const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_40;
832const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_100;
833const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_400;
834const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_2500;
835const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_1250;
836const PortComponentAttributes_Speed PortComponentAttributes::Speed_MIN;
837const PortComponentAttributes_Speed PortComponentAttributes::Speed_MAX;
838const int PortComponentAttributes::Speed_ARRAYSIZE;
839#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
840const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Protocol_descriptor() {
841 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
842 return file_level_enum_descriptors_dmi_2fhw_2eproto[2];
843}
844bool PortComponentAttributes_Protocol_IsValid(int value) {
845 switch (value) {
846 case 0:
847 case 1:
848 case 2:
849 case 3:
850 case 4:
851 case 5:
852 case 6:
853 case 7:
854 case 8:
855 return true;
856 default:
857 return false;
858 }
859}
860
861#if !defined(_MSC_VER) || _MSC_VER >= 1900
862const PortComponentAttributes_Protocol PortComponentAttributes::PROTOCOL_UNDEFINED;
863const PortComponentAttributes_Protocol PortComponentAttributes::ETHERNET;
864const PortComponentAttributes_Protocol PortComponentAttributes::GPON;
865const PortComponentAttributes_Protocol PortComponentAttributes::XGPON;
866const PortComponentAttributes_Protocol PortComponentAttributes::XGSPON;
867const PortComponentAttributes_Protocol PortComponentAttributes::GFAST;
868const PortComponentAttributes_Protocol PortComponentAttributes::SERIAL;
869const PortComponentAttributes_Protocol PortComponentAttributes::EPON;
870const PortComponentAttributes_Protocol PortComponentAttributes::BITS;
871const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MIN;
872const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MAX;
873const int PortComponentAttributes::Protocol_ARRAYSIZE;
874#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
875const ::google::protobuf::EnumDescriptor* PsuComponentAttributes_SupportedVoltage_descriptor() {
876 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
877 return file_level_enum_descriptors_dmi_2fhw_2eproto[3];
878}
879bool PsuComponentAttributes_SupportedVoltage_IsValid(int value) {
880 switch (value) {
881 case 0:
882 case 1:
883 case 2:
884 case 3:
885 return true;
886 default:
887 return false;
888 }
889}
890
891#if !defined(_MSC_VER) || _MSC_VER >= 1900
892const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SUPPORTED_VOLTAGE_UNDEFINED;
893const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V48;
894const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V230;
895const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V115;
896const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MIN;
897const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MAX;
898const int PsuComponentAttributes::SupportedVoltage_ARRAYSIZE;
899#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
900const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_FormFactor_descriptor() {
901 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
902 return file_level_enum_descriptors_dmi_2fhw_2eproto[4];
903}
904bool TransceiverComponentsAttributes_FormFactor_IsValid(int value) {
905 switch (value) {
906 case 0:
907 case 1:
908 case 2:
909 case 3:
910 case 4:
911 case 5:
912 case 6:
913 case 7:
914 case 8:
915 case 9:
916 case 10:
917 case 11:
918 case 12:
919 case 13:
920 case 14:
amit.ghoshb68828f2023-10-25 18:56:01 +0200921 case 15:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530922 return true;
923 default:
924 return false;
925 }
926}
927
928#if !defined(_MSC_VER) || _MSC_VER >= 1900
929const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FORM_FACTOR_UNKNOWN;
930const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP;
931const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_PLUS;
932const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP28;
933const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP;
934const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP_PLUS;
935const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::XFP;
936const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP4;
937const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2;
938const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CPAK;
939const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::X2;
940const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::OTHER;
941const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP;
942const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_ACO;
943const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_DCO;
amit.ghoshb68828f2023-10-25 18:56:01 +0200944const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_DD;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530945const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MIN;
946const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MAX;
947const int TransceiverComponentsAttributes::FormFactor_ARRAYSIZE;
948#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530949const ::google::protobuf::EnumDescriptor* ComponentType_descriptor() {
950 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -0800951 return file_level_enum_descriptors_dmi_2fhw_2eproto[5];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530952}
953bool ComponentType_IsValid(int value) {
954 switch (value) {
955 case 0:
956 case 1:
957 case 2:
958 case 3:
959 case 4:
960 case 5:
961 case 6:
962 case 7:
963 case 8:
964 case 9:
965 case 10:
966 case 11:
967 case 12:
968 case 13:
969 case 14:
970 return true;
971 default:
972 return false;
973 }
974}
975
976const ::google::protobuf::EnumDescriptor* ComponentAdminState_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[6];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530979}
980bool ComponentAdminState_IsValid(int value) {
981 switch (value) {
982 case 0:
983 case 1:
984 case 2:
985 case 3:
986 case 4:
Amit Ghoshe45d9972025-06-26 14:52:48 +0200987 case 5:
988 case 6:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530989 return true;
990 default:
991 return false;
992 }
993}
994
995const ::google::protobuf::EnumDescriptor* ComponentOperState_descriptor() {
996 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -0800997 return file_level_enum_descriptors_dmi_2fhw_2eproto[7];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530998}
999bool ComponentOperState_IsValid(int value) {
1000 switch (value) {
1001 case 0:
1002 case 1:
1003 case 2:
1004 case 3:
1005 case 4:
Amit Ghoshe45d9972025-06-26 14:52:48 +02001006 case 5:
1007 case 6:
1008 case 7:
1009 case 8:
1010 case 9:
1011 case 10:
1012 case 11:
1013 case 12:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301014 return true;
1015 default:
1016 return false;
1017 }
1018}
1019
1020const ::google::protobuf::EnumDescriptor* ComponentUsageState_descriptor() {
1021 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001022 return file_level_enum_descriptors_dmi_2fhw_2eproto[8];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301023}
1024bool ComponentUsageState_IsValid(int value) {
1025 switch (value) {
1026 case 0:
1027 case 1:
1028 case 2:
1029 case 3:
1030 case 4:
1031 return true;
1032 default:
1033 return false;
1034 }
1035}
1036
1037const ::google::protobuf::EnumDescriptor* ComponentAlarmState_descriptor() {
1038 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001039 return file_level_enum_descriptors_dmi_2fhw_2eproto[9];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301040}
1041bool ComponentAlarmState_IsValid(int value) {
1042 switch (value) {
1043 case 0:
1044 case 1:
1045 case 2:
1046 case 3:
1047 case 4:
1048 case 5:
1049 case 6:
1050 case 7:
1051 return true;
1052 default:
1053 return false;
1054 }
1055}
1056
1057const ::google::protobuf::EnumDescriptor* ComponentStandbyState_descriptor() {
1058 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001059 return file_level_enum_descriptors_dmi_2fhw_2eproto[10];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301060}
1061bool ComponentStandbyState_IsValid(int value) {
1062 switch (value) {
1063 case 0:
1064 case 1:
1065 case 2:
1066 case 3:
1067 case 4:
1068 return true;
1069 default:
1070 return false;
1071 }
1072}
1073
1074const ::google::protobuf::EnumDescriptor* DataValueType_descriptor() {
1075 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001076 return file_level_enum_descriptors_dmi_2fhw_2eproto[11];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301077}
1078bool DataValueType_IsValid(int value) {
1079 switch (value) {
1080 case 0:
1081 case 1:
1082 case 2:
1083 case 3:
1084 case 4:
1085 case 5:
1086 case 6:
1087 case 7:
1088 case 8:
1089 case 9:
1090 case 10:
1091 case 11:
1092 case 12:
1093 case 13:
1094 case 14:
1095 case 15:
amit.ghosh93921ec2022-09-08 17:22:40 +02001096 case 16:
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301097 return true;
1098 default:
1099 return false;
1100 }
1101}
1102
1103const ::google::protobuf::EnumDescriptor* ValueScale_descriptor() {
1104 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001105 return file_level_enum_descriptors_dmi_2fhw_2eproto[12];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301106}
1107bool ValueScale_IsValid(int value) {
1108 switch (value) {
1109 case 0:
1110 case 1:
1111 case 2:
1112 case 3:
1113 case 4:
1114 case 5:
1115 case 6:
1116 case 7:
1117 case 8:
1118 case 9:
1119 case 10:
1120 case 11:
1121 case 12:
1122 case 13:
1123 case 14:
1124 case 15:
1125 case 16:
1126 case 17:
1127 return true;
1128 default:
1129 return false;
1130 }
1131}
1132
1133const ::google::protobuf::EnumDescriptor* SensorStatus_descriptor() {
1134 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
Girish Gowdra997432d2022-03-10 15:59:33 -08001135 return file_level_enum_descriptors_dmi_2fhw_2eproto[13];
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301136}
1137bool SensorStatus_IsValid(int value) {
1138 switch (value) {
1139 case 0:
1140 case 1:
1141 case 2:
1142 case 3:
1143 return true;
1144 default:
1145 return false;
1146 }
1147}
1148
Girish Gowdra997432d2022-03-10 15:59:33 -08001149const ::google::protobuf::EnumDescriptor* TransceiverType_descriptor() {
1150 ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto);
1151 return file_level_enum_descriptors_dmi_2fhw_2eproto[14];
1152}
1153bool TransceiverType_IsValid(int value) {
1154 switch (value) {
1155 case 0:
1156 case 1:
1157 case 2:
1158 case 3:
1159 case 4:
1160 case 5:
1161 case 6:
1162 case 7:
amit.ghoshecfad5d2022-03-17 13:37:14 +01001163 case 8:
Girish Gowdra997432d2022-03-10 15:59:33 -08001164 case 255:
1165 return true;
1166 default:
1167 return false;
1168 }
1169}
1170
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301171
1172// ===================================================================
1173
1174void Uuid::InitAsDefaultInstance() {
1175}
1176class Uuid::HasBitSetters {
1177 public:
1178};
1179
1180#if !defined(_MSC_VER) || _MSC_VER >= 1900
1181const int Uuid::kUuidFieldNumber;
1182#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1183
1184Uuid::Uuid()
1185 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1186 SharedCtor();
1187 // @@protoc_insertion_point(constructor:dmi.Uuid)
1188}
1189Uuid::Uuid(const Uuid& from)
1190 : ::google::protobuf::Message(),
1191 _internal_metadata_(nullptr) {
1192 _internal_metadata_.MergeFrom(from._internal_metadata_);
1193 uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1194 if (from.uuid().size() > 0) {
1195 uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
1196 }
1197 // @@protoc_insertion_point(copy_constructor:dmi.Uuid)
1198}
1199
1200void Uuid::SharedCtor() {
1201 ::google::protobuf::internal::InitSCC(
1202 &scc_info_Uuid_dmi_2fhw_2eproto.base);
1203 uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1204}
1205
1206Uuid::~Uuid() {
1207 // @@protoc_insertion_point(destructor:dmi.Uuid)
1208 SharedDtor();
1209}
1210
1211void Uuid::SharedDtor() {
1212 uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1213}
1214
1215void Uuid::SetCachedSize(int size) const {
1216 _cached_size_.Set(size);
1217}
1218const Uuid& Uuid::default_instance() {
1219 ::google::protobuf::internal::InitSCC(&::scc_info_Uuid_dmi_2fhw_2eproto.base);
1220 return *internal_default_instance();
1221}
1222
1223
1224void Uuid::Clear() {
1225// @@protoc_insertion_point(message_clear_start:dmi.Uuid)
1226 ::google::protobuf::uint32 cached_has_bits = 0;
1227 // Prevent compiler warnings about cached_has_bits being unused
1228 (void) cached_has_bits;
1229
1230 uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1231 _internal_metadata_.Clear();
1232}
1233
1234#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1235const char* Uuid::_InternalParse(const char* begin, const char* end, void* object,
1236 ::google::protobuf::internal::ParseContext* ctx) {
1237 auto msg = static_cast<Uuid*>(object);
1238 ::google::protobuf::int32 size; (void)size;
1239 int depth; (void)depth;
1240 ::google::protobuf::uint32 tag;
1241 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1242 auto ptr = begin;
1243 while (ptr < end) {
1244 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1245 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1246 switch (tag >> 3) {
1247 // string uuid = 1;
1248 case 1: {
1249 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1250 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1251 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1252 ctx->extra_parse_data().SetFieldName("dmi.Uuid.uuid");
1253 object = msg->mutable_uuid();
1254 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1255 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1256 goto string_till_end;
1257 }
1258 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1259 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1260 ptr += size;
1261 break;
1262 }
1263 default: {
1264 handle_unusual:
1265 if ((tag & 7) == 4 || tag == 0) {
1266 ctx->EndGroup(tag);
1267 return ptr;
1268 }
1269 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1270 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1271 ptr = res.first;
1272 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1273 if (res.second) return ptr;
1274 }
1275 } // switch
1276 } // while
1277 return ptr;
1278string_till_end:
1279 static_cast<::std::string*>(object)->clear();
1280 static_cast<::std::string*>(object)->reserve(size);
1281 goto len_delim_till_end;
1282len_delim_till_end:
1283 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1284 {parser_till_end, object}, size);
1285}
1286#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1287bool Uuid::MergePartialFromCodedStream(
1288 ::google::protobuf::io::CodedInputStream* input) {
1289#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1290 ::google::protobuf::uint32 tag;
1291 // @@protoc_insertion_point(parse_start:dmi.Uuid)
1292 for (;;) {
1293 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1294 tag = p.first;
1295 if (!p.second) goto handle_unusual;
1296 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1297 // string uuid = 1;
1298 case 1: {
1299 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1300 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1301 input, this->mutable_uuid()));
1302 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1303 this->uuid().data(), static_cast<int>(this->uuid().length()),
1304 ::google::protobuf::internal::WireFormatLite::PARSE,
1305 "dmi.Uuid.uuid"));
1306 } else {
1307 goto handle_unusual;
1308 }
1309 break;
1310 }
1311
1312 default: {
1313 handle_unusual:
1314 if (tag == 0) {
1315 goto success;
1316 }
1317 DO_(::google::protobuf::internal::WireFormat::SkipField(
1318 input, tag, _internal_metadata_.mutable_unknown_fields()));
1319 break;
1320 }
1321 }
1322 }
1323success:
1324 // @@protoc_insertion_point(parse_success:dmi.Uuid)
1325 return true;
1326failure:
1327 // @@protoc_insertion_point(parse_failure:dmi.Uuid)
1328 return false;
1329#undef DO_
1330}
1331#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1332
1333void Uuid::SerializeWithCachedSizes(
1334 ::google::protobuf::io::CodedOutputStream* output) const {
1335 // @@protoc_insertion_point(serialize_start:dmi.Uuid)
1336 ::google::protobuf::uint32 cached_has_bits = 0;
1337 (void) cached_has_bits;
1338
1339 // string uuid = 1;
1340 if (this->uuid().size() > 0) {
1341 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1342 this->uuid().data(), static_cast<int>(this->uuid().length()),
1343 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1344 "dmi.Uuid.uuid");
1345 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1346 1, this->uuid(), output);
1347 }
1348
1349 if (_internal_metadata_.have_unknown_fields()) {
1350 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1351 _internal_metadata_.unknown_fields(), output);
1352 }
1353 // @@protoc_insertion_point(serialize_end:dmi.Uuid)
1354}
1355
1356::google::protobuf::uint8* Uuid::InternalSerializeWithCachedSizesToArray(
1357 ::google::protobuf::uint8* target) const {
1358 // @@protoc_insertion_point(serialize_to_array_start:dmi.Uuid)
1359 ::google::protobuf::uint32 cached_has_bits = 0;
1360 (void) cached_has_bits;
1361
1362 // string uuid = 1;
1363 if (this->uuid().size() > 0) {
1364 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1365 this->uuid().data(), static_cast<int>(this->uuid().length()),
1366 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1367 "dmi.Uuid.uuid");
1368 target =
1369 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1370 1, this->uuid(), target);
1371 }
1372
1373 if (_internal_metadata_.have_unknown_fields()) {
1374 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1375 _internal_metadata_.unknown_fields(), target);
1376 }
1377 // @@protoc_insertion_point(serialize_to_array_end:dmi.Uuid)
1378 return target;
1379}
1380
1381size_t Uuid::ByteSizeLong() const {
1382// @@protoc_insertion_point(message_byte_size_start:dmi.Uuid)
1383 size_t total_size = 0;
1384
1385 if (_internal_metadata_.have_unknown_fields()) {
1386 total_size +=
1387 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1388 _internal_metadata_.unknown_fields());
1389 }
1390 ::google::protobuf::uint32 cached_has_bits = 0;
1391 // Prevent compiler warnings about cached_has_bits being unused
1392 (void) cached_has_bits;
1393
1394 // string uuid = 1;
1395 if (this->uuid().size() > 0) {
1396 total_size += 1 +
1397 ::google::protobuf::internal::WireFormatLite::StringSize(
1398 this->uuid());
1399 }
1400
1401 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1402 SetCachedSize(cached_size);
1403 return total_size;
1404}
1405
1406void Uuid::MergeFrom(const ::google::protobuf::Message& from) {
1407// @@protoc_insertion_point(generalized_merge_from_start:dmi.Uuid)
1408 GOOGLE_DCHECK_NE(&from, this);
1409 const Uuid* source =
1410 ::google::protobuf::DynamicCastToGenerated<Uuid>(
1411 &from);
1412 if (source == nullptr) {
1413 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uuid)
1414 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1415 } else {
1416 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uuid)
1417 MergeFrom(*source);
1418 }
1419}
1420
1421void Uuid::MergeFrom(const Uuid& from) {
1422// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uuid)
1423 GOOGLE_DCHECK_NE(&from, this);
1424 _internal_metadata_.MergeFrom(from._internal_metadata_);
1425 ::google::protobuf::uint32 cached_has_bits = 0;
1426 (void) cached_has_bits;
1427
1428 if (from.uuid().size() > 0) {
1429
1430 uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_);
1431 }
1432}
1433
1434void Uuid::CopyFrom(const ::google::protobuf::Message& from) {
1435// @@protoc_insertion_point(generalized_copy_from_start:dmi.Uuid)
1436 if (&from == this) return;
1437 Clear();
1438 MergeFrom(from);
1439}
1440
1441void Uuid::CopyFrom(const Uuid& from) {
1442// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uuid)
1443 if (&from == this) return;
1444 Clear();
1445 MergeFrom(from);
1446}
1447
1448bool Uuid::IsInitialized() const {
1449 return true;
1450}
1451
1452void Uuid::Swap(Uuid* other) {
1453 if (other == this) return;
1454 InternalSwap(other);
1455}
1456void Uuid::InternalSwap(Uuid* other) {
1457 using std::swap;
1458 _internal_metadata_.Swap(&other->_internal_metadata_);
1459 uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1460 GetArenaNoVirtual());
1461}
1462
1463::google::protobuf::Metadata Uuid::GetMetadata() const {
1464 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
1465 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
1466}
1467
1468
1469// ===================================================================
1470
1471void HardwareID::InitAsDefaultInstance() {
1472 ::dmi::_HardwareID_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>(
1473 ::dmi::Uuid::internal_default_instance());
1474}
1475class HardwareID::HasBitSetters {
1476 public:
1477 static const ::dmi::Uuid& uuid(const HardwareID* msg);
1478};
1479
1480const ::dmi::Uuid&
1481HardwareID::HasBitSetters::uuid(const HardwareID* msg) {
1482 return *msg->uuid_;
1483}
1484#if !defined(_MSC_VER) || _MSC_VER >= 1900
1485const int HardwareID::kUuidFieldNumber;
1486#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1487
1488HardwareID::HardwareID()
1489 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1490 SharedCtor();
1491 // @@protoc_insertion_point(constructor:dmi.HardwareID)
1492}
1493HardwareID::HardwareID(const HardwareID& from)
1494 : ::google::protobuf::Message(),
1495 _internal_metadata_(nullptr) {
1496 _internal_metadata_.MergeFrom(from._internal_metadata_);
1497 if (from.has_uuid()) {
1498 uuid_ = new ::dmi::Uuid(*from.uuid_);
1499 } else {
1500 uuid_ = nullptr;
1501 }
1502 // @@protoc_insertion_point(copy_constructor:dmi.HardwareID)
1503}
1504
1505void HardwareID::SharedCtor() {
1506 ::google::protobuf::internal::InitSCC(
1507 &scc_info_HardwareID_dmi_2fhw_2eproto.base);
1508 uuid_ = nullptr;
1509}
1510
1511HardwareID::~HardwareID() {
1512 // @@protoc_insertion_point(destructor:dmi.HardwareID)
1513 SharedDtor();
1514}
1515
1516void HardwareID::SharedDtor() {
1517 if (this != internal_default_instance()) delete uuid_;
1518}
1519
1520void HardwareID::SetCachedSize(int size) const {
1521 _cached_size_.Set(size);
1522}
1523const HardwareID& HardwareID::default_instance() {
1524 ::google::protobuf::internal::InitSCC(&::scc_info_HardwareID_dmi_2fhw_2eproto.base);
1525 return *internal_default_instance();
1526}
1527
1528
1529void HardwareID::Clear() {
1530// @@protoc_insertion_point(message_clear_start:dmi.HardwareID)
1531 ::google::protobuf::uint32 cached_has_bits = 0;
1532 // Prevent compiler warnings about cached_has_bits being unused
1533 (void) cached_has_bits;
1534
1535 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
1536 delete uuid_;
1537 }
1538 uuid_ = nullptr;
1539 _internal_metadata_.Clear();
1540}
1541
1542#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1543const char* HardwareID::_InternalParse(const char* begin, const char* end, void* object,
1544 ::google::protobuf::internal::ParseContext* ctx) {
1545 auto msg = static_cast<HardwareID*>(object);
1546 ::google::protobuf::int32 size; (void)size;
1547 int depth; (void)depth;
1548 ::google::protobuf::uint32 tag;
1549 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1550 auto ptr = begin;
1551 while (ptr < end) {
1552 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1553 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1554 switch (tag >> 3) {
1555 // .dmi.Uuid uuid = 1;
1556 case 1: {
1557 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1558 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1559 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1560 parser_till_end = ::dmi::Uuid::_InternalParse;
1561 object = msg->mutable_uuid();
1562 if (size > end - ptr) goto len_delim_till_end;
1563 ptr += size;
1564 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
1565 {parser_till_end, object}, ptr - size, ptr));
1566 break;
1567 }
1568 default: {
1569 handle_unusual:
1570 if ((tag & 7) == 4 || tag == 0) {
1571 ctx->EndGroup(tag);
1572 return ptr;
1573 }
1574 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1575 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1576 ptr = res.first;
1577 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1578 if (res.second) return ptr;
1579 }
1580 } // switch
1581 } // while
1582 return ptr;
1583len_delim_till_end:
1584 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1585 {parser_till_end, object}, size);
1586}
1587#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1588bool HardwareID::MergePartialFromCodedStream(
1589 ::google::protobuf::io::CodedInputStream* input) {
1590#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1591 ::google::protobuf::uint32 tag;
1592 // @@protoc_insertion_point(parse_start:dmi.HardwareID)
1593 for (;;) {
1594 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1595 tag = p.first;
1596 if (!p.second) goto handle_unusual;
1597 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1598 // .dmi.Uuid uuid = 1;
1599 case 1: {
1600 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1601 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1602 input, mutable_uuid()));
1603 } else {
1604 goto handle_unusual;
1605 }
1606 break;
1607 }
1608
1609 default: {
1610 handle_unusual:
1611 if (tag == 0) {
1612 goto success;
1613 }
1614 DO_(::google::protobuf::internal::WireFormat::SkipField(
1615 input, tag, _internal_metadata_.mutable_unknown_fields()));
1616 break;
1617 }
1618 }
1619 }
1620success:
1621 // @@protoc_insertion_point(parse_success:dmi.HardwareID)
1622 return true;
1623failure:
1624 // @@protoc_insertion_point(parse_failure:dmi.HardwareID)
1625 return false;
1626#undef DO_
1627}
1628#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1629
1630void HardwareID::SerializeWithCachedSizes(
1631 ::google::protobuf::io::CodedOutputStream* output) const {
1632 // @@protoc_insertion_point(serialize_start:dmi.HardwareID)
1633 ::google::protobuf::uint32 cached_has_bits = 0;
1634 (void) cached_has_bits;
1635
1636 // .dmi.Uuid uuid = 1;
1637 if (this->has_uuid()) {
1638 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1639 1, HasBitSetters::uuid(this), output);
1640 }
1641
1642 if (_internal_metadata_.have_unknown_fields()) {
1643 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1644 _internal_metadata_.unknown_fields(), output);
1645 }
1646 // @@protoc_insertion_point(serialize_end:dmi.HardwareID)
1647}
1648
1649::google::protobuf::uint8* HardwareID::InternalSerializeWithCachedSizesToArray(
1650 ::google::protobuf::uint8* target) const {
1651 // @@protoc_insertion_point(serialize_to_array_start:dmi.HardwareID)
1652 ::google::protobuf::uint32 cached_has_bits = 0;
1653 (void) cached_has_bits;
1654
1655 // .dmi.Uuid uuid = 1;
1656 if (this->has_uuid()) {
1657 target = ::google::protobuf::internal::WireFormatLite::
1658 InternalWriteMessageToArray(
1659 1, HasBitSetters::uuid(this), target);
1660 }
1661
1662 if (_internal_metadata_.have_unknown_fields()) {
1663 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1664 _internal_metadata_.unknown_fields(), target);
1665 }
1666 // @@protoc_insertion_point(serialize_to_array_end:dmi.HardwareID)
1667 return target;
1668}
1669
1670size_t HardwareID::ByteSizeLong() const {
1671// @@protoc_insertion_point(message_byte_size_start:dmi.HardwareID)
1672 size_t total_size = 0;
1673
1674 if (_internal_metadata_.have_unknown_fields()) {
1675 total_size +=
1676 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1677 _internal_metadata_.unknown_fields());
1678 }
1679 ::google::protobuf::uint32 cached_has_bits = 0;
1680 // Prevent compiler warnings about cached_has_bits being unused
1681 (void) cached_has_bits;
1682
1683 // .dmi.Uuid uuid = 1;
1684 if (this->has_uuid()) {
1685 total_size += 1 +
1686 ::google::protobuf::internal::WireFormatLite::MessageSize(
1687 *uuid_);
1688 }
1689
1690 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1691 SetCachedSize(cached_size);
1692 return total_size;
1693}
1694
1695void HardwareID::MergeFrom(const ::google::protobuf::Message& from) {
1696// @@protoc_insertion_point(generalized_merge_from_start:dmi.HardwareID)
1697 GOOGLE_DCHECK_NE(&from, this);
1698 const HardwareID* source =
1699 ::google::protobuf::DynamicCastToGenerated<HardwareID>(
1700 &from);
1701 if (source == nullptr) {
1702 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HardwareID)
1703 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1704 } else {
1705 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HardwareID)
1706 MergeFrom(*source);
1707 }
1708}
1709
1710void HardwareID::MergeFrom(const HardwareID& from) {
1711// @@protoc_insertion_point(class_specific_merge_from_start:dmi.HardwareID)
1712 GOOGLE_DCHECK_NE(&from, this);
1713 _internal_metadata_.MergeFrom(from._internal_metadata_);
1714 ::google::protobuf::uint32 cached_has_bits = 0;
1715 (void) cached_has_bits;
1716
1717 if (from.has_uuid()) {
1718 mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid());
1719 }
1720}
1721
1722void HardwareID::CopyFrom(const ::google::protobuf::Message& from) {
1723// @@protoc_insertion_point(generalized_copy_from_start:dmi.HardwareID)
1724 if (&from == this) return;
1725 Clear();
1726 MergeFrom(from);
1727}
1728
1729void HardwareID::CopyFrom(const HardwareID& from) {
1730// @@protoc_insertion_point(class_specific_copy_from_start:dmi.HardwareID)
1731 if (&from == this) return;
1732 Clear();
1733 MergeFrom(from);
1734}
1735
1736bool HardwareID::IsInitialized() const {
1737 return true;
1738}
1739
1740void HardwareID::Swap(HardwareID* other) {
1741 if (other == this) return;
1742 InternalSwap(other);
1743}
1744void HardwareID::InternalSwap(HardwareID* other) {
1745 using std::swap;
1746 _internal_metadata_.Swap(&other->_internal_metadata_);
1747 swap(uuid_, other->uuid_);
1748}
1749
1750::google::protobuf::Metadata HardwareID::GetMetadata() const {
1751 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
1752 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
1753}
1754
1755
1756// ===================================================================
1757
1758void Uri::InitAsDefaultInstance() {
1759}
1760class Uri::HasBitSetters {
1761 public:
1762};
1763
1764#if !defined(_MSC_VER) || _MSC_VER >= 1900
1765const int Uri::kUriFieldNumber;
1766#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1767
1768Uri::Uri()
1769 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
1770 SharedCtor();
1771 // @@protoc_insertion_point(constructor:dmi.Uri)
1772}
1773Uri::Uri(const Uri& from)
1774 : ::google::protobuf::Message(),
1775 _internal_metadata_(nullptr) {
1776 _internal_metadata_.MergeFrom(from._internal_metadata_);
1777 uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1778 if (from.uri().size() > 0) {
1779 uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_);
1780 }
1781 // @@protoc_insertion_point(copy_constructor:dmi.Uri)
1782}
1783
1784void Uri::SharedCtor() {
1785 ::google::protobuf::internal::InitSCC(
1786 &scc_info_Uri_dmi_2fhw_2eproto.base);
1787 uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1788}
1789
1790Uri::~Uri() {
1791 // @@protoc_insertion_point(destructor:dmi.Uri)
1792 SharedDtor();
1793}
1794
1795void Uri::SharedDtor() {
1796 uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1797}
1798
1799void Uri::SetCachedSize(int size) const {
1800 _cached_size_.Set(size);
1801}
1802const Uri& Uri::default_instance() {
1803 ::google::protobuf::internal::InitSCC(&::scc_info_Uri_dmi_2fhw_2eproto.base);
1804 return *internal_default_instance();
1805}
1806
1807
1808void Uri::Clear() {
1809// @@protoc_insertion_point(message_clear_start:dmi.Uri)
1810 ::google::protobuf::uint32 cached_has_bits = 0;
1811 // Prevent compiler warnings about cached_has_bits being unused
1812 (void) cached_has_bits;
1813
1814 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1815 _internal_metadata_.Clear();
1816}
1817
1818#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1819const char* Uri::_InternalParse(const char* begin, const char* end, void* object,
1820 ::google::protobuf::internal::ParseContext* ctx) {
1821 auto msg = static_cast<Uri*>(object);
1822 ::google::protobuf::int32 size; (void)size;
1823 int depth; (void)depth;
1824 ::google::protobuf::uint32 tag;
1825 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
1826 auto ptr = begin;
1827 while (ptr < end) {
1828 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
1829 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1830 switch (tag >> 3) {
1831 // string uri = 1;
1832 case 1: {
1833 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
1834 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
1835 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
1836 ctx->extra_parse_data().SetFieldName("dmi.Uri.uri");
1837 object = msg->mutable_uri();
1838 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
1839 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
1840 goto string_till_end;
1841 }
1842 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
1843 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
1844 ptr += size;
1845 break;
1846 }
1847 default: {
1848 handle_unusual:
1849 if ((tag & 7) == 4 || tag == 0) {
1850 ctx->EndGroup(tag);
1851 return ptr;
1852 }
1853 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
1854 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
1855 ptr = res.first;
1856 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
1857 if (res.second) return ptr;
1858 }
1859 } // switch
1860 } // while
1861 return ptr;
1862string_till_end:
1863 static_cast<::std::string*>(object)->clear();
1864 static_cast<::std::string*>(object)->reserve(size);
1865 goto len_delim_till_end;
1866len_delim_till_end:
1867 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
1868 {parser_till_end, object}, size);
1869}
1870#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1871bool Uri::MergePartialFromCodedStream(
1872 ::google::protobuf::io::CodedInputStream* input) {
1873#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1874 ::google::protobuf::uint32 tag;
1875 // @@protoc_insertion_point(parse_start:dmi.Uri)
1876 for (;;) {
1877 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1878 tag = p.first;
1879 if (!p.second) goto handle_unusual;
1880 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1881 // string uri = 1;
1882 case 1: {
1883 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
1884 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1885 input, this->mutable_uri()));
1886 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1887 this->uri().data(), static_cast<int>(this->uri().length()),
1888 ::google::protobuf::internal::WireFormatLite::PARSE,
1889 "dmi.Uri.uri"));
1890 } else {
1891 goto handle_unusual;
1892 }
1893 break;
1894 }
1895
1896 default: {
1897 handle_unusual:
1898 if (tag == 0) {
1899 goto success;
1900 }
1901 DO_(::google::protobuf::internal::WireFormat::SkipField(
1902 input, tag, _internal_metadata_.mutable_unknown_fields()));
1903 break;
1904 }
1905 }
1906 }
1907success:
1908 // @@protoc_insertion_point(parse_success:dmi.Uri)
1909 return true;
1910failure:
1911 // @@protoc_insertion_point(parse_failure:dmi.Uri)
1912 return false;
1913#undef DO_
1914}
1915#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1916
1917void Uri::SerializeWithCachedSizes(
1918 ::google::protobuf::io::CodedOutputStream* output) const {
1919 // @@protoc_insertion_point(serialize_start:dmi.Uri)
1920 ::google::protobuf::uint32 cached_has_bits = 0;
1921 (void) cached_has_bits;
1922
1923 // string uri = 1;
1924 if (this->uri().size() > 0) {
1925 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1926 this->uri().data(), static_cast<int>(this->uri().length()),
1927 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1928 "dmi.Uri.uri");
1929 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1930 1, this->uri(), output);
1931 }
1932
1933 if (_internal_metadata_.have_unknown_fields()) {
1934 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1935 _internal_metadata_.unknown_fields(), output);
1936 }
1937 // @@protoc_insertion_point(serialize_end:dmi.Uri)
1938}
1939
1940::google::protobuf::uint8* Uri::InternalSerializeWithCachedSizesToArray(
1941 ::google::protobuf::uint8* target) const {
1942 // @@protoc_insertion_point(serialize_to_array_start:dmi.Uri)
1943 ::google::protobuf::uint32 cached_has_bits = 0;
1944 (void) cached_has_bits;
1945
1946 // string uri = 1;
1947 if (this->uri().size() > 0) {
1948 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1949 this->uri().data(), static_cast<int>(this->uri().length()),
1950 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1951 "dmi.Uri.uri");
1952 target =
1953 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1954 1, this->uri(), target);
1955 }
1956
1957 if (_internal_metadata_.have_unknown_fields()) {
1958 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1959 _internal_metadata_.unknown_fields(), target);
1960 }
1961 // @@protoc_insertion_point(serialize_to_array_end:dmi.Uri)
1962 return target;
1963}
1964
1965size_t Uri::ByteSizeLong() const {
1966// @@protoc_insertion_point(message_byte_size_start:dmi.Uri)
1967 size_t total_size = 0;
1968
1969 if (_internal_metadata_.have_unknown_fields()) {
1970 total_size +=
1971 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1972 _internal_metadata_.unknown_fields());
1973 }
1974 ::google::protobuf::uint32 cached_has_bits = 0;
1975 // Prevent compiler warnings about cached_has_bits being unused
1976 (void) cached_has_bits;
1977
1978 // string uri = 1;
1979 if (this->uri().size() > 0) {
1980 total_size += 1 +
1981 ::google::protobuf::internal::WireFormatLite::StringSize(
1982 this->uri());
1983 }
1984
1985 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1986 SetCachedSize(cached_size);
1987 return total_size;
1988}
1989
1990void Uri::MergeFrom(const ::google::protobuf::Message& from) {
1991// @@protoc_insertion_point(generalized_merge_from_start:dmi.Uri)
1992 GOOGLE_DCHECK_NE(&from, this);
1993 const Uri* source =
1994 ::google::protobuf::DynamicCastToGenerated<Uri>(
1995 &from);
1996 if (source == nullptr) {
1997 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uri)
1998 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1999 } else {
2000 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uri)
2001 MergeFrom(*source);
2002 }
2003}
2004
2005void Uri::MergeFrom(const Uri& from) {
2006// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uri)
2007 GOOGLE_DCHECK_NE(&from, this);
2008 _internal_metadata_.MergeFrom(from._internal_metadata_);
2009 ::google::protobuf::uint32 cached_has_bits = 0;
2010 (void) cached_has_bits;
2011
2012 if (from.uri().size() > 0) {
2013
2014 uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_);
2015 }
2016}
2017
2018void Uri::CopyFrom(const ::google::protobuf::Message& from) {
2019// @@protoc_insertion_point(generalized_copy_from_start:dmi.Uri)
2020 if (&from == this) return;
2021 Clear();
2022 MergeFrom(from);
2023}
2024
2025void Uri::CopyFrom(const Uri& from) {
2026// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uri)
2027 if (&from == this) return;
2028 Clear();
2029 MergeFrom(from);
2030}
2031
2032bool Uri::IsInitialized() const {
2033 return true;
2034}
2035
2036void Uri::Swap(Uri* other) {
2037 if (other == this) return;
2038 InternalSwap(other);
2039}
2040void Uri::InternalSwap(Uri* other) {
2041 using std::swap;
2042 _internal_metadata_.Swap(&other->_internal_metadata_);
2043 uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
2044 GetArenaNoVirtual());
2045}
2046
2047::google::protobuf::Metadata Uri::GetMetadata() const {
2048 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
2049 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
2050}
2051
2052
2053// ===================================================================
2054
2055void ComponentState::InitAsDefaultInstance() {
2056 ::dmi::_ComponentState_default_instance_._instance.get_mutable()->state_last_changed_ = const_cast< ::google::protobuf::Timestamp*>(
2057 ::google::protobuf::Timestamp::internal_default_instance());
2058}
2059class ComponentState::HasBitSetters {
2060 public:
2061 static const ::google::protobuf::Timestamp& state_last_changed(const ComponentState* msg);
2062};
2063
2064const ::google::protobuf::Timestamp&
2065ComponentState::HasBitSetters::state_last_changed(const ComponentState* msg) {
2066 return *msg->state_last_changed_;
2067}
2068void ComponentState::clear_state_last_changed() {
2069 if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) {
2070 delete state_last_changed_;
2071 }
2072 state_last_changed_ = nullptr;
2073}
2074#if !defined(_MSC_VER) || _MSC_VER >= 1900
2075const int ComponentState::kStateLastChangedFieldNumber;
2076const int ComponentState::kAdminStateFieldNumber;
2077const int ComponentState::kOperStateFieldNumber;
2078const int ComponentState::kUsageStateFieldNumber;
2079const int ComponentState::kAlarmStateFieldNumber;
2080const int ComponentState::kStandbyStateFieldNumber;
2081#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2082
2083ComponentState::ComponentState()
2084 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2085 SharedCtor();
2086 // @@protoc_insertion_point(constructor:dmi.ComponentState)
2087}
2088ComponentState::ComponentState(const ComponentState& from)
2089 : ::google::protobuf::Message(),
2090 _internal_metadata_(nullptr) {
2091 _internal_metadata_.MergeFrom(from._internal_metadata_);
2092 if (from.has_state_last_changed()) {
2093 state_last_changed_ = new ::google::protobuf::Timestamp(*from.state_last_changed_);
2094 } else {
2095 state_last_changed_ = nullptr;
2096 }
2097 ::memcpy(&admin_state_, &from.admin_state_,
2098 static_cast<size_t>(reinterpret_cast<char*>(&standby_state_) -
2099 reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_));
2100 // @@protoc_insertion_point(copy_constructor:dmi.ComponentState)
2101}
2102
2103void ComponentState::SharedCtor() {
2104 ::google::protobuf::internal::InitSCC(
2105 &scc_info_ComponentState_dmi_2fhw_2eproto.base);
2106 ::memset(&state_last_changed_, 0, static_cast<size_t>(
2107 reinterpret_cast<char*>(&standby_state_) -
2108 reinterpret_cast<char*>(&state_last_changed_)) + sizeof(standby_state_));
2109}
2110
2111ComponentState::~ComponentState() {
2112 // @@protoc_insertion_point(destructor:dmi.ComponentState)
2113 SharedDtor();
2114}
2115
2116void ComponentState::SharedDtor() {
2117 if (this != internal_default_instance()) delete state_last_changed_;
2118}
2119
2120void ComponentState::SetCachedSize(int size) const {
2121 _cached_size_.Set(size);
2122}
2123const ComponentState& ComponentState::default_instance() {
2124 ::google::protobuf::internal::InitSCC(&::scc_info_ComponentState_dmi_2fhw_2eproto.base);
2125 return *internal_default_instance();
2126}
2127
2128
2129void ComponentState::Clear() {
2130// @@protoc_insertion_point(message_clear_start:dmi.ComponentState)
2131 ::google::protobuf::uint32 cached_has_bits = 0;
2132 // Prevent compiler warnings about cached_has_bits being unused
2133 (void) cached_has_bits;
2134
2135 if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) {
2136 delete state_last_changed_;
2137 }
2138 state_last_changed_ = nullptr;
2139 ::memset(&admin_state_, 0, static_cast<size_t>(
2140 reinterpret_cast<char*>(&standby_state_) -
2141 reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_));
2142 _internal_metadata_.Clear();
2143}
2144
2145#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2146const char* ComponentState::_InternalParse(const char* begin, const char* end, void* object,
2147 ::google::protobuf::internal::ParseContext* ctx) {
2148 auto msg = static_cast<ComponentState*>(object);
2149 ::google::protobuf::int32 size; (void)size;
2150 int depth; (void)depth;
2151 ::google::protobuf::uint32 tag;
2152 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2153 auto ptr = begin;
2154 while (ptr < end) {
2155 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2156 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2157 switch (tag >> 3) {
2158 // .google.protobuf.Timestamp state_last_changed = 1;
2159 case 1: {
2160 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
2161 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2162 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2163 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
2164 object = msg->mutable_state_last_changed();
2165 if (size > end - ptr) goto len_delim_till_end;
2166 ptr += size;
2167 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2168 {parser_till_end, object}, ptr - size, ptr));
2169 break;
2170 }
2171 // .dmi.ComponentAdminState admin_state = 2;
2172 case 2: {
2173 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2174 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2175 msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val));
2176 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2177 break;
2178 }
2179 // .dmi.ComponentOperState oper_state = 3;
2180 case 3: {
2181 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
2182 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2183 msg->set_oper_state(static_cast<::dmi::ComponentOperState>(val));
2184 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2185 break;
2186 }
2187 // .dmi.ComponentUsageState usage_state = 4;
2188 case 4: {
2189 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
2190 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2191 msg->set_usage_state(static_cast<::dmi::ComponentUsageState>(val));
2192 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2193 break;
2194 }
2195 // .dmi.ComponentAlarmState alarm_state = 5;
2196 case 5: {
2197 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
2198 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2199 msg->set_alarm_state(static_cast<::dmi::ComponentAlarmState>(val));
2200 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2201 break;
2202 }
2203 // .dmi.ComponentStandbyState standby_state = 6;
2204 case 6: {
2205 if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual;
2206 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2207 msg->set_standby_state(static_cast<::dmi::ComponentStandbyState>(val));
2208 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2209 break;
2210 }
2211 default: {
2212 handle_unusual:
2213 if ((tag & 7) == 4 || tag == 0) {
2214 ctx->EndGroup(tag);
2215 return ptr;
2216 }
2217 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2218 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2219 ptr = res.first;
2220 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2221 if (res.second) return ptr;
2222 }
2223 } // switch
2224 } // while
2225 return ptr;
2226len_delim_till_end:
2227 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2228 {parser_till_end, object}, size);
2229}
2230#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2231bool ComponentState::MergePartialFromCodedStream(
2232 ::google::protobuf::io::CodedInputStream* input) {
2233#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2234 ::google::protobuf::uint32 tag;
2235 // @@protoc_insertion_point(parse_start:dmi.ComponentState)
2236 for (;;) {
2237 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2238 tag = p.first;
2239 if (!p.second) goto handle_unusual;
2240 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2241 // .google.protobuf.Timestamp state_last_changed = 1;
2242 case 1: {
2243 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
2244 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2245 input, mutable_state_last_changed()));
2246 } else {
2247 goto handle_unusual;
2248 }
2249 break;
2250 }
2251
2252 // .dmi.ComponentAdminState admin_state = 2;
2253 case 2: {
2254 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2255 int value = 0;
2256 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2257 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2258 input, &value)));
2259 set_admin_state(static_cast< ::dmi::ComponentAdminState >(value));
2260 } else {
2261 goto handle_unusual;
2262 }
2263 break;
2264 }
2265
2266 // .dmi.ComponentOperState oper_state = 3;
2267 case 3: {
2268 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
2269 int value = 0;
2270 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2271 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2272 input, &value)));
2273 set_oper_state(static_cast< ::dmi::ComponentOperState >(value));
2274 } else {
2275 goto handle_unusual;
2276 }
2277 break;
2278 }
2279
2280 // .dmi.ComponentUsageState usage_state = 4;
2281 case 4: {
2282 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
2283 int value = 0;
2284 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2285 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2286 input, &value)));
2287 set_usage_state(static_cast< ::dmi::ComponentUsageState >(value));
2288 } else {
2289 goto handle_unusual;
2290 }
2291 break;
2292 }
2293
2294 // .dmi.ComponentAlarmState alarm_state = 5;
2295 case 5: {
2296 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
2297 int value = 0;
2298 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2299 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2300 input, &value)));
2301 set_alarm_state(static_cast< ::dmi::ComponentAlarmState >(value));
2302 } else {
2303 goto handle_unusual;
2304 }
2305 break;
2306 }
2307
2308 // .dmi.ComponentStandbyState standby_state = 6;
2309 case 6: {
2310 if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) {
2311 int value = 0;
2312 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2313 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2314 input, &value)));
2315 set_standby_state(static_cast< ::dmi::ComponentStandbyState >(value));
2316 } else {
2317 goto handle_unusual;
2318 }
2319 break;
2320 }
2321
2322 default: {
2323 handle_unusual:
2324 if (tag == 0) {
2325 goto success;
2326 }
2327 DO_(::google::protobuf::internal::WireFormat::SkipField(
2328 input, tag, _internal_metadata_.mutable_unknown_fields()));
2329 break;
2330 }
2331 }
2332 }
2333success:
2334 // @@protoc_insertion_point(parse_success:dmi.ComponentState)
2335 return true;
2336failure:
2337 // @@protoc_insertion_point(parse_failure:dmi.ComponentState)
2338 return false;
2339#undef DO_
2340}
2341#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2342
2343void ComponentState::SerializeWithCachedSizes(
2344 ::google::protobuf::io::CodedOutputStream* output) const {
2345 // @@protoc_insertion_point(serialize_start:dmi.ComponentState)
2346 ::google::protobuf::uint32 cached_has_bits = 0;
2347 (void) cached_has_bits;
2348
2349 // .google.protobuf.Timestamp state_last_changed = 1;
2350 if (this->has_state_last_changed()) {
2351 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2352 1, HasBitSetters::state_last_changed(this), output);
2353 }
2354
2355 // .dmi.ComponentAdminState admin_state = 2;
2356 if (this->admin_state() != 0) {
2357 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2358 2, this->admin_state(), output);
2359 }
2360
2361 // .dmi.ComponentOperState oper_state = 3;
2362 if (this->oper_state() != 0) {
2363 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2364 3, this->oper_state(), output);
2365 }
2366
2367 // .dmi.ComponentUsageState usage_state = 4;
2368 if (this->usage_state() != 0) {
2369 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2370 4, this->usage_state(), output);
2371 }
2372
2373 // .dmi.ComponentAlarmState alarm_state = 5;
2374 if (this->alarm_state() != 0) {
2375 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2376 5, this->alarm_state(), output);
2377 }
2378
2379 // .dmi.ComponentStandbyState standby_state = 6;
2380 if (this->standby_state() != 0) {
2381 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2382 6, this->standby_state(), output);
2383 }
2384
2385 if (_internal_metadata_.have_unknown_fields()) {
2386 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2387 _internal_metadata_.unknown_fields(), output);
2388 }
2389 // @@protoc_insertion_point(serialize_end:dmi.ComponentState)
2390}
2391
2392::google::protobuf::uint8* ComponentState::InternalSerializeWithCachedSizesToArray(
2393 ::google::protobuf::uint8* target) const {
2394 // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentState)
2395 ::google::protobuf::uint32 cached_has_bits = 0;
2396 (void) cached_has_bits;
2397
2398 // .google.protobuf.Timestamp state_last_changed = 1;
2399 if (this->has_state_last_changed()) {
2400 target = ::google::protobuf::internal::WireFormatLite::
2401 InternalWriteMessageToArray(
2402 1, HasBitSetters::state_last_changed(this), target);
2403 }
2404
2405 // .dmi.ComponentAdminState admin_state = 2;
2406 if (this->admin_state() != 0) {
2407 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2408 2, this->admin_state(), target);
2409 }
2410
2411 // .dmi.ComponentOperState oper_state = 3;
2412 if (this->oper_state() != 0) {
2413 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2414 3, this->oper_state(), target);
2415 }
2416
2417 // .dmi.ComponentUsageState usage_state = 4;
2418 if (this->usage_state() != 0) {
2419 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2420 4, this->usage_state(), target);
2421 }
2422
2423 // .dmi.ComponentAlarmState alarm_state = 5;
2424 if (this->alarm_state() != 0) {
2425 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2426 5, this->alarm_state(), target);
2427 }
2428
2429 // .dmi.ComponentStandbyState standby_state = 6;
2430 if (this->standby_state() != 0) {
2431 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2432 6, this->standby_state(), target);
2433 }
2434
2435 if (_internal_metadata_.have_unknown_fields()) {
2436 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2437 _internal_metadata_.unknown_fields(), target);
2438 }
2439 // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentState)
2440 return target;
2441}
2442
2443size_t ComponentState::ByteSizeLong() const {
2444// @@protoc_insertion_point(message_byte_size_start:dmi.ComponentState)
2445 size_t total_size = 0;
2446
2447 if (_internal_metadata_.have_unknown_fields()) {
2448 total_size +=
2449 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2450 _internal_metadata_.unknown_fields());
2451 }
2452 ::google::protobuf::uint32 cached_has_bits = 0;
2453 // Prevent compiler warnings about cached_has_bits being unused
2454 (void) cached_has_bits;
2455
2456 // .google.protobuf.Timestamp state_last_changed = 1;
2457 if (this->has_state_last_changed()) {
2458 total_size += 1 +
2459 ::google::protobuf::internal::WireFormatLite::MessageSize(
2460 *state_last_changed_);
2461 }
2462
2463 // .dmi.ComponentAdminState admin_state = 2;
2464 if (this->admin_state() != 0) {
2465 total_size += 1 +
2466 ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state());
2467 }
2468
2469 // .dmi.ComponentOperState oper_state = 3;
2470 if (this->oper_state() != 0) {
2471 total_size += 1 +
2472 ::google::protobuf::internal::WireFormatLite::EnumSize(this->oper_state());
2473 }
2474
2475 // .dmi.ComponentUsageState usage_state = 4;
2476 if (this->usage_state() != 0) {
2477 total_size += 1 +
2478 ::google::protobuf::internal::WireFormatLite::EnumSize(this->usage_state());
2479 }
2480
2481 // .dmi.ComponentAlarmState alarm_state = 5;
2482 if (this->alarm_state() != 0) {
2483 total_size += 1 +
2484 ::google::protobuf::internal::WireFormatLite::EnumSize(this->alarm_state());
2485 }
2486
2487 // .dmi.ComponentStandbyState standby_state = 6;
2488 if (this->standby_state() != 0) {
2489 total_size += 1 +
2490 ::google::protobuf::internal::WireFormatLite::EnumSize(this->standby_state());
2491 }
2492
2493 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2494 SetCachedSize(cached_size);
2495 return total_size;
2496}
2497
2498void ComponentState::MergeFrom(const ::google::protobuf::Message& from) {
2499// @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentState)
2500 GOOGLE_DCHECK_NE(&from, this);
2501 const ComponentState* source =
2502 ::google::protobuf::DynamicCastToGenerated<ComponentState>(
2503 &from);
2504 if (source == nullptr) {
2505 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentState)
2506 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2507 } else {
2508 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentState)
2509 MergeFrom(*source);
2510 }
2511}
2512
2513void ComponentState::MergeFrom(const ComponentState& from) {
2514// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentState)
2515 GOOGLE_DCHECK_NE(&from, this);
2516 _internal_metadata_.MergeFrom(from._internal_metadata_);
2517 ::google::protobuf::uint32 cached_has_bits = 0;
2518 (void) cached_has_bits;
2519
2520 if (from.has_state_last_changed()) {
2521 mutable_state_last_changed()->::google::protobuf::Timestamp::MergeFrom(from.state_last_changed());
2522 }
2523 if (from.admin_state() != 0) {
2524 set_admin_state(from.admin_state());
2525 }
2526 if (from.oper_state() != 0) {
2527 set_oper_state(from.oper_state());
2528 }
2529 if (from.usage_state() != 0) {
2530 set_usage_state(from.usage_state());
2531 }
2532 if (from.alarm_state() != 0) {
2533 set_alarm_state(from.alarm_state());
2534 }
2535 if (from.standby_state() != 0) {
2536 set_standby_state(from.standby_state());
2537 }
2538}
2539
2540void ComponentState::CopyFrom(const ::google::protobuf::Message& from) {
2541// @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentState)
2542 if (&from == this) return;
2543 Clear();
2544 MergeFrom(from);
2545}
2546
2547void ComponentState::CopyFrom(const ComponentState& from) {
2548// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentState)
2549 if (&from == this) return;
2550 Clear();
2551 MergeFrom(from);
2552}
2553
2554bool ComponentState::IsInitialized() const {
2555 return true;
2556}
2557
2558void ComponentState::Swap(ComponentState* other) {
2559 if (other == this) return;
2560 InternalSwap(other);
2561}
2562void ComponentState::InternalSwap(ComponentState* other) {
2563 using std::swap;
2564 _internal_metadata_.Swap(&other->_internal_metadata_);
2565 swap(state_last_changed_, other->state_last_changed_);
2566 swap(admin_state_, other->admin_state_);
2567 swap(oper_state_, other->oper_state_);
2568 swap(usage_state_, other->usage_state_);
2569 swap(alarm_state_, other->alarm_state_);
2570 swap(standby_state_, other->standby_state_);
2571}
2572
2573::google::protobuf::Metadata ComponentState::GetMetadata() const {
2574 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
2575 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
2576}
2577
2578
2579// ===================================================================
2580
2581void ComponentSensorData::InitAsDefaultInstance() {
2582 ::dmi::_ComponentSensorData_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>(
2583 ::google::protobuf::Timestamp::internal_default_instance());
2584}
2585class ComponentSensorData::HasBitSetters {
2586 public:
2587 static const ::google::protobuf::Timestamp& timestamp(const ComponentSensorData* msg);
2588};
2589
2590const ::google::protobuf::Timestamp&
2591ComponentSensorData::HasBitSetters::timestamp(const ComponentSensorData* msg) {
2592 return *msg->timestamp_;
2593}
2594void ComponentSensorData::clear_timestamp() {
2595 if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) {
2596 delete timestamp_;
2597 }
2598 timestamp_ = nullptr;
2599}
2600#if !defined(_MSC_VER) || _MSC_VER >= 1900
2601const int ComponentSensorData::kValueFieldNumber;
2602const int ComponentSensorData::kTypeFieldNumber;
2603const int ComponentSensorData::kScaleFieldNumber;
2604const int ComponentSensorData::kPrecisionFieldNumber;
2605const int ComponentSensorData::kStatusFieldNumber;
2606const int ComponentSensorData::kUnitsDisplayFieldNumber;
2607const int ComponentSensorData::kTimestampFieldNumber;
2608const int ComponentSensorData::kValueUpdateRateFieldNumber;
2609const int ComponentSensorData::kDataTypeFieldNumber;
2610#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
2611
2612ComponentSensorData::ComponentSensorData()
2613 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
2614 SharedCtor();
2615 // @@protoc_insertion_point(constructor:dmi.ComponentSensorData)
2616}
2617ComponentSensorData::ComponentSensorData(const ComponentSensorData& from)
2618 : ::google::protobuf::Message(),
2619 _internal_metadata_(nullptr) {
2620 _internal_metadata_.MergeFrom(from._internal_metadata_);
2621 units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2622 if (from.units_display().size() > 0) {
2623 units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_);
2624 }
2625 data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2626 if (from.data_type().size() > 0) {
2627 data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
2628 }
2629 if (from.has_timestamp()) {
2630 timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_);
2631 } else {
2632 timestamp_ = nullptr;
2633 }
2634 ::memcpy(&value_, &from.value_,
2635 static_cast<size_t>(reinterpret_cast<char*>(&value_update_rate_) -
2636 reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_));
2637 // @@protoc_insertion_point(copy_constructor:dmi.ComponentSensorData)
2638}
2639
2640void ComponentSensorData::SharedCtor() {
2641 ::google::protobuf::internal::InitSCC(
2642 &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
2643 units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2644 data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2645 ::memset(&timestamp_, 0, static_cast<size_t>(
2646 reinterpret_cast<char*>(&value_update_rate_) -
2647 reinterpret_cast<char*>(&timestamp_)) + sizeof(value_update_rate_));
2648}
2649
2650ComponentSensorData::~ComponentSensorData() {
2651 // @@protoc_insertion_point(destructor:dmi.ComponentSensorData)
2652 SharedDtor();
2653}
2654
2655void ComponentSensorData::SharedDtor() {
2656 units_display_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2657 data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2658 if (this != internal_default_instance()) delete timestamp_;
2659}
2660
2661void ComponentSensorData::SetCachedSize(int size) const {
2662 _cached_size_.Set(size);
2663}
2664const ComponentSensorData& ComponentSensorData::default_instance() {
2665 ::google::protobuf::internal::InitSCC(&::scc_info_ComponentSensorData_dmi_2fhw_2eproto.base);
2666 return *internal_default_instance();
2667}
2668
2669
2670void ComponentSensorData::Clear() {
2671// @@protoc_insertion_point(message_clear_start:dmi.ComponentSensorData)
2672 ::google::protobuf::uint32 cached_has_bits = 0;
2673 // Prevent compiler warnings about cached_has_bits being unused
2674 (void) cached_has_bits;
2675
2676 units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2677 data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2678 if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) {
2679 delete timestamp_;
2680 }
2681 timestamp_ = nullptr;
2682 ::memset(&value_, 0, static_cast<size_t>(
2683 reinterpret_cast<char*>(&value_update_rate_) -
2684 reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_));
2685 _internal_metadata_.Clear();
2686}
2687
2688#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2689const char* ComponentSensorData::_InternalParse(const char* begin, const char* end, void* object,
2690 ::google::protobuf::internal::ParseContext* ctx) {
2691 auto msg = static_cast<ComponentSensorData*>(object);
2692 ::google::protobuf::int32 size; (void)size;
2693 int depth; (void)depth;
2694 ::google::protobuf::uint32 tag;
2695 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
2696 auto ptr = begin;
2697 while (ptr < end) {
2698 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
2699 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2700 switch (tag >> 3) {
2701 // int32 value = 1;
2702 case 1: {
2703 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
2704 msg->set_value(::google::protobuf::internal::ReadVarint(&ptr));
2705 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2706 break;
2707 }
2708 // .dmi.DataValueType type = 2;
2709 case 2: {
2710 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
2711 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2712 msg->set_type(static_cast<::dmi::DataValueType>(val));
2713 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2714 break;
2715 }
2716 // .dmi.ValueScale scale = 3;
2717 case 3: {
2718 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
2719 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2720 msg->set_scale(static_cast<::dmi::ValueScale>(val));
2721 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2722 break;
2723 }
2724 // int32 precision = 4;
2725 case 4: {
2726 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
2727 msg->set_precision(::google::protobuf::internal::ReadVarint(&ptr));
2728 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2729 break;
2730 }
2731 // .dmi.SensorStatus status = 5;
2732 case 5: {
2733 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
2734 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
2735 msg->set_status(static_cast<::dmi::SensorStatus>(val));
2736 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2737 break;
2738 }
2739 // string units_display = 6;
2740 case 6: {
2741 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
2742 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2743 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2744 ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.units_display");
2745 object = msg->mutable_units_display();
2746 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2747 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2748 goto string_till_end;
2749 }
2750 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2751 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2752 ptr += size;
2753 break;
2754 }
2755 // .google.protobuf.Timestamp timestamp = 7;
2756 case 7: {
2757 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
2758 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2759 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2760 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
2761 object = msg->mutable_timestamp();
2762 if (size > end - ptr) goto len_delim_till_end;
2763 ptr += size;
2764 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
2765 {parser_till_end, object}, ptr - size, ptr));
2766 break;
2767 }
2768 // uint32 value_update_rate = 8;
2769 case 8: {
2770 if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual;
2771 msg->set_value_update_rate(::google::protobuf::internal::ReadVarint(&ptr));
2772 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2773 break;
2774 }
2775 // string data_type = 9;
2776 case 9: {
2777 if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual;
2778 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
2779 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
2780 ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.data_type");
2781 object = msg->mutable_data_type();
2782 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
2783 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
2784 goto string_till_end;
2785 }
2786 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
2787 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
2788 ptr += size;
2789 break;
2790 }
2791 default: {
2792 handle_unusual:
2793 if ((tag & 7) == 4 || tag == 0) {
2794 ctx->EndGroup(tag);
2795 return ptr;
2796 }
2797 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
2798 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
2799 ptr = res.first;
2800 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
2801 if (res.second) return ptr;
2802 }
2803 } // switch
2804 } // while
2805 return ptr;
2806string_till_end:
2807 static_cast<::std::string*>(object)->clear();
2808 static_cast<::std::string*>(object)->reserve(size);
2809 goto len_delim_till_end;
2810len_delim_till_end:
2811 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
2812 {parser_till_end, object}, size);
2813}
2814#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2815bool ComponentSensorData::MergePartialFromCodedStream(
2816 ::google::protobuf::io::CodedInputStream* input) {
2817#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2818 ::google::protobuf::uint32 tag;
2819 // @@protoc_insertion_point(parse_start:dmi.ComponentSensorData)
2820 for (;;) {
2821 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2822 tag = p.first;
2823 if (!p.second) goto handle_unusual;
2824 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2825 // int32 value = 1;
2826 case 1: {
2827 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
2828
2829 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2830 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2831 input, &value_)));
2832 } else {
2833 goto handle_unusual;
2834 }
2835 break;
2836 }
2837
2838 // .dmi.DataValueType type = 2;
2839 case 2: {
2840 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
2841 int value = 0;
2842 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2843 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2844 input, &value)));
2845 set_type(static_cast< ::dmi::DataValueType >(value));
2846 } else {
2847 goto handle_unusual;
2848 }
2849 break;
2850 }
2851
2852 // .dmi.ValueScale scale = 3;
2853 case 3: {
2854 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
2855 int value = 0;
2856 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2857 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2858 input, &value)));
2859 set_scale(static_cast< ::dmi::ValueScale >(value));
2860 } else {
2861 goto handle_unusual;
2862 }
2863 break;
2864 }
2865
2866 // int32 precision = 4;
2867 case 4: {
2868 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
2869
2870 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2871 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2872 input, &precision_)));
2873 } else {
2874 goto handle_unusual;
2875 }
2876 break;
2877 }
2878
2879 // .dmi.SensorStatus status = 5;
2880 case 5: {
2881 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
2882 int value = 0;
2883 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2884 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
2885 input, &value)));
2886 set_status(static_cast< ::dmi::SensorStatus >(value));
2887 } else {
2888 goto handle_unusual;
2889 }
2890 break;
2891 }
2892
2893 // string units_display = 6;
2894 case 6: {
2895 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
2896 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2897 input, this->mutable_units_display()));
2898 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2899 this->units_display().data(), static_cast<int>(this->units_display().length()),
2900 ::google::protobuf::internal::WireFormatLite::PARSE,
2901 "dmi.ComponentSensorData.units_display"));
2902 } else {
2903 goto handle_unusual;
2904 }
2905 break;
2906 }
2907
2908 // .google.protobuf.Timestamp timestamp = 7;
2909 case 7: {
2910 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
2911 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2912 input, mutable_timestamp()));
2913 } else {
2914 goto handle_unusual;
2915 }
2916 break;
2917 }
2918
2919 // uint32 value_update_rate = 8;
2920 case 8: {
2921 if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) {
2922
2923 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2924 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
2925 input, &value_update_rate_)));
2926 } else {
2927 goto handle_unusual;
2928 }
2929 break;
2930 }
2931
2932 // string data_type = 9;
2933 case 9: {
2934 if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) {
2935 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2936 input, this->mutable_data_type()));
2937 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
2938 this->data_type().data(), static_cast<int>(this->data_type().length()),
2939 ::google::protobuf::internal::WireFormatLite::PARSE,
2940 "dmi.ComponentSensorData.data_type"));
2941 } else {
2942 goto handle_unusual;
2943 }
2944 break;
2945 }
2946
2947 default: {
2948 handle_unusual:
2949 if (tag == 0) {
2950 goto success;
2951 }
2952 DO_(::google::protobuf::internal::WireFormat::SkipField(
2953 input, tag, _internal_metadata_.mutable_unknown_fields()));
2954 break;
2955 }
2956 }
2957 }
2958success:
2959 // @@protoc_insertion_point(parse_success:dmi.ComponentSensorData)
2960 return true;
2961failure:
2962 // @@protoc_insertion_point(parse_failure:dmi.ComponentSensorData)
2963 return false;
2964#undef DO_
2965}
2966#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2967
2968void ComponentSensorData::SerializeWithCachedSizes(
2969 ::google::protobuf::io::CodedOutputStream* output) const {
2970 // @@protoc_insertion_point(serialize_start:dmi.ComponentSensorData)
2971 ::google::protobuf::uint32 cached_has_bits = 0;
2972 (void) cached_has_bits;
2973
2974 // int32 value = 1;
2975 if (this->value() != 0) {
2976 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output);
2977 }
2978
2979 // .dmi.DataValueType type = 2;
2980 if (this->type() != 0) {
2981 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2982 2, this->type(), output);
2983 }
2984
2985 // .dmi.ValueScale scale = 3;
2986 if (this->scale() != 0) {
2987 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2988 3, this->scale(), output);
2989 }
2990
2991 // int32 precision = 4;
2992 if (this->precision() != 0) {
2993 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->precision(), output);
2994 }
2995
2996 // .dmi.SensorStatus status = 5;
2997 if (this->status() != 0) {
2998 ::google::protobuf::internal::WireFormatLite::WriteEnum(
2999 5, this->status(), output);
3000 }
3001
3002 // string units_display = 6;
3003 if (this->units_display().size() > 0) {
3004 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3005 this->units_display().data(), static_cast<int>(this->units_display().length()),
3006 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3007 "dmi.ComponentSensorData.units_display");
3008 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3009 6, this->units_display(), output);
3010 }
3011
3012 // .google.protobuf.Timestamp timestamp = 7;
3013 if (this->has_timestamp()) {
3014 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3015 7, HasBitSetters::timestamp(this), output);
3016 }
3017
3018 // uint32 value_update_rate = 8;
3019 if (this->value_update_rate() != 0) {
3020 ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->value_update_rate(), output);
3021 }
3022
3023 // string data_type = 9;
3024 if (this->data_type().size() > 0) {
3025 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3026 this->data_type().data(), static_cast<int>(this->data_type().length()),
3027 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3028 "dmi.ComponentSensorData.data_type");
3029 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3030 9, this->data_type(), output);
3031 }
3032
3033 if (_internal_metadata_.have_unknown_fields()) {
3034 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3035 _internal_metadata_.unknown_fields(), output);
3036 }
3037 // @@protoc_insertion_point(serialize_end:dmi.ComponentSensorData)
3038}
3039
3040::google::protobuf::uint8* ComponentSensorData::InternalSerializeWithCachedSizesToArray(
3041 ::google::protobuf::uint8* target) const {
3042 // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentSensorData)
3043 ::google::protobuf::uint32 cached_has_bits = 0;
3044 (void) cached_has_bits;
3045
3046 // int32 value = 1;
3047 if (this->value() != 0) {
3048 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target);
3049 }
3050
3051 // .dmi.DataValueType type = 2;
3052 if (this->type() != 0) {
3053 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3054 2, this->type(), target);
3055 }
3056
3057 // .dmi.ValueScale scale = 3;
3058 if (this->scale() != 0) {
3059 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3060 3, this->scale(), target);
3061 }
3062
3063 // int32 precision = 4;
3064 if (this->precision() != 0) {
3065 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->precision(), target);
3066 }
3067
3068 // .dmi.SensorStatus status = 5;
3069 if (this->status() != 0) {
3070 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3071 5, this->status(), target);
3072 }
3073
3074 // string units_display = 6;
3075 if (this->units_display().size() > 0) {
3076 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3077 this->units_display().data(), static_cast<int>(this->units_display().length()),
3078 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3079 "dmi.ComponentSensorData.units_display");
3080 target =
3081 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3082 6, this->units_display(), target);
3083 }
3084
3085 // .google.protobuf.Timestamp timestamp = 7;
3086 if (this->has_timestamp()) {
3087 target = ::google::protobuf::internal::WireFormatLite::
3088 InternalWriteMessageToArray(
3089 7, HasBitSetters::timestamp(this), target);
3090 }
3091
3092 // uint32 value_update_rate = 8;
3093 if (this->value_update_rate() != 0) {
3094 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->value_update_rate(), target);
3095 }
3096
3097 // string data_type = 9;
3098 if (this->data_type().size() > 0) {
3099 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3100 this->data_type().data(), static_cast<int>(this->data_type().length()),
3101 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3102 "dmi.ComponentSensorData.data_type");
3103 target =
3104 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3105 9, this->data_type(), target);
3106 }
3107
3108 if (_internal_metadata_.have_unknown_fields()) {
3109 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3110 _internal_metadata_.unknown_fields(), target);
3111 }
3112 // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentSensorData)
3113 return target;
3114}
3115
3116size_t ComponentSensorData::ByteSizeLong() const {
3117// @@protoc_insertion_point(message_byte_size_start:dmi.ComponentSensorData)
3118 size_t total_size = 0;
3119
3120 if (_internal_metadata_.have_unknown_fields()) {
3121 total_size +=
3122 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3123 _internal_metadata_.unknown_fields());
3124 }
3125 ::google::protobuf::uint32 cached_has_bits = 0;
3126 // Prevent compiler warnings about cached_has_bits being unused
3127 (void) cached_has_bits;
3128
3129 // string units_display = 6;
3130 if (this->units_display().size() > 0) {
3131 total_size += 1 +
3132 ::google::protobuf::internal::WireFormatLite::StringSize(
3133 this->units_display());
3134 }
3135
3136 // string data_type = 9;
3137 if (this->data_type().size() > 0) {
3138 total_size += 1 +
3139 ::google::protobuf::internal::WireFormatLite::StringSize(
3140 this->data_type());
3141 }
3142
3143 // .google.protobuf.Timestamp timestamp = 7;
3144 if (this->has_timestamp()) {
3145 total_size += 1 +
3146 ::google::protobuf::internal::WireFormatLite::MessageSize(
3147 *timestamp_);
3148 }
3149
3150 // int32 value = 1;
3151 if (this->value() != 0) {
3152 total_size += 1 +
3153 ::google::protobuf::internal::WireFormatLite::Int32Size(
3154 this->value());
3155 }
3156
3157 // .dmi.DataValueType type = 2;
3158 if (this->type() != 0) {
3159 total_size += 1 +
3160 ::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
3161 }
3162
3163 // .dmi.ValueScale scale = 3;
3164 if (this->scale() != 0) {
3165 total_size += 1 +
3166 ::google::protobuf::internal::WireFormatLite::EnumSize(this->scale());
3167 }
3168
3169 // int32 precision = 4;
3170 if (this->precision() != 0) {
3171 total_size += 1 +
3172 ::google::protobuf::internal::WireFormatLite::Int32Size(
3173 this->precision());
3174 }
3175
3176 // .dmi.SensorStatus status = 5;
3177 if (this->status() != 0) {
3178 total_size += 1 +
3179 ::google::protobuf::internal::WireFormatLite::EnumSize(this->status());
3180 }
3181
3182 // uint32 value_update_rate = 8;
3183 if (this->value_update_rate() != 0) {
3184 total_size += 1 +
3185 ::google::protobuf::internal::WireFormatLite::UInt32Size(
3186 this->value_update_rate());
3187 }
3188
3189 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3190 SetCachedSize(cached_size);
3191 return total_size;
3192}
3193
3194void ComponentSensorData::MergeFrom(const ::google::protobuf::Message& from) {
3195// @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentSensorData)
3196 GOOGLE_DCHECK_NE(&from, this);
3197 const ComponentSensorData* source =
3198 ::google::protobuf::DynamicCastToGenerated<ComponentSensorData>(
3199 &from);
3200 if (source == nullptr) {
3201 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentSensorData)
3202 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3203 } else {
3204 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentSensorData)
3205 MergeFrom(*source);
3206 }
3207}
3208
3209void ComponentSensorData::MergeFrom(const ComponentSensorData& from) {
3210// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentSensorData)
3211 GOOGLE_DCHECK_NE(&from, this);
3212 _internal_metadata_.MergeFrom(from._internal_metadata_);
3213 ::google::protobuf::uint32 cached_has_bits = 0;
3214 (void) cached_has_bits;
3215
3216 if (from.units_display().size() > 0) {
3217
3218 units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_);
3219 }
3220 if (from.data_type().size() > 0) {
3221
3222 data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_);
3223 }
3224 if (from.has_timestamp()) {
3225 mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp());
3226 }
3227 if (from.value() != 0) {
3228 set_value(from.value());
3229 }
3230 if (from.type() != 0) {
3231 set_type(from.type());
3232 }
3233 if (from.scale() != 0) {
3234 set_scale(from.scale());
3235 }
3236 if (from.precision() != 0) {
3237 set_precision(from.precision());
3238 }
3239 if (from.status() != 0) {
3240 set_status(from.status());
3241 }
3242 if (from.value_update_rate() != 0) {
3243 set_value_update_rate(from.value_update_rate());
3244 }
3245}
3246
3247void ComponentSensorData::CopyFrom(const ::google::protobuf::Message& from) {
3248// @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentSensorData)
3249 if (&from == this) return;
3250 Clear();
3251 MergeFrom(from);
3252}
3253
3254void ComponentSensorData::CopyFrom(const ComponentSensorData& from) {
3255// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentSensorData)
3256 if (&from == this) return;
3257 Clear();
3258 MergeFrom(from);
3259}
3260
3261bool ComponentSensorData::IsInitialized() const {
3262 return true;
3263}
3264
3265void ComponentSensorData::Swap(ComponentSensorData* other) {
3266 if (other == this) return;
3267 InternalSwap(other);
3268}
3269void ComponentSensorData::InternalSwap(ComponentSensorData* other) {
3270 using std::swap;
3271 _internal_metadata_.Swap(&other->_internal_metadata_);
3272 units_display_.Swap(&other->units_display_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3273 GetArenaNoVirtual());
3274 data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3275 GetArenaNoVirtual());
3276 swap(timestamp_, other->timestamp_);
3277 swap(value_, other->value_);
3278 swap(type_, other->type_);
3279 swap(scale_, other->scale_);
3280 swap(precision_, other->precision_);
3281 swap(status_, other->status_);
3282 swap(value_update_rate_, other->value_update_rate_);
3283}
3284
3285::google::protobuf::Metadata ComponentSensorData::GetMetadata() const {
3286 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
3287 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
3288}
3289
3290
3291// ===================================================================
3292
3293void PortComponentAttributes::InitAsDefaultInstance() {
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003294 ::dmi::_PortComponentAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>(
3295 ::dmi::PonIdConfig::internal_default_instance());
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303296 ::dmi::_PortComponentAttributes_default_instance_._instance.get_mutable()->distance_ = const_cast< ::dmi::PonDistance*>(
3297 ::dmi::PonDistance::internal_default_instance());
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303298}
3299class PortComponentAttributes::HasBitSetters {
3300 public:
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003301 static const ::dmi::PonIdConfig& pon_id_config(const PortComponentAttributes* msg);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303302 static const ::dmi::PonDistance& distance(const PortComponentAttributes* msg);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303303};
3304
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003305const ::dmi::PonIdConfig&
3306PortComponentAttributes::HasBitSetters::pon_id_config(const PortComponentAttributes* msg) {
3307 return *msg->pon_id_config_;
3308}
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303309const ::dmi::PonDistance&
3310PortComponentAttributes::HasBitSetters::distance(const PortComponentAttributes* msg) {
3311 return *msg->distance_;
3312}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303313#if !defined(_MSC_VER) || _MSC_VER >= 1900
3314const int PortComponentAttributes::kConnectorTypeFieldNumber;
3315const int PortComponentAttributes::kSpeedFieldNumber;
3316const int PortComponentAttributes::kProtocolFieldNumber;
3317const int PortComponentAttributes::kPhysicalLabelFieldNumber;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003318const int PortComponentAttributes::kMappingLabelFieldNumber;
3319const int PortComponentAttributes::kPonIdConfigFieldNumber;
Andrea Campanellafcd22292021-08-27 10:45:46 +02003320const int PortComponentAttributes::kSpeedAutonegotiationFieldNumber;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303321const int PortComponentAttributes::kDistanceFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303322#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3323
3324PortComponentAttributes::PortComponentAttributes()
3325 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3326 SharedCtor();
3327 // @@protoc_insertion_point(constructor:dmi.PortComponentAttributes)
3328}
3329PortComponentAttributes::PortComponentAttributes(const PortComponentAttributes& from)
3330 : ::google::protobuf::Message(),
3331 _internal_metadata_(nullptr) {
3332 _internal_metadata_.MergeFrom(from._internal_metadata_);
3333 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3334 if (from.physical_label().size() > 0) {
3335 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3336 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003337 mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3338 if (from.mapping_label().size() > 0) {
3339 mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_);
3340 }
3341 if (from.has_pon_id_config()) {
3342 pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_);
3343 } else {
3344 pon_id_config_ = nullptr;
3345 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303346 if (from.has_distance()) {
3347 distance_ = new ::dmi::PonDistance(*from.distance_);
3348 } else {
3349 distance_ = nullptr;
3350 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303351 ::memcpy(&connector_type_, &from.connector_type_,
Andrea Campanellafcd22292021-08-27 10:45:46 +02003352 static_cast<size_t>(reinterpret_cast<char*>(&speed_autonegotiation_) -
3353 reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303354 // @@protoc_insertion_point(copy_constructor:dmi.PortComponentAttributes)
3355}
3356
3357void PortComponentAttributes::SharedCtor() {
3358 ::google::protobuf::internal::InitSCC(
3359 &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
3360 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003361 mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3362 ::memset(&pon_id_config_, 0, static_cast<size_t>(
Andrea Campanellafcd22292021-08-27 10:45:46 +02003363 reinterpret_cast<char*>(&speed_autonegotiation_) -
3364 reinterpret_cast<char*>(&pon_id_config_)) + sizeof(speed_autonegotiation_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303365}
3366
3367PortComponentAttributes::~PortComponentAttributes() {
3368 // @@protoc_insertion_point(destructor:dmi.PortComponentAttributes)
3369 SharedDtor();
3370}
3371
3372void PortComponentAttributes::SharedDtor() {
3373 physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003374 mapping_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3375 if (this != internal_default_instance()) delete pon_id_config_;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303376 if (this != internal_default_instance()) delete distance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303377}
3378
3379void PortComponentAttributes::SetCachedSize(int size) const {
3380 _cached_size_.Set(size);
3381}
3382const PortComponentAttributes& PortComponentAttributes::default_instance() {
3383 ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base);
3384 return *internal_default_instance();
3385}
3386
3387
3388void PortComponentAttributes::Clear() {
3389// @@protoc_insertion_point(message_clear_start:dmi.PortComponentAttributes)
3390 ::google::protobuf::uint32 cached_has_bits = 0;
3391 // Prevent compiler warnings about cached_has_bits being unused
3392 (void) cached_has_bits;
3393
3394 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003395 mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3396 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3397 delete pon_id_config_;
3398 }
3399 pon_id_config_ = nullptr;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303400 if (GetArenaNoVirtual() == nullptr && distance_ != nullptr) {
3401 delete distance_;
3402 }
3403 distance_ = nullptr;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303404 ::memset(&connector_type_, 0, static_cast<size_t>(
Andrea Campanellafcd22292021-08-27 10:45:46 +02003405 reinterpret_cast<char*>(&speed_autonegotiation_) -
3406 reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303407 _internal_metadata_.Clear();
3408}
3409
3410#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3411const char* PortComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
3412 ::google::protobuf::internal::ParseContext* ctx) {
3413 auto msg = static_cast<PortComponentAttributes*>(object);
3414 ::google::protobuf::int32 size; (void)size;
3415 int depth; (void)depth;
3416 ::google::protobuf::uint32 tag;
3417 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
3418 auto ptr = begin;
3419 while (ptr < end) {
3420 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
3421 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3422 switch (tag >> 3) {
3423 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3424 case 1: {
3425 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
3426 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3427 msg->set_connector_type(static_cast<::dmi::PortComponentAttributes_ConnectorType>(val));
3428 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3429 break;
3430 }
3431 // .dmi.PortComponentAttributes.Speed speed = 2;
3432 case 2: {
3433 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
3434 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3435 msg->set_speed(static_cast<::dmi::PortComponentAttributes_Speed>(val));
3436 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3437 break;
3438 }
3439 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3440 case 3: {
3441 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
3442 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
3443 msg->set_protocol(static_cast<::dmi::PortComponentAttributes_Protocol>(val));
3444 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3445 break;
3446 }
3447 // string physical_label = 4;
3448 case 4: {
3449 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
3450 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3451 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3452 ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.physical_label");
3453 object = msg->mutable_physical_label();
3454 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3455 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3456 goto string_till_end;
3457 }
3458 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3459 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3460 ptr += size;
3461 break;
3462 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003463 // string mapping_label = 5;
3464 case 5: {
3465 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
3466 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3467 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3468 ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.mapping_label");
3469 object = msg->mutable_mapping_label();
3470 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
3471 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
3472 goto string_till_end;
3473 }
3474 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
3475 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
3476 ptr += size;
3477 break;
3478 }
3479 // .dmi.PonIdConfig pon_id_config = 6;
3480 case 6: {
3481 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
3482 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3483 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3484 parser_till_end = ::dmi::PonIdConfig::_InternalParse;
3485 object = msg->mutable_pon_id_config();
3486 if (size > end - ptr) goto len_delim_till_end;
3487 ptr += size;
3488 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3489 {parser_till_end, object}, ptr - size, ptr));
3490 break;
3491 }
Andrea Campanellafcd22292021-08-27 10:45:46 +02003492 // bool speed_autonegotiation = 7;
3493 case 7: {
3494 if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual;
3495 msg->set_speed_autonegotiation(::google::protobuf::internal::ReadVarint(&ptr));
3496 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3497 break;
3498 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303499 // .dmi.PonDistance distance = 8;
3500 case 8: {
3501 if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual;
3502 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
3503 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
3504 parser_till_end = ::dmi::PonDistance::_InternalParse;
3505 object = msg->mutable_distance();
3506 if (size > end - ptr) goto len_delim_till_end;
3507 ptr += size;
3508 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
3509 {parser_till_end, object}, ptr - size, ptr));
3510 break;
3511 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303512 default: {
3513 handle_unusual:
3514 if ((tag & 7) == 4 || tag == 0) {
3515 ctx->EndGroup(tag);
3516 return ptr;
3517 }
3518 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
3519 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
3520 ptr = res.first;
3521 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
3522 if (res.second) return ptr;
3523 }
3524 } // switch
3525 } // while
3526 return ptr;
3527string_till_end:
3528 static_cast<::std::string*>(object)->clear();
3529 static_cast<::std::string*>(object)->reserve(size);
3530 goto len_delim_till_end;
3531len_delim_till_end:
3532 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
3533 {parser_till_end, object}, size);
3534}
3535#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3536bool PortComponentAttributes::MergePartialFromCodedStream(
3537 ::google::protobuf::io::CodedInputStream* input) {
3538#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
3539 ::google::protobuf::uint32 tag;
3540 // @@protoc_insertion_point(parse_start:dmi.PortComponentAttributes)
3541 for (;;) {
3542 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3543 tag = p.first;
3544 if (!p.second) goto handle_unusual;
3545 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3546 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3547 case 1: {
3548 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
3549 int value = 0;
3550 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3551 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3552 input, &value)));
3553 set_connector_type(static_cast< ::dmi::PortComponentAttributes_ConnectorType >(value));
3554 } else {
3555 goto handle_unusual;
3556 }
3557 break;
3558 }
3559
3560 // .dmi.PortComponentAttributes.Speed speed = 2;
3561 case 2: {
3562 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
3563 int value = 0;
3564 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3565 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3566 input, &value)));
3567 set_speed(static_cast< ::dmi::PortComponentAttributes_Speed >(value));
3568 } else {
3569 goto handle_unusual;
3570 }
3571 break;
3572 }
3573
3574 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3575 case 3: {
3576 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
3577 int value = 0;
3578 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3579 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3580 input, &value)));
3581 set_protocol(static_cast< ::dmi::PortComponentAttributes_Protocol >(value));
3582 } else {
3583 goto handle_unusual;
3584 }
3585 break;
3586 }
3587
3588 // string physical_label = 4;
3589 case 4: {
3590 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
3591 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3592 input, this->mutable_physical_label()));
3593 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3594 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3595 ::google::protobuf::internal::WireFormatLite::PARSE,
3596 "dmi.PortComponentAttributes.physical_label"));
3597 } else {
3598 goto handle_unusual;
3599 }
3600 break;
3601 }
3602
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003603 // string mapping_label = 5;
3604 case 5: {
3605 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
3606 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3607 input, this->mutable_mapping_label()));
3608 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3609 this->mapping_label().data(), static_cast<int>(this->mapping_label().length()),
3610 ::google::protobuf::internal::WireFormatLite::PARSE,
3611 "dmi.PortComponentAttributes.mapping_label"));
3612 } else {
3613 goto handle_unusual;
3614 }
3615 break;
3616 }
3617
3618 // .dmi.PonIdConfig pon_id_config = 6;
3619 case 6: {
3620 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
3621 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3622 input, mutable_pon_id_config()));
3623 } else {
3624 goto handle_unusual;
3625 }
3626 break;
3627 }
3628
Andrea Campanellafcd22292021-08-27 10:45:46 +02003629 // bool speed_autonegotiation = 7;
3630 case 7: {
3631 if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) {
3632
3633 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3634 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3635 input, &speed_autonegotiation_)));
3636 } else {
3637 goto handle_unusual;
3638 }
3639 break;
3640 }
3641
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303642 // .dmi.PonDistance distance = 8;
3643 case 8: {
3644 if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) {
3645 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3646 input, mutable_distance()));
3647 } else {
3648 goto handle_unusual;
3649 }
3650 break;
3651 }
3652
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303653 default: {
3654 handle_unusual:
3655 if (tag == 0) {
3656 goto success;
3657 }
3658 DO_(::google::protobuf::internal::WireFormat::SkipField(
3659 input, tag, _internal_metadata_.mutable_unknown_fields()));
3660 break;
3661 }
3662 }
3663 }
3664success:
3665 // @@protoc_insertion_point(parse_success:dmi.PortComponentAttributes)
3666 return true;
3667failure:
3668 // @@protoc_insertion_point(parse_failure:dmi.PortComponentAttributes)
3669 return false;
3670#undef DO_
3671}
3672#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3673
3674void PortComponentAttributes::SerializeWithCachedSizes(
3675 ::google::protobuf::io::CodedOutputStream* output) const {
3676 // @@protoc_insertion_point(serialize_start:dmi.PortComponentAttributes)
3677 ::google::protobuf::uint32 cached_has_bits = 0;
3678 (void) cached_has_bits;
3679
3680 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3681 if (this->connector_type() != 0) {
3682 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3683 1, this->connector_type(), output);
3684 }
3685
3686 // .dmi.PortComponentAttributes.Speed speed = 2;
3687 if (this->speed() != 0) {
3688 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3689 2, this->speed(), output);
3690 }
3691
3692 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3693 if (this->protocol() != 0) {
3694 ::google::protobuf::internal::WireFormatLite::WriteEnum(
3695 3, this->protocol(), output);
3696 }
3697
3698 // string physical_label = 4;
3699 if (this->physical_label().size() > 0) {
3700 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3701 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3702 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3703 "dmi.PortComponentAttributes.physical_label");
3704 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3705 4, this->physical_label(), output);
3706 }
3707
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003708 // string mapping_label = 5;
3709 if (this->mapping_label().size() > 0) {
3710 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3711 this->mapping_label().data(), static_cast<int>(this->mapping_label().length()),
3712 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3713 "dmi.PortComponentAttributes.mapping_label");
3714 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3715 5, this->mapping_label(), output);
3716 }
3717
3718 // .dmi.PonIdConfig pon_id_config = 6;
3719 if (this->has_pon_id_config()) {
3720 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3721 6, HasBitSetters::pon_id_config(this), output);
3722 }
3723
Andrea Campanellafcd22292021-08-27 10:45:46 +02003724 // bool speed_autonegotiation = 7;
3725 if (this->speed_autonegotiation() != 0) {
3726 ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->speed_autonegotiation(), output);
3727 }
3728
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303729 // .dmi.PonDistance distance = 8;
3730 if (this->has_distance()) {
3731 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3732 8, HasBitSetters::distance(this), output);
3733 }
3734
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303735 if (_internal_metadata_.have_unknown_fields()) {
3736 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3737 _internal_metadata_.unknown_fields(), output);
3738 }
3739 // @@protoc_insertion_point(serialize_end:dmi.PortComponentAttributes)
3740}
3741
3742::google::protobuf::uint8* PortComponentAttributes::InternalSerializeWithCachedSizesToArray(
3743 ::google::protobuf::uint8* target) const {
3744 // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentAttributes)
3745 ::google::protobuf::uint32 cached_has_bits = 0;
3746 (void) cached_has_bits;
3747
3748 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3749 if (this->connector_type() != 0) {
3750 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3751 1, this->connector_type(), target);
3752 }
3753
3754 // .dmi.PortComponentAttributes.Speed speed = 2;
3755 if (this->speed() != 0) {
3756 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3757 2, this->speed(), target);
3758 }
3759
3760 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3761 if (this->protocol() != 0) {
3762 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3763 3, this->protocol(), target);
3764 }
3765
3766 // string physical_label = 4;
3767 if (this->physical_label().size() > 0) {
3768 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3769 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
3770 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3771 "dmi.PortComponentAttributes.physical_label");
3772 target =
3773 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3774 4, this->physical_label(), target);
3775 }
3776
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003777 // string mapping_label = 5;
3778 if (this->mapping_label().size() > 0) {
3779 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
3780 this->mapping_label().data(), static_cast<int>(this->mapping_label().length()),
3781 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
3782 "dmi.PortComponentAttributes.mapping_label");
3783 target =
3784 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3785 5, this->mapping_label(), target);
3786 }
3787
3788 // .dmi.PonIdConfig pon_id_config = 6;
3789 if (this->has_pon_id_config()) {
3790 target = ::google::protobuf::internal::WireFormatLite::
3791 InternalWriteMessageToArray(
3792 6, HasBitSetters::pon_id_config(this), target);
3793 }
3794
Andrea Campanellafcd22292021-08-27 10:45:46 +02003795 // bool speed_autonegotiation = 7;
3796 if (this->speed_autonegotiation() != 0) {
3797 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->speed_autonegotiation(), target);
3798 }
3799
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303800 // .dmi.PonDistance distance = 8;
3801 if (this->has_distance()) {
3802 target = ::google::protobuf::internal::WireFormatLite::
3803 InternalWriteMessageToArray(
3804 8, HasBitSetters::distance(this), target);
3805 }
3806
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303807 if (_internal_metadata_.have_unknown_fields()) {
3808 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3809 _internal_metadata_.unknown_fields(), target);
3810 }
3811 // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentAttributes)
3812 return target;
3813}
3814
3815size_t PortComponentAttributes::ByteSizeLong() const {
3816// @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentAttributes)
3817 size_t total_size = 0;
3818
3819 if (_internal_metadata_.have_unknown_fields()) {
3820 total_size +=
3821 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3822 _internal_metadata_.unknown_fields());
3823 }
3824 ::google::protobuf::uint32 cached_has_bits = 0;
3825 // Prevent compiler warnings about cached_has_bits being unused
3826 (void) cached_has_bits;
3827
3828 // string physical_label = 4;
3829 if (this->physical_label().size() > 0) {
3830 total_size += 1 +
3831 ::google::protobuf::internal::WireFormatLite::StringSize(
3832 this->physical_label());
3833 }
3834
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003835 // string mapping_label = 5;
3836 if (this->mapping_label().size() > 0) {
3837 total_size += 1 +
3838 ::google::protobuf::internal::WireFormatLite::StringSize(
3839 this->mapping_label());
3840 }
3841
3842 // .dmi.PonIdConfig pon_id_config = 6;
3843 if (this->has_pon_id_config()) {
3844 total_size += 1 +
3845 ::google::protobuf::internal::WireFormatLite::MessageSize(
3846 *pon_id_config_);
3847 }
3848
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303849 // .dmi.PonDistance distance = 8;
3850 if (this->has_distance()) {
3851 total_size += 1 +
3852 ::google::protobuf::internal::WireFormatLite::MessageSize(
3853 *distance_);
3854 }
3855
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303856 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3857 if (this->connector_type() != 0) {
3858 total_size += 1 +
3859 ::google::protobuf::internal::WireFormatLite::EnumSize(this->connector_type());
3860 }
3861
3862 // .dmi.PortComponentAttributes.Speed speed = 2;
3863 if (this->speed() != 0) {
3864 total_size += 1 +
3865 ::google::protobuf::internal::WireFormatLite::EnumSize(this->speed());
3866 }
3867
3868 // .dmi.PortComponentAttributes.Protocol protocol = 3;
3869 if (this->protocol() != 0) {
3870 total_size += 1 +
3871 ::google::protobuf::internal::WireFormatLite::EnumSize(this->protocol());
3872 }
3873
Andrea Campanellafcd22292021-08-27 10:45:46 +02003874 // bool speed_autonegotiation = 7;
3875 if (this->speed_autonegotiation() != 0) {
3876 total_size += 1 + 1;
3877 }
3878
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303879 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3880 SetCachedSize(cached_size);
3881 return total_size;
3882}
3883
3884void PortComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
3885// @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentAttributes)
3886 GOOGLE_DCHECK_NE(&from, this);
3887 const PortComponentAttributes* source =
3888 ::google::protobuf::DynamicCastToGenerated<PortComponentAttributes>(
3889 &from);
3890 if (source == nullptr) {
3891 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentAttributes)
3892 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3893 } else {
3894 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentAttributes)
3895 MergeFrom(*source);
3896 }
3897}
3898
3899void PortComponentAttributes::MergeFrom(const PortComponentAttributes& from) {
3900// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentAttributes)
3901 GOOGLE_DCHECK_NE(&from, this);
3902 _internal_metadata_.MergeFrom(from._internal_metadata_);
3903 ::google::protobuf::uint32 cached_has_bits = 0;
3904 (void) cached_has_bits;
3905
3906 if (from.physical_label().size() > 0) {
3907
3908 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
3909 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003910 if (from.mapping_label().size() > 0) {
3911
3912 mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_);
3913 }
3914 if (from.has_pon_id_config()) {
3915 mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config());
3916 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303917 if (from.has_distance()) {
3918 mutable_distance()->::dmi::PonDistance::MergeFrom(from.distance());
3919 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303920 if (from.connector_type() != 0) {
3921 set_connector_type(from.connector_type());
3922 }
3923 if (from.speed() != 0) {
3924 set_speed(from.speed());
3925 }
3926 if (from.protocol() != 0) {
3927 set_protocol(from.protocol());
3928 }
Andrea Campanellafcd22292021-08-27 10:45:46 +02003929 if (from.speed_autonegotiation() != 0) {
3930 set_speed_autonegotiation(from.speed_autonegotiation());
3931 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303932}
3933
3934void PortComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
3935// @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentAttributes)
3936 if (&from == this) return;
3937 Clear();
3938 MergeFrom(from);
3939}
3940
3941void PortComponentAttributes::CopyFrom(const PortComponentAttributes& from) {
3942// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentAttributes)
3943 if (&from == this) return;
3944 Clear();
3945 MergeFrom(from);
3946}
3947
3948bool PortComponentAttributes::IsInitialized() const {
3949 return true;
3950}
3951
3952void PortComponentAttributes::Swap(PortComponentAttributes* other) {
3953 if (other == this) return;
3954 InternalSwap(other);
3955}
3956void PortComponentAttributes::InternalSwap(PortComponentAttributes* other) {
3957 using std::swap;
3958 _internal_metadata_.Swap(&other->_internal_metadata_);
3959 physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3960 GetArenaNoVirtual());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003961 mapping_label_.Swap(&other->mapping_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3962 GetArenaNoVirtual());
3963 swap(pon_id_config_, other->pon_id_config_);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303964 swap(distance_, other->distance_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303965 swap(connector_type_, other->connector_type_);
3966 swap(speed_, other->speed_);
3967 swap(protocol_, other->protocol_);
Andrea Campanellafcd22292021-08-27 10:45:46 +02003968 swap(speed_autonegotiation_, other->speed_autonegotiation_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303969}
3970
3971::google::protobuf::Metadata PortComponentAttributes::GetMetadata() const {
3972 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
3973 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
3974}
3975
3976
3977// ===================================================================
3978
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05303979void PonDistance::InitAsDefaultInstance() {
3980}
3981class PonDistance::HasBitSetters {
3982 public:
3983};
3984
3985#if !defined(_MSC_VER) || _MSC_VER >= 1900
3986const int PonDistance::kMaxDistanceFieldNumber;
3987const int PonDistance::kMaxDifferentialDistanceFieldNumber;
3988#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
3989
3990PonDistance::PonDistance()
3991 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
3992 SharedCtor();
3993 // @@protoc_insertion_point(constructor:dmi.PonDistance)
3994}
3995PonDistance::PonDistance(const PonDistance& from)
3996 : ::google::protobuf::Message(),
3997 _internal_metadata_(nullptr) {
3998 _internal_metadata_.MergeFrom(from._internal_metadata_);
3999 ::memcpy(&max_distance_, &from.max_distance_,
4000 static_cast<size_t>(reinterpret_cast<char*>(&max_differential_distance_) -
4001 reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_));
4002 // @@protoc_insertion_point(copy_constructor:dmi.PonDistance)
4003}
4004
4005void PonDistance::SharedCtor() {
4006 ::memset(&max_distance_, 0, static_cast<size_t>(
4007 reinterpret_cast<char*>(&max_differential_distance_) -
4008 reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_));
4009}
4010
4011PonDistance::~PonDistance() {
4012 // @@protoc_insertion_point(destructor:dmi.PonDistance)
4013 SharedDtor();
4014}
4015
4016void PonDistance::SharedDtor() {
4017}
4018
4019void PonDistance::SetCachedSize(int size) const {
4020 _cached_size_.Set(size);
4021}
4022const PonDistance& PonDistance::default_instance() {
4023 ::google::protobuf::internal::InitSCC(&::scc_info_PonDistance_dmi_2fhw_2eproto.base);
4024 return *internal_default_instance();
4025}
4026
4027
4028void PonDistance::Clear() {
4029// @@protoc_insertion_point(message_clear_start:dmi.PonDistance)
4030 ::google::protobuf::uint32 cached_has_bits = 0;
4031 // Prevent compiler warnings about cached_has_bits being unused
4032 (void) cached_has_bits;
4033
4034 ::memset(&max_distance_, 0, static_cast<size_t>(
4035 reinterpret_cast<char*>(&max_differential_distance_) -
4036 reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_));
4037 _internal_metadata_.Clear();
4038}
4039
4040#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4041const char* PonDistance::_InternalParse(const char* begin, const char* end, void* object,
4042 ::google::protobuf::internal::ParseContext* ctx) {
4043 auto msg = static_cast<PonDistance*>(object);
4044 ::google::protobuf::int32 size; (void)size;
4045 int depth; (void)depth;
4046 ::google::protobuf::uint32 tag;
4047 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4048 auto ptr = begin;
4049 while (ptr < end) {
4050 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4051 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4052 switch (tag >> 3) {
4053 // uint32 max_distance = 1;
4054 case 1: {
4055 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4056 msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr));
4057 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4058 break;
4059 }
4060 // uint32 max_differential_distance = 2;
4061 case 2: {
4062 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
4063 msg->set_max_differential_distance(::google::protobuf::internal::ReadVarint(&ptr));
4064 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4065 break;
4066 }
4067 default: {
4068 handle_unusual:
4069 if ((tag & 7) == 4 || tag == 0) {
4070 ctx->EndGroup(tag);
4071 return ptr;
4072 }
4073 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4074 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4075 ptr = res.first;
4076 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4077 if (res.second) return ptr;
4078 }
4079 } // switch
4080 } // while
4081 return ptr;
4082}
4083#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4084bool PonDistance::MergePartialFromCodedStream(
4085 ::google::protobuf::io::CodedInputStream* input) {
4086#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4087 ::google::protobuf::uint32 tag;
4088 // @@protoc_insertion_point(parse_start:dmi.PonDistance)
4089 for (;;) {
4090 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4091 tag = p.first;
4092 if (!p.second) goto handle_unusual;
4093 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4094 // uint32 max_distance = 1;
4095 case 1: {
4096 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4097
4098 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4099 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4100 input, &max_distance_)));
4101 } else {
4102 goto handle_unusual;
4103 }
4104 break;
4105 }
4106
4107 // uint32 max_differential_distance = 2;
4108 case 2: {
4109 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
4110
4111 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4112 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4113 input, &max_differential_distance_)));
4114 } else {
4115 goto handle_unusual;
4116 }
4117 break;
4118 }
4119
4120 default: {
4121 handle_unusual:
4122 if (tag == 0) {
4123 goto success;
4124 }
4125 DO_(::google::protobuf::internal::WireFormat::SkipField(
4126 input, tag, _internal_metadata_.mutable_unknown_fields()));
4127 break;
4128 }
4129 }
4130 }
4131success:
4132 // @@protoc_insertion_point(parse_success:dmi.PonDistance)
4133 return true;
4134failure:
4135 // @@protoc_insertion_point(parse_failure:dmi.PonDistance)
4136 return false;
4137#undef DO_
4138}
4139#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4140
4141void PonDistance::SerializeWithCachedSizes(
4142 ::google::protobuf::io::CodedOutputStream* output) const {
4143 // @@protoc_insertion_point(serialize_start:dmi.PonDistance)
4144 ::google::protobuf::uint32 cached_has_bits = 0;
4145 (void) cached_has_bits;
4146
4147 // uint32 max_distance = 1;
4148 if (this->max_distance() != 0) {
4149 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_distance(), output);
4150 }
4151
4152 // uint32 max_differential_distance = 2;
4153 if (this->max_differential_distance() != 0) {
4154 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_differential_distance(), output);
4155 }
4156
4157 if (_internal_metadata_.have_unknown_fields()) {
4158 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4159 _internal_metadata_.unknown_fields(), output);
4160 }
4161 // @@protoc_insertion_point(serialize_end:dmi.PonDistance)
4162}
4163
4164::google::protobuf::uint8* PonDistance::InternalSerializeWithCachedSizesToArray(
4165 ::google::protobuf::uint8* target) const {
4166 // @@protoc_insertion_point(serialize_to_array_start:dmi.PonDistance)
4167 ::google::protobuf::uint32 cached_has_bits = 0;
4168 (void) cached_has_bits;
4169
4170 // uint32 max_distance = 1;
4171 if (this->max_distance() != 0) {
4172 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_distance(), target);
4173 }
4174
4175 // uint32 max_differential_distance = 2;
4176 if (this->max_differential_distance() != 0) {
4177 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_differential_distance(), target);
4178 }
4179
4180 if (_internal_metadata_.have_unknown_fields()) {
4181 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4182 _internal_metadata_.unknown_fields(), target);
4183 }
4184 // @@protoc_insertion_point(serialize_to_array_end:dmi.PonDistance)
4185 return target;
4186}
4187
4188size_t PonDistance::ByteSizeLong() const {
4189// @@protoc_insertion_point(message_byte_size_start:dmi.PonDistance)
4190 size_t total_size = 0;
4191
4192 if (_internal_metadata_.have_unknown_fields()) {
4193 total_size +=
4194 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4195 _internal_metadata_.unknown_fields());
4196 }
4197 ::google::protobuf::uint32 cached_has_bits = 0;
4198 // Prevent compiler warnings about cached_has_bits being unused
4199 (void) cached_has_bits;
4200
4201 // uint32 max_distance = 1;
4202 if (this->max_distance() != 0) {
4203 total_size += 1 +
4204 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4205 this->max_distance());
4206 }
4207
4208 // uint32 max_differential_distance = 2;
4209 if (this->max_differential_distance() != 0) {
4210 total_size += 1 +
4211 ::google::protobuf::internal::WireFormatLite::UInt32Size(
4212 this->max_differential_distance());
4213 }
4214
4215 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4216 SetCachedSize(cached_size);
4217 return total_size;
4218}
4219
4220void PonDistance::MergeFrom(const ::google::protobuf::Message& from) {
4221// @@protoc_insertion_point(generalized_merge_from_start:dmi.PonDistance)
4222 GOOGLE_DCHECK_NE(&from, this);
4223 const PonDistance* source =
4224 ::google::protobuf::DynamicCastToGenerated<PonDistance>(
4225 &from);
4226 if (source == nullptr) {
4227 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PonDistance)
4228 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4229 } else {
4230 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PonDistance)
4231 MergeFrom(*source);
4232 }
4233}
4234
4235void PonDistance::MergeFrom(const PonDistance& from) {
4236// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PonDistance)
4237 GOOGLE_DCHECK_NE(&from, this);
4238 _internal_metadata_.MergeFrom(from._internal_metadata_);
4239 ::google::protobuf::uint32 cached_has_bits = 0;
4240 (void) cached_has_bits;
4241
4242 if (from.max_distance() != 0) {
4243 set_max_distance(from.max_distance());
4244 }
4245 if (from.max_differential_distance() != 0) {
4246 set_max_differential_distance(from.max_differential_distance());
4247 }
4248}
4249
4250void PonDistance::CopyFrom(const ::google::protobuf::Message& from) {
4251// @@protoc_insertion_point(generalized_copy_from_start:dmi.PonDistance)
4252 if (&from == this) return;
4253 Clear();
4254 MergeFrom(from);
4255}
4256
4257void PonDistance::CopyFrom(const PonDistance& from) {
4258// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PonDistance)
4259 if (&from == this) return;
4260 Clear();
4261 MergeFrom(from);
4262}
4263
4264bool PonDistance::IsInitialized() const {
4265 return true;
4266}
4267
4268void PonDistance::Swap(PonDistance* other) {
4269 if (other == this) return;
4270 InternalSwap(other);
4271}
4272void PonDistance::InternalSwap(PonDistance* other) {
4273 using std::swap;
4274 _internal_metadata_.Swap(&other->_internal_metadata_);
4275 swap(max_distance_, other->max_distance_);
4276 swap(max_differential_distance_, other->max_differential_distance_);
4277}
4278
4279::google::protobuf::Metadata PonDistance::GetMetadata() const {
4280 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
4281 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
4282}
4283
4284
4285// ===================================================================
4286
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004287void PortComponentChangeAttributes::InitAsDefaultInstance() {
4288 ::dmi::_PortComponentChangeAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>(
4289 ::dmi::PonIdConfig::internal_default_instance());
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304290 ::dmi::_PortComponentChangeAttributes_default_instance_._instance.get_mutable()->distance_ = const_cast< ::dmi::PonDistance*>(
4291 ::dmi::PonDistance::internal_default_instance());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004292}
4293class PortComponentChangeAttributes::HasBitSetters {
4294 public:
4295 static const ::dmi::PonIdConfig& pon_id_config(const PortComponentChangeAttributes* msg);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304296 static const ::dmi::PonDistance& distance(const PortComponentChangeAttributes* msg);
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004297};
4298
4299const ::dmi::PonIdConfig&
4300PortComponentChangeAttributes::HasBitSetters::pon_id_config(const PortComponentChangeAttributes* msg) {
4301 return *msg->pon_id_config_;
4302}
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304303const ::dmi::PonDistance&
4304PortComponentChangeAttributes::HasBitSetters::distance(const PortComponentChangeAttributes* msg) {
4305 return *msg->distance_;
4306}
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004307#if !defined(_MSC_VER) || _MSC_VER >= 1900
4308const int PortComponentChangeAttributes::kPonIdConfigFieldNumber;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304309const int PortComponentChangeAttributes::kDistanceFieldNumber;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004310#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4311
4312PortComponentChangeAttributes::PortComponentChangeAttributes()
4313 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4314 SharedCtor();
4315 // @@protoc_insertion_point(constructor:dmi.PortComponentChangeAttributes)
4316}
4317PortComponentChangeAttributes::PortComponentChangeAttributes(const PortComponentChangeAttributes& from)
4318 : ::google::protobuf::Message(),
4319 _internal_metadata_(nullptr) {
4320 _internal_metadata_.MergeFrom(from._internal_metadata_);
4321 if (from.has_pon_id_config()) {
4322 pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_);
4323 } else {
4324 pon_id_config_ = nullptr;
4325 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304326 if (from.has_distance()) {
4327 distance_ = new ::dmi::PonDistance(*from.distance_);
4328 } else {
4329 distance_ = nullptr;
4330 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004331 // @@protoc_insertion_point(copy_constructor:dmi.PortComponentChangeAttributes)
4332}
4333
4334void PortComponentChangeAttributes::SharedCtor() {
4335 ::google::protobuf::internal::InitSCC(
4336 &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304337 ::memset(&pon_id_config_, 0, static_cast<size_t>(
4338 reinterpret_cast<char*>(&distance_) -
4339 reinterpret_cast<char*>(&pon_id_config_)) + sizeof(distance_));
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004340}
4341
4342PortComponentChangeAttributes::~PortComponentChangeAttributes() {
4343 // @@protoc_insertion_point(destructor:dmi.PortComponentChangeAttributes)
4344 SharedDtor();
4345}
4346
4347void PortComponentChangeAttributes::SharedDtor() {
4348 if (this != internal_default_instance()) delete pon_id_config_;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304349 if (this != internal_default_instance()) delete distance_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004350}
4351
4352void PortComponentChangeAttributes::SetCachedSize(int size) const {
4353 _cached_size_.Set(size);
4354}
4355const PortComponentChangeAttributes& PortComponentChangeAttributes::default_instance() {
4356 ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base);
4357 return *internal_default_instance();
4358}
4359
4360
4361void PortComponentChangeAttributes::Clear() {
4362// @@protoc_insertion_point(message_clear_start:dmi.PortComponentChangeAttributes)
4363 ::google::protobuf::uint32 cached_has_bits = 0;
4364 // Prevent compiler warnings about cached_has_bits being unused
4365 (void) cached_has_bits;
4366
4367 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
4368 delete pon_id_config_;
4369 }
4370 pon_id_config_ = nullptr;
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304371 if (GetArenaNoVirtual() == nullptr && distance_ != nullptr) {
4372 delete distance_;
4373 }
4374 distance_ = nullptr;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004375 _internal_metadata_.Clear();
4376}
4377
4378#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4379const char* PortComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object,
4380 ::google::protobuf::internal::ParseContext* ctx) {
4381 auto msg = static_cast<PortComponentChangeAttributes*>(object);
4382 ::google::protobuf::int32 size; (void)size;
4383 int depth; (void)depth;
4384 ::google::protobuf::uint32 tag;
4385 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4386 auto ptr = begin;
4387 while (ptr < end) {
4388 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4389 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4390 switch (tag >> 3) {
4391 // .dmi.PonIdConfig pon_id_config = 1;
4392 case 1: {
4393 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4394 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4395 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4396 parser_till_end = ::dmi::PonIdConfig::_InternalParse;
4397 object = msg->mutable_pon_id_config();
4398 if (size > end - ptr) goto len_delim_till_end;
4399 ptr += size;
4400 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
4401 {parser_till_end, object}, ptr - size, ptr));
4402 break;
4403 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304404 // .dmi.PonDistance distance = 2;
4405 case 2: {
4406 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
4407 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4408 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4409 parser_till_end = ::dmi::PonDistance::_InternalParse;
4410 object = msg->mutable_distance();
4411 if (size > end - ptr) goto len_delim_till_end;
4412 ptr += size;
4413 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
4414 {parser_till_end, object}, ptr - size, ptr));
4415 break;
4416 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004417 default: {
4418 handle_unusual:
4419 if ((tag & 7) == 4 || tag == 0) {
4420 ctx->EndGroup(tag);
4421 return ptr;
4422 }
4423 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4424 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4425 ptr = res.first;
4426 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4427 if (res.second) return ptr;
4428 }
4429 } // switch
4430 } // while
4431 return ptr;
4432len_delim_till_end:
4433 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
4434 {parser_till_end, object}, size);
4435}
4436#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4437bool PortComponentChangeAttributes::MergePartialFromCodedStream(
4438 ::google::protobuf::io::CodedInputStream* input) {
4439#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4440 ::google::protobuf::uint32 tag;
4441 // @@protoc_insertion_point(parse_start:dmi.PortComponentChangeAttributes)
4442 for (;;) {
4443 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4444 tag = p.first;
4445 if (!p.second) goto handle_unusual;
4446 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4447 // .dmi.PonIdConfig pon_id_config = 1;
4448 case 1: {
4449 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
4450 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4451 input, mutable_pon_id_config()));
4452 } else {
4453 goto handle_unusual;
4454 }
4455 break;
4456 }
4457
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304458 // .dmi.PonDistance distance = 2;
4459 case 2: {
4460 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
4461 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4462 input, mutable_distance()));
4463 } else {
4464 goto handle_unusual;
4465 }
4466 break;
4467 }
4468
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004469 default: {
4470 handle_unusual:
4471 if (tag == 0) {
4472 goto success;
4473 }
4474 DO_(::google::protobuf::internal::WireFormat::SkipField(
4475 input, tag, _internal_metadata_.mutable_unknown_fields()));
4476 break;
4477 }
4478 }
4479 }
4480success:
4481 // @@protoc_insertion_point(parse_success:dmi.PortComponentChangeAttributes)
4482 return true;
4483failure:
4484 // @@protoc_insertion_point(parse_failure:dmi.PortComponentChangeAttributes)
4485 return false;
4486#undef DO_
4487}
4488#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4489
4490void PortComponentChangeAttributes::SerializeWithCachedSizes(
4491 ::google::protobuf::io::CodedOutputStream* output) const {
4492 // @@protoc_insertion_point(serialize_start:dmi.PortComponentChangeAttributes)
4493 ::google::protobuf::uint32 cached_has_bits = 0;
4494 (void) cached_has_bits;
4495
4496 // .dmi.PonIdConfig pon_id_config = 1;
4497 if (this->has_pon_id_config()) {
4498 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4499 1, HasBitSetters::pon_id_config(this), output);
4500 }
4501
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304502 // .dmi.PonDistance distance = 2;
4503 if (this->has_distance()) {
4504 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4505 2, HasBitSetters::distance(this), output);
4506 }
4507
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004508 if (_internal_metadata_.have_unknown_fields()) {
4509 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4510 _internal_metadata_.unknown_fields(), output);
4511 }
4512 // @@protoc_insertion_point(serialize_end:dmi.PortComponentChangeAttributes)
4513}
4514
4515::google::protobuf::uint8* PortComponentChangeAttributes::InternalSerializeWithCachedSizesToArray(
4516 ::google::protobuf::uint8* target) const {
4517 // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentChangeAttributes)
4518 ::google::protobuf::uint32 cached_has_bits = 0;
4519 (void) cached_has_bits;
4520
4521 // .dmi.PonIdConfig pon_id_config = 1;
4522 if (this->has_pon_id_config()) {
4523 target = ::google::protobuf::internal::WireFormatLite::
4524 InternalWriteMessageToArray(
4525 1, HasBitSetters::pon_id_config(this), target);
4526 }
4527
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304528 // .dmi.PonDistance distance = 2;
4529 if (this->has_distance()) {
4530 target = ::google::protobuf::internal::WireFormatLite::
4531 InternalWriteMessageToArray(
4532 2, HasBitSetters::distance(this), target);
4533 }
4534
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004535 if (_internal_metadata_.have_unknown_fields()) {
4536 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4537 _internal_metadata_.unknown_fields(), target);
4538 }
4539 // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentChangeAttributes)
4540 return target;
4541}
4542
4543size_t PortComponentChangeAttributes::ByteSizeLong() const {
4544// @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentChangeAttributes)
4545 size_t total_size = 0;
4546
4547 if (_internal_metadata_.have_unknown_fields()) {
4548 total_size +=
4549 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4550 _internal_metadata_.unknown_fields());
4551 }
4552 ::google::protobuf::uint32 cached_has_bits = 0;
4553 // Prevent compiler warnings about cached_has_bits being unused
4554 (void) cached_has_bits;
4555
4556 // .dmi.PonIdConfig pon_id_config = 1;
4557 if (this->has_pon_id_config()) {
4558 total_size += 1 +
4559 ::google::protobuf::internal::WireFormatLite::MessageSize(
4560 *pon_id_config_);
4561 }
4562
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304563 // .dmi.PonDistance distance = 2;
4564 if (this->has_distance()) {
4565 total_size += 1 +
4566 ::google::protobuf::internal::WireFormatLite::MessageSize(
4567 *distance_);
4568 }
4569
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004570 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4571 SetCachedSize(cached_size);
4572 return total_size;
4573}
4574
4575void PortComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) {
4576// @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentChangeAttributes)
4577 GOOGLE_DCHECK_NE(&from, this);
4578 const PortComponentChangeAttributes* source =
4579 ::google::protobuf::DynamicCastToGenerated<PortComponentChangeAttributes>(
4580 &from);
4581 if (source == nullptr) {
4582 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentChangeAttributes)
4583 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4584 } else {
4585 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentChangeAttributes)
4586 MergeFrom(*source);
4587 }
4588}
4589
4590void PortComponentChangeAttributes::MergeFrom(const PortComponentChangeAttributes& from) {
4591// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentChangeAttributes)
4592 GOOGLE_DCHECK_NE(&from, this);
4593 _internal_metadata_.MergeFrom(from._internal_metadata_);
4594 ::google::protobuf::uint32 cached_has_bits = 0;
4595 (void) cached_has_bits;
4596
4597 if (from.has_pon_id_config()) {
4598 mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config());
4599 }
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304600 if (from.has_distance()) {
4601 mutable_distance()->::dmi::PonDistance::MergeFrom(from.distance());
4602 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004603}
4604
4605void PortComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) {
4606// @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentChangeAttributes)
4607 if (&from == this) return;
4608 Clear();
4609 MergeFrom(from);
4610}
4611
4612void PortComponentChangeAttributes::CopyFrom(const PortComponentChangeAttributes& from) {
4613// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentChangeAttributes)
4614 if (&from == this) return;
4615 Clear();
4616 MergeFrom(from);
4617}
4618
4619bool PortComponentChangeAttributes::IsInitialized() const {
4620 return true;
4621}
4622
4623void PortComponentChangeAttributes::Swap(PortComponentChangeAttributes* other) {
4624 if (other == this) return;
4625 InternalSwap(other);
4626}
4627void PortComponentChangeAttributes::InternalSwap(PortComponentChangeAttributes* other) {
4628 using std::swap;
4629 _internal_metadata_.Swap(&other->_internal_metadata_);
4630 swap(pon_id_config_, other->pon_id_config_);
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05304631 swap(distance_, other->distance_);
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004632}
4633
4634::google::protobuf::Metadata PortComponentChangeAttributes::GetMetadata() const {
4635 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
4636 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
4637}
4638
4639
4640// ===================================================================
4641
Girish Gowdra997432d2022-03-10 15:59:33 -08004642void TransceiverComponentChangeAttributes::InitAsDefaultInstance() {
4643}
4644class TransceiverComponentChangeAttributes::HasBitSetters {
4645 public:
4646};
4647
4648#if !defined(_MSC_VER) || _MSC_VER >= 1900
4649const int TransceiverComponentChangeAttributes::kTransTypeFieldNumber;
4650#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4651
4652TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes()
4653 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4654 SharedCtor();
4655 // @@protoc_insertion_point(constructor:dmi.TransceiverComponentChangeAttributes)
4656}
4657TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes(const TransceiverComponentChangeAttributes& from)
4658 : ::google::protobuf::Message(),
4659 _internal_metadata_(nullptr) {
4660 _internal_metadata_.MergeFrom(from._internal_metadata_);
4661 trans_type_ = from.trans_type_;
4662 // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentChangeAttributes)
4663}
4664
4665void TransceiverComponentChangeAttributes::SharedCtor() {
4666 trans_type_ = 0;
4667}
4668
4669TransceiverComponentChangeAttributes::~TransceiverComponentChangeAttributes() {
4670 // @@protoc_insertion_point(destructor:dmi.TransceiverComponentChangeAttributes)
4671 SharedDtor();
4672}
4673
4674void TransceiverComponentChangeAttributes::SharedDtor() {
4675}
4676
4677void TransceiverComponentChangeAttributes::SetCachedSize(int size) const {
4678 _cached_size_.Set(size);
4679}
4680const TransceiverComponentChangeAttributes& TransceiverComponentChangeAttributes::default_instance() {
4681 ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base);
4682 return *internal_default_instance();
4683}
4684
4685
4686void TransceiverComponentChangeAttributes::Clear() {
4687// @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentChangeAttributes)
4688 ::google::protobuf::uint32 cached_has_bits = 0;
4689 // Prevent compiler warnings about cached_has_bits being unused
4690 (void) cached_has_bits;
4691
4692 trans_type_ = 0;
4693 _internal_metadata_.Clear();
4694}
4695
4696#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4697const char* TransceiverComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object,
4698 ::google::protobuf::internal::ParseContext* ctx) {
4699 auto msg = static_cast<TransceiverComponentChangeAttributes*>(object);
4700 ::google::protobuf::int32 size; (void)size;
4701 int depth; (void)depth;
4702 ::google::protobuf::uint32 tag;
4703 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4704 auto ptr = begin;
4705 while (ptr < end) {
4706 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4707 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4708 switch (tag >> 3) {
4709 // .dmi.TransceiverType trans_type = 1;
4710 case 1: {
4711 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
4712 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
4713 msg->set_trans_type(static_cast<::dmi::TransceiverType>(val));
4714 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4715 break;
4716 }
4717 default: {
4718 handle_unusual:
4719 if ((tag & 7) == 4 || tag == 0) {
4720 ctx->EndGroup(tag);
4721 return ptr;
4722 }
4723 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
4724 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
4725 ptr = res.first;
4726 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
4727 if (res.second) return ptr;
4728 }
4729 } // switch
4730 } // while
4731 return ptr;
4732}
4733#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4734bool TransceiverComponentChangeAttributes::MergePartialFromCodedStream(
4735 ::google::protobuf::io::CodedInputStream* input) {
4736#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
4737 ::google::protobuf::uint32 tag;
4738 // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentChangeAttributes)
4739 for (;;) {
4740 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4741 tag = p.first;
4742 if (!p.second) goto handle_unusual;
4743 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4744 // .dmi.TransceiverType trans_type = 1;
4745 case 1: {
4746 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
4747 int value = 0;
4748 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4749 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4750 input, &value)));
4751 set_trans_type(static_cast< ::dmi::TransceiverType >(value));
4752 } else {
4753 goto handle_unusual;
4754 }
4755 break;
4756 }
4757
4758 default: {
4759 handle_unusual:
4760 if (tag == 0) {
4761 goto success;
4762 }
4763 DO_(::google::protobuf::internal::WireFormat::SkipField(
4764 input, tag, _internal_metadata_.mutable_unknown_fields()));
4765 break;
4766 }
4767 }
4768 }
4769success:
4770 // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentChangeAttributes)
4771 return true;
4772failure:
4773 // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentChangeAttributes)
4774 return false;
4775#undef DO_
4776}
4777#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4778
4779void TransceiverComponentChangeAttributes::SerializeWithCachedSizes(
4780 ::google::protobuf::io::CodedOutputStream* output) const {
4781 // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentChangeAttributes)
4782 ::google::protobuf::uint32 cached_has_bits = 0;
4783 (void) cached_has_bits;
4784
4785 // .dmi.TransceiverType trans_type = 1;
4786 if (this->trans_type() != 0) {
4787 ::google::protobuf::internal::WireFormatLite::WriteEnum(
4788 1, this->trans_type(), output);
4789 }
4790
4791 if (_internal_metadata_.have_unknown_fields()) {
4792 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4793 _internal_metadata_.unknown_fields(), output);
4794 }
4795 // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentChangeAttributes)
4796}
4797
4798::google::protobuf::uint8* TransceiverComponentChangeAttributes::InternalSerializeWithCachedSizesToArray(
4799 ::google::protobuf::uint8* target) const {
4800 // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentChangeAttributes)
4801 ::google::protobuf::uint32 cached_has_bits = 0;
4802 (void) cached_has_bits;
4803
4804 // .dmi.TransceiverType trans_type = 1;
4805 if (this->trans_type() != 0) {
4806 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4807 1, this->trans_type(), target);
4808 }
4809
4810 if (_internal_metadata_.have_unknown_fields()) {
4811 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4812 _internal_metadata_.unknown_fields(), target);
4813 }
4814 // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentChangeAttributes)
4815 return target;
4816}
4817
4818size_t TransceiverComponentChangeAttributes::ByteSizeLong() const {
4819// @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentChangeAttributes)
4820 size_t total_size = 0;
4821
4822 if (_internal_metadata_.have_unknown_fields()) {
4823 total_size +=
4824 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4825 _internal_metadata_.unknown_fields());
4826 }
4827 ::google::protobuf::uint32 cached_has_bits = 0;
4828 // Prevent compiler warnings about cached_has_bits being unused
4829 (void) cached_has_bits;
4830
4831 // .dmi.TransceiverType trans_type = 1;
4832 if (this->trans_type() != 0) {
4833 total_size += 1 +
4834 ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type());
4835 }
4836
4837 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4838 SetCachedSize(cached_size);
4839 return total_size;
4840}
4841
4842void TransceiverComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) {
4843// @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentChangeAttributes)
4844 GOOGLE_DCHECK_NE(&from, this);
4845 const TransceiverComponentChangeAttributes* source =
4846 ::google::protobuf::DynamicCastToGenerated<TransceiverComponentChangeAttributes>(
4847 &from);
4848 if (source == nullptr) {
4849 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentChangeAttributes)
4850 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4851 } else {
4852 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentChangeAttributes)
4853 MergeFrom(*source);
4854 }
4855}
4856
4857void TransceiverComponentChangeAttributes::MergeFrom(const TransceiverComponentChangeAttributes& from) {
4858// @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentChangeAttributes)
4859 GOOGLE_DCHECK_NE(&from, this);
4860 _internal_metadata_.MergeFrom(from._internal_metadata_);
4861 ::google::protobuf::uint32 cached_has_bits = 0;
4862 (void) cached_has_bits;
4863
4864 if (from.trans_type() != 0) {
4865 set_trans_type(from.trans_type());
4866 }
4867}
4868
4869void TransceiverComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) {
4870// @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentChangeAttributes)
4871 if (&from == this) return;
4872 Clear();
4873 MergeFrom(from);
4874}
4875
4876void TransceiverComponentChangeAttributes::CopyFrom(const TransceiverComponentChangeAttributes& from) {
4877// @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentChangeAttributes)
4878 if (&from == this) return;
4879 Clear();
4880 MergeFrom(from);
4881}
4882
4883bool TransceiverComponentChangeAttributes::IsInitialized() const {
4884 return true;
4885}
4886
4887void TransceiverComponentChangeAttributes::Swap(TransceiverComponentChangeAttributes* other) {
4888 if (other == this) return;
4889 InternalSwap(other);
4890}
4891void TransceiverComponentChangeAttributes::InternalSwap(TransceiverComponentChangeAttributes* other) {
4892 using std::swap;
4893 _internal_metadata_.Swap(&other->_internal_metadata_);
4894 swap(trans_type_, other->trans_type_);
4895}
4896
4897::google::protobuf::Metadata TransceiverComponentChangeAttributes::GetMetadata() const {
4898 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
4899 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
4900}
4901
4902
4903// ===================================================================
4904
amit.ghosh98c5a6c2021-08-12 16:19:46 +02004905void PonIdConfig::InitAsDefaultInstance() {
4906}
4907class PonIdConfig::HasBitSetters {
4908 public:
4909};
4910
4911#if !defined(_MSC_VER) || _MSC_VER >= 1900
4912const int PonIdConfig::kPonIdFieldNumber;
4913const int PonIdConfig::kPonIdTransmitPeriodicityFieldNumber;
4914#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
4915
4916PonIdConfig::PonIdConfig()
4917 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
4918 SharedCtor();
4919 // @@protoc_insertion_point(constructor:dmi.PonIdConfig)
4920}
4921PonIdConfig::PonIdConfig(const PonIdConfig& from)
4922 : ::google::protobuf::Message(),
4923 _internal_metadata_(nullptr) {
4924 _internal_metadata_.MergeFrom(from._internal_metadata_);
4925 pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4926 if (from.pon_id().size() > 0) {
4927 pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_);
4928 }
4929 pon_id_transmit_periodicity_ = from.pon_id_transmit_periodicity_;
4930 // @@protoc_insertion_point(copy_constructor:dmi.PonIdConfig)
4931}
4932
4933void PonIdConfig::SharedCtor() {
4934 ::google::protobuf::internal::InitSCC(
4935 &scc_info_PonIdConfig_dmi_2fhw_2eproto.base);
4936 pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4937 pon_id_transmit_periodicity_ = 0u;
4938}
4939
4940PonIdConfig::~PonIdConfig() {
4941 // @@protoc_insertion_point(destructor:dmi.PonIdConfig)
4942 SharedDtor();
4943}
4944
4945void PonIdConfig::SharedDtor() {
4946 pon_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4947}
4948
4949void PonIdConfig::SetCachedSize(int size) const {
4950 _cached_size_.Set(size);
4951}
4952const PonIdConfig& PonIdConfig::default_instance() {
4953 ::google::protobuf::internal::InitSCC(&::scc_info_PonIdConfig_dmi_2fhw_2eproto.base);
4954 return *internal_default_instance();
4955}
4956
4957
4958void PonIdConfig::Clear() {
4959// @@protoc_insertion_point(message_clear_start:dmi.PonIdConfig)
4960 ::google::protobuf::uint32 cached_has_bits = 0;
4961 // Prevent compiler warnings about cached_has_bits being unused
4962 (void) cached_has_bits;
4963
4964 pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4965 pon_id_transmit_periodicity_ = 0u;
4966 _internal_metadata_.Clear();
4967}
4968
4969#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
4970const char* PonIdConfig::_InternalParse(const char* begin, const char* end, void* object,
4971 ::google::protobuf::internal::ParseContext* ctx) {
4972 auto msg = static_cast<PonIdConfig*>(object);
4973 ::google::protobuf::int32 size; (void)size;
4974 int depth; (void)depth;
4975 ::google::protobuf::uint32 tag;
4976 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
4977 auto ptr = begin;
4978 while (ptr < end) {
4979 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
4980 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4981 switch (tag >> 3) {
4982 // bytes pon_id = 1;
4983 case 1: {
4984 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
4985 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
4986 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
4987 object = msg->mutable_pon_id();
4988 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
4989 parser_till_end = ::google::protobuf::internal::GreedyStringParser;
4990 goto string_till_end;
4991 }
4992 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx));
4993 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
4994 ptr += size;
4995 break;
4996 }
4997 // uint32 pon_id_transmit_periodicity = 2;
4998 case 2: {
4999 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5000 msg->set_pon_id_transmit_periodicity(::google::protobuf::internal::ReadVarint(&ptr));
5001 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5002 break;
5003 }
5004 default: {
5005 handle_unusual:
5006 if ((tag & 7) == 4 || tag == 0) {
5007 ctx->EndGroup(tag);
5008 return ptr;
5009 }
5010 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5011 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5012 ptr = res.first;
5013 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5014 if (res.second) return ptr;
5015 }
5016 } // switch
5017 } // while
5018 return ptr;
5019string_till_end:
5020 static_cast<::std::string*>(object)->clear();
5021 static_cast<::std::string*>(object)->reserve(size);
5022 goto len_delim_till_end;
5023len_delim_till_end:
5024 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5025 {parser_till_end, object}, size);
5026}
5027#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5028bool PonIdConfig::MergePartialFromCodedStream(
5029 ::google::protobuf::io::CodedInputStream* input) {
5030#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5031 ::google::protobuf::uint32 tag;
5032 // @@protoc_insertion_point(parse_start:dmi.PonIdConfig)
5033 for (;;) {
5034 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5035 tag = p.first;
5036 if (!p.second) goto handle_unusual;
5037 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5038 // bytes pon_id = 1;
5039 case 1: {
5040 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5041 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5042 input, this->mutable_pon_id()));
5043 } else {
5044 goto handle_unusual;
5045 }
5046 break;
5047 }
5048
5049 // uint32 pon_id_transmit_periodicity = 2;
5050 case 2: {
5051 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
5052
5053 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5054 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5055 input, &pon_id_transmit_periodicity_)));
5056 } else {
5057 goto handle_unusual;
5058 }
5059 break;
5060 }
5061
5062 default: {
5063 handle_unusual:
5064 if (tag == 0) {
5065 goto success;
5066 }
5067 DO_(::google::protobuf::internal::WireFormat::SkipField(
5068 input, tag, _internal_metadata_.mutable_unknown_fields()));
5069 break;
5070 }
5071 }
5072 }
5073success:
5074 // @@protoc_insertion_point(parse_success:dmi.PonIdConfig)
5075 return true;
5076failure:
5077 // @@protoc_insertion_point(parse_failure:dmi.PonIdConfig)
5078 return false;
5079#undef DO_
5080}
5081#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5082
5083void PonIdConfig::SerializeWithCachedSizes(
5084 ::google::protobuf::io::CodedOutputStream* output) const {
5085 // @@protoc_insertion_point(serialize_start:dmi.PonIdConfig)
5086 ::google::protobuf::uint32 cached_has_bits = 0;
5087 (void) cached_has_bits;
5088
5089 // bytes pon_id = 1;
5090 if (this->pon_id().size() > 0) {
5091 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5092 1, this->pon_id(), output);
5093 }
5094
5095 // uint32 pon_id_transmit_periodicity = 2;
5096 if (this->pon_id_transmit_periodicity() != 0) {
5097 ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pon_id_transmit_periodicity(), output);
5098 }
5099
5100 if (_internal_metadata_.have_unknown_fields()) {
5101 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5102 _internal_metadata_.unknown_fields(), output);
5103 }
5104 // @@protoc_insertion_point(serialize_end:dmi.PonIdConfig)
5105}
5106
5107::google::protobuf::uint8* PonIdConfig::InternalSerializeWithCachedSizesToArray(
5108 ::google::protobuf::uint8* target) const {
5109 // @@protoc_insertion_point(serialize_to_array_start:dmi.PonIdConfig)
5110 ::google::protobuf::uint32 cached_has_bits = 0;
5111 (void) cached_has_bits;
5112
5113 // bytes pon_id = 1;
5114 if (this->pon_id().size() > 0) {
5115 target =
5116 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5117 1, this->pon_id(), target);
5118 }
5119
5120 // uint32 pon_id_transmit_periodicity = 2;
5121 if (this->pon_id_transmit_periodicity() != 0) {
5122 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pon_id_transmit_periodicity(), target);
5123 }
5124
5125 if (_internal_metadata_.have_unknown_fields()) {
5126 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5127 _internal_metadata_.unknown_fields(), target);
5128 }
5129 // @@protoc_insertion_point(serialize_to_array_end:dmi.PonIdConfig)
5130 return target;
5131}
5132
5133size_t PonIdConfig::ByteSizeLong() const {
5134// @@protoc_insertion_point(message_byte_size_start:dmi.PonIdConfig)
5135 size_t total_size = 0;
5136
5137 if (_internal_metadata_.have_unknown_fields()) {
5138 total_size +=
5139 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5140 _internal_metadata_.unknown_fields());
5141 }
5142 ::google::protobuf::uint32 cached_has_bits = 0;
5143 // Prevent compiler warnings about cached_has_bits being unused
5144 (void) cached_has_bits;
5145
5146 // bytes pon_id = 1;
5147 if (this->pon_id().size() > 0) {
5148 total_size += 1 +
5149 ::google::protobuf::internal::WireFormatLite::BytesSize(
5150 this->pon_id());
5151 }
5152
5153 // uint32 pon_id_transmit_periodicity = 2;
5154 if (this->pon_id_transmit_periodicity() != 0) {
5155 total_size += 1 +
5156 ::google::protobuf::internal::WireFormatLite::UInt32Size(
5157 this->pon_id_transmit_periodicity());
5158 }
5159
5160 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5161 SetCachedSize(cached_size);
5162 return total_size;
5163}
5164
5165void PonIdConfig::MergeFrom(const ::google::protobuf::Message& from) {
5166// @@protoc_insertion_point(generalized_merge_from_start:dmi.PonIdConfig)
5167 GOOGLE_DCHECK_NE(&from, this);
5168 const PonIdConfig* source =
5169 ::google::protobuf::DynamicCastToGenerated<PonIdConfig>(
5170 &from);
5171 if (source == nullptr) {
5172 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PonIdConfig)
5173 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5174 } else {
5175 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PonIdConfig)
5176 MergeFrom(*source);
5177 }
5178}
5179
5180void PonIdConfig::MergeFrom(const PonIdConfig& from) {
5181// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PonIdConfig)
5182 GOOGLE_DCHECK_NE(&from, this);
5183 _internal_metadata_.MergeFrom(from._internal_metadata_);
5184 ::google::protobuf::uint32 cached_has_bits = 0;
5185 (void) cached_has_bits;
5186
5187 if (from.pon_id().size() > 0) {
5188
5189 pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_);
5190 }
5191 if (from.pon_id_transmit_periodicity() != 0) {
5192 set_pon_id_transmit_periodicity(from.pon_id_transmit_periodicity());
5193 }
5194}
5195
5196void PonIdConfig::CopyFrom(const ::google::protobuf::Message& from) {
5197// @@protoc_insertion_point(generalized_copy_from_start:dmi.PonIdConfig)
5198 if (&from == this) return;
5199 Clear();
5200 MergeFrom(from);
5201}
5202
5203void PonIdConfig::CopyFrom(const PonIdConfig& from) {
5204// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PonIdConfig)
5205 if (&from == this) return;
5206 Clear();
5207 MergeFrom(from);
5208}
5209
5210bool PonIdConfig::IsInitialized() const {
5211 return true;
5212}
5213
5214void PonIdConfig::Swap(PonIdConfig* other) {
5215 if (other == this) return;
5216 InternalSwap(other);
5217}
5218void PonIdConfig::InternalSwap(PonIdConfig* other) {
5219 using std::swap;
5220 _internal_metadata_.Swap(&other->_internal_metadata_);
5221 pon_id_.Swap(&other->pon_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5222 GetArenaNoVirtual());
5223 swap(pon_id_transmit_periodicity_, other->pon_id_transmit_periodicity_);
5224}
5225
5226::google::protobuf::Metadata PonIdConfig::GetMetadata() const {
5227 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
5228 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
5229}
5230
5231
5232// ===================================================================
5233
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305234void ContainerComponentAttributes::InitAsDefaultInstance() {
5235}
5236class ContainerComponentAttributes::HasBitSetters {
5237 public:
5238};
5239
5240#if !defined(_MSC_VER) || _MSC_VER >= 1900
5241const int ContainerComponentAttributes::kPhysicalLabelFieldNumber;
5242#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5243
5244ContainerComponentAttributes::ContainerComponentAttributes()
5245 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5246 SharedCtor();
5247 // @@protoc_insertion_point(constructor:dmi.ContainerComponentAttributes)
5248}
5249ContainerComponentAttributes::ContainerComponentAttributes(const ContainerComponentAttributes& from)
5250 : ::google::protobuf::Message(),
5251 _internal_metadata_(nullptr) {
5252 _internal_metadata_.MergeFrom(from._internal_metadata_);
5253 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5254 if (from.physical_label().size() > 0) {
5255 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
5256 }
5257 // @@protoc_insertion_point(copy_constructor:dmi.ContainerComponentAttributes)
5258}
5259
5260void ContainerComponentAttributes::SharedCtor() {
5261 ::google::protobuf::internal::InitSCC(
5262 &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
5263 physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5264}
5265
5266ContainerComponentAttributes::~ContainerComponentAttributes() {
5267 // @@protoc_insertion_point(destructor:dmi.ContainerComponentAttributes)
5268 SharedDtor();
5269}
5270
5271void ContainerComponentAttributes::SharedDtor() {
5272 physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5273}
5274
5275void ContainerComponentAttributes::SetCachedSize(int size) const {
5276 _cached_size_.Set(size);
5277}
5278const ContainerComponentAttributes& ContainerComponentAttributes::default_instance() {
5279 ::google::protobuf::internal::InitSCC(&::scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base);
5280 return *internal_default_instance();
5281}
5282
5283
5284void ContainerComponentAttributes::Clear() {
5285// @@protoc_insertion_point(message_clear_start:dmi.ContainerComponentAttributes)
5286 ::google::protobuf::uint32 cached_has_bits = 0;
5287 // Prevent compiler warnings about cached_has_bits being unused
5288 (void) cached_has_bits;
5289
5290 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5291 _internal_metadata_.Clear();
5292}
5293
5294#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5295const char* ContainerComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
5296 ::google::protobuf::internal::ParseContext* ctx) {
5297 auto msg = static_cast<ContainerComponentAttributes*>(object);
5298 ::google::protobuf::int32 size; (void)size;
5299 int depth; (void)depth;
5300 ::google::protobuf::uint32 tag;
5301 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5302 auto ptr = begin;
5303 while (ptr < end) {
5304 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5305 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5306 switch (tag >> 3) {
5307 // string physical_label = 1;
5308 case 1: {
5309 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
5310 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5311 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5312 ctx->extra_parse_data().SetFieldName("dmi.ContainerComponentAttributes.physical_label");
5313 object = msg->mutable_physical_label();
5314 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
5315 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
5316 goto string_till_end;
5317 }
5318 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
5319 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
5320 ptr += size;
5321 break;
5322 }
5323 default: {
5324 handle_unusual:
5325 if ((tag & 7) == 4 || tag == 0) {
5326 ctx->EndGroup(tag);
5327 return ptr;
5328 }
5329 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5330 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5331 ptr = res.first;
5332 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5333 if (res.second) return ptr;
5334 }
5335 } // switch
5336 } // while
5337 return ptr;
5338string_till_end:
5339 static_cast<::std::string*>(object)->clear();
5340 static_cast<::std::string*>(object)->reserve(size);
5341 goto len_delim_till_end;
5342len_delim_till_end:
5343 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
5344 {parser_till_end, object}, size);
5345}
5346#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5347bool ContainerComponentAttributes::MergePartialFromCodedStream(
5348 ::google::protobuf::io::CodedInputStream* input) {
5349#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5350 ::google::protobuf::uint32 tag;
5351 // @@protoc_insertion_point(parse_start:dmi.ContainerComponentAttributes)
5352 for (;;) {
5353 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5354 tag = p.first;
5355 if (!p.second) goto handle_unusual;
5356 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5357 // string physical_label = 1;
5358 case 1: {
5359 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
5360 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
5361 input, this->mutable_physical_label()));
5362 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5363 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
5364 ::google::protobuf::internal::WireFormatLite::PARSE,
5365 "dmi.ContainerComponentAttributes.physical_label"));
5366 } else {
5367 goto handle_unusual;
5368 }
5369 break;
5370 }
5371
5372 default: {
5373 handle_unusual:
5374 if (tag == 0) {
5375 goto success;
5376 }
5377 DO_(::google::protobuf::internal::WireFormat::SkipField(
5378 input, tag, _internal_metadata_.mutable_unknown_fields()));
5379 break;
5380 }
5381 }
5382 }
5383success:
5384 // @@protoc_insertion_point(parse_success:dmi.ContainerComponentAttributes)
5385 return true;
5386failure:
5387 // @@protoc_insertion_point(parse_failure:dmi.ContainerComponentAttributes)
5388 return false;
5389#undef DO_
5390}
5391#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5392
5393void ContainerComponentAttributes::SerializeWithCachedSizes(
5394 ::google::protobuf::io::CodedOutputStream* output) const {
5395 // @@protoc_insertion_point(serialize_start:dmi.ContainerComponentAttributes)
5396 ::google::protobuf::uint32 cached_has_bits = 0;
5397 (void) cached_has_bits;
5398
5399 // string physical_label = 1;
5400 if (this->physical_label().size() > 0) {
5401 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5402 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
5403 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5404 "dmi.ContainerComponentAttributes.physical_label");
5405 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5406 1, this->physical_label(), output);
5407 }
5408
5409 if (_internal_metadata_.have_unknown_fields()) {
5410 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5411 _internal_metadata_.unknown_fields(), output);
5412 }
5413 // @@protoc_insertion_point(serialize_end:dmi.ContainerComponentAttributes)
5414}
5415
5416::google::protobuf::uint8* ContainerComponentAttributes::InternalSerializeWithCachedSizesToArray(
5417 ::google::protobuf::uint8* target) const {
5418 // @@protoc_insertion_point(serialize_to_array_start:dmi.ContainerComponentAttributes)
5419 ::google::protobuf::uint32 cached_has_bits = 0;
5420 (void) cached_has_bits;
5421
5422 // string physical_label = 1;
5423 if (this->physical_label().size() > 0) {
5424 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
5425 this->physical_label().data(), static_cast<int>(this->physical_label().length()),
5426 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
5427 "dmi.ContainerComponentAttributes.physical_label");
5428 target =
5429 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5430 1, this->physical_label(), target);
5431 }
5432
5433 if (_internal_metadata_.have_unknown_fields()) {
5434 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5435 _internal_metadata_.unknown_fields(), target);
5436 }
5437 // @@protoc_insertion_point(serialize_to_array_end:dmi.ContainerComponentAttributes)
5438 return target;
5439}
5440
5441size_t ContainerComponentAttributes::ByteSizeLong() const {
5442// @@protoc_insertion_point(message_byte_size_start:dmi.ContainerComponentAttributes)
5443 size_t total_size = 0;
5444
5445 if (_internal_metadata_.have_unknown_fields()) {
5446 total_size +=
5447 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5448 _internal_metadata_.unknown_fields());
5449 }
5450 ::google::protobuf::uint32 cached_has_bits = 0;
5451 // Prevent compiler warnings about cached_has_bits being unused
5452 (void) cached_has_bits;
5453
5454 // string physical_label = 1;
5455 if (this->physical_label().size() > 0) {
5456 total_size += 1 +
5457 ::google::protobuf::internal::WireFormatLite::StringSize(
5458 this->physical_label());
5459 }
5460
5461 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5462 SetCachedSize(cached_size);
5463 return total_size;
5464}
5465
5466void ContainerComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
5467// @@protoc_insertion_point(generalized_merge_from_start:dmi.ContainerComponentAttributes)
5468 GOOGLE_DCHECK_NE(&from, this);
5469 const ContainerComponentAttributes* source =
5470 ::google::protobuf::DynamicCastToGenerated<ContainerComponentAttributes>(
5471 &from);
5472 if (source == nullptr) {
5473 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ContainerComponentAttributes)
5474 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5475 } else {
5476 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ContainerComponentAttributes)
5477 MergeFrom(*source);
5478 }
5479}
5480
5481void ContainerComponentAttributes::MergeFrom(const ContainerComponentAttributes& from) {
5482// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ContainerComponentAttributes)
5483 GOOGLE_DCHECK_NE(&from, this);
5484 _internal_metadata_.MergeFrom(from._internal_metadata_);
5485 ::google::protobuf::uint32 cached_has_bits = 0;
5486 (void) cached_has_bits;
5487
5488 if (from.physical_label().size() > 0) {
5489
5490 physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_);
5491 }
5492}
5493
5494void ContainerComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
5495// @@protoc_insertion_point(generalized_copy_from_start:dmi.ContainerComponentAttributes)
5496 if (&from == this) return;
5497 Clear();
5498 MergeFrom(from);
5499}
5500
5501void ContainerComponentAttributes::CopyFrom(const ContainerComponentAttributes& from) {
5502// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ContainerComponentAttributes)
5503 if (&from == this) return;
5504 Clear();
5505 MergeFrom(from);
5506}
5507
5508bool ContainerComponentAttributes::IsInitialized() const {
5509 return true;
5510}
5511
5512void ContainerComponentAttributes::Swap(ContainerComponentAttributes* other) {
5513 if (other == this) return;
5514 InternalSwap(other);
5515}
5516void ContainerComponentAttributes::InternalSwap(ContainerComponentAttributes* other) {
5517 using std::swap;
5518 _internal_metadata_.Swap(&other->_internal_metadata_);
5519 physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5520 GetArenaNoVirtual());
5521}
5522
5523::google::protobuf::Metadata ContainerComponentAttributes::GetMetadata() const {
5524 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
5525 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
5526}
5527
5528
5529// ===================================================================
5530
5531void PsuComponentAttributes::InitAsDefaultInstance() {
5532}
5533class PsuComponentAttributes::HasBitSetters {
5534 public:
5535};
5536
5537#if !defined(_MSC_VER) || _MSC_VER >= 1900
5538const int PsuComponentAttributes::kSupportedVoltageFieldNumber;
5539#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5540
5541PsuComponentAttributes::PsuComponentAttributes()
5542 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5543 SharedCtor();
5544 // @@protoc_insertion_point(constructor:dmi.PsuComponentAttributes)
5545}
5546PsuComponentAttributes::PsuComponentAttributes(const PsuComponentAttributes& from)
5547 : ::google::protobuf::Message(),
5548 _internal_metadata_(nullptr) {
5549 _internal_metadata_.MergeFrom(from._internal_metadata_);
5550 supported_voltage_ = from.supported_voltage_;
5551 // @@protoc_insertion_point(copy_constructor:dmi.PsuComponentAttributes)
5552}
5553
5554void PsuComponentAttributes::SharedCtor() {
5555 supported_voltage_ = 0;
5556}
5557
5558PsuComponentAttributes::~PsuComponentAttributes() {
5559 // @@protoc_insertion_point(destructor:dmi.PsuComponentAttributes)
5560 SharedDtor();
5561}
5562
5563void PsuComponentAttributes::SharedDtor() {
5564}
5565
5566void PsuComponentAttributes::SetCachedSize(int size) const {
5567 _cached_size_.Set(size);
5568}
5569const PsuComponentAttributes& PsuComponentAttributes::default_instance() {
5570 ::google::protobuf::internal::InitSCC(&::scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base);
5571 return *internal_default_instance();
5572}
5573
5574
5575void PsuComponentAttributes::Clear() {
5576// @@protoc_insertion_point(message_clear_start:dmi.PsuComponentAttributes)
5577 ::google::protobuf::uint32 cached_has_bits = 0;
5578 // Prevent compiler warnings about cached_has_bits being unused
5579 (void) cached_has_bits;
5580
5581 supported_voltage_ = 0;
5582 _internal_metadata_.Clear();
5583}
5584
5585#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5586const char* PsuComponentAttributes::_InternalParse(const char* begin, const char* end, void* object,
5587 ::google::protobuf::internal::ParseContext* ctx) {
5588 auto msg = static_cast<PsuComponentAttributes*>(object);
5589 ::google::protobuf::int32 size; (void)size;
5590 int depth; (void)depth;
5591 ::google::protobuf::uint32 tag;
5592 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5593 auto ptr = begin;
5594 while (ptr < end) {
5595 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5596 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5597 switch (tag >> 3) {
5598 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
5599 case 1: {
5600 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5601 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5602 msg->set_supported_voltage(static_cast<::dmi::PsuComponentAttributes_SupportedVoltage>(val));
5603 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5604 break;
5605 }
5606 default: {
5607 handle_unusual:
5608 if ((tag & 7) == 4 || tag == 0) {
5609 ctx->EndGroup(tag);
5610 return ptr;
5611 }
5612 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5613 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5614 ptr = res.first;
5615 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5616 if (res.second) return ptr;
5617 }
5618 } // switch
5619 } // while
5620 return ptr;
5621}
5622#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5623bool PsuComponentAttributes::MergePartialFromCodedStream(
5624 ::google::protobuf::io::CodedInputStream* input) {
5625#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
5626 ::google::protobuf::uint32 tag;
5627 // @@protoc_insertion_point(parse_start:dmi.PsuComponentAttributes)
5628 for (;;) {
5629 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5630 tag = p.first;
5631 if (!p.second) goto handle_unusual;
5632 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5633 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
5634 case 1: {
5635 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
5636 int value = 0;
5637 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5638 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
5639 input, &value)));
5640 set_supported_voltage(static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(value));
5641 } else {
5642 goto handle_unusual;
5643 }
5644 break;
5645 }
5646
5647 default: {
5648 handle_unusual:
5649 if (tag == 0) {
5650 goto success;
5651 }
5652 DO_(::google::protobuf::internal::WireFormat::SkipField(
5653 input, tag, _internal_metadata_.mutable_unknown_fields()));
5654 break;
5655 }
5656 }
5657 }
5658success:
5659 // @@protoc_insertion_point(parse_success:dmi.PsuComponentAttributes)
5660 return true;
5661failure:
5662 // @@protoc_insertion_point(parse_failure:dmi.PsuComponentAttributes)
5663 return false;
5664#undef DO_
5665}
5666#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5667
5668void PsuComponentAttributes::SerializeWithCachedSizes(
5669 ::google::protobuf::io::CodedOutputStream* output) const {
5670 // @@protoc_insertion_point(serialize_start:dmi.PsuComponentAttributes)
5671 ::google::protobuf::uint32 cached_has_bits = 0;
5672 (void) cached_has_bits;
5673
5674 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
5675 if (this->supported_voltage() != 0) {
5676 ::google::protobuf::internal::WireFormatLite::WriteEnum(
5677 1, this->supported_voltage(), output);
5678 }
5679
5680 if (_internal_metadata_.have_unknown_fields()) {
5681 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5682 _internal_metadata_.unknown_fields(), output);
5683 }
5684 // @@protoc_insertion_point(serialize_end:dmi.PsuComponentAttributes)
5685}
5686
5687::google::protobuf::uint8* PsuComponentAttributes::InternalSerializeWithCachedSizesToArray(
5688 ::google::protobuf::uint8* target) const {
5689 // @@protoc_insertion_point(serialize_to_array_start:dmi.PsuComponentAttributes)
5690 ::google::protobuf::uint32 cached_has_bits = 0;
5691 (void) cached_has_bits;
5692
5693 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
5694 if (this->supported_voltage() != 0) {
5695 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5696 1, this->supported_voltage(), target);
5697 }
5698
5699 if (_internal_metadata_.have_unknown_fields()) {
5700 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5701 _internal_metadata_.unknown_fields(), target);
5702 }
5703 // @@protoc_insertion_point(serialize_to_array_end:dmi.PsuComponentAttributes)
5704 return target;
5705}
5706
5707size_t PsuComponentAttributes::ByteSizeLong() const {
5708// @@protoc_insertion_point(message_byte_size_start:dmi.PsuComponentAttributes)
5709 size_t total_size = 0;
5710
5711 if (_internal_metadata_.have_unknown_fields()) {
5712 total_size +=
5713 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5714 _internal_metadata_.unknown_fields());
5715 }
5716 ::google::protobuf::uint32 cached_has_bits = 0;
5717 // Prevent compiler warnings about cached_has_bits being unused
5718 (void) cached_has_bits;
5719
5720 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
5721 if (this->supported_voltage() != 0) {
5722 total_size += 1 +
5723 ::google::protobuf::internal::WireFormatLite::EnumSize(this->supported_voltage());
5724 }
5725
5726 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5727 SetCachedSize(cached_size);
5728 return total_size;
5729}
5730
5731void PsuComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) {
5732// @@protoc_insertion_point(generalized_merge_from_start:dmi.PsuComponentAttributes)
5733 GOOGLE_DCHECK_NE(&from, this);
5734 const PsuComponentAttributes* source =
5735 ::google::protobuf::DynamicCastToGenerated<PsuComponentAttributes>(
5736 &from);
5737 if (source == nullptr) {
5738 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PsuComponentAttributes)
5739 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5740 } else {
5741 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PsuComponentAttributes)
5742 MergeFrom(*source);
5743 }
5744}
5745
5746void PsuComponentAttributes::MergeFrom(const PsuComponentAttributes& from) {
5747// @@protoc_insertion_point(class_specific_merge_from_start:dmi.PsuComponentAttributes)
5748 GOOGLE_DCHECK_NE(&from, this);
5749 _internal_metadata_.MergeFrom(from._internal_metadata_);
5750 ::google::protobuf::uint32 cached_has_bits = 0;
5751 (void) cached_has_bits;
5752
5753 if (from.supported_voltage() != 0) {
5754 set_supported_voltage(from.supported_voltage());
5755 }
5756}
5757
5758void PsuComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) {
5759// @@protoc_insertion_point(generalized_copy_from_start:dmi.PsuComponentAttributes)
5760 if (&from == this) return;
5761 Clear();
5762 MergeFrom(from);
5763}
5764
5765void PsuComponentAttributes::CopyFrom(const PsuComponentAttributes& from) {
5766// @@protoc_insertion_point(class_specific_copy_from_start:dmi.PsuComponentAttributes)
5767 if (&from == this) return;
5768 Clear();
5769 MergeFrom(from);
5770}
5771
5772bool PsuComponentAttributes::IsInitialized() const {
5773 return true;
5774}
5775
5776void PsuComponentAttributes::Swap(PsuComponentAttributes* other) {
5777 if (other == this) return;
5778 InternalSwap(other);
5779}
5780void PsuComponentAttributes::InternalSwap(PsuComponentAttributes* other) {
5781 using std::swap;
5782 _internal_metadata_.Swap(&other->_internal_metadata_);
5783 swap(supported_voltage_, other->supported_voltage_);
5784}
5785
5786::google::protobuf::Metadata PsuComponentAttributes::GetMetadata() const {
5787 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
5788 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
5789}
5790
5791
5792// ===================================================================
5793
5794void TransceiverComponentsAttributes::InitAsDefaultInstance() {
5795}
5796class TransceiverComponentsAttributes::HasBitSetters {
5797 public:
5798};
5799
5800#if !defined(_MSC_VER) || _MSC_VER >= 1900
5801const int TransceiverComponentsAttributes::kFormFactorFieldNumber;
5802const int TransceiverComponentsAttributes::kTransTypeFieldNumber;
5803const int TransceiverComponentsAttributes::kMaxDistanceFieldNumber;
5804const int TransceiverComponentsAttributes::kMaxDistanceScaleFieldNumber;
5805const int TransceiverComponentsAttributes::kRxWavelengthFieldNumber;
5806const int TransceiverComponentsAttributes::kTxWavelengthFieldNumber;
5807const int TransceiverComponentsAttributes::kWavelengthScaleFieldNumber;
amit.ghosh52abaae2022-11-28 13:59:22 +01005808const int TransceiverComponentsAttributes::kTxPowerFieldNumber;
5809const int TransceiverComponentsAttributes::kTxPowerScaleFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305810#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
5811
5812TransceiverComponentsAttributes::TransceiverComponentsAttributes()
5813 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
5814 SharedCtor();
5815 // @@protoc_insertion_point(constructor:dmi.TransceiverComponentsAttributes)
5816}
5817TransceiverComponentsAttributes::TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from)
5818 : ::google::protobuf::Message(),
5819 _internal_metadata_(nullptr),
5820 rx_wavelength_(from.rx_wavelength_),
amit.ghosh52abaae2022-11-28 13:59:22 +01005821 tx_wavelength_(from.tx_wavelength_),
5822 tx_power_(from.tx_power_) {
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305823 _internal_metadata_.MergeFrom(from._internal_metadata_);
5824 ::memcpy(&form_factor_, &from.form_factor_,
amit.ghosh52abaae2022-11-28 13:59:22 +01005825 static_cast<size_t>(reinterpret_cast<char*>(&tx_power_scale_) -
5826 reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305827 // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentsAttributes)
5828}
5829
5830void TransceiverComponentsAttributes::SharedCtor() {
5831 ::memset(&form_factor_, 0, static_cast<size_t>(
amit.ghosh52abaae2022-11-28 13:59:22 +01005832 reinterpret_cast<char*>(&tx_power_scale_) -
5833 reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305834}
5835
5836TransceiverComponentsAttributes::~TransceiverComponentsAttributes() {
5837 // @@protoc_insertion_point(destructor:dmi.TransceiverComponentsAttributes)
5838 SharedDtor();
5839}
5840
5841void TransceiverComponentsAttributes::SharedDtor() {
5842}
5843
5844void TransceiverComponentsAttributes::SetCachedSize(int size) const {
5845 _cached_size_.Set(size);
5846}
5847const TransceiverComponentsAttributes& TransceiverComponentsAttributes::default_instance() {
5848 ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base);
5849 return *internal_default_instance();
5850}
5851
5852
5853void TransceiverComponentsAttributes::Clear() {
5854// @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentsAttributes)
5855 ::google::protobuf::uint32 cached_has_bits = 0;
5856 // Prevent compiler warnings about cached_has_bits being unused
5857 (void) cached_has_bits;
5858
5859 rx_wavelength_.Clear();
5860 tx_wavelength_.Clear();
amit.ghosh52abaae2022-11-28 13:59:22 +01005861 tx_power_.Clear();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305862 ::memset(&form_factor_, 0, static_cast<size_t>(
amit.ghosh52abaae2022-11-28 13:59:22 +01005863 reinterpret_cast<char*>(&tx_power_scale_) -
5864 reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305865 _internal_metadata_.Clear();
5866}
5867
5868#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
5869const char* TransceiverComponentsAttributes::_InternalParse(const char* begin, const char* end, void* object,
5870 ::google::protobuf::internal::ParseContext* ctx) {
5871 auto msg = static_cast<TransceiverComponentsAttributes*>(object);
5872 ::google::protobuf::int32 size; (void)size;
5873 int depth; (void)depth;
5874 ::google::protobuf::uint32 tag;
5875 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
5876 auto ptr = begin;
5877 while (ptr < end) {
5878 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
5879 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5880 switch (tag >> 3) {
5881 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
5882 case 1: {
5883 if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual;
5884 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5885 msg->set_form_factor(static_cast<::dmi::TransceiverComponentsAttributes_FormFactor>(val));
5886 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5887 break;
5888 }
Girish Gowdra997432d2022-03-10 15:59:33 -08005889 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305890 case 2: {
5891 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
5892 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
Girish Gowdra997432d2022-03-10 15:59:33 -08005893 msg->set_trans_type(static_cast<::dmi::TransceiverType>(val));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305894 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5895 break;
5896 }
5897 // uint32 max_distance = 3;
5898 case 3: {
5899 if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual;
5900 msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr));
5901 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5902 break;
5903 }
5904 // .dmi.ValueScale max_distance_scale = 4;
5905 case 4: {
5906 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
5907 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5908 msg->set_max_distance_scale(static_cast<::dmi::ValueScale>(val));
5909 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5910 break;
5911 }
5912 // repeated uint32 rx_wavelength = 5;
5913 case 5: {
5914 if (static_cast<::google::protobuf::uint8>(tag) == 42) {
5915 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5916 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5917 parser_till_end = ::google::protobuf::internal::PackedUInt32Parser;
5918 object = msg->mutable_rx_wavelength();
5919 if (size > end - ptr) goto len_delim_till_end;
5920 auto newend = ptr + size;
5921 if (size) ptr = parser_till_end(ptr, newend, object, ctx);
5922 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend);
5923 break;
5924 } else if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
5925 do {
5926 msg->add_rx_wavelength(::google::protobuf::internal::ReadVarint(&ptr));
5927 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5928 if (ptr >= end) break;
5929 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 40 && (ptr += 1));
5930 break;
5931 }
5932 // repeated uint32 tx_wavelength = 6;
5933 case 6: {
5934 if (static_cast<::google::protobuf::uint8>(tag) == 50) {
5935 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5936 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5937 parser_till_end = ::google::protobuf::internal::PackedUInt32Parser;
5938 object = msg->mutable_tx_wavelength();
5939 if (size > end - ptr) goto len_delim_till_end;
5940 auto newend = ptr + size;
5941 if (size) ptr = parser_till_end(ptr, newend, object, ctx);
5942 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend);
5943 break;
5944 } else if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual;
5945 do {
5946 msg->add_tx_wavelength(::google::protobuf::internal::ReadVarint(&ptr));
5947 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5948 if (ptr >= end) break;
5949 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 48 && (ptr += 1));
5950 break;
5951 }
5952 // .dmi.ValueScale wavelength_scale = 7;
5953 case 7: {
5954 if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual;
5955 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5956 msg->set_wavelength_scale(static_cast<::dmi::ValueScale>(val));
5957 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5958 break;
5959 }
amit.ghosh52abaae2022-11-28 13:59:22 +01005960 // repeated int32 tx_power = 8;
5961 case 8: {
5962 if (static_cast<::google::protobuf::uint8>(tag) == 66) {
5963 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
5964 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5965 parser_till_end = ::google::protobuf::internal::PackedInt32Parser;
5966 object = msg->mutable_tx_power();
5967 if (size > end - ptr) goto len_delim_till_end;
5968 auto newend = ptr + size;
5969 if (size) ptr = parser_till_end(ptr, newend, object, ctx);
5970 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend);
5971 break;
5972 } else if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual;
5973 do {
5974 msg->add_tx_power(::google::protobuf::internal::ReadVarint(&ptr));
5975 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5976 if (ptr >= end) break;
5977 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 64 && (ptr += 1));
5978 break;
5979 }
5980 // .dmi.ValueScale tx_power_scale = 9;
5981 case 9: {
5982 if (static_cast<::google::protobuf::uint8>(tag) != 72) goto handle_unusual;
5983 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
5984 msg->set_tx_power_scale(static_cast<::dmi::ValueScale>(val));
5985 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
5986 break;
5987 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305988 default: {
5989 handle_unusual:
5990 if ((tag & 7) == 4 || tag == 0) {
5991 ctx->EndGroup(tag);
5992 return ptr;
5993 }
5994 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
5995 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
5996 ptr = res.first;
5997 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
5998 if (res.second) return ptr;
5999 }
6000 } // switch
6001 } // while
6002 return ptr;
6003len_delim_till_end:
6004 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
6005 {parser_till_end, object}, size);
6006}
6007#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6008bool TransceiverComponentsAttributes::MergePartialFromCodedStream(
6009 ::google::protobuf::io::CodedInputStream* input) {
6010#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
6011 ::google::protobuf::uint32 tag;
6012 // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentsAttributes)
6013 for (;;) {
6014 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6015 tag = p.first;
6016 if (!p.second) goto handle_unusual;
6017 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6018 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
6019 case 1: {
6020 if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) {
6021 int value = 0;
6022 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6023 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6024 input, &value)));
6025 set_form_factor(static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(value));
6026 } else {
6027 goto handle_unusual;
6028 }
6029 break;
6030 }
6031
Girish Gowdra997432d2022-03-10 15:59:33 -08006032 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306033 case 2: {
6034 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
6035 int value = 0;
6036 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6037 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6038 input, &value)));
Girish Gowdra997432d2022-03-10 15:59:33 -08006039 set_trans_type(static_cast< ::dmi::TransceiverType >(value));
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306040 } else {
6041 goto handle_unusual;
6042 }
6043 break;
6044 }
6045
6046 // uint32 max_distance = 3;
6047 case 3: {
6048 if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) {
6049
6050 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6051 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6052 input, &max_distance_)));
6053 } else {
6054 goto handle_unusual;
6055 }
6056 break;
6057 }
6058
6059 // .dmi.ValueScale max_distance_scale = 4;
6060 case 4: {
6061 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
6062 int value = 0;
6063 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6064 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6065 input, &value)));
6066 set_max_distance_scale(static_cast< ::dmi::ValueScale >(value));
6067 } else {
6068 goto handle_unusual;
6069 }
6070 break;
6071 }
6072
6073 // repeated uint32 rx_wavelength = 5;
6074 case 5: {
6075 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
6076 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
6077 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6078 input, this->mutable_rx_wavelength())));
6079 } else if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
6080 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
6081 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6082 1, 42u, input, this->mutable_rx_wavelength())));
6083 } else {
6084 goto handle_unusual;
6085 }
6086 break;
6087 }
6088
6089 // repeated uint32 tx_wavelength = 6;
6090 case 6: {
6091 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
6092 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
6093 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6094 input, this->mutable_tx_wavelength())));
6095 } else if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) {
6096 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
6097 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
6098 1, 50u, input, this->mutable_tx_wavelength())));
6099 } else {
6100 goto handle_unusual;
6101 }
6102 break;
6103 }
6104
6105 // .dmi.ValueScale wavelength_scale = 7;
6106 case 7: {
6107 if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) {
6108 int value = 0;
6109 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6110 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6111 input, &value)));
6112 set_wavelength_scale(static_cast< ::dmi::ValueScale >(value));
6113 } else {
6114 goto handle_unusual;
6115 }
6116 break;
6117 }
6118
amit.ghosh52abaae2022-11-28 13:59:22 +01006119 // repeated int32 tx_power = 8;
6120 case 8: {
6121 if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) {
6122 DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive<
6123 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6124 input, this->mutable_tx_power())));
6125 } else if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) {
6126 DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline<
6127 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
6128 1, 66u, input, this->mutable_tx_power())));
6129 } else {
6130 goto handle_unusual;
6131 }
6132 break;
6133 }
6134
6135 // .dmi.ValueScale tx_power_scale = 9;
6136 case 9: {
6137 if (static_cast< ::google::protobuf::uint8>(tag) == (72 & 0xFF)) {
6138 int value = 0;
6139 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6140 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
6141 input, &value)));
6142 set_tx_power_scale(static_cast< ::dmi::ValueScale >(value));
6143 } else {
6144 goto handle_unusual;
6145 }
6146 break;
6147 }
6148
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306149 default: {
6150 handle_unusual:
6151 if (tag == 0) {
6152 goto success;
6153 }
6154 DO_(::google::protobuf::internal::WireFormat::SkipField(
6155 input, tag, _internal_metadata_.mutable_unknown_fields()));
6156 break;
6157 }
6158 }
6159 }
6160success:
6161 // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentsAttributes)
6162 return true;
6163failure:
6164 // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentsAttributes)
6165 return false;
6166#undef DO_
6167}
6168#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6169
6170void TransceiverComponentsAttributes::SerializeWithCachedSizes(
6171 ::google::protobuf::io::CodedOutputStream* output) const {
6172 // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentsAttributes)
6173 ::google::protobuf::uint32 cached_has_bits = 0;
6174 (void) cached_has_bits;
6175
6176 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
6177 if (this->form_factor() != 0) {
6178 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6179 1, this->form_factor(), output);
6180 }
6181
Girish Gowdra997432d2022-03-10 15:59:33 -08006182 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306183 if (this->trans_type() != 0) {
6184 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6185 2, this->trans_type(), output);
6186 }
6187
6188 // uint32 max_distance = 3;
6189 if (this->max_distance() != 0) {
6190 ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_distance(), output);
6191 }
6192
6193 // .dmi.ValueScale max_distance_scale = 4;
6194 if (this->max_distance_scale() != 0) {
6195 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6196 4, this->max_distance_scale(), output);
6197 }
6198
6199 // repeated uint32 rx_wavelength = 5;
6200 if (this->rx_wavelength_size() > 0) {
6201 ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
6202 output->WriteVarint32(_rx_wavelength_cached_byte_size_.load(
6203 std::memory_order_relaxed));
6204 }
6205 for (int i = 0, n = this->rx_wavelength_size(); i < n; i++) {
6206 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
6207 this->rx_wavelength(i), output);
6208 }
6209
6210 // repeated uint32 tx_wavelength = 6;
6211 if (this->tx_wavelength_size() > 0) {
6212 ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
6213 output->WriteVarint32(_tx_wavelength_cached_byte_size_.load(
6214 std::memory_order_relaxed));
6215 }
6216 for (int i = 0, n = this->tx_wavelength_size(); i < n; i++) {
6217 ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag(
6218 this->tx_wavelength(i), output);
6219 }
6220
6221 // .dmi.ValueScale wavelength_scale = 7;
6222 if (this->wavelength_scale() != 0) {
6223 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6224 7, this->wavelength_scale(), output);
6225 }
6226
amit.ghosh52abaae2022-11-28 13:59:22 +01006227 // repeated int32 tx_power = 8;
6228 if (this->tx_power_size() > 0) {
6229 ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output);
6230 output->WriteVarint32(_tx_power_cached_byte_size_.load(
6231 std::memory_order_relaxed));
6232 }
6233 for (int i = 0, n = this->tx_power_size(); i < n; i++) {
6234 ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag(
6235 this->tx_power(i), output);
6236 }
6237
6238 // .dmi.ValueScale tx_power_scale = 9;
6239 if (this->tx_power_scale() != 0) {
6240 ::google::protobuf::internal::WireFormatLite::WriteEnum(
6241 9, this->tx_power_scale(), output);
6242 }
6243
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306244 if (_internal_metadata_.have_unknown_fields()) {
6245 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6246 _internal_metadata_.unknown_fields(), output);
6247 }
6248 // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentsAttributes)
6249}
6250
6251::google::protobuf::uint8* TransceiverComponentsAttributes::InternalSerializeWithCachedSizesToArray(
6252 ::google::protobuf::uint8* target) const {
6253 // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentsAttributes)
6254 ::google::protobuf::uint32 cached_has_bits = 0;
6255 (void) cached_has_bits;
6256
6257 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
6258 if (this->form_factor() != 0) {
6259 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6260 1, this->form_factor(), target);
6261 }
6262
Girish Gowdra997432d2022-03-10 15:59:33 -08006263 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306264 if (this->trans_type() != 0) {
6265 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6266 2, this->trans_type(), target);
6267 }
6268
6269 // uint32 max_distance = 3;
6270 if (this->max_distance() != 0) {
6271 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_distance(), target);
6272 }
6273
6274 // .dmi.ValueScale max_distance_scale = 4;
6275 if (this->max_distance_scale() != 0) {
6276 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6277 4, this->max_distance_scale(), target);
6278 }
6279
6280 // repeated uint32 rx_wavelength = 5;
6281 if (this->rx_wavelength_size() > 0) {
6282 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
6283 5,
6284 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
6285 target);
6286 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
6287 _rx_wavelength_cached_byte_size_.load(std::memory_order_relaxed),
6288 target);
6289 target = ::google::protobuf::internal::WireFormatLite::
6290 WriteUInt32NoTagToArray(this->rx_wavelength_, target);
6291 }
6292
6293 // repeated uint32 tx_wavelength = 6;
6294 if (this->tx_wavelength_size() > 0) {
6295 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
6296 6,
6297 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
6298 target);
6299 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
6300 _tx_wavelength_cached_byte_size_.load(std::memory_order_relaxed),
6301 target);
6302 target = ::google::protobuf::internal::WireFormatLite::
6303 WriteUInt32NoTagToArray(this->tx_wavelength_, target);
6304 }
6305
6306 // .dmi.ValueScale wavelength_scale = 7;
6307 if (this->wavelength_scale() != 0) {
6308 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6309 7, this->wavelength_scale(), target);
6310 }
6311
amit.ghosh52abaae2022-11-28 13:59:22 +01006312 // repeated int32 tx_power = 8;
6313 if (this->tx_power_size() > 0) {
6314 target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray(
6315 8,
6316 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED,
6317 target);
6318 target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray(
6319 _tx_power_cached_byte_size_.load(std::memory_order_relaxed),
6320 target);
6321 target = ::google::protobuf::internal::WireFormatLite::
6322 WriteInt32NoTagToArray(this->tx_power_, target);
6323 }
6324
6325 // .dmi.ValueScale tx_power_scale = 9;
6326 if (this->tx_power_scale() != 0) {
6327 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
6328 9, this->tx_power_scale(), target);
6329 }
6330
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306331 if (_internal_metadata_.have_unknown_fields()) {
6332 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6333 _internal_metadata_.unknown_fields(), target);
6334 }
6335 // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentsAttributes)
6336 return target;
6337}
6338
6339size_t TransceiverComponentsAttributes::ByteSizeLong() const {
6340// @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentsAttributes)
6341 size_t total_size = 0;
6342
6343 if (_internal_metadata_.have_unknown_fields()) {
6344 total_size +=
6345 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6346 _internal_metadata_.unknown_fields());
6347 }
6348 ::google::protobuf::uint32 cached_has_bits = 0;
6349 // Prevent compiler warnings about cached_has_bits being unused
6350 (void) cached_has_bits;
6351
6352 // repeated uint32 rx_wavelength = 5;
6353 {
6354 size_t data_size = ::google::protobuf::internal::WireFormatLite::
6355 UInt32Size(this->rx_wavelength_);
6356 if (data_size > 0) {
6357 total_size += 1 +
6358 ::google::protobuf::internal::WireFormatLite::Int32Size(
6359 static_cast<::google::protobuf::int32>(data_size));
6360 }
6361 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
6362 _rx_wavelength_cached_byte_size_.store(cached_size,
6363 std::memory_order_relaxed);
6364 total_size += data_size;
6365 }
6366
6367 // repeated uint32 tx_wavelength = 6;
6368 {
6369 size_t data_size = ::google::protobuf::internal::WireFormatLite::
6370 UInt32Size(this->tx_wavelength_);
6371 if (data_size > 0) {
6372 total_size += 1 +
6373 ::google::protobuf::internal::WireFormatLite::Int32Size(
6374 static_cast<::google::protobuf::int32>(data_size));
6375 }
6376 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
6377 _tx_wavelength_cached_byte_size_.store(cached_size,
6378 std::memory_order_relaxed);
6379 total_size += data_size;
6380 }
6381
amit.ghosh52abaae2022-11-28 13:59:22 +01006382 // repeated int32 tx_power = 8;
6383 {
6384 size_t data_size = ::google::protobuf::internal::WireFormatLite::
6385 Int32Size(this->tx_power_);
6386 if (data_size > 0) {
6387 total_size += 1 +
6388 ::google::protobuf::internal::WireFormatLite::Int32Size(
6389 static_cast<::google::protobuf::int32>(data_size));
6390 }
6391 int cached_size = ::google::protobuf::internal::ToCachedSize(data_size);
6392 _tx_power_cached_byte_size_.store(cached_size,
6393 std::memory_order_relaxed);
6394 total_size += data_size;
6395 }
6396
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306397 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
6398 if (this->form_factor() != 0) {
6399 total_size += 1 +
6400 ::google::protobuf::internal::WireFormatLite::EnumSize(this->form_factor());
6401 }
6402
Girish Gowdra997432d2022-03-10 15:59:33 -08006403 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306404 if (this->trans_type() != 0) {
6405 total_size += 1 +
6406 ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type());
6407 }
6408
6409 // uint32 max_distance = 3;
6410 if (this->max_distance() != 0) {
6411 total_size += 1 +
6412 ::google::protobuf::internal::WireFormatLite::UInt32Size(
6413 this->max_distance());
6414 }
6415
6416 // .dmi.ValueScale max_distance_scale = 4;
6417 if (this->max_distance_scale() != 0) {
6418 total_size += 1 +
6419 ::google::protobuf::internal::WireFormatLite::EnumSize(this->max_distance_scale());
6420 }
6421
6422 // .dmi.ValueScale wavelength_scale = 7;
6423 if (this->wavelength_scale() != 0) {
6424 total_size += 1 +
6425 ::google::protobuf::internal::WireFormatLite::EnumSize(this->wavelength_scale());
6426 }
6427
amit.ghosh52abaae2022-11-28 13:59:22 +01006428 // .dmi.ValueScale tx_power_scale = 9;
6429 if (this->tx_power_scale() != 0) {
6430 total_size += 1 +
6431 ::google::protobuf::internal::WireFormatLite::EnumSize(this->tx_power_scale());
6432 }
6433
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306434 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6435 SetCachedSize(cached_size);
6436 return total_size;
6437}
6438
6439void TransceiverComponentsAttributes::MergeFrom(const ::google::protobuf::Message& from) {
6440// @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentsAttributes)
6441 GOOGLE_DCHECK_NE(&from, this);
6442 const TransceiverComponentsAttributes* source =
6443 ::google::protobuf::DynamicCastToGenerated<TransceiverComponentsAttributes>(
6444 &from);
6445 if (source == nullptr) {
6446 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentsAttributes)
6447 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6448 } else {
6449 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentsAttributes)
6450 MergeFrom(*source);
6451 }
6452}
6453
6454void TransceiverComponentsAttributes::MergeFrom(const TransceiverComponentsAttributes& from) {
6455// @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentsAttributes)
6456 GOOGLE_DCHECK_NE(&from, this);
6457 _internal_metadata_.MergeFrom(from._internal_metadata_);
6458 ::google::protobuf::uint32 cached_has_bits = 0;
6459 (void) cached_has_bits;
6460
6461 rx_wavelength_.MergeFrom(from.rx_wavelength_);
6462 tx_wavelength_.MergeFrom(from.tx_wavelength_);
amit.ghosh52abaae2022-11-28 13:59:22 +01006463 tx_power_.MergeFrom(from.tx_power_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306464 if (from.form_factor() != 0) {
6465 set_form_factor(from.form_factor());
6466 }
6467 if (from.trans_type() != 0) {
6468 set_trans_type(from.trans_type());
6469 }
6470 if (from.max_distance() != 0) {
6471 set_max_distance(from.max_distance());
6472 }
6473 if (from.max_distance_scale() != 0) {
6474 set_max_distance_scale(from.max_distance_scale());
6475 }
6476 if (from.wavelength_scale() != 0) {
6477 set_wavelength_scale(from.wavelength_scale());
6478 }
amit.ghosh52abaae2022-11-28 13:59:22 +01006479 if (from.tx_power_scale() != 0) {
6480 set_tx_power_scale(from.tx_power_scale());
6481 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306482}
6483
6484void TransceiverComponentsAttributes::CopyFrom(const ::google::protobuf::Message& from) {
6485// @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentsAttributes)
6486 if (&from == this) return;
6487 Clear();
6488 MergeFrom(from);
6489}
6490
6491void TransceiverComponentsAttributes::CopyFrom(const TransceiverComponentsAttributes& from) {
6492// @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentsAttributes)
6493 if (&from == this) return;
6494 Clear();
6495 MergeFrom(from);
6496}
6497
6498bool TransceiverComponentsAttributes::IsInitialized() const {
6499 return true;
6500}
6501
6502void TransceiverComponentsAttributes::Swap(TransceiverComponentsAttributes* other) {
6503 if (other == this) return;
6504 InternalSwap(other);
6505}
6506void TransceiverComponentsAttributes::InternalSwap(TransceiverComponentsAttributes* other) {
6507 using std::swap;
6508 _internal_metadata_.Swap(&other->_internal_metadata_);
6509 rx_wavelength_.InternalSwap(&other->rx_wavelength_);
6510 tx_wavelength_.InternalSwap(&other->tx_wavelength_);
amit.ghosh52abaae2022-11-28 13:59:22 +01006511 tx_power_.InternalSwap(&other->tx_power_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306512 swap(form_factor_, other->form_factor_);
6513 swap(trans_type_, other->trans_type_);
6514 swap(max_distance_, other->max_distance_);
6515 swap(max_distance_scale_, other->max_distance_scale_);
6516 swap(wavelength_scale_, other->wavelength_scale_);
amit.ghosh52abaae2022-11-28 13:59:22 +01006517 swap(tx_power_scale_, other->tx_power_scale_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306518}
6519
6520::google::protobuf::Metadata TransceiverComponentsAttributes::GetMetadata() const {
6521 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
6522 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
6523}
6524
6525
6526// ===================================================================
6527
6528void Component::InitAsDefaultInstance() {
6529 ::dmi::_Component_default_instance_._instance.get_mutable()->mfg_date_ = const_cast< ::google::protobuf::Timestamp*>(
6530 ::google::protobuf::Timestamp::internal_default_instance());
6531 ::dmi::_Component_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>(
6532 ::dmi::Uri::internal_default_instance());
6533 ::dmi::_Component_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>(
6534 ::dmi::Uuid::internal_default_instance());
6535 ::dmi::_Component_default_instance_._instance.get_mutable()->state_ = const_cast< ::dmi::ComponentState*>(
6536 ::dmi::ComponentState::internal_default_instance());
6537 ::dmi::_Component_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentAttributes*>(
6538 ::dmi::PortComponentAttributes::internal_default_instance());
6539 ::dmi::_Component_default_instance_.container_attr_ = const_cast< ::dmi::ContainerComponentAttributes*>(
6540 ::dmi::ContainerComponentAttributes::internal_default_instance());
6541 ::dmi::_Component_default_instance_.psu_attr_ = const_cast< ::dmi::PsuComponentAttributes*>(
6542 ::dmi::PsuComponentAttributes::internal_default_instance());
6543 ::dmi::_Component_default_instance_.transceiver_attr_ = const_cast< ::dmi::TransceiverComponentsAttributes*>(
6544 ::dmi::TransceiverComponentsAttributes::internal_default_instance());
6545}
6546class Component::HasBitSetters {
6547 public:
6548 static const ::google::protobuf::Timestamp& mfg_date(const Component* msg);
6549 static const ::dmi::Uri& uri(const Component* msg);
6550 static const ::dmi::Uuid& uuid(const Component* msg);
6551 static const ::dmi::ComponentState& state(const Component* msg);
6552 static const ::dmi::PortComponentAttributes& port_attr(const Component* msg);
6553 static const ::dmi::ContainerComponentAttributes& container_attr(const Component* msg);
6554 static const ::dmi::PsuComponentAttributes& psu_attr(const Component* msg);
6555 static const ::dmi::TransceiverComponentsAttributes& transceiver_attr(const Component* msg);
6556};
6557
6558const ::google::protobuf::Timestamp&
6559Component::HasBitSetters::mfg_date(const Component* msg) {
6560 return *msg->mfg_date_;
6561}
6562const ::dmi::Uri&
6563Component::HasBitSetters::uri(const Component* msg) {
6564 return *msg->uri_;
6565}
6566const ::dmi::Uuid&
6567Component::HasBitSetters::uuid(const Component* msg) {
6568 return *msg->uuid_;
6569}
6570const ::dmi::ComponentState&
6571Component::HasBitSetters::state(const Component* msg) {
6572 return *msg->state_;
6573}
6574const ::dmi::PortComponentAttributes&
6575Component::HasBitSetters::port_attr(const Component* msg) {
6576 return *msg->specific_.port_attr_;
6577}
6578const ::dmi::ContainerComponentAttributes&
6579Component::HasBitSetters::container_attr(const Component* msg) {
6580 return *msg->specific_.container_attr_;
6581}
6582const ::dmi::PsuComponentAttributes&
6583Component::HasBitSetters::psu_attr(const Component* msg) {
6584 return *msg->specific_.psu_attr_;
6585}
6586const ::dmi::TransceiverComponentsAttributes&
6587Component::HasBitSetters::transceiver_attr(const Component* msg) {
6588 return *msg->specific_.transceiver_attr_;
6589}
6590void Component::clear_mfg_date() {
6591 if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) {
6592 delete mfg_date_;
6593 }
6594 mfg_date_ = nullptr;
6595}
6596void Component::set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr) {
6597 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6598 clear_specific();
6599 if (port_attr) {
6600 ::google::protobuf::Arena* submessage_arena = nullptr;
6601 if (message_arena != submessage_arena) {
6602 port_attr = ::google::protobuf::internal::GetOwnedMessage(
6603 message_arena, port_attr, submessage_arena);
6604 }
6605 set_has_port_attr();
6606 specific_.port_attr_ = port_attr;
6607 }
6608 // @@protoc_insertion_point(field_set_allocated:dmi.Component.port_attr)
6609}
6610void Component::set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr) {
6611 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6612 clear_specific();
6613 if (container_attr) {
6614 ::google::protobuf::Arena* submessage_arena = nullptr;
6615 if (message_arena != submessage_arena) {
6616 container_attr = ::google::protobuf::internal::GetOwnedMessage(
6617 message_arena, container_attr, submessage_arena);
6618 }
6619 set_has_container_attr();
6620 specific_.container_attr_ = container_attr;
6621 }
6622 // @@protoc_insertion_point(field_set_allocated:dmi.Component.container_attr)
6623}
6624void Component::set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr) {
6625 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6626 clear_specific();
6627 if (psu_attr) {
6628 ::google::protobuf::Arena* submessage_arena = nullptr;
6629 if (message_arena != submessage_arena) {
6630 psu_attr = ::google::protobuf::internal::GetOwnedMessage(
6631 message_arena, psu_attr, submessage_arena);
6632 }
6633 set_has_psu_attr();
6634 specific_.psu_attr_ = psu_attr;
6635 }
6636 // @@protoc_insertion_point(field_set_allocated:dmi.Component.psu_attr)
6637}
6638void Component::set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr) {
6639 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
6640 clear_specific();
6641 if (transceiver_attr) {
6642 ::google::protobuf::Arena* submessage_arena = nullptr;
6643 if (message_arena != submessage_arena) {
6644 transceiver_attr = ::google::protobuf::internal::GetOwnedMessage(
6645 message_arena, transceiver_attr, submessage_arena);
6646 }
6647 set_has_transceiver_attr();
6648 specific_.transceiver_attr_ = transceiver_attr;
6649 }
6650 // @@protoc_insertion_point(field_set_allocated:dmi.Component.transceiver_attr)
6651}
6652#if !defined(_MSC_VER) || _MSC_VER >= 1900
6653const int Component::kNameFieldNumber;
6654const int Component::kClassFieldNumber;
6655const int Component::kDescriptionFieldNumber;
6656const int Component::kParentFieldNumber;
6657const int Component::kParentRelPosFieldNumber;
6658const int Component::kChildrenFieldNumber;
6659const int Component::kHardwareRevFieldNumber;
6660const int Component::kFirmwareRevFieldNumber;
6661const int Component::kSoftwareRevFieldNumber;
6662const int Component::kSerialNumFieldNumber;
6663const int Component::kMfgNameFieldNumber;
6664const int Component::kModelNameFieldNumber;
6665const int Component::kAliasFieldNumber;
6666const int Component::kAssetIdFieldNumber;
6667const int Component::kIsFruFieldNumber;
6668const int Component::kMfgDateFieldNumber;
6669const int Component::kUriFieldNumber;
6670const int Component::kUuidFieldNumber;
6671const int Component::kStateFieldNumber;
6672const int Component::kSensorDataFieldNumber;
6673const int Component::kPortAttrFieldNumber;
6674const int Component::kContainerAttrFieldNumber;
6675const int Component::kPsuAttrFieldNumber;
6676const int Component::kTransceiverAttrFieldNumber;
6677#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
6678
6679Component::Component()
6680 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
6681 SharedCtor();
6682 // @@protoc_insertion_point(constructor:dmi.Component)
6683}
6684Component::Component(const Component& from)
6685 : ::google::protobuf::Message(),
6686 _internal_metadata_(nullptr),
6687 children_(from.children_),
6688 sensor_data_(from.sensor_data_) {
6689 _internal_metadata_.MergeFrom(from._internal_metadata_);
6690 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6691 if (from.name().size() > 0) {
6692 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
6693 }
6694 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6695 if (from.description().size() > 0) {
6696 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
6697 }
6698 parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6699 if (from.parent().size() > 0) {
6700 parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
6701 }
6702 hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6703 if (from.hardware_rev().size() > 0) {
6704 hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_);
6705 }
6706 firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6707 if (from.firmware_rev().size() > 0) {
6708 firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_);
6709 }
6710 software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6711 if (from.software_rev().size() > 0) {
6712 software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_);
6713 }
6714 serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6715 if (from.serial_num().size() > 0) {
6716 serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_);
6717 }
6718 mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6719 if (from.mfg_name().size() > 0) {
6720 mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_);
6721 }
6722 model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6723 if (from.model_name().size() > 0) {
6724 model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_);
6725 }
6726 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6727 if (from.alias().size() > 0) {
6728 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
6729 }
6730 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6731 if (from.asset_id().size() > 0) {
6732 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
6733 }
6734 if (from.has_mfg_date()) {
6735 mfg_date_ = new ::google::protobuf::Timestamp(*from.mfg_date_);
6736 } else {
6737 mfg_date_ = nullptr;
6738 }
6739 if (from.has_uri()) {
6740 uri_ = new ::dmi::Uri(*from.uri_);
6741 } else {
6742 uri_ = nullptr;
6743 }
6744 if (from.has_uuid()) {
6745 uuid_ = new ::dmi::Uuid(*from.uuid_);
6746 } else {
6747 uuid_ = nullptr;
6748 }
6749 if (from.has_state()) {
6750 state_ = new ::dmi::ComponentState(*from.state_);
6751 } else {
6752 state_ = nullptr;
6753 }
6754 ::memcpy(&class__, &from.class__,
6755 static_cast<size_t>(reinterpret_cast<char*>(&is_fru_) -
6756 reinterpret_cast<char*>(&class__)) + sizeof(is_fru_));
6757 clear_has_specific();
6758 switch (from.specific_case()) {
6759 case kPortAttr: {
6760 mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr());
6761 break;
6762 }
6763 case kContainerAttr: {
6764 mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr());
6765 break;
6766 }
6767 case kPsuAttr: {
6768 mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr());
6769 break;
6770 }
6771 case kTransceiverAttr: {
6772 mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr());
6773 break;
6774 }
6775 case SPECIFIC_NOT_SET: {
6776 break;
6777 }
6778 }
6779 // @@protoc_insertion_point(copy_constructor:dmi.Component)
6780}
6781
6782void Component::SharedCtor() {
6783 ::google::protobuf::internal::InitSCC(
6784 &scc_info_Component_dmi_2fhw_2eproto.base);
6785 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6786 description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6787 parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6788 hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6789 firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6790 software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6791 serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6792 mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6793 model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6794 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6795 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6796 ::memset(&mfg_date_, 0, static_cast<size_t>(
6797 reinterpret_cast<char*>(&is_fru_) -
6798 reinterpret_cast<char*>(&mfg_date_)) + sizeof(is_fru_));
6799 clear_has_specific();
6800}
6801
6802Component::~Component() {
6803 // @@protoc_insertion_point(destructor:dmi.Component)
6804 SharedDtor();
6805}
6806
6807void Component::SharedDtor() {
6808 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6809 description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6810 parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6811 hardware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6812 firmware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6813 software_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6814 serial_num_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6815 mfg_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6816 model_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6817 alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6818 asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6819 if (this != internal_default_instance()) delete mfg_date_;
6820 if (this != internal_default_instance()) delete uri_;
6821 if (this != internal_default_instance()) delete uuid_;
6822 if (this != internal_default_instance()) delete state_;
6823 if (has_specific()) {
6824 clear_specific();
6825 }
6826}
6827
6828void Component::SetCachedSize(int size) const {
6829 _cached_size_.Set(size);
6830}
6831const Component& Component::default_instance() {
6832 ::google::protobuf::internal::InitSCC(&::scc_info_Component_dmi_2fhw_2eproto.base);
6833 return *internal_default_instance();
6834}
6835
6836
6837void Component::clear_specific() {
6838// @@protoc_insertion_point(one_of_clear_start:dmi.Component)
6839 switch (specific_case()) {
6840 case kPortAttr: {
6841 delete specific_.port_attr_;
6842 break;
6843 }
6844 case kContainerAttr: {
6845 delete specific_.container_attr_;
6846 break;
6847 }
6848 case kPsuAttr: {
6849 delete specific_.psu_attr_;
6850 break;
6851 }
6852 case kTransceiverAttr: {
6853 delete specific_.transceiver_attr_;
6854 break;
6855 }
6856 case SPECIFIC_NOT_SET: {
6857 break;
6858 }
6859 }
6860 _oneof_case_[0] = SPECIFIC_NOT_SET;
6861}
6862
6863
6864void Component::Clear() {
6865// @@protoc_insertion_point(message_clear_start:dmi.Component)
6866 ::google::protobuf::uint32 cached_has_bits = 0;
6867 // Prevent compiler warnings about cached_has_bits being unused
6868 (void) cached_has_bits;
6869
6870 children_.Clear();
6871 sensor_data_.Clear();
6872 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6873 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6874 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6875 hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6876 firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6877 software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6878 serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6879 mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6880 model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6881 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6882 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6883 if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) {
6884 delete mfg_date_;
6885 }
6886 mfg_date_ = nullptr;
6887 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
6888 delete uri_;
6889 }
6890 uri_ = nullptr;
6891 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
6892 delete uuid_;
6893 }
6894 uuid_ = nullptr;
6895 if (GetArenaNoVirtual() == nullptr && state_ != nullptr) {
6896 delete state_;
6897 }
6898 state_ = nullptr;
6899 ::memset(&class__, 0, static_cast<size_t>(
6900 reinterpret_cast<char*>(&is_fru_) -
6901 reinterpret_cast<char*>(&class__)) + sizeof(is_fru_));
6902 clear_specific();
6903 _internal_metadata_.Clear();
6904}
6905
6906#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
6907const char* Component::_InternalParse(const char* begin, const char* end, void* object,
6908 ::google::protobuf::internal::ParseContext* ctx) {
6909 auto msg = static_cast<Component*>(object);
6910 ::google::protobuf::int32 size; (void)size;
6911 int depth; (void)depth;
6912 ::google::protobuf::uint32 tag;
6913 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
6914 auto ptr = begin;
6915 while (ptr < end) {
6916 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
6917 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6918 switch (tag >> 3) {
6919 // string name = 1;
6920 case 1: {
6921 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
6922 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6923 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6924 ctx->extra_parse_data().SetFieldName("dmi.Component.name");
6925 object = msg->mutable_name();
6926 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6927 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6928 goto string_till_end;
6929 }
6930 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6931 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6932 ptr += size;
6933 break;
6934 }
6935 // .dmi.ComponentType class = 2;
6936 case 2: {
6937 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
6938 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
6939 msg->set_class_(static_cast<::dmi::ComponentType>(val));
6940 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6941 break;
6942 }
6943 // string description = 3;
6944 case 3: {
6945 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
6946 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6947 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6948 ctx->extra_parse_data().SetFieldName("dmi.Component.description");
6949 object = msg->mutable_description();
6950 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6951 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6952 goto string_till_end;
6953 }
6954 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6955 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6956 ptr += size;
6957 break;
6958 }
6959 // string parent = 4;
6960 case 4: {
6961 if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual;
6962 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6963 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6964 ctx->extra_parse_data().SetFieldName("dmi.Component.parent");
6965 object = msg->mutable_parent();
6966 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
6967 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
6968 goto string_till_end;
6969 }
6970 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
6971 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
6972 ptr += size;
6973 break;
6974 }
6975 // int32 parent_rel_pos = 5;
6976 case 5: {
6977 if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual;
6978 msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr));
6979 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6980 break;
6981 }
6982 // repeated .dmi.Component children = 6;
6983 case 6: {
6984 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
6985 do {
6986 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
6987 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
6988 parser_till_end = ::dmi::Component::_InternalParse;
6989 object = msg->add_children();
6990 if (size > end - ptr) goto len_delim_till_end;
6991 ptr += size;
6992 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
6993 {parser_till_end, object}, ptr - size, ptr));
6994 if (ptr >= end) break;
6995 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1));
6996 break;
6997 }
6998 // string hardware_rev = 7;
6999 case 7: {
7000 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
7001 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7002 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7003 ctx->extra_parse_data().SetFieldName("dmi.Component.hardware_rev");
7004 object = msg->mutable_hardware_rev();
7005 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7006 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7007 goto string_till_end;
7008 }
7009 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7010 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7011 ptr += size;
7012 break;
7013 }
7014 // string firmware_rev = 8;
7015 case 8: {
7016 if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual;
7017 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7018 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7019 ctx->extra_parse_data().SetFieldName("dmi.Component.firmware_rev");
7020 object = msg->mutable_firmware_rev();
7021 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7022 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7023 goto string_till_end;
7024 }
7025 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7026 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7027 ptr += size;
7028 break;
7029 }
7030 // string software_rev = 9;
7031 case 9: {
7032 if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual;
7033 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7034 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7035 ctx->extra_parse_data().SetFieldName("dmi.Component.software_rev");
7036 object = msg->mutable_software_rev();
7037 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7038 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7039 goto string_till_end;
7040 }
7041 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7042 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7043 ptr += size;
7044 break;
7045 }
7046 // string serial_num = 10;
7047 case 10: {
7048 if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual;
7049 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7050 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7051 ctx->extra_parse_data().SetFieldName("dmi.Component.serial_num");
7052 object = msg->mutable_serial_num();
7053 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7054 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7055 goto string_till_end;
7056 }
7057 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7058 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7059 ptr += size;
7060 break;
7061 }
7062 // string mfg_name = 11;
7063 case 11: {
7064 if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual;
7065 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7066 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7067 ctx->extra_parse_data().SetFieldName("dmi.Component.mfg_name");
7068 object = msg->mutable_mfg_name();
7069 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7070 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7071 goto string_till_end;
7072 }
7073 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7074 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7075 ptr += size;
7076 break;
7077 }
7078 // string model_name = 12;
7079 case 12: {
7080 if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual;
7081 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7082 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7083 ctx->extra_parse_data().SetFieldName("dmi.Component.model_name");
7084 object = msg->mutable_model_name();
7085 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7086 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7087 goto string_till_end;
7088 }
7089 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7090 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7091 ptr += size;
7092 break;
7093 }
7094 // string alias = 13;
7095 case 13: {
7096 if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual;
7097 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7098 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7099 ctx->extra_parse_data().SetFieldName("dmi.Component.alias");
7100 object = msg->mutable_alias();
7101 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7102 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7103 goto string_till_end;
7104 }
7105 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7106 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7107 ptr += size;
7108 break;
7109 }
7110 // string asset_id = 14;
7111 case 14: {
7112 if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual;
7113 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7114 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7115 ctx->extra_parse_data().SetFieldName("dmi.Component.asset_id");
7116 object = msg->mutable_asset_id();
7117 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
7118 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
7119 goto string_till_end;
7120 }
7121 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
7122 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
7123 ptr += size;
7124 break;
7125 }
7126 // bool is_fru = 15;
7127 case 15: {
7128 if (static_cast<::google::protobuf::uint8>(tag) != 120) goto handle_unusual;
7129 msg->set_is_fru(::google::protobuf::internal::ReadVarint(&ptr));
7130 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7131 break;
7132 }
7133 // .google.protobuf.Timestamp mfg_date = 16;
7134 case 16: {
7135 if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual;
7136 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7137 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7138 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
7139 object = msg->mutable_mfg_date();
7140 if (size > end - ptr) goto len_delim_till_end;
7141 ptr += size;
7142 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7143 {parser_till_end, object}, ptr - size, ptr));
7144 break;
7145 }
7146 // .dmi.Uri uri = 17;
7147 case 17: {
7148 if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual;
7149 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7150 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7151 parser_till_end = ::dmi::Uri::_InternalParse;
7152 object = msg->mutable_uri();
7153 if (size > end - ptr) goto len_delim_till_end;
7154 ptr += size;
7155 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7156 {parser_till_end, object}, ptr - size, ptr));
7157 break;
7158 }
7159 // .dmi.Uuid uuid = 18;
7160 case 18: {
7161 if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
7162 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7163 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7164 parser_till_end = ::dmi::Uuid::_InternalParse;
7165 object = msg->mutable_uuid();
7166 if (size > end - ptr) goto len_delim_till_end;
7167 ptr += size;
7168 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7169 {parser_till_end, object}, ptr - size, ptr));
7170 break;
7171 }
7172 // .dmi.ComponentState state = 19;
7173 case 19: {
7174 if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual;
7175 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7176 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7177 parser_till_end = ::dmi::ComponentState::_InternalParse;
7178 object = msg->mutable_state();
7179 if (size > end - ptr) goto len_delim_till_end;
7180 ptr += size;
7181 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7182 {parser_till_end, object}, ptr - size, ptr));
7183 break;
7184 }
7185 // repeated .dmi.ComponentSensorData sensor_data = 20;
7186 case 20: {
7187 if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual;
7188 do {
7189 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7190 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7191 parser_till_end = ::dmi::ComponentSensorData::_InternalParse;
7192 object = msg->add_sensor_data();
7193 if (size > end - ptr) goto len_delim_till_end;
7194 ptr += size;
7195 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7196 {parser_till_end, object}, ptr - size, ptr));
7197 if (ptr >= end) break;
7198 } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 418 && (ptr += 2));
7199 break;
7200 }
7201 // .dmi.PortComponentAttributes port_attr = 50;
7202 case 50: {
7203 if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
7204 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7205 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7206 parser_till_end = ::dmi::PortComponentAttributes::_InternalParse;
7207 object = msg->mutable_port_attr();
7208 if (size > end - ptr) goto len_delim_till_end;
7209 ptr += size;
7210 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7211 {parser_till_end, object}, ptr - size, ptr));
7212 break;
7213 }
7214 // .dmi.ContainerComponentAttributes container_attr = 51;
7215 case 51: {
7216 if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual;
7217 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7218 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7219 parser_till_end = ::dmi::ContainerComponentAttributes::_InternalParse;
7220 object = msg->mutable_container_attr();
7221 if (size > end - ptr) goto len_delim_till_end;
7222 ptr += size;
7223 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7224 {parser_till_end, object}, ptr - size, ptr));
7225 break;
7226 }
7227 // .dmi.PsuComponentAttributes psu_attr = 52;
7228 case 52: {
7229 if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual;
7230 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7231 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7232 parser_till_end = ::dmi::PsuComponentAttributes::_InternalParse;
7233 object = msg->mutable_psu_attr();
7234 if (size > end - ptr) goto len_delim_till_end;
7235 ptr += size;
7236 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7237 {parser_till_end, object}, ptr - size, ptr));
7238 break;
7239 }
7240 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
7241 case 53: {
7242 if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual;
7243 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
7244 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
7245 parser_till_end = ::dmi::TransceiverComponentsAttributes::_InternalParse;
7246 object = msg->mutable_transceiver_attr();
7247 if (size > end - ptr) goto len_delim_till_end;
7248 ptr += size;
7249 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
7250 {parser_till_end, object}, ptr - size, ptr));
7251 break;
7252 }
7253 default: {
7254 handle_unusual:
7255 if ((tag & 7) == 4 || tag == 0) {
7256 ctx->EndGroup(tag);
7257 return ptr;
7258 }
7259 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
7260 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
7261 ptr = res.first;
7262 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
7263 if (res.second) return ptr;
7264 }
7265 } // switch
7266 } // while
7267 return ptr;
7268string_till_end:
7269 static_cast<::std::string*>(object)->clear();
7270 static_cast<::std::string*>(object)->reserve(size);
7271 goto len_delim_till_end;
7272len_delim_till_end:
7273 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
7274 {parser_till_end, object}, size);
7275}
7276#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7277bool Component::MergePartialFromCodedStream(
7278 ::google::protobuf::io::CodedInputStream* input) {
7279#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
7280 ::google::protobuf::uint32 tag;
7281 // @@protoc_insertion_point(parse_start:dmi.Component)
7282 for (;;) {
7283 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
7284 tag = p.first;
7285 if (!p.second) goto handle_unusual;
7286 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7287 // string name = 1;
7288 case 1: {
7289 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
7290 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7291 input, this->mutable_name()));
7292 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7293 this->name().data(), static_cast<int>(this->name().length()),
7294 ::google::protobuf::internal::WireFormatLite::PARSE,
7295 "dmi.Component.name"));
7296 } else {
7297 goto handle_unusual;
7298 }
7299 break;
7300 }
7301
7302 // .dmi.ComponentType class = 2;
7303 case 2: {
7304 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
7305 int value = 0;
7306 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7307 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
7308 input, &value)));
7309 set_class_(static_cast< ::dmi::ComponentType >(value));
7310 } else {
7311 goto handle_unusual;
7312 }
7313 break;
7314 }
7315
7316 // string description = 3;
7317 case 3: {
7318 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
7319 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7320 input, this->mutable_description()));
7321 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7322 this->description().data(), static_cast<int>(this->description().length()),
7323 ::google::protobuf::internal::WireFormatLite::PARSE,
7324 "dmi.Component.description"));
7325 } else {
7326 goto handle_unusual;
7327 }
7328 break;
7329 }
7330
7331 // string parent = 4;
7332 case 4: {
7333 if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) {
7334 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7335 input, this->mutable_parent()));
7336 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7337 this->parent().data(), static_cast<int>(this->parent().length()),
7338 ::google::protobuf::internal::WireFormatLite::PARSE,
7339 "dmi.Component.parent"));
7340 } else {
7341 goto handle_unusual;
7342 }
7343 break;
7344 }
7345
7346 // int32 parent_rel_pos = 5;
7347 case 5: {
7348 if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) {
7349
7350 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7351 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
7352 input, &parent_rel_pos_)));
7353 } else {
7354 goto handle_unusual;
7355 }
7356 break;
7357 }
7358
7359 // repeated .dmi.Component children = 6;
7360 case 6: {
7361 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
7362 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7363 input, add_children()));
7364 } else {
7365 goto handle_unusual;
7366 }
7367 break;
7368 }
7369
7370 // string hardware_rev = 7;
7371 case 7: {
7372 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
7373 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7374 input, this->mutable_hardware_rev()));
7375 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7376 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
7377 ::google::protobuf::internal::WireFormatLite::PARSE,
7378 "dmi.Component.hardware_rev"));
7379 } else {
7380 goto handle_unusual;
7381 }
7382 break;
7383 }
7384
7385 // string firmware_rev = 8;
7386 case 8: {
7387 if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) {
7388 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7389 input, this->mutable_firmware_rev()));
7390 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7391 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
7392 ::google::protobuf::internal::WireFormatLite::PARSE,
7393 "dmi.Component.firmware_rev"));
7394 } else {
7395 goto handle_unusual;
7396 }
7397 break;
7398 }
7399
7400 // string software_rev = 9;
7401 case 9: {
7402 if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) {
7403 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7404 input, this->mutable_software_rev()));
7405 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7406 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
7407 ::google::protobuf::internal::WireFormatLite::PARSE,
7408 "dmi.Component.software_rev"));
7409 } else {
7410 goto handle_unusual;
7411 }
7412 break;
7413 }
7414
7415 // string serial_num = 10;
7416 case 10: {
7417 if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) {
7418 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7419 input, this->mutable_serial_num()));
7420 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7421 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
7422 ::google::protobuf::internal::WireFormatLite::PARSE,
7423 "dmi.Component.serial_num"));
7424 } else {
7425 goto handle_unusual;
7426 }
7427 break;
7428 }
7429
7430 // string mfg_name = 11;
7431 case 11: {
7432 if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) {
7433 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7434 input, this->mutable_mfg_name()));
7435 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7436 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
7437 ::google::protobuf::internal::WireFormatLite::PARSE,
7438 "dmi.Component.mfg_name"));
7439 } else {
7440 goto handle_unusual;
7441 }
7442 break;
7443 }
7444
7445 // string model_name = 12;
7446 case 12: {
7447 if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) {
7448 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7449 input, this->mutable_model_name()));
7450 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7451 this->model_name().data(), static_cast<int>(this->model_name().length()),
7452 ::google::protobuf::internal::WireFormatLite::PARSE,
7453 "dmi.Component.model_name"));
7454 } else {
7455 goto handle_unusual;
7456 }
7457 break;
7458 }
7459
7460 // string alias = 13;
7461 case 13: {
7462 if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) {
7463 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7464 input, this->mutable_alias()));
7465 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7466 this->alias().data(), static_cast<int>(this->alias().length()),
7467 ::google::protobuf::internal::WireFormatLite::PARSE,
7468 "dmi.Component.alias"));
7469 } else {
7470 goto handle_unusual;
7471 }
7472 break;
7473 }
7474
7475 // string asset_id = 14;
7476 case 14: {
7477 if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) {
7478 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7479 input, this->mutable_asset_id()));
7480 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7481 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7482 ::google::protobuf::internal::WireFormatLite::PARSE,
7483 "dmi.Component.asset_id"));
7484 } else {
7485 goto handle_unusual;
7486 }
7487 break;
7488 }
7489
7490 // bool is_fru = 15;
7491 case 15: {
7492 if (static_cast< ::google::protobuf::uint8>(tag) == (120 & 0xFF)) {
7493
7494 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
7495 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
7496 input, &is_fru_)));
7497 } else {
7498 goto handle_unusual;
7499 }
7500 break;
7501 }
7502
7503 // .google.protobuf.Timestamp mfg_date = 16;
7504 case 16: {
7505 if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) {
7506 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7507 input, mutable_mfg_date()));
7508 } else {
7509 goto handle_unusual;
7510 }
7511 break;
7512 }
7513
7514 // .dmi.Uri uri = 17;
7515 case 17: {
7516 if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) {
7517 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7518 input, mutable_uri()));
7519 } else {
7520 goto handle_unusual;
7521 }
7522 break;
7523 }
7524
7525 // .dmi.Uuid uuid = 18;
7526 case 18: {
7527 if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) {
7528 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7529 input, mutable_uuid()));
7530 } else {
7531 goto handle_unusual;
7532 }
7533 break;
7534 }
7535
7536 // .dmi.ComponentState state = 19;
7537 case 19: {
7538 if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) {
7539 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7540 input, mutable_state()));
7541 } else {
7542 goto handle_unusual;
7543 }
7544 break;
7545 }
7546
7547 // repeated .dmi.ComponentSensorData sensor_data = 20;
7548 case 20: {
7549 if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) {
7550 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7551 input, add_sensor_data()));
7552 } else {
7553 goto handle_unusual;
7554 }
7555 break;
7556 }
7557
7558 // .dmi.PortComponentAttributes port_attr = 50;
7559 case 50: {
7560 if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) {
7561 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7562 input, mutable_port_attr()));
7563 } else {
7564 goto handle_unusual;
7565 }
7566 break;
7567 }
7568
7569 // .dmi.ContainerComponentAttributes container_attr = 51;
7570 case 51: {
7571 if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) {
7572 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7573 input, mutable_container_attr()));
7574 } else {
7575 goto handle_unusual;
7576 }
7577 break;
7578 }
7579
7580 // .dmi.PsuComponentAttributes psu_attr = 52;
7581 case 52: {
7582 if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) {
7583 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7584 input, mutable_psu_attr()));
7585 } else {
7586 goto handle_unusual;
7587 }
7588 break;
7589 }
7590
7591 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
7592 case 53: {
7593 if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) {
7594 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7595 input, mutable_transceiver_attr()));
7596 } else {
7597 goto handle_unusual;
7598 }
7599 break;
7600 }
7601
7602 default: {
7603 handle_unusual:
7604 if (tag == 0) {
7605 goto success;
7606 }
7607 DO_(::google::protobuf::internal::WireFormat::SkipField(
7608 input, tag, _internal_metadata_.mutable_unknown_fields()));
7609 break;
7610 }
7611 }
7612 }
7613success:
7614 // @@protoc_insertion_point(parse_success:dmi.Component)
7615 return true;
7616failure:
7617 // @@protoc_insertion_point(parse_failure:dmi.Component)
7618 return false;
7619#undef DO_
7620}
7621#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
7622
7623void Component::SerializeWithCachedSizes(
7624 ::google::protobuf::io::CodedOutputStream* output) const {
7625 // @@protoc_insertion_point(serialize_start:dmi.Component)
7626 ::google::protobuf::uint32 cached_has_bits = 0;
7627 (void) cached_has_bits;
7628
7629 // string name = 1;
7630 if (this->name().size() > 0) {
7631 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7632 this->name().data(), static_cast<int>(this->name().length()),
7633 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7634 "dmi.Component.name");
7635 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7636 1, this->name(), output);
7637 }
7638
7639 // .dmi.ComponentType class = 2;
7640 if (this->class_() != 0) {
7641 ::google::protobuf::internal::WireFormatLite::WriteEnum(
7642 2, this->class_(), output);
7643 }
7644
7645 // string description = 3;
7646 if (this->description().size() > 0) {
7647 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7648 this->description().data(), static_cast<int>(this->description().length()),
7649 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7650 "dmi.Component.description");
7651 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7652 3, this->description(), output);
7653 }
7654
7655 // string parent = 4;
7656 if (this->parent().size() > 0) {
7657 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7658 this->parent().data(), static_cast<int>(this->parent().length()),
7659 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7660 "dmi.Component.parent");
7661 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7662 4, this->parent(), output);
7663 }
7664
7665 // int32 parent_rel_pos = 5;
7666 if (this->parent_rel_pos() != 0) {
7667 ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parent_rel_pos(), output);
7668 }
7669
7670 // repeated .dmi.Component children = 6;
7671 for (unsigned int i = 0,
7672 n = static_cast<unsigned int>(this->children_size()); i < n; i++) {
7673 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7674 6,
7675 this->children(static_cast<int>(i)),
7676 output);
7677 }
7678
7679 // string hardware_rev = 7;
7680 if (this->hardware_rev().size() > 0) {
7681 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7682 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
7683 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7684 "dmi.Component.hardware_rev");
7685 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7686 7, this->hardware_rev(), output);
7687 }
7688
7689 // string firmware_rev = 8;
7690 if (this->firmware_rev().size() > 0) {
7691 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7692 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
7693 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7694 "dmi.Component.firmware_rev");
7695 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7696 8, this->firmware_rev(), output);
7697 }
7698
7699 // string software_rev = 9;
7700 if (this->software_rev().size() > 0) {
7701 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7702 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
7703 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7704 "dmi.Component.software_rev");
7705 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7706 9, this->software_rev(), output);
7707 }
7708
7709 // string serial_num = 10;
7710 if (this->serial_num().size() > 0) {
7711 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7712 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
7713 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7714 "dmi.Component.serial_num");
7715 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7716 10, this->serial_num(), output);
7717 }
7718
7719 // string mfg_name = 11;
7720 if (this->mfg_name().size() > 0) {
7721 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7722 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
7723 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7724 "dmi.Component.mfg_name");
7725 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7726 11, this->mfg_name(), output);
7727 }
7728
7729 // string model_name = 12;
7730 if (this->model_name().size() > 0) {
7731 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7732 this->model_name().data(), static_cast<int>(this->model_name().length()),
7733 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7734 "dmi.Component.model_name");
7735 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7736 12, this->model_name(), output);
7737 }
7738
7739 // string alias = 13;
7740 if (this->alias().size() > 0) {
7741 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7742 this->alias().data(), static_cast<int>(this->alias().length()),
7743 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7744 "dmi.Component.alias");
7745 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7746 13, this->alias(), output);
7747 }
7748
7749 // string asset_id = 14;
7750 if (this->asset_id().size() > 0) {
7751 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7752 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7753 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7754 "dmi.Component.asset_id");
7755 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7756 14, this->asset_id(), output);
7757 }
7758
7759 // bool is_fru = 15;
7760 if (this->is_fru() != 0) {
7761 ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_fru(), output);
7762 }
7763
7764 // .google.protobuf.Timestamp mfg_date = 16;
7765 if (this->has_mfg_date()) {
7766 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7767 16, HasBitSetters::mfg_date(this), output);
7768 }
7769
7770 // .dmi.Uri uri = 17;
7771 if (this->has_uri()) {
7772 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7773 17, HasBitSetters::uri(this), output);
7774 }
7775
7776 // .dmi.Uuid uuid = 18;
7777 if (this->has_uuid()) {
7778 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7779 18, HasBitSetters::uuid(this), output);
7780 }
7781
7782 // .dmi.ComponentState state = 19;
7783 if (this->has_state()) {
7784 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7785 19, HasBitSetters::state(this), output);
7786 }
7787
7788 // repeated .dmi.ComponentSensorData sensor_data = 20;
7789 for (unsigned int i = 0,
7790 n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) {
7791 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7792 20,
7793 this->sensor_data(static_cast<int>(i)),
7794 output);
7795 }
7796
7797 // .dmi.PortComponentAttributes port_attr = 50;
7798 if (has_port_attr()) {
7799 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7800 50, HasBitSetters::port_attr(this), output);
7801 }
7802
7803 // .dmi.ContainerComponentAttributes container_attr = 51;
7804 if (has_container_attr()) {
7805 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7806 51, HasBitSetters::container_attr(this), output);
7807 }
7808
7809 // .dmi.PsuComponentAttributes psu_attr = 52;
7810 if (has_psu_attr()) {
7811 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7812 52, HasBitSetters::psu_attr(this), output);
7813 }
7814
7815 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
7816 if (has_transceiver_attr()) {
7817 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7818 53, HasBitSetters::transceiver_attr(this), output);
7819 }
7820
7821 if (_internal_metadata_.have_unknown_fields()) {
7822 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7823 _internal_metadata_.unknown_fields(), output);
7824 }
7825 // @@protoc_insertion_point(serialize_end:dmi.Component)
7826}
7827
7828::google::protobuf::uint8* Component::InternalSerializeWithCachedSizesToArray(
7829 ::google::protobuf::uint8* target) const {
7830 // @@protoc_insertion_point(serialize_to_array_start:dmi.Component)
7831 ::google::protobuf::uint32 cached_has_bits = 0;
7832 (void) cached_has_bits;
7833
7834 // string name = 1;
7835 if (this->name().size() > 0) {
7836 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7837 this->name().data(), static_cast<int>(this->name().length()),
7838 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7839 "dmi.Component.name");
7840 target =
7841 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7842 1, this->name(), target);
7843 }
7844
7845 // .dmi.ComponentType class = 2;
7846 if (this->class_() != 0) {
7847 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
7848 2, this->class_(), target);
7849 }
7850
7851 // string description = 3;
7852 if (this->description().size() > 0) {
7853 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7854 this->description().data(), static_cast<int>(this->description().length()),
7855 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7856 "dmi.Component.description");
7857 target =
7858 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7859 3, this->description(), target);
7860 }
7861
7862 // string parent = 4;
7863 if (this->parent().size() > 0) {
7864 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7865 this->parent().data(), static_cast<int>(this->parent().length()),
7866 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7867 "dmi.Component.parent");
7868 target =
7869 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7870 4, this->parent(), target);
7871 }
7872
7873 // int32 parent_rel_pos = 5;
7874 if (this->parent_rel_pos() != 0) {
7875 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parent_rel_pos(), target);
7876 }
7877
7878 // repeated .dmi.Component children = 6;
7879 for (unsigned int i = 0,
7880 n = static_cast<unsigned int>(this->children_size()); i < n; i++) {
7881 target = ::google::protobuf::internal::WireFormatLite::
7882 InternalWriteMessageToArray(
7883 6, this->children(static_cast<int>(i)), target);
7884 }
7885
7886 // string hardware_rev = 7;
7887 if (this->hardware_rev().size() > 0) {
7888 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7889 this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()),
7890 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7891 "dmi.Component.hardware_rev");
7892 target =
7893 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7894 7, this->hardware_rev(), target);
7895 }
7896
7897 // string firmware_rev = 8;
7898 if (this->firmware_rev().size() > 0) {
7899 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7900 this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()),
7901 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7902 "dmi.Component.firmware_rev");
7903 target =
7904 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7905 8, this->firmware_rev(), target);
7906 }
7907
7908 // string software_rev = 9;
7909 if (this->software_rev().size() > 0) {
7910 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7911 this->software_rev().data(), static_cast<int>(this->software_rev().length()),
7912 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7913 "dmi.Component.software_rev");
7914 target =
7915 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7916 9, this->software_rev(), target);
7917 }
7918
7919 // string serial_num = 10;
7920 if (this->serial_num().size() > 0) {
7921 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7922 this->serial_num().data(), static_cast<int>(this->serial_num().length()),
7923 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7924 "dmi.Component.serial_num");
7925 target =
7926 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7927 10, this->serial_num(), target);
7928 }
7929
7930 // string mfg_name = 11;
7931 if (this->mfg_name().size() > 0) {
7932 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7933 this->mfg_name().data(), static_cast<int>(this->mfg_name().length()),
7934 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7935 "dmi.Component.mfg_name");
7936 target =
7937 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7938 11, this->mfg_name(), target);
7939 }
7940
7941 // string model_name = 12;
7942 if (this->model_name().size() > 0) {
7943 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7944 this->model_name().data(), static_cast<int>(this->model_name().length()),
7945 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7946 "dmi.Component.model_name");
7947 target =
7948 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7949 12, this->model_name(), target);
7950 }
7951
7952 // string alias = 13;
7953 if (this->alias().size() > 0) {
7954 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7955 this->alias().data(), static_cast<int>(this->alias().length()),
7956 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7957 "dmi.Component.alias");
7958 target =
7959 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7960 13, this->alias(), target);
7961 }
7962
7963 // string asset_id = 14;
7964 if (this->asset_id().size() > 0) {
7965 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
7966 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
7967 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
7968 "dmi.Component.asset_id");
7969 target =
7970 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7971 14, this->asset_id(), target);
7972 }
7973
7974 // bool is_fru = 15;
7975 if (this->is_fru() != 0) {
7976 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_fru(), target);
7977 }
7978
7979 // .google.protobuf.Timestamp mfg_date = 16;
7980 if (this->has_mfg_date()) {
7981 target = ::google::protobuf::internal::WireFormatLite::
7982 InternalWriteMessageToArray(
7983 16, HasBitSetters::mfg_date(this), target);
7984 }
7985
7986 // .dmi.Uri uri = 17;
7987 if (this->has_uri()) {
7988 target = ::google::protobuf::internal::WireFormatLite::
7989 InternalWriteMessageToArray(
7990 17, HasBitSetters::uri(this), target);
7991 }
7992
7993 // .dmi.Uuid uuid = 18;
7994 if (this->has_uuid()) {
7995 target = ::google::protobuf::internal::WireFormatLite::
7996 InternalWriteMessageToArray(
7997 18, HasBitSetters::uuid(this), target);
7998 }
7999
8000 // .dmi.ComponentState state = 19;
8001 if (this->has_state()) {
8002 target = ::google::protobuf::internal::WireFormatLite::
8003 InternalWriteMessageToArray(
8004 19, HasBitSetters::state(this), target);
8005 }
8006
8007 // repeated .dmi.ComponentSensorData sensor_data = 20;
8008 for (unsigned int i = 0,
8009 n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) {
8010 target = ::google::protobuf::internal::WireFormatLite::
8011 InternalWriteMessageToArray(
8012 20, this->sensor_data(static_cast<int>(i)), target);
8013 }
8014
8015 // .dmi.PortComponentAttributes port_attr = 50;
8016 if (has_port_attr()) {
8017 target = ::google::protobuf::internal::WireFormatLite::
8018 InternalWriteMessageToArray(
8019 50, HasBitSetters::port_attr(this), target);
8020 }
8021
8022 // .dmi.ContainerComponentAttributes container_attr = 51;
8023 if (has_container_attr()) {
8024 target = ::google::protobuf::internal::WireFormatLite::
8025 InternalWriteMessageToArray(
8026 51, HasBitSetters::container_attr(this), target);
8027 }
8028
8029 // .dmi.PsuComponentAttributes psu_attr = 52;
8030 if (has_psu_attr()) {
8031 target = ::google::protobuf::internal::WireFormatLite::
8032 InternalWriteMessageToArray(
8033 52, HasBitSetters::psu_attr(this), target);
8034 }
8035
8036 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
8037 if (has_transceiver_attr()) {
8038 target = ::google::protobuf::internal::WireFormatLite::
8039 InternalWriteMessageToArray(
8040 53, HasBitSetters::transceiver_attr(this), target);
8041 }
8042
8043 if (_internal_metadata_.have_unknown_fields()) {
8044 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8045 _internal_metadata_.unknown_fields(), target);
8046 }
8047 // @@protoc_insertion_point(serialize_to_array_end:dmi.Component)
8048 return target;
8049}
8050
8051size_t Component::ByteSizeLong() const {
8052// @@protoc_insertion_point(message_byte_size_start:dmi.Component)
8053 size_t total_size = 0;
8054
8055 if (_internal_metadata_.have_unknown_fields()) {
8056 total_size +=
8057 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8058 _internal_metadata_.unknown_fields());
8059 }
8060 ::google::protobuf::uint32 cached_has_bits = 0;
8061 // Prevent compiler warnings about cached_has_bits being unused
8062 (void) cached_has_bits;
8063
8064 // repeated .dmi.Component children = 6;
8065 {
8066 unsigned int count = static_cast<unsigned int>(this->children_size());
8067 total_size += 1UL * count;
8068 for (unsigned int i = 0; i < count; i++) {
8069 total_size +=
8070 ::google::protobuf::internal::WireFormatLite::MessageSize(
8071 this->children(static_cast<int>(i)));
8072 }
8073 }
8074
8075 // repeated .dmi.ComponentSensorData sensor_data = 20;
8076 {
8077 unsigned int count = static_cast<unsigned int>(this->sensor_data_size());
8078 total_size += 2UL * count;
8079 for (unsigned int i = 0; i < count; i++) {
8080 total_size +=
8081 ::google::protobuf::internal::WireFormatLite::MessageSize(
8082 this->sensor_data(static_cast<int>(i)));
8083 }
8084 }
8085
8086 // string name = 1;
8087 if (this->name().size() > 0) {
8088 total_size += 1 +
8089 ::google::protobuf::internal::WireFormatLite::StringSize(
8090 this->name());
8091 }
8092
8093 // string description = 3;
8094 if (this->description().size() > 0) {
8095 total_size += 1 +
8096 ::google::protobuf::internal::WireFormatLite::StringSize(
8097 this->description());
8098 }
8099
8100 // string parent = 4;
8101 if (this->parent().size() > 0) {
8102 total_size += 1 +
8103 ::google::protobuf::internal::WireFormatLite::StringSize(
8104 this->parent());
8105 }
8106
8107 // string hardware_rev = 7;
8108 if (this->hardware_rev().size() > 0) {
8109 total_size += 1 +
8110 ::google::protobuf::internal::WireFormatLite::StringSize(
8111 this->hardware_rev());
8112 }
8113
8114 // string firmware_rev = 8;
8115 if (this->firmware_rev().size() > 0) {
8116 total_size += 1 +
8117 ::google::protobuf::internal::WireFormatLite::StringSize(
8118 this->firmware_rev());
8119 }
8120
8121 // string software_rev = 9;
8122 if (this->software_rev().size() > 0) {
8123 total_size += 1 +
8124 ::google::protobuf::internal::WireFormatLite::StringSize(
8125 this->software_rev());
8126 }
8127
8128 // string serial_num = 10;
8129 if (this->serial_num().size() > 0) {
8130 total_size += 1 +
8131 ::google::protobuf::internal::WireFormatLite::StringSize(
8132 this->serial_num());
8133 }
8134
8135 // string mfg_name = 11;
8136 if (this->mfg_name().size() > 0) {
8137 total_size += 1 +
8138 ::google::protobuf::internal::WireFormatLite::StringSize(
8139 this->mfg_name());
8140 }
8141
8142 // string model_name = 12;
8143 if (this->model_name().size() > 0) {
8144 total_size += 1 +
8145 ::google::protobuf::internal::WireFormatLite::StringSize(
8146 this->model_name());
8147 }
8148
8149 // string alias = 13;
8150 if (this->alias().size() > 0) {
8151 total_size += 1 +
8152 ::google::protobuf::internal::WireFormatLite::StringSize(
8153 this->alias());
8154 }
8155
8156 // string asset_id = 14;
8157 if (this->asset_id().size() > 0) {
8158 total_size += 1 +
8159 ::google::protobuf::internal::WireFormatLite::StringSize(
8160 this->asset_id());
8161 }
8162
8163 // .google.protobuf.Timestamp mfg_date = 16;
8164 if (this->has_mfg_date()) {
8165 total_size += 2 +
8166 ::google::protobuf::internal::WireFormatLite::MessageSize(
8167 *mfg_date_);
8168 }
8169
8170 // .dmi.Uri uri = 17;
8171 if (this->has_uri()) {
8172 total_size += 2 +
8173 ::google::protobuf::internal::WireFormatLite::MessageSize(
8174 *uri_);
8175 }
8176
8177 // .dmi.Uuid uuid = 18;
8178 if (this->has_uuid()) {
8179 total_size += 2 +
8180 ::google::protobuf::internal::WireFormatLite::MessageSize(
8181 *uuid_);
8182 }
8183
8184 // .dmi.ComponentState state = 19;
8185 if (this->has_state()) {
8186 total_size += 2 +
8187 ::google::protobuf::internal::WireFormatLite::MessageSize(
8188 *state_);
8189 }
8190
8191 // .dmi.ComponentType class = 2;
8192 if (this->class_() != 0) {
8193 total_size += 1 +
8194 ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_());
8195 }
8196
8197 // int32 parent_rel_pos = 5;
8198 if (this->parent_rel_pos() != 0) {
8199 total_size += 1 +
8200 ::google::protobuf::internal::WireFormatLite::Int32Size(
8201 this->parent_rel_pos());
8202 }
8203
8204 // bool is_fru = 15;
8205 if (this->is_fru() != 0) {
8206 total_size += 1 + 1;
8207 }
8208
8209 switch (specific_case()) {
8210 // .dmi.PortComponentAttributes port_attr = 50;
8211 case kPortAttr: {
8212 total_size += 2 +
8213 ::google::protobuf::internal::WireFormatLite::MessageSize(
8214 *specific_.port_attr_);
8215 break;
8216 }
8217 // .dmi.ContainerComponentAttributes container_attr = 51;
8218 case kContainerAttr: {
8219 total_size += 2 +
8220 ::google::protobuf::internal::WireFormatLite::MessageSize(
8221 *specific_.container_attr_);
8222 break;
8223 }
8224 // .dmi.PsuComponentAttributes psu_attr = 52;
8225 case kPsuAttr: {
8226 total_size += 2 +
8227 ::google::protobuf::internal::WireFormatLite::MessageSize(
8228 *specific_.psu_attr_);
8229 break;
8230 }
8231 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
8232 case kTransceiverAttr: {
8233 total_size += 2 +
8234 ::google::protobuf::internal::WireFormatLite::MessageSize(
8235 *specific_.transceiver_attr_);
8236 break;
8237 }
8238 case SPECIFIC_NOT_SET: {
8239 break;
8240 }
8241 }
8242 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8243 SetCachedSize(cached_size);
8244 return total_size;
8245}
8246
8247void Component::MergeFrom(const ::google::protobuf::Message& from) {
8248// @@protoc_insertion_point(generalized_merge_from_start:dmi.Component)
8249 GOOGLE_DCHECK_NE(&from, this);
8250 const Component* source =
8251 ::google::protobuf::DynamicCastToGenerated<Component>(
8252 &from);
8253 if (source == nullptr) {
8254 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Component)
8255 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8256 } else {
8257 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Component)
8258 MergeFrom(*source);
8259 }
8260}
8261
8262void Component::MergeFrom(const Component& from) {
8263// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Component)
8264 GOOGLE_DCHECK_NE(&from, this);
8265 _internal_metadata_.MergeFrom(from._internal_metadata_);
8266 ::google::protobuf::uint32 cached_has_bits = 0;
8267 (void) cached_has_bits;
8268
8269 children_.MergeFrom(from.children_);
8270 sensor_data_.MergeFrom(from.sensor_data_);
8271 if (from.name().size() > 0) {
8272
8273 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
8274 }
8275 if (from.description().size() > 0) {
8276
8277 description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_);
8278 }
8279 if (from.parent().size() > 0) {
8280
8281 parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_);
8282 }
8283 if (from.hardware_rev().size() > 0) {
8284
8285 hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_);
8286 }
8287 if (from.firmware_rev().size() > 0) {
8288
8289 firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_);
8290 }
8291 if (from.software_rev().size() > 0) {
8292
8293 software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_);
8294 }
8295 if (from.serial_num().size() > 0) {
8296
8297 serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_);
8298 }
8299 if (from.mfg_name().size() > 0) {
8300
8301 mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_);
8302 }
8303 if (from.model_name().size() > 0) {
8304
8305 model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_);
8306 }
8307 if (from.alias().size() > 0) {
8308
8309 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
8310 }
8311 if (from.asset_id().size() > 0) {
8312
8313 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
8314 }
8315 if (from.has_mfg_date()) {
8316 mutable_mfg_date()->::google::protobuf::Timestamp::MergeFrom(from.mfg_date());
8317 }
8318 if (from.has_uri()) {
8319 mutable_uri()->::dmi::Uri::MergeFrom(from.uri());
8320 }
8321 if (from.has_uuid()) {
8322 mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid());
8323 }
8324 if (from.has_state()) {
8325 mutable_state()->::dmi::ComponentState::MergeFrom(from.state());
8326 }
8327 if (from.class_() != 0) {
8328 set_class_(from.class_());
8329 }
8330 if (from.parent_rel_pos() != 0) {
8331 set_parent_rel_pos(from.parent_rel_pos());
8332 }
8333 if (from.is_fru() != 0) {
8334 set_is_fru(from.is_fru());
8335 }
8336 switch (from.specific_case()) {
8337 case kPortAttr: {
8338 mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr());
8339 break;
8340 }
8341 case kContainerAttr: {
8342 mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr());
8343 break;
8344 }
8345 case kPsuAttr: {
8346 mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr());
8347 break;
8348 }
8349 case kTransceiverAttr: {
8350 mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr());
8351 break;
8352 }
8353 case SPECIFIC_NOT_SET: {
8354 break;
8355 }
8356 }
8357}
8358
8359void Component::CopyFrom(const ::google::protobuf::Message& from) {
8360// @@protoc_insertion_point(generalized_copy_from_start:dmi.Component)
8361 if (&from == this) return;
8362 Clear();
8363 MergeFrom(from);
8364}
8365
8366void Component::CopyFrom(const Component& from) {
8367// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Component)
8368 if (&from == this) return;
8369 Clear();
8370 MergeFrom(from);
8371}
8372
8373bool Component::IsInitialized() const {
8374 return true;
8375}
8376
8377void Component::Swap(Component* other) {
8378 if (other == this) return;
8379 InternalSwap(other);
8380}
8381void Component::InternalSwap(Component* other) {
8382 using std::swap;
8383 _internal_metadata_.Swap(&other->_internal_metadata_);
8384 CastToBase(&children_)->InternalSwap(CastToBase(&other->children_));
8385 CastToBase(&sensor_data_)->InternalSwap(CastToBase(&other->sensor_data_));
8386 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8387 GetArenaNoVirtual());
8388 description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8389 GetArenaNoVirtual());
8390 parent_.Swap(&other->parent_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8391 GetArenaNoVirtual());
8392 hardware_rev_.Swap(&other->hardware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8393 GetArenaNoVirtual());
8394 firmware_rev_.Swap(&other->firmware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8395 GetArenaNoVirtual());
8396 software_rev_.Swap(&other->software_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8397 GetArenaNoVirtual());
8398 serial_num_.Swap(&other->serial_num_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8399 GetArenaNoVirtual());
8400 mfg_name_.Swap(&other->mfg_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8401 GetArenaNoVirtual());
8402 model_name_.Swap(&other->model_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8403 GetArenaNoVirtual());
8404 alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8405 GetArenaNoVirtual());
8406 asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
8407 GetArenaNoVirtual());
8408 swap(mfg_date_, other->mfg_date_);
8409 swap(uri_, other->uri_);
8410 swap(uuid_, other->uuid_);
8411 swap(state_, other->state_);
8412 swap(class__, other->class__);
8413 swap(parent_rel_pos_, other->parent_rel_pos_);
8414 swap(is_fru_, other->is_fru_);
8415 swap(specific_, other->specific_);
8416 swap(_oneof_case_[0], other->_oneof_case_[0]);
8417}
8418
8419::google::protobuf::Metadata Component::GetMetadata() const {
8420 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
8421 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
8422}
8423
8424
8425// ===================================================================
8426
8427void Hardware::InitAsDefaultInstance() {
8428 ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_change_ = const_cast< ::google::protobuf::Timestamp*>(
8429 ::google::protobuf::Timestamp::internal_default_instance());
8430 ::dmi::_Hardware_default_instance_._instance.get_mutable()->root_ = const_cast< ::dmi::Component*>(
8431 ::dmi::Component::internal_default_instance());
8432 ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_booted_ = const_cast< ::google::protobuf::Timestamp*>(
8433 ::google::protobuf::Timestamp::internal_default_instance());
8434}
8435class Hardware::HasBitSetters {
8436 public:
8437 static const ::google::protobuf::Timestamp& last_change(const Hardware* msg);
8438 static const ::dmi::Component& root(const Hardware* msg);
8439 static const ::google::protobuf::Timestamp& last_booted(const Hardware* msg);
8440};
8441
8442const ::google::protobuf::Timestamp&
8443Hardware::HasBitSetters::last_change(const Hardware* msg) {
8444 return *msg->last_change_;
8445}
8446const ::dmi::Component&
8447Hardware::HasBitSetters::root(const Hardware* msg) {
8448 return *msg->root_;
8449}
8450const ::google::protobuf::Timestamp&
8451Hardware::HasBitSetters::last_booted(const Hardware* msg) {
8452 return *msg->last_booted_;
8453}
8454void Hardware::clear_last_change() {
8455 if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) {
8456 delete last_change_;
8457 }
8458 last_change_ = nullptr;
8459}
8460void Hardware::clear_last_booted() {
8461 if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) {
8462 delete last_booted_;
8463 }
8464 last_booted_ = nullptr;
8465}
8466#if !defined(_MSC_VER) || _MSC_VER >= 1900
8467const int Hardware::kLastChangeFieldNumber;
8468const int Hardware::kRootFieldNumber;
8469const int Hardware::kLastBootedFieldNumber;
8470#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8471
8472Hardware::Hardware()
8473 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8474 SharedCtor();
8475 // @@protoc_insertion_point(constructor:dmi.Hardware)
8476}
8477Hardware::Hardware(const Hardware& from)
8478 : ::google::protobuf::Message(),
8479 _internal_metadata_(nullptr) {
8480 _internal_metadata_.MergeFrom(from._internal_metadata_);
8481 if (from.has_last_change()) {
8482 last_change_ = new ::google::protobuf::Timestamp(*from.last_change_);
8483 } else {
8484 last_change_ = nullptr;
8485 }
8486 if (from.has_root()) {
8487 root_ = new ::dmi::Component(*from.root_);
8488 } else {
8489 root_ = nullptr;
8490 }
8491 if (from.has_last_booted()) {
8492 last_booted_ = new ::google::protobuf::Timestamp(*from.last_booted_);
8493 } else {
8494 last_booted_ = nullptr;
8495 }
8496 // @@protoc_insertion_point(copy_constructor:dmi.Hardware)
8497}
8498
8499void Hardware::SharedCtor() {
8500 ::google::protobuf::internal::InitSCC(
8501 &scc_info_Hardware_dmi_2fhw_2eproto.base);
8502 ::memset(&last_change_, 0, static_cast<size_t>(
8503 reinterpret_cast<char*>(&last_booted_) -
8504 reinterpret_cast<char*>(&last_change_)) + sizeof(last_booted_));
8505}
8506
8507Hardware::~Hardware() {
8508 // @@protoc_insertion_point(destructor:dmi.Hardware)
8509 SharedDtor();
8510}
8511
8512void Hardware::SharedDtor() {
8513 if (this != internal_default_instance()) delete last_change_;
8514 if (this != internal_default_instance()) delete root_;
8515 if (this != internal_default_instance()) delete last_booted_;
8516}
8517
8518void Hardware::SetCachedSize(int size) const {
8519 _cached_size_.Set(size);
8520}
8521const Hardware& Hardware::default_instance() {
8522 ::google::protobuf::internal::InitSCC(&::scc_info_Hardware_dmi_2fhw_2eproto.base);
8523 return *internal_default_instance();
8524}
8525
8526
8527void Hardware::Clear() {
8528// @@protoc_insertion_point(message_clear_start:dmi.Hardware)
8529 ::google::protobuf::uint32 cached_has_bits = 0;
8530 // Prevent compiler warnings about cached_has_bits being unused
8531 (void) cached_has_bits;
8532
8533 if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) {
8534 delete last_change_;
8535 }
8536 last_change_ = nullptr;
8537 if (GetArenaNoVirtual() == nullptr && root_ != nullptr) {
8538 delete root_;
8539 }
8540 root_ = nullptr;
8541 if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) {
8542 delete last_booted_;
8543 }
8544 last_booted_ = nullptr;
8545 _internal_metadata_.Clear();
8546}
8547
8548#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8549const char* Hardware::_InternalParse(const char* begin, const char* end, void* object,
8550 ::google::protobuf::internal::ParseContext* ctx) {
8551 auto msg = static_cast<Hardware*>(object);
8552 ::google::protobuf::int32 size; (void)size;
8553 int depth; (void)depth;
8554 ::google::protobuf::uint32 tag;
8555 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
8556 auto ptr = begin;
8557 while (ptr < end) {
8558 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
8559 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8560 switch (tag >> 3) {
8561 // .google.protobuf.Timestamp last_change = 1;
8562 case 1: {
8563 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
8564 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8565 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8566 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
8567 object = msg->mutable_last_change();
8568 if (size > end - ptr) goto len_delim_till_end;
8569 ptr += size;
8570 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8571 {parser_till_end, object}, ptr - size, ptr));
8572 break;
8573 }
8574 // .dmi.Component root = 2;
8575 case 2: {
8576 if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual;
8577 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8578 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8579 parser_till_end = ::dmi::Component::_InternalParse;
8580 object = msg->mutable_root();
8581 if (size > end - ptr) goto len_delim_till_end;
8582 ptr += size;
8583 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8584 {parser_till_end, object}, ptr - size, ptr));
8585 break;
8586 }
8587 // .google.protobuf.Timestamp last_booted = 3;
8588 case 3: {
8589 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
8590 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
8591 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
8592 parser_till_end = ::google::protobuf::Timestamp::_InternalParse;
8593 object = msg->mutable_last_booted();
8594 if (size > end - ptr) goto len_delim_till_end;
8595 ptr += size;
8596 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
8597 {parser_till_end, object}, ptr - size, ptr));
8598 break;
8599 }
8600 default: {
8601 handle_unusual:
8602 if ((tag & 7) == 4 || tag == 0) {
8603 ctx->EndGroup(tag);
8604 return ptr;
8605 }
8606 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
8607 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
8608 ptr = res.first;
8609 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
8610 if (res.second) return ptr;
8611 }
8612 } // switch
8613 } // while
8614 return ptr;
8615len_delim_till_end:
8616 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
8617 {parser_till_end, object}, size);
8618}
8619#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8620bool Hardware::MergePartialFromCodedStream(
8621 ::google::protobuf::io::CodedInputStream* input) {
8622#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
8623 ::google::protobuf::uint32 tag;
8624 // @@protoc_insertion_point(parse_start:dmi.Hardware)
8625 for (;;) {
8626 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
8627 tag = p.first;
8628 if (!p.second) goto handle_unusual;
8629 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
8630 // .google.protobuf.Timestamp last_change = 1;
8631 case 1: {
8632 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
8633 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8634 input, mutable_last_change()));
8635 } else {
8636 goto handle_unusual;
8637 }
8638 break;
8639 }
8640
8641 // .dmi.Component root = 2;
8642 case 2: {
8643 if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) {
8644 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8645 input, mutable_root()));
8646 } else {
8647 goto handle_unusual;
8648 }
8649 break;
8650 }
8651
8652 // .google.protobuf.Timestamp last_booted = 3;
8653 case 3: {
8654 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
8655 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
8656 input, mutable_last_booted()));
8657 } else {
8658 goto handle_unusual;
8659 }
8660 break;
8661 }
8662
8663 default: {
8664 handle_unusual:
8665 if (tag == 0) {
8666 goto success;
8667 }
8668 DO_(::google::protobuf::internal::WireFormat::SkipField(
8669 input, tag, _internal_metadata_.mutable_unknown_fields()));
8670 break;
8671 }
8672 }
8673 }
8674success:
8675 // @@protoc_insertion_point(parse_success:dmi.Hardware)
8676 return true;
8677failure:
8678 // @@protoc_insertion_point(parse_failure:dmi.Hardware)
8679 return false;
8680#undef DO_
8681}
8682#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
8683
8684void Hardware::SerializeWithCachedSizes(
8685 ::google::protobuf::io::CodedOutputStream* output) const {
8686 // @@protoc_insertion_point(serialize_start:dmi.Hardware)
8687 ::google::protobuf::uint32 cached_has_bits = 0;
8688 (void) cached_has_bits;
8689
8690 // .google.protobuf.Timestamp last_change = 1;
8691 if (this->has_last_change()) {
8692 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8693 1, HasBitSetters::last_change(this), output);
8694 }
8695
8696 // .dmi.Component root = 2;
8697 if (this->has_root()) {
8698 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8699 2, HasBitSetters::root(this), output);
8700 }
8701
8702 // .google.protobuf.Timestamp last_booted = 3;
8703 if (this->has_last_booted()) {
8704 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8705 3, HasBitSetters::last_booted(this), output);
8706 }
8707
8708 if (_internal_metadata_.have_unknown_fields()) {
8709 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
8710 _internal_metadata_.unknown_fields(), output);
8711 }
8712 // @@protoc_insertion_point(serialize_end:dmi.Hardware)
8713}
8714
8715::google::protobuf::uint8* Hardware::InternalSerializeWithCachedSizesToArray(
8716 ::google::protobuf::uint8* target) const {
8717 // @@protoc_insertion_point(serialize_to_array_start:dmi.Hardware)
8718 ::google::protobuf::uint32 cached_has_bits = 0;
8719 (void) cached_has_bits;
8720
8721 // .google.protobuf.Timestamp last_change = 1;
8722 if (this->has_last_change()) {
8723 target = ::google::protobuf::internal::WireFormatLite::
8724 InternalWriteMessageToArray(
8725 1, HasBitSetters::last_change(this), target);
8726 }
8727
8728 // .dmi.Component root = 2;
8729 if (this->has_root()) {
8730 target = ::google::protobuf::internal::WireFormatLite::
8731 InternalWriteMessageToArray(
8732 2, HasBitSetters::root(this), target);
8733 }
8734
8735 // .google.protobuf.Timestamp last_booted = 3;
8736 if (this->has_last_booted()) {
8737 target = ::google::protobuf::internal::WireFormatLite::
8738 InternalWriteMessageToArray(
8739 3, HasBitSetters::last_booted(this), target);
8740 }
8741
8742 if (_internal_metadata_.have_unknown_fields()) {
8743 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
8744 _internal_metadata_.unknown_fields(), target);
8745 }
8746 // @@protoc_insertion_point(serialize_to_array_end:dmi.Hardware)
8747 return target;
8748}
8749
8750size_t Hardware::ByteSizeLong() const {
8751// @@protoc_insertion_point(message_byte_size_start:dmi.Hardware)
8752 size_t total_size = 0;
8753
8754 if (_internal_metadata_.have_unknown_fields()) {
8755 total_size +=
8756 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
8757 _internal_metadata_.unknown_fields());
8758 }
8759 ::google::protobuf::uint32 cached_has_bits = 0;
8760 // Prevent compiler warnings about cached_has_bits being unused
8761 (void) cached_has_bits;
8762
8763 // .google.protobuf.Timestamp last_change = 1;
8764 if (this->has_last_change()) {
8765 total_size += 1 +
8766 ::google::protobuf::internal::WireFormatLite::MessageSize(
8767 *last_change_);
8768 }
8769
8770 // .dmi.Component root = 2;
8771 if (this->has_root()) {
8772 total_size += 1 +
8773 ::google::protobuf::internal::WireFormatLite::MessageSize(
8774 *root_);
8775 }
8776
8777 // .google.protobuf.Timestamp last_booted = 3;
8778 if (this->has_last_booted()) {
8779 total_size += 1 +
8780 ::google::protobuf::internal::WireFormatLite::MessageSize(
8781 *last_booted_);
8782 }
8783
8784 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
8785 SetCachedSize(cached_size);
8786 return total_size;
8787}
8788
8789void Hardware::MergeFrom(const ::google::protobuf::Message& from) {
8790// @@protoc_insertion_point(generalized_merge_from_start:dmi.Hardware)
8791 GOOGLE_DCHECK_NE(&from, this);
8792 const Hardware* source =
8793 ::google::protobuf::DynamicCastToGenerated<Hardware>(
8794 &from);
8795 if (source == nullptr) {
8796 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Hardware)
8797 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
8798 } else {
8799 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Hardware)
8800 MergeFrom(*source);
8801 }
8802}
8803
8804void Hardware::MergeFrom(const Hardware& from) {
8805// @@protoc_insertion_point(class_specific_merge_from_start:dmi.Hardware)
8806 GOOGLE_DCHECK_NE(&from, this);
8807 _internal_metadata_.MergeFrom(from._internal_metadata_);
8808 ::google::protobuf::uint32 cached_has_bits = 0;
8809 (void) cached_has_bits;
8810
8811 if (from.has_last_change()) {
8812 mutable_last_change()->::google::protobuf::Timestamp::MergeFrom(from.last_change());
8813 }
8814 if (from.has_root()) {
8815 mutable_root()->::dmi::Component::MergeFrom(from.root());
8816 }
8817 if (from.has_last_booted()) {
8818 mutable_last_booted()->::google::protobuf::Timestamp::MergeFrom(from.last_booted());
8819 }
8820}
8821
8822void Hardware::CopyFrom(const ::google::protobuf::Message& from) {
8823// @@protoc_insertion_point(generalized_copy_from_start:dmi.Hardware)
8824 if (&from == this) return;
8825 Clear();
8826 MergeFrom(from);
8827}
8828
8829void Hardware::CopyFrom(const Hardware& from) {
8830// @@protoc_insertion_point(class_specific_copy_from_start:dmi.Hardware)
8831 if (&from == this) return;
8832 Clear();
8833 MergeFrom(from);
8834}
8835
8836bool Hardware::IsInitialized() const {
8837 return true;
8838}
8839
8840void Hardware::Swap(Hardware* other) {
8841 if (other == this) return;
8842 InternalSwap(other);
8843}
8844void Hardware::InternalSwap(Hardware* other) {
8845 using std::swap;
8846 _internal_metadata_.Swap(&other->_internal_metadata_);
8847 swap(last_change_, other->last_change_);
8848 swap(root_, other->root_);
8849 swap(last_booted_, other->last_booted_);
8850}
8851
8852::google::protobuf::Metadata Hardware::GetMetadata() const {
8853 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
8854 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
8855}
8856
8857
8858// ===================================================================
8859
8860void ModifiableComponent::InitAsDefaultInstance() {
8861 ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->parent_ = const_cast< ::dmi::Component*>(
8862 ::dmi::Component::internal_default_instance());
8863 ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>(
8864 ::dmi::Uri::internal_default_instance());
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008865 ::dmi::_ModifiableComponent_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentChangeAttributes*>(
8866 ::dmi::PortComponentChangeAttributes::internal_default_instance());
Girish Gowdra997432d2022-03-10 15:59:33 -08008867 ::dmi::_ModifiableComponent_default_instance_.trx_attr_ = const_cast< ::dmi::TransceiverComponentChangeAttributes*>(
8868 ::dmi::TransceiverComponentChangeAttributes::internal_default_instance());
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308869}
8870class ModifiableComponent::HasBitSetters {
8871 public:
8872 static const ::dmi::Component& parent(const ModifiableComponent* msg);
8873 static const ::dmi::Uri& uri(const ModifiableComponent* msg);
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008874 static const ::dmi::PortComponentChangeAttributes& port_attr(const ModifiableComponent* msg);
Girish Gowdra997432d2022-03-10 15:59:33 -08008875 static const ::dmi::TransceiverComponentChangeAttributes& trx_attr(const ModifiableComponent* msg);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308876};
8877
8878const ::dmi::Component&
8879ModifiableComponent::HasBitSetters::parent(const ModifiableComponent* msg) {
8880 return *msg->parent_;
8881}
8882const ::dmi::Uri&
8883ModifiableComponent::HasBitSetters::uri(const ModifiableComponent* msg) {
8884 return *msg->uri_;
8885}
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008886const ::dmi::PortComponentChangeAttributes&
8887ModifiableComponent::HasBitSetters::port_attr(const ModifiableComponent* msg) {
8888 return *msg->specific_.port_attr_;
8889}
Girish Gowdra997432d2022-03-10 15:59:33 -08008890const ::dmi::TransceiverComponentChangeAttributes&
8891ModifiableComponent::HasBitSetters::trx_attr(const ModifiableComponent* msg) {
8892 return *msg->specific_.trx_attr_;
8893}
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008894void ModifiableComponent::set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr) {
8895 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
8896 clear_specific();
8897 if (port_attr) {
8898 ::google::protobuf::Arena* submessage_arena = nullptr;
8899 if (message_arena != submessage_arena) {
8900 port_attr = ::google::protobuf::internal::GetOwnedMessage(
8901 message_arena, port_attr, submessage_arena);
8902 }
8903 set_has_port_attr();
8904 specific_.port_attr_ = port_attr;
8905 }
8906 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.port_attr)
8907}
Girish Gowdra997432d2022-03-10 15:59:33 -08008908void ModifiableComponent::set_allocated_trx_attr(::dmi::TransceiverComponentChangeAttributes* trx_attr) {
8909 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
8910 clear_specific();
8911 if (trx_attr) {
8912 ::google::protobuf::Arena* submessage_arena = nullptr;
8913 if (message_arena != submessage_arena) {
8914 trx_attr = ::google::protobuf::internal::GetOwnedMessage(
8915 message_arena, trx_attr, submessage_arena);
8916 }
8917 set_has_trx_attr();
8918 specific_.trx_attr_ = trx_attr;
8919 }
8920 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.trx_attr)
8921}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308922#if !defined(_MSC_VER) || _MSC_VER >= 1900
8923const int ModifiableComponent::kNameFieldNumber;
8924const int ModifiableComponent::kClassFieldNumber;
8925const int ModifiableComponent::kParentFieldNumber;
8926const int ModifiableComponent::kParentRelPosFieldNumber;
8927const int ModifiableComponent::kAliasFieldNumber;
8928const int ModifiableComponent::kAssetIdFieldNumber;
8929const int ModifiableComponent::kUriFieldNumber;
8930const int ModifiableComponent::kAdminStateFieldNumber;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008931const int ModifiableComponent::kPortAttrFieldNumber;
Girish Gowdra997432d2022-03-10 15:59:33 -08008932const int ModifiableComponent::kTrxAttrFieldNumber;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308933#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
8934
8935ModifiableComponent::ModifiableComponent()
8936 : ::google::protobuf::Message(), _internal_metadata_(nullptr) {
8937 SharedCtor();
8938 // @@protoc_insertion_point(constructor:dmi.ModifiableComponent)
8939}
8940ModifiableComponent::ModifiableComponent(const ModifiableComponent& from)
8941 : ::google::protobuf::Message(),
8942 _internal_metadata_(nullptr) {
8943 _internal_metadata_.MergeFrom(from._internal_metadata_);
8944 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8945 if (from.name().size() > 0) {
8946 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
8947 }
8948 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8949 if (from.alias().size() > 0) {
8950 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
8951 }
8952 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8953 if (from.asset_id().size() > 0) {
8954 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
8955 }
8956 if (from.has_parent()) {
8957 parent_ = new ::dmi::Component(*from.parent_);
8958 } else {
8959 parent_ = nullptr;
8960 }
8961 if (from.has_uri()) {
8962 uri_ = new ::dmi::Uri(*from.uri_);
8963 } else {
8964 uri_ = nullptr;
8965 }
8966 ::memcpy(&class__, &from.class__,
8967 static_cast<size_t>(reinterpret_cast<char*>(&admin_state_) -
8968 reinterpret_cast<char*>(&class__)) + sizeof(admin_state_));
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008969 clear_has_specific();
8970 switch (from.specific_case()) {
8971 case kPortAttr: {
8972 mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr());
8973 break;
8974 }
Girish Gowdra997432d2022-03-10 15:59:33 -08008975 case kTrxAttr: {
8976 mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr());
8977 break;
8978 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008979 case SPECIFIC_NOT_SET: {
8980 break;
8981 }
8982 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308983 // @@protoc_insertion_point(copy_constructor:dmi.ModifiableComponent)
8984}
8985
8986void ModifiableComponent::SharedCtor() {
8987 ::google::protobuf::internal::InitSCC(
8988 &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
8989 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8990 alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8991 asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
8992 ::memset(&parent_, 0, static_cast<size_t>(
8993 reinterpret_cast<char*>(&admin_state_) -
8994 reinterpret_cast<char*>(&parent_)) + sizeof(admin_state_));
amit.ghosh98c5a6c2021-08-12 16:19:46 +02008995 clear_has_specific();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05308996}
8997
8998ModifiableComponent::~ModifiableComponent() {
8999 // @@protoc_insertion_point(destructor:dmi.ModifiableComponent)
9000 SharedDtor();
9001}
9002
9003void ModifiableComponent::SharedDtor() {
9004 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9005 alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9006 asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9007 if (this != internal_default_instance()) delete parent_;
9008 if (this != internal_default_instance()) delete uri_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009009 if (has_specific()) {
9010 clear_specific();
9011 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309012}
9013
9014void ModifiableComponent::SetCachedSize(int size) const {
9015 _cached_size_.Set(size);
9016}
9017const ModifiableComponent& ModifiableComponent::default_instance() {
9018 ::google::protobuf::internal::InitSCC(&::scc_info_ModifiableComponent_dmi_2fhw_2eproto.base);
9019 return *internal_default_instance();
9020}
9021
9022
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009023void ModifiableComponent::clear_specific() {
9024// @@protoc_insertion_point(one_of_clear_start:dmi.ModifiableComponent)
9025 switch (specific_case()) {
9026 case kPortAttr: {
9027 delete specific_.port_attr_;
9028 break;
9029 }
Girish Gowdra997432d2022-03-10 15:59:33 -08009030 case kTrxAttr: {
9031 delete specific_.trx_attr_;
9032 break;
9033 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009034 case SPECIFIC_NOT_SET: {
9035 break;
9036 }
9037 }
9038 _oneof_case_[0] = SPECIFIC_NOT_SET;
9039}
9040
9041
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309042void ModifiableComponent::Clear() {
9043// @@protoc_insertion_point(message_clear_start:dmi.ModifiableComponent)
9044 ::google::protobuf::uint32 cached_has_bits = 0;
9045 // Prevent compiler warnings about cached_has_bits being unused
9046 (void) cached_has_bits;
9047
9048 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9049 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9050 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
9051 if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) {
9052 delete parent_;
9053 }
9054 parent_ = nullptr;
9055 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
9056 delete uri_;
9057 }
9058 uri_ = nullptr;
9059 ::memset(&class__, 0, static_cast<size_t>(
9060 reinterpret_cast<char*>(&admin_state_) -
9061 reinterpret_cast<char*>(&class__)) + sizeof(admin_state_));
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009062 clear_specific();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309063 _internal_metadata_.Clear();
9064}
9065
9066#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9067const char* ModifiableComponent::_InternalParse(const char* begin, const char* end, void* object,
9068 ::google::protobuf::internal::ParseContext* ctx) {
9069 auto msg = static_cast<ModifiableComponent*>(object);
9070 ::google::protobuf::int32 size; (void)size;
9071 int depth; (void)depth;
9072 ::google::protobuf::uint32 tag;
9073 ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end;
9074 auto ptr = begin;
9075 while (ptr < end) {
9076 ptr = ::google::protobuf::io::Parse32(ptr, &tag);
9077 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9078 switch (tag >> 3) {
9079 // string name = 1;
9080 case 1: {
9081 if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual;
9082 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9083 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9084 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.name");
9085 object = msg->mutable_name();
9086 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9087 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9088 goto string_till_end;
9089 }
9090 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9091 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9092 ptr += size;
9093 break;
9094 }
9095 // .dmi.ComponentType class = 2;
9096 case 2: {
9097 if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual;
9098 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9099 msg->set_class_(static_cast<::dmi::ComponentType>(val));
9100 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9101 break;
9102 }
9103 // .dmi.Component parent = 3;
9104 case 3: {
9105 if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual;
9106 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9107 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9108 parser_till_end = ::dmi::Component::_InternalParse;
9109 object = msg->mutable_parent();
9110 if (size > end - ptr) goto len_delim_till_end;
9111 ptr += size;
9112 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9113 {parser_till_end, object}, ptr - size, ptr));
9114 break;
9115 }
9116 // int32 parent_rel_pos = 4;
9117 case 4: {
9118 if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual;
9119 msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr));
9120 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9121 break;
9122 }
9123 // string alias = 5;
9124 case 5: {
9125 if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual;
9126 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9127 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9128 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.alias");
9129 object = msg->mutable_alias();
9130 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9131 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9132 goto string_till_end;
9133 }
9134 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9135 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9136 ptr += size;
9137 break;
9138 }
9139 // string asset_id = 6;
9140 case 6: {
9141 if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual;
9142 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9143 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9144 ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.asset_id");
9145 object = msg->mutable_asset_id();
9146 if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) {
9147 parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8;
9148 goto string_till_end;
9149 }
9150 GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx));
9151 ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx);
9152 ptr += size;
9153 break;
9154 }
9155 // .dmi.Uri uri = 7;
9156 case 7: {
9157 if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual;
9158 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9159 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9160 parser_till_end = ::dmi::Uri::_InternalParse;
9161 object = msg->mutable_uri();
9162 if (size > end - ptr) goto len_delim_till_end;
9163 ptr += size;
9164 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9165 {parser_till_end, object}, ptr - size, ptr));
9166 break;
9167 }
9168 // .dmi.ComponentAdminState admin_state = 8;
9169 case 8: {
9170 if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual;
9171 ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr);
9172 msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val));
9173 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9174 break;
9175 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009176 // .dmi.PortComponentChangeAttributes port_attr = 50;
9177 case 50: {
9178 if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual;
9179 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9180 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9181 parser_till_end = ::dmi::PortComponentChangeAttributes::_InternalParse;
9182 object = msg->mutable_port_attr();
9183 if (size > end - ptr) goto len_delim_till_end;
9184 ptr += size;
9185 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9186 {parser_till_end, object}, ptr - size, ptr));
9187 break;
9188 }
Girish Gowdra997432d2022-03-10 15:59:33 -08009189 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
9190 case 51: {
9191 if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual;
9192 ptr = ::google::protobuf::io::ReadSize(ptr, &size);
9193 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr);
9194 parser_till_end = ::dmi::TransceiverComponentChangeAttributes::_InternalParse;
9195 object = msg->mutable_trx_attr();
9196 if (size > end - ptr) goto len_delim_till_end;
9197 ptr += size;
9198 GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange(
9199 {parser_till_end, object}, ptr - size, ptr));
9200 break;
9201 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309202 default: {
9203 handle_unusual:
9204 if ((tag & 7) == 4 || tag == 0) {
9205 ctx->EndGroup(tag);
9206 return ptr;
9207 }
9208 auto res = UnknownFieldParse(tag, {_InternalParse, msg},
9209 ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx);
9210 ptr = res.first;
9211 GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr);
9212 if (res.second) return ptr;
9213 }
9214 } // switch
9215 } // while
9216 return ptr;
9217string_till_end:
9218 static_cast<::std::string*>(object)->clear();
9219 static_cast<::std::string*>(object)->reserve(size);
9220 goto len_delim_till_end;
9221len_delim_till_end:
9222 return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg},
9223 {parser_till_end, object}, size);
9224}
9225#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9226bool ModifiableComponent::MergePartialFromCodedStream(
9227 ::google::protobuf::io::CodedInputStream* input) {
9228#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
9229 ::google::protobuf::uint32 tag;
9230 // @@protoc_insertion_point(parse_start:dmi.ModifiableComponent)
9231 for (;;) {
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009232 ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309233 tag = p.first;
9234 if (!p.second) goto handle_unusual;
9235 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
9236 // string name = 1;
9237 case 1: {
9238 if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) {
9239 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9240 input, this->mutable_name()));
9241 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9242 this->name().data(), static_cast<int>(this->name().length()),
9243 ::google::protobuf::internal::WireFormatLite::PARSE,
9244 "dmi.ModifiableComponent.name"));
9245 } else {
9246 goto handle_unusual;
9247 }
9248 break;
9249 }
9250
9251 // .dmi.ComponentType class = 2;
9252 case 2: {
9253 if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) {
9254 int value = 0;
9255 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9256 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9257 input, &value)));
9258 set_class_(static_cast< ::dmi::ComponentType >(value));
9259 } else {
9260 goto handle_unusual;
9261 }
9262 break;
9263 }
9264
9265 // .dmi.Component parent = 3;
9266 case 3: {
9267 if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) {
9268 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9269 input, mutable_parent()));
9270 } else {
9271 goto handle_unusual;
9272 }
9273 break;
9274 }
9275
9276 // int32 parent_rel_pos = 4;
9277 case 4: {
9278 if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) {
9279
9280 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9281 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
9282 input, &parent_rel_pos_)));
9283 } else {
9284 goto handle_unusual;
9285 }
9286 break;
9287 }
9288
9289 // string alias = 5;
9290 case 5: {
9291 if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) {
9292 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9293 input, this->mutable_alias()));
9294 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9295 this->alias().data(), static_cast<int>(this->alias().length()),
9296 ::google::protobuf::internal::WireFormatLite::PARSE,
9297 "dmi.ModifiableComponent.alias"));
9298 } else {
9299 goto handle_unusual;
9300 }
9301 break;
9302 }
9303
9304 // string asset_id = 6;
9305 case 6: {
9306 if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) {
9307 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
9308 input, this->mutable_asset_id()));
9309 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9310 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
9311 ::google::protobuf::internal::WireFormatLite::PARSE,
9312 "dmi.ModifiableComponent.asset_id"));
9313 } else {
9314 goto handle_unusual;
9315 }
9316 break;
9317 }
9318
9319 // .dmi.Uri uri = 7;
9320 case 7: {
9321 if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) {
9322 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9323 input, mutable_uri()));
9324 } else {
9325 goto handle_unusual;
9326 }
9327 break;
9328 }
9329
9330 // .dmi.ComponentAdminState admin_state = 8;
9331 case 8: {
9332 if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) {
9333 int value = 0;
9334 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
9335 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
9336 input, &value)));
9337 set_admin_state(static_cast< ::dmi::ComponentAdminState >(value));
9338 } else {
9339 goto handle_unusual;
9340 }
9341 break;
9342 }
9343
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009344 // .dmi.PortComponentChangeAttributes port_attr = 50;
9345 case 50: {
9346 if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) {
9347 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9348 input, mutable_port_attr()));
9349 } else {
9350 goto handle_unusual;
9351 }
9352 break;
9353 }
9354
Girish Gowdra997432d2022-03-10 15:59:33 -08009355 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
9356 case 51: {
9357 if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) {
9358 DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
9359 input, mutable_trx_attr()));
9360 } else {
9361 goto handle_unusual;
9362 }
9363 break;
9364 }
9365
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309366 default: {
9367 handle_unusual:
9368 if (tag == 0) {
9369 goto success;
9370 }
9371 DO_(::google::protobuf::internal::WireFormat::SkipField(
9372 input, tag, _internal_metadata_.mutable_unknown_fields()));
9373 break;
9374 }
9375 }
9376 }
9377success:
9378 // @@protoc_insertion_point(parse_success:dmi.ModifiableComponent)
9379 return true;
9380failure:
9381 // @@protoc_insertion_point(parse_failure:dmi.ModifiableComponent)
9382 return false;
9383#undef DO_
9384}
9385#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
9386
9387void ModifiableComponent::SerializeWithCachedSizes(
9388 ::google::protobuf::io::CodedOutputStream* output) const {
9389 // @@protoc_insertion_point(serialize_start:dmi.ModifiableComponent)
9390 ::google::protobuf::uint32 cached_has_bits = 0;
9391 (void) cached_has_bits;
9392
9393 // string name = 1;
9394 if (this->name().size() > 0) {
9395 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9396 this->name().data(), static_cast<int>(this->name().length()),
9397 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9398 "dmi.ModifiableComponent.name");
9399 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9400 1, this->name(), output);
9401 }
9402
9403 // .dmi.ComponentType class = 2;
9404 if (this->class_() != 0) {
9405 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9406 2, this->class_(), output);
9407 }
9408
9409 // .dmi.Component parent = 3;
9410 if (this->has_parent()) {
9411 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9412 3, HasBitSetters::parent(this), output);
9413 }
9414
9415 // int32 parent_rel_pos = 4;
9416 if (this->parent_rel_pos() != 0) {
9417 ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parent_rel_pos(), output);
9418 }
9419
9420 // string alias = 5;
9421 if (this->alias().size() > 0) {
9422 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9423 this->alias().data(), static_cast<int>(this->alias().length()),
9424 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9425 "dmi.ModifiableComponent.alias");
9426 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9427 5, this->alias(), output);
9428 }
9429
9430 // string asset_id = 6;
9431 if (this->asset_id().size() > 0) {
9432 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9433 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
9434 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9435 "dmi.ModifiableComponent.asset_id");
9436 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
9437 6, this->asset_id(), output);
9438 }
9439
9440 // .dmi.Uri uri = 7;
9441 if (this->has_uri()) {
9442 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9443 7, HasBitSetters::uri(this), output);
9444 }
9445
9446 // .dmi.ComponentAdminState admin_state = 8;
9447 if (this->admin_state() != 0) {
9448 ::google::protobuf::internal::WireFormatLite::WriteEnum(
9449 8, this->admin_state(), output);
9450 }
9451
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009452 // .dmi.PortComponentChangeAttributes port_attr = 50;
9453 if (has_port_attr()) {
9454 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9455 50, HasBitSetters::port_attr(this), output);
9456 }
9457
Girish Gowdra997432d2022-03-10 15:59:33 -08009458 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
9459 if (has_trx_attr()) {
9460 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9461 51, HasBitSetters::trx_attr(this), output);
9462 }
9463
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309464 if (_internal_metadata_.have_unknown_fields()) {
9465 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
9466 _internal_metadata_.unknown_fields(), output);
9467 }
9468 // @@protoc_insertion_point(serialize_end:dmi.ModifiableComponent)
9469}
9470
9471::google::protobuf::uint8* ModifiableComponent::InternalSerializeWithCachedSizesToArray(
9472 ::google::protobuf::uint8* target) const {
9473 // @@protoc_insertion_point(serialize_to_array_start:dmi.ModifiableComponent)
9474 ::google::protobuf::uint32 cached_has_bits = 0;
9475 (void) cached_has_bits;
9476
9477 // string name = 1;
9478 if (this->name().size() > 0) {
9479 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9480 this->name().data(), static_cast<int>(this->name().length()),
9481 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9482 "dmi.ModifiableComponent.name");
9483 target =
9484 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9485 1, this->name(), target);
9486 }
9487
9488 // .dmi.ComponentType class = 2;
9489 if (this->class_() != 0) {
9490 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9491 2, this->class_(), target);
9492 }
9493
9494 // .dmi.Component parent = 3;
9495 if (this->has_parent()) {
9496 target = ::google::protobuf::internal::WireFormatLite::
9497 InternalWriteMessageToArray(
9498 3, HasBitSetters::parent(this), target);
9499 }
9500
9501 // int32 parent_rel_pos = 4;
9502 if (this->parent_rel_pos() != 0) {
9503 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parent_rel_pos(), target);
9504 }
9505
9506 // string alias = 5;
9507 if (this->alias().size() > 0) {
9508 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9509 this->alias().data(), static_cast<int>(this->alias().length()),
9510 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9511 "dmi.ModifiableComponent.alias");
9512 target =
9513 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9514 5, this->alias(), target);
9515 }
9516
9517 // string asset_id = 6;
9518 if (this->asset_id().size() > 0) {
9519 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
9520 this->asset_id().data(), static_cast<int>(this->asset_id().length()),
9521 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
9522 "dmi.ModifiableComponent.asset_id");
9523 target =
9524 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
9525 6, this->asset_id(), target);
9526 }
9527
9528 // .dmi.Uri uri = 7;
9529 if (this->has_uri()) {
9530 target = ::google::protobuf::internal::WireFormatLite::
9531 InternalWriteMessageToArray(
9532 7, HasBitSetters::uri(this), target);
9533 }
9534
9535 // .dmi.ComponentAdminState admin_state = 8;
9536 if (this->admin_state() != 0) {
9537 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
9538 8, this->admin_state(), target);
9539 }
9540
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009541 // .dmi.PortComponentChangeAttributes port_attr = 50;
9542 if (has_port_attr()) {
9543 target = ::google::protobuf::internal::WireFormatLite::
9544 InternalWriteMessageToArray(
9545 50, HasBitSetters::port_attr(this), target);
9546 }
9547
Girish Gowdra997432d2022-03-10 15:59:33 -08009548 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
9549 if (has_trx_attr()) {
9550 target = ::google::protobuf::internal::WireFormatLite::
9551 InternalWriteMessageToArray(
9552 51, HasBitSetters::trx_attr(this), target);
9553 }
9554
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309555 if (_internal_metadata_.have_unknown_fields()) {
9556 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
9557 _internal_metadata_.unknown_fields(), target);
9558 }
9559 // @@protoc_insertion_point(serialize_to_array_end:dmi.ModifiableComponent)
9560 return target;
9561}
9562
9563size_t ModifiableComponent::ByteSizeLong() const {
9564// @@protoc_insertion_point(message_byte_size_start:dmi.ModifiableComponent)
9565 size_t total_size = 0;
9566
9567 if (_internal_metadata_.have_unknown_fields()) {
9568 total_size +=
9569 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
9570 _internal_metadata_.unknown_fields());
9571 }
9572 ::google::protobuf::uint32 cached_has_bits = 0;
9573 // Prevent compiler warnings about cached_has_bits being unused
9574 (void) cached_has_bits;
9575
9576 // string name = 1;
9577 if (this->name().size() > 0) {
9578 total_size += 1 +
9579 ::google::protobuf::internal::WireFormatLite::StringSize(
9580 this->name());
9581 }
9582
9583 // string alias = 5;
9584 if (this->alias().size() > 0) {
9585 total_size += 1 +
9586 ::google::protobuf::internal::WireFormatLite::StringSize(
9587 this->alias());
9588 }
9589
9590 // string asset_id = 6;
9591 if (this->asset_id().size() > 0) {
9592 total_size += 1 +
9593 ::google::protobuf::internal::WireFormatLite::StringSize(
9594 this->asset_id());
9595 }
9596
9597 // .dmi.Component parent = 3;
9598 if (this->has_parent()) {
9599 total_size += 1 +
9600 ::google::protobuf::internal::WireFormatLite::MessageSize(
9601 *parent_);
9602 }
9603
9604 // .dmi.Uri uri = 7;
9605 if (this->has_uri()) {
9606 total_size += 1 +
9607 ::google::protobuf::internal::WireFormatLite::MessageSize(
9608 *uri_);
9609 }
9610
9611 // .dmi.ComponentType class = 2;
9612 if (this->class_() != 0) {
9613 total_size += 1 +
9614 ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_());
9615 }
9616
9617 // int32 parent_rel_pos = 4;
9618 if (this->parent_rel_pos() != 0) {
9619 total_size += 1 +
9620 ::google::protobuf::internal::WireFormatLite::Int32Size(
9621 this->parent_rel_pos());
9622 }
9623
9624 // .dmi.ComponentAdminState admin_state = 8;
9625 if (this->admin_state() != 0) {
9626 total_size += 1 +
9627 ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state());
9628 }
9629
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009630 switch (specific_case()) {
9631 // .dmi.PortComponentChangeAttributes port_attr = 50;
9632 case kPortAttr: {
9633 total_size += 2 +
9634 ::google::protobuf::internal::WireFormatLite::MessageSize(
9635 *specific_.port_attr_);
9636 break;
9637 }
Girish Gowdra997432d2022-03-10 15:59:33 -08009638 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
9639 case kTrxAttr: {
9640 total_size += 2 +
9641 ::google::protobuf::internal::WireFormatLite::MessageSize(
9642 *specific_.trx_attr_);
9643 break;
9644 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009645 case SPECIFIC_NOT_SET: {
9646 break;
9647 }
9648 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309649 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
9650 SetCachedSize(cached_size);
9651 return total_size;
9652}
9653
9654void ModifiableComponent::MergeFrom(const ::google::protobuf::Message& from) {
9655// @@protoc_insertion_point(generalized_merge_from_start:dmi.ModifiableComponent)
9656 GOOGLE_DCHECK_NE(&from, this);
9657 const ModifiableComponent* source =
9658 ::google::protobuf::DynamicCastToGenerated<ModifiableComponent>(
9659 &from);
9660 if (source == nullptr) {
9661 // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ModifiableComponent)
9662 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
9663 } else {
9664 // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ModifiableComponent)
9665 MergeFrom(*source);
9666 }
9667}
9668
9669void ModifiableComponent::MergeFrom(const ModifiableComponent& from) {
9670// @@protoc_insertion_point(class_specific_merge_from_start:dmi.ModifiableComponent)
9671 GOOGLE_DCHECK_NE(&from, this);
9672 _internal_metadata_.MergeFrom(from._internal_metadata_);
9673 ::google::protobuf::uint32 cached_has_bits = 0;
9674 (void) cached_has_bits;
9675
9676 if (from.name().size() > 0) {
9677
9678 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
9679 }
9680 if (from.alias().size() > 0) {
9681
9682 alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_);
9683 }
9684 if (from.asset_id().size() > 0) {
9685
9686 asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_);
9687 }
9688 if (from.has_parent()) {
9689 mutable_parent()->::dmi::Component::MergeFrom(from.parent());
9690 }
9691 if (from.has_uri()) {
9692 mutable_uri()->::dmi::Uri::MergeFrom(from.uri());
9693 }
9694 if (from.class_() != 0) {
9695 set_class_(from.class_());
9696 }
9697 if (from.parent_rel_pos() != 0) {
9698 set_parent_rel_pos(from.parent_rel_pos());
9699 }
9700 if (from.admin_state() != 0) {
9701 set_admin_state(from.admin_state());
9702 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009703 switch (from.specific_case()) {
9704 case kPortAttr: {
9705 mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr());
9706 break;
9707 }
Girish Gowdra997432d2022-03-10 15:59:33 -08009708 case kTrxAttr: {
9709 mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr());
9710 break;
9711 }
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009712 case SPECIFIC_NOT_SET: {
9713 break;
9714 }
9715 }
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309716}
9717
9718void ModifiableComponent::CopyFrom(const ::google::protobuf::Message& from) {
9719// @@protoc_insertion_point(generalized_copy_from_start:dmi.ModifiableComponent)
9720 if (&from == this) return;
9721 Clear();
9722 MergeFrom(from);
9723}
9724
9725void ModifiableComponent::CopyFrom(const ModifiableComponent& from) {
9726// @@protoc_insertion_point(class_specific_copy_from_start:dmi.ModifiableComponent)
9727 if (&from == this) return;
9728 Clear();
9729 MergeFrom(from);
9730}
9731
9732bool ModifiableComponent::IsInitialized() const {
9733 return true;
9734}
9735
9736void ModifiableComponent::Swap(ModifiableComponent* other) {
9737 if (other == this) return;
9738 InternalSwap(other);
9739}
9740void ModifiableComponent::InternalSwap(ModifiableComponent* other) {
9741 using std::swap;
9742 _internal_metadata_.Swap(&other->_internal_metadata_);
9743 name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9744 GetArenaNoVirtual());
9745 alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9746 GetArenaNoVirtual());
9747 asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
9748 GetArenaNoVirtual());
9749 swap(parent_, other->parent_);
9750 swap(uri_, other->uri_);
9751 swap(class__, other->class__);
9752 swap(parent_rel_pos_, other->parent_rel_pos_);
9753 swap(admin_state_, other->admin_state_);
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009754 swap(specific_, other->specific_);
9755 swap(_oneof_case_[0], other->_oneof_case_[0]);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309756}
9757
9758::google::protobuf::Metadata ModifiableComponent::GetMetadata() const {
9759 ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto);
9760 return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages];
9761}
9762
9763
9764// @@protoc_insertion_point(namespace_scope)
9765} // namespace dmi
9766namespace google {
9767namespace protobuf {
9768template<> PROTOBUF_NOINLINE ::dmi::Uuid* Arena::CreateMaybeMessage< ::dmi::Uuid >(Arena* arena) {
9769 return Arena::CreateInternal< ::dmi::Uuid >(arena);
9770}
9771template<> PROTOBUF_NOINLINE ::dmi::HardwareID* Arena::CreateMaybeMessage< ::dmi::HardwareID >(Arena* arena) {
9772 return Arena::CreateInternal< ::dmi::HardwareID >(arena);
9773}
9774template<> PROTOBUF_NOINLINE ::dmi::Uri* Arena::CreateMaybeMessage< ::dmi::Uri >(Arena* arena) {
9775 return Arena::CreateInternal< ::dmi::Uri >(arena);
9776}
9777template<> PROTOBUF_NOINLINE ::dmi::ComponentState* Arena::CreateMaybeMessage< ::dmi::ComponentState >(Arena* arena) {
9778 return Arena::CreateInternal< ::dmi::ComponentState >(arena);
9779}
9780template<> PROTOBUF_NOINLINE ::dmi::ComponentSensorData* Arena::CreateMaybeMessage< ::dmi::ComponentSensorData >(Arena* arena) {
9781 return Arena::CreateInternal< ::dmi::ComponentSensorData >(arena);
9782}
9783template<> PROTOBUF_NOINLINE ::dmi::PortComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentAttributes >(Arena* arena) {
9784 return Arena::CreateInternal< ::dmi::PortComponentAttributes >(arena);
9785}
Abhilash laxmeshward4a9fa32023-09-15 16:10:22 +05309786template<> PROTOBUF_NOINLINE ::dmi::PonDistance* Arena::CreateMaybeMessage< ::dmi::PonDistance >(Arena* arena) {
9787 return Arena::CreateInternal< ::dmi::PonDistance >(arena);
9788}
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009789template<> PROTOBUF_NOINLINE ::dmi::PortComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(Arena* arena) {
9790 return Arena::CreateInternal< ::dmi::PortComponentChangeAttributes >(arena);
9791}
Girish Gowdra997432d2022-03-10 15:59:33 -08009792template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentChangeAttributes >(Arena* arena) {
9793 return Arena::CreateInternal< ::dmi::TransceiverComponentChangeAttributes >(arena);
9794}
amit.ghosh98c5a6c2021-08-12 16:19:46 +02009795template<> PROTOBUF_NOINLINE ::dmi::PonIdConfig* Arena::CreateMaybeMessage< ::dmi::PonIdConfig >(Arena* arena) {
9796 return Arena::CreateInternal< ::dmi::PonIdConfig >(arena);
9797}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05309798template<> PROTOBUF_NOINLINE ::dmi::ContainerComponentAttributes* Arena::CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(Arena* arena) {
9799 return Arena::CreateInternal< ::dmi::ContainerComponentAttributes >(arena);
9800}
9801template<> PROTOBUF_NOINLINE ::dmi::PsuComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PsuComponentAttributes >(Arena* arena) {
9802 return Arena::CreateInternal< ::dmi::PsuComponentAttributes >(arena);
9803}
9804template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentsAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(Arena* arena) {
9805 return Arena::CreateInternal< ::dmi::TransceiverComponentsAttributes >(arena);
9806}
9807template<> PROTOBUF_NOINLINE ::dmi::Component* Arena::CreateMaybeMessage< ::dmi::Component >(Arena* arena) {
9808 return Arena::CreateInternal< ::dmi::Component >(arena);
9809}
9810template<> PROTOBUF_NOINLINE ::dmi::Hardware* Arena::CreateMaybeMessage< ::dmi::Hardware >(Arena* arena) {
9811 return Arena::CreateInternal< ::dmi::Hardware >(arena);
9812}
9813template<> PROTOBUF_NOINLINE ::dmi::ModifiableComponent* Arena::CreateMaybeMessage< ::dmi::ModifiableComponent >(Arena* arena) {
9814 return Arena::CreateInternal< ::dmi::ModifiableComponent >(arena);
9815}
9816} // namespace protobuf
9817} // namespace google
9818
9819// @@protoc_insertion_point(global_scope)
9820#include <google/protobuf/port_undef.inc>