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