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