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