blob: b1b31270ddd6d798ede28e94d4fb5bd534882fe2 [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#ifndef PROTOBUF_INCLUDED_dmi_2fhw_2eproto
5#define PROTOBUF_INCLUDED_dmi_2fhw_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3007000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata.h>
30#include <google/protobuf/message.h>
31#include <google/protobuf/repeated_field.h> // IWYU pragma: export
32#include <google/protobuf/extension_set.h> // IWYU pragma: export
33#include <google/protobuf/generated_enum_reflection.h>
34#include <google/protobuf/unknown_field_set.h>
35#include <google/protobuf/timestamp.pb.h>
36// @@protoc_insertion_point(includes)
37#include <google/protobuf/port_def.inc>
38#define PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto
39
40// Internal implementation detail -- do not use these members.
41struct TableStruct_dmi_2fhw_2eproto {
42 static const ::google::protobuf::internal::ParseTableField entries[]
43 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
44 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
45 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
amit.ghosh98c5a6c2021-08-12 16:19:46 +020046 static const ::google::protobuf::internal::ParseTable schema[14]
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053047 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
48 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
49 static const ::google::protobuf::internal::SerializationTable serialization_table[];
50 static const ::google::protobuf::uint32 offsets[];
51};
52void AddDescriptors_dmi_2fhw_2eproto();
53namespace dmi {
54class Component;
55class ComponentDefaultTypeInternal;
56extern ComponentDefaultTypeInternal _Component_default_instance_;
57class ComponentSensorData;
58class ComponentSensorDataDefaultTypeInternal;
59extern ComponentSensorDataDefaultTypeInternal _ComponentSensorData_default_instance_;
60class ComponentState;
61class ComponentStateDefaultTypeInternal;
62extern ComponentStateDefaultTypeInternal _ComponentState_default_instance_;
63class ContainerComponentAttributes;
64class ContainerComponentAttributesDefaultTypeInternal;
65extern ContainerComponentAttributesDefaultTypeInternal _ContainerComponentAttributes_default_instance_;
66class Hardware;
67class HardwareDefaultTypeInternal;
68extern HardwareDefaultTypeInternal _Hardware_default_instance_;
69class HardwareID;
70class HardwareIDDefaultTypeInternal;
71extern HardwareIDDefaultTypeInternal _HardwareID_default_instance_;
72class ModifiableComponent;
73class ModifiableComponentDefaultTypeInternal;
74extern ModifiableComponentDefaultTypeInternal _ModifiableComponent_default_instance_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +020075class PonIdConfig;
76class PonIdConfigDefaultTypeInternal;
77extern PonIdConfigDefaultTypeInternal _PonIdConfig_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053078class PortComponentAttributes;
79class PortComponentAttributesDefaultTypeInternal;
80extern PortComponentAttributesDefaultTypeInternal _PortComponentAttributes_default_instance_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +020081class PortComponentChangeAttributes;
82class PortComponentChangeAttributesDefaultTypeInternal;
83extern PortComponentChangeAttributesDefaultTypeInternal _PortComponentChangeAttributes_default_instance_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +053084class PsuComponentAttributes;
85class PsuComponentAttributesDefaultTypeInternal;
86extern PsuComponentAttributesDefaultTypeInternal _PsuComponentAttributes_default_instance_;
87class TransceiverComponentsAttributes;
88class TransceiverComponentsAttributesDefaultTypeInternal;
89extern TransceiverComponentsAttributesDefaultTypeInternal _TransceiverComponentsAttributes_default_instance_;
90class Uri;
91class UriDefaultTypeInternal;
92extern UriDefaultTypeInternal _Uri_default_instance_;
93class Uuid;
94class UuidDefaultTypeInternal;
95extern UuidDefaultTypeInternal _Uuid_default_instance_;
96} // namespace dmi
97namespace google {
98namespace protobuf {
99template<> ::dmi::Component* Arena::CreateMaybeMessage<::dmi::Component>(Arena*);
100template<> ::dmi::ComponentSensorData* Arena::CreateMaybeMessage<::dmi::ComponentSensorData>(Arena*);
101template<> ::dmi::ComponentState* Arena::CreateMaybeMessage<::dmi::ComponentState>(Arena*);
102template<> ::dmi::ContainerComponentAttributes* Arena::CreateMaybeMessage<::dmi::ContainerComponentAttributes>(Arena*);
103template<> ::dmi::Hardware* Arena::CreateMaybeMessage<::dmi::Hardware>(Arena*);
104template<> ::dmi::HardwareID* Arena::CreateMaybeMessage<::dmi::HardwareID>(Arena*);
105template<> ::dmi::ModifiableComponent* Arena::CreateMaybeMessage<::dmi::ModifiableComponent>(Arena*);
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200106template<> ::dmi::PonIdConfig* Arena::CreateMaybeMessage<::dmi::PonIdConfig>(Arena*);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530107template<> ::dmi::PortComponentAttributes* Arena::CreateMaybeMessage<::dmi::PortComponentAttributes>(Arena*);
amit.ghosh98c5a6c2021-08-12 16:19:46 +0200108template<> ::dmi::PortComponentChangeAttributes* Arena::CreateMaybeMessage<::dmi::PortComponentChangeAttributes>(Arena*);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +0530109template<> ::dmi::PsuComponentAttributes* Arena::CreateMaybeMessage<::dmi::PsuComponentAttributes>(Arena*);
110template<> ::dmi::TransceiverComponentsAttributes* Arena::CreateMaybeMessage<::dmi::TransceiverComponentsAttributes>(Arena*);
111template<> ::dmi::Uri* Arena::CreateMaybeMessage<::dmi::Uri>(Arena*);
112template<> ::dmi::Uuid* Arena::CreateMaybeMessage<::dmi::Uuid>(Arena*);
113} // namespace protobuf
114} // namespace google
115namespace dmi {
116
117enum PortComponentAttributes_ConnectorType {
118 PortComponentAttributes_ConnectorType_CONNECTOR_TYPE_UNDEFINED = 0,
119 PortComponentAttributes_ConnectorType_RJ45 = 1,
120 PortComponentAttributes_ConnectorType_FIBER_LC = 2,
121 PortComponentAttributes_ConnectorType_FIBER_SC_PC = 3,
122 PortComponentAttributes_ConnectorType_FIBER_MPO = 4,
123 PortComponentAttributes_ConnectorType_RS232 = 5,
124 PortComponentAttributes_ConnectorType_PortComponentAttributes_ConnectorType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
125 PortComponentAttributes_ConnectorType_PortComponentAttributes_ConnectorType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
126};
127bool PortComponentAttributes_ConnectorType_IsValid(int value);
128const PortComponentAttributes_ConnectorType PortComponentAttributes_ConnectorType_ConnectorType_MIN = PortComponentAttributes_ConnectorType_CONNECTOR_TYPE_UNDEFINED;
129const PortComponentAttributes_ConnectorType PortComponentAttributes_ConnectorType_ConnectorType_MAX = PortComponentAttributes_ConnectorType_RS232;
130const int PortComponentAttributes_ConnectorType_ConnectorType_ARRAYSIZE = PortComponentAttributes_ConnectorType_ConnectorType_MAX + 1;
131
132const ::google::protobuf::EnumDescriptor* PortComponentAttributes_ConnectorType_descriptor();
133inline const ::std::string& PortComponentAttributes_ConnectorType_Name(PortComponentAttributes_ConnectorType value) {
134 return ::google::protobuf::internal::NameOfEnum(
135 PortComponentAttributes_ConnectorType_descriptor(), value);
136}
137inline bool PortComponentAttributes_ConnectorType_Parse(
138 const ::std::string& name, PortComponentAttributes_ConnectorType* value) {
139 return ::google::protobuf::internal::ParseNamedEnum<PortComponentAttributes_ConnectorType>(
140 PortComponentAttributes_ConnectorType_descriptor(), name, value);
141}
142enum PortComponentAttributes_Speed {
143 PortComponentAttributes_Speed_SPEED_UNDEFINED = 0,
144 PortComponentAttributes_Speed_DYNAMIC = 1,
145 PortComponentAttributes_Speed_GIGABIT_1 = 2,
146 PortComponentAttributes_Speed_GIGABIT_10 = 3,
147 PortComponentAttributes_Speed_GIGABIT_25 = 4,
148 PortComponentAttributes_Speed_GIGABIT_40 = 5,
149 PortComponentAttributes_Speed_GIGABIT_100 = 6,
150 PortComponentAttributes_Speed_GIGABIT_400 = 7,
151 PortComponentAttributes_Speed_MEGABIT_2500 = 8,
152 PortComponentAttributes_Speed_MEGABIT_1250 = 9,
153 PortComponentAttributes_Speed_PortComponentAttributes_Speed_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
154 PortComponentAttributes_Speed_PortComponentAttributes_Speed_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
155};
156bool PortComponentAttributes_Speed_IsValid(int value);
157const PortComponentAttributes_Speed PortComponentAttributes_Speed_Speed_MIN = PortComponentAttributes_Speed_SPEED_UNDEFINED;
158const PortComponentAttributes_Speed PortComponentAttributes_Speed_Speed_MAX = PortComponentAttributes_Speed_MEGABIT_1250;
159const int PortComponentAttributes_Speed_Speed_ARRAYSIZE = PortComponentAttributes_Speed_Speed_MAX + 1;
160
161const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Speed_descriptor();
162inline const ::std::string& PortComponentAttributes_Speed_Name(PortComponentAttributes_Speed value) {
163 return ::google::protobuf::internal::NameOfEnum(
164 PortComponentAttributes_Speed_descriptor(), value);
165}
166inline bool PortComponentAttributes_Speed_Parse(
167 const ::std::string& name, PortComponentAttributes_Speed* value) {
168 return ::google::protobuf::internal::ParseNamedEnum<PortComponentAttributes_Speed>(
169 PortComponentAttributes_Speed_descriptor(), name, value);
170}
171enum PortComponentAttributes_Protocol {
172 PortComponentAttributes_Protocol_PROTOCOL_UNDEFINED = 0,
173 PortComponentAttributes_Protocol_ETHERNET = 1,
174 PortComponentAttributes_Protocol_GPON = 2,
175 PortComponentAttributes_Protocol_XGPON = 3,
176 PortComponentAttributes_Protocol_XGSPON = 4,
177 PortComponentAttributes_Protocol_GFAST = 5,
178 PortComponentAttributes_Protocol_SERIAL = 6,
179 PortComponentAttributes_Protocol_EPON = 7,
180 PortComponentAttributes_Protocol_BITS = 8,
181 PortComponentAttributes_Protocol_PortComponentAttributes_Protocol_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
182 PortComponentAttributes_Protocol_PortComponentAttributes_Protocol_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
183};
184bool PortComponentAttributes_Protocol_IsValid(int value);
185const PortComponentAttributes_Protocol PortComponentAttributes_Protocol_Protocol_MIN = PortComponentAttributes_Protocol_PROTOCOL_UNDEFINED;
186const PortComponentAttributes_Protocol PortComponentAttributes_Protocol_Protocol_MAX = PortComponentAttributes_Protocol_BITS;
187const int PortComponentAttributes_Protocol_Protocol_ARRAYSIZE = PortComponentAttributes_Protocol_Protocol_MAX + 1;
188
189const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Protocol_descriptor();
190inline const ::std::string& PortComponentAttributes_Protocol_Name(PortComponentAttributes_Protocol value) {
191 return ::google::protobuf::internal::NameOfEnum(
192 PortComponentAttributes_Protocol_descriptor(), value);
193}
194inline bool PortComponentAttributes_Protocol_Parse(
195 const ::std::string& name, PortComponentAttributes_Protocol* value) {
196 return ::google::protobuf::internal::ParseNamedEnum<PortComponentAttributes_Protocol>(
197 PortComponentAttributes_Protocol_descriptor(), name, value);
198}
199enum PsuComponentAttributes_SupportedVoltage {
200 PsuComponentAttributes_SupportedVoltage_SUPPORTED_VOLTAGE_UNDEFINED = 0,
201 PsuComponentAttributes_SupportedVoltage_V48 = 1,
202 PsuComponentAttributes_SupportedVoltage_V230 = 2,
203 PsuComponentAttributes_SupportedVoltage_V115 = 3,
204 PsuComponentAttributes_SupportedVoltage_PsuComponentAttributes_SupportedVoltage_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
205 PsuComponentAttributes_SupportedVoltage_PsuComponentAttributes_SupportedVoltage_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
206};
207bool PsuComponentAttributes_SupportedVoltage_IsValid(int value);
208const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MIN = PsuComponentAttributes_SupportedVoltage_SUPPORTED_VOLTAGE_UNDEFINED;
209const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MAX = PsuComponentAttributes_SupportedVoltage_V115;
210const int PsuComponentAttributes_SupportedVoltage_SupportedVoltage_ARRAYSIZE = PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MAX + 1;
211
212const ::google::protobuf::EnumDescriptor* PsuComponentAttributes_SupportedVoltage_descriptor();
213inline const ::std::string& PsuComponentAttributes_SupportedVoltage_Name(PsuComponentAttributes_SupportedVoltage value) {
214 return ::google::protobuf::internal::NameOfEnum(
215 PsuComponentAttributes_SupportedVoltage_descriptor(), value);
216}
217inline bool PsuComponentAttributes_SupportedVoltage_Parse(
218 const ::std::string& name, PsuComponentAttributes_SupportedVoltage* value) {
219 return ::google::protobuf::internal::ParseNamedEnum<PsuComponentAttributes_SupportedVoltage>(
220 PsuComponentAttributes_SupportedVoltage_descriptor(), name, value);
221}
222enum TransceiverComponentsAttributes_FormFactor {
223 TransceiverComponentsAttributes_FormFactor_FORM_FACTOR_UNKNOWN = 0,
224 TransceiverComponentsAttributes_FormFactor_QSFP = 1,
225 TransceiverComponentsAttributes_FormFactor_QSFP_PLUS = 2,
226 TransceiverComponentsAttributes_FormFactor_QSFP28 = 3,
227 TransceiverComponentsAttributes_FormFactor_SFP = 4,
228 TransceiverComponentsAttributes_FormFactor_SFP_PLUS = 5,
229 TransceiverComponentsAttributes_FormFactor_XFP = 6,
230 TransceiverComponentsAttributes_FormFactor_CFP4 = 7,
231 TransceiverComponentsAttributes_FormFactor_CFP2 = 8,
232 TransceiverComponentsAttributes_FormFactor_CPAK = 9,
233 TransceiverComponentsAttributes_FormFactor_X2 = 10,
234 TransceiverComponentsAttributes_FormFactor_OTHER = 11,
235 TransceiverComponentsAttributes_FormFactor_CFP = 12,
236 TransceiverComponentsAttributes_FormFactor_CFP2_ACO = 13,
237 TransceiverComponentsAttributes_FormFactor_CFP2_DCO = 14,
238 TransceiverComponentsAttributes_FormFactor_TransceiverComponentsAttributes_FormFactor_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
239 TransceiverComponentsAttributes_FormFactor_TransceiverComponentsAttributes_FormFactor_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
240};
241bool TransceiverComponentsAttributes_FormFactor_IsValid(int value);
242const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes_FormFactor_FormFactor_MIN = TransceiverComponentsAttributes_FormFactor_FORM_FACTOR_UNKNOWN;
243const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes_FormFactor_FormFactor_MAX = TransceiverComponentsAttributes_FormFactor_CFP2_DCO;
244const int TransceiverComponentsAttributes_FormFactor_FormFactor_ARRAYSIZE = TransceiverComponentsAttributes_FormFactor_FormFactor_MAX + 1;
245
246const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_FormFactor_descriptor();
247inline const ::std::string& TransceiverComponentsAttributes_FormFactor_Name(TransceiverComponentsAttributes_FormFactor value) {
248 return ::google::protobuf::internal::NameOfEnum(
249 TransceiverComponentsAttributes_FormFactor_descriptor(), value);
250}
251inline bool TransceiverComponentsAttributes_FormFactor_Parse(
252 const ::std::string& name, TransceiverComponentsAttributes_FormFactor* value) {
253 return ::google::protobuf::internal::ParseNamedEnum<TransceiverComponentsAttributes_FormFactor>(
254 TransceiverComponentsAttributes_FormFactor_descriptor(), name, value);
255}
256enum TransceiverComponentsAttributes_Type {
257 TransceiverComponentsAttributes_Type_TYPE_UNKNOWN = 0,
258 TransceiverComponentsAttributes_Type_ETHERNET = 1,
259 TransceiverComponentsAttributes_Type_GPON = 2,
260 TransceiverComponentsAttributes_Type_XGPON = 3,
261 TransceiverComponentsAttributes_Type_XGSPON = 4,
262 TransceiverComponentsAttributes_Type_CPON = 5,
263 TransceiverComponentsAttributes_Type_NG_PON2 = 6,
264 TransceiverComponentsAttributes_Type_EPON = 7,
265 TransceiverComponentsAttributes_Type_TransceiverComponentsAttributes_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
266 TransceiverComponentsAttributes_Type_TransceiverComponentsAttributes_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
267};
268bool TransceiverComponentsAttributes_Type_IsValid(int value);
269const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes_Type_Type_MIN = TransceiverComponentsAttributes_Type_TYPE_UNKNOWN;
270const TransceiverComponentsAttributes_Type TransceiverComponentsAttributes_Type_Type_MAX = TransceiverComponentsAttributes_Type_EPON;
271const int TransceiverComponentsAttributes_Type_Type_ARRAYSIZE = TransceiverComponentsAttributes_Type_Type_MAX + 1;
272
273const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_Type_descriptor();
274inline const ::std::string& TransceiverComponentsAttributes_Type_Name(TransceiverComponentsAttributes_Type value) {
275 return ::google::protobuf::internal::NameOfEnum(
276 TransceiverComponentsAttributes_Type_descriptor(), value);
277}
278inline bool TransceiverComponentsAttributes_Type_Parse(
279 const ::std::string& name, TransceiverComponentsAttributes_Type* value) {
280 return ::google::protobuf::internal::ParseNamedEnum<TransceiverComponentsAttributes_Type>(
281 TransceiverComponentsAttributes_Type_descriptor(), name, value);
282}
283enum ComponentType {
284 COMPONENT_TYPE_UNDEFINED = 0,
285 COMPONENT_TYPE_UNKNOWN = 1,
286 COMPONENT_TYPE_CHASSIS = 2,
287 COMPONENT_TYPE_BACKPLANE = 3,
288 COMPONENT_TYPE_CONTAINER = 4,
289 COMPONENT_TYPE_POWER_SUPPLY = 5,
290 COMPONENT_TYPE_FAN = 6,
291 COMPONENT_TYPE_SENSOR = 7,
292 COMPONENT_TYPE_MODULE = 8,
293 COMPONENT_TYPE_PORT = 9,
294 COMPONENT_TYPE_CPU = 10,
295 COMPONENT_TYPE_BATTERY = 11,
296 COMPONENT_TYPE_STORAGE = 12,
297 COMPONENT_TYPE_MEMORY = 13,
298 COMPONENT_TYPE_TRANSCEIVER = 14,
299 ComponentType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
300 ComponentType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
301};
302bool ComponentType_IsValid(int value);
303const ComponentType ComponentType_MIN = COMPONENT_TYPE_UNDEFINED;
304const ComponentType ComponentType_MAX = COMPONENT_TYPE_TRANSCEIVER;
305const int ComponentType_ARRAYSIZE = ComponentType_MAX + 1;
306
307const ::google::protobuf::EnumDescriptor* ComponentType_descriptor();
308inline const ::std::string& ComponentType_Name(ComponentType value) {
309 return ::google::protobuf::internal::NameOfEnum(
310 ComponentType_descriptor(), value);
311}
312inline bool ComponentType_Parse(
313 const ::std::string& name, ComponentType* value) {
314 return ::google::protobuf::internal::ParseNamedEnum<ComponentType>(
315 ComponentType_descriptor(), name, value);
316}
317enum ComponentAdminState {
318 COMP_ADMIN_STATE_UNDEFINED = 0,
319 COMP_ADMIN_STATE_UNKNOWN = 1,
320 COMP_ADMIN_STATE_LOCKED = 2,
321 COMP_ADMIN_STATE_SHUTTING_DOWN = 3,
322 COMP_ADMIN_STATE_UNLOCKED = 4,
323 ComponentAdminState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
324 ComponentAdminState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
325};
326bool ComponentAdminState_IsValid(int value);
327const ComponentAdminState ComponentAdminState_MIN = COMP_ADMIN_STATE_UNDEFINED;
328const ComponentAdminState ComponentAdminState_MAX = COMP_ADMIN_STATE_UNLOCKED;
329const int ComponentAdminState_ARRAYSIZE = ComponentAdminState_MAX + 1;
330
331const ::google::protobuf::EnumDescriptor* ComponentAdminState_descriptor();
332inline const ::std::string& ComponentAdminState_Name(ComponentAdminState value) {
333 return ::google::protobuf::internal::NameOfEnum(
334 ComponentAdminState_descriptor(), value);
335}
336inline bool ComponentAdminState_Parse(
337 const ::std::string& name, ComponentAdminState* value) {
338 return ::google::protobuf::internal::ParseNamedEnum<ComponentAdminState>(
339 ComponentAdminState_descriptor(), name, value);
340}
341enum ComponentOperState {
342 COMP_OPER_STATE_UNDEFINED = 0,
343 COMP_OPER_STATE_UNKNOWN = 1,
344 COMP_OPER_STATE_DISABLED = 2,
345 COMP_OPER_STATE_ENABLED = 3,
346 COMP_OPER_STATE_TESTING = 4,
347 ComponentOperState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
348 ComponentOperState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
349};
350bool ComponentOperState_IsValid(int value);
351const ComponentOperState ComponentOperState_MIN = COMP_OPER_STATE_UNDEFINED;
352const ComponentOperState ComponentOperState_MAX = COMP_OPER_STATE_TESTING;
353const int ComponentOperState_ARRAYSIZE = ComponentOperState_MAX + 1;
354
355const ::google::protobuf::EnumDescriptor* ComponentOperState_descriptor();
356inline const ::std::string& ComponentOperState_Name(ComponentOperState value) {
357 return ::google::protobuf::internal::NameOfEnum(
358 ComponentOperState_descriptor(), value);
359}
360inline bool ComponentOperState_Parse(
361 const ::std::string& name, ComponentOperState* value) {
362 return ::google::protobuf::internal::ParseNamedEnum<ComponentOperState>(
363 ComponentOperState_descriptor(), name, value);
364}
365enum ComponentUsageState {
366 COMP_USAGE_STATE_UNDEFINED = 0,
367 COMP_USAGE_STATE_UNKNOWN = 1,
368 COMP_USAGE_STATE_IDLE = 2,
369 COMP_USAGE_STATE_ACTIVE = 3,
370 COMP_USAGE_STATE_BUSY = 4,
371 ComponentUsageState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
372 ComponentUsageState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
373};
374bool ComponentUsageState_IsValid(int value);
375const ComponentUsageState ComponentUsageState_MIN = COMP_USAGE_STATE_UNDEFINED;
376const ComponentUsageState ComponentUsageState_MAX = COMP_USAGE_STATE_BUSY;
377const int ComponentUsageState_ARRAYSIZE = ComponentUsageState_MAX + 1;
378
379const ::google::protobuf::EnumDescriptor* ComponentUsageState_descriptor();
380inline const ::std::string& ComponentUsageState_Name(ComponentUsageState value) {
381 return ::google::protobuf::internal::NameOfEnum(
382 ComponentUsageState_descriptor(), value);
383}
384inline bool ComponentUsageState_Parse(
385 const ::std::string& name, ComponentUsageState* value) {
386 return ::google::protobuf::internal::ParseNamedEnum<ComponentUsageState>(
387 ComponentUsageState_descriptor(), name, value);
388}
389enum ComponentAlarmState {
390 COMP_ALARM_STATE_UNDEFINED = 0,
391 COMP_ALARM_STATE_UNKNOWN = 1,
392 COMP_ALARM_STATE_UNDER_REPAIR = 2,
393 COMP_ALARM_STATE_CRITICAL = 3,
394 COMP_ALARM_STATE_MAJOR = 4,
395 COMP_ALARM_STATE_MINOR = 5,
396 COMP_ALARM_STATE_WARNING = 6,
397 COMP_ALARM_STATE_INDETERMINATE = 7,
398 ComponentAlarmState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
399 ComponentAlarmState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
400};
401bool ComponentAlarmState_IsValid(int value);
402const ComponentAlarmState ComponentAlarmState_MIN = COMP_ALARM_STATE_UNDEFINED;
403const ComponentAlarmState ComponentAlarmState_MAX = COMP_ALARM_STATE_INDETERMINATE;
404const int ComponentAlarmState_ARRAYSIZE = ComponentAlarmState_MAX + 1;
405
406const ::google::protobuf::EnumDescriptor* ComponentAlarmState_descriptor();
407inline const ::std::string& ComponentAlarmState_Name(ComponentAlarmState value) {
408 return ::google::protobuf::internal::NameOfEnum(
409 ComponentAlarmState_descriptor(), value);
410}
411inline bool ComponentAlarmState_Parse(
412 const ::std::string& name, ComponentAlarmState* value) {
413 return ::google::protobuf::internal::ParseNamedEnum<ComponentAlarmState>(
414 ComponentAlarmState_descriptor(), name, value);
415}
416enum ComponentStandbyState {
417 COMP_STANDBY_STATE_UNDEFINED = 0,
418 COMP_STANDBY_STATE_UNKNOWN = 1,
419 COMP_STANDBY_STATE_HOT = 2,
420 COMP_STANDBY_STATE_COLD = 3,
421 COMP_STANDBY_STATE_PROVIDING_SERVICE = 4,
422 ComponentStandbyState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
423 ComponentStandbyState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
424};
425bool ComponentStandbyState_IsValid(int value);
426const ComponentStandbyState ComponentStandbyState_MIN = COMP_STANDBY_STATE_UNDEFINED;
427const ComponentStandbyState ComponentStandbyState_MAX = COMP_STANDBY_STATE_PROVIDING_SERVICE;
428const int ComponentStandbyState_ARRAYSIZE = ComponentStandbyState_MAX + 1;
429
430const ::google::protobuf::EnumDescriptor* ComponentStandbyState_descriptor();
431inline const ::std::string& ComponentStandbyState_Name(ComponentStandbyState value) {
432 return ::google::protobuf::internal::NameOfEnum(
433 ComponentStandbyState_descriptor(), value);
434}
435inline bool ComponentStandbyState_Parse(
436 const ::std::string& name, ComponentStandbyState* value) {
437 return ::google::protobuf::internal::ParseNamedEnum<ComponentStandbyState>(
438 ComponentStandbyState_descriptor(), name, value);
439}
440enum DataValueType {
441 VALUE_TYPE_UNDEFINED = 0,
442 VALUE_TYPE_OTHER = 1,
443 VALUE_TYPE_UNKNOWN = 2,
444 VALUE_TYPE_VOLTS_AC = 3,
445 VALUE_TYPE_VOLTS_DC = 4,
446 VALUE_TYPE_AMPERES = 5,
447 VALUE_TYPE_WATTS = 6,
448 VALUE_TYPE_HERTZ = 7,
449 VALUE_TYPE_CELSIUS = 8,
450 VALUE_TYPE_PERCENT_RH = 9,
451 VALUE_TYPE_RPM = 10,
452 VALUE_TYPE_CMM = 11,
453 VALUE_TYPE_TRUTH_VALUE = 12,
454 VALUE_TYPE_PERCENT = 13,
455 VALUE_TYPE_METERS = 14,
456 VALUE_TYPE_BYTES = 15,
457 DataValueType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
458 DataValueType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
459};
460bool DataValueType_IsValid(int value);
461const DataValueType DataValueType_MIN = VALUE_TYPE_UNDEFINED;
462const DataValueType DataValueType_MAX = VALUE_TYPE_BYTES;
463const int DataValueType_ARRAYSIZE = DataValueType_MAX + 1;
464
465const ::google::protobuf::EnumDescriptor* DataValueType_descriptor();
466inline const ::std::string& DataValueType_Name(DataValueType value) {
467 return ::google::protobuf::internal::NameOfEnum(
468 DataValueType_descriptor(), value);
469}
470inline bool DataValueType_Parse(
471 const ::std::string& name, DataValueType* value) {
472 return ::google::protobuf::internal::ParseNamedEnum<DataValueType>(
473 DataValueType_descriptor(), name, value);
474}
475enum ValueScale {
476 VALUE_SCALE_UNDEFINED = 0,
477 VALUE_SCALE_YOCTO = 1,
478 VALUE_SCALE_ZEPTO = 2,
479 VALUE_SCALE_ATTO = 3,
480 VALUE_SCALE_FEMTO = 4,
481 VALUE_SCALE_PICO = 5,
482 VALUE_SCALE_NANO = 6,
483 VALUE_SCALE_MICRO = 7,
484 VALUE_SCALE_MILLI = 8,
485 VALUE_SCALE_UNITS = 9,
486 VALUE_SCALE_KILO = 10,
487 VALUE_SCALE_MEGA = 11,
488 VALUE_SCALE_GIGA = 12,
489 VALUE_SCALE_TERA = 13,
490 VALUE_SCALE_PETA = 14,
491 VALUE_SCALE_EXA = 15,
492 VALUE_SCALE_ZETTA = 16,
493 VALUE_SCALE_YOTTA = 17,
494 ValueScale_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
495 ValueScale_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
496};
497bool ValueScale_IsValid(int value);
498const ValueScale ValueScale_MIN = VALUE_SCALE_UNDEFINED;
499const ValueScale ValueScale_MAX = VALUE_SCALE_YOTTA;
500const int ValueScale_ARRAYSIZE = ValueScale_MAX + 1;
501
502const ::google::protobuf::EnumDescriptor* ValueScale_descriptor();
503inline const ::std::string& ValueScale_Name(ValueScale value) {
504 return ::google::protobuf::internal::NameOfEnum(
505 ValueScale_descriptor(), value);
506}
507inline bool ValueScale_Parse(
508 const ::std::string& name, ValueScale* value) {
509 return ::google::protobuf::internal::ParseNamedEnum<ValueScale>(
510 ValueScale_descriptor(), name, value);
511}
512enum SensorStatus {
513 SENSOR_STATUS_UNDEFINED = 0,
514 SENSOR_STATUS_OK = 1,
515 SENSOR_STATUS_UNAVAILABLE = 2,
516 SENSOR_STATUS_NONOPERATIONAL = 3,
517 SensorStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(),
518 SensorStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max()
519};
520bool SensorStatus_IsValid(int value);
521const SensorStatus SensorStatus_MIN = SENSOR_STATUS_UNDEFINED;
522const SensorStatus SensorStatus_MAX = SENSOR_STATUS_NONOPERATIONAL;
523const int SensorStatus_ARRAYSIZE = SensorStatus_MAX + 1;
524
525const ::google::protobuf::EnumDescriptor* SensorStatus_descriptor();
526inline const ::std::string& SensorStatus_Name(SensorStatus value) {
527 return ::google::protobuf::internal::NameOfEnum(
528 SensorStatus_descriptor(), value);
529}
530inline bool SensorStatus_Parse(
531 const ::std::string& name, SensorStatus* value) {
532 return ::google::protobuf::internal::ParseNamedEnum<SensorStatus>(
533 SensorStatus_descriptor(), name, value);
534}
535// ===================================================================
536
537class Uuid final :
538 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Uuid) */ {
539 public:
540 Uuid();
541 virtual ~Uuid();
542
543 Uuid(const Uuid& from);
544
545 inline Uuid& operator=(const Uuid& from) {
546 CopyFrom(from);
547 return *this;
548 }
549 #if LANG_CXX11
550 Uuid(Uuid&& from) noexcept
551 : Uuid() {
552 *this = ::std::move(from);
553 }
554
555 inline Uuid& operator=(Uuid&& from) noexcept {
556 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
557 if (this != &from) InternalSwap(&from);
558 } else {
559 CopyFrom(from);
560 }
561 return *this;
562 }
563 #endif
564 static const ::google::protobuf::Descriptor* descriptor() {
565 return default_instance().GetDescriptor();
566 }
567 static const Uuid& default_instance();
568
569 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
570 static inline const Uuid* internal_default_instance() {
571 return reinterpret_cast<const Uuid*>(
572 &_Uuid_default_instance_);
573 }
574 static constexpr int kIndexInFileMessages =
575 0;
576
577 void Swap(Uuid* other);
578 friend void swap(Uuid& a, Uuid& b) {
579 a.Swap(&b);
580 }
581
582 // implements Message ----------------------------------------------
583
584 inline Uuid* New() const final {
585 return CreateMaybeMessage<Uuid>(nullptr);
586 }
587
588 Uuid* New(::google::protobuf::Arena* arena) const final {
589 return CreateMaybeMessage<Uuid>(arena);
590 }
591 void CopyFrom(const ::google::protobuf::Message& from) final;
592 void MergeFrom(const ::google::protobuf::Message& from) final;
593 void CopyFrom(const Uuid& from);
594 void MergeFrom(const Uuid& from);
595 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
596 bool IsInitialized() const final;
597
598 size_t ByteSizeLong() const final;
599 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
600 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
601 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
602 #else
603 bool MergePartialFromCodedStream(
604 ::google::protobuf::io::CodedInputStream* input) final;
605 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
606 void SerializeWithCachedSizes(
607 ::google::protobuf::io::CodedOutputStream* output) const final;
608 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
609 ::google::protobuf::uint8* target) const final;
610 int GetCachedSize() const final { return _cached_size_.Get(); }
611
612 private:
613 void SharedCtor();
614 void SharedDtor();
615 void SetCachedSize(int size) const final;
616 void InternalSwap(Uuid* other);
617 private:
618 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
619 return nullptr;
620 }
621 inline void* MaybeArenaPtr() const {
622 return nullptr;
623 }
624 public:
625
626 ::google::protobuf::Metadata GetMetadata() const final;
627
628 // nested types ----------------------------------------------------
629
630 // accessors -------------------------------------------------------
631
632 // string uuid = 1;
633 void clear_uuid();
634 static const int kUuidFieldNumber = 1;
635 const ::std::string& uuid() const;
636 void set_uuid(const ::std::string& value);
637 #if LANG_CXX11
638 void set_uuid(::std::string&& value);
639 #endif
640 void set_uuid(const char* value);
641 void set_uuid(const char* value, size_t size);
642 ::std::string* mutable_uuid();
643 ::std::string* release_uuid();
644 void set_allocated_uuid(::std::string* uuid);
645
646 // @@protoc_insertion_point(class_scope:dmi.Uuid)
647 private:
648 class HasBitSetters;
649
650 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
651 ::google::protobuf::internal::ArenaStringPtr uuid_;
652 mutable ::google::protobuf::internal::CachedSize _cached_size_;
653 friend struct ::TableStruct_dmi_2fhw_2eproto;
654};
655// -------------------------------------------------------------------
656
657class HardwareID final :
658 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.HardwareID) */ {
659 public:
660 HardwareID();
661 virtual ~HardwareID();
662
663 HardwareID(const HardwareID& from);
664
665 inline HardwareID& operator=(const HardwareID& from) {
666 CopyFrom(from);
667 return *this;
668 }
669 #if LANG_CXX11
670 HardwareID(HardwareID&& from) noexcept
671 : HardwareID() {
672 *this = ::std::move(from);
673 }
674
675 inline HardwareID& operator=(HardwareID&& from) noexcept {
676 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
677 if (this != &from) InternalSwap(&from);
678 } else {
679 CopyFrom(from);
680 }
681 return *this;
682 }
683 #endif
684 static const ::google::protobuf::Descriptor* descriptor() {
685 return default_instance().GetDescriptor();
686 }
687 static const HardwareID& default_instance();
688
689 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
690 static inline const HardwareID* internal_default_instance() {
691 return reinterpret_cast<const HardwareID*>(
692 &_HardwareID_default_instance_);
693 }
694 static constexpr int kIndexInFileMessages =
695 1;
696
697 void Swap(HardwareID* other);
698 friend void swap(HardwareID& a, HardwareID& b) {
699 a.Swap(&b);
700 }
701
702 // implements Message ----------------------------------------------
703
704 inline HardwareID* New() const final {
705 return CreateMaybeMessage<HardwareID>(nullptr);
706 }
707
708 HardwareID* New(::google::protobuf::Arena* arena) const final {
709 return CreateMaybeMessage<HardwareID>(arena);
710 }
711 void CopyFrom(const ::google::protobuf::Message& from) final;
712 void MergeFrom(const ::google::protobuf::Message& from) final;
713 void CopyFrom(const HardwareID& from);
714 void MergeFrom(const HardwareID& from);
715 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
716 bool IsInitialized() const final;
717
718 size_t ByteSizeLong() const final;
719 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
720 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
721 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
722 #else
723 bool MergePartialFromCodedStream(
724 ::google::protobuf::io::CodedInputStream* input) final;
725 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
726 void SerializeWithCachedSizes(
727 ::google::protobuf::io::CodedOutputStream* output) const final;
728 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
729 ::google::protobuf::uint8* target) const final;
730 int GetCachedSize() const final { return _cached_size_.Get(); }
731
732 private:
733 void SharedCtor();
734 void SharedDtor();
735 void SetCachedSize(int size) const final;
736 void InternalSwap(HardwareID* other);
737 private:
738 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
739 return nullptr;
740 }
741 inline void* MaybeArenaPtr() const {
742 return nullptr;
743 }
744 public:
745
746 ::google::protobuf::Metadata GetMetadata() const final;
747
748 // nested types ----------------------------------------------------
749
750 // accessors -------------------------------------------------------
751
752 // .dmi.Uuid uuid = 1;
753 bool has_uuid() const;
754 void clear_uuid();
755 static const int kUuidFieldNumber = 1;
756 const ::dmi::Uuid& uuid() const;
757 ::dmi::Uuid* release_uuid();
758 ::dmi::Uuid* mutable_uuid();
759 void set_allocated_uuid(::dmi::Uuid* uuid);
760
761 // @@protoc_insertion_point(class_scope:dmi.HardwareID)
762 private:
763 class HasBitSetters;
764
765 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
766 ::dmi::Uuid* uuid_;
767 mutable ::google::protobuf::internal::CachedSize _cached_size_;
768 friend struct ::TableStruct_dmi_2fhw_2eproto;
769};
770// -------------------------------------------------------------------
771
772class Uri final :
773 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Uri) */ {
774 public:
775 Uri();
776 virtual ~Uri();
777
778 Uri(const Uri& from);
779
780 inline Uri& operator=(const Uri& from) {
781 CopyFrom(from);
782 return *this;
783 }
784 #if LANG_CXX11
785 Uri(Uri&& from) noexcept
786 : Uri() {
787 *this = ::std::move(from);
788 }
789
790 inline Uri& operator=(Uri&& from) noexcept {
791 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
792 if (this != &from) InternalSwap(&from);
793 } else {
794 CopyFrom(from);
795 }
796 return *this;
797 }
798 #endif
799 static const ::google::protobuf::Descriptor* descriptor() {
800 return default_instance().GetDescriptor();
801 }
802 static const Uri& default_instance();
803
804 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
805 static inline const Uri* internal_default_instance() {
806 return reinterpret_cast<const Uri*>(
807 &_Uri_default_instance_);
808 }
809 static constexpr int kIndexInFileMessages =
810 2;
811
812 void Swap(Uri* other);
813 friend void swap(Uri& a, Uri& b) {
814 a.Swap(&b);
815 }
816
817 // implements Message ----------------------------------------------
818
819 inline Uri* New() const final {
820 return CreateMaybeMessage<Uri>(nullptr);
821 }
822
823 Uri* New(::google::protobuf::Arena* arena) const final {
824 return CreateMaybeMessage<Uri>(arena);
825 }
826 void CopyFrom(const ::google::protobuf::Message& from) final;
827 void MergeFrom(const ::google::protobuf::Message& from) final;
828 void CopyFrom(const Uri& from);
829 void MergeFrom(const Uri& from);
830 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
831 bool IsInitialized() const final;
832
833 size_t ByteSizeLong() const final;
834 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
835 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
836 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
837 #else
838 bool MergePartialFromCodedStream(
839 ::google::protobuf::io::CodedInputStream* input) final;
840 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
841 void SerializeWithCachedSizes(
842 ::google::protobuf::io::CodedOutputStream* output) const final;
843 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
844 ::google::protobuf::uint8* target) const final;
845 int GetCachedSize() const final { return _cached_size_.Get(); }
846
847 private:
848 void SharedCtor();
849 void SharedDtor();
850 void SetCachedSize(int size) const final;
851 void InternalSwap(Uri* other);
852 private:
853 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
854 return nullptr;
855 }
856 inline void* MaybeArenaPtr() const {
857 return nullptr;
858 }
859 public:
860
861 ::google::protobuf::Metadata GetMetadata() const final;
862
863 // nested types ----------------------------------------------------
864
865 // accessors -------------------------------------------------------
866
867 // string uri = 1;
868 void clear_uri();
869 static const int kUriFieldNumber = 1;
870 const ::std::string& uri() const;
871 void set_uri(const ::std::string& value);
872 #if LANG_CXX11
873 void set_uri(::std::string&& value);
874 #endif
875 void set_uri(const char* value);
876 void set_uri(const char* value, size_t size);
877 ::std::string* mutable_uri();
878 ::std::string* release_uri();
879 void set_allocated_uri(::std::string* uri);
880
881 // @@protoc_insertion_point(class_scope:dmi.Uri)
882 private:
883 class HasBitSetters;
884
885 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
886 ::google::protobuf::internal::ArenaStringPtr uri_;
887 mutable ::google::protobuf::internal::CachedSize _cached_size_;
888 friend struct ::TableStruct_dmi_2fhw_2eproto;
889};
890// -------------------------------------------------------------------
891
892class ComponentState final :
893 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ComponentState) */ {
894 public:
895 ComponentState();
896 virtual ~ComponentState();
897
898 ComponentState(const ComponentState& from);
899
900 inline ComponentState& operator=(const ComponentState& from) {
901 CopyFrom(from);
902 return *this;
903 }
904 #if LANG_CXX11
905 ComponentState(ComponentState&& from) noexcept
906 : ComponentState() {
907 *this = ::std::move(from);
908 }
909
910 inline ComponentState& operator=(ComponentState&& from) noexcept {
911 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
912 if (this != &from) InternalSwap(&from);
913 } else {
914 CopyFrom(from);
915 }
916 return *this;
917 }
918 #endif
919 static const ::google::protobuf::Descriptor* descriptor() {
920 return default_instance().GetDescriptor();
921 }
922 static const ComponentState& default_instance();
923
924 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
925 static inline const ComponentState* internal_default_instance() {
926 return reinterpret_cast<const ComponentState*>(
927 &_ComponentState_default_instance_);
928 }
929 static constexpr int kIndexInFileMessages =
930 3;
931
932 void Swap(ComponentState* other);
933 friend void swap(ComponentState& a, ComponentState& b) {
934 a.Swap(&b);
935 }
936
937 // implements Message ----------------------------------------------
938
939 inline ComponentState* New() const final {
940 return CreateMaybeMessage<ComponentState>(nullptr);
941 }
942
943 ComponentState* New(::google::protobuf::Arena* arena) const final {
944 return CreateMaybeMessage<ComponentState>(arena);
945 }
946 void CopyFrom(const ::google::protobuf::Message& from) final;
947 void MergeFrom(const ::google::protobuf::Message& from) final;
948 void CopyFrom(const ComponentState& from);
949 void MergeFrom(const ComponentState& from);
950 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
951 bool IsInitialized() const final;
952
953 size_t ByteSizeLong() const final;
954 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
955 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
956 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
957 #else
958 bool MergePartialFromCodedStream(
959 ::google::protobuf::io::CodedInputStream* input) final;
960 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
961 void SerializeWithCachedSizes(
962 ::google::protobuf::io::CodedOutputStream* output) const final;
963 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
964 ::google::protobuf::uint8* target) const final;
965 int GetCachedSize() const final { return _cached_size_.Get(); }
966
967 private:
968 void SharedCtor();
969 void SharedDtor();
970 void SetCachedSize(int size) const final;
971 void InternalSwap(ComponentState* other);
972 private:
973 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
974 return nullptr;
975 }
976 inline void* MaybeArenaPtr() const {
977 return nullptr;
978 }
979 public:
980
981 ::google::protobuf::Metadata GetMetadata() const final;
982
983 // nested types ----------------------------------------------------
984
985 // accessors -------------------------------------------------------
986
987 // .google.protobuf.Timestamp state_last_changed = 1;
988 bool has_state_last_changed() const;
989 void clear_state_last_changed();
990 static const int kStateLastChangedFieldNumber = 1;
991 const ::google::protobuf::Timestamp& state_last_changed() const;
992 ::google::protobuf::Timestamp* release_state_last_changed();
993 ::google::protobuf::Timestamp* mutable_state_last_changed();
994 void set_allocated_state_last_changed(::google::protobuf::Timestamp* state_last_changed);
995
996 // .dmi.ComponentAdminState admin_state = 2;
997 void clear_admin_state();
998 static const int kAdminStateFieldNumber = 2;
999 ::dmi::ComponentAdminState admin_state() const;
1000 void set_admin_state(::dmi::ComponentAdminState value);
1001
1002 // .dmi.ComponentOperState oper_state = 3;
1003 void clear_oper_state();
1004 static const int kOperStateFieldNumber = 3;
1005 ::dmi::ComponentOperState oper_state() const;
1006 void set_oper_state(::dmi::ComponentOperState value);
1007
1008 // .dmi.ComponentUsageState usage_state = 4;
1009 void clear_usage_state();
1010 static const int kUsageStateFieldNumber = 4;
1011 ::dmi::ComponentUsageState usage_state() const;
1012 void set_usage_state(::dmi::ComponentUsageState value);
1013
1014 // .dmi.ComponentAlarmState alarm_state = 5;
1015 void clear_alarm_state();
1016 static const int kAlarmStateFieldNumber = 5;
1017 ::dmi::ComponentAlarmState alarm_state() const;
1018 void set_alarm_state(::dmi::ComponentAlarmState value);
1019
1020 // .dmi.ComponentStandbyState standby_state = 6;
1021 void clear_standby_state();
1022 static const int kStandbyStateFieldNumber = 6;
1023 ::dmi::ComponentStandbyState standby_state() const;
1024 void set_standby_state(::dmi::ComponentStandbyState value);
1025
1026 // @@protoc_insertion_point(class_scope:dmi.ComponentState)
1027 private:
1028 class HasBitSetters;
1029
1030 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1031 ::google::protobuf::Timestamp* state_last_changed_;
1032 int admin_state_;
1033 int oper_state_;
1034 int usage_state_;
1035 int alarm_state_;
1036 int standby_state_;
1037 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1038 friend struct ::TableStruct_dmi_2fhw_2eproto;
1039};
1040// -------------------------------------------------------------------
1041
1042class ComponentSensorData final :
1043 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ComponentSensorData) */ {
1044 public:
1045 ComponentSensorData();
1046 virtual ~ComponentSensorData();
1047
1048 ComponentSensorData(const ComponentSensorData& from);
1049
1050 inline ComponentSensorData& operator=(const ComponentSensorData& from) {
1051 CopyFrom(from);
1052 return *this;
1053 }
1054 #if LANG_CXX11
1055 ComponentSensorData(ComponentSensorData&& from) noexcept
1056 : ComponentSensorData() {
1057 *this = ::std::move(from);
1058 }
1059
1060 inline ComponentSensorData& operator=(ComponentSensorData&& from) noexcept {
1061 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1062 if (this != &from) InternalSwap(&from);
1063 } else {
1064 CopyFrom(from);
1065 }
1066 return *this;
1067 }
1068 #endif
1069 static const ::google::protobuf::Descriptor* descriptor() {
1070 return default_instance().GetDescriptor();
1071 }
1072 static const ComponentSensorData& default_instance();
1073
1074 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1075 static inline const ComponentSensorData* internal_default_instance() {
1076 return reinterpret_cast<const ComponentSensorData*>(
1077 &_ComponentSensorData_default_instance_);
1078 }
1079 static constexpr int kIndexInFileMessages =
1080 4;
1081
1082 void Swap(ComponentSensorData* other);
1083 friend void swap(ComponentSensorData& a, ComponentSensorData& b) {
1084 a.Swap(&b);
1085 }
1086
1087 // implements Message ----------------------------------------------
1088
1089 inline ComponentSensorData* New() const final {
1090 return CreateMaybeMessage<ComponentSensorData>(nullptr);
1091 }
1092
1093 ComponentSensorData* New(::google::protobuf::Arena* arena) const final {
1094 return CreateMaybeMessage<ComponentSensorData>(arena);
1095 }
1096 void CopyFrom(const ::google::protobuf::Message& from) final;
1097 void MergeFrom(const ::google::protobuf::Message& from) final;
1098 void CopyFrom(const ComponentSensorData& from);
1099 void MergeFrom(const ComponentSensorData& from);
1100 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1101 bool IsInitialized() const final;
1102
1103 size_t ByteSizeLong() const final;
1104 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1105 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1106 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1107 #else
1108 bool MergePartialFromCodedStream(
1109 ::google::protobuf::io::CodedInputStream* input) final;
1110 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1111 void SerializeWithCachedSizes(
1112 ::google::protobuf::io::CodedOutputStream* output) const final;
1113 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1114 ::google::protobuf::uint8* target) const final;
1115 int GetCachedSize() const final { return _cached_size_.Get(); }
1116
1117 private:
1118 void SharedCtor();
1119 void SharedDtor();
1120 void SetCachedSize(int size) const final;
1121 void InternalSwap(ComponentSensorData* other);
1122 private:
1123 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1124 return nullptr;
1125 }
1126 inline void* MaybeArenaPtr() const {
1127 return nullptr;
1128 }
1129 public:
1130
1131 ::google::protobuf::Metadata GetMetadata() const final;
1132
1133 // nested types ----------------------------------------------------
1134
1135 // accessors -------------------------------------------------------
1136
1137 // string units_display = 6;
1138 void clear_units_display();
1139 static const int kUnitsDisplayFieldNumber = 6;
1140 const ::std::string& units_display() const;
1141 void set_units_display(const ::std::string& value);
1142 #if LANG_CXX11
1143 void set_units_display(::std::string&& value);
1144 #endif
1145 void set_units_display(const char* value);
1146 void set_units_display(const char* value, size_t size);
1147 ::std::string* mutable_units_display();
1148 ::std::string* release_units_display();
1149 void set_allocated_units_display(::std::string* units_display);
1150
1151 // string data_type = 9;
1152 void clear_data_type();
1153 static const int kDataTypeFieldNumber = 9;
1154 const ::std::string& data_type() const;
1155 void set_data_type(const ::std::string& value);
1156 #if LANG_CXX11
1157 void set_data_type(::std::string&& value);
1158 #endif
1159 void set_data_type(const char* value);
1160 void set_data_type(const char* value, size_t size);
1161 ::std::string* mutable_data_type();
1162 ::std::string* release_data_type();
1163 void set_allocated_data_type(::std::string* data_type);
1164
1165 // .google.protobuf.Timestamp timestamp = 7;
1166 bool has_timestamp() const;
1167 void clear_timestamp();
1168 static const int kTimestampFieldNumber = 7;
1169 const ::google::protobuf::Timestamp& timestamp() const;
1170 ::google::protobuf::Timestamp* release_timestamp();
1171 ::google::protobuf::Timestamp* mutable_timestamp();
1172 void set_allocated_timestamp(::google::protobuf::Timestamp* timestamp);
1173
1174 // int32 value = 1;
1175 void clear_value();
1176 static const int kValueFieldNumber = 1;
1177 ::google::protobuf::int32 value() const;
1178 void set_value(::google::protobuf::int32 value);
1179
1180 // .dmi.DataValueType type = 2;
1181 void clear_type();
1182 static const int kTypeFieldNumber = 2;
1183 ::dmi::DataValueType type() const;
1184 void set_type(::dmi::DataValueType value);
1185
1186 // .dmi.ValueScale scale = 3;
1187 void clear_scale();
1188 static const int kScaleFieldNumber = 3;
1189 ::dmi::ValueScale scale() const;
1190 void set_scale(::dmi::ValueScale value);
1191
1192 // int32 precision = 4;
1193 void clear_precision();
1194 static const int kPrecisionFieldNumber = 4;
1195 ::google::protobuf::int32 precision() const;
1196 void set_precision(::google::protobuf::int32 value);
1197
1198 // .dmi.SensorStatus status = 5;
1199 void clear_status();
1200 static const int kStatusFieldNumber = 5;
1201 ::dmi::SensorStatus status() const;
1202 void set_status(::dmi::SensorStatus value);
1203
1204 // uint32 value_update_rate = 8;
1205 void clear_value_update_rate();
1206 static const int kValueUpdateRateFieldNumber = 8;
1207 ::google::protobuf::uint32 value_update_rate() const;
1208 void set_value_update_rate(::google::protobuf::uint32 value);
1209
1210 // @@protoc_insertion_point(class_scope:dmi.ComponentSensorData)
1211 private:
1212 class HasBitSetters;
1213
1214 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1215 ::google::protobuf::internal::ArenaStringPtr units_display_;
1216 ::google::protobuf::internal::ArenaStringPtr data_type_;
1217 ::google::protobuf::Timestamp* timestamp_;
1218 ::google::protobuf::int32 value_;
1219 int type_;
1220 int scale_;
1221 ::google::protobuf::int32 precision_;
1222 int status_;
1223 ::google::protobuf::uint32 value_update_rate_;
1224 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1225 friend struct ::TableStruct_dmi_2fhw_2eproto;
1226};
1227// -------------------------------------------------------------------
1228
1229class PortComponentAttributes final :
1230 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PortComponentAttributes) */ {
1231 public:
1232 PortComponentAttributes();
1233 virtual ~PortComponentAttributes();
1234
1235 PortComponentAttributes(const PortComponentAttributes& from);
1236
1237 inline PortComponentAttributes& operator=(const PortComponentAttributes& from) {
1238 CopyFrom(from);
1239 return *this;
1240 }
1241 #if LANG_CXX11
1242 PortComponentAttributes(PortComponentAttributes&& from) noexcept
1243 : PortComponentAttributes() {
1244 *this = ::std::move(from);
1245 }
1246
1247 inline PortComponentAttributes& operator=(PortComponentAttributes&& from) noexcept {
1248 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1249 if (this != &from) InternalSwap(&from);
1250 } else {
1251 CopyFrom(from);
1252 }
1253 return *this;
1254 }
1255 #endif
1256 static const ::google::protobuf::Descriptor* descriptor() {
1257 return default_instance().GetDescriptor();
1258 }
1259 static const PortComponentAttributes& default_instance();
1260
1261 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1262 static inline const PortComponentAttributes* internal_default_instance() {
1263 return reinterpret_cast<const PortComponentAttributes*>(
1264 &_PortComponentAttributes_default_instance_);
1265 }
1266 static constexpr int kIndexInFileMessages =
1267 5;
1268
1269 void Swap(PortComponentAttributes* other);
1270 friend void swap(PortComponentAttributes& a, PortComponentAttributes& b) {
1271 a.Swap(&b);
1272 }
1273
1274 // implements Message ----------------------------------------------
1275
1276 inline PortComponentAttributes* New() const final {
1277 return CreateMaybeMessage<PortComponentAttributes>(nullptr);
1278 }
1279
1280 PortComponentAttributes* New(::google::protobuf::Arena* arena) const final {
1281 return CreateMaybeMessage<PortComponentAttributes>(arena);
1282 }
1283 void CopyFrom(const ::google::protobuf::Message& from) final;
1284 void MergeFrom(const ::google::protobuf::Message& from) final;
1285 void CopyFrom(const PortComponentAttributes& from);
1286 void MergeFrom(const PortComponentAttributes& from);
1287 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1288 bool IsInitialized() const final;
1289
1290 size_t ByteSizeLong() const final;
1291 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1292 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1293 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1294 #else
1295 bool MergePartialFromCodedStream(
1296 ::google::protobuf::io::CodedInputStream* input) final;
1297 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1298 void SerializeWithCachedSizes(
1299 ::google::protobuf::io::CodedOutputStream* output) const final;
1300 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1301 ::google::protobuf::uint8* target) const final;
1302 int GetCachedSize() const final { return _cached_size_.Get(); }
1303
1304 private:
1305 void SharedCtor();
1306 void SharedDtor();
1307 void SetCachedSize(int size) const final;
1308 void InternalSwap(PortComponentAttributes* other);
1309 private:
1310 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1311 return nullptr;
1312 }
1313 inline void* MaybeArenaPtr() const {
1314 return nullptr;
1315 }
1316 public:
1317
1318 ::google::protobuf::Metadata GetMetadata() const final;
1319
1320 // nested types ----------------------------------------------------
1321
1322 typedef PortComponentAttributes_ConnectorType ConnectorType;
1323 static const ConnectorType CONNECTOR_TYPE_UNDEFINED =
1324 PortComponentAttributes_ConnectorType_CONNECTOR_TYPE_UNDEFINED;
1325 static const ConnectorType RJ45 =
1326 PortComponentAttributes_ConnectorType_RJ45;
1327 static const ConnectorType FIBER_LC =
1328 PortComponentAttributes_ConnectorType_FIBER_LC;
1329 static const ConnectorType FIBER_SC_PC =
1330 PortComponentAttributes_ConnectorType_FIBER_SC_PC;
1331 static const ConnectorType FIBER_MPO =
1332 PortComponentAttributes_ConnectorType_FIBER_MPO;
1333 static const ConnectorType RS232 =
1334 PortComponentAttributes_ConnectorType_RS232;
1335 static inline bool ConnectorType_IsValid(int value) {
1336 return PortComponentAttributes_ConnectorType_IsValid(value);
1337 }
1338 static const ConnectorType ConnectorType_MIN =
1339 PortComponentAttributes_ConnectorType_ConnectorType_MIN;
1340 static const ConnectorType ConnectorType_MAX =
1341 PortComponentAttributes_ConnectorType_ConnectorType_MAX;
1342 static const int ConnectorType_ARRAYSIZE =
1343 PortComponentAttributes_ConnectorType_ConnectorType_ARRAYSIZE;
1344 static inline const ::google::protobuf::EnumDescriptor*
1345 ConnectorType_descriptor() {
1346 return PortComponentAttributes_ConnectorType_descriptor();
1347 }
1348 static inline const ::std::string& ConnectorType_Name(ConnectorType value) {
1349 return PortComponentAttributes_ConnectorType_Name(value);
1350 }
1351 static inline bool ConnectorType_Parse(const ::std::string& name,
1352 ConnectorType* value) {
1353 return PortComponentAttributes_ConnectorType_Parse(name, value);
1354 }
1355
1356 typedef PortComponentAttributes_Speed Speed;
1357 static const Speed SPEED_UNDEFINED =
1358 PortComponentAttributes_Speed_SPEED_UNDEFINED;
1359 static const Speed DYNAMIC =
1360 PortComponentAttributes_Speed_DYNAMIC;
1361 static const Speed GIGABIT_1 =
1362 PortComponentAttributes_Speed_GIGABIT_1;
1363 static const Speed GIGABIT_10 =
1364 PortComponentAttributes_Speed_GIGABIT_10;
1365 static const Speed GIGABIT_25 =
1366 PortComponentAttributes_Speed_GIGABIT_25;
1367 static const Speed GIGABIT_40 =
1368 PortComponentAttributes_Speed_GIGABIT_40;
1369 static const Speed GIGABIT_100 =
1370 PortComponentAttributes_Speed_GIGABIT_100;
1371 static const Speed GIGABIT_400 =
1372 PortComponentAttributes_Speed_GIGABIT_400;
1373 static const Speed MEGABIT_2500 =
1374 PortComponentAttributes_Speed_MEGABIT_2500;
1375 static const Speed MEGABIT_1250 =
1376 PortComponentAttributes_Speed_MEGABIT_1250;
1377 static inline bool Speed_IsValid(int value) {
1378 return PortComponentAttributes_Speed_IsValid(value);
1379 }
1380 static const Speed Speed_MIN =
1381 PortComponentAttributes_Speed_Speed_MIN;
1382 static const Speed Speed_MAX =
1383 PortComponentAttributes_Speed_Speed_MAX;
1384 static const int Speed_ARRAYSIZE =
1385 PortComponentAttributes_Speed_Speed_ARRAYSIZE;
1386 static inline const ::google::protobuf::EnumDescriptor*
1387 Speed_descriptor() {
1388 return PortComponentAttributes_Speed_descriptor();
1389 }
1390 static inline const ::std::string& Speed_Name(Speed value) {
1391 return PortComponentAttributes_Speed_Name(value);
1392 }
1393 static inline bool Speed_Parse(const ::std::string& name,
1394 Speed* value) {
1395 return PortComponentAttributes_Speed_Parse(name, value);
1396 }
1397
1398 typedef PortComponentAttributes_Protocol Protocol;
1399 static const Protocol PROTOCOL_UNDEFINED =
1400 PortComponentAttributes_Protocol_PROTOCOL_UNDEFINED;
1401 static const Protocol ETHERNET =
1402 PortComponentAttributes_Protocol_ETHERNET;
1403 static const Protocol GPON =
1404 PortComponentAttributes_Protocol_GPON;
1405 static const Protocol XGPON =
1406 PortComponentAttributes_Protocol_XGPON;
1407 static const Protocol XGSPON =
1408 PortComponentAttributes_Protocol_XGSPON;
1409 static const Protocol GFAST =
1410 PortComponentAttributes_Protocol_GFAST;
1411 static const Protocol SERIAL =
1412 PortComponentAttributes_Protocol_SERIAL;
1413 static const Protocol EPON =
1414 PortComponentAttributes_Protocol_EPON;
1415 static const Protocol BITS =
1416 PortComponentAttributes_Protocol_BITS;
1417 static inline bool Protocol_IsValid(int value) {
1418 return PortComponentAttributes_Protocol_IsValid(value);
1419 }
1420 static const Protocol Protocol_MIN =
1421 PortComponentAttributes_Protocol_Protocol_MIN;
1422 static const Protocol Protocol_MAX =
1423 PortComponentAttributes_Protocol_Protocol_MAX;
1424 static const int Protocol_ARRAYSIZE =
1425 PortComponentAttributes_Protocol_Protocol_ARRAYSIZE;
1426 static inline const ::google::protobuf::EnumDescriptor*
1427 Protocol_descriptor() {
1428 return PortComponentAttributes_Protocol_descriptor();
1429 }
1430 static inline const ::std::string& Protocol_Name(Protocol value) {
1431 return PortComponentAttributes_Protocol_Name(value);
1432 }
1433 static inline bool Protocol_Parse(const ::std::string& name,
1434 Protocol* value) {
1435 return PortComponentAttributes_Protocol_Parse(name, value);
1436 }
1437
1438 // accessors -------------------------------------------------------
1439
1440 // string physical_label = 4;
1441 void clear_physical_label();
1442 static const int kPhysicalLabelFieldNumber = 4;
1443 const ::std::string& physical_label() const;
1444 void set_physical_label(const ::std::string& value);
1445 #if LANG_CXX11
1446 void set_physical_label(::std::string&& value);
1447 #endif
1448 void set_physical_label(const char* value);
1449 void set_physical_label(const char* value, size_t size);
1450 ::std::string* mutable_physical_label();
1451 ::std::string* release_physical_label();
1452 void set_allocated_physical_label(::std::string* physical_label);
1453
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001454 // string mapping_label = 5;
1455 void clear_mapping_label();
1456 static const int kMappingLabelFieldNumber = 5;
1457 const ::std::string& mapping_label() const;
1458 void set_mapping_label(const ::std::string& value);
1459 #if LANG_CXX11
1460 void set_mapping_label(::std::string&& value);
1461 #endif
1462 void set_mapping_label(const char* value);
1463 void set_mapping_label(const char* value, size_t size);
1464 ::std::string* mutable_mapping_label();
1465 ::std::string* release_mapping_label();
1466 void set_allocated_mapping_label(::std::string* mapping_label);
1467
1468 // .dmi.PonIdConfig pon_id_config = 6;
1469 bool has_pon_id_config() const;
1470 void clear_pon_id_config();
1471 static const int kPonIdConfigFieldNumber = 6;
1472 const ::dmi::PonIdConfig& pon_id_config() const;
1473 ::dmi::PonIdConfig* release_pon_id_config();
1474 ::dmi::PonIdConfig* mutable_pon_id_config();
1475 void set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config);
1476
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301477 // .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
1478 void clear_connector_type();
1479 static const int kConnectorTypeFieldNumber = 1;
1480 ::dmi::PortComponentAttributes_ConnectorType connector_type() const;
1481 void set_connector_type(::dmi::PortComponentAttributes_ConnectorType value);
1482
1483 // .dmi.PortComponentAttributes.Speed speed = 2;
1484 void clear_speed();
1485 static const int kSpeedFieldNumber = 2;
1486 ::dmi::PortComponentAttributes_Speed speed() const;
1487 void set_speed(::dmi::PortComponentAttributes_Speed value);
1488
1489 // .dmi.PortComponentAttributes.Protocol protocol = 3;
1490 void clear_protocol();
1491 static const int kProtocolFieldNumber = 3;
1492 ::dmi::PortComponentAttributes_Protocol protocol() const;
1493 void set_protocol(::dmi::PortComponentAttributes_Protocol value);
1494
1495 // @@protoc_insertion_point(class_scope:dmi.PortComponentAttributes)
1496 private:
1497 class HasBitSetters;
1498
1499 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1500 ::google::protobuf::internal::ArenaStringPtr physical_label_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001501 ::google::protobuf::internal::ArenaStringPtr mapping_label_;
1502 ::dmi::PonIdConfig* pon_id_config_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301503 int connector_type_;
1504 int speed_;
1505 int protocol_;
1506 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1507 friend struct ::TableStruct_dmi_2fhw_2eproto;
1508};
1509// -------------------------------------------------------------------
1510
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001511class PortComponentChangeAttributes final :
1512 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PortComponentChangeAttributes) */ {
1513 public:
1514 PortComponentChangeAttributes();
1515 virtual ~PortComponentChangeAttributes();
1516
1517 PortComponentChangeAttributes(const PortComponentChangeAttributes& from);
1518
1519 inline PortComponentChangeAttributes& operator=(const PortComponentChangeAttributes& from) {
1520 CopyFrom(from);
1521 return *this;
1522 }
1523 #if LANG_CXX11
1524 PortComponentChangeAttributes(PortComponentChangeAttributes&& from) noexcept
1525 : PortComponentChangeAttributes() {
1526 *this = ::std::move(from);
1527 }
1528
1529 inline PortComponentChangeAttributes& operator=(PortComponentChangeAttributes&& from) noexcept {
1530 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1531 if (this != &from) InternalSwap(&from);
1532 } else {
1533 CopyFrom(from);
1534 }
1535 return *this;
1536 }
1537 #endif
1538 static const ::google::protobuf::Descriptor* descriptor() {
1539 return default_instance().GetDescriptor();
1540 }
1541 static const PortComponentChangeAttributes& default_instance();
1542
1543 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1544 static inline const PortComponentChangeAttributes* internal_default_instance() {
1545 return reinterpret_cast<const PortComponentChangeAttributes*>(
1546 &_PortComponentChangeAttributes_default_instance_);
1547 }
1548 static constexpr int kIndexInFileMessages =
1549 6;
1550
1551 void Swap(PortComponentChangeAttributes* other);
1552 friend void swap(PortComponentChangeAttributes& a, PortComponentChangeAttributes& b) {
1553 a.Swap(&b);
1554 }
1555
1556 // implements Message ----------------------------------------------
1557
1558 inline PortComponentChangeAttributes* New() const final {
1559 return CreateMaybeMessage<PortComponentChangeAttributes>(nullptr);
1560 }
1561
1562 PortComponentChangeAttributes* New(::google::protobuf::Arena* arena) const final {
1563 return CreateMaybeMessage<PortComponentChangeAttributes>(arena);
1564 }
1565 void CopyFrom(const ::google::protobuf::Message& from) final;
1566 void MergeFrom(const ::google::protobuf::Message& from) final;
1567 void CopyFrom(const PortComponentChangeAttributes& from);
1568 void MergeFrom(const PortComponentChangeAttributes& from);
1569 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1570 bool IsInitialized() const final;
1571
1572 size_t ByteSizeLong() const final;
1573 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1574 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1575 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1576 #else
1577 bool MergePartialFromCodedStream(
1578 ::google::protobuf::io::CodedInputStream* input) final;
1579 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1580 void SerializeWithCachedSizes(
1581 ::google::protobuf::io::CodedOutputStream* output) const final;
1582 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1583 ::google::protobuf::uint8* target) const final;
1584 int GetCachedSize() const final { return _cached_size_.Get(); }
1585
1586 private:
1587 void SharedCtor();
1588 void SharedDtor();
1589 void SetCachedSize(int size) const final;
1590 void InternalSwap(PortComponentChangeAttributes* other);
1591 private:
1592 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1593 return nullptr;
1594 }
1595 inline void* MaybeArenaPtr() const {
1596 return nullptr;
1597 }
1598 public:
1599
1600 ::google::protobuf::Metadata GetMetadata() const final;
1601
1602 // nested types ----------------------------------------------------
1603
1604 // accessors -------------------------------------------------------
1605
1606 // .dmi.PonIdConfig pon_id_config = 1;
1607 bool has_pon_id_config() const;
1608 void clear_pon_id_config();
1609 static const int kPonIdConfigFieldNumber = 1;
1610 const ::dmi::PonIdConfig& pon_id_config() const;
1611 ::dmi::PonIdConfig* release_pon_id_config();
1612 ::dmi::PonIdConfig* mutable_pon_id_config();
1613 void set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config);
1614
1615 // @@protoc_insertion_point(class_scope:dmi.PortComponentChangeAttributes)
1616 private:
1617 class HasBitSetters;
1618
1619 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1620 ::dmi::PonIdConfig* pon_id_config_;
1621 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1622 friend struct ::TableStruct_dmi_2fhw_2eproto;
1623};
1624// -------------------------------------------------------------------
1625
1626class PonIdConfig final :
1627 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PonIdConfig) */ {
1628 public:
1629 PonIdConfig();
1630 virtual ~PonIdConfig();
1631
1632 PonIdConfig(const PonIdConfig& from);
1633
1634 inline PonIdConfig& operator=(const PonIdConfig& from) {
1635 CopyFrom(from);
1636 return *this;
1637 }
1638 #if LANG_CXX11
1639 PonIdConfig(PonIdConfig&& from) noexcept
1640 : PonIdConfig() {
1641 *this = ::std::move(from);
1642 }
1643
1644 inline PonIdConfig& operator=(PonIdConfig&& from) noexcept {
1645 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1646 if (this != &from) InternalSwap(&from);
1647 } else {
1648 CopyFrom(from);
1649 }
1650 return *this;
1651 }
1652 #endif
1653 static const ::google::protobuf::Descriptor* descriptor() {
1654 return default_instance().GetDescriptor();
1655 }
1656 static const PonIdConfig& default_instance();
1657
1658 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1659 static inline const PonIdConfig* internal_default_instance() {
1660 return reinterpret_cast<const PonIdConfig*>(
1661 &_PonIdConfig_default_instance_);
1662 }
1663 static constexpr int kIndexInFileMessages =
1664 7;
1665
1666 void Swap(PonIdConfig* other);
1667 friend void swap(PonIdConfig& a, PonIdConfig& b) {
1668 a.Swap(&b);
1669 }
1670
1671 // implements Message ----------------------------------------------
1672
1673 inline PonIdConfig* New() const final {
1674 return CreateMaybeMessage<PonIdConfig>(nullptr);
1675 }
1676
1677 PonIdConfig* New(::google::protobuf::Arena* arena) const final {
1678 return CreateMaybeMessage<PonIdConfig>(arena);
1679 }
1680 void CopyFrom(const ::google::protobuf::Message& from) final;
1681 void MergeFrom(const ::google::protobuf::Message& from) final;
1682 void CopyFrom(const PonIdConfig& from);
1683 void MergeFrom(const PonIdConfig& from);
1684 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1685 bool IsInitialized() const final;
1686
1687 size_t ByteSizeLong() const final;
1688 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1689 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1690 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1691 #else
1692 bool MergePartialFromCodedStream(
1693 ::google::protobuf::io::CodedInputStream* input) final;
1694 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1695 void SerializeWithCachedSizes(
1696 ::google::protobuf::io::CodedOutputStream* output) const final;
1697 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1698 ::google::protobuf::uint8* target) const final;
1699 int GetCachedSize() const final { return _cached_size_.Get(); }
1700
1701 private:
1702 void SharedCtor();
1703 void SharedDtor();
1704 void SetCachedSize(int size) const final;
1705 void InternalSwap(PonIdConfig* other);
1706 private:
1707 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1708 return nullptr;
1709 }
1710 inline void* MaybeArenaPtr() const {
1711 return nullptr;
1712 }
1713 public:
1714
1715 ::google::protobuf::Metadata GetMetadata() const final;
1716
1717 // nested types ----------------------------------------------------
1718
1719 // accessors -------------------------------------------------------
1720
1721 // bytes pon_id = 1;
1722 void clear_pon_id();
1723 static const int kPonIdFieldNumber = 1;
1724 const ::std::string& pon_id() const;
1725 void set_pon_id(const ::std::string& value);
1726 #if LANG_CXX11
1727 void set_pon_id(::std::string&& value);
1728 #endif
1729 void set_pon_id(const char* value);
1730 void set_pon_id(const void* value, size_t size);
1731 ::std::string* mutable_pon_id();
1732 ::std::string* release_pon_id();
1733 void set_allocated_pon_id(::std::string* pon_id);
1734
1735 // uint32 pon_id_transmit_periodicity = 2;
1736 void clear_pon_id_transmit_periodicity();
1737 static const int kPonIdTransmitPeriodicityFieldNumber = 2;
1738 ::google::protobuf::uint32 pon_id_transmit_periodicity() const;
1739 void set_pon_id_transmit_periodicity(::google::protobuf::uint32 value);
1740
1741 // @@protoc_insertion_point(class_scope:dmi.PonIdConfig)
1742 private:
1743 class HasBitSetters;
1744
1745 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1746 ::google::protobuf::internal::ArenaStringPtr pon_id_;
1747 ::google::protobuf::uint32 pon_id_transmit_periodicity_;
1748 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1749 friend struct ::TableStruct_dmi_2fhw_2eproto;
1750};
1751// -------------------------------------------------------------------
1752
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301753class ContainerComponentAttributes final :
1754 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ContainerComponentAttributes) */ {
1755 public:
1756 ContainerComponentAttributes();
1757 virtual ~ContainerComponentAttributes();
1758
1759 ContainerComponentAttributes(const ContainerComponentAttributes& from);
1760
1761 inline ContainerComponentAttributes& operator=(const ContainerComponentAttributes& from) {
1762 CopyFrom(from);
1763 return *this;
1764 }
1765 #if LANG_CXX11
1766 ContainerComponentAttributes(ContainerComponentAttributes&& from) noexcept
1767 : ContainerComponentAttributes() {
1768 *this = ::std::move(from);
1769 }
1770
1771 inline ContainerComponentAttributes& operator=(ContainerComponentAttributes&& from) noexcept {
1772 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1773 if (this != &from) InternalSwap(&from);
1774 } else {
1775 CopyFrom(from);
1776 }
1777 return *this;
1778 }
1779 #endif
1780 static const ::google::protobuf::Descriptor* descriptor() {
1781 return default_instance().GetDescriptor();
1782 }
1783 static const ContainerComponentAttributes& default_instance();
1784
1785 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1786 static inline const ContainerComponentAttributes* internal_default_instance() {
1787 return reinterpret_cast<const ContainerComponentAttributes*>(
1788 &_ContainerComponentAttributes_default_instance_);
1789 }
1790 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001791 8;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301792
1793 void Swap(ContainerComponentAttributes* other);
1794 friend void swap(ContainerComponentAttributes& a, ContainerComponentAttributes& b) {
1795 a.Swap(&b);
1796 }
1797
1798 // implements Message ----------------------------------------------
1799
1800 inline ContainerComponentAttributes* New() const final {
1801 return CreateMaybeMessage<ContainerComponentAttributes>(nullptr);
1802 }
1803
1804 ContainerComponentAttributes* New(::google::protobuf::Arena* arena) const final {
1805 return CreateMaybeMessage<ContainerComponentAttributes>(arena);
1806 }
1807 void CopyFrom(const ::google::protobuf::Message& from) final;
1808 void MergeFrom(const ::google::protobuf::Message& from) final;
1809 void CopyFrom(const ContainerComponentAttributes& from);
1810 void MergeFrom(const ContainerComponentAttributes& from);
1811 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1812 bool IsInitialized() const final;
1813
1814 size_t ByteSizeLong() const final;
1815 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1816 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1817 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1818 #else
1819 bool MergePartialFromCodedStream(
1820 ::google::protobuf::io::CodedInputStream* input) final;
1821 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1822 void SerializeWithCachedSizes(
1823 ::google::protobuf::io::CodedOutputStream* output) const final;
1824 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1825 ::google::protobuf::uint8* target) const final;
1826 int GetCachedSize() const final { return _cached_size_.Get(); }
1827
1828 private:
1829 void SharedCtor();
1830 void SharedDtor();
1831 void SetCachedSize(int size) const final;
1832 void InternalSwap(ContainerComponentAttributes* other);
1833 private:
1834 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1835 return nullptr;
1836 }
1837 inline void* MaybeArenaPtr() const {
1838 return nullptr;
1839 }
1840 public:
1841
1842 ::google::protobuf::Metadata GetMetadata() const final;
1843
1844 // nested types ----------------------------------------------------
1845
1846 // accessors -------------------------------------------------------
1847
1848 // string physical_label = 1;
1849 void clear_physical_label();
1850 static const int kPhysicalLabelFieldNumber = 1;
1851 const ::std::string& physical_label() const;
1852 void set_physical_label(const ::std::string& value);
1853 #if LANG_CXX11
1854 void set_physical_label(::std::string&& value);
1855 #endif
1856 void set_physical_label(const char* value);
1857 void set_physical_label(const char* value, size_t size);
1858 ::std::string* mutable_physical_label();
1859 ::std::string* release_physical_label();
1860 void set_allocated_physical_label(::std::string* physical_label);
1861
1862 // @@protoc_insertion_point(class_scope:dmi.ContainerComponentAttributes)
1863 private:
1864 class HasBitSetters;
1865
1866 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1867 ::google::protobuf::internal::ArenaStringPtr physical_label_;
1868 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1869 friend struct ::TableStruct_dmi_2fhw_2eproto;
1870};
1871// -------------------------------------------------------------------
1872
1873class PsuComponentAttributes final :
1874 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PsuComponentAttributes) */ {
1875 public:
1876 PsuComponentAttributes();
1877 virtual ~PsuComponentAttributes();
1878
1879 PsuComponentAttributes(const PsuComponentAttributes& from);
1880
1881 inline PsuComponentAttributes& operator=(const PsuComponentAttributes& from) {
1882 CopyFrom(from);
1883 return *this;
1884 }
1885 #if LANG_CXX11
1886 PsuComponentAttributes(PsuComponentAttributes&& from) noexcept
1887 : PsuComponentAttributes() {
1888 *this = ::std::move(from);
1889 }
1890
1891 inline PsuComponentAttributes& operator=(PsuComponentAttributes&& from) noexcept {
1892 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1893 if (this != &from) InternalSwap(&from);
1894 } else {
1895 CopyFrom(from);
1896 }
1897 return *this;
1898 }
1899 #endif
1900 static const ::google::protobuf::Descriptor* descriptor() {
1901 return default_instance().GetDescriptor();
1902 }
1903 static const PsuComponentAttributes& default_instance();
1904
1905 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1906 static inline const PsuComponentAttributes* internal_default_instance() {
1907 return reinterpret_cast<const PsuComponentAttributes*>(
1908 &_PsuComponentAttributes_default_instance_);
1909 }
1910 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001911 9;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301912
1913 void Swap(PsuComponentAttributes* other);
1914 friend void swap(PsuComponentAttributes& a, PsuComponentAttributes& b) {
1915 a.Swap(&b);
1916 }
1917
1918 // implements Message ----------------------------------------------
1919
1920 inline PsuComponentAttributes* New() const final {
1921 return CreateMaybeMessage<PsuComponentAttributes>(nullptr);
1922 }
1923
1924 PsuComponentAttributes* New(::google::protobuf::Arena* arena) const final {
1925 return CreateMaybeMessage<PsuComponentAttributes>(arena);
1926 }
1927 void CopyFrom(const ::google::protobuf::Message& from) final;
1928 void MergeFrom(const ::google::protobuf::Message& from) final;
1929 void CopyFrom(const PsuComponentAttributes& from);
1930 void MergeFrom(const PsuComponentAttributes& from);
1931 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1932 bool IsInitialized() const final;
1933
1934 size_t ByteSizeLong() const final;
1935 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1936 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1937 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1938 #else
1939 bool MergePartialFromCodedStream(
1940 ::google::protobuf::io::CodedInputStream* input) final;
1941 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1942 void SerializeWithCachedSizes(
1943 ::google::protobuf::io::CodedOutputStream* output) const final;
1944 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1945 ::google::protobuf::uint8* target) const final;
1946 int GetCachedSize() const final { return _cached_size_.Get(); }
1947
1948 private:
1949 void SharedCtor();
1950 void SharedDtor();
1951 void SetCachedSize(int size) const final;
1952 void InternalSwap(PsuComponentAttributes* other);
1953 private:
1954 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1955 return nullptr;
1956 }
1957 inline void* MaybeArenaPtr() const {
1958 return nullptr;
1959 }
1960 public:
1961
1962 ::google::protobuf::Metadata GetMetadata() const final;
1963
1964 // nested types ----------------------------------------------------
1965
1966 typedef PsuComponentAttributes_SupportedVoltage SupportedVoltage;
1967 static const SupportedVoltage SUPPORTED_VOLTAGE_UNDEFINED =
1968 PsuComponentAttributes_SupportedVoltage_SUPPORTED_VOLTAGE_UNDEFINED;
1969 static const SupportedVoltage V48 =
1970 PsuComponentAttributes_SupportedVoltage_V48;
1971 static const SupportedVoltage V230 =
1972 PsuComponentAttributes_SupportedVoltage_V230;
1973 static const SupportedVoltage V115 =
1974 PsuComponentAttributes_SupportedVoltage_V115;
1975 static inline bool SupportedVoltage_IsValid(int value) {
1976 return PsuComponentAttributes_SupportedVoltage_IsValid(value);
1977 }
1978 static const SupportedVoltage SupportedVoltage_MIN =
1979 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MIN;
1980 static const SupportedVoltage SupportedVoltage_MAX =
1981 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MAX;
1982 static const int SupportedVoltage_ARRAYSIZE =
1983 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_ARRAYSIZE;
1984 static inline const ::google::protobuf::EnumDescriptor*
1985 SupportedVoltage_descriptor() {
1986 return PsuComponentAttributes_SupportedVoltage_descriptor();
1987 }
1988 static inline const ::std::string& SupportedVoltage_Name(SupportedVoltage value) {
1989 return PsuComponentAttributes_SupportedVoltage_Name(value);
1990 }
1991 static inline bool SupportedVoltage_Parse(const ::std::string& name,
1992 SupportedVoltage* value) {
1993 return PsuComponentAttributes_SupportedVoltage_Parse(name, value);
1994 }
1995
1996 // accessors -------------------------------------------------------
1997
1998 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
1999 void clear_supported_voltage();
2000 static const int kSupportedVoltageFieldNumber = 1;
2001 ::dmi::PsuComponentAttributes_SupportedVoltage supported_voltage() const;
2002 void set_supported_voltage(::dmi::PsuComponentAttributes_SupportedVoltage value);
2003
2004 // @@protoc_insertion_point(class_scope:dmi.PsuComponentAttributes)
2005 private:
2006 class HasBitSetters;
2007
2008 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2009 int supported_voltage_;
2010 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2011 friend struct ::TableStruct_dmi_2fhw_2eproto;
2012};
2013// -------------------------------------------------------------------
2014
2015class TransceiverComponentsAttributes final :
2016 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.TransceiverComponentsAttributes) */ {
2017 public:
2018 TransceiverComponentsAttributes();
2019 virtual ~TransceiverComponentsAttributes();
2020
2021 TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from);
2022
2023 inline TransceiverComponentsAttributes& operator=(const TransceiverComponentsAttributes& from) {
2024 CopyFrom(from);
2025 return *this;
2026 }
2027 #if LANG_CXX11
2028 TransceiverComponentsAttributes(TransceiverComponentsAttributes&& from) noexcept
2029 : TransceiverComponentsAttributes() {
2030 *this = ::std::move(from);
2031 }
2032
2033 inline TransceiverComponentsAttributes& operator=(TransceiverComponentsAttributes&& from) noexcept {
2034 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2035 if (this != &from) InternalSwap(&from);
2036 } else {
2037 CopyFrom(from);
2038 }
2039 return *this;
2040 }
2041 #endif
2042 static const ::google::protobuf::Descriptor* descriptor() {
2043 return default_instance().GetDescriptor();
2044 }
2045 static const TransceiverComponentsAttributes& default_instance();
2046
2047 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2048 static inline const TransceiverComponentsAttributes* internal_default_instance() {
2049 return reinterpret_cast<const TransceiverComponentsAttributes*>(
2050 &_TransceiverComponentsAttributes_default_instance_);
2051 }
2052 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002053 10;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302054
2055 void Swap(TransceiverComponentsAttributes* other);
2056 friend void swap(TransceiverComponentsAttributes& a, TransceiverComponentsAttributes& b) {
2057 a.Swap(&b);
2058 }
2059
2060 // implements Message ----------------------------------------------
2061
2062 inline TransceiverComponentsAttributes* New() const final {
2063 return CreateMaybeMessage<TransceiverComponentsAttributes>(nullptr);
2064 }
2065
2066 TransceiverComponentsAttributes* New(::google::protobuf::Arena* arena) const final {
2067 return CreateMaybeMessage<TransceiverComponentsAttributes>(arena);
2068 }
2069 void CopyFrom(const ::google::protobuf::Message& from) final;
2070 void MergeFrom(const ::google::protobuf::Message& from) final;
2071 void CopyFrom(const TransceiverComponentsAttributes& from);
2072 void MergeFrom(const TransceiverComponentsAttributes& from);
2073 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2074 bool IsInitialized() const final;
2075
2076 size_t ByteSizeLong() const final;
2077 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2078 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2079 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2080 #else
2081 bool MergePartialFromCodedStream(
2082 ::google::protobuf::io::CodedInputStream* input) final;
2083 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2084 void SerializeWithCachedSizes(
2085 ::google::protobuf::io::CodedOutputStream* output) const final;
2086 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2087 ::google::protobuf::uint8* target) const final;
2088 int GetCachedSize() const final { return _cached_size_.Get(); }
2089
2090 private:
2091 void SharedCtor();
2092 void SharedDtor();
2093 void SetCachedSize(int size) const final;
2094 void InternalSwap(TransceiverComponentsAttributes* other);
2095 private:
2096 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2097 return nullptr;
2098 }
2099 inline void* MaybeArenaPtr() const {
2100 return nullptr;
2101 }
2102 public:
2103
2104 ::google::protobuf::Metadata GetMetadata() const final;
2105
2106 // nested types ----------------------------------------------------
2107
2108 typedef TransceiverComponentsAttributes_FormFactor FormFactor;
2109 static const FormFactor FORM_FACTOR_UNKNOWN =
2110 TransceiverComponentsAttributes_FormFactor_FORM_FACTOR_UNKNOWN;
2111 static const FormFactor QSFP =
2112 TransceiverComponentsAttributes_FormFactor_QSFP;
2113 static const FormFactor QSFP_PLUS =
2114 TransceiverComponentsAttributes_FormFactor_QSFP_PLUS;
2115 static const FormFactor QSFP28 =
2116 TransceiverComponentsAttributes_FormFactor_QSFP28;
2117 static const FormFactor SFP =
2118 TransceiverComponentsAttributes_FormFactor_SFP;
2119 static const FormFactor SFP_PLUS =
2120 TransceiverComponentsAttributes_FormFactor_SFP_PLUS;
2121 static const FormFactor XFP =
2122 TransceiverComponentsAttributes_FormFactor_XFP;
2123 static const FormFactor CFP4 =
2124 TransceiverComponentsAttributes_FormFactor_CFP4;
2125 static const FormFactor CFP2 =
2126 TransceiverComponentsAttributes_FormFactor_CFP2;
2127 static const FormFactor CPAK =
2128 TransceiverComponentsAttributes_FormFactor_CPAK;
2129 static const FormFactor X2 =
2130 TransceiverComponentsAttributes_FormFactor_X2;
2131 static const FormFactor OTHER =
2132 TransceiverComponentsAttributes_FormFactor_OTHER;
2133 static const FormFactor CFP =
2134 TransceiverComponentsAttributes_FormFactor_CFP;
2135 static const FormFactor CFP2_ACO =
2136 TransceiverComponentsAttributes_FormFactor_CFP2_ACO;
2137 static const FormFactor CFP2_DCO =
2138 TransceiverComponentsAttributes_FormFactor_CFP2_DCO;
2139 static inline bool FormFactor_IsValid(int value) {
2140 return TransceiverComponentsAttributes_FormFactor_IsValid(value);
2141 }
2142 static const FormFactor FormFactor_MIN =
2143 TransceiverComponentsAttributes_FormFactor_FormFactor_MIN;
2144 static const FormFactor FormFactor_MAX =
2145 TransceiverComponentsAttributes_FormFactor_FormFactor_MAX;
2146 static const int FormFactor_ARRAYSIZE =
2147 TransceiverComponentsAttributes_FormFactor_FormFactor_ARRAYSIZE;
2148 static inline const ::google::protobuf::EnumDescriptor*
2149 FormFactor_descriptor() {
2150 return TransceiverComponentsAttributes_FormFactor_descriptor();
2151 }
2152 static inline const ::std::string& FormFactor_Name(FormFactor value) {
2153 return TransceiverComponentsAttributes_FormFactor_Name(value);
2154 }
2155 static inline bool FormFactor_Parse(const ::std::string& name,
2156 FormFactor* value) {
2157 return TransceiverComponentsAttributes_FormFactor_Parse(name, value);
2158 }
2159
2160 typedef TransceiverComponentsAttributes_Type Type;
2161 static const Type TYPE_UNKNOWN =
2162 TransceiverComponentsAttributes_Type_TYPE_UNKNOWN;
2163 static const Type ETHERNET =
2164 TransceiverComponentsAttributes_Type_ETHERNET;
2165 static const Type GPON =
2166 TransceiverComponentsAttributes_Type_GPON;
2167 static const Type XGPON =
2168 TransceiverComponentsAttributes_Type_XGPON;
2169 static const Type XGSPON =
2170 TransceiverComponentsAttributes_Type_XGSPON;
2171 static const Type CPON =
2172 TransceiverComponentsAttributes_Type_CPON;
2173 static const Type NG_PON2 =
2174 TransceiverComponentsAttributes_Type_NG_PON2;
2175 static const Type EPON =
2176 TransceiverComponentsAttributes_Type_EPON;
2177 static inline bool Type_IsValid(int value) {
2178 return TransceiverComponentsAttributes_Type_IsValid(value);
2179 }
2180 static const Type Type_MIN =
2181 TransceiverComponentsAttributes_Type_Type_MIN;
2182 static const Type Type_MAX =
2183 TransceiverComponentsAttributes_Type_Type_MAX;
2184 static const int Type_ARRAYSIZE =
2185 TransceiverComponentsAttributes_Type_Type_ARRAYSIZE;
2186 static inline const ::google::protobuf::EnumDescriptor*
2187 Type_descriptor() {
2188 return TransceiverComponentsAttributes_Type_descriptor();
2189 }
2190 static inline const ::std::string& Type_Name(Type value) {
2191 return TransceiverComponentsAttributes_Type_Name(value);
2192 }
2193 static inline bool Type_Parse(const ::std::string& name,
2194 Type* value) {
2195 return TransceiverComponentsAttributes_Type_Parse(name, value);
2196 }
2197
2198 // accessors -------------------------------------------------------
2199
2200 // repeated uint32 rx_wavelength = 5;
2201 int rx_wavelength_size() const;
2202 void clear_rx_wavelength();
2203 static const int kRxWavelengthFieldNumber = 5;
2204 ::google::protobuf::uint32 rx_wavelength(int index) const;
2205 void set_rx_wavelength(int index, ::google::protobuf::uint32 value);
2206 void add_rx_wavelength(::google::protobuf::uint32 value);
2207 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2208 rx_wavelength() const;
2209 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2210 mutable_rx_wavelength();
2211
2212 // repeated uint32 tx_wavelength = 6;
2213 int tx_wavelength_size() const;
2214 void clear_tx_wavelength();
2215 static const int kTxWavelengthFieldNumber = 6;
2216 ::google::protobuf::uint32 tx_wavelength(int index) const;
2217 void set_tx_wavelength(int index, ::google::protobuf::uint32 value);
2218 void add_tx_wavelength(::google::protobuf::uint32 value);
2219 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2220 tx_wavelength() const;
2221 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2222 mutable_tx_wavelength();
2223
2224 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
2225 void clear_form_factor();
2226 static const int kFormFactorFieldNumber = 1;
2227 ::dmi::TransceiverComponentsAttributes_FormFactor form_factor() const;
2228 void set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value);
2229
2230 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
2231 void clear_trans_type();
2232 static const int kTransTypeFieldNumber = 2;
2233 ::dmi::TransceiverComponentsAttributes_Type trans_type() const;
2234 void set_trans_type(::dmi::TransceiverComponentsAttributes_Type value);
2235
2236 // uint32 max_distance = 3;
2237 void clear_max_distance();
2238 static const int kMaxDistanceFieldNumber = 3;
2239 ::google::protobuf::uint32 max_distance() const;
2240 void set_max_distance(::google::protobuf::uint32 value);
2241
2242 // .dmi.ValueScale max_distance_scale = 4;
2243 void clear_max_distance_scale();
2244 static const int kMaxDistanceScaleFieldNumber = 4;
2245 ::dmi::ValueScale max_distance_scale() const;
2246 void set_max_distance_scale(::dmi::ValueScale value);
2247
2248 // .dmi.ValueScale wavelength_scale = 7;
2249 void clear_wavelength_scale();
2250 static const int kWavelengthScaleFieldNumber = 7;
2251 ::dmi::ValueScale wavelength_scale() const;
2252 void set_wavelength_scale(::dmi::ValueScale value);
2253
2254 // @@protoc_insertion_point(class_scope:dmi.TransceiverComponentsAttributes)
2255 private:
2256 class HasBitSetters;
2257
2258 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2259 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rx_wavelength_;
2260 mutable std::atomic<int> _rx_wavelength_cached_byte_size_;
2261 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > tx_wavelength_;
2262 mutable std::atomic<int> _tx_wavelength_cached_byte_size_;
2263 int form_factor_;
2264 int trans_type_;
2265 ::google::protobuf::uint32 max_distance_;
2266 int max_distance_scale_;
2267 int wavelength_scale_;
2268 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2269 friend struct ::TableStruct_dmi_2fhw_2eproto;
2270};
2271// -------------------------------------------------------------------
2272
2273class Component final :
2274 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Component) */ {
2275 public:
2276 Component();
2277 virtual ~Component();
2278
2279 Component(const Component& from);
2280
2281 inline Component& operator=(const Component& from) {
2282 CopyFrom(from);
2283 return *this;
2284 }
2285 #if LANG_CXX11
2286 Component(Component&& from) noexcept
2287 : Component() {
2288 *this = ::std::move(from);
2289 }
2290
2291 inline Component& operator=(Component&& from) noexcept {
2292 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2293 if (this != &from) InternalSwap(&from);
2294 } else {
2295 CopyFrom(from);
2296 }
2297 return *this;
2298 }
2299 #endif
2300 static const ::google::protobuf::Descriptor* descriptor() {
2301 return default_instance().GetDescriptor();
2302 }
2303 static const Component& default_instance();
2304
2305 enum SpecificCase {
2306 kPortAttr = 50,
2307 kContainerAttr = 51,
2308 kPsuAttr = 52,
2309 kTransceiverAttr = 53,
2310 SPECIFIC_NOT_SET = 0,
2311 };
2312
2313 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2314 static inline const Component* internal_default_instance() {
2315 return reinterpret_cast<const Component*>(
2316 &_Component_default_instance_);
2317 }
2318 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002319 11;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302320
2321 void Swap(Component* other);
2322 friend void swap(Component& a, Component& b) {
2323 a.Swap(&b);
2324 }
2325
2326 // implements Message ----------------------------------------------
2327
2328 inline Component* New() const final {
2329 return CreateMaybeMessage<Component>(nullptr);
2330 }
2331
2332 Component* New(::google::protobuf::Arena* arena) const final {
2333 return CreateMaybeMessage<Component>(arena);
2334 }
2335 void CopyFrom(const ::google::protobuf::Message& from) final;
2336 void MergeFrom(const ::google::protobuf::Message& from) final;
2337 void CopyFrom(const Component& from);
2338 void MergeFrom(const Component& from);
2339 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2340 bool IsInitialized() const final;
2341
2342 size_t ByteSizeLong() const final;
2343 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2344 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2345 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2346 #else
2347 bool MergePartialFromCodedStream(
2348 ::google::protobuf::io::CodedInputStream* input) final;
2349 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2350 void SerializeWithCachedSizes(
2351 ::google::protobuf::io::CodedOutputStream* output) const final;
2352 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2353 ::google::protobuf::uint8* target) const final;
2354 int GetCachedSize() const final { return _cached_size_.Get(); }
2355
2356 private:
2357 void SharedCtor();
2358 void SharedDtor();
2359 void SetCachedSize(int size) const final;
2360 void InternalSwap(Component* other);
2361 private:
2362 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2363 return nullptr;
2364 }
2365 inline void* MaybeArenaPtr() const {
2366 return nullptr;
2367 }
2368 public:
2369
2370 ::google::protobuf::Metadata GetMetadata() const final;
2371
2372 // nested types ----------------------------------------------------
2373
2374 // accessors -------------------------------------------------------
2375
2376 // repeated .dmi.Component children = 6;
2377 int children_size() const;
2378 void clear_children();
2379 static const int kChildrenFieldNumber = 6;
2380 ::dmi::Component* mutable_children(int index);
2381 ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
2382 mutable_children();
2383 const ::dmi::Component& children(int index) const;
2384 ::dmi::Component* add_children();
2385 const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
2386 children() const;
2387
2388 // repeated .dmi.ComponentSensorData sensor_data = 20;
2389 int sensor_data_size() const;
2390 void clear_sensor_data();
2391 static const int kSensorDataFieldNumber = 20;
2392 ::dmi::ComponentSensorData* mutable_sensor_data(int index);
2393 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
2394 mutable_sensor_data();
2395 const ::dmi::ComponentSensorData& sensor_data(int index) const;
2396 ::dmi::ComponentSensorData* add_sensor_data();
2397 const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
2398 sensor_data() const;
2399
2400 // string name = 1;
2401 void clear_name();
2402 static const int kNameFieldNumber = 1;
2403 const ::std::string& name() const;
2404 void set_name(const ::std::string& value);
2405 #if LANG_CXX11
2406 void set_name(::std::string&& value);
2407 #endif
2408 void set_name(const char* value);
2409 void set_name(const char* value, size_t size);
2410 ::std::string* mutable_name();
2411 ::std::string* release_name();
2412 void set_allocated_name(::std::string* name);
2413
2414 // string description = 3;
2415 void clear_description();
2416 static const int kDescriptionFieldNumber = 3;
2417 const ::std::string& description() const;
2418 void set_description(const ::std::string& value);
2419 #if LANG_CXX11
2420 void set_description(::std::string&& value);
2421 #endif
2422 void set_description(const char* value);
2423 void set_description(const char* value, size_t size);
2424 ::std::string* mutable_description();
2425 ::std::string* release_description();
2426 void set_allocated_description(::std::string* description);
2427
2428 // string parent = 4;
2429 void clear_parent();
2430 static const int kParentFieldNumber = 4;
2431 const ::std::string& parent() const;
2432 void set_parent(const ::std::string& value);
2433 #if LANG_CXX11
2434 void set_parent(::std::string&& value);
2435 #endif
2436 void set_parent(const char* value);
2437 void set_parent(const char* value, size_t size);
2438 ::std::string* mutable_parent();
2439 ::std::string* release_parent();
2440 void set_allocated_parent(::std::string* parent);
2441
2442 // string hardware_rev = 7;
2443 void clear_hardware_rev();
2444 static const int kHardwareRevFieldNumber = 7;
2445 const ::std::string& hardware_rev() const;
2446 void set_hardware_rev(const ::std::string& value);
2447 #if LANG_CXX11
2448 void set_hardware_rev(::std::string&& value);
2449 #endif
2450 void set_hardware_rev(const char* value);
2451 void set_hardware_rev(const char* value, size_t size);
2452 ::std::string* mutable_hardware_rev();
2453 ::std::string* release_hardware_rev();
2454 void set_allocated_hardware_rev(::std::string* hardware_rev);
2455
2456 // string firmware_rev = 8;
2457 void clear_firmware_rev();
2458 static const int kFirmwareRevFieldNumber = 8;
2459 const ::std::string& firmware_rev() const;
2460 void set_firmware_rev(const ::std::string& value);
2461 #if LANG_CXX11
2462 void set_firmware_rev(::std::string&& value);
2463 #endif
2464 void set_firmware_rev(const char* value);
2465 void set_firmware_rev(const char* value, size_t size);
2466 ::std::string* mutable_firmware_rev();
2467 ::std::string* release_firmware_rev();
2468 void set_allocated_firmware_rev(::std::string* firmware_rev);
2469
2470 // string software_rev = 9;
2471 void clear_software_rev();
2472 static const int kSoftwareRevFieldNumber = 9;
2473 const ::std::string& software_rev() const;
2474 void set_software_rev(const ::std::string& value);
2475 #if LANG_CXX11
2476 void set_software_rev(::std::string&& value);
2477 #endif
2478 void set_software_rev(const char* value);
2479 void set_software_rev(const char* value, size_t size);
2480 ::std::string* mutable_software_rev();
2481 ::std::string* release_software_rev();
2482 void set_allocated_software_rev(::std::string* software_rev);
2483
2484 // string serial_num = 10;
2485 void clear_serial_num();
2486 static const int kSerialNumFieldNumber = 10;
2487 const ::std::string& serial_num() const;
2488 void set_serial_num(const ::std::string& value);
2489 #if LANG_CXX11
2490 void set_serial_num(::std::string&& value);
2491 #endif
2492 void set_serial_num(const char* value);
2493 void set_serial_num(const char* value, size_t size);
2494 ::std::string* mutable_serial_num();
2495 ::std::string* release_serial_num();
2496 void set_allocated_serial_num(::std::string* serial_num);
2497
2498 // string mfg_name = 11;
2499 void clear_mfg_name();
2500 static const int kMfgNameFieldNumber = 11;
2501 const ::std::string& mfg_name() const;
2502 void set_mfg_name(const ::std::string& value);
2503 #if LANG_CXX11
2504 void set_mfg_name(::std::string&& value);
2505 #endif
2506 void set_mfg_name(const char* value);
2507 void set_mfg_name(const char* value, size_t size);
2508 ::std::string* mutable_mfg_name();
2509 ::std::string* release_mfg_name();
2510 void set_allocated_mfg_name(::std::string* mfg_name);
2511
2512 // string model_name = 12;
2513 void clear_model_name();
2514 static const int kModelNameFieldNumber = 12;
2515 const ::std::string& model_name() const;
2516 void set_model_name(const ::std::string& value);
2517 #if LANG_CXX11
2518 void set_model_name(::std::string&& value);
2519 #endif
2520 void set_model_name(const char* value);
2521 void set_model_name(const char* value, size_t size);
2522 ::std::string* mutable_model_name();
2523 ::std::string* release_model_name();
2524 void set_allocated_model_name(::std::string* model_name);
2525
2526 // string alias = 13;
2527 void clear_alias();
2528 static const int kAliasFieldNumber = 13;
2529 const ::std::string& alias() const;
2530 void set_alias(const ::std::string& value);
2531 #if LANG_CXX11
2532 void set_alias(::std::string&& value);
2533 #endif
2534 void set_alias(const char* value);
2535 void set_alias(const char* value, size_t size);
2536 ::std::string* mutable_alias();
2537 ::std::string* release_alias();
2538 void set_allocated_alias(::std::string* alias);
2539
2540 // string asset_id = 14;
2541 void clear_asset_id();
2542 static const int kAssetIdFieldNumber = 14;
2543 const ::std::string& asset_id() const;
2544 void set_asset_id(const ::std::string& value);
2545 #if LANG_CXX11
2546 void set_asset_id(::std::string&& value);
2547 #endif
2548 void set_asset_id(const char* value);
2549 void set_asset_id(const char* value, size_t size);
2550 ::std::string* mutable_asset_id();
2551 ::std::string* release_asset_id();
2552 void set_allocated_asset_id(::std::string* asset_id);
2553
2554 // .google.protobuf.Timestamp mfg_date = 16;
2555 bool has_mfg_date() const;
2556 void clear_mfg_date();
2557 static const int kMfgDateFieldNumber = 16;
2558 const ::google::protobuf::Timestamp& mfg_date() const;
2559 ::google::protobuf::Timestamp* release_mfg_date();
2560 ::google::protobuf::Timestamp* mutable_mfg_date();
2561 void set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date);
2562
2563 // .dmi.Uri uri = 17;
2564 bool has_uri() const;
2565 void clear_uri();
2566 static const int kUriFieldNumber = 17;
2567 const ::dmi::Uri& uri() const;
2568 ::dmi::Uri* release_uri();
2569 ::dmi::Uri* mutable_uri();
2570 void set_allocated_uri(::dmi::Uri* uri);
2571
2572 // .dmi.Uuid uuid = 18;
2573 bool has_uuid() const;
2574 void clear_uuid();
2575 static const int kUuidFieldNumber = 18;
2576 const ::dmi::Uuid& uuid() const;
2577 ::dmi::Uuid* release_uuid();
2578 ::dmi::Uuid* mutable_uuid();
2579 void set_allocated_uuid(::dmi::Uuid* uuid);
2580
2581 // .dmi.ComponentState state = 19;
2582 bool has_state() const;
2583 void clear_state();
2584 static const int kStateFieldNumber = 19;
2585 const ::dmi::ComponentState& state() const;
2586 ::dmi::ComponentState* release_state();
2587 ::dmi::ComponentState* mutable_state();
2588 void set_allocated_state(::dmi::ComponentState* state);
2589
2590 // .dmi.ComponentType class = 2;
2591 void clear_class_();
2592 static const int kClassFieldNumber = 2;
2593 ::dmi::ComponentType class_() const;
2594 void set_class_(::dmi::ComponentType value);
2595
2596 // int32 parent_rel_pos = 5;
2597 void clear_parent_rel_pos();
2598 static const int kParentRelPosFieldNumber = 5;
2599 ::google::protobuf::int32 parent_rel_pos() const;
2600 void set_parent_rel_pos(::google::protobuf::int32 value);
2601
2602 // bool is_fru = 15;
2603 void clear_is_fru();
2604 static const int kIsFruFieldNumber = 15;
2605 bool is_fru() const;
2606 void set_is_fru(bool value);
2607
2608 // .dmi.PortComponentAttributes port_attr = 50;
2609 bool has_port_attr() const;
2610 void clear_port_attr();
2611 static const int kPortAttrFieldNumber = 50;
2612 const ::dmi::PortComponentAttributes& port_attr() const;
2613 ::dmi::PortComponentAttributes* release_port_attr();
2614 ::dmi::PortComponentAttributes* mutable_port_attr();
2615 void set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr);
2616
2617 // .dmi.ContainerComponentAttributes container_attr = 51;
2618 bool has_container_attr() const;
2619 void clear_container_attr();
2620 static const int kContainerAttrFieldNumber = 51;
2621 const ::dmi::ContainerComponentAttributes& container_attr() const;
2622 ::dmi::ContainerComponentAttributes* release_container_attr();
2623 ::dmi::ContainerComponentAttributes* mutable_container_attr();
2624 void set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr);
2625
2626 // .dmi.PsuComponentAttributes psu_attr = 52;
2627 bool has_psu_attr() const;
2628 void clear_psu_attr();
2629 static const int kPsuAttrFieldNumber = 52;
2630 const ::dmi::PsuComponentAttributes& psu_attr() const;
2631 ::dmi::PsuComponentAttributes* release_psu_attr();
2632 ::dmi::PsuComponentAttributes* mutable_psu_attr();
2633 void set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr);
2634
2635 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
2636 bool has_transceiver_attr() const;
2637 void clear_transceiver_attr();
2638 static const int kTransceiverAttrFieldNumber = 53;
2639 const ::dmi::TransceiverComponentsAttributes& transceiver_attr() const;
2640 ::dmi::TransceiverComponentsAttributes* release_transceiver_attr();
2641 ::dmi::TransceiverComponentsAttributes* mutable_transceiver_attr();
2642 void set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr);
2643
2644 void clear_specific();
2645 SpecificCase specific_case() const;
2646 // @@protoc_insertion_point(class_scope:dmi.Component)
2647 private:
2648 class HasBitSetters;
2649 void set_has_port_attr();
2650 void set_has_container_attr();
2651 void set_has_psu_attr();
2652 void set_has_transceiver_attr();
2653
2654 inline bool has_specific() const;
2655 inline void clear_has_specific();
2656
2657 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2658 ::google::protobuf::RepeatedPtrField< ::dmi::Component > children_;
2659 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData > sensor_data_;
2660 ::google::protobuf::internal::ArenaStringPtr name_;
2661 ::google::protobuf::internal::ArenaStringPtr description_;
2662 ::google::protobuf::internal::ArenaStringPtr parent_;
2663 ::google::protobuf::internal::ArenaStringPtr hardware_rev_;
2664 ::google::protobuf::internal::ArenaStringPtr firmware_rev_;
2665 ::google::protobuf::internal::ArenaStringPtr software_rev_;
2666 ::google::protobuf::internal::ArenaStringPtr serial_num_;
2667 ::google::protobuf::internal::ArenaStringPtr mfg_name_;
2668 ::google::protobuf::internal::ArenaStringPtr model_name_;
2669 ::google::protobuf::internal::ArenaStringPtr alias_;
2670 ::google::protobuf::internal::ArenaStringPtr asset_id_;
2671 ::google::protobuf::Timestamp* mfg_date_;
2672 ::dmi::Uri* uri_;
2673 ::dmi::Uuid* uuid_;
2674 ::dmi::ComponentState* state_;
2675 int class__;
2676 ::google::protobuf::int32 parent_rel_pos_;
2677 bool is_fru_;
2678 union SpecificUnion {
2679 SpecificUnion() {}
2680 ::dmi::PortComponentAttributes* port_attr_;
2681 ::dmi::ContainerComponentAttributes* container_attr_;
2682 ::dmi::PsuComponentAttributes* psu_attr_;
2683 ::dmi::TransceiverComponentsAttributes* transceiver_attr_;
2684 } specific_;
2685 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2686 ::google::protobuf::uint32 _oneof_case_[1];
2687
2688 friend struct ::TableStruct_dmi_2fhw_2eproto;
2689};
2690// -------------------------------------------------------------------
2691
2692class Hardware final :
2693 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Hardware) */ {
2694 public:
2695 Hardware();
2696 virtual ~Hardware();
2697
2698 Hardware(const Hardware& from);
2699
2700 inline Hardware& operator=(const Hardware& from) {
2701 CopyFrom(from);
2702 return *this;
2703 }
2704 #if LANG_CXX11
2705 Hardware(Hardware&& from) noexcept
2706 : Hardware() {
2707 *this = ::std::move(from);
2708 }
2709
2710 inline Hardware& operator=(Hardware&& from) noexcept {
2711 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2712 if (this != &from) InternalSwap(&from);
2713 } else {
2714 CopyFrom(from);
2715 }
2716 return *this;
2717 }
2718 #endif
2719 static const ::google::protobuf::Descriptor* descriptor() {
2720 return default_instance().GetDescriptor();
2721 }
2722 static const Hardware& default_instance();
2723
2724 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2725 static inline const Hardware* internal_default_instance() {
2726 return reinterpret_cast<const Hardware*>(
2727 &_Hardware_default_instance_);
2728 }
2729 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002730 12;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302731
2732 void Swap(Hardware* other);
2733 friend void swap(Hardware& a, Hardware& b) {
2734 a.Swap(&b);
2735 }
2736
2737 // implements Message ----------------------------------------------
2738
2739 inline Hardware* New() const final {
2740 return CreateMaybeMessage<Hardware>(nullptr);
2741 }
2742
2743 Hardware* New(::google::protobuf::Arena* arena) const final {
2744 return CreateMaybeMessage<Hardware>(arena);
2745 }
2746 void CopyFrom(const ::google::protobuf::Message& from) final;
2747 void MergeFrom(const ::google::protobuf::Message& from) final;
2748 void CopyFrom(const Hardware& from);
2749 void MergeFrom(const Hardware& from);
2750 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2751 bool IsInitialized() const final;
2752
2753 size_t ByteSizeLong() const final;
2754 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2755 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2756 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2757 #else
2758 bool MergePartialFromCodedStream(
2759 ::google::protobuf::io::CodedInputStream* input) final;
2760 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2761 void SerializeWithCachedSizes(
2762 ::google::protobuf::io::CodedOutputStream* output) const final;
2763 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2764 ::google::protobuf::uint8* target) const final;
2765 int GetCachedSize() const final { return _cached_size_.Get(); }
2766
2767 private:
2768 void SharedCtor();
2769 void SharedDtor();
2770 void SetCachedSize(int size) const final;
2771 void InternalSwap(Hardware* other);
2772 private:
2773 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2774 return nullptr;
2775 }
2776 inline void* MaybeArenaPtr() const {
2777 return nullptr;
2778 }
2779 public:
2780
2781 ::google::protobuf::Metadata GetMetadata() const final;
2782
2783 // nested types ----------------------------------------------------
2784
2785 // accessors -------------------------------------------------------
2786
2787 // .google.protobuf.Timestamp last_change = 1;
2788 bool has_last_change() const;
2789 void clear_last_change();
2790 static const int kLastChangeFieldNumber = 1;
2791 const ::google::protobuf::Timestamp& last_change() const;
2792 ::google::protobuf::Timestamp* release_last_change();
2793 ::google::protobuf::Timestamp* mutable_last_change();
2794 void set_allocated_last_change(::google::protobuf::Timestamp* last_change);
2795
2796 // .dmi.Component root = 2;
2797 bool has_root() const;
2798 void clear_root();
2799 static const int kRootFieldNumber = 2;
2800 const ::dmi::Component& root() const;
2801 ::dmi::Component* release_root();
2802 ::dmi::Component* mutable_root();
2803 void set_allocated_root(::dmi::Component* root);
2804
2805 // .google.protobuf.Timestamp last_booted = 3;
2806 bool has_last_booted() const;
2807 void clear_last_booted();
2808 static const int kLastBootedFieldNumber = 3;
2809 const ::google::protobuf::Timestamp& last_booted() const;
2810 ::google::protobuf::Timestamp* release_last_booted();
2811 ::google::protobuf::Timestamp* mutable_last_booted();
2812 void set_allocated_last_booted(::google::protobuf::Timestamp* last_booted);
2813
2814 // @@protoc_insertion_point(class_scope:dmi.Hardware)
2815 private:
2816 class HasBitSetters;
2817
2818 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2819 ::google::protobuf::Timestamp* last_change_;
2820 ::dmi::Component* root_;
2821 ::google::protobuf::Timestamp* last_booted_;
2822 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2823 friend struct ::TableStruct_dmi_2fhw_2eproto;
2824};
2825// -------------------------------------------------------------------
2826
2827class ModifiableComponent final :
2828 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ModifiableComponent) */ {
2829 public:
2830 ModifiableComponent();
2831 virtual ~ModifiableComponent();
2832
2833 ModifiableComponent(const ModifiableComponent& from);
2834
2835 inline ModifiableComponent& operator=(const ModifiableComponent& from) {
2836 CopyFrom(from);
2837 return *this;
2838 }
2839 #if LANG_CXX11
2840 ModifiableComponent(ModifiableComponent&& from) noexcept
2841 : ModifiableComponent() {
2842 *this = ::std::move(from);
2843 }
2844
2845 inline ModifiableComponent& operator=(ModifiableComponent&& from) noexcept {
2846 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2847 if (this != &from) InternalSwap(&from);
2848 } else {
2849 CopyFrom(from);
2850 }
2851 return *this;
2852 }
2853 #endif
2854 static const ::google::protobuf::Descriptor* descriptor() {
2855 return default_instance().GetDescriptor();
2856 }
2857 static const ModifiableComponent& default_instance();
2858
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002859 enum SpecificCase {
2860 kPortAttr = 50,
2861 SPECIFIC_NOT_SET = 0,
2862 };
2863
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302864 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2865 static inline const ModifiableComponent* internal_default_instance() {
2866 return reinterpret_cast<const ModifiableComponent*>(
2867 &_ModifiableComponent_default_instance_);
2868 }
2869 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002870 13;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302871
2872 void Swap(ModifiableComponent* other);
2873 friend void swap(ModifiableComponent& a, ModifiableComponent& b) {
2874 a.Swap(&b);
2875 }
2876
2877 // implements Message ----------------------------------------------
2878
2879 inline ModifiableComponent* New() const final {
2880 return CreateMaybeMessage<ModifiableComponent>(nullptr);
2881 }
2882
2883 ModifiableComponent* New(::google::protobuf::Arena* arena) const final {
2884 return CreateMaybeMessage<ModifiableComponent>(arena);
2885 }
2886 void CopyFrom(const ::google::protobuf::Message& from) final;
2887 void MergeFrom(const ::google::protobuf::Message& from) final;
2888 void CopyFrom(const ModifiableComponent& from);
2889 void MergeFrom(const ModifiableComponent& from);
2890 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2891 bool IsInitialized() const final;
2892
2893 size_t ByteSizeLong() const final;
2894 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2895 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2896 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2897 #else
2898 bool MergePartialFromCodedStream(
2899 ::google::protobuf::io::CodedInputStream* input) final;
2900 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2901 void SerializeWithCachedSizes(
2902 ::google::protobuf::io::CodedOutputStream* output) const final;
2903 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2904 ::google::protobuf::uint8* target) const final;
2905 int GetCachedSize() const final { return _cached_size_.Get(); }
2906
2907 private:
2908 void SharedCtor();
2909 void SharedDtor();
2910 void SetCachedSize(int size) const final;
2911 void InternalSwap(ModifiableComponent* other);
2912 private:
2913 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2914 return nullptr;
2915 }
2916 inline void* MaybeArenaPtr() const {
2917 return nullptr;
2918 }
2919 public:
2920
2921 ::google::protobuf::Metadata GetMetadata() const final;
2922
2923 // nested types ----------------------------------------------------
2924
2925 // accessors -------------------------------------------------------
2926
2927 // string name = 1;
2928 void clear_name();
2929 static const int kNameFieldNumber = 1;
2930 const ::std::string& name() const;
2931 void set_name(const ::std::string& value);
2932 #if LANG_CXX11
2933 void set_name(::std::string&& value);
2934 #endif
2935 void set_name(const char* value);
2936 void set_name(const char* value, size_t size);
2937 ::std::string* mutable_name();
2938 ::std::string* release_name();
2939 void set_allocated_name(::std::string* name);
2940
2941 // string alias = 5;
2942 void clear_alias();
2943 static const int kAliasFieldNumber = 5;
2944 const ::std::string& alias() const;
2945 void set_alias(const ::std::string& value);
2946 #if LANG_CXX11
2947 void set_alias(::std::string&& value);
2948 #endif
2949 void set_alias(const char* value);
2950 void set_alias(const char* value, size_t size);
2951 ::std::string* mutable_alias();
2952 ::std::string* release_alias();
2953 void set_allocated_alias(::std::string* alias);
2954
2955 // string asset_id = 6;
2956 void clear_asset_id();
2957 static const int kAssetIdFieldNumber = 6;
2958 const ::std::string& asset_id() const;
2959 void set_asset_id(const ::std::string& value);
2960 #if LANG_CXX11
2961 void set_asset_id(::std::string&& value);
2962 #endif
2963 void set_asset_id(const char* value);
2964 void set_asset_id(const char* value, size_t size);
2965 ::std::string* mutable_asset_id();
2966 ::std::string* release_asset_id();
2967 void set_allocated_asset_id(::std::string* asset_id);
2968
2969 // .dmi.Component parent = 3;
2970 bool has_parent() const;
2971 void clear_parent();
2972 static const int kParentFieldNumber = 3;
2973 const ::dmi::Component& parent() const;
2974 ::dmi::Component* release_parent();
2975 ::dmi::Component* mutable_parent();
2976 void set_allocated_parent(::dmi::Component* parent);
2977
2978 // .dmi.Uri uri = 7;
2979 bool has_uri() const;
2980 void clear_uri();
2981 static const int kUriFieldNumber = 7;
2982 const ::dmi::Uri& uri() const;
2983 ::dmi::Uri* release_uri();
2984 ::dmi::Uri* mutable_uri();
2985 void set_allocated_uri(::dmi::Uri* uri);
2986
2987 // .dmi.ComponentType class = 2;
2988 void clear_class_();
2989 static const int kClassFieldNumber = 2;
2990 ::dmi::ComponentType class_() const;
2991 void set_class_(::dmi::ComponentType value);
2992
2993 // int32 parent_rel_pos = 4;
2994 void clear_parent_rel_pos();
2995 static const int kParentRelPosFieldNumber = 4;
2996 ::google::protobuf::int32 parent_rel_pos() const;
2997 void set_parent_rel_pos(::google::protobuf::int32 value);
2998
2999 // .dmi.ComponentAdminState admin_state = 8;
3000 void clear_admin_state();
3001 static const int kAdminStateFieldNumber = 8;
3002 ::dmi::ComponentAdminState admin_state() const;
3003 void set_admin_state(::dmi::ComponentAdminState value);
3004
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003005 // .dmi.PortComponentChangeAttributes port_attr = 50;
3006 bool has_port_attr() const;
3007 void clear_port_attr();
3008 static const int kPortAttrFieldNumber = 50;
3009 const ::dmi::PortComponentChangeAttributes& port_attr() const;
3010 ::dmi::PortComponentChangeAttributes* release_port_attr();
3011 ::dmi::PortComponentChangeAttributes* mutable_port_attr();
3012 void set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr);
3013
3014 void clear_specific();
3015 SpecificCase specific_case() const;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303016 // @@protoc_insertion_point(class_scope:dmi.ModifiableComponent)
3017 private:
3018 class HasBitSetters;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003019 void set_has_port_attr();
3020
3021 inline bool has_specific() const;
3022 inline void clear_has_specific();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303023
3024 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3025 ::google::protobuf::internal::ArenaStringPtr name_;
3026 ::google::protobuf::internal::ArenaStringPtr alias_;
3027 ::google::protobuf::internal::ArenaStringPtr asset_id_;
3028 ::dmi::Component* parent_;
3029 ::dmi::Uri* uri_;
3030 int class__;
3031 ::google::protobuf::int32 parent_rel_pos_;
3032 int admin_state_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003033 union SpecificUnion {
3034 SpecificUnion() {}
3035 ::dmi::PortComponentChangeAttributes* port_attr_;
3036 } specific_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303037 mutable ::google::protobuf::internal::CachedSize _cached_size_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003038 ::google::protobuf::uint32 _oneof_case_[1];
3039
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303040 friend struct ::TableStruct_dmi_2fhw_2eproto;
3041};
3042// ===================================================================
3043
3044
3045// ===================================================================
3046
3047#ifdef __GNUC__
3048 #pragma GCC diagnostic push
3049 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
3050#endif // __GNUC__
3051// Uuid
3052
3053// string uuid = 1;
3054inline void Uuid::clear_uuid() {
3055 uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3056}
3057inline const ::std::string& Uuid::uuid() const {
3058 // @@protoc_insertion_point(field_get:dmi.Uuid.uuid)
3059 return uuid_.GetNoArena();
3060}
3061inline void Uuid::set_uuid(const ::std::string& value) {
3062
3063 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3064 // @@protoc_insertion_point(field_set:dmi.Uuid.uuid)
3065}
3066#if LANG_CXX11
3067inline void Uuid::set_uuid(::std::string&& value) {
3068
3069 uuid_.SetNoArena(
3070 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3071 // @@protoc_insertion_point(field_set_rvalue:dmi.Uuid.uuid)
3072}
3073#endif
3074inline void Uuid::set_uuid(const char* value) {
3075 GOOGLE_DCHECK(value != nullptr);
3076
3077 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3078 // @@protoc_insertion_point(field_set_char:dmi.Uuid.uuid)
3079}
3080inline void Uuid::set_uuid(const char* value, size_t size) {
3081
3082 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3083 ::std::string(reinterpret_cast<const char*>(value), size));
3084 // @@protoc_insertion_point(field_set_pointer:dmi.Uuid.uuid)
3085}
3086inline ::std::string* Uuid::mutable_uuid() {
3087
3088 // @@protoc_insertion_point(field_mutable:dmi.Uuid.uuid)
3089 return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3090}
3091inline ::std::string* Uuid::release_uuid() {
3092 // @@protoc_insertion_point(field_release:dmi.Uuid.uuid)
3093
3094 return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3095}
3096inline void Uuid::set_allocated_uuid(::std::string* uuid) {
3097 if (uuid != nullptr) {
3098
3099 } else {
3100
3101 }
3102 uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid);
3103 // @@protoc_insertion_point(field_set_allocated:dmi.Uuid.uuid)
3104}
3105
3106// -------------------------------------------------------------------
3107
3108// HardwareID
3109
3110// .dmi.Uuid uuid = 1;
3111inline bool HardwareID::has_uuid() const {
3112 return this != internal_default_instance() && uuid_ != nullptr;
3113}
3114inline void HardwareID::clear_uuid() {
3115 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
3116 delete uuid_;
3117 }
3118 uuid_ = nullptr;
3119}
3120inline const ::dmi::Uuid& HardwareID::uuid() const {
3121 const ::dmi::Uuid* p = uuid_;
3122 // @@protoc_insertion_point(field_get:dmi.HardwareID.uuid)
3123 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
3124 &::dmi::_Uuid_default_instance_);
3125}
3126inline ::dmi::Uuid* HardwareID::release_uuid() {
3127 // @@protoc_insertion_point(field_release:dmi.HardwareID.uuid)
3128
3129 ::dmi::Uuid* temp = uuid_;
3130 uuid_ = nullptr;
3131 return temp;
3132}
3133inline ::dmi::Uuid* HardwareID::mutable_uuid() {
3134
3135 if (uuid_ == nullptr) {
3136 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
3137 uuid_ = p;
3138 }
3139 // @@protoc_insertion_point(field_mutable:dmi.HardwareID.uuid)
3140 return uuid_;
3141}
3142inline void HardwareID::set_allocated_uuid(::dmi::Uuid* uuid) {
3143 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3144 if (message_arena == nullptr) {
3145 delete uuid_;
3146 }
3147 if (uuid) {
3148 ::google::protobuf::Arena* submessage_arena = nullptr;
3149 if (message_arena != submessage_arena) {
3150 uuid = ::google::protobuf::internal::GetOwnedMessage(
3151 message_arena, uuid, submessage_arena);
3152 }
3153
3154 } else {
3155
3156 }
3157 uuid_ = uuid;
3158 // @@protoc_insertion_point(field_set_allocated:dmi.HardwareID.uuid)
3159}
3160
3161// -------------------------------------------------------------------
3162
3163// Uri
3164
3165// string uri = 1;
3166inline void Uri::clear_uri() {
3167 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3168}
3169inline const ::std::string& Uri::uri() const {
3170 // @@protoc_insertion_point(field_get:dmi.Uri.uri)
3171 return uri_.GetNoArena();
3172}
3173inline void Uri::set_uri(const ::std::string& value) {
3174
3175 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3176 // @@protoc_insertion_point(field_set:dmi.Uri.uri)
3177}
3178#if LANG_CXX11
3179inline void Uri::set_uri(::std::string&& value) {
3180
3181 uri_.SetNoArena(
3182 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3183 // @@protoc_insertion_point(field_set_rvalue:dmi.Uri.uri)
3184}
3185#endif
3186inline void Uri::set_uri(const char* value) {
3187 GOOGLE_DCHECK(value != nullptr);
3188
3189 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3190 // @@protoc_insertion_point(field_set_char:dmi.Uri.uri)
3191}
3192inline void Uri::set_uri(const char* value, size_t size) {
3193
3194 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3195 ::std::string(reinterpret_cast<const char*>(value), size));
3196 // @@protoc_insertion_point(field_set_pointer:dmi.Uri.uri)
3197}
3198inline ::std::string* Uri::mutable_uri() {
3199
3200 // @@protoc_insertion_point(field_mutable:dmi.Uri.uri)
3201 return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3202}
3203inline ::std::string* Uri::release_uri() {
3204 // @@protoc_insertion_point(field_release:dmi.Uri.uri)
3205
3206 return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3207}
3208inline void Uri::set_allocated_uri(::std::string* uri) {
3209 if (uri != nullptr) {
3210
3211 } else {
3212
3213 }
3214 uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri);
3215 // @@protoc_insertion_point(field_set_allocated:dmi.Uri.uri)
3216}
3217
3218// -------------------------------------------------------------------
3219
3220// ComponentState
3221
3222// .google.protobuf.Timestamp state_last_changed = 1;
3223inline bool ComponentState::has_state_last_changed() const {
3224 return this != internal_default_instance() && state_last_changed_ != nullptr;
3225}
3226inline const ::google::protobuf::Timestamp& ComponentState::state_last_changed() const {
3227 const ::google::protobuf::Timestamp* p = state_last_changed_;
3228 // @@protoc_insertion_point(field_get:dmi.ComponentState.state_last_changed)
3229 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3230 &::google::protobuf::_Timestamp_default_instance_);
3231}
3232inline ::google::protobuf::Timestamp* ComponentState::release_state_last_changed() {
3233 // @@protoc_insertion_point(field_release:dmi.ComponentState.state_last_changed)
3234
3235 ::google::protobuf::Timestamp* temp = state_last_changed_;
3236 state_last_changed_ = nullptr;
3237 return temp;
3238}
3239inline ::google::protobuf::Timestamp* ComponentState::mutable_state_last_changed() {
3240
3241 if (state_last_changed_ == nullptr) {
3242 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3243 state_last_changed_ = p;
3244 }
3245 // @@protoc_insertion_point(field_mutable:dmi.ComponentState.state_last_changed)
3246 return state_last_changed_;
3247}
3248inline void ComponentState::set_allocated_state_last_changed(::google::protobuf::Timestamp* state_last_changed) {
3249 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3250 if (message_arena == nullptr) {
3251 delete reinterpret_cast< ::google::protobuf::MessageLite*>(state_last_changed_);
3252 }
3253 if (state_last_changed) {
3254 ::google::protobuf::Arena* submessage_arena =
3255 reinterpret_cast<::google::protobuf::MessageLite*>(state_last_changed)->GetArena();
3256 if (message_arena != submessage_arena) {
3257 state_last_changed = ::google::protobuf::internal::GetOwnedMessage(
3258 message_arena, state_last_changed, submessage_arena);
3259 }
3260
3261 } else {
3262
3263 }
3264 state_last_changed_ = state_last_changed;
3265 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentState.state_last_changed)
3266}
3267
3268// .dmi.ComponentAdminState admin_state = 2;
3269inline void ComponentState::clear_admin_state() {
3270 admin_state_ = 0;
3271}
3272inline ::dmi::ComponentAdminState ComponentState::admin_state() const {
3273 // @@protoc_insertion_point(field_get:dmi.ComponentState.admin_state)
3274 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
3275}
3276inline void ComponentState::set_admin_state(::dmi::ComponentAdminState value) {
3277
3278 admin_state_ = value;
3279 // @@protoc_insertion_point(field_set:dmi.ComponentState.admin_state)
3280}
3281
3282// .dmi.ComponentOperState oper_state = 3;
3283inline void ComponentState::clear_oper_state() {
3284 oper_state_ = 0;
3285}
3286inline ::dmi::ComponentOperState ComponentState::oper_state() const {
3287 // @@protoc_insertion_point(field_get:dmi.ComponentState.oper_state)
3288 return static_cast< ::dmi::ComponentOperState >(oper_state_);
3289}
3290inline void ComponentState::set_oper_state(::dmi::ComponentOperState value) {
3291
3292 oper_state_ = value;
3293 // @@protoc_insertion_point(field_set:dmi.ComponentState.oper_state)
3294}
3295
3296// .dmi.ComponentUsageState usage_state = 4;
3297inline void ComponentState::clear_usage_state() {
3298 usage_state_ = 0;
3299}
3300inline ::dmi::ComponentUsageState ComponentState::usage_state() const {
3301 // @@protoc_insertion_point(field_get:dmi.ComponentState.usage_state)
3302 return static_cast< ::dmi::ComponentUsageState >(usage_state_);
3303}
3304inline void ComponentState::set_usage_state(::dmi::ComponentUsageState value) {
3305
3306 usage_state_ = value;
3307 // @@protoc_insertion_point(field_set:dmi.ComponentState.usage_state)
3308}
3309
3310// .dmi.ComponentAlarmState alarm_state = 5;
3311inline void ComponentState::clear_alarm_state() {
3312 alarm_state_ = 0;
3313}
3314inline ::dmi::ComponentAlarmState ComponentState::alarm_state() const {
3315 // @@protoc_insertion_point(field_get:dmi.ComponentState.alarm_state)
3316 return static_cast< ::dmi::ComponentAlarmState >(alarm_state_);
3317}
3318inline void ComponentState::set_alarm_state(::dmi::ComponentAlarmState value) {
3319
3320 alarm_state_ = value;
3321 // @@protoc_insertion_point(field_set:dmi.ComponentState.alarm_state)
3322}
3323
3324// .dmi.ComponentStandbyState standby_state = 6;
3325inline void ComponentState::clear_standby_state() {
3326 standby_state_ = 0;
3327}
3328inline ::dmi::ComponentStandbyState ComponentState::standby_state() const {
3329 // @@protoc_insertion_point(field_get:dmi.ComponentState.standby_state)
3330 return static_cast< ::dmi::ComponentStandbyState >(standby_state_);
3331}
3332inline void ComponentState::set_standby_state(::dmi::ComponentStandbyState value) {
3333
3334 standby_state_ = value;
3335 // @@protoc_insertion_point(field_set:dmi.ComponentState.standby_state)
3336}
3337
3338// -------------------------------------------------------------------
3339
3340// ComponentSensorData
3341
3342// int32 value = 1;
3343inline void ComponentSensorData::clear_value() {
3344 value_ = 0;
3345}
3346inline ::google::protobuf::int32 ComponentSensorData::value() const {
3347 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value)
3348 return value_;
3349}
3350inline void ComponentSensorData::set_value(::google::protobuf::int32 value) {
3351
3352 value_ = value;
3353 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value)
3354}
3355
3356// .dmi.DataValueType type = 2;
3357inline void ComponentSensorData::clear_type() {
3358 type_ = 0;
3359}
3360inline ::dmi::DataValueType ComponentSensorData::type() const {
3361 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.type)
3362 return static_cast< ::dmi::DataValueType >(type_);
3363}
3364inline void ComponentSensorData::set_type(::dmi::DataValueType value) {
3365
3366 type_ = value;
3367 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.type)
3368}
3369
3370// .dmi.ValueScale scale = 3;
3371inline void ComponentSensorData::clear_scale() {
3372 scale_ = 0;
3373}
3374inline ::dmi::ValueScale ComponentSensorData::scale() const {
3375 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.scale)
3376 return static_cast< ::dmi::ValueScale >(scale_);
3377}
3378inline void ComponentSensorData::set_scale(::dmi::ValueScale value) {
3379
3380 scale_ = value;
3381 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.scale)
3382}
3383
3384// int32 precision = 4;
3385inline void ComponentSensorData::clear_precision() {
3386 precision_ = 0;
3387}
3388inline ::google::protobuf::int32 ComponentSensorData::precision() const {
3389 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.precision)
3390 return precision_;
3391}
3392inline void ComponentSensorData::set_precision(::google::protobuf::int32 value) {
3393
3394 precision_ = value;
3395 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.precision)
3396}
3397
3398// .dmi.SensorStatus status = 5;
3399inline void ComponentSensorData::clear_status() {
3400 status_ = 0;
3401}
3402inline ::dmi::SensorStatus ComponentSensorData::status() const {
3403 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.status)
3404 return static_cast< ::dmi::SensorStatus >(status_);
3405}
3406inline void ComponentSensorData::set_status(::dmi::SensorStatus value) {
3407
3408 status_ = value;
3409 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.status)
3410}
3411
3412// string units_display = 6;
3413inline void ComponentSensorData::clear_units_display() {
3414 units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3415}
3416inline const ::std::string& ComponentSensorData::units_display() const {
3417 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.units_display)
3418 return units_display_.GetNoArena();
3419}
3420inline void ComponentSensorData::set_units_display(const ::std::string& value) {
3421
3422 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3423 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.units_display)
3424}
3425#if LANG_CXX11
3426inline void ComponentSensorData::set_units_display(::std::string&& value) {
3427
3428 units_display_.SetNoArena(
3429 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3430 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.units_display)
3431}
3432#endif
3433inline void ComponentSensorData::set_units_display(const char* value) {
3434 GOOGLE_DCHECK(value != nullptr);
3435
3436 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3437 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.units_display)
3438}
3439inline void ComponentSensorData::set_units_display(const char* value, size_t size) {
3440
3441 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3442 ::std::string(reinterpret_cast<const char*>(value), size));
3443 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.units_display)
3444}
3445inline ::std::string* ComponentSensorData::mutable_units_display() {
3446
3447 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.units_display)
3448 return units_display_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3449}
3450inline ::std::string* ComponentSensorData::release_units_display() {
3451 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.units_display)
3452
3453 return units_display_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3454}
3455inline void ComponentSensorData::set_allocated_units_display(::std::string* units_display) {
3456 if (units_display != nullptr) {
3457
3458 } else {
3459
3460 }
3461 units_display_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), units_display);
3462 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.units_display)
3463}
3464
3465// .google.protobuf.Timestamp timestamp = 7;
3466inline bool ComponentSensorData::has_timestamp() const {
3467 return this != internal_default_instance() && timestamp_ != nullptr;
3468}
3469inline const ::google::protobuf::Timestamp& ComponentSensorData::timestamp() const {
3470 const ::google::protobuf::Timestamp* p = timestamp_;
3471 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.timestamp)
3472 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3473 &::google::protobuf::_Timestamp_default_instance_);
3474}
3475inline ::google::protobuf::Timestamp* ComponentSensorData::release_timestamp() {
3476 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.timestamp)
3477
3478 ::google::protobuf::Timestamp* temp = timestamp_;
3479 timestamp_ = nullptr;
3480 return temp;
3481}
3482inline ::google::protobuf::Timestamp* ComponentSensorData::mutable_timestamp() {
3483
3484 if (timestamp_ == nullptr) {
3485 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3486 timestamp_ = p;
3487 }
3488 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.timestamp)
3489 return timestamp_;
3490}
3491inline void ComponentSensorData::set_allocated_timestamp(::google::protobuf::Timestamp* timestamp) {
3492 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3493 if (message_arena == nullptr) {
3494 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_);
3495 }
3496 if (timestamp) {
3497 ::google::protobuf::Arena* submessage_arena =
3498 reinterpret_cast<::google::protobuf::MessageLite*>(timestamp)->GetArena();
3499 if (message_arena != submessage_arena) {
3500 timestamp = ::google::protobuf::internal::GetOwnedMessage(
3501 message_arena, timestamp, submessage_arena);
3502 }
3503
3504 } else {
3505
3506 }
3507 timestamp_ = timestamp;
3508 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.timestamp)
3509}
3510
3511// uint32 value_update_rate = 8;
3512inline void ComponentSensorData::clear_value_update_rate() {
3513 value_update_rate_ = 0u;
3514}
3515inline ::google::protobuf::uint32 ComponentSensorData::value_update_rate() const {
3516 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value_update_rate)
3517 return value_update_rate_;
3518}
3519inline void ComponentSensorData::set_value_update_rate(::google::protobuf::uint32 value) {
3520
3521 value_update_rate_ = value;
3522 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value_update_rate)
3523}
3524
3525// string data_type = 9;
3526inline void ComponentSensorData::clear_data_type() {
3527 data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3528}
3529inline const ::std::string& ComponentSensorData::data_type() const {
3530 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.data_type)
3531 return data_type_.GetNoArena();
3532}
3533inline void ComponentSensorData::set_data_type(const ::std::string& value) {
3534
3535 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3536 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.data_type)
3537}
3538#if LANG_CXX11
3539inline void ComponentSensorData::set_data_type(::std::string&& value) {
3540
3541 data_type_.SetNoArena(
3542 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3543 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.data_type)
3544}
3545#endif
3546inline void ComponentSensorData::set_data_type(const char* value) {
3547 GOOGLE_DCHECK(value != nullptr);
3548
3549 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3550 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.data_type)
3551}
3552inline void ComponentSensorData::set_data_type(const char* value, size_t size) {
3553
3554 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3555 ::std::string(reinterpret_cast<const char*>(value), size));
3556 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.data_type)
3557}
3558inline ::std::string* ComponentSensorData::mutable_data_type() {
3559
3560 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.data_type)
3561 return data_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3562}
3563inline ::std::string* ComponentSensorData::release_data_type() {
3564 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.data_type)
3565
3566 return data_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3567}
3568inline void ComponentSensorData::set_allocated_data_type(::std::string* data_type) {
3569 if (data_type != nullptr) {
3570
3571 } else {
3572
3573 }
3574 data_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_type);
3575 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.data_type)
3576}
3577
3578// -------------------------------------------------------------------
3579
3580// PortComponentAttributes
3581
3582// .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3583inline void PortComponentAttributes::clear_connector_type() {
3584 connector_type_ = 0;
3585}
3586inline ::dmi::PortComponentAttributes_ConnectorType PortComponentAttributes::connector_type() const {
3587 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.connector_type)
3588 return static_cast< ::dmi::PortComponentAttributes_ConnectorType >(connector_type_);
3589}
3590inline void PortComponentAttributes::set_connector_type(::dmi::PortComponentAttributes_ConnectorType value) {
3591
3592 connector_type_ = value;
3593 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.connector_type)
3594}
3595
3596// .dmi.PortComponentAttributes.Speed speed = 2;
3597inline void PortComponentAttributes::clear_speed() {
3598 speed_ = 0;
3599}
3600inline ::dmi::PortComponentAttributes_Speed PortComponentAttributes::speed() const {
3601 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.speed)
3602 return static_cast< ::dmi::PortComponentAttributes_Speed >(speed_);
3603}
3604inline void PortComponentAttributes::set_speed(::dmi::PortComponentAttributes_Speed value) {
3605
3606 speed_ = value;
3607 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.speed)
3608}
3609
3610// .dmi.PortComponentAttributes.Protocol protocol = 3;
3611inline void PortComponentAttributes::clear_protocol() {
3612 protocol_ = 0;
3613}
3614inline ::dmi::PortComponentAttributes_Protocol PortComponentAttributes::protocol() const {
3615 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.protocol)
3616 return static_cast< ::dmi::PortComponentAttributes_Protocol >(protocol_);
3617}
3618inline void PortComponentAttributes::set_protocol(::dmi::PortComponentAttributes_Protocol value) {
3619
3620 protocol_ = value;
3621 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.protocol)
3622}
3623
3624// string physical_label = 4;
3625inline void PortComponentAttributes::clear_physical_label() {
3626 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3627}
3628inline const ::std::string& PortComponentAttributes::physical_label() const {
3629 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.physical_label)
3630 return physical_label_.GetNoArena();
3631}
3632inline void PortComponentAttributes::set_physical_label(const ::std::string& value) {
3633
3634 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3635 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.physical_label)
3636}
3637#if LANG_CXX11
3638inline void PortComponentAttributes::set_physical_label(::std::string&& value) {
3639
3640 physical_label_.SetNoArena(
3641 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3642 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.physical_label)
3643}
3644#endif
3645inline void PortComponentAttributes::set_physical_label(const char* value) {
3646 GOOGLE_DCHECK(value != nullptr);
3647
3648 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3649 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.physical_label)
3650}
3651inline void PortComponentAttributes::set_physical_label(const char* value, size_t size) {
3652
3653 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3654 ::std::string(reinterpret_cast<const char*>(value), size));
3655 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.physical_label)
3656}
3657inline ::std::string* PortComponentAttributes::mutable_physical_label() {
3658
3659 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.physical_label)
3660 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3661}
3662inline ::std::string* PortComponentAttributes::release_physical_label() {
3663 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.physical_label)
3664
3665 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3666}
3667inline void PortComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
3668 if (physical_label != nullptr) {
3669
3670 } else {
3671
3672 }
3673 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
3674 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.physical_label)
3675}
3676
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003677// string mapping_label = 5;
3678inline void PortComponentAttributes::clear_mapping_label() {
3679 mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3680}
3681inline const ::std::string& PortComponentAttributes::mapping_label() const {
3682 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.mapping_label)
3683 return mapping_label_.GetNoArena();
3684}
3685inline void PortComponentAttributes::set_mapping_label(const ::std::string& value) {
3686
3687 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3688 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.mapping_label)
3689}
3690#if LANG_CXX11
3691inline void PortComponentAttributes::set_mapping_label(::std::string&& value) {
3692
3693 mapping_label_.SetNoArena(
3694 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3695 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.mapping_label)
3696}
3697#endif
3698inline void PortComponentAttributes::set_mapping_label(const char* value) {
3699 GOOGLE_DCHECK(value != nullptr);
3700
3701 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3702 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.mapping_label)
3703}
3704inline void PortComponentAttributes::set_mapping_label(const char* value, size_t size) {
3705
3706 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3707 ::std::string(reinterpret_cast<const char*>(value), size));
3708 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.mapping_label)
3709}
3710inline ::std::string* PortComponentAttributes::mutable_mapping_label() {
3711
3712 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.mapping_label)
3713 return mapping_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3714}
3715inline ::std::string* PortComponentAttributes::release_mapping_label() {
3716 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.mapping_label)
3717
3718 return mapping_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3719}
3720inline void PortComponentAttributes::set_allocated_mapping_label(::std::string* mapping_label) {
3721 if (mapping_label != nullptr) {
3722
3723 } else {
3724
3725 }
3726 mapping_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mapping_label);
3727 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.mapping_label)
3728}
3729
3730// .dmi.PonIdConfig pon_id_config = 6;
3731inline bool PortComponentAttributes::has_pon_id_config() const {
3732 return this != internal_default_instance() && pon_id_config_ != nullptr;
3733}
3734inline void PortComponentAttributes::clear_pon_id_config() {
3735 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3736 delete pon_id_config_;
3737 }
3738 pon_id_config_ = nullptr;
3739}
3740inline const ::dmi::PonIdConfig& PortComponentAttributes::pon_id_config() const {
3741 const ::dmi::PonIdConfig* p = pon_id_config_;
3742 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.pon_id_config)
3743 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3744 &::dmi::_PonIdConfig_default_instance_);
3745}
3746inline ::dmi::PonIdConfig* PortComponentAttributes::release_pon_id_config() {
3747 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.pon_id_config)
3748
3749 ::dmi::PonIdConfig* temp = pon_id_config_;
3750 pon_id_config_ = nullptr;
3751 return temp;
3752}
3753inline ::dmi::PonIdConfig* PortComponentAttributes::mutable_pon_id_config() {
3754
3755 if (pon_id_config_ == nullptr) {
3756 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3757 pon_id_config_ = p;
3758 }
3759 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.pon_id_config)
3760 return pon_id_config_;
3761}
3762inline void PortComponentAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3763 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3764 if (message_arena == nullptr) {
3765 delete pon_id_config_;
3766 }
3767 if (pon_id_config) {
3768 ::google::protobuf::Arena* submessage_arena = nullptr;
3769 if (message_arena != submessage_arena) {
3770 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3771 message_arena, pon_id_config, submessage_arena);
3772 }
3773
3774 } else {
3775
3776 }
3777 pon_id_config_ = pon_id_config;
3778 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.pon_id_config)
3779}
3780
3781// -------------------------------------------------------------------
3782
3783// PortComponentChangeAttributes
3784
3785// .dmi.PonIdConfig pon_id_config = 1;
3786inline bool PortComponentChangeAttributes::has_pon_id_config() const {
3787 return this != internal_default_instance() && pon_id_config_ != nullptr;
3788}
3789inline void PortComponentChangeAttributes::clear_pon_id_config() {
3790 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3791 delete pon_id_config_;
3792 }
3793 pon_id_config_ = nullptr;
3794}
3795inline const ::dmi::PonIdConfig& PortComponentChangeAttributes::pon_id_config() const {
3796 const ::dmi::PonIdConfig* p = pon_id_config_;
3797 // @@protoc_insertion_point(field_get:dmi.PortComponentChangeAttributes.pon_id_config)
3798 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3799 &::dmi::_PonIdConfig_default_instance_);
3800}
3801inline ::dmi::PonIdConfig* PortComponentChangeAttributes::release_pon_id_config() {
3802 // @@protoc_insertion_point(field_release:dmi.PortComponentChangeAttributes.pon_id_config)
3803
3804 ::dmi::PonIdConfig* temp = pon_id_config_;
3805 pon_id_config_ = nullptr;
3806 return temp;
3807}
3808inline ::dmi::PonIdConfig* PortComponentChangeAttributes::mutable_pon_id_config() {
3809
3810 if (pon_id_config_ == nullptr) {
3811 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3812 pon_id_config_ = p;
3813 }
3814 // @@protoc_insertion_point(field_mutable:dmi.PortComponentChangeAttributes.pon_id_config)
3815 return pon_id_config_;
3816}
3817inline void PortComponentChangeAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3818 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3819 if (message_arena == nullptr) {
3820 delete pon_id_config_;
3821 }
3822 if (pon_id_config) {
3823 ::google::protobuf::Arena* submessage_arena = nullptr;
3824 if (message_arena != submessage_arena) {
3825 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3826 message_arena, pon_id_config, submessage_arena);
3827 }
3828
3829 } else {
3830
3831 }
3832 pon_id_config_ = pon_id_config;
3833 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentChangeAttributes.pon_id_config)
3834}
3835
3836// -------------------------------------------------------------------
3837
3838// PonIdConfig
3839
3840// bytes pon_id = 1;
3841inline void PonIdConfig::clear_pon_id() {
3842 pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3843}
3844inline const ::std::string& PonIdConfig::pon_id() const {
3845 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id)
3846 return pon_id_.GetNoArena();
3847}
3848inline void PonIdConfig::set_pon_id(const ::std::string& value) {
3849
3850 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3851 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id)
3852}
3853#if LANG_CXX11
3854inline void PonIdConfig::set_pon_id(::std::string&& value) {
3855
3856 pon_id_.SetNoArena(
3857 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3858 // @@protoc_insertion_point(field_set_rvalue:dmi.PonIdConfig.pon_id)
3859}
3860#endif
3861inline void PonIdConfig::set_pon_id(const char* value) {
3862 GOOGLE_DCHECK(value != nullptr);
3863
3864 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3865 // @@protoc_insertion_point(field_set_char:dmi.PonIdConfig.pon_id)
3866}
3867inline void PonIdConfig::set_pon_id(const void* value, size_t size) {
3868
3869 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3870 ::std::string(reinterpret_cast<const char*>(value), size));
3871 // @@protoc_insertion_point(field_set_pointer:dmi.PonIdConfig.pon_id)
3872}
3873inline ::std::string* PonIdConfig::mutable_pon_id() {
3874
3875 // @@protoc_insertion_point(field_mutable:dmi.PonIdConfig.pon_id)
3876 return pon_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3877}
3878inline ::std::string* PonIdConfig::release_pon_id() {
3879 // @@protoc_insertion_point(field_release:dmi.PonIdConfig.pon_id)
3880
3881 return pon_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3882}
3883inline void PonIdConfig::set_allocated_pon_id(::std::string* pon_id) {
3884 if (pon_id != nullptr) {
3885
3886 } else {
3887
3888 }
3889 pon_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pon_id);
3890 // @@protoc_insertion_point(field_set_allocated:dmi.PonIdConfig.pon_id)
3891}
3892
3893// uint32 pon_id_transmit_periodicity = 2;
3894inline void PonIdConfig::clear_pon_id_transmit_periodicity() {
3895 pon_id_transmit_periodicity_ = 0u;
3896}
3897inline ::google::protobuf::uint32 PonIdConfig::pon_id_transmit_periodicity() const {
3898 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id_transmit_periodicity)
3899 return pon_id_transmit_periodicity_;
3900}
3901inline void PonIdConfig::set_pon_id_transmit_periodicity(::google::protobuf::uint32 value) {
3902
3903 pon_id_transmit_periodicity_ = value;
3904 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id_transmit_periodicity)
3905}
3906
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303907// -------------------------------------------------------------------
3908
3909// ContainerComponentAttributes
3910
3911// string physical_label = 1;
3912inline void ContainerComponentAttributes::clear_physical_label() {
3913 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3914}
3915inline const ::std::string& ContainerComponentAttributes::physical_label() const {
3916 // @@protoc_insertion_point(field_get:dmi.ContainerComponentAttributes.physical_label)
3917 return physical_label_.GetNoArena();
3918}
3919inline void ContainerComponentAttributes::set_physical_label(const ::std::string& value) {
3920
3921 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3922 // @@protoc_insertion_point(field_set:dmi.ContainerComponentAttributes.physical_label)
3923}
3924#if LANG_CXX11
3925inline void ContainerComponentAttributes::set_physical_label(::std::string&& value) {
3926
3927 physical_label_.SetNoArena(
3928 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3929 // @@protoc_insertion_point(field_set_rvalue:dmi.ContainerComponentAttributes.physical_label)
3930}
3931#endif
3932inline void ContainerComponentAttributes::set_physical_label(const char* value) {
3933 GOOGLE_DCHECK(value != nullptr);
3934
3935 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3936 // @@protoc_insertion_point(field_set_char:dmi.ContainerComponentAttributes.physical_label)
3937}
3938inline void ContainerComponentAttributes::set_physical_label(const char* value, size_t size) {
3939
3940 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3941 ::std::string(reinterpret_cast<const char*>(value), size));
3942 // @@protoc_insertion_point(field_set_pointer:dmi.ContainerComponentAttributes.physical_label)
3943}
3944inline ::std::string* ContainerComponentAttributes::mutable_physical_label() {
3945
3946 // @@protoc_insertion_point(field_mutable:dmi.ContainerComponentAttributes.physical_label)
3947 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3948}
3949inline ::std::string* ContainerComponentAttributes::release_physical_label() {
3950 // @@protoc_insertion_point(field_release:dmi.ContainerComponentAttributes.physical_label)
3951
3952 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3953}
3954inline void ContainerComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
3955 if (physical_label != nullptr) {
3956
3957 } else {
3958
3959 }
3960 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
3961 // @@protoc_insertion_point(field_set_allocated:dmi.ContainerComponentAttributes.physical_label)
3962}
3963
3964// -------------------------------------------------------------------
3965
3966// PsuComponentAttributes
3967
3968// .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
3969inline void PsuComponentAttributes::clear_supported_voltage() {
3970 supported_voltage_ = 0;
3971}
3972inline ::dmi::PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::supported_voltage() const {
3973 // @@protoc_insertion_point(field_get:dmi.PsuComponentAttributes.supported_voltage)
3974 return static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(supported_voltage_);
3975}
3976inline void PsuComponentAttributes::set_supported_voltage(::dmi::PsuComponentAttributes_SupportedVoltage value) {
3977
3978 supported_voltage_ = value;
3979 // @@protoc_insertion_point(field_set:dmi.PsuComponentAttributes.supported_voltage)
3980}
3981
3982// -------------------------------------------------------------------
3983
3984// TransceiverComponentsAttributes
3985
3986// .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
3987inline void TransceiverComponentsAttributes::clear_form_factor() {
3988 form_factor_ = 0;
3989}
3990inline ::dmi::TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::form_factor() const {
3991 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.form_factor)
3992 return static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(form_factor_);
3993}
3994inline void TransceiverComponentsAttributes::set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value) {
3995
3996 form_factor_ = value;
3997 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.form_factor)
3998}
3999
4000// .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4001inline void TransceiverComponentsAttributes::clear_trans_type() {
4002 trans_type_ = 0;
4003}
4004inline ::dmi::TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::trans_type() const {
4005 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.trans_type)
4006 return static_cast< ::dmi::TransceiverComponentsAttributes_Type >(trans_type_);
4007}
4008inline void TransceiverComponentsAttributes::set_trans_type(::dmi::TransceiverComponentsAttributes_Type value) {
4009
4010 trans_type_ = value;
4011 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.trans_type)
4012}
4013
4014// uint32 max_distance = 3;
4015inline void TransceiverComponentsAttributes::clear_max_distance() {
4016 max_distance_ = 0u;
4017}
4018inline ::google::protobuf::uint32 TransceiverComponentsAttributes::max_distance() const {
4019 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance)
4020 return max_distance_;
4021}
4022inline void TransceiverComponentsAttributes::set_max_distance(::google::protobuf::uint32 value) {
4023
4024 max_distance_ = value;
4025 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance)
4026}
4027
4028// .dmi.ValueScale max_distance_scale = 4;
4029inline void TransceiverComponentsAttributes::clear_max_distance_scale() {
4030 max_distance_scale_ = 0;
4031}
4032inline ::dmi::ValueScale TransceiverComponentsAttributes::max_distance_scale() const {
4033 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance_scale)
4034 return static_cast< ::dmi::ValueScale >(max_distance_scale_);
4035}
4036inline void TransceiverComponentsAttributes::set_max_distance_scale(::dmi::ValueScale value) {
4037
4038 max_distance_scale_ = value;
4039 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance_scale)
4040}
4041
4042// repeated uint32 rx_wavelength = 5;
4043inline int TransceiverComponentsAttributes::rx_wavelength_size() const {
4044 return rx_wavelength_.size();
4045}
4046inline void TransceiverComponentsAttributes::clear_rx_wavelength() {
4047 rx_wavelength_.Clear();
4048}
4049inline ::google::protobuf::uint32 TransceiverComponentsAttributes::rx_wavelength(int index) const {
4050 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.rx_wavelength)
4051 return rx_wavelength_.Get(index);
4052}
4053inline void TransceiverComponentsAttributes::set_rx_wavelength(int index, ::google::protobuf::uint32 value) {
4054 rx_wavelength_.Set(index, value);
4055 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.rx_wavelength)
4056}
4057inline void TransceiverComponentsAttributes::add_rx_wavelength(::google::protobuf::uint32 value) {
4058 rx_wavelength_.Add(value);
4059 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.rx_wavelength)
4060}
4061inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4062TransceiverComponentsAttributes::rx_wavelength() const {
4063 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4064 return rx_wavelength_;
4065}
4066inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4067TransceiverComponentsAttributes::mutable_rx_wavelength() {
4068 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4069 return &rx_wavelength_;
4070}
4071
4072// repeated uint32 tx_wavelength = 6;
4073inline int TransceiverComponentsAttributes::tx_wavelength_size() const {
4074 return tx_wavelength_.size();
4075}
4076inline void TransceiverComponentsAttributes::clear_tx_wavelength() {
4077 tx_wavelength_.Clear();
4078}
4079inline ::google::protobuf::uint32 TransceiverComponentsAttributes::tx_wavelength(int index) const {
4080 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.tx_wavelength)
4081 return tx_wavelength_.Get(index);
4082}
4083inline void TransceiverComponentsAttributes::set_tx_wavelength(int index, ::google::protobuf::uint32 value) {
4084 tx_wavelength_.Set(index, value);
4085 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.tx_wavelength)
4086}
4087inline void TransceiverComponentsAttributes::add_tx_wavelength(::google::protobuf::uint32 value) {
4088 tx_wavelength_.Add(value);
4089 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.tx_wavelength)
4090}
4091inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4092TransceiverComponentsAttributes::tx_wavelength() const {
4093 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4094 return tx_wavelength_;
4095}
4096inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4097TransceiverComponentsAttributes::mutable_tx_wavelength() {
4098 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4099 return &tx_wavelength_;
4100}
4101
4102// .dmi.ValueScale wavelength_scale = 7;
4103inline void TransceiverComponentsAttributes::clear_wavelength_scale() {
4104 wavelength_scale_ = 0;
4105}
4106inline ::dmi::ValueScale TransceiverComponentsAttributes::wavelength_scale() const {
4107 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.wavelength_scale)
4108 return static_cast< ::dmi::ValueScale >(wavelength_scale_);
4109}
4110inline void TransceiverComponentsAttributes::set_wavelength_scale(::dmi::ValueScale value) {
4111
4112 wavelength_scale_ = value;
4113 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.wavelength_scale)
4114}
4115
4116// -------------------------------------------------------------------
4117
4118// Component
4119
4120// string name = 1;
4121inline void Component::clear_name() {
4122 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4123}
4124inline const ::std::string& Component::name() const {
4125 // @@protoc_insertion_point(field_get:dmi.Component.name)
4126 return name_.GetNoArena();
4127}
4128inline void Component::set_name(const ::std::string& value) {
4129
4130 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4131 // @@protoc_insertion_point(field_set:dmi.Component.name)
4132}
4133#if LANG_CXX11
4134inline void Component::set_name(::std::string&& value) {
4135
4136 name_.SetNoArena(
4137 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4138 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.name)
4139}
4140#endif
4141inline void Component::set_name(const char* value) {
4142 GOOGLE_DCHECK(value != nullptr);
4143
4144 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4145 // @@protoc_insertion_point(field_set_char:dmi.Component.name)
4146}
4147inline void Component::set_name(const char* value, size_t size) {
4148
4149 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4150 ::std::string(reinterpret_cast<const char*>(value), size));
4151 // @@protoc_insertion_point(field_set_pointer:dmi.Component.name)
4152}
4153inline ::std::string* Component::mutable_name() {
4154
4155 // @@protoc_insertion_point(field_mutable:dmi.Component.name)
4156 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4157}
4158inline ::std::string* Component::release_name() {
4159 // @@protoc_insertion_point(field_release:dmi.Component.name)
4160
4161 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4162}
4163inline void Component::set_allocated_name(::std::string* name) {
4164 if (name != nullptr) {
4165
4166 } else {
4167
4168 }
4169 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4170 // @@protoc_insertion_point(field_set_allocated:dmi.Component.name)
4171}
4172
4173// .dmi.ComponentType class = 2;
4174inline void Component::clear_class_() {
4175 class__ = 0;
4176}
4177inline ::dmi::ComponentType Component::class_() const {
4178 // @@protoc_insertion_point(field_get:dmi.Component.class)
4179 return static_cast< ::dmi::ComponentType >(class__);
4180}
4181inline void Component::set_class_(::dmi::ComponentType value) {
4182
4183 class__ = value;
4184 // @@protoc_insertion_point(field_set:dmi.Component.class)
4185}
4186
4187// string description = 3;
4188inline void Component::clear_description() {
4189 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4190}
4191inline const ::std::string& Component::description() const {
4192 // @@protoc_insertion_point(field_get:dmi.Component.description)
4193 return description_.GetNoArena();
4194}
4195inline void Component::set_description(const ::std::string& value) {
4196
4197 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4198 // @@protoc_insertion_point(field_set:dmi.Component.description)
4199}
4200#if LANG_CXX11
4201inline void Component::set_description(::std::string&& value) {
4202
4203 description_.SetNoArena(
4204 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4205 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.description)
4206}
4207#endif
4208inline void Component::set_description(const char* value) {
4209 GOOGLE_DCHECK(value != nullptr);
4210
4211 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4212 // @@protoc_insertion_point(field_set_char:dmi.Component.description)
4213}
4214inline void Component::set_description(const char* value, size_t size) {
4215
4216 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4217 ::std::string(reinterpret_cast<const char*>(value), size));
4218 // @@protoc_insertion_point(field_set_pointer:dmi.Component.description)
4219}
4220inline ::std::string* Component::mutable_description() {
4221
4222 // @@protoc_insertion_point(field_mutable:dmi.Component.description)
4223 return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4224}
4225inline ::std::string* Component::release_description() {
4226 // @@protoc_insertion_point(field_release:dmi.Component.description)
4227
4228 return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4229}
4230inline void Component::set_allocated_description(::std::string* description) {
4231 if (description != nullptr) {
4232
4233 } else {
4234
4235 }
4236 description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
4237 // @@protoc_insertion_point(field_set_allocated:dmi.Component.description)
4238}
4239
4240// string parent = 4;
4241inline void Component::clear_parent() {
4242 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4243}
4244inline const ::std::string& Component::parent() const {
4245 // @@protoc_insertion_point(field_get:dmi.Component.parent)
4246 return parent_.GetNoArena();
4247}
4248inline void Component::set_parent(const ::std::string& value) {
4249
4250 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4251 // @@protoc_insertion_point(field_set:dmi.Component.parent)
4252}
4253#if LANG_CXX11
4254inline void Component::set_parent(::std::string&& value) {
4255
4256 parent_.SetNoArena(
4257 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4258 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.parent)
4259}
4260#endif
4261inline void Component::set_parent(const char* value) {
4262 GOOGLE_DCHECK(value != nullptr);
4263
4264 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4265 // @@protoc_insertion_point(field_set_char:dmi.Component.parent)
4266}
4267inline void Component::set_parent(const char* value, size_t size) {
4268
4269 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4270 ::std::string(reinterpret_cast<const char*>(value), size));
4271 // @@protoc_insertion_point(field_set_pointer:dmi.Component.parent)
4272}
4273inline ::std::string* Component::mutable_parent() {
4274
4275 // @@protoc_insertion_point(field_mutable:dmi.Component.parent)
4276 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4277}
4278inline ::std::string* Component::release_parent() {
4279 // @@protoc_insertion_point(field_release:dmi.Component.parent)
4280
4281 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4282}
4283inline void Component::set_allocated_parent(::std::string* parent) {
4284 if (parent != nullptr) {
4285
4286 } else {
4287
4288 }
4289 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
4290 // @@protoc_insertion_point(field_set_allocated:dmi.Component.parent)
4291}
4292
4293// int32 parent_rel_pos = 5;
4294inline void Component::clear_parent_rel_pos() {
4295 parent_rel_pos_ = 0;
4296}
4297inline ::google::protobuf::int32 Component::parent_rel_pos() const {
4298 // @@protoc_insertion_point(field_get:dmi.Component.parent_rel_pos)
4299 return parent_rel_pos_;
4300}
4301inline void Component::set_parent_rel_pos(::google::protobuf::int32 value) {
4302
4303 parent_rel_pos_ = value;
4304 // @@protoc_insertion_point(field_set:dmi.Component.parent_rel_pos)
4305}
4306
4307// repeated .dmi.Component children = 6;
4308inline int Component::children_size() const {
4309 return children_.size();
4310}
4311inline void Component::clear_children() {
4312 children_.Clear();
4313}
4314inline ::dmi::Component* Component::mutable_children(int index) {
4315 // @@protoc_insertion_point(field_mutable:dmi.Component.children)
4316 return children_.Mutable(index);
4317}
4318inline ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
4319Component::mutable_children() {
4320 // @@protoc_insertion_point(field_mutable_list:dmi.Component.children)
4321 return &children_;
4322}
4323inline const ::dmi::Component& Component::children(int index) const {
4324 // @@protoc_insertion_point(field_get:dmi.Component.children)
4325 return children_.Get(index);
4326}
4327inline ::dmi::Component* Component::add_children() {
4328 // @@protoc_insertion_point(field_add:dmi.Component.children)
4329 return children_.Add();
4330}
4331inline const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
4332Component::children() const {
4333 // @@protoc_insertion_point(field_list:dmi.Component.children)
4334 return children_;
4335}
4336
4337// string hardware_rev = 7;
4338inline void Component::clear_hardware_rev() {
4339 hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4340}
4341inline const ::std::string& Component::hardware_rev() const {
4342 // @@protoc_insertion_point(field_get:dmi.Component.hardware_rev)
4343 return hardware_rev_.GetNoArena();
4344}
4345inline void Component::set_hardware_rev(const ::std::string& value) {
4346
4347 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4348 // @@protoc_insertion_point(field_set:dmi.Component.hardware_rev)
4349}
4350#if LANG_CXX11
4351inline void Component::set_hardware_rev(::std::string&& value) {
4352
4353 hardware_rev_.SetNoArena(
4354 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4355 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.hardware_rev)
4356}
4357#endif
4358inline void Component::set_hardware_rev(const char* value) {
4359 GOOGLE_DCHECK(value != nullptr);
4360
4361 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4362 // @@protoc_insertion_point(field_set_char:dmi.Component.hardware_rev)
4363}
4364inline void Component::set_hardware_rev(const char* value, size_t size) {
4365
4366 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4367 ::std::string(reinterpret_cast<const char*>(value), size));
4368 // @@protoc_insertion_point(field_set_pointer:dmi.Component.hardware_rev)
4369}
4370inline ::std::string* Component::mutable_hardware_rev() {
4371
4372 // @@protoc_insertion_point(field_mutable:dmi.Component.hardware_rev)
4373 return hardware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4374}
4375inline ::std::string* Component::release_hardware_rev() {
4376 // @@protoc_insertion_point(field_release:dmi.Component.hardware_rev)
4377
4378 return hardware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4379}
4380inline void Component::set_allocated_hardware_rev(::std::string* hardware_rev) {
4381 if (hardware_rev != nullptr) {
4382
4383 } else {
4384
4385 }
4386 hardware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hardware_rev);
4387 // @@protoc_insertion_point(field_set_allocated:dmi.Component.hardware_rev)
4388}
4389
4390// string firmware_rev = 8;
4391inline void Component::clear_firmware_rev() {
4392 firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4393}
4394inline const ::std::string& Component::firmware_rev() const {
4395 // @@protoc_insertion_point(field_get:dmi.Component.firmware_rev)
4396 return firmware_rev_.GetNoArena();
4397}
4398inline void Component::set_firmware_rev(const ::std::string& value) {
4399
4400 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4401 // @@protoc_insertion_point(field_set:dmi.Component.firmware_rev)
4402}
4403#if LANG_CXX11
4404inline void Component::set_firmware_rev(::std::string&& value) {
4405
4406 firmware_rev_.SetNoArena(
4407 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4408 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.firmware_rev)
4409}
4410#endif
4411inline void Component::set_firmware_rev(const char* value) {
4412 GOOGLE_DCHECK(value != nullptr);
4413
4414 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4415 // @@protoc_insertion_point(field_set_char:dmi.Component.firmware_rev)
4416}
4417inline void Component::set_firmware_rev(const char* value, size_t size) {
4418
4419 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4420 ::std::string(reinterpret_cast<const char*>(value), size));
4421 // @@protoc_insertion_point(field_set_pointer:dmi.Component.firmware_rev)
4422}
4423inline ::std::string* Component::mutable_firmware_rev() {
4424
4425 // @@protoc_insertion_point(field_mutable:dmi.Component.firmware_rev)
4426 return firmware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4427}
4428inline ::std::string* Component::release_firmware_rev() {
4429 // @@protoc_insertion_point(field_release:dmi.Component.firmware_rev)
4430
4431 return firmware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4432}
4433inline void Component::set_allocated_firmware_rev(::std::string* firmware_rev) {
4434 if (firmware_rev != nullptr) {
4435
4436 } else {
4437
4438 }
4439 firmware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), firmware_rev);
4440 // @@protoc_insertion_point(field_set_allocated:dmi.Component.firmware_rev)
4441}
4442
4443// string software_rev = 9;
4444inline void Component::clear_software_rev() {
4445 software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4446}
4447inline const ::std::string& Component::software_rev() const {
4448 // @@protoc_insertion_point(field_get:dmi.Component.software_rev)
4449 return software_rev_.GetNoArena();
4450}
4451inline void Component::set_software_rev(const ::std::string& value) {
4452
4453 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4454 // @@protoc_insertion_point(field_set:dmi.Component.software_rev)
4455}
4456#if LANG_CXX11
4457inline void Component::set_software_rev(::std::string&& value) {
4458
4459 software_rev_.SetNoArena(
4460 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4461 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.software_rev)
4462}
4463#endif
4464inline void Component::set_software_rev(const char* value) {
4465 GOOGLE_DCHECK(value != nullptr);
4466
4467 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4468 // @@protoc_insertion_point(field_set_char:dmi.Component.software_rev)
4469}
4470inline void Component::set_software_rev(const char* value, size_t size) {
4471
4472 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4473 ::std::string(reinterpret_cast<const char*>(value), size));
4474 // @@protoc_insertion_point(field_set_pointer:dmi.Component.software_rev)
4475}
4476inline ::std::string* Component::mutable_software_rev() {
4477
4478 // @@protoc_insertion_point(field_mutable:dmi.Component.software_rev)
4479 return software_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4480}
4481inline ::std::string* Component::release_software_rev() {
4482 // @@protoc_insertion_point(field_release:dmi.Component.software_rev)
4483
4484 return software_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4485}
4486inline void Component::set_allocated_software_rev(::std::string* software_rev) {
4487 if (software_rev != nullptr) {
4488
4489 } else {
4490
4491 }
4492 software_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), software_rev);
4493 // @@protoc_insertion_point(field_set_allocated:dmi.Component.software_rev)
4494}
4495
4496// string serial_num = 10;
4497inline void Component::clear_serial_num() {
4498 serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4499}
4500inline const ::std::string& Component::serial_num() const {
4501 // @@protoc_insertion_point(field_get:dmi.Component.serial_num)
4502 return serial_num_.GetNoArena();
4503}
4504inline void Component::set_serial_num(const ::std::string& value) {
4505
4506 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4507 // @@protoc_insertion_point(field_set:dmi.Component.serial_num)
4508}
4509#if LANG_CXX11
4510inline void Component::set_serial_num(::std::string&& value) {
4511
4512 serial_num_.SetNoArena(
4513 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4514 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.serial_num)
4515}
4516#endif
4517inline void Component::set_serial_num(const char* value) {
4518 GOOGLE_DCHECK(value != nullptr);
4519
4520 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4521 // @@protoc_insertion_point(field_set_char:dmi.Component.serial_num)
4522}
4523inline void Component::set_serial_num(const char* value, size_t size) {
4524
4525 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4526 ::std::string(reinterpret_cast<const char*>(value), size));
4527 // @@protoc_insertion_point(field_set_pointer:dmi.Component.serial_num)
4528}
4529inline ::std::string* Component::mutable_serial_num() {
4530
4531 // @@protoc_insertion_point(field_mutable:dmi.Component.serial_num)
4532 return serial_num_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4533}
4534inline ::std::string* Component::release_serial_num() {
4535 // @@protoc_insertion_point(field_release:dmi.Component.serial_num)
4536
4537 return serial_num_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4538}
4539inline void Component::set_allocated_serial_num(::std::string* serial_num) {
4540 if (serial_num != nullptr) {
4541
4542 } else {
4543
4544 }
4545 serial_num_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serial_num);
4546 // @@protoc_insertion_point(field_set_allocated:dmi.Component.serial_num)
4547}
4548
4549// string mfg_name = 11;
4550inline void Component::clear_mfg_name() {
4551 mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4552}
4553inline const ::std::string& Component::mfg_name() const {
4554 // @@protoc_insertion_point(field_get:dmi.Component.mfg_name)
4555 return mfg_name_.GetNoArena();
4556}
4557inline void Component::set_mfg_name(const ::std::string& value) {
4558
4559 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4560 // @@protoc_insertion_point(field_set:dmi.Component.mfg_name)
4561}
4562#if LANG_CXX11
4563inline void Component::set_mfg_name(::std::string&& value) {
4564
4565 mfg_name_.SetNoArena(
4566 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4567 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.mfg_name)
4568}
4569#endif
4570inline void Component::set_mfg_name(const char* value) {
4571 GOOGLE_DCHECK(value != nullptr);
4572
4573 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4574 // @@protoc_insertion_point(field_set_char:dmi.Component.mfg_name)
4575}
4576inline void Component::set_mfg_name(const char* value, size_t size) {
4577
4578 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4579 ::std::string(reinterpret_cast<const char*>(value), size));
4580 // @@protoc_insertion_point(field_set_pointer:dmi.Component.mfg_name)
4581}
4582inline ::std::string* Component::mutable_mfg_name() {
4583
4584 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_name)
4585 return mfg_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4586}
4587inline ::std::string* Component::release_mfg_name() {
4588 // @@protoc_insertion_point(field_release:dmi.Component.mfg_name)
4589
4590 return mfg_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4591}
4592inline void Component::set_allocated_mfg_name(::std::string* mfg_name) {
4593 if (mfg_name != nullptr) {
4594
4595 } else {
4596
4597 }
4598 mfg_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mfg_name);
4599 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_name)
4600}
4601
4602// string model_name = 12;
4603inline void Component::clear_model_name() {
4604 model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4605}
4606inline const ::std::string& Component::model_name() const {
4607 // @@protoc_insertion_point(field_get:dmi.Component.model_name)
4608 return model_name_.GetNoArena();
4609}
4610inline void Component::set_model_name(const ::std::string& value) {
4611
4612 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4613 // @@protoc_insertion_point(field_set:dmi.Component.model_name)
4614}
4615#if LANG_CXX11
4616inline void Component::set_model_name(::std::string&& value) {
4617
4618 model_name_.SetNoArena(
4619 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4620 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.model_name)
4621}
4622#endif
4623inline void Component::set_model_name(const char* value) {
4624 GOOGLE_DCHECK(value != nullptr);
4625
4626 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4627 // @@protoc_insertion_point(field_set_char:dmi.Component.model_name)
4628}
4629inline void Component::set_model_name(const char* value, size_t size) {
4630
4631 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4632 ::std::string(reinterpret_cast<const char*>(value), size));
4633 // @@protoc_insertion_point(field_set_pointer:dmi.Component.model_name)
4634}
4635inline ::std::string* Component::mutable_model_name() {
4636
4637 // @@protoc_insertion_point(field_mutable:dmi.Component.model_name)
4638 return model_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4639}
4640inline ::std::string* Component::release_model_name() {
4641 // @@protoc_insertion_point(field_release:dmi.Component.model_name)
4642
4643 return model_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4644}
4645inline void Component::set_allocated_model_name(::std::string* model_name) {
4646 if (model_name != nullptr) {
4647
4648 } else {
4649
4650 }
4651 model_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model_name);
4652 // @@protoc_insertion_point(field_set_allocated:dmi.Component.model_name)
4653}
4654
4655// string alias = 13;
4656inline void Component::clear_alias() {
4657 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4658}
4659inline const ::std::string& Component::alias() const {
4660 // @@protoc_insertion_point(field_get:dmi.Component.alias)
4661 return alias_.GetNoArena();
4662}
4663inline void Component::set_alias(const ::std::string& value) {
4664
4665 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4666 // @@protoc_insertion_point(field_set:dmi.Component.alias)
4667}
4668#if LANG_CXX11
4669inline void Component::set_alias(::std::string&& value) {
4670
4671 alias_.SetNoArena(
4672 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4673 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.alias)
4674}
4675#endif
4676inline void Component::set_alias(const char* value) {
4677 GOOGLE_DCHECK(value != nullptr);
4678
4679 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4680 // @@protoc_insertion_point(field_set_char:dmi.Component.alias)
4681}
4682inline void Component::set_alias(const char* value, size_t size) {
4683
4684 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4685 ::std::string(reinterpret_cast<const char*>(value), size));
4686 // @@protoc_insertion_point(field_set_pointer:dmi.Component.alias)
4687}
4688inline ::std::string* Component::mutable_alias() {
4689
4690 // @@protoc_insertion_point(field_mutable:dmi.Component.alias)
4691 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4692}
4693inline ::std::string* Component::release_alias() {
4694 // @@protoc_insertion_point(field_release:dmi.Component.alias)
4695
4696 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4697}
4698inline void Component::set_allocated_alias(::std::string* alias) {
4699 if (alias != nullptr) {
4700
4701 } else {
4702
4703 }
4704 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
4705 // @@protoc_insertion_point(field_set_allocated:dmi.Component.alias)
4706}
4707
4708// string asset_id = 14;
4709inline void Component::clear_asset_id() {
4710 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4711}
4712inline const ::std::string& Component::asset_id() const {
4713 // @@protoc_insertion_point(field_get:dmi.Component.asset_id)
4714 return asset_id_.GetNoArena();
4715}
4716inline void Component::set_asset_id(const ::std::string& value) {
4717
4718 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4719 // @@protoc_insertion_point(field_set:dmi.Component.asset_id)
4720}
4721#if LANG_CXX11
4722inline void Component::set_asset_id(::std::string&& value) {
4723
4724 asset_id_.SetNoArena(
4725 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4726 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.asset_id)
4727}
4728#endif
4729inline void Component::set_asset_id(const char* value) {
4730 GOOGLE_DCHECK(value != nullptr);
4731
4732 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4733 // @@protoc_insertion_point(field_set_char:dmi.Component.asset_id)
4734}
4735inline void Component::set_asset_id(const char* value, size_t size) {
4736
4737 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4738 ::std::string(reinterpret_cast<const char*>(value), size));
4739 // @@protoc_insertion_point(field_set_pointer:dmi.Component.asset_id)
4740}
4741inline ::std::string* Component::mutable_asset_id() {
4742
4743 // @@protoc_insertion_point(field_mutable:dmi.Component.asset_id)
4744 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4745}
4746inline ::std::string* Component::release_asset_id() {
4747 // @@protoc_insertion_point(field_release:dmi.Component.asset_id)
4748
4749 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4750}
4751inline void Component::set_allocated_asset_id(::std::string* asset_id) {
4752 if (asset_id != nullptr) {
4753
4754 } else {
4755
4756 }
4757 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
4758 // @@protoc_insertion_point(field_set_allocated:dmi.Component.asset_id)
4759}
4760
4761// bool is_fru = 15;
4762inline void Component::clear_is_fru() {
4763 is_fru_ = false;
4764}
4765inline bool Component::is_fru() const {
4766 // @@protoc_insertion_point(field_get:dmi.Component.is_fru)
4767 return is_fru_;
4768}
4769inline void Component::set_is_fru(bool value) {
4770
4771 is_fru_ = value;
4772 // @@protoc_insertion_point(field_set:dmi.Component.is_fru)
4773}
4774
4775// .google.protobuf.Timestamp mfg_date = 16;
4776inline bool Component::has_mfg_date() const {
4777 return this != internal_default_instance() && mfg_date_ != nullptr;
4778}
4779inline const ::google::protobuf::Timestamp& Component::mfg_date() const {
4780 const ::google::protobuf::Timestamp* p = mfg_date_;
4781 // @@protoc_insertion_point(field_get:dmi.Component.mfg_date)
4782 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
4783 &::google::protobuf::_Timestamp_default_instance_);
4784}
4785inline ::google::protobuf::Timestamp* Component::release_mfg_date() {
4786 // @@protoc_insertion_point(field_release:dmi.Component.mfg_date)
4787
4788 ::google::protobuf::Timestamp* temp = mfg_date_;
4789 mfg_date_ = nullptr;
4790 return temp;
4791}
4792inline ::google::protobuf::Timestamp* Component::mutable_mfg_date() {
4793
4794 if (mfg_date_ == nullptr) {
4795 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
4796 mfg_date_ = p;
4797 }
4798 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_date)
4799 return mfg_date_;
4800}
4801inline void Component::set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date) {
4802 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4803 if (message_arena == nullptr) {
4804 delete reinterpret_cast< ::google::protobuf::MessageLite*>(mfg_date_);
4805 }
4806 if (mfg_date) {
4807 ::google::protobuf::Arena* submessage_arena =
4808 reinterpret_cast<::google::protobuf::MessageLite*>(mfg_date)->GetArena();
4809 if (message_arena != submessage_arena) {
4810 mfg_date = ::google::protobuf::internal::GetOwnedMessage(
4811 message_arena, mfg_date, submessage_arena);
4812 }
4813
4814 } else {
4815
4816 }
4817 mfg_date_ = mfg_date;
4818 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_date)
4819}
4820
4821// .dmi.Uri uri = 17;
4822inline bool Component::has_uri() const {
4823 return this != internal_default_instance() && uri_ != nullptr;
4824}
4825inline void Component::clear_uri() {
4826 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
4827 delete uri_;
4828 }
4829 uri_ = nullptr;
4830}
4831inline const ::dmi::Uri& Component::uri() const {
4832 const ::dmi::Uri* p = uri_;
4833 // @@protoc_insertion_point(field_get:dmi.Component.uri)
4834 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
4835 &::dmi::_Uri_default_instance_);
4836}
4837inline ::dmi::Uri* Component::release_uri() {
4838 // @@protoc_insertion_point(field_release:dmi.Component.uri)
4839
4840 ::dmi::Uri* temp = uri_;
4841 uri_ = nullptr;
4842 return temp;
4843}
4844inline ::dmi::Uri* Component::mutable_uri() {
4845
4846 if (uri_ == nullptr) {
4847 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
4848 uri_ = p;
4849 }
4850 // @@protoc_insertion_point(field_mutable:dmi.Component.uri)
4851 return uri_;
4852}
4853inline void Component::set_allocated_uri(::dmi::Uri* uri) {
4854 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4855 if (message_arena == nullptr) {
4856 delete uri_;
4857 }
4858 if (uri) {
4859 ::google::protobuf::Arena* submessage_arena = nullptr;
4860 if (message_arena != submessage_arena) {
4861 uri = ::google::protobuf::internal::GetOwnedMessage(
4862 message_arena, uri, submessage_arena);
4863 }
4864
4865 } else {
4866
4867 }
4868 uri_ = uri;
4869 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uri)
4870}
4871
4872// .dmi.Uuid uuid = 18;
4873inline bool Component::has_uuid() const {
4874 return this != internal_default_instance() && uuid_ != nullptr;
4875}
4876inline void Component::clear_uuid() {
4877 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
4878 delete uuid_;
4879 }
4880 uuid_ = nullptr;
4881}
4882inline const ::dmi::Uuid& Component::uuid() const {
4883 const ::dmi::Uuid* p = uuid_;
4884 // @@protoc_insertion_point(field_get:dmi.Component.uuid)
4885 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
4886 &::dmi::_Uuid_default_instance_);
4887}
4888inline ::dmi::Uuid* Component::release_uuid() {
4889 // @@protoc_insertion_point(field_release:dmi.Component.uuid)
4890
4891 ::dmi::Uuid* temp = uuid_;
4892 uuid_ = nullptr;
4893 return temp;
4894}
4895inline ::dmi::Uuid* Component::mutable_uuid() {
4896
4897 if (uuid_ == nullptr) {
4898 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
4899 uuid_ = p;
4900 }
4901 // @@protoc_insertion_point(field_mutable:dmi.Component.uuid)
4902 return uuid_;
4903}
4904inline void Component::set_allocated_uuid(::dmi::Uuid* uuid) {
4905 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4906 if (message_arena == nullptr) {
4907 delete uuid_;
4908 }
4909 if (uuid) {
4910 ::google::protobuf::Arena* submessage_arena = nullptr;
4911 if (message_arena != submessage_arena) {
4912 uuid = ::google::protobuf::internal::GetOwnedMessage(
4913 message_arena, uuid, submessage_arena);
4914 }
4915
4916 } else {
4917
4918 }
4919 uuid_ = uuid;
4920 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uuid)
4921}
4922
4923// .dmi.ComponentState state = 19;
4924inline bool Component::has_state() const {
4925 return this != internal_default_instance() && state_ != nullptr;
4926}
4927inline void Component::clear_state() {
4928 if (GetArenaNoVirtual() == nullptr && state_ != nullptr) {
4929 delete state_;
4930 }
4931 state_ = nullptr;
4932}
4933inline const ::dmi::ComponentState& Component::state() const {
4934 const ::dmi::ComponentState* p = state_;
4935 // @@protoc_insertion_point(field_get:dmi.Component.state)
4936 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ComponentState*>(
4937 &::dmi::_ComponentState_default_instance_);
4938}
4939inline ::dmi::ComponentState* Component::release_state() {
4940 // @@protoc_insertion_point(field_release:dmi.Component.state)
4941
4942 ::dmi::ComponentState* temp = state_;
4943 state_ = nullptr;
4944 return temp;
4945}
4946inline ::dmi::ComponentState* Component::mutable_state() {
4947
4948 if (state_ == nullptr) {
4949 auto* p = CreateMaybeMessage<::dmi::ComponentState>(GetArenaNoVirtual());
4950 state_ = p;
4951 }
4952 // @@protoc_insertion_point(field_mutable:dmi.Component.state)
4953 return state_;
4954}
4955inline void Component::set_allocated_state(::dmi::ComponentState* state) {
4956 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4957 if (message_arena == nullptr) {
4958 delete state_;
4959 }
4960 if (state) {
4961 ::google::protobuf::Arena* submessage_arena = nullptr;
4962 if (message_arena != submessage_arena) {
4963 state = ::google::protobuf::internal::GetOwnedMessage(
4964 message_arena, state, submessage_arena);
4965 }
4966
4967 } else {
4968
4969 }
4970 state_ = state;
4971 // @@protoc_insertion_point(field_set_allocated:dmi.Component.state)
4972}
4973
4974// repeated .dmi.ComponentSensorData sensor_data = 20;
4975inline int Component::sensor_data_size() const {
4976 return sensor_data_.size();
4977}
4978inline void Component::clear_sensor_data() {
4979 sensor_data_.Clear();
4980}
4981inline ::dmi::ComponentSensorData* Component::mutable_sensor_data(int index) {
4982 // @@protoc_insertion_point(field_mutable:dmi.Component.sensor_data)
4983 return sensor_data_.Mutable(index);
4984}
4985inline ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
4986Component::mutable_sensor_data() {
4987 // @@protoc_insertion_point(field_mutable_list:dmi.Component.sensor_data)
4988 return &sensor_data_;
4989}
4990inline const ::dmi::ComponentSensorData& Component::sensor_data(int index) const {
4991 // @@protoc_insertion_point(field_get:dmi.Component.sensor_data)
4992 return sensor_data_.Get(index);
4993}
4994inline ::dmi::ComponentSensorData* Component::add_sensor_data() {
4995 // @@protoc_insertion_point(field_add:dmi.Component.sensor_data)
4996 return sensor_data_.Add();
4997}
4998inline const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
4999Component::sensor_data() const {
5000 // @@protoc_insertion_point(field_list:dmi.Component.sensor_data)
5001 return sensor_data_;
5002}
5003
5004// .dmi.PortComponentAttributes port_attr = 50;
5005inline bool Component::has_port_attr() const {
5006 return specific_case() == kPortAttr;
5007}
5008inline void Component::set_has_port_attr() {
5009 _oneof_case_[0] = kPortAttr;
5010}
5011inline void Component::clear_port_attr() {
5012 if (has_port_attr()) {
5013 delete specific_.port_attr_;
5014 clear_has_specific();
5015 }
5016}
5017inline ::dmi::PortComponentAttributes* Component::release_port_attr() {
5018 // @@protoc_insertion_point(field_release:dmi.Component.port_attr)
5019 if (has_port_attr()) {
5020 clear_has_specific();
5021 ::dmi::PortComponentAttributes* temp = specific_.port_attr_;
5022 specific_.port_attr_ = nullptr;
5023 return temp;
5024 } else {
5025 return nullptr;
5026 }
5027}
5028inline const ::dmi::PortComponentAttributes& Component::port_attr() const {
5029 // @@protoc_insertion_point(field_get:dmi.Component.port_attr)
5030 return has_port_attr()
5031 ? *specific_.port_attr_
5032 : *reinterpret_cast< ::dmi::PortComponentAttributes*>(&::dmi::_PortComponentAttributes_default_instance_);
5033}
5034inline ::dmi::PortComponentAttributes* Component::mutable_port_attr() {
5035 if (!has_port_attr()) {
5036 clear_specific();
5037 set_has_port_attr();
5038 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentAttributes >(
5039 GetArenaNoVirtual());
5040 }
5041 // @@protoc_insertion_point(field_mutable:dmi.Component.port_attr)
5042 return specific_.port_attr_;
5043}
5044
5045// .dmi.ContainerComponentAttributes container_attr = 51;
5046inline bool Component::has_container_attr() const {
5047 return specific_case() == kContainerAttr;
5048}
5049inline void Component::set_has_container_attr() {
5050 _oneof_case_[0] = kContainerAttr;
5051}
5052inline void Component::clear_container_attr() {
5053 if (has_container_attr()) {
5054 delete specific_.container_attr_;
5055 clear_has_specific();
5056 }
5057}
5058inline ::dmi::ContainerComponentAttributes* Component::release_container_attr() {
5059 // @@protoc_insertion_point(field_release:dmi.Component.container_attr)
5060 if (has_container_attr()) {
5061 clear_has_specific();
5062 ::dmi::ContainerComponentAttributes* temp = specific_.container_attr_;
5063 specific_.container_attr_ = nullptr;
5064 return temp;
5065 } else {
5066 return nullptr;
5067 }
5068}
5069inline const ::dmi::ContainerComponentAttributes& Component::container_attr() const {
5070 // @@protoc_insertion_point(field_get:dmi.Component.container_attr)
5071 return has_container_attr()
5072 ? *specific_.container_attr_
5073 : *reinterpret_cast< ::dmi::ContainerComponentAttributes*>(&::dmi::_ContainerComponentAttributes_default_instance_);
5074}
5075inline ::dmi::ContainerComponentAttributes* Component::mutable_container_attr() {
5076 if (!has_container_attr()) {
5077 clear_specific();
5078 set_has_container_attr();
5079 specific_.container_attr_ = CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(
5080 GetArenaNoVirtual());
5081 }
5082 // @@protoc_insertion_point(field_mutable:dmi.Component.container_attr)
5083 return specific_.container_attr_;
5084}
5085
5086// .dmi.PsuComponentAttributes psu_attr = 52;
5087inline bool Component::has_psu_attr() const {
5088 return specific_case() == kPsuAttr;
5089}
5090inline void Component::set_has_psu_attr() {
5091 _oneof_case_[0] = kPsuAttr;
5092}
5093inline void Component::clear_psu_attr() {
5094 if (has_psu_attr()) {
5095 delete specific_.psu_attr_;
5096 clear_has_specific();
5097 }
5098}
5099inline ::dmi::PsuComponentAttributes* Component::release_psu_attr() {
5100 // @@protoc_insertion_point(field_release:dmi.Component.psu_attr)
5101 if (has_psu_attr()) {
5102 clear_has_specific();
5103 ::dmi::PsuComponentAttributes* temp = specific_.psu_attr_;
5104 specific_.psu_attr_ = nullptr;
5105 return temp;
5106 } else {
5107 return nullptr;
5108 }
5109}
5110inline const ::dmi::PsuComponentAttributes& Component::psu_attr() const {
5111 // @@protoc_insertion_point(field_get:dmi.Component.psu_attr)
5112 return has_psu_attr()
5113 ? *specific_.psu_attr_
5114 : *reinterpret_cast< ::dmi::PsuComponentAttributes*>(&::dmi::_PsuComponentAttributes_default_instance_);
5115}
5116inline ::dmi::PsuComponentAttributes* Component::mutable_psu_attr() {
5117 if (!has_psu_attr()) {
5118 clear_specific();
5119 set_has_psu_attr();
5120 specific_.psu_attr_ = CreateMaybeMessage< ::dmi::PsuComponentAttributes >(
5121 GetArenaNoVirtual());
5122 }
5123 // @@protoc_insertion_point(field_mutable:dmi.Component.psu_attr)
5124 return specific_.psu_attr_;
5125}
5126
5127// .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
5128inline bool Component::has_transceiver_attr() const {
5129 return specific_case() == kTransceiverAttr;
5130}
5131inline void Component::set_has_transceiver_attr() {
5132 _oneof_case_[0] = kTransceiverAttr;
5133}
5134inline void Component::clear_transceiver_attr() {
5135 if (has_transceiver_attr()) {
5136 delete specific_.transceiver_attr_;
5137 clear_has_specific();
5138 }
5139}
5140inline ::dmi::TransceiverComponentsAttributes* Component::release_transceiver_attr() {
5141 // @@protoc_insertion_point(field_release:dmi.Component.transceiver_attr)
5142 if (has_transceiver_attr()) {
5143 clear_has_specific();
5144 ::dmi::TransceiverComponentsAttributes* temp = specific_.transceiver_attr_;
5145 specific_.transceiver_attr_ = nullptr;
5146 return temp;
5147 } else {
5148 return nullptr;
5149 }
5150}
5151inline const ::dmi::TransceiverComponentsAttributes& Component::transceiver_attr() const {
5152 // @@protoc_insertion_point(field_get:dmi.Component.transceiver_attr)
5153 return has_transceiver_attr()
5154 ? *specific_.transceiver_attr_
5155 : *reinterpret_cast< ::dmi::TransceiverComponentsAttributes*>(&::dmi::_TransceiverComponentsAttributes_default_instance_);
5156}
5157inline ::dmi::TransceiverComponentsAttributes* Component::mutable_transceiver_attr() {
5158 if (!has_transceiver_attr()) {
5159 clear_specific();
5160 set_has_transceiver_attr();
5161 specific_.transceiver_attr_ = CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(
5162 GetArenaNoVirtual());
5163 }
5164 // @@protoc_insertion_point(field_mutable:dmi.Component.transceiver_attr)
5165 return specific_.transceiver_attr_;
5166}
5167
5168inline bool Component::has_specific() const {
5169 return specific_case() != SPECIFIC_NOT_SET;
5170}
5171inline void Component::clear_has_specific() {
5172 _oneof_case_[0] = SPECIFIC_NOT_SET;
5173}
5174inline Component::SpecificCase Component::specific_case() const {
5175 return Component::SpecificCase(_oneof_case_[0]);
5176}
5177// -------------------------------------------------------------------
5178
5179// Hardware
5180
5181// .google.protobuf.Timestamp last_change = 1;
5182inline bool Hardware::has_last_change() const {
5183 return this != internal_default_instance() && last_change_ != nullptr;
5184}
5185inline const ::google::protobuf::Timestamp& Hardware::last_change() const {
5186 const ::google::protobuf::Timestamp* p = last_change_;
5187 // @@protoc_insertion_point(field_get:dmi.Hardware.last_change)
5188 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5189 &::google::protobuf::_Timestamp_default_instance_);
5190}
5191inline ::google::protobuf::Timestamp* Hardware::release_last_change() {
5192 // @@protoc_insertion_point(field_release:dmi.Hardware.last_change)
5193
5194 ::google::protobuf::Timestamp* temp = last_change_;
5195 last_change_ = nullptr;
5196 return temp;
5197}
5198inline ::google::protobuf::Timestamp* Hardware::mutable_last_change() {
5199
5200 if (last_change_ == nullptr) {
5201 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5202 last_change_ = p;
5203 }
5204 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_change)
5205 return last_change_;
5206}
5207inline void Hardware::set_allocated_last_change(::google::protobuf::Timestamp* last_change) {
5208 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5209 if (message_arena == nullptr) {
5210 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_change_);
5211 }
5212 if (last_change) {
5213 ::google::protobuf::Arena* submessage_arena =
5214 reinterpret_cast<::google::protobuf::MessageLite*>(last_change)->GetArena();
5215 if (message_arena != submessage_arena) {
5216 last_change = ::google::protobuf::internal::GetOwnedMessage(
5217 message_arena, last_change, submessage_arena);
5218 }
5219
5220 } else {
5221
5222 }
5223 last_change_ = last_change;
5224 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_change)
5225}
5226
5227// .dmi.Component root = 2;
5228inline bool Hardware::has_root() const {
5229 return this != internal_default_instance() && root_ != nullptr;
5230}
5231inline void Hardware::clear_root() {
5232 if (GetArenaNoVirtual() == nullptr && root_ != nullptr) {
5233 delete root_;
5234 }
5235 root_ = nullptr;
5236}
5237inline const ::dmi::Component& Hardware::root() const {
5238 const ::dmi::Component* p = root_;
5239 // @@protoc_insertion_point(field_get:dmi.Hardware.root)
5240 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5241 &::dmi::_Component_default_instance_);
5242}
5243inline ::dmi::Component* Hardware::release_root() {
5244 // @@protoc_insertion_point(field_release:dmi.Hardware.root)
5245
5246 ::dmi::Component* temp = root_;
5247 root_ = nullptr;
5248 return temp;
5249}
5250inline ::dmi::Component* Hardware::mutable_root() {
5251
5252 if (root_ == nullptr) {
5253 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5254 root_ = p;
5255 }
5256 // @@protoc_insertion_point(field_mutable:dmi.Hardware.root)
5257 return root_;
5258}
5259inline void Hardware::set_allocated_root(::dmi::Component* root) {
5260 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5261 if (message_arena == nullptr) {
5262 delete root_;
5263 }
5264 if (root) {
5265 ::google::protobuf::Arena* submessage_arena = nullptr;
5266 if (message_arena != submessage_arena) {
5267 root = ::google::protobuf::internal::GetOwnedMessage(
5268 message_arena, root, submessage_arena);
5269 }
5270
5271 } else {
5272
5273 }
5274 root_ = root;
5275 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.root)
5276}
5277
5278// .google.protobuf.Timestamp last_booted = 3;
5279inline bool Hardware::has_last_booted() const {
5280 return this != internal_default_instance() && last_booted_ != nullptr;
5281}
5282inline const ::google::protobuf::Timestamp& Hardware::last_booted() const {
5283 const ::google::protobuf::Timestamp* p = last_booted_;
5284 // @@protoc_insertion_point(field_get:dmi.Hardware.last_booted)
5285 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5286 &::google::protobuf::_Timestamp_default_instance_);
5287}
5288inline ::google::protobuf::Timestamp* Hardware::release_last_booted() {
5289 // @@protoc_insertion_point(field_release:dmi.Hardware.last_booted)
5290
5291 ::google::protobuf::Timestamp* temp = last_booted_;
5292 last_booted_ = nullptr;
5293 return temp;
5294}
5295inline ::google::protobuf::Timestamp* Hardware::mutable_last_booted() {
5296
5297 if (last_booted_ == nullptr) {
5298 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5299 last_booted_ = p;
5300 }
5301 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_booted)
5302 return last_booted_;
5303}
5304inline void Hardware::set_allocated_last_booted(::google::protobuf::Timestamp* last_booted) {
5305 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5306 if (message_arena == nullptr) {
5307 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_booted_);
5308 }
5309 if (last_booted) {
5310 ::google::protobuf::Arena* submessage_arena =
5311 reinterpret_cast<::google::protobuf::MessageLite*>(last_booted)->GetArena();
5312 if (message_arena != submessage_arena) {
5313 last_booted = ::google::protobuf::internal::GetOwnedMessage(
5314 message_arena, last_booted, submessage_arena);
5315 }
5316
5317 } else {
5318
5319 }
5320 last_booted_ = last_booted;
5321 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_booted)
5322}
5323
5324// -------------------------------------------------------------------
5325
5326// ModifiableComponent
5327
5328// string name = 1;
5329inline void ModifiableComponent::clear_name() {
5330 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5331}
5332inline const ::std::string& ModifiableComponent::name() const {
5333 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.name)
5334 return name_.GetNoArena();
5335}
5336inline void ModifiableComponent::set_name(const ::std::string& value) {
5337
5338 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5339 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.name)
5340}
5341#if LANG_CXX11
5342inline void ModifiableComponent::set_name(::std::string&& value) {
5343
5344 name_.SetNoArena(
5345 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5346 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.name)
5347}
5348#endif
5349inline void ModifiableComponent::set_name(const char* value) {
5350 GOOGLE_DCHECK(value != nullptr);
5351
5352 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5353 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.name)
5354}
5355inline void ModifiableComponent::set_name(const char* value, size_t size) {
5356
5357 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5358 ::std::string(reinterpret_cast<const char*>(value), size));
5359 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.name)
5360}
5361inline ::std::string* ModifiableComponent::mutable_name() {
5362
5363 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.name)
5364 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5365}
5366inline ::std::string* ModifiableComponent::release_name() {
5367 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.name)
5368
5369 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5370}
5371inline void ModifiableComponent::set_allocated_name(::std::string* name) {
5372 if (name != nullptr) {
5373
5374 } else {
5375
5376 }
5377 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5378 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.name)
5379}
5380
5381// .dmi.ComponentType class = 2;
5382inline void ModifiableComponent::clear_class_() {
5383 class__ = 0;
5384}
5385inline ::dmi::ComponentType ModifiableComponent::class_() const {
5386 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.class)
5387 return static_cast< ::dmi::ComponentType >(class__);
5388}
5389inline void ModifiableComponent::set_class_(::dmi::ComponentType value) {
5390
5391 class__ = value;
5392 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.class)
5393}
5394
5395// .dmi.Component parent = 3;
5396inline bool ModifiableComponent::has_parent() const {
5397 return this != internal_default_instance() && parent_ != nullptr;
5398}
5399inline void ModifiableComponent::clear_parent() {
5400 if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) {
5401 delete parent_;
5402 }
5403 parent_ = nullptr;
5404}
5405inline const ::dmi::Component& ModifiableComponent::parent() const {
5406 const ::dmi::Component* p = parent_;
5407 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent)
5408 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5409 &::dmi::_Component_default_instance_);
5410}
5411inline ::dmi::Component* ModifiableComponent::release_parent() {
5412 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.parent)
5413
5414 ::dmi::Component* temp = parent_;
5415 parent_ = nullptr;
5416 return temp;
5417}
5418inline ::dmi::Component* ModifiableComponent::mutable_parent() {
5419
5420 if (parent_ == nullptr) {
5421 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5422 parent_ = p;
5423 }
5424 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.parent)
5425 return parent_;
5426}
5427inline void ModifiableComponent::set_allocated_parent(::dmi::Component* parent) {
5428 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5429 if (message_arena == nullptr) {
5430 delete parent_;
5431 }
5432 if (parent) {
5433 ::google::protobuf::Arena* submessage_arena = nullptr;
5434 if (message_arena != submessage_arena) {
5435 parent = ::google::protobuf::internal::GetOwnedMessage(
5436 message_arena, parent, submessage_arena);
5437 }
5438
5439 } else {
5440
5441 }
5442 parent_ = parent;
5443 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.parent)
5444}
5445
5446// int32 parent_rel_pos = 4;
5447inline void ModifiableComponent::clear_parent_rel_pos() {
5448 parent_rel_pos_ = 0;
5449}
5450inline ::google::protobuf::int32 ModifiableComponent::parent_rel_pos() const {
5451 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent_rel_pos)
5452 return parent_rel_pos_;
5453}
5454inline void ModifiableComponent::set_parent_rel_pos(::google::protobuf::int32 value) {
5455
5456 parent_rel_pos_ = value;
5457 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.parent_rel_pos)
5458}
5459
5460// string alias = 5;
5461inline void ModifiableComponent::clear_alias() {
5462 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5463}
5464inline const ::std::string& ModifiableComponent::alias() const {
5465 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.alias)
5466 return alias_.GetNoArena();
5467}
5468inline void ModifiableComponent::set_alias(const ::std::string& value) {
5469
5470 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5471 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.alias)
5472}
5473#if LANG_CXX11
5474inline void ModifiableComponent::set_alias(::std::string&& value) {
5475
5476 alias_.SetNoArena(
5477 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5478 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.alias)
5479}
5480#endif
5481inline void ModifiableComponent::set_alias(const char* value) {
5482 GOOGLE_DCHECK(value != nullptr);
5483
5484 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5485 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.alias)
5486}
5487inline void ModifiableComponent::set_alias(const char* value, size_t size) {
5488
5489 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5490 ::std::string(reinterpret_cast<const char*>(value), size));
5491 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.alias)
5492}
5493inline ::std::string* ModifiableComponent::mutable_alias() {
5494
5495 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.alias)
5496 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5497}
5498inline ::std::string* ModifiableComponent::release_alias() {
5499 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.alias)
5500
5501 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5502}
5503inline void ModifiableComponent::set_allocated_alias(::std::string* alias) {
5504 if (alias != nullptr) {
5505
5506 } else {
5507
5508 }
5509 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
5510 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.alias)
5511}
5512
5513// string asset_id = 6;
5514inline void ModifiableComponent::clear_asset_id() {
5515 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5516}
5517inline const ::std::string& ModifiableComponent::asset_id() const {
5518 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.asset_id)
5519 return asset_id_.GetNoArena();
5520}
5521inline void ModifiableComponent::set_asset_id(const ::std::string& value) {
5522
5523 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5524 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.asset_id)
5525}
5526#if LANG_CXX11
5527inline void ModifiableComponent::set_asset_id(::std::string&& value) {
5528
5529 asset_id_.SetNoArena(
5530 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5531 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.asset_id)
5532}
5533#endif
5534inline void ModifiableComponent::set_asset_id(const char* value) {
5535 GOOGLE_DCHECK(value != nullptr);
5536
5537 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5538 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.asset_id)
5539}
5540inline void ModifiableComponent::set_asset_id(const char* value, size_t size) {
5541
5542 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5543 ::std::string(reinterpret_cast<const char*>(value), size));
5544 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.asset_id)
5545}
5546inline ::std::string* ModifiableComponent::mutable_asset_id() {
5547
5548 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.asset_id)
5549 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5550}
5551inline ::std::string* ModifiableComponent::release_asset_id() {
5552 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.asset_id)
5553
5554 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5555}
5556inline void ModifiableComponent::set_allocated_asset_id(::std::string* asset_id) {
5557 if (asset_id != nullptr) {
5558
5559 } else {
5560
5561 }
5562 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
5563 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.asset_id)
5564}
5565
5566// .dmi.Uri uri = 7;
5567inline bool ModifiableComponent::has_uri() const {
5568 return this != internal_default_instance() && uri_ != nullptr;
5569}
5570inline void ModifiableComponent::clear_uri() {
5571 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
5572 delete uri_;
5573 }
5574 uri_ = nullptr;
5575}
5576inline const ::dmi::Uri& ModifiableComponent::uri() const {
5577 const ::dmi::Uri* p = uri_;
5578 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.uri)
5579 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
5580 &::dmi::_Uri_default_instance_);
5581}
5582inline ::dmi::Uri* ModifiableComponent::release_uri() {
5583 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.uri)
5584
5585 ::dmi::Uri* temp = uri_;
5586 uri_ = nullptr;
5587 return temp;
5588}
5589inline ::dmi::Uri* ModifiableComponent::mutable_uri() {
5590
5591 if (uri_ == nullptr) {
5592 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
5593 uri_ = p;
5594 }
5595 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.uri)
5596 return uri_;
5597}
5598inline void ModifiableComponent::set_allocated_uri(::dmi::Uri* uri) {
5599 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5600 if (message_arena == nullptr) {
5601 delete uri_;
5602 }
5603 if (uri) {
5604 ::google::protobuf::Arena* submessage_arena = nullptr;
5605 if (message_arena != submessage_arena) {
5606 uri = ::google::protobuf::internal::GetOwnedMessage(
5607 message_arena, uri, submessage_arena);
5608 }
5609
5610 } else {
5611
5612 }
5613 uri_ = uri;
5614 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.uri)
5615}
5616
5617// .dmi.ComponentAdminState admin_state = 8;
5618inline void ModifiableComponent::clear_admin_state() {
5619 admin_state_ = 0;
5620}
5621inline ::dmi::ComponentAdminState ModifiableComponent::admin_state() const {
5622 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.admin_state)
5623 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
5624}
5625inline void ModifiableComponent::set_admin_state(::dmi::ComponentAdminState value) {
5626
5627 admin_state_ = value;
5628 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.admin_state)
5629}
5630
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005631// .dmi.PortComponentChangeAttributes port_attr = 50;
5632inline bool ModifiableComponent::has_port_attr() const {
5633 return specific_case() == kPortAttr;
5634}
5635inline void ModifiableComponent::set_has_port_attr() {
5636 _oneof_case_[0] = kPortAttr;
5637}
5638inline void ModifiableComponent::clear_port_attr() {
5639 if (has_port_attr()) {
5640 delete specific_.port_attr_;
5641 clear_has_specific();
5642 }
5643}
5644inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::release_port_attr() {
5645 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.port_attr)
5646 if (has_port_attr()) {
5647 clear_has_specific();
5648 ::dmi::PortComponentChangeAttributes* temp = specific_.port_attr_;
5649 specific_.port_attr_ = nullptr;
5650 return temp;
5651 } else {
5652 return nullptr;
5653 }
5654}
5655inline const ::dmi::PortComponentChangeAttributes& ModifiableComponent::port_attr() const {
5656 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.port_attr)
5657 return has_port_attr()
5658 ? *specific_.port_attr_
5659 : *reinterpret_cast< ::dmi::PortComponentChangeAttributes*>(&::dmi::_PortComponentChangeAttributes_default_instance_);
5660}
5661inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::mutable_port_attr() {
5662 if (!has_port_attr()) {
5663 clear_specific();
5664 set_has_port_attr();
5665 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(
5666 GetArenaNoVirtual());
5667 }
5668 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.port_attr)
5669 return specific_.port_attr_;
5670}
5671
5672inline bool ModifiableComponent::has_specific() const {
5673 return specific_case() != SPECIFIC_NOT_SET;
5674}
5675inline void ModifiableComponent::clear_has_specific() {
5676 _oneof_case_[0] = SPECIFIC_NOT_SET;
5677}
5678inline ModifiableComponent::SpecificCase ModifiableComponent::specific_case() const {
5679 return ModifiableComponent::SpecificCase(_oneof_case_[0]);
5680}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305681#ifdef __GNUC__
5682 #pragma GCC diagnostic pop
5683#endif // __GNUC__
5684// -------------------------------------------------------------------
5685
5686// -------------------------------------------------------------------
5687
5688// -------------------------------------------------------------------
5689
5690// -------------------------------------------------------------------
5691
5692// -------------------------------------------------------------------
5693
5694// -------------------------------------------------------------------
5695
5696// -------------------------------------------------------------------
5697
5698// -------------------------------------------------------------------
5699
5700// -------------------------------------------------------------------
5701
5702// -------------------------------------------------------------------
5703
5704// -------------------------------------------------------------------
5705
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005706// -------------------------------------------------------------------
5707
5708// -------------------------------------------------------------------
5709
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305710
5711// @@protoc_insertion_point(namespace_scope)
5712
5713} // namespace dmi
5714
5715namespace google {
5716namespace protobuf {
5717
5718template <> struct is_proto_enum< ::dmi::PortComponentAttributes_ConnectorType> : ::std::true_type {};
5719template <>
5720inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_ConnectorType>() {
5721 return ::dmi::PortComponentAttributes_ConnectorType_descriptor();
5722}
5723template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Speed> : ::std::true_type {};
5724template <>
5725inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Speed>() {
5726 return ::dmi::PortComponentAttributes_Speed_descriptor();
5727}
5728template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Protocol> : ::std::true_type {};
5729template <>
5730inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Protocol>() {
5731 return ::dmi::PortComponentAttributes_Protocol_descriptor();
5732}
5733template <> struct is_proto_enum< ::dmi::PsuComponentAttributes_SupportedVoltage> : ::std::true_type {};
5734template <>
5735inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PsuComponentAttributes_SupportedVoltage>() {
5736 return ::dmi::PsuComponentAttributes_SupportedVoltage_descriptor();
5737}
5738template <> struct is_proto_enum< ::dmi::TransceiverComponentsAttributes_FormFactor> : ::std::true_type {};
5739template <>
5740inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverComponentsAttributes_FormFactor>() {
5741 return ::dmi::TransceiverComponentsAttributes_FormFactor_descriptor();
5742}
5743template <> struct is_proto_enum< ::dmi::TransceiverComponentsAttributes_Type> : ::std::true_type {};
5744template <>
5745inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverComponentsAttributes_Type>() {
5746 return ::dmi::TransceiverComponentsAttributes_Type_descriptor();
5747}
5748template <> struct is_proto_enum< ::dmi::ComponentType> : ::std::true_type {};
5749template <>
5750inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentType>() {
5751 return ::dmi::ComponentType_descriptor();
5752}
5753template <> struct is_proto_enum< ::dmi::ComponentAdminState> : ::std::true_type {};
5754template <>
5755inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAdminState>() {
5756 return ::dmi::ComponentAdminState_descriptor();
5757}
5758template <> struct is_proto_enum< ::dmi::ComponentOperState> : ::std::true_type {};
5759template <>
5760inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentOperState>() {
5761 return ::dmi::ComponentOperState_descriptor();
5762}
5763template <> struct is_proto_enum< ::dmi::ComponentUsageState> : ::std::true_type {};
5764template <>
5765inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentUsageState>() {
5766 return ::dmi::ComponentUsageState_descriptor();
5767}
5768template <> struct is_proto_enum< ::dmi::ComponentAlarmState> : ::std::true_type {};
5769template <>
5770inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAlarmState>() {
5771 return ::dmi::ComponentAlarmState_descriptor();
5772}
5773template <> struct is_proto_enum< ::dmi::ComponentStandbyState> : ::std::true_type {};
5774template <>
5775inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentStandbyState>() {
5776 return ::dmi::ComponentStandbyState_descriptor();
5777}
5778template <> struct is_proto_enum< ::dmi::DataValueType> : ::std::true_type {};
5779template <>
5780inline const EnumDescriptor* GetEnumDescriptor< ::dmi::DataValueType>() {
5781 return ::dmi::DataValueType_descriptor();
5782}
5783template <> struct is_proto_enum< ::dmi::ValueScale> : ::std::true_type {};
5784template <>
5785inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ValueScale>() {
5786 return ::dmi::ValueScale_descriptor();
5787}
5788template <> struct is_proto_enum< ::dmi::SensorStatus> : ::std::true_type {};
5789template <>
5790inline const EnumDescriptor* GetEnumDescriptor< ::dmi::SensorStatus>() {
5791 return ::dmi::SensorStatus_descriptor();
5792}
5793
5794} // namespace protobuf
5795} // namespace google
5796
5797// @@protoc_insertion_point(global_scope)
5798
5799#include <google/protobuf/port_undef.inc>
5800#endif // PROTOBUF_INCLUDED_dmi_2fhw_2eproto