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