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