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