blob: ebe97675876ce6755b71c0b26f4abf19cd378d58 [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
Andrea Campanellafcd22292021-08-27 10:45:46 +02001495 // bool speed_autonegotiation = 7;
1496 void clear_speed_autonegotiation();
1497 static const int kSpeedAutonegotiationFieldNumber = 7;
1498 bool speed_autonegotiation() const;
1499 void set_speed_autonegotiation(bool value);
1500
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301501 // @@protoc_insertion_point(class_scope:dmi.PortComponentAttributes)
1502 private:
1503 class HasBitSetters;
1504
1505 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1506 ::google::protobuf::internal::ArenaStringPtr physical_label_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001507 ::google::protobuf::internal::ArenaStringPtr mapping_label_;
1508 ::dmi::PonIdConfig* pon_id_config_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301509 int connector_type_;
1510 int speed_;
1511 int protocol_;
Andrea Campanellafcd22292021-08-27 10:45:46 +02001512 bool speed_autonegotiation_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301513 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1514 friend struct ::TableStruct_dmi_2fhw_2eproto;
1515};
1516// -------------------------------------------------------------------
1517
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001518class PortComponentChangeAttributes final :
1519 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PortComponentChangeAttributes) */ {
1520 public:
1521 PortComponentChangeAttributes();
1522 virtual ~PortComponentChangeAttributes();
1523
1524 PortComponentChangeAttributes(const PortComponentChangeAttributes& from);
1525
1526 inline PortComponentChangeAttributes& operator=(const PortComponentChangeAttributes& from) {
1527 CopyFrom(from);
1528 return *this;
1529 }
1530 #if LANG_CXX11
1531 PortComponentChangeAttributes(PortComponentChangeAttributes&& from) noexcept
1532 : PortComponentChangeAttributes() {
1533 *this = ::std::move(from);
1534 }
1535
1536 inline PortComponentChangeAttributes& operator=(PortComponentChangeAttributes&& from) noexcept {
1537 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1538 if (this != &from) InternalSwap(&from);
1539 } else {
1540 CopyFrom(from);
1541 }
1542 return *this;
1543 }
1544 #endif
1545 static const ::google::protobuf::Descriptor* descriptor() {
1546 return default_instance().GetDescriptor();
1547 }
1548 static const PortComponentChangeAttributes& default_instance();
1549
1550 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1551 static inline const PortComponentChangeAttributes* internal_default_instance() {
1552 return reinterpret_cast<const PortComponentChangeAttributes*>(
1553 &_PortComponentChangeAttributes_default_instance_);
1554 }
1555 static constexpr int kIndexInFileMessages =
1556 6;
1557
1558 void Swap(PortComponentChangeAttributes* other);
1559 friend void swap(PortComponentChangeAttributes& a, PortComponentChangeAttributes& b) {
1560 a.Swap(&b);
1561 }
1562
1563 // implements Message ----------------------------------------------
1564
1565 inline PortComponentChangeAttributes* New() const final {
1566 return CreateMaybeMessage<PortComponentChangeAttributes>(nullptr);
1567 }
1568
1569 PortComponentChangeAttributes* New(::google::protobuf::Arena* arena) const final {
1570 return CreateMaybeMessage<PortComponentChangeAttributes>(arena);
1571 }
1572 void CopyFrom(const ::google::protobuf::Message& from) final;
1573 void MergeFrom(const ::google::protobuf::Message& from) final;
1574 void CopyFrom(const PortComponentChangeAttributes& from);
1575 void MergeFrom(const PortComponentChangeAttributes& from);
1576 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1577 bool IsInitialized() const final;
1578
1579 size_t ByteSizeLong() const final;
1580 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1581 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1582 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1583 #else
1584 bool MergePartialFromCodedStream(
1585 ::google::protobuf::io::CodedInputStream* input) final;
1586 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1587 void SerializeWithCachedSizes(
1588 ::google::protobuf::io::CodedOutputStream* output) const final;
1589 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1590 ::google::protobuf::uint8* target) const final;
1591 int GetCachedSize() const final { return _cached_size_.Get(); }
1592
1593 private:
1594 void SharedCtor();
1595 void SharedDtor();
1596 void SetCachedSize(int size) const final;
1597 void InternalSwap(PortComponentChangeAttributes* other);
1598 private:
1599 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1600 return nullptr;
1601 }
1602 inline void* MaybeArenaPtr() const {
1603 return nullptr;
1604 }
1605 public:
1606
1607 ::google::protobuf::Metadata GetMetadata() const final;
1608
1609 // nested types ----------------------------------------------------
1610
1611 // accessors -------------------------------------------------------
1612
1613 // .dmi.PonIdConfig pon_id_config = 1;
1614 bool has_pon_id_config() const;
1615 void clear_pon_id_config();
1616 static const int kPonIdConfigFieldNumber = 1;
1617 const ::dmi::PonIdConfig& pon_id_config() const;
1618 ::dmi::PonIdConfig* release_pon_id_config();
1619 ::dmi::PonIdConfig* mutable_pon_id_config();
1620 void set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config);
1621
1622 // @@protoc_insertion_point(class_scope:dmi.PortComponentChangeAttributes)
1623 private:
1624 class HasBitSetters;
1625
1626 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1627 ::dmi::PonIdConfig* pon_id_config_;
1628 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1629 friend struct ::TableStruct_dmi_2fhw_2eproto;
1630};
1631// -------------------------------------------------------------------
1632
1633class PonIdConfig final :
1634 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PonIdConfig) */ {
1635 public:
1636 PonIdConfig();
1637 virtual ~PonIdConfig();
1638
1639 PonIdConfig(const PonIdConfig& from);
1640
1641 inline PonIdConfig& operator=(const PonIdConfig& from) {
1642 CopyFrom(from);
1643 return *this;
1644 }
1645 #if LANG_CXX11
1646 PonIdConfig(PonIdConfig&& from) noexcept
1647 : PonIdConfig() {
1648 *this = ::std::move(from);
1649 }
1650
1651 inline PonIdConfig& operator=(PonIdConfig&& from) noexcept {
1652 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1653 if (this != &from) InternalSwap(&from);
1654 } else {
1655 CopyFrom(from);
1656 }
1657 return *this;
1658 }
1659 #endif
1660 static const ::google::protobuf::Descriptor* descriptor() {
1661 return default_instance().GetDescriptor();
1662 }
1663 static const PonIdConfig& default_instance();
1664
1665 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1666 static inline const PonIdConfig* internal_default_instance() {
1667 return reinterpret_cast<const PonIdConfig*>(
1668 &_PonIdConfig_default_instance_);
1669 }
1670 static constexpr int kIndexInFileMessages =
1671 7;
1672
1673 void Swap(PonIdConfig* other);
1674 friend void swap(PonIdConfig& a, PonIdConfig& b) {
1675 a.Swap(&b);
1676 }
1677
1678 // implements Message ----------------------------------------------
1679
1680 inline PonIdConfig* New() const final {
1681 return CreateMaybeMessage<PonIdConfig>(nullptr);
1682 }
1683
1684 PonIdConfig* New(::google::protobuf::Arena* arena) const final {
1685 return CreateMaybeMessage<PonIdConfig>(arena);
1686 }
1687 void CopyFrom(const ::google::protobuf::Message& from) final;
1688 void MergeFrom(const ::google::protobuf::Message& from) final;
1689 void CopyFrom(const PonIdConfig& from);
1690 void MergeFrom(const PonIdConfig& from);
1691 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1692 bool IsInitialized() const final;
1693
1694 size_t ByteSizeLong() const final;
1695 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1696 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1697 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1698 #else
1699 bool MergePartialFromCodedStream(
1700 ::google::protobuf::io::CodedInputStream* input) final;
1701 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1702 void SerializeWithCachedSizes(
1703 ::google::protobuf::io::CodedOutputStream* output) const final;
1704 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1705 ::google::protobuf::uint8* target) const final;
1706 int GetCachedSize() const final { return _cached_size_.Get(); }
1707
1708 private:
1709 void SharedCtor();
1710 void SharedDtor();
1711 void SetCachedSize(int size) const final;
1712 void InternalSwap(PonIdConfig* other);
1713 private:
1714 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1715 return nullptr;
1716 }
1717 inline void* MaybeArenaPtr() const {
1718 return nullptr;
1719 }
1720 public:
1721
1722 ::google::protobuf::Metadata GetMetadata() const final;
1723
1724 // nested types ----------------------------------------------------
1725
1726 // accessors -------------------------------------------------------
1727
1728 // bytes pon_id = 1;
1729 void clear_pon_id();
1730 static const int kPonIdFieldNumber = 1;
1731 const ::std::string& pon_id() const;
1732 void set_pon_id(const ::std::string& value);
1733 #if LANG_CXX11
1734 void set_pon_id(::std::string&& value);
1735 #endif
1736 void set_pon_id(const char* value);
1737 void set_pon_id(const void* value, size_t size);
1738 ::std::string* mutable_pon_id();
1739 ::std::string* release_pon_id();
1740 void set_allocated_pon_id(::std::string* pon_id);
1741
1742 // uint32 pon_id_transmit_periodicity = 2;
1743 void clear_pon_id_transmit_periodicity();
1744 static const int kPonIdTransmitPeriodicityFieldNumber = 2;
1745 ::google::protobuf::uint32 pon_id_transmit_periodicity() const;
1746 void set_pon_id_transmit_periodicity(::google::protobuf::uint32 value);
1747
1748 // @@protoc_insertion_point(class_scope:dmi.PonIdConfig)
1749 private:
1750 class HasBitSetters;
1751
1752 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1753 ::google::protobuf::internal::ArenaStringPtr pon_id_;
1754 ::google::protobuf::uint32 pon_id_transmit_periodicity_;
1755 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1756 friend struct ::TableStruct_dmi_2fhw_2eproto;
1757};
1758// -------------------------------------------------------------------
1759
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301760class ContainerComponentAttributes final :
1761 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ContainerComponentAttributes) */ {
1762 public:
1763 ContainerComponentAttributes();
1764 virtual ~ContainerComponentAttributes();
1765
1766 ContainerComponentAttributes(const ContainerComponentAttributes& from);
1767
1768 inline ContainerComponentAttributes& operator=(const ContainerComponentAttributes& from) {
1769 CopyFrom(from);
1770 return *this;
1771 }
1772 #if LANG_CXX11
1773 ContainerComponentAttributes(ContainerComponentAttributes&& from) noexcept
1774 : ContainerComponentAttributes() {
1775 *this = ::std::move(from);
1776 }
1777
1778 inline ContainerComponentAttributes& operator=(ContainerComponentAttributes&& from) noexcept {
1779 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1780 if (this != &from) InternalSwap(&from);
1781 } else {
1782 CopyFrom(from);
1783 }
1784 return *this;
1785 }
1786 #endif
1787 static const ::google::protobuf::Descriptor* descriptor() {
1788 return default_instance().GetDescriptor();
1789 }
1790 static const ContainerComponentAttributes& default_instance();
1791
1792 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1793 static inline const ContainerComponentAttributes* internal_default_instance() {
1794 return reinterpret_cast<const ContainerComponentAttributes*>(
1795 &_ContainerComponentAttributes_default_instance_);
1796 }
1797 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001798 8;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301799
1800 void Swap(ContainerComponentAttributes* other);
1801 friend void swap(ContainerComponentAttributes& a, ContainerComponentAttributes& b) {
1802 a.Swap(&b);
1803 }
1804
1805 // implements Message ----------------------------------------------
1806
1807 inline ContainerComponentAttributes* New() const final {
1808 return CreateMaybeMessage<ContainerComponentAttributes>(nullptr);
1809 }
1810
1811 ContainerComponentAttributes* New(::google::protobuf::Arena* arena) const final {
1812 return CreateMaybeMessage<ContainerComponentAttributes>(arena);
1813 }
1814 void CopyFrom(const ::google::protobuf::Message& from) final;
1815 void MergeFrom(const ::google::protobuf::Message& from) final;
1816 void CopyFrom(const ContainerComponentAttributes& from);
1817 void MergeFrom(const ContainerComponentAttributes& from);
1818 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1819 bool IsInitialized() const final;
1820
1821 size_t ByteSizeLong() const final;
1822 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1823 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1824 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1825 #else
1826 bool MergePartialFromCodedStream(
1827 ::google::protobuf::io::CodedInputStream* input) final;
1828 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1829 void SerializeWithCachedSizes(
1830 ::google::protobuf::io::CodedOutputStream* output) const final;
1831 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1832 ::google::protobuf::uint8* target) const final;
1833 int GetCachedSize() const final { return _cached_size_.Get(); }
1834
1835 private:
1836 void SharedCtor();
1837 void SharedDtor();
1838 void SetCachedSize(int size) const final;
1839 void InternalSwap(ContainerComponentAttributes* other);
1840 private:
1841 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1842 return nullptr;
1843 }
1844 inline void* MaybeArenaPtr() const {
1845 return nullptr;
1846 }
1847 public:
1848
1849 ::google::protobuf::Metadata GetMetadata() const final;
1850
1851 // nested types ----------------------------------------------------
1852
1853 // accessors -------------------------------------------------------
1854
1855 // string physical_label = 1;
1856 void clear_physical_label();
1857 static const int kPhysicalLabelFieldNumber = 1;
1858 const ::std::string& physical_label() const;
1859 void set_physical_label(const ::std::string& value);
1860 #if LANG_CXX11
1861 void set_physical_label(::std::string&& value);
1862 #endif
1863 void set_physical_label(const char* value);
1864 void set_physical_label(const char* value, size_t size);
1865 ::std::string* mutable_physical_label();
1866 ::std::string* release_physical_label();
1867 void set_allocated_physical_label(::std::string* physical_label);
1868
1869 // @@protoc_insertion_point(class_scope:dmi.ContainerComponentAttributes)
1870 private:
1871 class HasBitSetters;
1872
1873 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
1874 ::google::protobuf::internal::ArenaStringPtr physical_label_;
1875 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1876 friend struct ::TableStruct_dmi_2fhw_2eproto;
1877};
1878// -------------------------------------------------------------------
1879
1880class PsuComponentAttributes final :
1881 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.PsuComponentAttributes) */ {
1882 public:
1883 PsuComponentAttributes();
1884 virtual ~PsuComponentAttributes();
1885
1886 PsuComponentAttributes(const PsuComponentAttributes& from);
1887
1888 inline PsuComponentAttributes& operator=(const PsuComponentAttributes& from) {
1889 CopyFrom(from);
1890 return *this;
1891 }
1892 #if LANG_CXX11
1893 PsuComponentAttributes(PsuComponentAttributes&& from) noexcept
1894 : PsuComponentAttributes() {
1895 *this = ::std::move(from);
1896 }
1897
1898 inline PsuComponentAttributes& operator=(PsuComponentAttributes&& from) noexcept {
1899 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1900 if (this != &from) InternalSwap(&from);
1901 } else {
1902 CopyFrom(from);
1903 }
1904 return *this;
1905 }
1906 #endif
1907 static const ::google::protobuf::Descriptor* descriptor() {
1908 return default_instance().GetDescriptor();
1909 }
1910 static const PsuComponentAttributes& default_instance();
1911
1912 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1913 static inline const PsuComponentAttributes* internal_default_instance() {
1914 return reinterpret_cast<const PsuComponentAttributes*>(
1915 &_PsuComponentAttributes_default_instance_);
1916 }
1917 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02001918 9;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05301919
1920 void Swap(PsuComponentAttributes* other);
1921 friend void swap(PsuComponentAttributes& a, PsuComponentAttributes& b) {
1922 a.Swap(&b);
1923 }
1924
1925 // implements Message ----------------------------------------------
1926
1927 inline PsuComponentAttributes* New() const final {
1928 return CreateMaybeMessage<PsuComponentAttributes>(nullptr);
1929 }
1930
1931 PsuComponentAttributes* New(::google::protobuf::Arena* arena) const final {
1932 return CreateMaybeMessage<PsuComponentAttributes>(arena);
1933 }
1934 void CopyFrom(const ::google::protobuf::Message& from) final;
1935 void MergeFrom(const ::google::protobuf::Message& from) final;
1936 void CopyFrom(const PsuComponentAttributes& from);
1937 void MergeFrom(const PsuComponentAttributes& from);
1938 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1939 bool IsInitialized() const final;
1940
1941 size_t ByteSizeLong() const final;
1942 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1943 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
1944 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
1945 #else
1946 bool MergePartialFromCodedStream(
1947 ::google::protobuf::io::CodedInputStream* input) final;
1948 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1949 void SerializeWithCachedSizes(
1950 ::google::protobuf::io::CodedOutputStream* output) const final;
1951 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
1952 ::google::protobuf::uint8* target) const final;
1953 int GetCachedSize() const final { return _cached_size_.Get(); }
1954
1955 private:
1956 void SharedCtor();
1957 void SharedDtor();
1958 void SetCachedSize(int size) const final;
1959 void InternalSwap(PsuComponentAttributes* other);
1960 private:
1961 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
1962 return nullptr;
1963 }
1964 inline void* MaybeArenaPtr() const {
1965 return nullptr;
1966 }
1967 public:
1968
1969 ::google::protobuf::Metadata GetMetadata() const final;
1970
1971 // nested types ----------------------------------------------------
1972
1973 typedef PsuComponentAttributes_SupportedVoltage SupportedVoltage;
1974 static const SupportedVoltage SUPPORTED_VOLTAGE_UNDEFINED =
1975 PsuComponentAttributes_SupportedVoltage_SUPPORTED_VOLTAGE_UNDEFINED;
1976 static const SupportedVoltage V48 =
1977 PsuComponentAttributes_SupportedVoltage_V48;
1978 static const SupportedVoltage V230 =
1979 PsuComponentAttributes_SupportedVoltage_V230;
1980 static const SupportedVoltage V115 =
1981 PsuComponentAttributes_SupportedVoltage_V115;
1982 static inline bool SupportedVoltage_IsValid(int value) {
1983 return PsuComponentAttributes_SupportedVoltage_IsValid(value);
1984 }
1985 static const SupportedVoltage SupportedVoltage_MIN =
1986 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MIN;
1987 static const SupportedVoltage SupportedVoltage_MAX =
1988 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_MAX;
1989 static const int SupportedVoltage_ARRAYSIZE =
1990 PsuComponentAttributes_SupportedVoltage_SupportedVoltage_ARRAYSIZE;
1991 static inline const ::google::protobuf::EnumDescriptor*
1992 SupportedVoltage_descriptor() {
1993 return PsuComponentAttributes_SupportedVoltage_descriptor();
1994 }
1995 static inline const ::std::string& SupportedVoltage_Name(SupportedVoltage value) {
1996 return PsuComponentAttributes_SupportedVoltage_Name(value);
1997 }
1998 static inline bool SupportedVoltage_Parse(const ::std::string& name,
1999 SupportedVoltage* value) {
2000 return PsuComponentAttributes_SupportedVoltage_Parse(name, value);
2001 }
2002
2003 // accessors -------------------------------------------------------
2004
2005 // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
2006 void clear_supported_voltage();
2007 static const int kSupportedVoltageFieldNumber = 1;
2008 ::dmi::PsuComponentAttributes_SupportedVoltage supported_voltage() const;
2009 void set_supported_voltage(::dmi::PsuComponentAttributes_SupportedVoltage value);
2010
2011 // @@protoc_insertion_point(class_scope:dmi.PsuComponentAttributes)
2012 private:
2013 class HasBitSetters;
2014
2015 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2016 int supported_voltage_;
2017 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2018 friend struct ::TableStruct_dmi_2fhw_2eproto;
2019};
2020// -------------------------------------------------------------------
2021
2022class TransceiverComponentsAttributes final :
2023 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.TransceiverComponentsAttributes) */ {
2024 public:
2025 TransceiverComponentsAttributes();
2026 virtual ~TransceiverComponentsAttributes();
2027
2028 TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from);
2029
2030 inline TransceiverComponentsAttributes& operator=(const TransceiverComponentsAttributes& from) {
2031 CopyFrom(from);
2032 return *this;
2033 }
2034 #if LANG_CXX11
2035 TransceiverComponentsAttributes(TransceiverComponentsAttributes&& from) noexcept
2036 : TransceiverComponentsAttributes() {
2037 *this = ::std::move(from);
2038 }
2039
2040 inline TransceiverComponentsAttributes& operator=(TransceiverComponentsAttributes&& from) noexcept {
2041 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2042 if (this != &from) InternalSwap(&from);
2043 } else {
2044 CopyFrom(from);
2045 }
2046 return *this;
2047 }
2048 #endif
2049 static const ::google::protobuf::Descriptor* descriptor() {
2050 return default_instance().GetDescriptor();
2051 }
2052 static const TransceiverComponentsAttributes& default_instance();
2053
2054 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2055 static inline const TransceiverComponentsAttributes* internal_default_instance() {
2056 return reinterpret_cast<const TransceiverComponentsAttributes*>(
2057 &_TransceiverComponentsAttributes_default_instance_);
2058 }
2059 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002060 10;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302061
2062 void Swap(TransceiverComponentsAttributes* other);
2063 friend void swap(TransceiverComponentsAttributes& a, TransceiverComponentsAttributes& b) {
2064 a.Swap(&b);
2065 }
2066
2067 // implements Message ----------------------------------------------
2068
2069 inline TransceiverComponentsAttributes* New() const final {
2070 return CreateMaybeMessage<TransceiverComponentsAttributes>(nullptr);
2071 }
2072
2073 TransceiverComponentsAttributes* New(::google::protobuf::Arena* arena) const final {
2074 return CreateMaybeMessage<TransceiverComponentsAttributes>(arena);
2075 }
2076 void CopyFrom(const ::google::protobuf::Message& from) final;
2077 void MergeFrom(const ::google::protobuf::Message& from) final;
2078 void CopyFrom(const TransceiverComponentsAttributes& from);
2079 void MergeFrom(const TransceiverComponentsAttributes& from);
2080 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2081 bool IsInitialized() const final;
2082
2083 size_t ByteSizeLong() const final;
2084 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2085 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2086 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2087 #else
2088 bool MergePartialFromCodedStream(
2089 ::google::protobuf::io::CodedInputStream* input) final;
2090 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2091 void SerializeWithCachedSizes(
2092 ::google::protobuf::io::CodedOutputStream* output) const final;
2093 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2094 ::google::protobuf::uint8* target) const final;
2095 int GetCachedSize() const final { return _cached_size_.Get(); }
2096
2097 private:
2098 void SharedCtor();
2099 void SharedDtor();
2100 void SetCachedSize(int size) const final;
2101 void InternalSwap(TransceiverComponentsAttributes* other);
2102 private:
2103 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2104 return nullptr;
2105 }
2106 inline void* MaybeArenaPtr() const {
2107 return nullptr;
2108 }
2109 public:
2110
2111 ::google::protobuf::Metadata GetMetadata() const final;
2112
2113 // nested types ----------------------------------------------------
2114
2115 typedef TransceiverComponentsAttributes_FormFactor FormFactor;
2116 static const FormFactor FORM_FACTOR_UNKNOWN =
2117 TransceiverComponentsAttributes_FormFactor_FORM_FACTOR_UNKNOWN;
2118 static const FormFactor QSFP =
2119 TransceiverComponentsAttributes_FormFactor_QSFP;
2120 static const FormFactor QSFP_PLUS =
2121 TransceiverComponentsAttributes_FormFactor_QSFP_PLUS;
2122 static const FormFactor QSFP28 =
2123 TransceiverComponentsAttributes_FormFactor_QSFP28;
2124 static const FormFactor SFP =
2125 TransceiverComponentsAttributes_FormFactor_SFP;
2126 static const FormFactor SFP_PLUS =
2127 TransceiverComponentsAttributes_FormFactor_SFP_PLUS;
2128 static const FormFactor XFP =
2129 TransceiverComponentsAttributes_FormFactor_XFP;
2130 static const FormFactor CFP4 =
2131 TransceiverComponentsAttributes_FormFactor_CFP4;
2132 static const FormFactor CFP2 =
2133 TransceiverComponentsAttributes_FormFactor_CFP2;
2134 static const FormFactor CPAK =
2135 TransceiverComponentsAttributes_FormFactor_CPAK;
2136 static const FormFactor X2 =
2137 TransceiverComponentsAttributes_FormFactor_X2;
2138 static const FormFactor OTHER =
2139 TransceiverComponentsAttributes_FormFactor_OTHER;
2140 static const FormFactor CFP =
2141 TransceiverComponentsAttributes_FormFactor_CFP;
2142 static const FormFactor CFP2_ACO =
2143 TransceiverComponentsAttributes_FormFactor_CFP2_ACO;
2144 static const FormFactor CFP2_DCO =
2145 TransceiverComponentsAttributes_FormFactor_CFP2_DCO;
2146 static inline bool FormFactor_IsValid(int value) {
2147 return TransceiverComponentsAttributes_FormFactor_IsValid(value);
2148 }
2149 static const FormFactor FormFactor_MIN =
2150 TransceiverComponentsAttributes_FormFactor_FormFactor_MIN;
2151 static const FormFactor FormFactor_MAX =
2152 TransceiverComponentsAttributes_FormFactor_FormFactor_MAX;
2153 static const int FormFactor_ARRAYSIZE =
2154 TransceiverComponentsAttributes_FormFactor_FormFactor_ARRAYSIZE;
2155 static inline const ::google::protobuf::EnumDescriptor*
2156 FormFactor_descriptor() {
2157 return TransceiverComponentsAttributes_FormFactor_descriptor();
2158 }
2159 static inline const ::std::string& FormFactor_Name(FormFactor value) {
2160 return TransceiverComponentsAttributes_FormFactor_Name(value);
2161 }
2162 static inline bool FormFactor_Parse(const ::std::string& name,
2163 FormFactor* value) {
2164 return TransceiverComponentsAttributes_FormFactor_Parse(name, value);
2165 }
2166
2167 typedef TransceiverComponentsAttributes_Type Type;
2168 static const Type TYPE_UNKNOWN =
2169 TransceiverComponentsAttributes_Type_TYPE_UNKNOWN;
2170 static const Type ETHERNET =
2171 TransceiverComponentsAttributes_Type_ETHERNET;
2172 static const Type GPON =
2173 TransceiverComponentsAttributes_Type_GPON;
2174 static const Type XGPON =
2175 TransceiverComponentsAttributes_Type_XGPON;
2176 static const Type XGSPON =
2177 TransceiverComponentsAttributes_Type_XGSPON;
2178 static const Type CPON =
2179 TransceiverComponentsAttributes_Type_CPON;
2180 static const Type NG_PON2 =
2181 TransceiverComponentsAttributes_Type_NG_PON2;
2182 static const Type EPON =
2183 TransceiverComponentsAttributes_Type_EPON;
2184 static inline bool Type_IsValid(int value) {
2185 return TransceiverComponentsAttributes_Type_IsValid(value);
2186 }
2187 static const Type Type_MIN =
2188 TransceiverComponentsAttributes_Type_Type_MIN;
2189 static const Type Type_MAX =
2190 TransceiverComponentsAttributes_Type_Type_MAX;
2191 static const int Type_ARRAYSIZE =
2192 TransceiverComponentsAttributes_Type_Type_ARRAYSIZE;
2193 static inline const ::google::protobuf::EnumDescriptor*
2194 Type_descriptor() {
2195 return TransceiverComponentsAttributes_Type_descriptor();
2196 }
2197 static inline const ::std::string& Type_Name(Type value) {
2198 return TransceiverComponentsAttributes_Type_Name(value);
2199 }
2200 static inline bool Type_Parse(const ::std::string& name,
2201 Type* value) {
2202 return TransceiverComponentsAttributes_Type_Parse(name, value);
2203 }
2204
2205 // accessors -------------------------------------------------------
2206
2207 // repeated uint32 rx_wavelength = 5;
2208 int rx_wavelength_size() const;
2209 void clear_rx_wavelength();
2210 static const int kRxWavelengthFieldNumber = 5;
2211 ::google::protobuf::uint32 rx_wavelength(int index) const;
2212 void set_rx_wavelength(int index, ::google::protobuf::uint32 value);
2213 void add_rx_wavelength(::google::protobuf::uint32 value);
2214 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2215 rx_wavelength() const;
2216 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2217 mutable_rx_wavelength();
2218
2219 // repeated uint32 tx_wavelength = 6;
2220 int tx_wavelength_size() const;
2221 void clear_tx_wavelength();
2222 static const int kTxWavelengthFieldNumber = 6;
2223 ::google::protobuf::uint32 tx_wavelength(int index) const;
2224 void set_tx_wavelength(int index, ::google::protobuf::uint32 value);
2225 void add_tx_wavelength(::google::protobuf::uint32 value);
2226 const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2227 tx_wavelength() const;
2228 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2229 mutable_tx_wavelength();
2230
2231 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
2232 void clear_form_factor();
2233 static const int kFormFactorFieldNumber = 1;
2234 ::dmi::TransceiverComponentsAttributes_FormFactor form_factor() const;
2235 void set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value);
2236
2237 // .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
2238 void clear_trans_type();
2239 static const int kTransTypeFieldNumber = 2;
2240 ::dmi::TransceiverComponentsAttributes_Type trans_type() const;
2241 void set_trans_type(::dmi::TransceiverComponentsAttributes_Type value);
2242
2243 // uint32 max_distance = 3;
2244 void clear_max_distance();
2245 static const int kMaxDistanceFieldNumber = 3;
2246 ::google::protobuf::uint32 max_distance() const;
2247 void set_max_distance(::google::protobuf::uint32 value);
2248
2249 // .dmi.ValueScale max_distance_scale = 4;
2250 void clear_max_distance_scale();
2251 static const int kMaxDistanceScaleFieldNumber = 4;
2252 ::dmi::ValueScale max_distance_scale() const;
2253 void set_max_distance_scale(::dmi::ValueScale value);
2254
2255 // .dmi.ValueScale wavelength_scale = 7;
2256 void clear_wavelength_scale();
2257 static const int kWavelengthScaleFieldNumber = 7;
2258 ::dmi::ValueScale wavelength_scale() const;
2259 void set_wavelength_scale(::dmi::ValueScale value);
2260
2261 // @@protoc_insertion_point(class_scope:dmi.TransceiverComponentsAttributes)
2262 private:
2263 class HasBitSetters;
2264
2265 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2266 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rx_wavelength_;
2267 mutable std::atomic<int> _rx_wavelength_cached_byte_size_;
2268 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > tx_wavelength_;
2269 mutable std::atomic<int> _tx_wavelength_cached_byte_size_;
2270 int form_factor_;
2271 int trans_type_;
2272 ::google::protobuf::uint32 max_distance_;
2273 int max_distance_scale_;
2274 int wavelength_scale_;
2275 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2276 friend struct ::TableStruct_dmi_2fhw_2eproto;
2277};
2278// -------------------------------------------------------------------
2279
2280class Component final :
2281 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Component) */ {
2282 public:
2283 Component();
2284 virtual ~Component();
2285
2286 Component(const Component& from);
2287
2288 inline Component& operator=(const Component& from) {
2289 CopyFrom(from);
2290 return *this;
2291 }
2292 #if LANG_CXX11
2293 Component(Component&& from) noexcept
2294 : Component() {
2295 *this = ::std::move(from);
2296 }
2297
2298 inline Component& operator=(Component&& from) noexcept {
2299 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2300 if (this != &from) InternalSwap(&from);
2301 } else {
2302 CopyFrom(from);
2303 }
2304 return *this;
2305 }
2306 #endif
2307 static const ::google::protobuf::Descriptor* descriptor() {
2308 return default_instance().GetDescriptor();
2309 }
2310 static const Component& default_instance();
2311
2312 enum SpecificCase {
2313 kPortAttr = 50,
2314 kContainerAttr = 51,
2315 kPsuAttr = 52,
2316 kTransceiverAttr = 53,
2317 SPECIFIC_NOT_SET = 0,
2318 };
2319
2320 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2321 static inline const Component* internal_default_instance() {
2322 return reinterpret_cast<const Component*>(
2323 &_Component_default_instance_);
2324 }
2325 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002326 11;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302327
2328 void Swap(Component* other);
2329 friend void swap(Component& a, Component& b) {
2330 a.Swap(&b);
2331 }
2332
2333 // implements Message ----------------------------------------------
2334
2335 inline Component* New() const final {
2336 return CreateMaybeMessage<Component>(nullptr);
2337 }
2338
2339 Component* New(::google::protobuf::Arena* arena) const final {
2340 return CreateMaybeMessage<Component>(arena);
2341 }
2342 void CopyFrom(const ::google::protobuf::Message& from) final;
2343 void MergeFrom(const ::google::protobuf::Message& from) final;
2344 void CopyFrom(const Component& from);
2345 void MergeFrom(const Component& from);
2346 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2347 bool IsInitialized() const final;
2348
2349 size_t ByteSizeLong() const final;
2350 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2351 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2352 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2353 #else
2354 bool MergePartialFromCodedStream(
2355 ::google::protobuf::io::CodedInputStream* input) final;
2356 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2357 void SerializeWithCachedSizes(
2358 ::google::protobuf::io::CodedOutputStream* output) const final;
2359 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2360 ::google::protobuf::uint8* target) const final;
2361 int GetCachedSize() const final { return _cached_size_.Get(); }
2362
2363 private:
2364 void SharedCtor();
2365 void SharedDtor();
2366 void SetCachedSize(int size) const final;
2367 void InternalSwap(Component* other);
2368 private:
2369 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2370 return nullptr;
2371 }
2372 inline void* MaybeArenaPtr() const {
2373 return nullptr;
2374 }
2375 public:
2376
2377 ::google::protobuf::Metadata GetMetadata() const final;
2378
2379 // nested types ----------------------------------------------------
2380
2381 // accessors -------------------------------------------------------
2382
2383 // repeated .dmi.Component children = 6;
2384 int children_size() const;
2385 void clear_children();
2386 static const int kChildrenFieldNumber = 6;
2387 ::dmi::Component* mutable_children(int index);
2388 ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
2389 mutable_children();
2390 const ::dmi::Component& children(int index) const;
2391 ::dmi::Component* add_children();
2392 const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
2393 children() const;
2394
2395 // repeated .dmi.ComponentSensorData sensor_data = 20;
2396 int sensor_data_size() const;
2397 void clear_sensor_data();
2398 static const int kSensorDataFieldNumber = 20;
2399 ::dmi::ComponentSensorData* mutable_sensor_data(int index);
2400 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
2401 mutable_sensor_data();
2402 const ::dmi::ComponentSensorData& sensor_data(int index) const;
2403 ::dmi::ComponentSensorData* add_sensor_data();
2404 const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
2405 sensor_data() const;
2406
2407 // string name = 1;
2408 void clear_name();
2409 static const int kNameFieldNumber = 1;
2410 const ::std::string& name() const;
2411 void set_name(const ::std::string& value);
2412 #if LANG_CXX11
2413 void set_name(::std::string&& value);
2414 #endif
2415 void set_name(const char* value);
2416 void set_name(const char* value, size_t size);
2417 ::std::string* mutable_name();
2418 ::std::string* release_name();
2419 void set_allocated_name(::std::string* name);
2420
2421 // string description = 3;
2422 void clear_description();
2423 static const int kDescriptionFieldNumber = 3;
2424 const ::std::string& description() const;
2425 void set_description(const ::std::string& value);
2426 #if LANG_CXX11
2427 void set_description(::std::string&& value);
2428 #endif
2429 void set_description(const char* value);
2430 void set_description(const char* value, size_t size);
2431 ::std::string* mutable_description();
2432 ::std::string* release_description();
2433 void set_allocated_description(::std::string* description);
2434
2435 // string parent = 4;
2436 void clear_parent();
2437 static const int kParentFieldNumber = 4;
2438 const ::std::string& parent() const;
2439 void set_parent(const ::std::string& value);
2440 #if LANG_CXX11
2441 void set_parent(::std::string&& value);
2442 #endif
2443 void set_parent(const char* value);
2444 void set_parent(const char* value, size_t size);
2445 ::std::string* mutable_parent();
2446 ::std::string* release_parent();
2447 void set_allocated_parent(::std::string* parent);
2448
2449 // string hardware_rev = 7;
2450 void clear_hardware_rev();
2451 static const int kHardwareRevFieldNumber = 7;
2452 const ::std::string& hardware_rev() const;
2453 void set_hardware_rev(const ::std::string& value);
2454 #if LANG_CXX11
2455 void set_hardware_rev(::std::string&& value);
2456 #endif
2457 void set_hardware_rev(const char* value);
2458 void set_hardware_rev(const char* value, size_t size);
2459 ::std::string* mutable_hardware_rev();
2460 ::std::string* release_hardware_rev();
2461 void set_allocated_hardware_rev(::std::string* hardware_rev);
2462
2463 // string firmware_rev = 8;
2464 void clear_firmware_rev();
2465 static const int kFirmwareRevFieldNumber = 8;
2466 const ::std::string& firmware_rev() const;
2467 void set_firmware_rev(const ::std::string& value);
2468 #if LANG_CXX11
2469 void set_firmware_rev(::std::string&& value);
2470 #endif
2471 void set_firmware_rev(const char* value);
2472 void set_firmware_rev(const char* value, size_t size);
2473 ::std::string* mutable_firmware_rev();
2474 ::std::string* release_firmware_rev();
2475 void set_allocated_firmware_rev(::std::string* firmware_rev);
2476
2477 // string software_rev = 9;
2478 void clear_software_rev();
2479 static const int kSoftwareRevFieldNumber = 9;
2480 const ::std::string& software_rev() const;
2481 void set_software_rev(const ::std::string& value);
2482 #if LANG_CXX11
2483 void set_software_rev(::std::string&& value);
2484 #endif
2485 void set_software_rev(const char* value);
2486 void set_software_rev(const char* value, size_t size);
2487 ::std::string* mutable_software_rev();
2488 ::std::string* release_software_rev();
2489 void set_allocated_software_rev(::std::string* software_rev);
2490
2491 // string serial_num = 10;
2492 void clear_serial_num();
2493 static const int kSerialNumFieldNumber = 10;
2494 const ::std::string& serial_num() const;
2495 void set_serial_num(const ::std::string& value);
2496 #if LANG_CXX11
2497 void set_serial_num(::std::string&& value);
2498 #endif
2499 void set_serial_num(const char* value);
2500 void set_serial_num(const char* value, size_t size);
2501 ::std::string* mutable_serial_num();
2502 ::std::string* release_serial_num();
2503 void set_allocated_serial_num(::std::string* serial_num);
2504
2505 // string mfg_name = 11;
2506 void clear_mfg_name();
2507 static const int kMfgNameFieldNumber = 11;
2508 const ::std::string& mfg_name() const;
2509 void set_mfg_name(const ::std::string& value);
2510 #if LANG_CXX11
2511 void set_mfg_name(::std::string&& value);
2512 #endif
2513 void set_mfg_name(const char* value);
2514 void set_mfg_name(const char* value, size_t size);
2515 ::std::string* mutable_mfg_name();
2516 ::std::string* release_mfg_name();
2517 void set_allocated_mfg_name(::std::string* mfg_name);
2518
2519 // string model_name = 12;
2520 void clear_model_name();
2521 static const int kModelNameFieldNumber = 12;
2522 const ::std::string& model_name() const;
2523 void set_model_name(const ::std::string& value);
2524 #if LANG_CXX11
2525 void set_model_name(::std::string&& value);
2526 #endif
2527 void set_model_name(const char* value);
2528 void set_model_name(const char* value, size_t size);
2529 ::std::string* mutable_model_name();
2530 ::std::string* release_model_name();
2531 void set_allocated_model_name(::std::string* model_name);
2532
2533 // string alias = 13;
2534 void clear_alias();
2535 static const int kAliasFieldNumber = 13;
2536 const ::std::string& alias() const;
2537 void set_alias(const ::std::string& value);
2538 #if LANG_CXX11
2539 void set_alias(::std::string&& value);
2540 #endif
2541 void set_alias(const char* value);
2542 void set_alias(const char* value, size_t size);
2543 ::std::string* mutable_alias();
2544 ::std::string* release_alias();
2545 void set_allocated_alias(::std::string* alias);
2546
2547 // string asset_id = 14;
2548 void clear_asset_id();
2549 static const int kAssetIdFieldNumber = 14;
2550 const ::std::string& asset_id() const;
2551 void set_asset_id(const ::std::string& value);
2552 #if LANG_CXX11
2553 void set_asset_id(::std::string&& value);
2554 #endif
2555 void set_asset_id(const char* value);
2556 void set_asset_id(const char* value, size_t size);
2557 ::std::string* mutable_asset_id();
2558 ::std::string* release_asset_id();
2559 void set_allocated_asset_id(::std::string* asset_id);
2560
2561 // .google.protobuf.Timestamp mfg_date = 16;
2562 bool has_mfg_date() const;
2563 void clear_mfg_date();
2564 static const int kMfgDateFieldNumber = 16;
2565 const ::google::protobuf::Timestamp& mfg_date() const;
2566 ::google::protobuf::Timestamp* release_mfg_date();
2567 ::google::protobuf::Timestamp* mutable_mfg_date();
2568 void set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date);
2569
2570 // .dmi.Uri uri = 17;
2571 bool has_uri() const;
2572 void clear_uri();
2573 static const int kUriFieldNumber = 17;
2574 const ::dmi::Uri& uri() const;
2575 ::dmi::Uri* release_uri();
2576 ::dmi::Uri* mutable_uri();
2577 void set_allocated_uri(::dmi::Uri* uri);
2578
2579 // .dmi.Uuid uuid = 18;
2580 bool has_uuid() const;
2581 void clear_uuid();
2582 static const int kUuidFieldNumber = 18;
2583 const ::dmi::Uuid& uuid() const;
2584 ::dmi::Uuid* release_uuid();
2585 ::dmi::Uuid* mutable_uuid();
2586 void set_allocated_uuid(::dmi::Uuid* uuid);
2587
2588 // .dmi.ComponentState state = 19;
2589 bool has_state() const;
2590 void clear_state();
2591 static const int kStateFieldNumber = 19;
2592 const ::dmi::ComponentState& state() const;
2593 ::dmi::ComponentState* release_state();
2594 ::dmi::ComponentState* mutable_state();
2595 void set_allocated_state(::dmi::ComponentState* state);
2596
2597 // .dmi.ComponentType class = 2;
2598 void clear_class_();
2599 static const int kClassFieldNumber = 2;
2600 ::dmi::ComponentType class_() const;
2601 void set_class_(::dmi::ComponentType value);
2602
2603 // int32 parent_rel_pos = 5;
2604 void clear_parent_rel_pos();
2605 static const int kParentRelPosFieldNumber = 5;
2606 ::google::protobuf::int32 parent_rel_pos() const;
2607 void set_parent_rel_pos(::google::protobuf::int32 value);
2608
2609 // bool is_fru = 15;
2610 void clear_is_fru();
2611 static const int kIsFruFieldNumber = 15;
2612 bool is_fru() const;
2613 void set_is_fru(bool value);
2614
2615 // .dmi.PortComponentAttributes port_attr = 50;
2616 bool has_port_attr() const;
2617 void clear_port_attr();
2618 static const int kPortAttrFieldNumber = 50;
2619 const ::dmi::PortComponentAttributes& port_attr() const;
2620 ::dmi::PortComponentAttributes* release_port_attr();
2621 ::dmi::PortComponentAttributes* mutable_port_attr();
2622 void set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr);
2623
2624 // .dmi.ContainerComponentAttributes container_attr = 51;
2625 bool has_container_attr() const;
2626 void clear_container_attr();
2627 static const int kContainerAttrFieldNumber = 51;
2628 const ::dmi::ContainerComponentAttributes& container_attr() const;
2629 ::dmi::ContainerComponentAttributes* release_container_attr();
2630 ::dmi::ContainerComponentAttributes* mutable_container_attr();
2631 void set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr);
2632
2633 // .dmi.PsuComponentAttributes psu_attr = 52;
2634 bool has_psu_attr() const;
2635 void clear_psu_attr();
2636 static const int kPsuAttrFieldNumber = 52;
2637 const ::dmi::PsuComponentAttributes& psu_attr() const;
2638 ::dmi::PsuComponentAttributes* release_psu_attr();
2639 ::dmi::PsuComponentAttributes* mutable_psu_attr();
2640 void set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr);
2641
2642 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
2643 bool has_transceiver_attr() const;
2644 void clear_transceiver_attr();
2645 static const int kTransceiverAttrFieldNumber = 53;
2646 const ::dmi::TransceiverComponentsAttributes& transceiver_attr() const;
2647 ::dmi::TransceiverComponentsAttributes* release_transceiver_attr();
2648 ::dmi::TransceiverComponentsAttributes* mutable_transceiver_attr();
2649 void set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr);
2650
2651 void clear_specific();
2652 SpecificCase specific_case() const;
2653 // @@protoc_insertion_point(class_scope:dmi.Component)
2654 private:
2655 class HasBitSetters;
2656 void set_has_port_attr();
2657 void set_has_container_attr();
2658 void set_has_psu_attr();
2659 void set_has_transceiver_attr();
2660
2661 inline bool has_specific() const;
2662 inline void clear_has_specific();
2663
2664 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2665 ::google::protobuf::RepeatedPtrField< ::dmi::Component > children_;
2666 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData > sensor_data_;
2667 ::google::protobuf::internal::ArenaStringPtr name_;
2668 ::google::protobuf::internal::ArenaStringPtr description_;
2669 ::google::protobuf::internal::ArenaStringPtr parent_;
2670 ::google::protobuf::internal::ArenaStringPtr hardware_rev_;
2671 ::google::protobuf::internal::ArenaStringPtr firmware_rev_;
2672 ::google::protobuf::internal::ArenaStringPtr software_rev_;
2673 ::google::protobuf::internal::ArenaStringPtr serial_num_;
2674 ::google::protobuf::internal::ArenaStringPtr mfg_name_;
2675 ::google::protobuf::internal::ArenaStringPtr model_name_;
2676 ::google::protobuf::internal::ArenaStringPtr alias_;
2677 ::google::protobuf::internal::ArenaStringPtr asset_id_;
2678 ::google::protobuf::Timestamp* mfg_date_;
2679 ::dmi::Uri* uri_;
2680 ::dmi::Uuid* uuid_;
2681 ::dmi::ComponentState* state_;
2682 int class__;
2683 ::google::protobuf::int32 parent_rel_pos_;
2684 bool is_fru_;
2685 union SpecificUnion {
2686 SpecificUnion() {}
2687 ::dmi::PortComponentAttributes* port_attr_;
2688 ::dmi::ContainerComponentAttributes* container_attr_;
2689 ::dmi::PsuComponentAttributes* psu_attr_;
2690 ::dmi::TransceiverComponentsAttributes* transceiver_attr_;
2691 } specific_;
2692 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2693 ::google::protobuf::uint32 _oneof_case_[1];
2694
2695 friend struct ::TableStruct_dmi_2fhw_2eproto;
2696};
2697// -------------------------------------------------------------------
2698
2699class Hardware final :
2700 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Hardware) */ {
2701 public:
2702 Hardware();
2703 virtual ~Hardware();
2704
2705 Hardware(const Hardware& from);
2706
2707 inline Hardware& operator=(const Hardware& from) {
2708 CopyFrom(from);
2709 return *this;
2710 }
2711 #if LANG_CXX11
2712 Hardware(Hardware&& from) noexcept
2713 : Hardware() {
2714 *this = ::std::move(from);
2715 }
2716
2717 inline Hardware& operator=(Hardware&& from) noexcept {
2718 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2719 if (this != &from) InternalSwap(&from);
2720 } else {
2721 CopyFrom(from);
2722 }
2723 return *this;
2724 }
2725 #endif
2726 static const ::google::protobuf::Descriptor* descriptor() {
2727 return default_instance().GetDescriptor();
2728 }
2729 static const Hardware& default_instance();
2730
2731 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2732 static inline const Hardware* internal_default_instance() {
2733 return reinterpret_cast<const Hardware*>(
2734 &_Hardware_default_instance_);
2735 }
2736 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002737 12;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302738
2739 void Swap(Hardware* other);
2740 friend void swap(Hardware& a, Hardware& b) {
2741 a.Swap(&b);
2742 }
2743
2744 // implements Message ----------------------------------------------
2745
2746 inline Hardware* New() const final {
2747 return CreateMaybeMessage<Hardware>(nullptr);
2748 }
2749
2750 Hardware* New(::google::protobuf::Arena* arena) const final {
2751 return CreateMaybeMessage<Hardware>(arena);
2752 }
2753 void CopyFrom(const ::google::protobuf::Message& from) final;
2754 void MergeFrom(const ::google::protobuf::Message& from) final;
2755 void CopyFrom(const Hardware& from);
2756 void MergeFrom(const Hardware& from);
2757 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2758 bool IsInitialized() const final;
2759
2760 size_t ByteSizeLong() const final;
2761 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2762 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2763 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2764 #else
2765 bool MergePartialFromCodedStream(
2766 ::google::protobuf::io::CodedInputStream* input) final;
2767 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2768 void SerializeWithCachedSizes(
2769 ::google::protobuf::io::CodedOutputStream* output) const final;
2770 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2771 ::google::protobuf::uint8* target) const final;
2772 int GetCachedSize() const final { return _cached_size_.Get(); }
2773
2774 private:
2775 void SharedCtor();
2776 void SharedDtor();
2777 void SetCachedSize(int size) const final;
2778 void InternalSwap(Hardware* other);
2779 private:
2780 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2781 return nullptr;
2782 }
2783 inline void* MaybeArenaPtr() const {
2784 return nullptr;
2785 }
2786 public:
2787
2788 ::google::protobuf::Metadata GetMetadata() const final;
2789
2790 // nested types ----------------------------------------------------
2791
2792 // accessors -------------------------------------------------------
2793
2794 // .google.protobuf.Timestamp last_change = 1;
2795 bool has_last_change() const;
2796 void clear_last_change();
2797 static const int kLastChangeFieldNumber = 1;
2798 const ::google::protobuf::Timestamp& last_change() const;
2799 ::google::protobuf::Timestamp* release_last_change();
2800 ::google::protobuf::Timestamp* mutable_last_change();
2801 void set_allocated_last_change(::google::protobuf::Timestamp* last_change);
2802
2803 // .dmi.Component root = 2;
2804 bool has_root() const;
2805 void clear_root();
2806 static const int kRootFieldNumber = 2;
2807 const ::dmi::Component& root() const;
2808 ::dmi::Component* release_root();
2809 ::dmi::Component* mutable_root();
2810 void set_allocated_root(::dmi::Component* root);
2811
2812 // .google.protobuf.Timestamp last_booted = 3;
2813 bool has_last_booted() const;
2814 void clear_last_booted();
2815 static const int kLastBootedFieldNumber = 3;
2816 const ::google::protobuf::Timestamp& last_booted() const;
2817 ::google::protobuf::Timestamp* release_last_booted();
2818 ::google::protobuf::Timestamp* mutable_last_booted();
2819 void set_allocated_last_booted(::google::protobuf::Timestamp* last_booted);
2820
2821 // @@protoc_insertion_point(class_scope:dmi.Hardware)
2822 private:
2823 class HasBitSetters;
2824
2825 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2826 ::google::protobuf::Timestamp* last_change_;
2827 ::dmi::Component* root_;
2828 ::google::protobuf::Timestamp* last_booted_;
2829 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2830 friend struct ::TableStruct_dmi_2fhw_2eproto;
2831};
2832// -------------------------------------------------------------------
2833
2834class ModifiableComponent final :
2835 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ModifiableComponent) */ {
2836 public:
2837 ModifiableComponent();
2838 virtual ~ModifiableComponent();
2839
2840 ModifiableComponent(const ModifiableComponent& from);
2841
2842 inline ModifiableComponent& operator=(const ModifiableComponent& from) {
2843 CopyFrom(from);
2844 return *this;
2845 }
2846 #if LANG_CXX11
2847 ModifiableComponent(ModifiableComponent&& from) noexcept
2848 : ModifiableComponent() {
2849 *this = ::std::move(from);
2850 }
2851
2852 inline ModifiableComponent& operator=(ModifiableComponent&& from) noexcept {
2853 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2854 if (this != &from) InternalSwap(&from);
2855 } else {
2856 CopyFrom(from);
2857 }
2858 return *this;
2859 }
2860 #endif
2861 static const ::google::protobuf::Descriptor* descriptor() {
2862 return default_instance().GetDescriptor();
2863 }
2864 static const ModifiableComponent& default_instance();
2865
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002866 enum SpecificCase {
2867 kPortAttr = 50,
2868 SPECIFIC_NOT_SET = 0,
2869 };
2870
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302871 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2872 static inline const ModifiableComponent* internal_default_instance() {
2873 return reinterpret_cast<const ModifiableComponent*>(
2874 &_ModifiableComponent_default_instance_);
2875 }
2876 static constexpr int kIndexInFileMessages =
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002877 13;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302878
2879 void Swap(ModifiableComponent* other);
2880 friend void swap(ModifiableComponent& a, ModifiableComponent& b) {
2881 a.Swap(&b);
2882 }
2883
2884 // implements Message ----------------------------------------------
2885
2886 inline ModifiableComponent* New() const final {
2887 return CreateMaybeMessage<ModifiableComponent>(nullptr);
2888 }
2889
2890 ModifiableComponent* New(::google::protobuf::Arena* arena) const final {
2891 return CreateMaybeMessage<ModifiableComponent>(arena);
2892 }
2893 void CopyFrom(const ::google::protobuf::Message& from) final;
2894 void MergeFrom(const ::google::protobuf::Message& from) final;
2895 void CopyFrom(const ModifiableComponent& from);
2896 void MergeFrom(const ModifiableComponent& from);
2897 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2898 bool IsInitialized() const final;
2899
2900 size_t ByteSizeLong() const final;
2901 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2902 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2903 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2904 #else
2905 bool MergePartialFromCodedStream(
2906 ::google::protobuf::io::CodedInputStream* input) final;
2907 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2908 void SerializeWithCachedSizes(
2909 ::google::protobuf::io::CodedOutputStream* output) const final;
2910 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2911 ::google::protobuf::uint8* target) const final;
2912 int GetCachedSize() const final { return _cached_size_.Get(); }
2913
2914 private:
2915 void SharedCtor();
2916 void SharedDtor();
2917 void SetCachedSize(int size) const final;
2918 void InternalSwap(ModifiableComponent* other);
2919 private:
2920 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2921 return nullptr;
2922 }
2923 inline void* MaybeArenaPtr() const {
2924 return nullptr;
2925 }
2926 public:
2927
2928 ::google::protobuf::Metadata GetMetadata() const final;
2929
2930 // nested types ----------------------------------------------------
2931
2932 // accessors -------------------------------------------------------
2933
2934 // string name = 1;
2935 void clear_name();
2936 static const int kNameFieldNumber = 1;
2937 const ::std::string& name() const;
2938 void set_name(const ::std::string& value);
2939 #if LANG_CXX11
2940 void set_name(::std::string&& value);
2941 #endif
2942 void set_name(const char* value);
2943 void set_name(const char* value, size_t size);
2944 ::std::string* mutable_name();
2945 ::std::string* release_name();
2946 void set_allocated_name(::std::string* name);
2947
2948 // string alias = 5;
2949 void clear_alias();
2950 static const int kAliasFieldNumber = 5;
2951 const ::std::string& alias() const;
2952 void set_alias(const ::std::string& value);
2953 #if LANG_CXX11
2954 void set_alias(::std::string&& value);
2955 #endif
2956 void set_alias(const char* value);
2957 void set_alias(const char* value, size_t size);
2958 ::std::string* mutable_alias();
2959 ::std::string* release_alias();
2960 void set_allocated_alias(::std::string* alias);
2961
2962 // string asset_id = 6;
2963 void clear_asset_id();
2964 static const int kAssetIdFieldNumber = 6;
2965 const ::std::string& asset_id() const;
2966 void set_asset_id(const ::std::string& value);
2967 #if LANG_CXX11
2968 void set_asset_id(::std::string&& value);
2969 #endif
2970 void set_asset_id(const char* value);
2971 void set_asset_id(const char* value, size_t size);
2972 ::std::string* mutable_asset_id();
2973 ::std::string* release_asset_id();
2974 void set_allocated_asset_id(::std::string* asset_id);
2975
2976 // .dmi.Component parent = 3;
2977 bool has_parent() const;
2978 void clear_parent();
2979 static const int kParentFieldNumber = 3;
2980 const ::dmi::Component& parent() const;
2981 ::dmi::Component* release_parent();
2982 ::dmi::Component* mutable_parent();
2983 void set_allocated_parent(::dmi::Component* parent);
2984
2985 // .dmi.Uri uri = 7;
2986 bool has_uri() const;
2987 void clear_uri();
2988 static const int kUriFieldNumber = 7;
2989 const ::dmi::Uri& uri() const;
2990 ::dmi::Uri* release_uri();
2991 ::dmi::Uri* mutable_uri();
2992 void set_allocated_uri(::dmi::Uri* uri);
2993
2994 // .dmi.ComponentType class = 2;
2995 void clear_class_();
2996 static const int kClassFieldNumber = 2;
2997 ::dmi::ComponentType class_() const;
2998 void set_class_(::dmi::ComponentType value);
2999
3000 // int32 parent_rel_pos = 4;
3001 void clear_parent_rel_pos();
3002 static const int kParentRelPosFieldNumber = 4;
3003 ::google::protobuf::int32 parent_rel_pos() const;
3004 void set_parent_rel_pos(::google::protobuf::int32 value);
3005
3006 // .dmi.ComponentAdminState admin_state = 8;
3007 void clear_admin_state();
3008 static const int kAdminStateFieldNumber = 8;
3009 ::dmi::ComponentAdminState admin_state() const;
3010 void set_admin_state(::dmi::ComponentAdminState value);
3011
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003012 // .dmi.PortComponentChangeAttributes port_attr = 50;
3013 bool has_port_attr() const;
3014 void clear_port_attr();
3015 static const int kPortAttrFieldNumber = 50;
3016 const ::dmi::PortComponentChangeAttributes& port_attr() const;
3017 ::dmi::PortComponentChangeAttributes* release_port_attr();
3018 ::dmi::PortComponentChangeAttributes* mutable_port_attr();
3019 void set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr);
3020
3021 void clear_specific();
3022 SpecificCase specific_case() const;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303023 // @@protoc_insertion_point(class_scope:dmi.ModifiableComponent)
3024 private:
3025 class HasBitSetters;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003026 void set_has_port_attr();
3027
3028 inline bool has_specific() const;
3029 inline void clear_has_specific();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303030
3031 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3032 ::google::protobuf::internal::ArenaStringPtr name_;
3033 ::google::protobuf::internal::ArenaStringPtr alias_;
3034 ::google::protobuf::internal::ArenaStringPtr asset_id_;
3035 ::dmi::Component* parent_;
3036 ::dmi::Uri* uri_;
3037 int class__;
3038 ::google::protobuf::int32 parent_rel_pos_;
3039 int admin_state_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003040 union SpecificUnion {
3041 SpecificUnion() {}
3042 ::dmi::PortComponentChangeAttributes* port_attr_;
3043 } specific_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303044 mutable ::google::protobuf::internal::CachedSize _cached_size_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003045 ::google::protobuf::uint32 _oneof_case_[1];
3046
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303047 friend struct ::TableStruct_dmi_2fhw_2eproto;
3048};
3049// ===================================================================
3050
3051
3052// ===================================================================
3053
3054#ifdef __GNUC__
3055 #pragma GCC diagnostic push
3056 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
3057#endif // __GNUC__
3058// Uuid
3059
3060// string uuid = 1;
3061inline void Uuid::clear_uuid() {
3062 uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3063}
3064inline const ::std::string& Uuid::uuid() const {
3065 // @@protoc_insertion_point(field_get:dmi.Uuid.uuid)
3066 return uuid_.GetNoArena();
3067}
3068inline void Uuid::set_uuid(const ::std::string& value) {
3069
3070 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3071 // @@protoc_insertion_point(field_set:dmi.Uuid.uuid)
3072}
3073#if LANG_CXX11
3074inline void Uuid::set_uuid(::std::string&& value) {
3075
3076 uuid_.SetNoArena(
3077 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3078 // @@protoc_insertion_point(field_set_rvalue:dmi.Uuid.uuid)
3079}
3080#endif
3081inline void Uuid::set_uuid(const char* value) {
3082 GOOGLE_DCHECK(value != nullptr);
3083
3084 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3085 // @@protoc_insertion_point(field_set_char:dmi.Uuid.uuid)
3086}
3087inline void Uuid::set_uuid(const char* value, size_t size) {
3088
3089 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3090 ::std::string(reinterpret_cast<const char*>(value), size));
3091 // @@protoc_insertion_point(field_set_pointer:dmi.Uuid.uuid)
3092}
3093inline ::std::string* Uuid::mutable_uuid() {
3094
3095 // @@protoc_insertion_point(field_mutable:dmi.Uuid.uuid)
3096 return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3097}
3098inline ::std::string* Uuid::release_uuid() {
3099 // @@protoc_insertion_point(field_release:dmi.Uuid.uuid)
3100
3101 return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3102}
3103inline void Uuid::set_allocated_uuid(::std::string* uuid) {
3104 if (uuid != nullptr) {
3105
3106 } else {
3107
3108 }
3109 uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid);
3110 // @@protoc_insertion_point(field_set_allocated:dmi.Uuid.uuid)
3111}
3112
3113// -------------------------------------------------------------------
3114
3115// HardwareID
3116
3117// .dmi.Uuid uuid = 1;
3118inline bool HardwareID::has_uuid() const {
3119 return this != internal_default_instance() && uuid_ != nullptr;
3120}
3121inline void HardwareID::clear_uuid() {
3122 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
3123 delete uuid_;
3124 }
3125 uuid_ = nullptr;
3126}
3127inline const ::dmi::Uuid& HardwareID::uuid() const {
3128 const ::dmi::Uuid* p = uuid_;
3129 // @@protoc_insertion_point(field_get:dmi.HardwareID.uuid)
3130 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
3131 &::dmi::_Uuid_default_instance_);
3132}
3133inline ::dmi::Uuid* HardwareID::release_uuid() {
3134 // @@protoc_insertion_point(field_release:dmi.HardwareID.uuid)
3135
3136 ::dmi::Uuid* temp = uuid_;
3137 uuid_ = nullptr;
3138 return temp;
3139}
3140inline ::dmi::Uuid* HardwareID::mutable_uuid() {
3141
3142 if (uuid_ == nullptr) {
3143 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
3144 uuid_ = p;
3145 }
3146 // @@protoc_insertion_point(field_mutable:dmi.HardwareID.uuid)
3147 return uuid_;
3148}
3149inline void HardwareID::set_allocated_uuid(::dmi::Uuid* uuid) {
3150 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3151 if (message_arena == nullptr) {
3152 delete uuid_;
3153 }
3154 if (uuid) {
3155 ::google::protobuf::Arena* submessage_arena = nullptr;
3156 if (message_arena != submessage_arena) {
3157 uuid = ::google::protobuf::internal::GetOwnedMessage(
3158 message_arena, uuid, submessage_arena);
3159 }
3160
3161 } else {
3162
3163 }
3164 uuid_ = uuid;
3165 // @@protoc_insertion_point(field_set_allocated:dmi.HardwareID.uuid)
3166}
3167
3168// -------------------------------------------------------------------
3169
3170// Uri
3171
3172// string uri = 1;
3173inline void Uri::clear_uri() {
3174 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3175}
3176inline const ::std::string& Uri::uri() const {
3177 // @@protoc_insertion_point(field_get:dmi.Uri.uri)
3178 return uri_.GetNoArena();
3179}
3180inline void Uri::set_uri(const ::std::string& value) {
3181
3182 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3183 // @@protoc_insertion_point(field_set:dmi.Uri.uri)
3184}
3185#if LANG_CXX11
3186inline void Uri::set_uri(::std::string&& value) {
3187
3188 uri_.SetNoArena(
3189 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3190 // @@protoc_insertion_point(field_set_rvalue:dmi.Uri.uri)
3191}
3192#endif
3193inline void Uri::set_uri(const char* value) {
3194 GOOGLE_DCHECK(value != nullptr);
3195
3196 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3197 // @@protoc_insertion_point(field_set_char:dmi.Uri.uri)
3198}
3199inline void Uri::set_uri(const char* value, size_t size) {
3200
3201 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3202 ::std::string(reinterpret_cast<const char*>(value), size));
3203 // @@protoc_insertion_point(field_set_pointer:dmi.Uri.uri)
3204}
3205inline ::std::string* Uri::mutable_uri() {
3206
3207 // @@protoc_insertion_point(field_mutable:dmi.Uri.uri)
3208 return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3209}
3210inline ::std::string* Uri::release_uri() {
3211 // @@protoc_insertion_point(field_release:dmi.Uri.uri)
3212
3213 return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3214}
3215inline void Uri::set_allocated_uri(::std::string* uri) {
3216 if (uri != nullptr) {
3217
3218 } else {
3219
3220 }
3221 uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri);
3222 // @@protoc_insertion_point(field_set_allocated:dmi.Uri.uri)
3223}
3224
3225// -------------------------------------------------------------------
3226
3227// ComponentState
3228
3229// .google.protobuf.Timestamp state_last_changed = 1;
3230inline bool ComponentState::has_state_last_changed() const {
3231 return this != internal_default_instance() && state_last_changed_ != nullptr;
3232}
3233inline const ::google::protobuf::Timestamp& ComponentState::state_last_changed() const {
3234 const ::google::protobuf::Timestamp* p = state_last_changed_;
3235 // @@protoc_insertion_point(field_get:dmi.ComponentState.state_last_changed)
3236 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3237 &::google::protobuf::_Timestamp_default_instance_);
3238}
3239inline ::google::protobuf::Timestamp* ComponentState::release_state_last_changed() {
3240 // @@protoc_insertion_point(field_release:dmi.ComponentState.state_last_changed)
3241
3242 ::google::protobuf::Timestamp* temp = state_last_changed_;
3243 state_last_changed_ = nullptr;
3244 return temp;
3245}
3246inline ::google::protobuf::Timestamp* ComponentState::mutable_state_last_changed() {
3247
3248 if (state_last_changed_ == nullptr) {
3249 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3250 state_last_changed_ = p;
3251 }
3252 // @@protoc_insertion_point(field_mutable:dmi.ComponentState.state_last_changed)
3253 return state_last_changed_;
3254}
3255inline void ComponentState::set_allocated_state_last_changed(::google::protobuf::Timestamp* state_last_changed) {
3256 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3257 if (message_arena == nullptr) {
3258 delete reinterpret_cast< ::google::protobuf::MessageLite*>(state_last_changed_);
3259 }
3260 if (state_last_changed) {
3261 ::google::protobuf::Arena* submessage_arena =
3262 reinterpret_cast<::google::protobuf::MessageLite*>(state_last_changed)->GetArena();
3263 if (message_arena != submessage_arena) {
3264 state_last_changed = ::google::protobuf::internal::GetOwnedMessage(
3265 message_arena, state_last_changed, submessage_arena);
3266 }
3267
3268 } else {
3269
3270 }
3271 state_last_changed_ = state_last_changed;
3272 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentState.state_last_changed)
3273}
3274
3275// .dmi.ComponentAdminState admin_state = 2;
3276inline void ComponentState::clear_admin_state() {
3277 admin_state_ = 0;
3278}
3279inline ::dmi::ComponentAdminState ComponentState::admin_state() const {
3280 // @@protoc_insertion_point(field_get:dmi.ComponentState.admin_state)
3281 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
3282}
3283inline void ComponentState::set_admin_state(::dmi::ComponentAdminState value) {
3284
3285 admin_state_ = value;
3286 // @@protoc_insertion_point(field_set:dmi.ComponentState.admin_state)
3287}
3288
3289// .dmi.ComponentOperState oper_state = 3;
3290inline void ComponentState::clear_oper_state() {
3291 oper_state_ = 0;
3292}
3293inline ::dmi::ComponentOperState ComponentState::oper_state() const {
3294 // @@protoc_insertion_point(field_get:dmi.ComponentState.oper_state)
3295 return static_cast< ::dmi::ComponentOperState >(oper_state_);
3296}
3297inline void ComponentState::set_oper_state(::dmi::ComponentOperState value) {
3298
3299 oper_state_ = value;
3300 // @@protoc_insertion_point(field_set:dmi.ComponentState.oper_state)
3301}
3302
3303// .dmi.ComponentUsageState usage_state = 4;
3304inline void ComponentState::clear_usage_state() {
3305 usage_state_ = 0;
3306}
3307inline ::dmi::ComponentUsageState ComponentState::usage_state() const {
3308 // @@protoc_insertion_point(field_get:dmi.ComponentState.usage_state)
3309 return static_cast< ::dmi::ComponentUsageState >(usage_state_);
3310}
3311inline void ComponentState::set_usage_state(::dmi::ComponentUsageState value) {
3312
3313 usage_state_ = value;
3314 // @@protoc_insertion_point(field_set:dmi.ComponentState.usage_state)
3315}
3316
3317// .dmi.ComponentAlarmState alarm_state = 5;
3318inline void ComponentState::clear_alarm_state() {
3319 alarm_state_ = 0;
3320}
3321inline ::dmi::ComponentAlarmState ComponentState::alarm_state() const {
3322 // @@protoc_insertion_point(field_get:dmi.ComponentState.alarm_state)
3323 return static_cast< ::dmi::ComponentAlarmState >(alarm_state_);
3324}
3325inline void ComponentState::set_alarm_state(::dmi::ComponentAlarmState value) {
3326
3327 alarm_state_ = value;
3328 // @@protoc_insertion_point(field_set:dmi.ComponentState.alarm_state)
3329}
3330
3331// .dmi.ComponentStandbyState standby_state = 6;
3332inline void ComponentState::clear_standby_state() {
3333 standby_state_ = 0;
3334}
3335inline ::dmi::ComponentStandbyState ComponentState::standby_state() const {
3336 // @@protoc_insertion_point(field_get:dmi.ComponentState.standby_state)
3337 return static_cast< ::dmi::ComponentStandbyState >(standby_state_);
3338}
3339inline void ComponentState::set_standby_state(::dmi::ComponentStandbyState value) {
3340
3341 standby_state_ = value;
3342 // @@protoc_insertion_point(field_set:dmi.ComponentState.standby_state)
3343}
3344
3345// -------------------------------------------------------------------
3346
3347// ComponentSensorData
3348
3349// int32 value = 1;
3350inline void ComponentSensorData::clear_value() {
3351 value_ = 0;
3352}
3353inline ::google::protobuf::int32 ComponentSensorData::value() const {
3354 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value)
3355 return value_;
3356}
3357inline void ComponentSensorData::set_value(::google::protobuf::int32 value) {
3358
3359 value_ = value;
3360 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value)
3361}
3362
3363// .dmi.DataValueType type = 2;
3364inline void ComponentSensorData::clear_type() {
3365 type_ = 0;
3366}
3367inline ::dmi::DataValueType ComponentSensorData::type() const {
3368 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.type)
3369 return static_cast< ::dmi::DataValueType >(type_);
3370}
3371inline void ComponentSensorData::set_type(::dmi::DataValueType value) {
3372
3373 type_ = value;
3374 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.type)
3375}
3376
3377// .dmi.ValueScale scale = 3;
3378inline void ComponentSensorData::clear_scale() {
3379 scale_ = 0;
3380}
3381inline ::dmi::ValueScale ComponentSensorData::scale() const {
3382 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.scale)
3383 return static_cast< ::dmi::ValueScale >(scale_);
3384}
3385inline void ComponentSensorData::set_scale(::dmi::ValueScale value) {
3386
3387 scale_ = value;
3388 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.scale)
3389}
3390
3391// int32 precision = 4;
3392inline void ComponentSensorData::clear_precision() {
3393 precision_ = 0;
3394}
3395inline ::google::protobuf::int32 ComponentSensorData::precision() const {
3396 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.precision)
3397 return precision_;
3398}
3399inline void ComponentSensorData::set_precision(::google::protobuf::int32 value) {
3400
3401 precision_ = value;
3402 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.precision)
3403}
3404
3405// .dmi.SensorStatus status = 5;
3406inline void ComponentSensorData::clear_status() {
3407 status_ = 0;
3408}
3409inline ::dmi::SensorStatus ComponentSensorData::status() const {
3410 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.status)
3411 return static_cast< ::dmi::SensorStatus >(status_);
3412}
3413inline void ComponentSensorData::set_status(::dmi::SensorStatus value) {
3414
3415 status_ = value;
3416 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.status)
3417}
3418
3419// string units_display = 6;
3420inline void ComponentSensorData::clear_units_display() {
3421 units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3422}
3423inline const ::std::string& ComponentSensorData::units_display() const {
3424 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.units_display)
3425 return units_display_.GetNoArena();
3426}
3427inline void ComponentSensorData::set_units_display(const ::std::string& value) {
3428
3429 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3430 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.units_display)
3431}
3432#if LANG_CXX11
3433inline void ComponentSensorData::set_units_display(::std::string&& value) {
3434
3435 units_display_.SetNoArena(
3436 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3437 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.units_display)
3438}
3439#endif
3440inline void ComponentSensorData::set_units_display(const char* value) {
3441 GOOGLE_DCHECK(value != nullptr);
3442
3443 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3444 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.units_display)
3445}
3446inline void ComponentSensorData::set_units_display(const char* value, size_t size) {
3447
3448 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3449 ::std::string(reinterpret_cast<const char*>(value), size));
3450 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.units_display)
3451}
3452inline ::std::string* ComponentSensorData::mutable_units_display() {
3453
3454 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.units_display)
3455 return units_display_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3456}
3457inline ::std::string* ComponentSensorData::release_units_display() {
3458 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.units_display)
3459
3460 return units_display_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3461}
3462inline void ComponentSensorData::set_allocated_units_display(::std::string* units_display) {
3463 if (units_display != nullptr) {
3464
3465 } else {
3466
3467 }
3468 units_display_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), units_display);
3469 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.units_display)
3470}
3471
3472// .google.protobuf.Timestamp timestamp = 7;
3473inline bool ComponentSensorData::has_timestamp() const {
3474 return this != internal_default_instance() && timestamp_ != nullptr;
3475}
3476inline const ::google::protobuf::Timestamp& ComponentSensorData::timestamp() const {
3477 const ::google::protobuf::Timestamp* p = timestamp_;
3478 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.timestamp)
3479 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3480 &::google::protobuf::_Timestamp_default_instance_);
3481}
3482inline ::google::protobuf::Timestamp* ComponentSensorData::release_timestamp() {
3483 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.timestamp)
3484
3485 ::google::protobuf::Timestamp* temp = timestamp_;
3486 timestamp_ = nullptr;
3487 return temp;
3488}
3489inline ::google::protobuf::Timestamp* ComponentSensorData::mutable_timestamp() {
3490
3491 if (timestamp_ == nullptr) {
3492 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3493 timestamp_ = p;
3494 }
3495 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.timestamp)
3496 return timestamp_;
3497}
3498inline void ComponentSensorData::set_allocated_timestamp(::google::protobuf::Timestamp* timestamp) {
3499 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3500 if (message_arena == nullptr) {
3501 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_);
3502 }
3503 if (timestamp) {
3504 ::google::protobuf::Arena* submessage_arena =
3505 reinterpret_cast<::google::protobuf::MessageLite*>(timestamp)->GetArena();
3506 if (message_arena != submessage_arena) {
3507 timestamp = ::google::protobuf::internal::GetOwnedMessage(
3508 message_arena, timestamp, submessage_arena);
3509 }
3510
3511 } else {
3512
3513 }
3514 timestamp_ = timestamp;
3515 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.timestamp)
3516}
3517
3518// uint32 value_update_rate = 8;
3519inline void ComponentSensorData::clear_value_update_rate() {
3520 value_update_rate_ = 0u;
3521}
3522inline ::google::protobuf::uint32 ComponentSensorData::value_update_rate() const {
3523 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value_update_rate)
3524 return value_update_rate_;
3525}
3526inline void ComponentSensorData::set_value_update_rate(::google::protobuf::uint32 value) {
3527
3528 value_update_rate_ = value;
3529 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value_update_rate)
3530}
3531
3532// string data_type = 9;
3533inline void ComponentSensorData::clear_data_type() {
3534 data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3535}
3536inline const ::std::string& ComponentSensorData::data_type() const {
3537 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.data_type)
3538 return data_type_.GetNoArena();
3539}
3540inline void ComponentSensorData::set_data_type(const ::std::string& value) {
3541
3542 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3543 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.data_type)
3544}
3545#if LANG_CXX11
3546inline void ComponentSensorData::set_data_type(::std::string&& value) {
3547
3548 data_type_.SetNoArena(
3549 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3550 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.data_type)
3551}
3552#endif
3553inline void ComponentSensorData::set_data_type(const char* value) {
3554 GOOGLE_DCHECK(value != nullptr);
3555
3556 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3557 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.data_type)
3558}
3559inline void ComponentSensorData::set_data_type(const char* value, size_t size) {
3560
3561 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3562 ::std::string(reinterpret_cast<const char*>(value), size));
3563 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.data_type)
3564}
3565inline ::std::string* ComponentSensorData::mutable_data_type() {
3566
3567 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.data_type)
3568 return data_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3569}
3570inline ::std::string* ComponentSensorData::release_data_type() {
3571 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.data_type)
3572
3573 return data_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3574}
3575inline void ComponentSensorData::set_allocated_data_type(::std::string* data_type) {
3576 if (data_type != nullptr) {
3577
3578 } else {
3579
3580 }
3581 data_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_type);
3582 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.data_type)
3583}
3584
3585// -------------------------------------------------------------------
3586
3587// PortComponentAttributes
3588
3589// .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3590inline void PortComponentAttributes::clear_connector_type() {
3591 connector_type_ = 0;
3592}
3593inline ::dmi::PortComponentAttributes_ConnectorType PortComponentAttributes::connector_type() const {
3594 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.connector_type)
3595 return static_cast< ::dmi::PortComponentAttributes_ConnectorType >(connector_type_);
3596}
3597inline void PortComponentAttributes::set_connector_type(::dmi::PortComponentAttributes_ConnectorType value) {
3598
3599 connector_type_ = value;
3600 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.connector_type)
3601}
3602
3603// .dmi.PortComponentAttributes.Speed speed = 2;
3604inline void PortComponentAttributes::clear_speed() {
3605 speed_ = 0;
3606}
3607inline ::dmi::PortComponentAttributes_Speed PortComponentAttributes::speed() const {
3608 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.speed)
3609 return static_cast< ::dmi::PortComponentAttributes_Speed >(speed_);
3610}
3611inline void PortComponentAttributes::set_speed(::dmi::PortComponentAttributes_Speed value) {
3612
3613 speed_ = value;
3614 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.speed)
3615}
3616
3617// .dmi.PortComponentAttributes.Protocol protocol = 3;
3618inline void PortComponentAttributes::clear_protocol() {
3619 protocol_ = 0;
3620}
3621inline ::dmi::PortComponentAttributes_Protocol PortComponentAttributes::protocol() const {
3622 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.protocol)
3623 return static_cast< ::dmi::PortComponentAttributes_Protocol >(protocol_);
3624}
3625inline void PortComponentAttributes::set_protocol(::dmi::PortComponentAttributes_Protocol value) {
3626
3627 protocol_ = value;
3628 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.protocol)
3629}
3630
3631// string physical_label = 4;
3632inline void PortComponentAttributes::clear_physical_label() {
3633 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3634}
3635inline const ::std::string& PortComponentAttributes::physical_label() const {
3636 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.physical_label)
3637 return physical_label_.GetNoArena();
3638}
3639inline void PortComponentAttributes::set_physical_label(const ::std::string& value) {
3640
3641 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3642 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.physical_label)
3643}
3644#if LANG_CXX11
3645inline void PortComponentAttributes::set_physical_label(::std::string&& value) {
3646
3647 physical_label_.SetNoArena(
3648 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3649 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.physical_label)
3650}
3651#endif
3652inline void PortComponentAttributes::set_physical_label(const char* value) {
3653 GOOGLE_DCHECK(value != nullptr);
3654
3655 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3656 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.physical_label)
3657}
3658inline void PortComponentAttributes::set_physical_label(const char* value, size_t size) {
3659
3660 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3661 ::std::string(reinterpret_cast<const char*>(value), size));
3662 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.physical_label)
3663}
3664inline ::std::string* PortComponentAttributes::mutable_physical_label() {
3665
3666 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.physical_label)
3667 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3668}
3669inline ::std::string* PortComponentAttributes::release_physical_label() {
3670 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.physical_label)
3671
3672 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3673}
3674inline void PortComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
3675 if (physical_label != nullptr) {
3676
3677 } else {
3678
3679 }
3680 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
3681 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.physical_label)
3682}
3683
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003684// string mapping_label = 5;
3685inline void PortComponentAttributes::clear_mapping_label() {
3686 mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3687}
3688inline const ::std::string& PortComponentAttributes::mapping_label() const {
3689 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.mapping_label)
3690 return mapping_label_.GetNoArena();
3691}
3692inline void PortComponentAttributes::set_mapping_label(const ::std::string& value) {
3693
3694 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3695 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.mapping_label)
3696}
3697#if LANG_CXX11
3698inline void PortComponentAttributes::set_mapping_label(::std::string&& value) {
3699
3700 mapping_label_.SetNoArena(
3701 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3702 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.mapping_label)
3703}
3704#endif
3705inline void PortComponentAttributes::set_mapping_label(const char* value) {
3706 GOOGLE_DCHECK(value != nullptr);
3707
3708 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3709 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.mapping_label)
3710}
3711inline void PortComponentAttributes::set_mapping_label(const char* value, size_t size) {
3712
3713 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3714 ::std::string(reinterpret_cast<const char*>(value), size));
3715 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.mapping_label)
3716}
3717inline ::std::string* PortComponentAttributes::mutable_mapping_label() {
3718
3719 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.mapping_label)
3720 return mapping_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3721}
3722inline ::std::string* PortComponentAttributes::release_mapping_label() {
3723 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.mapping_label)
3724
3725 return mapping_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3726}
3727inline void PortComponentAttributes::set_allocated_mapping_label(::std::string* mapping_label) {
3728 if (mapping_label != nullptr) {
3729
3730 } else {
3731
3732 }
3733 mapping_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mapping_label);
3734 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.mapping_label)
3735}
3736
3737// .dmi.PonIdConfig pon_id_config = 6;
3738inline bool PortComponentAttributes::has_pon_id_config() const {
3739 return this != internal_default_instance() && pon_id_config_ != nullptr;
3740}
3741inline void PortComponentAttributes::clear_pon_id_config() {
3742 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3743 delete pon_id_config_;
3744 }
3745 pon_id_config_ = nullptr;
3746}
3747inline const ::dmi::PonIdConfig& PortComponentAttributes::pon_id_config() const {
3748 const ::dmi::PonIdConfig* p = pon_id_config_;
3749 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.pon_id_config)
3750 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3751 &::dmi::_PonIdConfig_default_instance_);
3752}
3753inline ::dmi::PonIdConfig* PortComponentAttributes::release_pon_id_config() {
3754 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.pon_id_config)
3755
3756 ::dmi::PonIdConfig* temp = pon_id_config_;
3757 pon_id_config_ = nullptr;
3758 return temp;
3759}
3760inline ::dmi::PonIdConfig* PortComponentAttributes::mutable_pon_id_config() {
3761
3762 if (pon_id_config_ == nullptr) {
3763 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3764 pon_id_config_ = p;
3765 }
3766 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.pon_id_config)
3767 return pon_id_config_;
3768}
3769inline void PortComponentAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3770 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3771 if (message_arena == nullptr) {
3772 delete pon_id_config_;
3773 }
3774 if (pon_id_config) {
3775 ::google::protobuf::Arena* submessage_arena = nullptr;
3776 if (message_arena != submessage_arena) {
3777 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3778 message_arena, pon_id_config, submessage_arena);
3779 }
3780
3781 } else {
3782
3783 }
3784 pon_id_config_ = pon_id_config;
3785 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.pon_id_config)
3786}
3787
Andrea Campanellafcd22292021-08-27 10:45:46 +02003788// bool speed_autonegotiation = 7;
3789inline void PortComponentAttributes::clear_speed_autonegotiation() {
3790 speed_autonegotiation_ = false;
3791}
3792inline bool PortComponentAttributes::speed_autonegotiation() const {
3793 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.speed_autonegotiation)
3794 return speed_autonegotiation_;
3795}
3796inline void PortComponentAttributes::set_speed_autonegotiation(bool value) {
3797
3798 speed_autonegotiation_ = value;
3799 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.speed_autonegotiation)
3800}
3801
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003802// -------------------------------------------------------------------
3803
3804// PortComponentChangeAttributes
3805
3806// .dmi.PonIdConfig pon_id_config = 1;
3807inline bool PortComponentChangeAttributes::has_pon_id_config() const {
3808 return this != internal_default_instance() && pon_id_config_ != nullptr;
3809}
3810inline void PortComponentChangeAttributes::clear_pon_id_config() {
3811 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3812 delete pon_id_config_;
3813 }
3814 pon_id_config_ = nullptr;
3815}
3816inline const ::dmi::PonIdConfig& PortComponentChangeAttributes::pon_id_config() const {
3817 const ::dmi::PonIdConfig* p = pon_id_config_;
3818 // @@protoc_insertion_point(field_get:dmi.PortComponentChangeAttributes.pon_id_config)
3819 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3820 &::dmi::_PonIdConfig_default_instance_);
3821}
3822inline ::dmi::PonIdConfig* PortComponentChangeAttributes::release_pon_id_config() {
3823 // @@protoc_insertion_point(field_release:dmi.PortComponentChangeAttributes.pon_id_config)
3824
3825 ::dmi::PonIdConfig* temp = pon_id_config_;
3826 pon_id_config_ = nullptr;
3827 return temp;
3828}
3829inline ::dmi::PonIdConfig* PortComponentChangeAttributes::mutable_pon_id_config() {
3830
3831 if (pon_id_config_ == nullptr) {
3832 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3833 pon_id_config_ = p;
3834 }
3835 // @@protoc_insertion_point(field_mutable:dmi.PortComponentChangeAttributes.pon_id_config)
3836 return pon_id_config_;
3837}
3838inline void PortComponentChangeAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3839 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3840 if (message_arena == nullptr) {
3841 delete pon_id_config_;
3842 }
3843 if (pon_id_config) {
3844 ::google::protobuf::Arena* submessage_arena = nullptr;
3845 if (message_arena != submessage_arena) {
3846 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3847 message_arena, pon_id_config, submessage_arena);
3848 }
3849
3850 } else {
3851
3852 }
3853 pon_id_config_ = pon_id_config;
3854 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentChangeAttributes.pon_id_config)
3855}
3856
3857// -------------------------------------------------------------------
3858
3859// PonIdConfig
3860
3861// bytes pon_id = 1;
3862inline void PonIdConfig::clear_pon_id() {
3863 pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3864}
3865inline const ::std::string& PonIdConfig::pon_id() const {
3866 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id)
3867 return pon_id_.GetNoArena();
3868}
3869inline void PonIdConfig::set_pon_id(const ::std::string& value) {
3870
3871 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3872 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id)
3873}
3874#if LANG_CXX11
3875inline void PonIdConfig::set_pon_id(::std::string&& value) {
3876
3877 pon_id_.SetNoArena(
3878 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3879 // @@protoc_insertion_point(field_set_rvalue:dmi.PonIdConfig.pon_id)
3880}
3881#endif
3882inline void PonIdConfig::set_pon_id(const char* value) {
3883 GOOGLE_DCHECK(value != nullptr);
3884
3885 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3886 // @@protoc_insertion_point(field_set_char:dmi.PonIdConfig.pon_id)
3887}
3888inline void PonIdConfig::set_pon_id(const void* value, size_t size) {
3889
3890 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3891 ::std::string(reinterpret_cast<const char*>(value), size));
3892 // @@protoc_insertion_point(field_set_pointer:dmi.PonIdConfig.pon_id)
3893}
3894inline ::std::string* PonIdConfig::mutable_pon_id() {
3895
3896 // @@protoc_insertion_point(field_mutable:dmi.PonIdConfig.pon_id)
3897 return pon_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3898}
3899inline ::std::string* PonIdConfig::release_pon_id() {
3900 // @@protoc_insertion_point(field_release:dmi.PonIdConfig.pon_id)
3901
3902 return pon_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3903}
3904inline void PonIdConfig::set_allocated_pon_id(::std::string* pon_id) {
3905 if (pon_id != nullptr) {
3906
3907 } else {
3908
3909 }
3910 pon_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pon_id);
3911 // @@protoc_insertion_point(field_set_allocated:dmi.PonIdConfig.pon_id)
3912}
3913
3914// uint32 pon_id_transmit_periodicity = 2;
3915inline void PonIdConfig::clear_pon_id_transmit_periodicity() {
3916 pon_id_transmit_periodicity_ = 0u;
3917}
3918inline ::google::protobuf::uint32 PonIdConfig::pon_id_transmit_periodicity() const {
3919 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id_transmit_periodicity)
3920 return pon_id_transmit_periodicity_;
3921}
3922inline void PonIdConfig::set_pon_id_transmit_periodicity(::google::protobuf::uint32 value) {
3923
3924 pon_id_transmit_periodicity_ = value;
3925 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id_transmit_periodicity)
3926}
3927
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303928// -------------------------------------------------------------------
3929
3930// ContainerComponentAttributes
3931
3932// string physical_label = 1;
3933inline void ContainerComponentAttributes::clear_physical_label() {
3934 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3935}
3936inline const ::std::string& ContainerComponentAttributes::physical_label() const {
3937 // @@protoc_insertion_point(field_get:dmi.ContainerComponentAttributes.physical_label)
3938 return physical_label_.GetNoArena();
3939}
3940inline void ContainerComponentAttributes::set_physical_label(const ::std::string& value) {
3941
3942 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3943 // @@protoc_insertion_point(field_set:dmi.ContainerComponentAttributes.physical_label)
3944}
3945#if LANG_CXX11
3946inline void ContainerComponentAttributes::set_physical_label(::std::string&& value) {
3947
3948 physical_label_.SetNoArena(
3949 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3950 // @@protoc_insertion_point(field_set_rvalue:dmi.ContainerComponentAttributes.physical_label)
3951}
3952#endif
3953inline void ContainerComponentAttributes::set_physical_label(const char* value) {
3954 GOOGLE_DCHECK(value != nullptr);
3955
3956 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3957 // @@protoc_insertion_point(field_set_char:dmi.ContainerComponentAttributes.physical_label)
3958}
3959inline void ContainerComponentAttributes::set_physical_label(const char* value, size_t size) {
3960
3961 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3962 ::std::string(reinterpret_cast<const char*>(value), size));
3963 // @@protoc_insertion_point(field_set_pointer:dmi.ContainerComponentAttributes.physical_label)
3964}
3965inline ::std::string* ContainerComponentAttributes::mutable_physical_label() {
3966
3967 // @@protoc_insertion_point(field_mutable:dmi.ContainerComponentAttributes.physical_label)
3968 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3969}
3970inline ::std::string* ContainerComponentAttributes::release_physical_label() {
3971 // @@protoc_insertion_point(field_release:dmi.ContainerComponentAttributes.physical_label)
3972
3973 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3974}
3975inline void ContainerComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
3976 if (physical_label != nullptr) {
3977
3978 } else {
3979
3980 }
3981 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
3982 // @@protoc_insertion_point(field_set_allocated:dmi.ContainerComponentAttributes.physical_label)
3983}
3984
3985// -------------------------------------------------------------------
3986
3987// PsuComponentAttributes
3988
3989// .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
3990inline void PsuComponentAttributes::clear_supported_voltage() {
3991 supported_voltage_ = 0;
3992}
3993inline ::dmi::PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::supported_voltage() const {
3994 // @@protoc_insertion_point(field_get:dmi.PsuComponentAttributes.supported_voltage)
3995 return static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(supported_voltage_);
3996}
3997inline void PsuComponentAttributes::set_supported_voltage(::dmi::PsuComponentAttributes_SupportedVoltage value) {
3998
3999 supported_voltage_ = value;
4000 // @@protoc_insertion_point(field_set:dmi.PsuComponentAttributes.supported_voltage)
4001}
4002
4003// -------------------------------------------------------------------
4004
4005// TransceiverComponentsAttributes
4006
4007// .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4008inline void TransceiverComponentsAttributes::clear_form_factor() {
4009 form_factor_ = 0;
4010}
4011inline ::dmi::TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::form_factor() const {
4012 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.form_factor)
4013 return static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(form_factor_);
4014}
4015inline void TransceiverComponentsAttributes::set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value) {
4016
4017 form_factor_ = value;
4018 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.form_factor)
4019}
4020
4021// .dmi.TransceiverComponentsAttributes.Type trans_type = 2;
4022inline void TransceiverComponentsAttributes::clear_trans_type() {
4023 trans_type_ = 0;
4024}
4025inline ::dmi::TransceiverComponentsAttributes_Type TransceiverComponentsAttributes::trans_type() const {
4026 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.trans_type)
4027 return static_cast< ::dmi::TransceiverComponentsAttributes_Type >(trans_type_);
4028}
4029inline void TransceiverComponentsAttributes::set_trans_type(::dmi::TransceiverComponentsAttributes_Type value) {
4030
4031 trans_type_ = value;
4032 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.trans_type)
4033}
4034
4035// uint32 max_distance = 3;
4036inline void TransceiverComponentsAttributes::clear_max_distance() {
4037 max_distance_ = 0u;
4038}
4039inline ::google::protobuf::uint32 TransceiverComponentsAttributes::max_distance() const {
4040 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance)
4041 return max_distance_;
4042}
4043inline void TransceiverComponentsAttributes::set_max_distance(::google::protobuf::uint32 value) {
4044
4045 max_distance_ = value;
4046 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance)
4047}
4048
4049// .dmi.ValueScale max_distance_scale = 4;
4050inline void TransceiverComponentsAttributes::clear_max_distance_scale() {
4051 max_distance_scale_ = 0;
4052}
4053inline ::dmi::ValueScale TransceiverComponentsAttributes::max_distance_scale() const {
4054 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance_scale)
4055 return static_cast< ::dmi::ValueScale >(max_distance_scale_);
4056}
4057inline void TransceiverComponentsAttributes::set_max_distance_scale(::dmi::ValueScale value) {
4058
4059 max_distance_scale_ = value;
4060 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance_scale)
4061}
4062
4063// repeated uint32 rx_wavelength = 5;
4064inline int TransceiverComponentsAttributes::rx_wavelength_size() const {
4065 return rx_wavelength_.size();
4066}
4067inline void TransceiverComponentsAttributes::clear_rx_wavelength() {
4068 rx_wavelength_.Clear();
4069}
4070inline ::google::protobuf::uint32 TransceiverComponentsAttributes::rx_wavelength(int index) const {
4071 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.rx_wavelength)
4072 return rx_wavelength_.Get(index);
4073}
4074inline void TransceiverComponentsAttributes::set_rx_wavelength(int index, ::google::protobuf::uint32 value) {
4075 rx_wavelength_.Set(index, value);
4076 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.rx_wavelength)
4077}
4078inline void TransceiverComponentsAttributes::add_rx_wavelength(::google::protobuf::uint32 value) {
4079 rx_wavelength_.Add(value);
4080 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.rx_wavelength)
4081}
4082inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4083TransceiverComponentsAttributes::rx_wavelength() const {
4084 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4085 return rx_wavelength_;
4086}
4087inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4088TransceiverComponentsAttributes::mutable_rx_wavelength() {
4089 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4090 return &rx_wavelength_;
4091}
4092
4093// repeated uint32 tx_wavelength = 6;
4094inline int TransceiverComponentsAttributes::tx_wavelength_size() const {
4095 return tx_wavelength_.size();
4096}
4097inline void TransceiverComponentsAttributes::clear_tx_wavelength() {
4098 tx_wavelength_.Clear();
4099}
4100inline ::google::protobuf::uint32 TransceiverComponentsAttributes::tx_wavelength(int index) const {
4101 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.tx_wavelength)
4102 return tx_wavelength_.Get(index);
4103}
4104inline void TransceiverComponentsAttributes::set_tx_wavelength(int index, ::google::protobuf::uint32 value) {
4105 tx_wavelength_.Set(index, value);
4106 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.tx_wavelength)
4107}
4108inline void TransceiverComponentsAttributes::add_tx_wavelength(::google::protobuf::uint32 value) {
4109 tx_wavelength_.Add(value);
4110 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.tx_wavelength)
4111}
4112inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4113TransceiverComponentsAttributes::tx_wavelength() const {
4114 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4115 return tx_wavelength_;
4116}
4117inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4118TransceiverComponentsAttributes::mutable_tx_wavelength() {
4119 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4120 return &tx_wavelength_;
4121}
4122
4123// .dmi.ValueScale wavelength_scale = 7;
4124inline void TransceiverComponentsAttributes::clear_wavelength_scale() {
4125 wavelength_scale_ = 0;
4126}
4127inline ::dmi::ValueScale TransceiverComponentsAttributes::wavelength_scale() const {
4128 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.wavelength_scale)
4129 return static_cast< ::dmi::ValueScale >(wavelength_scale_);
4130}
4131inline void TransceiverComponentsAttributes::set_wavelength_scale(::dmi::ValueScale value) {
4132
4133 wavelength_scale_ = value;
4134 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.wavelength_scale)
4135}
4136
4137// -------------------------------------------------------------------
4138
4139// Component
4140
4141// string name = 1;
4142inline void Component::clear_name() {
4143 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4144}
4145inline const ::std::string& Component::name() const {
4146 // @@protoc_insertion_point(field_get:dmi.Component.name)
4147 return name_.GetNoArena();
4148}
4149inline void Component::set_name(const ::std::string& value) {
4150
4151 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4152 // @@protoc_insertion_point(field_set:dmi.Component.name)
4153}
4154#if LANG_CXX11
4155inline void Component::set_name(::std::string&& value) {
4156
4157 name_.SetNoArena(
4158 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4159 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.name)
4160}
4161#endif
4162inline void Component::set_name(const char* value) {
4163 GOOGLE_DCHECK(value != nullptr);
4164
4165 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4166 // @@protoc_insertion_point(field_set_char:dmi.Component.name)
4167}
4168inline void Component::set_name(const char* value, size_t size) {
4169
4170 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4171 ::std::string(reinterpret_cast<const char*>(value), size));
4172 // @@protoc_insertion_point(field_set_pointer:dmi.Component.name)
4173}
4174inline ::std::string* Component::mutable_name() {
4175
4176 // @@protoc_insertion_point(field_mutable:dmi.Component.name)
4177 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4178}
4179inline ::std::string* Component::release_name() {
4180 // @@protoc_insertion_point(field_release:dmi.Component.name)
4181
4182 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4183}
4184inline void Component::set_allocated_name(::std::string* name) {
4185 if (name != nullptr) {
4186
4187 } else {
4188
4189 }
4190 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4191 // @@protoc_insertion_point(field_set_allocated:dmi.Component.name)
4192}
4193
4194// .dmi.ComponentType class = 2;
4195inline void Component::clear_class_() {
4196 class__ = 0;
4197}
4198inline ::dmi::ComponentType Component::class_() const {
4199 // @@protoc_insertion_point(field_get:dmi.Component.class)
4200 return static_cast< ::dmi::ComponentType >(class__);
4201}
4202inline void Component::set_class_(::dmi::ComponentType value) {
4203
4204 class__ = value;
4205 // @@protoc_insertion_point(field_set:dmi.Component.class)
4206}
4207
4208// string description = 3;
4209inline void Component::clear_description() {
4210 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4211}
4212inline const ::std::string& Component::description() const {
4213 // @@protoc_insertion_point(field_get:dmi.Component.description)
4214 return description_.GetNoArena();
4215}
4216inline void Component::set_description(const ::std::string& value) {
4217
4218 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4219 // @@protoc_insertion_point(field_set:dmi.Component.description)
4220}
4221#if LANG_CXX11
4222inline void Component::set_description(::std::string&& value) {
4223
4224 description_.SetNoArena(
4225 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4226 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.description)
4227}
4228#endif
4229inline void Component::set_description(const char* value) {
4230 GOOGLE_DCHECK(value != nullptr);
4231
4232 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4233 // @@protoc_insertion_point(field_set_char:dmi.Component.description)
4234}
4235inline void Component::set_description(const char* value, size_t size) {
4236
4237 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4238 ::std::string(reinterpret_cast<const char*>(value), size));
4239 // @@protoc_insertion_point(field_set_pointer:dmi.Component.description)
4240}
4241inline ::std::string* Component::mutable_description() {
4242
4243 // @@protoc_insertion_point(field_mutable:dmi.Component.description)
4244 return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4245}
4246inline ::std::string* Component::release_description() {
4247 // @@protoc_insertion_point(field_release:dmi.Component.description)
4248
4249 return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4250}
4251inline void Component::set_allocated_description(::std::string* description) {
4252 if (description != nullptr) {
4253
4254 } else {
4255
4256 }
4257 description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
4258 // @@protoc_insertion_point(field_set_allocated:dmi.Component.description)
4259}
4260
4261// string parent = 4;
4262inline void Component::clear_parent() {
4263 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4264}
4265inline const ::std::string& Component::parent() const {
4266 // @@protoc_insertion_point(field_get:dmi.Component.parent)
4267 return parent_.GetNoArena();
4268}
4269inline void Component::set_parent(const ::std::string& value) {
4270
4271 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4272 // @@protoc_insertion_point(field_set:dmi.Component.parent)
4273}
4274#if LANG_CXX11
4275inline void Component::set_parent(::std::string&& value) {
4276
4277 parent_.SetNoArena(
4278 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4279 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.parent)
4280}
4281#endif
4282inline void Component::set_parent(const char* value) {
4283 GOOGLE_DCHECK(value != nullptr);
4284
4285 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4286 // @@protoc_insertion_point(field_set_char:dmi.Component.parent)
4287}
4288inline void Component::set_parent(const char* value, size_t size) {
4289
4290 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4291 ::std::string(reinterpret_cast<const char*>(value), size));
4292 // @@protoc_insertion_point(field_set_pointer:dmi.Component.parent)
4293}
4294inline ::std::string* Component::mutable_parent() {
4295
4296 // @@protoc_insertion_point(field_mutable:dmi.Component.parent)
4297 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4298}
4299inline ::std::string* Component::release_parent() {
4300 // @@protoc_insertion_point(field_release:dmi.Component.parent)
4301
4302 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4303}
4304inline void Component::set_allocated_parent(::std::string* parent) {
4305 if (parent != nullptr) {
4306
4307 } else {
4308
4309 }
4310 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
4311 // @@protoc_insertion_point(field_set_allocated:dmi.Component.parent)
4312}
4313
4314// int32 parent_rel_pos = 5;
4315inline void Component::clear_parent_rel_pos() {
4316 parent_rel_pos_ = 0;
4317}
4318inline ::google::protobuf::int32 Component::parent_rel_pos() const {
4319 // @@protoc_insertion_point(field_get:dmi.Component.parent_rel_pos)
4320 return parent_rel_pos_;
4321}
4322inline void Component::set_parent_rel_pos(::google::protobuf::int32 value) {
4323
4324 parent_rel_pos_ = value;
4325 // @@protoc_insertion_point(field_set:dmi.Component.parent_rel_pos)
4326}
4327
4328// repeated .dmi.Component children = 6;
4329inline int Component::children_size() const {
4330 return children_.size();
4331}
4332inline void Component::clear_children() {
4333 children_.Clear();
4334}
4335inline ::dmi::Component* Component::mutable_children(int index) {
4336 // @@protoc_insertion_point(field_mutable:dmi.Component.children)
4337 return children_.Mutable(index);
4338}
4339inline ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
4340Component::mutable_children() {
4341 // @@protoc_insertion_point(field_mutable_list:dmi.Component.children)
4342 return &children_;
4343}
4344inline const ::dmi::Component& Component::children(int index) const {
4345 // @@protoc_insertion_point(field_get:dmi.Component.children)
4346 return children_.Get(index);
4347}
4348inline ::dmi::Component* Component::add_children() {
4349 // @@protoc_insertion_point(field_add:dmi.Component.children)
4350 return children_.Add();
4351}
4352inline const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
4353Component::children() const {
4354 // @@protoc_insertion_point(field_list:dmi.Component.children)
4355 return children_;
4356}
4357
4358// string hardware_rev = 7;
4359inline void Component::clear_hardware_rev() {
4360 hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4361}
4362inline const ::std::string& Component::hardware_rev() const {
4363 // @@protoc_insertion_point(field_get:dmi.Component.hardware_rev)
4364 return hardware_rev_.GetNoArena();
4365}
4366inline void Component::set_hardware_rev(const ::std::string& value) {
4367
4368 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4369 // @@protoc_insertion_point(field_set:dmi.Component.hardware_rev)
4370}
4371#if LANG_CXX11
4372inline void Component::set_hardware_rev(::std::string&& value) {
4373
4374 hardware_rev_.SetNoArena(
4375 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4376 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.hardware_rev)
4377}
4378#endif
4379inline void Component::set_hardware_rev(const char* value) {
4380 GOOGLE_DCHECK(value != nullptr);
4381
4382 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4383 // @@protoc_insertion_point(field_set_char:dmi.Component.hardware_rev)
4384}
4385inline void Component::set_hardware_rev(const char* value, size_t size) {
4386
4387 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4388 ::std::string(reinterpret_cast<const char*>(value), size));
4389 // @@protoc_insertion_point(field_set_pointer:dmi.Component.hardware_rev)
4390}
4391inline ::std::string* Component::mutable_hardware_rev() {
4392
4393 // @@protoc_insertion_point(field_mutable:dmi.Component.hardware_rev)
4394 return hardware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4395}
4396inline ::std::string* Component::release_hardware_rev() {
4397 // @@protoc_insertion_point(field_release:dmi.Component.hardware_rev)
4398
4399 return hardware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4400}
4401inline void Component::set_allocated_hardware_rev(::std::string* hardware_rev) {
4402 if (hardware_rev != nullptr) {
4403
4404 } else {
4405
4406 }
4407 hardware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hardware_rev);
4408 // @@protoc_insertion_point(field_set_allocated:dmi.Component.hardware_rev)
4409}
4410
4411// string firmware_rev = 8;
4412inline void Component::clear_firmware_rev() {
4413 firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4414}
4415inline const ::std::string& Component::firmware_rev() const {
4416 // @@protoc_insertion_point(field_get:dmi.Component.firmware_rev)
4417 return firmware_rev_.GetNoArena();
4418}
4419inline void Component::set_firmware_rev(const ::std::string& value) {
4420
4421 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4422 // @@protoc_insertion_point(field_set:dmi.Component.firmware_rev)
4423}
4424#if LANG_CXX11
4425inline void Component::set_firmware_rev(::std::string&& value) {
4426
4427 firmware_rev_.SetNoArena(
4428 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4429 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.firmware_rev)
4430}
4431#endif
4432inline void Component::set_firmware_rev(const char* value) {
4433 GOOGLE_DCHECK(value != nullptr);
4434
4435 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4436 // @@protoc_insertion_point(field_set_char:dmi.Component.firmware_rev)
4437}
4438inline void Component::set_firmware_rev(const char* value, size_t size) {
4439
4440 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4441 ::std::string(reinterpret_cast<const char*>(value), size));
4442 // @@protoc_insertion_point(field_set_pointer:dmi.Component.firmware_rev)
4443}
4444inline ::std::string* Component::mutable_firmware_rev() {
4445
4446 // @@protoc_insertion_point(field_mutable:dmi.Component.firmware_rev)
4447 return firmware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4448}
4449inline ::std::string* Component::release_firmware_rev() {
4450 // @@protoc_insertion_point(field_release:dmi.Component.firmware_rev)
4451
4452 return firmware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4453}
4454inline void Component::set_allocated_firmware_rev(::std::string* firmware_rev) {
4455 if (firmware_rev != nullptr) {
4456
4457 } else {
4458
4459 }
4460 firmware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), firmware_rev);
4461 // @@protoc_insertion_point(field_set_allocated:dmi.Component.firmware_rev)
4462}
4463
4464// string software_rev = 9;
4465inline void Component::clear_software_rev() {
4466 software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4467}
4468inline const ::std::string& Component::software_rev() const {
4469 // @@protoc_insertion_point(field_get:dmi.Component.software_rev)
4470 return software_rev_.GetNoArena();
4471}
4472inline void Component::set_software_rev(const ::std::string& value) {
4473
4474 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4475 // @@protoc_insertion_point(field_set:dmi.Component.software_rev)
4476}
4477#if LANG_CXX11
4478inline void Component::set_software_rev(::std::string&& value) {
4479
4480 software_rev_.SetNoArena(
4481 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4482 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.software_rev)
4483}
4484#endif
4485inline void Component::set_software_rev(const char* value) {
4486 GOOGLE_DCHECK(value != nullptr);
4487
4488 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4489 // @@protoc_insertion_point(field_set_char:dmi.Component.software_rev)
4490}
4491inline void Component::set_software_rev(const char* value, size_t size) {
4492
4493 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4494 ::std::string(reinterpret_cast<const char*>(value), size));
4495 // @@protoc_insertion_point(field_set_pointer:dmi.Component.software_rev)
4496}
4497inline ::std::string* Component::mutable_software_rev() {
4498
4499 // @@protoc_insertion_point(field_mutable:dmi.Component.software_rev)
4500 return software_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4501}
4502inline ::std::string* Component::release_software_rev() {
4503 // @@protoc_insertion_point(field_release:dmi.Component.software_rev)
4504
4505 return software_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4506}
4507inline void Component::set_allocated_software_rev(::std::string* software_rev) {
4508 if (software_rev != nullptr) {
4509
4510 } else {
4511
4512 }
4513 software_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), software_rev);
4514 // @@protoc_insertion_point(field_set_allocated:dmi.Component.software_rev)
4515}
4516
4517// string serial_num = 10;
4518inline void Component::clear_serial_num() {
4519 serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4520}
4521inline const ::std::string& Component::serial_num() const {
4522 // @@protoc_insertion_point(field_get:dmi.Component.serial_num)
4523 return serial_num_.GetNoArena();
4524}
4525inline void Component::set_serial_num(const ::std::string& value) {
4526
4527 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4528 // @@protoc_insertion_point(field_set:dmi.Component.serial_num)
4529}
4530#if LANG_CXX11
4531inline void Component::set_serial_num(::std::string&& value) {
4532
4533 serial_num_.SetNoArena(
4534 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4535 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.serial_num)
4536}
4537#endif
4538inline void Component::set_serial_num(const char* value) {
4539 GOOGLE_DCHECK(value != nullptr);
4540
4541 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4542 // @@protoc_insertion_point(field_set_char:dmi.Component.serial_num)
4543}
4544inline void Component::set_serial_num(const char* value, size_t size) {
4545
4546 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4547 ::std::string(reinterpret_cast<const char*>(value), size));
4548 // @@protoc_insertion_point(field_set_pointer:dmi.Component.serial_num)
4549}
4550inline ::std::string* Component::mutable_serial_num() {
4551
4552 // @@protoc_insertion_point(field_mutable:dmi.Component.serial_num)
4553 return serial_num_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4554}
4555inline ::std::string* Component::release_serial_num() {
4556 // @@protoc_insertion_point(field_release:dmi.Component.serial_num)
4557
4558 return serial_num_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4559}
4560inline void Component::set_allocated_serial_num(::std::string* serial_num) {
4561 if (serial_num != nullptr) {
4562
4563 } else {
4564
4565 }
4566 serial_num_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serial_num);
4567 // @@protoc_insertion_point(field_set_allocated:dmi.Component.serial_num)
4568}
4569
4570// string mfg_name = 11;
4571inline void Component::clear_mfg_name() {
4572 mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4573}
4574inline const ::std::string& Component::mfg_name() const {
4575 // @@protoc_insertion_point(field_get:dmi.Component.mfg_name)
4576 return mfg_name_.GetNoArena();
4577}
4578inline void Component::set_mfg_name(const ::std::string& value) {
4579
4580 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4581 // @@protoc_insertion_point(field_set:dmi.Component.mfg_name)
4582}
4583#if LANG_CXX11
4584inline void Component::set_mfg_name(::std::string&& value) {
4585
4586 mfg_name_.SetNoArena(
4587 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4588 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.mfg_name)
4589}
4590#endif
4591inline void Component::set_mfg_name(const char* value) {
4592 GOOGLE_DCHECK(value != nullptr);
4593
4594 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4595 // @@protoc_insertion_point(field_set_char:dmi.Component.mfg_name)
4596}
4597inline void Component::set_mfg_name(const char* value, size_t size) {
4598
4599 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4600 ::std::string(reinterpret_cast<const char*>(value), size));
4601 // @@protoc_insertion_point(field_set_pointer:dmi.Component.mfg_name)
4602}
4603inline ::std::string* Component::mutable_mfg_name() {
4604
4605 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_name)
4606 return mfg_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4607}
4608inline ::std::string* Component::release_mfg_name() {
4609 // @@protoc_insertion_point(field_release:dmi.Component.mfg_name)
4610
4611 return mfg_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4612}
4613inline void Component::set_allocated_mfg_name(::std::string* mfg_name) {
4614 if (mfg_name != nullptr) {
4615
4616 } else {
4617
4618 }
4619 mfg_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mfg_name);
4620 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_name)
4621}
4622
4623// string model_name = 12;
4624inline void Component::clear_model_name() {
4625 model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4626}
4627inline const ::std::string& Component::model_name() const {
4628 // @@protoc_insertion_point(field_get:dmi.Component.model_name)
4629 return model_name_.GetNoArena();
4630}
4631inline void Component::set_model_name(const ::std::string& value) {
4632
4633 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4634 // @@protoc_insertion_point(field_set:dmi.Component.model_name)
4635}
4636#if LANG_CXX11
4637inline void Component::set_model_name(::std::string&& value) {
4638
4639 model_name_.SetNoArena(
4640 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4641 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.model_name)
4642}
4643#endif
4644inline void Component::set_model_name(const char* value) {
4645 GOOGLE_DCHECK(value != nullptr);
4646
4647 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4648 // @@protoc_insertion_point(field_set_char:dmi.Component.model_name)
4649}
4650inline void Component::set_model_name(const char* value, size_t size) {
4651
4652 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4653 ::std::string(reinterpret_cast<const char*>(value), size));
4654 // @@protoc_insertion_point(field_set_pointer:dmi.Component.model_name)
4655}
4656inline ::std::string* Component::mutable_model_name() {
4657
4658 // @@protoc_insertion_point(field_mutable:dmi.Component.model_name)
4659 return model_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4660}
4661inline ::std::string* Component::release_model_name() {
4662 // @@protoc_insertion_point(field_release:dmi.Component.model_name)
4663
4664 return model_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4665}
4666inline void Component::set_allocated_model_name(::std::string* model_name) {
4667 if (model_name != nullptr) {
4668
4669 } else {
4670
4671 }
4672 model_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model_name);
4673 // @@protoc_insertion_point(field_set_allocated:dmi.Component.model_name)
4674}
4675
4676// string alias = 13;
4677inline void Component::clear_alias() {
4678 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4679}
4680inline const ::std::string& Component::alias() const {
4681 // @@protoc_insertion_point(field_get:dmi.Component.alias)
4682 return alias_.GetNoArena();
4683}
4684inline void Component::set_alias(const ::std::string& value) {
4685
4686 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4687 // @@protoc_insertion_point(field_set:dmi.Component.alias)
4688}
4689#if LANG_CXX11
4690inline void Component::set_alias(::std::string&& value) {
4691
4692 alias_.SetNoArena(
4693 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4694 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.alias)
4695}
4696#endif
4697inline void Component::set_alias(const char* value) {
4698 GOOGLE_DCHECK(value != nullptr);
4699
4700 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4701 // @@protoc_insertion_point(field_set_char:dmi.Component.alias)
4702}
4703inline void Component::set_alias(const char* value, size_t size) {
4704
4705 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4706 ::std::string(reinterpret_cast<const char*>(value), size));
4707 // @@protoc_insertion_point(field_set_pointer:dmi.Component.alias)
4708}
4709inline ::std::string* Component::mutable_alias() {
4710
4711 // @@protoc_insertion_point(field_mutable:dmi.Component.alias)
4712 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4713}
4714inline ::std::string* Component::release_alias() {
4715 // @@protoc_insertion_point(field_release:dmi.Component.alias)
4716
4717 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4718}
4719inline void Component::set_allocated_alias(::std::string* alias) {
4720 if (alias != nullptr) {
4721
4722 } else {
4723
4724 }
4725 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
4726 // @@protoc_insertion_point(field_set_allocated:dmi.Component.alias)
4727}
4728
4729// string asset_id = 14;
4730inline void Component::clear_asset_id() {
4731 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4732}
4733inline const ::std::string& Component::asset_id() const {
4734 // @@protoc_insertion_point(field_get:dmi.Component.asset_id)
4735 return asset_id_.GetNoArena();
4736}
4737inline void Component::set_asset_id(const ::std::string& value) {
4738
4739 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4740 // @@protoc_insertion_point(field_set:dmi.Component.asset_id)
4741}
4742#if LANG_CXX11
4743inline void Component::set_asset_id(::std::string&& value) {
4744
4745 asset_id_.SetNoArena(
4746 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4747 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.asset_id)
4748}
4749#endif
4750inline void Component::set_asset_id(const char* value) {
4751 GOOGLE_DCHECK(value != nullptr);
4752
4753 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4754 // @@protoc_insertion_point(field_set_char:dmi.Component.asset_id)
4755}
4756inline void Component::set_asset_id(const char* value, size_t size) {
4757
4758 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4759 ::std::string(reinterpret_cast<const char*>(value), size));
4760 // @@protoc_insertion_point(field_set_pointer:dmi.Component.asset_id)
4761}
4762inline ::std::string* Component::mutable_asset_id() {
4763
4764 // @@protoc_insertion_point(field_mutable:dmi.Component.asset_id)
4765 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4766}
4767inline ::std::string* Component::release_asset_id() {
4768 // @@protoc_insertion_point(field_release:dmi.Component.asset_id)
4769
4770 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4771}
4772inline void Component::set_allocated_asset_id(::std::string* asset_id) {
4773 if (asset_id != nullptr) {
4774
4775 } else {
4776
4777 }
4778 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
4779 // @@protoc_insertion_point(field_set_allocated:dmi.Component.asset_id)
4780}
4781
4782// bool is_fru = 15;
4783inline void Component::clear_is_fru() {
4784 is_fru_ = false;
4785}
4786inline bool Component::is_fru() const {
4787 // @@protoc_insertion_point(field_get:dmi.Component.is_fru)
4788 return is_fru_;
4789}
4790inline void Component::set_is_fru(bool value) {
4791
4792 is_fru_ = value;
4793 // @@protoc_insertion_point(field_set:dmi.Component.is_fru)
4794}
4795
4796// .google.protobuf.Timestamp mfg_date = 16;
4797inline bool Component::has_mfg_date() const {
4798 return this != internal_default_instance() && mfg_date_ != nullptr;
4799}
4800inline const ::google::protobuf::Timestamp& Component::mfg_date() const {
4801 const ::google::protobuf::Timestamp* p = mfg_date_;
4802 // @@protoc_insertion_point(field_get:dmi.Component.mfg_date)
4803 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
4804 &::google::protobuf::_Timestamp_default_instance_);
4805}
4806inline ::google::protobuf::Timestamp* Component::release_mfg_date() {
4807 // @@protoc_insertion_point(field_release:dmi.Component.mfg_date)
4808
4809 ::google::protobuf::Timestamp* temp = mfg_date_;
4810 mfg_date_ = nullptr;
4811 return temp;
4812}
4813inline ::google::protobuf::Timestamp* Component::mutable_mfg_date() {
4814
4815 if (mfg_date_ == nullptr) {
4816 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
4817 mfg_date_ = p;
4818 }
4819 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_date)
4820 return mfg_date_;
4821}
4822inline void Component::set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date) {
4823 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4824 if (message_arena == nullptr) {
4825 delete reinterpret_cast< ::google::protobuf::MessageLite*>(mfg_date_);
4826 }
4827 if (mfg_date) {
4828 ::google::protobuf::Arena* submessage_arena =
4829 reinterpret_cast<::google::protobuf::MessageLite*>(mfg_date)->GetArena();
4830 if (message_arena != submessage_arena) {
4831 mfg_date = ::google::protobuf::internal::GetOwnedMessage(
4832 message_arena, mfg_date, submessage_arena);
4833 }
4834
4835 } else {
4836
4837 }
4838 mfg_date_ = mfg_date;
4839 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_date)
4840}
4841
4842// .dmi.Uri uri = 17;
4843inline bool Component::has_uri() const {
4844 return this != internal_default_instance() && uri_ != nullptr;
4845}
4846inline void Component::clear_uri() {
4847 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
4848 delete uri_;
4849 }
4850 uri_ = nullptr;
4851}
4852inline const ::dmi::Uri& Component::uri() const {
4853 const ::dmi::Uri* p = uri_;
4854 // @@protoc_insertion_point(field_get:dmi.Component.uri)
4855 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
4856 &::dmi::_Uri_default_instance_);
4857}
4858inline ::dmi::Uri* Component::release_uri() {
4859 // @@protoc_insertion_point(field_release:dmi.Component.uri)
4860
4861 ::dmi::Uri* temp = uri_;
4862 uri_ = nullptr;
4863 return temp;
4864}
4865inline ::dmi::Uri* Component::mutable_uri() {
4866
4867 if (uri_ == nullptr) {
4868 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
4869 uri_ = p;
4870 }
4871 // @@protoc_insertion_point(field_mutable:dmi.Component.uri)
4872 return uri_;
4873}
4874inline void Component::set_allocated_uri(::dmi::Uri* uri) {
4875 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4876 if (message_arena == nullptr) {
4877 delete uri_;
4878 }
4879 if (uri) {
4880 ::google::protobuf::Arena* submessage_arena = nullptr;
4881 if (message_arena != submessage_arena) {
4882 uri = ::google::protobuf::internal::GetOwnedMessage(
4883 message_arena, uri, submessage_arena);
4884 }
4885
4886 } else {
4887
4888 }
4889 uri_ = uri;
4890 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uri)
4891}
4892
4893// .dmi.Uuid uuid = 18;
4894inline bool Component::has_uuid() const {
4895 return this != internal_default_instance() && uuid_ != nullptr;
4896}
4897inline void Component::clear_uuid() {
4898 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
4899 delete uuid_;
4900 }
4901 uuid_ = nullptr;
4902}
4903inline const ::dmi::Uuid& Component::uuid() const {
4904 const ::dmi::Uuid* p = uuid_;
4905 // @@protoc_insertion_point(field_get:dmi.Component.uuid)
4906 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
4907 &::dmi::_Uuid_default_instance_);
4908}
4909inline ::dmi::Uuid* Component::release_uuid() {
4910 // @@protoc_insertion_point(field_release:dmi.Component.uuid)
4911
4912 ::dmi::Uuid* temp = uuid_;
4913 uuid_ = nullptr;
4914 return temp;
4915}
4916inline ::dmi::Uuid* Component::mutable_uuid() {
4917
4918 if (uuid_ == nullptr) {
4919 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
4920 uuid_ = p;
4921 }
4922 // @@protoc_insertion_point(field_mutable:dmi.Component.uuid)
4923 return uuid_;
4924}
4925inline void Component::set_allocated_uuid(::dmi::Uuid* uuid) {
4926 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4927 if (message_arena == nullptr) {
4928 delete uuid_;
4929 }
4930 if (uuid) {
4931 ::google::protobuf::Arena* submessage_arena = nullptr;
4932 if (message_arena != submessage_arena) {
4933 uuid = ::google::protobuf::internal::GetOwnedMessage(
4934 message_arena, uuid, submessage_arena);
4935 }
4936
4937 } else {
4938
4939 }
4940 uuid_ = uuid;
4941 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uuid)
4942}
4943
4944// .dmi.ComponentState state = 19;
4945inline bool Component::has_state() const {
4946 return this != internal_default_instance() && state_ != nullptr;
4947}
4948inline void Component::clear_state() {
4949 if (GetArenaNoVirtual() == nullptr && state_ != nullptr) {
4950 delete state_;
4951 }
4952 state_ = nullptr;
4953}
4954inline const ::dmi::ComponentState& Component::state() const {
4955 const ::dmi::ComponentState* p = state_;
4956 // @@protoc_insertion_point(field_get:dmi.Component.state)
4957 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ComponentState*>(
4958 &::dmi::_ComponentState_default_instance_);
4959}
4960inline ::dmi::ComponentState* Component::release_state() {
4961 // @@protoc_insertion_point(field_release:dmi.Component.state)
4962
4963 ::dmi::ComponentState* temp = state_;
4964 state_ = nullptr;
4965 return temp;
4966}
4967inline ::dmi::ComponentState* Component::mutable_state() {
4968
4969 if (state_ == nullptr) {
4970 auto* p = CreateMaybeMessage<::dmi::ComponentState>(GetArenaNoVirtual());
4971 state_ = p;
4972 }
4973 // @@protoc_insertion_point(field_mutable:dmi.Component.state)
4974 return state_;
4975}
4976inline void Component::set_allocated_state(::dmi::ComponentState* state) {
4977 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
4978 if (message_arena == nullptr) {
4979 delete state_;
4980 }
4981 if (state) {
4982 ::google::protobuf::Arena* submessage_arena = nullptr;
4983 if (message_arena != submessage_arena) {
4984 state = ::google::protobuf::internal::GetOwnedMessage(
4985 message_arena, state, submessage_arena);
4986 }
4987
4988 } else {
4989
4990 }
4991 state_ = state;
4992 // @@protoc_insertion_point(field_set_allocated:dmi.Component.state)
4993}
4994
4995// repeated .dmi.ComponentSensorData sensor_data = 20;
4996inline int Component::sensor_data_size() const {
4997 return sensor_data_.size();
4998}
4999inline void Component::clear_sensor_data() {
5000 sensor_data_.Clear();
5001}
5002inline ::dmi::ComponentSensorData* Component::mutable_sensor_data(int index) {
5003 // @@protoc_insertion_point(field_mutable:dmi.Component.sensor_data)
5004 return sensor_data_.Mutable(index);
5005}
5006inline ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
5007Component::mutable_sensor_data() {
5008 // @@protoc_insertion_point(field_mutable_list:dmi.Component.sensor_data)
5009 return &sensor_data_;
5010}
5011inline const ::dmi::ComponentSensorData& Component::sensor_data(int index) const {
5012 // @@protoc_insertion_point(field_get:dmi.Component.sensor_data)
5013 return sensor_data_.Get(index);
5014}
5015inline ::dmi::ComponentSensorData* Component::add_sensor_data() {
5016 // @@protoc_insertion_point(field_add:dmi.Component.sensor_data)
5017 return sensor_data_.Add();
5018}
5019inline const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
5020Component::sensor_data() const {
5021 // @@protoc_insertion_point(field_list:dmi.Component.sensor_data)
5022 return sensor_data_;
5023}
5024
5025// .dmi.PortComponentAttributes port_attr = 50;
5026inline bool Component::has_port_attr() const {
5027 return specific_case() == kPortAttr;
5028}
5029inline void Component::set_has_port_attr() {
5030 _oneof_case_[0] = kPortAttr;
5031}
5032inline void Component::clear_port_attr() {
5033 if (has_port_attr()) {
5034 delete specific_.port_attr_;
5035 clear_has_specific();
5036 }
5037}
5038inline ::dmi::PortComponentAttributes* Component::release_port_attr() {
5039 // @@protoc_insertion_point(field_release:dmi.Component.port_attr)
5040 if (has_port_attr()) {
5041 clear_has_specific();
5042 ::dmi::PortComponentAttributes* temp = specific_.port_attr_;
5043 specific_.port_attr_ = nullptr;
5044 return temp;
5045 } else {
5046 return nullptr;
5047 }
5048}
5049inline const ::dmi::PortComponentAttributes& Component::port_attr() const {
5050 // @@protoc_insertion_point(field_get:dmi.Component.port_attr)
5051 return has_port_attr()
5052 ? *specific_.port_attr_
5053 : *reinterpret_cast< ::dmi::PortComponentAttributes*>(&::dmi::_PortComponentAttributes_default_instance_);
5054}
5055inline ::dmi::PortComponentAttributes* Component::mutable_port_attr() {
5056 if (!has_port_attr()) {
5057 clear_specific();
5058 set_has_port_attr();
5059 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentAttributes >(
5060 GetArenaNoVirtual());
5061 }
5062 // @@protoc_insertion_point(field_mutable:dmi.Component.port_attr)
5063 return specific_.port_attr_;
5064}
5065
5066// .dmi.ContainerComponentAttributes container_attr = 51;
5067inline bool Component::has_container_attr() const {
5068 return specific_case() == kContainerAttr;
5069}
5070inline void Component::set_has_container_attr() {
5071 _oneof_case_[0] = kContainerAttr;
5072}
5073inline void Component::clear_container_attr() {
5074 if (has_container_attr()) {
5075 delete specific_.container_attr_;
5076 clear_has_specific();
5077 }
5078}
5079inline ::dmi::ContainerComponentAttributes* Component::release_container_attr() {
5080 // @@protoc_insertion_point(field_release:dmi.Component.container_attr)
5081 if (has_container_attr()) {
5082 clear_has_specific();
5083 ::dmi::ContainerComponentAttributes* temp = specific_.container_attr_;
5084 specific_.container_attr_ = nullptr;
5085 return temp;
5086 } else {
5087 return nullptr;
5088 }
5089}
5090inline const ::dmi::ContainerComponentAttributes& Component::container_attr() const {
5091 // @@protoc_insertion_point(field_get:dmi.Component.container_attr)
5092 return has_container_attr()
5093 ? *specific_.container_attr_
5094 : *reinterpret_cast< ::dmi::ContainerComponentAttributes*>(&::dmi::_ContainerComponentAttributes_default_instance_);
5095}
5096inline ::dmi::ContainerComponentAttributes* Component::mutable_container_attr() {
5097 if (!has_container_attr()) {
5098 clear_specific();
5099 set_has_container_attr();
5100 specific_.container_attr_ = CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(
5101 GetArenaNoVirtual());
5102 }
5103 // @@protoc_insertion_point(field_mutable:dmi.Component.container_attr)
5104 return specific_.container_attr_;
5105}
5106
5107// .dmi.PsuComponentAttributes psu_attr = 52;
5108inline bool Component::has_psu_attr() const {
5109 return specific_case() == kPsuAttr;
5110}
5111inline void Component::set_has_psu_attr() {
5112 _oneof_case_[0] = kPsuAttr;
5113}
5114inline void Component::clear_psu_attr() {
5115 if (has_psu_attr()) {
5116 delete specific_.psu_attr_;
5117 clear_has_specific();
5118 }
5119}
5120inline ::dmi::PsuComponentAttributes* Component::release_psu_attr() {
5121 // @@protoc_insertion_point(field_release:dmi.Component.psu_attr)
5122 if (has_psu_attr()) {
5123 clear_has_specific();
5124 ::dmi::PsuComponentAttributes* temp = specific_.psu_attr_;
5125 specific_.psu_attr_ = nullptr;
5126 return temp;
5127 } else {
5128 return nullptr;
5129 }
5130}
5131inline const ::dmi::PsuComponentAttributes& Component::psu_attr() const {
5132 // @@protoc_insertion_point(field_get:dmi.Component.psu_attr)
5133 return has_psu_attr()
5134 ? *specific_.psu_attr_
5135 : *reinterpret_cast< ::dmi::PsuComponentAttributes*>(&::dmi::_PsuComponentAttributes_default_instance_);
5136}
5137inline ::dmi::PsuComponentAttributes* Component::mutable_psu_attr() {
5138 if (!has_psu_attr()) {
5139 clear_specific();
5140 set_has_psu_attr();
5141 specific_.psu_attr_ = CreateMaybeMessage< ::dmi::PsuComponentAttributes >(
5142 GetArenaNoVirtual());
5143 }
5144 // @@protoc_insertion_point(field_mutable:dmi.Component.psu_attr)
5145 return specific_.psu_attr_;
5146}
5147
5148// .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
5149inline bool Component::has_transceiver_attr() const {
5150 return specific_case() == kTransceiverAttr;
5151}
5152inline void Component::set_has_transceiver_attr() {
5153 _oneof_case_[0] = kTransceiverAttr;
5154}
5155inline void Component::clear_transceiver_attr() {
5156 if (has_transceiver_attr()) {
5157 delete specific_.transceiver_attr_;
5158 clear_has_specific();
5159 }
5160}
5161inline ::dmi::TransceiverComponentsAttributes* Component::release_transceiver_attr() {
5162 // @@protoc_insertion_point(field_release:dmi.Component.transceiver_attr)
5163 if (has_transceiver_attr()) {
5164 clear_has_specific();
5165 ::dmi::TransceiverComponentsAttributes* temp = specific_.transceiver_attr_;
5166 specific_.transceiver_attr_ = nullptr;
5167 return temp;
5168 } else {
5169 return nullptr;
5170 }
5171}
5172inline const ::dmi::TransceiverComponentsAttributes& Component::transceiver_attr() const {
5173 // @@protoc_insertion_point(field_get:dmi.Component.transceiver_attr)
5174 return has_transceiver_attr()
5175 ? *specific_.transceiver_attr_
5176 : *reinterpret_cast< ::dmi::TransceiverComponentsAttributes*>(&::dmi::_TransceiverComponentsAttributes_default_instance_);
5177}
5178inline ::dmi::TransceiverComponentsAttributes* Component::mutable_transceiver_attr() {
5179 if (!has_transceiver_attr()) {
5180 clear_specific();
5181 set_has_transceiver_attr();
5182 specific_.transceiver_attr_ = CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(
5183 GetArenaNoVirtual());
5184 }
5185 // @@protoc_insertion_point(field_mutable:dmi.Component.transceiver_attr)
5186 return specific_.transceiver_attr_;
5187}
5188
5189inline bool Component::has_specific() const {
5190 return specific_case() != SPECIFIC_NOT_SET;
5191}
5192inline void Component::clear_has_specific() {
5193 _oneof_case_[0] = SPECIFIC_NOT_SET;
5194}
5195inline Component::SpecificCase Component::specific_case() const {
5196 return Component::SpecificCase(_oneof_case_[0]);
5197}
5198// -------------------------------------------------------------------
5199
5200// Hardware
5201
5202// .google.protobuf.Timestamp last_change = 1;
5203inline bool Hardware::has_last_change() const {
5204 return this != internal_default_instance() && last_change_ != nullptr;
5205}
5206inline const ::google::protobuf::Timestamp& Hardware::last_change() const {
5207 const ::google::protobuf::Timestamp* p = last_change_;
5208 // @@protoc_insertion_point(field_get:dmi.Hardware.last_change)
5209 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5210 &::google::protobuf::_Timestamp_default_instance_);
5211}
5212inline ::google::protobuf::Timestamp* Hardware::release_last_change() {
5213 // @@protoc_insertion_point(field_release:dmi.Hardware.last_change)
5214
5215 ::google::protobuf::Timestamp* temp = last_change_;
5216 last_change_ = nullptr;
5217 return temp;
5218}
5219inline ::google::protobuf::Timestamp* Hardware::mutable_last_change() {
5220
5221 if (last_change_ == nullptr) {
5222 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5223 last_change_ = p;
5224 }
5225 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_change)
5226 return last_change_;
5227}
5228inline void Hardware::set_allocated_last_change(::google::protobuf::Timestamp* last_change) {
5229 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5230 if (message_arena == nullptr) {
5231 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_change_);
5232 }
5233 if (last_change) {
5234 ::google::protobuf::Arena* submessage_arena =
5235 reinterpret_cast<::google::protobuf::MessageLite*>(last_change)->GetArena();
5236 if (message_arena != submessage_arena) {
5237 last_change = ::google::protobuf::internal::GetOwnedMessage(
5238 message_arena, last_change, submessage_arena);
5239 }
5240
5241 } else {
5242
5243 }
5244 last_change_ = last_change;
5245 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_change)
5246}
5247
5248// .dmi.Component root = 2;
5249inline bool Hardware::has_root() const {
5250 return this != internal_default_instance() && root_ != nullptr;
5251}
5252inline void Hardware::clear_root() {
5253 if (GetArenaNoVirtual() == nullptr && root_ != nullptr) {
5254 delete root_;
5255 }
5256 root_ = nullptr;
5257}
5258inline const ::dmi::Component& Hardware::root() const {
5259 const ::dmi::Component* p = root_;
5260 // @@protoc_insertion_point(field_get:dmi.Hardware.root)
5261 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5262 &::dmi::_Component_default_instance_);
5263}
5264inline ::dmi::Component* Hardware::release_root() {
5265 // @@protoc_insertion_point(field_release:dmi.Hardware.root)
5266
5267 ::dmi::Component* temp = root_;
5268 root_ = nullptr;
5269 return temp;
5270}
5271inline ::dmi::Component* Hardware::mutable_root() {
5272
5273 if (root_ == nullptr) {
5274 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5275 root_ = p;
5276 }
5277 // @@protoc_insertion_point(field_mutable:dmi.Hardware.root)
5278 return root_;
5279}
5280inline void Hardware::set_allocated_root(::dmi::Component* root) {
5281 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5282 if (message_arena == nullptr) {
5283 delete root_;
5284 }
5285 if (root) {
5286 ::google::protobuf::Arena* submessage_arena = nullptr;
5287 if (message_arena != submessage_arena) {
5288 root = ::google::protobuf::internal::GetOwnedMessage(
5289 message_arena, root, submessage_arena);
5290 }
5291
5292 } else {
5293
5294 }
5295 root_ = root;
5296 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.root)
5297}
5298
5299// .google.protobuf.Timestamp last_booted = 3;
5300inline bool Hardware::has_last_booted() const {
5301 return this != internal_default_instance() && last_booted_ != nullptr;
5302}
5303inline const ::google::protobuf::Timestamp& Hardware::last_booted() const {
5304 const ::google::protobuf::Timestamp* p = last_booted_;
5305 // @@protoc_insertion_point(field_get:dmi.Hardware.last_booted)
5306 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5307 &::google::protobuf::_Timestamp_default_instance_);
5308}
5309inline ::google::protobuf::Timestamp* Hardware::release_last_booted() {
5310 // @@protoc_insertion_point(field_release:dmi.Hardware.last_booted)
5311
5312 ::google::protobuf::Timestamp* temp = last_booted_;
5313 last_booted_ = nullptr;
5314 return temp;
5315}
5316inline ::google::protobuf::Timestamp* Hardware::mutable_last_booted() {
5317
5318 if (last_booted_ == nullptr) {
5319 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5320 last_booted_ = p;
5321 }
5322 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_booted)
5323 return last_booted_;
5324}
5325inline void Hardware::set_allocated_last_booted(::google::protobuf::Timestamp* last_booted) {
5326 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5327 if (message_arena == nullptr) {
5328 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_booted_);
5329 }
5330 if (last_booted) {
5331 ::google::protobuf::Arena* submessage_arena =
5332 reinterpret_cast<::google::protobuf::MessageLite*>(last_booted)->GetArena();
5333 if (message_arena != submessage_arena) {
5334 last_booted = ::google::protobuf::internal::GetOwnedMessage(
5335 message_arena, last_booted, submessage_arena);
5336 }
5337
5338 } else {
5339
5340 }
5341 last_booted_ = last_booted;
5342 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_booted)
5343}
5344
5345// -------------------------------------------------------------------
5346
5347// ModifiableComponent
5348
5349// string name = 1;
5350inline void ModifiableComponent::clear_name() {
5351 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5352}
5353inline const ::std::string& ModifiableComponent::name() const {
5354 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.name)
5355 return name_.GetNoArena();
5356}
5357inline void ModifiableComponent::set_name(const ::std::string& value) {
5358
5359 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5360 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.name)
5361}
5362#if LANG_CXX11
5363inline void ModifiableComponent::set_name(::std::string&& value) {
5364
5365 name_.SetNoArena(
5366 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5367 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.name)
5368}
5369#endif
5370inline void ModifiableComponent::set_name(const char* value) {
5371 GOOGLE_DCHECK(value != nullptr);
5372
5373 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5374 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.name)
5375}
5376inline void ModifiableComponent::set_name(const char* value, size_t size) {
5377
5378 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5379 ::std::string(reinterpret_cast<const char*>(value), size));
5380 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.name)
5381}
5382inline ::std::string* ModifiableComponent::mutable_name() {
5383
5384 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.name)
5385 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5386}
5387inline ::std::string* ModifiableComponent::release_name() {
5388 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.name)
5389
5390 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5391}
5392inline void ModifiableComponent::set_allocated_name(::std::string* name) {
5393 if (name != nullptr) {
5394
5395 } else {
5396
5397 }
5398 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5399 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.name)
5400}
5401
5402// .dmi.ComponentType class = 2;
5403inline void ModifiableComponent::clear_class_() {
5404 class__ = 0;
5405}
5406inline ::dmi::ComponentType ModifiableComponent::class_() const {
5407 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.class)
5408 return static_cast< ::dmi::ComponentType >(class__);
5409}
5410inline void ModifiableComponent::set_class_(::dmi::ComponentType value) {
5411
5412 class__ = value;
5413 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.class)
5414}
5415
5416// .dmi.Component parent = 3;
5417inline bool ModifiableComponent::has_parent() const {
5418 return this != internal_default_instance() && parent_ != nullptr;
5419}
5420inline void ModifiableComponent::clear_parent() {
5421 if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) {
5422 delete parent_;
5423 }
5424 parent_ = nullptr;
5425}
5426inline const ::dmi::Component& ModifiableComponent::parent() const {
5427 const ::dmi::Component* p = parent_;
5428 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent)
5429 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5430 &::dmi::_Component_default_instance_);
5431}
5432inline ::dmi::Component* ModifiableComponent::release_parent() {
5433 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.parent)
5434
5435 ::dmi::Component* temp = parent_;
5436 parent_ = nullptr;
5437 return temp;
5438}
5439inline ::dmi::Component* ModifiableComponent::mutable_parent() {
5440
5441 if (parent_ == nullptr) {
5442 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5443 parent_ = p;
5444 }
5445 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.parent)
5446 return parent_;
5447}
5448inline void ModifiableComponent::set_allocated_parent(::dmi::Component* parent) {
5449 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5450 if (message_arena == nullptr) {
5451 delete parent_;
5452 }
5453 if (parent) {
5454 ::google::protobuf::Arena* submessage_arena = nullptr;
5455 if (message_arena != submessage_arena) {
5456 parent = ::google::protobuf::internal::GetOwnedMessage(
5457 message_arena, parent, submessage_arena);
5458 }
5459
5460 } else {
5461
5462 }
5463 parent_ = parent;
5464 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.parent)
5465}
5466
5467// int32 parent_rel_pos = 4;
5468inline void ModifiableComponent::clear_parent_rel_pos() {
5469 parent_rel_pos_ = 0;
5470}
5471inline ::google::protobuf::int32 ModifiableComponent::parent_rel_pos() const {
5472 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent_rel_pos)
5473 return parent_rel_pos_;
5474}
5475inline void ModifiableComponent::set_parent_rel_pos(::google::protobuf::int32 value) {
5476
5477 parent_rel_pos_ = value;
5478 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.parent_rel_pos)
5479}
5480
5481// string alias = 5;
5482inline void ModifiableComponent::clear_alias() {
5483 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5484}
5485inline const ::std::string& ModifiableComponent::alias() const {
5486 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.alias)
5487 return alias_.GetNoArena();
5488}
5489inline void ModifiableComponent::set_alias(const ::std::string& value) {
5490
5491 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5492 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.alias)
5493}
5494#if LANG_CXX11
5495inline void ModifiableComponent::set_alias(::std::string&& value) {
5496
5497 alias_.SetNoArena(
5498 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5499 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.alias)
5500}
5501#endif
5502inline void ModifiableComponent::set_alias(const char* value) {
5503 GOOGLE_DCHECK(value != nullptr);
5504
5505 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5506 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.alias)
5507}
5508inline void ModifiableComponent::set_alias(const char* value, size_t size) {
5509
5510 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5511 ::std::string(reinterpret_cast<const char*>(value), size));
5512 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.alias)
5513}
5514inline ::std::string* ModifiableComponent::mutable_alias() {
5515
5516 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.alias)
5517 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5518}
5519inline ::std::string* ModifiableComponent::release_alias() {
5520 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.alias)
5521
5522 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5523}
5524inline void ModifiableComponent::set_allocated_alias(::std::string* alias) {
5525 if (alias != nullptr) {
5526
5527 } else {
5528
5529 }
5530 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
5531 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.alias)
5532}
5533
5534// string asset_id = 6;
5535inline void ModifiableComponent::clear_asset_id() {
5536 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5537}
5538inline const ::std::string& ModifiableComponent::asset_id() const {
5539 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.asset_id)
5540 return asset_id_.GetNoArena();
5541}
5542inline void ModifiableComponent::set_asset_id(const ::std::string& value) {
5543
5544 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5545 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.asset_id)
5546}
5547#if LANG_CXX11
5548inline void ModifiableComponent::set_asset_id(::std::string&& value) {
5549
5550 asset_id_.SetNoArena(
5551 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5552 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.asset_id)
5553}
5554#endif
5555inline void ModifiableComponent::set_asset_id(const char* value) {
5556 GOOGLE_DCHECK(value != nullptr);
5557
5558 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5559 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.asset_id)
5560}
5561inline void ModifiableComponent::set_asset_id(const char* value, size_t size) {
5562
5563 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5564 ::std::string(reinterpret_cast<const char*>(value), size));
5565 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.asset_id)
5566}
5567inline ::std::string* ModifiableComponent::mutable_asset_id() {
5568
5569 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.asset_id)
5570 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5571}
5572inline ::std::string* ModifiableComponent::release_asset_id() {
5573 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.asset_id)
5574
5575 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5576}
5577inline void ModifiableComponent::set_allocated_asset_id(::std::string* asset_id) {
5578 if (asset_id != nullptr) {
5579
5580 } else {
5581
5582 }
5583 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
5584 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.asset_id)
5585}
5586
5587// .dmi.Uri uri = 7;
5588inline bool ModifiableComponent::has_uri() const {
5589 return this != internal_default_instance() && uri_ != nullptr;
5590}
5591inline void ModifiableComponent::clear_uri() {
5592 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
5593 delete uri_;
5594 }
5595 uri_ = nullptr;
5596}
5597inline const ::dmi::Uri& ModifiableComponent::uri() const {
5598 const ::dmi::Uri* p = uri_;
5599 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.uri)
5600 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
5601 &::dmi::_Uri_default_instance_);
5602}
5603inline ::dmi::Uri* ModifiableComponent::release_uri() {
5604 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.uri)
5605
5606 ::dmi::Uri* temp = uri_;
5607 uri_ = nullptr;
5608 return temp;
5609}
5610inline ::dmi::Uri* ModifiableComponent::mutable_uri() {
5611
5612 if (uri_ == nullptr) {
5613 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
5614 uri_ = p;
5615 }
5616 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.uri)
5617 return uri_;
5618}
5619inline void ModifiableComponent::set_allocated_uri(::dmi::Uri* uri) {
5620 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5621 if (message_arena == nullptr) {
5622 delete uri_;
5623 }
5624 if (uri) {
5625 ::google::protobuf::Arena* submessage_arena = nullptr;
5626 if (message_arena != submessage_arena) {
5627 uri = ::google::protobuf::internal::GetOwnedMessage(
5628 message_arena, uri, submessage_arena);
5629 }
5630
5631 } else {
5632
5633 }
5634 uri_ = uri;
5635 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.uri)
5636}
5637
5638// .dmi.ComponentAdminState admin_state = 8;
5639inline void ModifiableComponent::clear_admin_state() {
5640 admin_state_ = 0;
5641}
5642inline ::dmi::ComponentAdminState ModifiableComponent::admin_state() const {
5643 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.admin_state)
5644 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
5645}
5646inline void ModifiableComponent::set_admin_state(::dmi::ComponentAdminState value) {
5647
5648 admin_state_ = value;
5649 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.admin_state)
5650}
5651
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005652// .dmi.PortComponentChangeAttributes port_attr = 50;
5653inline bool ModifiableComponent::has_port_attr() const {
5654 return specific_case() == kPortAttr;
5655}
5656inline void ModifiableComponent::set_has_port_attr() {
5657 _oneof_case_[0] = kPortAttr;
5658}
5659inline void ModifiableComponent::clear_port_attr() {
5660 if (has_port_attr()) {
5661 delete specific_.port_attr_;
5662 clear_has_specific();
5663 }
5664}
5665inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::release_port_attr() {
5666 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.port_attr)
5667 if (has_port_attr()) {
5668 clear_has_specific();
5669 ::dmi::PortComponentChangeAttributes* temp = specific_.port_attr_;
5670 specific_.port_attr_ = nullptr;
5671 return temp;
5672 } else {
5673 return nullptr;
5674 }
5675}
5676inline const ::dmi::PortComponentChangeAttributes& ModifiableComponent::port_attr() const {
5677 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.port_attr)
5678 return has_port_attr()
5679 ? *specific_.port_attr_
5680 : *reinterpret_cast< ::dmi::PortComponentChangeAttributes*>(&::dmi::_PortComponentChangeAttributes_default_instance_);
5681}
5682inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::mutable_port_attr() {
5683 if (!has_port_attr()) {
5684 clear_specific();
5685 set_has_port_attr();
5686 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(
5687 GetArenaNoVirtual());
5688 }
5689 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.port_attr)
5690 return specific_.port_attr_;
5691}
5692
5693inline bool ModifiableComponent::has_specific() const {
5694 return specific_case() != SPECIFIC_NOT_SET;
5695}
5696inline void ModifiableComponent::clear_has_specific() {
5697 _oneof_case_[0] = SPECIFIC_NOT_SET;
5698}
5699inline ModifiableComponent::SpecificCase ModifiableComponent::specific_case() const {
5700 return ModifiableComponent::SpecificCase(_oneof_case_[0]);
5701}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305702#ifdef __GNUC__
5703 #pragma GCC diagnostic pop
5704#endif // __GNUC__
5705// -------------------------------------------------------------------
5706
5707// -------------------------------------------------------------------
5708
5709// -------------------------------------------------------------------
5710
5711// -------------------------------------------------------------------
5712
5713// -------------------------------------------------------------------
5714
5715// -------------------------------------------------------------------
5716
5717// -------------------------------------------------------------------
5718
5719// -------------------------------------------------------------------
5720
5721// -------------------------------------------------------------------
5722
5723// -------------------------------------------------------------------
5724
5725// -------------------------------------------------------------------
5726
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005727// -------------------------------------------------------------------
5728
5729// -------------------------------------------------------------------
5730
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305731
5732// @@protoc_insertion_point(namespace_scope)
5733
5734} // namespace dmi
5735
5736namespace google {
5737namespace protobuf {
5738
5739template <> struct is_proto_enum< ::dmi::PortComponentAttributes_ConnectorType> : ::std::true_type {};
5740template <>
5741inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_ConnectorType>() {
5742 return ::dmi::PortComponentAttributes_ConnectorType_descriptor();
5743}
5744template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Speed> : ::std::true_type {};
5745template <>
5746inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Speed>() {
5747 return ::dmi::PortComponentAttributes_Speed_descriptor();
5748}
5749template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Protocol> : ::std::true_type {};
5750template <>
5751inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Protocol>() {
5752 return ::dmi::PortComponentAttributes_Protocol_descriptor();
5753}
5754template <> struct is_proto_enum< ::dmi::PsuComponentAttributes_SupportedVoltage> : ::std::true_type {};
5755template <>
5756inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PsuComponentAttributes_SupportedVoltage>() {
5757 return ::dmi::PsuComponentAttributes_SupportedVoltage_descriptor();
5758}
5759template <> struct is_proto_enum< ::dmi::TransceiverComponentsAttributes_FormFactor> : ::std::true_type {};
5760template <>
5761inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverComponentsAttributes_FormFactor>() {
5762 return ::dmi::TransceiverComponentsAttributes_FormFactor_descriptor();
5763}
5764template <> struct is_proto_enum< ::dmi::TransceiverComponentsAttributes_Type> : ::std::true_type {};
5765template <>
5766inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverComponentsAttributes_Type>() {
5767 return ::dmi::TransceiverComponentsAttributes_Type_descriptor();
5768}
5769template <> struct is_proto_enum< ::dmi::ComponentType> : ::std::true_type {};
5770template <>
5771inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentType>() {
5772 return ::dmi::ComponentType_descriptor();
5773}
5774template <> struct is_proto_enum< ::dmi::ComponentAdminState> : ::std::true_type {};
5775template <>
5776inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAdminState>() {
5777 return ::dmi::ComponentAdminState_descriptor();
5778}
5779template <> struct is_proto_enum< ::dmi::ComponentOperState> : ::std::true_type {};
5780template <>
5781inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentOperState>() {
5782 return ::dmi::ComponentOperState_descriptor();
5783}
5784template <> struct is_proto_enum< ::dmi::ComponentUsageState> : ::std::true_type {};
5785template <>
5786inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentUsageState>() {
5787 return ::dmi::ComponentUsageState_descriptor();
5788}
5789template <> struct is_proto_enum< ::dmi::ComponentAlarmState> : ::std::true_type {};
5790template <>
5791inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAlarmState>() {
5792 return ::dmi::ComponentAlarmState_descriptor();
5793}
5794template <> struct is_proto_enum< ::dmi::ComponentStandbyState> : ::std::true_type {};
5795template <>
5796inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentStandbyState>() {
5797 return ::dmi::ComponentStandbyState_descriptor();
5798}
5799template <> struct is_proto_enum< ::dmi::DataValueType> : ::std::true_type {};
5800template <>
5801inline const EnumDescriptor* GetEnumDescriptor< ::dmi::DataValueType>() {
5802 return ::dmi::DataValueType_descriptor();
5803}
5804template <> struct is_proto_enum< ::dmi::ValueScale> : ::std::true_type {};
5805template <>
5806inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ValueScale>() {
5807 return ::dmi::ValueScale_descriptor();
5808}
5809template <> struct is_proto_enum< ::dmi::SensorStatus> : ::std::true_type {};
5810template <>
5811inline const EnumDescriptor* GetEnumDescriptor< ::dmi::SensorStatus>() {
5812 return ::dmi::SensorStatus_descriptor();
5813}
5814
5815} // namespace protobuf
5816} // namespace google
5817
5818// @@protoc_insertion_point(global_scope)
5819
5820#include <google/protobuf/port_undef.inc>
5821#endif // PROTOBUF_INCLUDED_dmi_2fhw_2eproto