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