blob: cff4653005b46507d5770937acfb92383fdd3fd5 [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
amit.ghosh52abaae2022-11-28 13:59:22 +01002312 // repeated int32 tx_power = 8;
2313 int tx_power_size() const;
2314 void clear_tx_power();
2315 static const int kTxPowerFieldNumber = 8;
2316 ::google::protobuf::int32 tx_power(int index) const;
2317 void set_tx_power(int index, ::google::protobuf::int32 value);
2318 void add_tx_power(::google::protobuf::int32 value);
2319 const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2320 tx_power() const;
2321 ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2322 mutable_tx_power();
2323
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302324 // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
2325 void clear_form_factor();
2326 static const int kFormFactorFieldNumber = 1;
2327 ::dmi::TransceiverComponentsAttributes_FormFactor form_factor() const;
2328 void set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value);
2329
Girish Gowdra997432d2022-03-10 15:59:33 -08002330 // .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302331 void clear_trans_type();
2332 static const int kTransTypeFieldNumber = 2;
Girish Gowdra997432d2022-03-10 15:59:33 -08002333 ::dmi::TransceiverType trans_type() const;
2334 void set_trans_type(::dmi::TransceiverType value);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302335
2336 // uint32 max_distance = 3;
2337 void clear_max_distance();
2338 static const int kMaxDistanceFieldNumber = 3;
2339 ::google::protobuf::uint32 max_distance() const;
2340 void set_max_distance(::google::protobuf::uint32 value);
2341
2342 // .dmi.ValueScale max_distance_scale = 4;
2343 void clear_max_distance_scale();
2344 static const int kMaxDistanceScaleFieldNumber = 4;
2345 ::dmi::ValueScale max_distance_scale() const;
2346 void set_max_distance_scale(::dmi::ValueScale value);
2347
2348 // .dmi.ValueScale wavelength_scale = 7;
2349 void clear_wavelength_scale();
2350 static const int kWavelengthScaleFieldNumber = 7;
2351 ::dmi::ValueScale wavelength_scale() const;
2352 void set_wavelength_scale(::dmi::ValueScale value);
2353
amit.ghosh52abaae2022-11-28 13:59:22 +01002354 // .dmi.ValueScale tx_power_scale = 9;
2355 void clear_tx_power_scale();
2356 static const int kTxPowerScaleFieldNumber = 9;
2357 ::dmi::ValueScale tx_power_scale() const;
2358 void set_tx_power_scale(::dmi::ValueScale value);
2359
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302360 // @@protoc_insertion_point(class_scope:dmi.TransceiverComponentsAttributes)
2361 private:
2362 class HasBitSetters;
2363
2364 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2365 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > rx_wavelength_;
2366 mutable std::atomic<int> _rx_wavelength_cached_byte_size_;
2367 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > tx_wavelength_;
2368 mutable std::atomic<int> _tx_wavelength_cached_byte_size_;
amit.ghosh52abaae2022-11-28 13:59:22 +01002369 ::google::protobuf::RepeatedField< ::google::protobuf::int32 > tx_power_;
2370 mutable std::atomic<int> _tx_power_cached_byte_size_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302371 int form_factor_;
2372 int trans_type_;
2373 ::google::protobuf::uint32 max_distance_;
2374 int max_distance_scale_;
2375 int wavelength_scale_;
amit.ghosh52abaae2022-11-28 13:59:22 +01002376 int tx_power_scale_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302377 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2378 friend struct ::TableStruct_dmi_2fhw_2eproto;
2379};
2380// -------------------------------------------------------------------
2381
2382class Component final :
2383 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Component) */ {
2384 public:
2385 Component();
2386 virtual ~Component();
2387
2388 Component(const Component& from);
2389
2390 inline Component& operator=(const Component& from) {
2391 CopyFrom(from);
2392 return *this;
2393 }
2394 #if LANG_CXX11
2395 Component(Component&& from) noexcept
2396 : Component() {
2397 *this = ::std::move(from);
2398 }
2399
2400 inline Component& operator=(Component&& from) noexcept {
2401 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2402 if (this != &from) InternalSwap(&from);
2403 } else {
2404 CopyFrom(from);
2405 }
2406 return *this;
2407 }
2408 #endif
2409 static const ::google::protobuf::Descriptor* descriptor() {
2410 return default_instance().GetDescriptor();
2411 }
2412 static const Component& default_instance();
2413
2414 enum SpecificCase {
2415 kPortAttr = 50,
2416 kContainerAttr = 51,
2417 kPsuAttr = 52,
2418 kTransceiverAttr = 53,
2419 SPECIFIC_NOT_SET = 0,
2420 };
2421
2422 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2423 static inline const Component* internal_default_instance() {
2424 return reinterpret_cast<const Component*>(
2425 &_Component_default_instance_);
2426 }
2427 static constexpr int kIndexInFileMessages =
Girish Gowdra997432d2022-03-10 15:59:33 -08002428 12;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302429
2430 void Swap(Component* other);
2431 friend void swap(Component& a, Component& b) {
2432 a.Swap(&b);
2433 }
2434
2435 // implements Message ----------------------------------------------
2436
2437 inline Component* New() const final {
2438 return CreateMaybeMessage<Component>(nullptr);
2439 }
2440
2441 Component* New(::google::protobuf::Arena* arena) const final {
2442 return CreateMaybeMessage<Component>(arena);
2443 }
2444 void CopyFrom(const ::google::protobuf::Message& from) final;
2445 void MergeFrom(const ::google::protobuf::Message& from) final;
2446 void CopyFrom(const Component& from);
2447 void MergeFrom(const Component& from);
2448 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2449 bool IsInitialized() const final;
2450
2451 size_t ByteSizeLong() const final;
2452 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2453 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2454 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2455 #else
2456 bool MergePartialFromCodedStream(
2457 ::google::protobuf::io::CodedInputStream* input) final;
2458 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2459 void SerializeWithCachedSizes(
2460 ::google::protobuf::io::CodedOutputStream* output) const final;
2461 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2462 ::google::protobuf::uint8* target) const final;
2463 int GetCachedSize() const final { return _cached_size_.Get(); }
2464
2465 private:
2466 void SharedCtor();
2467 void SharedDtor();
2468 void SetCachedSize(int size) const final;
2469 void InternalSwap(Component* other);
2470 private:
2471 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2472 return nullptr;
2473 }
2474 inline void* MaybeArenaPtr() const {
2475 return nullptr;
2476 }
2477 public:
2478
2479 ::google::protobuf::Metadata GetMetadata() const final;
2480
2481 // nested types ----------------------------------------------------
2482
2483 // accessors -------------------------------------------------------
2484
2485 // repeated .dmi.Component children = 6;
2486 int children_size() const;
2487 void clear_children();
2488 static const int kChildrenFieldNumber = 6;
2489 ::dmi::Component* mutable_children(int index);
2490 ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
2491 mutable_children();
2492 const ::dmi::Component& children(int index) const;
2493 ::dmi::Component* add_children();
2494 const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
2495 children() const;
2496
2497 // repeated .dmi.ComponentSensorData sensor_data = 20;
2498 int sensor_data_size() const;
2499 void clear_sensor_data();
2500 static const int kSensorDataFieldNumber = 20;
2501 ::dmi::ComponentSensorData* mutable_sensor_data(int index);
2502 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
2503 mutable_sensor_data();
2504 const ::dmi::ComponentSensorData& sensor_data(int index) const;
2505 ::dmi::ComponentSensorData* add_sensor_data();
2506 const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
2507 sensor_data() const;
2508
2509 // string name = 1;
2510 void clear_name();
2511 static const int kNameFieldNumber = 1;
2512 const ::std::string& name() const;
2513 void set_name(const ::std::string& value);
2514 #if LANG_CXX11
2515 void set_name(::std::string&& value);
2516 #endif
2517 void set_name(const char* value);
2518 void set_name(const char* value, size_t size);
2519 ::std::string* mutable_name();
2520 ::std::string* release_name();
2521 void set_allocated_name(::std::string* name);
2522
2523 // string description = 3;
2524 void clear_description();
2525 static const int kDescriptionFieldNumber = 3;
2526 const ::std::string& description() const;
2527 void set_description(const ::std::string& value);
2528 #if LANG_CXX11
2529 void set_description(::std::string&& value);
2530 #endif
2531 void set_description(const char* value);
2532 void set_description(const char* value, size_t size);
2533 ::std::string* mutable_description();
2534 ::std::string* release_description();
2535 void set_allocated_description(::std::string* description);
2536
2537 // string parent = 4;
2538 void clear_parent();
2539 static const int kParentFieldNumber = 4;
2540 const ::std::string& parent() const;
2541 void set_parent(const ::std::string& value);
2542 #if LANG_CXX11
2543 void set_parent(::std::string&& value);
2544 #endif
2545 void set_parent(const char* value);
2546 void set_parent(const char* value, size_t size);
2547 ::std::string* mutable_parent();
2548 ::std::string* release_parent();
2549 void set_allocated_parent(::std::string* parent);
2550
2551 // string hardware_rev = 7;
2552 void clear_hardware_rev();
2553 static const int kHardwareRevFieldNumber = 7;
2554 const ::std::string& hardware_rev() const;
2555 void set_hardware_rev(const ::std::string& value);
2556 #if LANG_CXX11
2557 void set_hardware_rev(::std::string&& value);
2558 #endif
2559 void set_hardware_rev(const char* value);
2560 void set_hardware_rev(const char* value, size_t size);
2561 ::std::string* mutable_hardware_rev();
2562 ::std::string* release_hardware_rev();
2563 void set_allocated_hardware_rev(::std::string* hardware_rev);
2564
2565 // string firmware_rev = 8;
2566 void clear_firmware_rev();
2567 static const int kFirmwareRevFieldNumber = 8;
2568 const ::std::string& firmware_rev() const;
2569 void set_firmware_rev(const ::std::string& value);
2570 #if LANG_CXX11
2571 void set_firmware_rev(::std::string&& value);
2572 #endif
2573 void set_firmware_rev(const char* value);
2574 void set_firmware_rev(const char* value, size_t size);
2575 ::std::string* mutable_firmware_rev();
2576 ::std::string* release_firmware_rev();
2577 void set_allocated_firmware_rev(::std::string* firmware_rev);
2578
2579 // string software_rev = 9;
2580 void clear_software_rev();
2581 static const int kSoftwareRevFieldNumber = 9;
2582 const ::std::string& software_rev() const;
2583 void set_software_rev(const ::std::string& value);
2584 #if LANG_CXX11
2585 void set_software_rev(::std::string&& value);
2586 #endif
2587 void set_software_rev(const char* value);
2588 void set_software_rev(const char* value, size_t size);
2589 ::std::string* mutable_software_rev();
2590 ::std::string* release_software_rev();
2591 void set_allocated_software_rev(::std::string* software_rev);
2592
2593 // string serial_num = 10;
2594 void clear_serial_num();
2595 static const int kSerialNumFieldNumber = 10;
2596 const ::std::string& serial_num() const;
2597 void set_serial_num(const ::std::string& value);
2598 #if LANG_CXX11
2599 void set_serial_num(::std::string&& value);
2600 #endif
2601 void set_serial_num(const char* value);
2602 void set_serial_num(const char* value, size_t size);
2603 ::std::string* mutable_serial_num();
2604 ::std::string* release_serial_num();
2605 void set_allocated_serial_num(::std::string* serial_num);
2606
2607 // string mfg_name = 11;
2608 void clear_mfg_name();
2609 static const int kMfgNameFieldNumber = 11;
2610 const ::std::string& mfg_name() const;
2611 void set_mfg_name(const ::std::string& value);
2612 #if LANG_CXX11
2613 void set_mfg_name(::std::string&& value);
2614 #endif
2615 void set_mfg_name(const char* value);
2616 void set_mfg_name(const char* value, size_t size);
2617 ::std::string* mutable_mfg_name();
2618 ::std::string* release_mfg_name();
2619 void set_allocated_mfg_name(::std::string* mfg_name);
2620
2621 // string model_name = 12;
2622 void clear_model_name();
2623 static const int kModelNameFieldNumber = 12;
2624 const ::std::string& model_name() const;
2625 void set_model_name(const ::std::string& value);
2626 #if LANG_CXX11
2627 void set_model_name(::std::string&& value);
2628 #endif
2629 void set_model_name(const char* value);
2630 void set_model_name(const char* value, size_t size);
2631 ::std::string* mutable_model_name();
2632 ::std::string* release_model_name();
2633 void set_allocated_model_name(::std::string* model_name);
2634
2635 // string alias = 13;
2636 void clear_alias();
2637 static const int kAliasFieldNumber = 13;
2638 const ::std::string& alias() const;
2639 void set_alias(const ::std::string& value);
2640 #if LANG_CXX11
2641 void set_alias(::std::string&& value);
2642 #endif
2643 void set_alias(const char* value);
2644 void set_alias(const char* value, size_t size);
2645 ::std::string* mutable_alias();
2646 ::std::string* release_alias();
2647 void set_allocated_alias(::std::string* alias);
2648
2649 // string asset_id = 14;
2650 void clear_asset_id();
2651 static const int kAssetIdFieldNumber = 14;
2652 const ::std::string& asset_id() const;
2653 void set_asset_id(const ::std::string& value);
2654 #if LANG_CXX11
2655 void set_asset_id(::std::string&& value);
2656 #endif
2657 void set_asset_id(const char* value);
2658 void set_asset_id(const char* value, size_t size);
2659 ::std::string* mutable_asset_id();
2660 ::std::string* release_asset_id();
2661 void set_allocated_asset_id(::std::string* asset_id);
2662
2663 // .google.protobuf.Timestamp mfg_date = 16;
2664 bool has_mfg_date() const;
2665 void clear_mfg_date();
2666 static const int kMfgDateFieldNumber = 16;
2667 const ::google::protobuf::Timestamp& mfg_date() const;
2668 ::google::protobuf::Timestamp* release_mfg_date();
2669 ::google::protobuf::Timestamp* mutable_mfg_date();
2670 void set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date);
2671
2672 // .dmi.Uri uri = 17;
2673 bool has_uri() const;
2674 void clear_uri();
2675 static const int kUriFieldNumber = 17;
2676 const ::dmi::Uri& uri() const;
2677 ::dmi::Uri* release_uri();
2678 ::dmi::Uri* mutable_uri();
2679 void set_allocated_uri(::dmi::Uri* uri);
2680
2681 // .dmi.Uuid uuid = 18;
2682 bool has_uuid() const;
2683 void clear_uuid();
2684 static const int kUuidFieldNumber = 18;
2685 const ::dmi::Uuid& uuid() const;
2686 ::dmi::Uuid* release_uuid();
2687 ::dmi::Uuid* mutable_uuid();
2688 void set_allocated_uuid(::dmi::Uuid* uuid);
2689
2690 // .dmi.ComponentState state = 19;
2691 bool has_state() const;
2692 void clear_state();
2693 static const int kStateFieldNumber = 19;
2694 const ::dmi::ComponentState& state() const;
2695 ::dmi::ComponentState* release_state();
2696 ::dmi::ComponentState* mutable_state();
2697 void set_allocated_state(::dmi::ComponentState* state);
2698
2699 // .dmi.ComponentType class = 2;
2700 void clear_class_();
2701 static const int kClassFieldNumber = 2;
2702 ::dmi::ComponentType class_() const;
2703 void set_class_(::dmi::ComponentType value);
2704
2705 // int32 parent_rel_pos = 5;
2706 void clear_parent_rel_pos();
2707 static const int kParentRelPosFieldNumber = 5;
2708 ::google::protobuf::int32 parent_rel_pos() const;
2709 void set_parent_rel_pos(::google::protobuf::int32 value);
2710
2711 // bool is_fru = 15;
2712 void clear_is_fru();
2713 static const int kIsFruFieldNumber = 15;
2714 bool is_fru() const;
2715 void set_is_fru(bool value);
2716
2717 // .dmi.PortComponentAttributes port_attr = 50;
2718 bool has_port_attr() const;
2719 void clear_port_attr();
2720 static const int kPortAttrFieldNumber = 50;
2721 const ::dmi::PortComponentAttributes& port_attr() const;
2722 ::dmi::PortComponentAttributes* release_port_attr();
2723 ::dmi::PortComponentAttributes* mutable_port_attr();
2724 void set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr);
2725
2726 // .dmi.ContainerComponentAttributes container_attr = 51;
2727 bool has_container_attr() const;
2728 void clear_container_attr();
2729 static const int kContainerAttrFieldNumber = 51;
2730 const ::dmi::ContainerComponentAttributes& container_attr() const;
2731 ::dmi::ContainerComponentAttributes* release_container_attr();
2732 ::dmi::ContainerComponentAttributes* mutable_container_attr();
2733 void set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr);
2734
2735 // .dmi.PsuComponentAttributes psu_attr = 52;
2736 bool has_psu_attr() const;
2737 void clear_psu_attr();
2738 static const int kPsuAttrFieldNumber = 52;
2739 const ::dmi::PsuComponentAttributes& psu_attr() const;
2740 ::dmi::PsuComponentAttributes* release_psu_attr();
2741 ::dmi::PsuComponentAttributes* mutable_psu_attr();
2742 void set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr);
2743
2744 // .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
2745 bool has_transceiver_attr() const;
2746 void clear_transceiver_attr();
2747 static const int kTransceiverAttrFieldNumber = 53;
2748 const ::dmi::TransceiverComponentsAttributes& transceiver_attr() const;
2749 ::dmi::TransceiverComponentsAttributes* release_transceiver_attr();
2750 ::dmi::TransceiverComponentsAttributes* mutable_transceiver_attr();
2751 void set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr);
2752
2753 void clear_specific();
2754 SpecificCase specific_case() const;
2755 // @@protoc_insertion_point(class_scope:dmi.Component)
2756 private:
2757 class HasBitSetters;
2758 void set_has_port_attr();
2759 void set_has_container_attr();
2760 void set_has_psu_attr();
2761 void set_has_transceiver_attr();
2762
2763 inline bool has_specific() const;
2764 inline void clear_has_specific();
2765
2766 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2767 ::google::protobuf::RepeatedPtrField< ::dmi::Component > children_;
2768 ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData > sensor_data_;
2769 ::google::protobuf::internal::ArenaStringPtr name_;
2770 ::google::protobuf::internal::ArenaStringPtr description_;
2771 ::google::protobuf::internal::ArenaStringPtr parent_;
2772 ::google::protobuf::internal::ArenaStringPtr hardware_rev_;
2773 ::google::protobuf::internal::ArenaStringPtr firmware_rev_;
2774 ::google::protobuf::internal::ArenaStringPtr software_rev_;
2775 ::google::protobuf::internal::ArenaStringPtr serial_num_;
2776 ::google::protobuf::internal::ArenaStringPtr mfg_name_;
2777 ::google::protobuf::internal::ArenaStringPtr model_name_;
2778 ::google::protobuf::internal::ArenaStringPtr alias_;
2779 ::google::protobuf::internal::ArenaStringPtr asset_id_;
2780 ::google::protobuf::Timestamp* mfg_date_;
2781 ::dmi::Uri* uri_;
2782 ::dmi::Uuid* uuid_;
2783 ::dmi::ComponentState* state_;
2784 int class__;
2785 ::google::protobuf::int32 parent_rel_pos_;
2786 bool is_fru_;
2787 union SpecificUnion {
2788 SpecificUnion() {}
2789 ::dmi::PortComponentAttributes* port_attr_;
2790 ::dmi::ContainerComponentAttributes* container_attr_;
2791 ::dmi::PsuComponentAttributes* psu_attr_;
2792 ::dmi::TransceiverComponentsAttributes* transceiver_attr_;
2793 } specific_;
2794 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2795 ::google::protobuf::uint32 _oneof_case_[1];
2796
2797 friend struct ::TableStruct_dmi_2fhw_2eproto;
2798};
2799// -------------------------------------------------------------------
2800
2801class Hardware final :
2802 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.Hardware) */ {
2803 public:
2804 Hardware();
2805 virtual ~Hardware();
2806
2807 Hardware(const Hardware& from);
2808
2809 inline Hardware& operator=(const Hardware& from) {
2810 CopyFrom(from);
2811 return *this;
2812 }
2813 #if LANG_CXX11
2814 Hardware(Hardware&& from) noexcept
2815 : Hardware() {
2816 *this = ::std::move(from);
2817 }
2818
2819 inline Hardware& operator=(Hardware&& from) noexcept {
2820 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2821 if (this != &from) InternalSwap(&from);
2822 } else {
2823 CopyFrom(from);
2824 }
2825 return *this;
2826 }
2827 #endif
2828 static const ::google::protobuf::Descriptor* descriptor() {
2829 return default_instance().GetDescriptor();
2830 }
2831 static const Hardware& default_instance();
2832
2833 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2834 static inline const Hardware* internal_default_instance() {
2835 return reinterpret_cast<const Hardware*>(
2836 &_Hardware_default_instance_);
2837 }
2838 static constexpr int kIndexInFileMessages =
Girish Gowdra997432d2022-03-10 15:59:33 -08002839 13;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302840
2841 void Swap(Hardware* other);
2842 friend void swap(Hardware& a, Hardware& b) {
2843 a.Swap(&b);
2844 }
2845
2846 // implements Message ----------------------------------------------
2847
2848 inline Hardware* New() const final {
2849 return CreateMaybeMessage<Hardware>(nullptr);
2850 }
2851
2852 Hardware* New(::google::protobuf::Arena* arena) const final {
2853 return CreateMaybeMessage<Hardware>(arena);
2854 }
2855 void CopyFrom(const ::google::protobuf::Message& from) final;
2856 void MergeFrom(const ::google::protobuf::Message& from) final;
2857 void CopyFrom(const Hardware& from);
2858 void MergeFrom(const Hardware& from);
2859 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
2860 bool IsInitialized() const final;
2861
2862 size_t ByteSizeLong() const final;
2863 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2864 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
2865 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
2866 #else
2867 bool MergePartialFromCodedStream(
2868 ::google::protobuf::io::CodedInputStream* input) final;
2869 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2870 void SerializeWithCachedSizes(
2871 ::google::protobuf::io::CodedOutputStream* output) const final;
2872 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
2873 ::google::protobuf::uint8* target) const final;
2874 int GetCachedSize() const final { return _cached_size_.Get(); }
2875
2876 private:
2877 void SharedCtor();
2878 void SharedDtor();
2879 void SetCachedSize(int size) const final;
2880 void InternalSwap(Hardware* other);
2881 private:
2882 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
2883 return nullptr;
2884 }
2885 inline void* MaybeArenaPtr() const {
2886 return nullptr;
2887 }
2888 public:
2889
2890 ::google::protobuf::Metadata GetMetadata() const final;
2891
2892 // nested types ----------------------------------------------------
2893
2894 // accessors -------------------------------------------------------
2895
2896 // .google.protobuf.Timestamp last_change = 1;
2897 bool has_last_change() const;
2898 void clear_last_change();
2899 static const int kLastChangeFieldNumber = 1;
2900 const ::google::protobuf::Timestamp& last_change() const;
2901 ::google::protobuf::Timestamp* release_last_change();
2902 ::google::protobuf::Timestamp* mutable_last_change();
2903 void set_allocated_last_change(::google::protobuf::Timestamp* last_change);
2904
2905 // .dmi.Component root = 2;
2906 bool has_root() const;
2907 void clear_root();
2908 static const int kRootFieldNumber = 2;
2909 const ::dmi::Component& root() const;
2910 ::dmi::Component* release_root();
2911 ::dmi::Component* mutable_root();
2912 void set_allocated_root(::dmi::Component* root);
2913
2914 // .google.protobuf.Timestamp last_booted = 3;
2915 bool has_last_booted() const;
2916 void clear_last_booted();
2917 static const int kLastBootedFieldNumber = 3;
2918 const ::google::protobuf::Timestamp& last_booted() const;
2919 ::google::protobuf::Timestamp* release_last_booted();
2920 ::google::protobuf::Timestamp* mutable_last_booted();
2921 void set_allocated_last_booted(::google::protobuf::Timestamp* last_booted);
2922
2923 // @@protoc_insertion_point(class_scope:dmi.Hardware)
2924 private:
2925 class HasBitSetters;
2926
2927 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
2928 ::google::protobuf::Timestamp* last_change_;
2929 ::dmi::Component* root_;
2930 ::google::protobuf::Timestamp* last_booted_;
2931 mutable ::google::protobuf::internal::CachedSize _cached_size_;
2932 friend struct ::TableStruct_dmi_2fhw_2eproto;
2933};
2934// -------------------------------------------------------------------
2935
2936class ModifiableComponent final :
2937 public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:dmi.ModifiableComponent) */ {
2938 public:
2939 ModifiableComponent();
2940 virtual ~ModifiableComponent();
2941
2942 ModifiableComponent(const ModifiableComponent& from);
2943
2944 inline ModifiableComponent& operator=(const ModifiableComponent& from) {
2945 CopyFrom(from);
2946 return *this;
2947 }
2948 #if LANG_CXX11
2949 ModifiableComponent(ModifiableComponent&& from) noexcept
2950 : ModifiableComponent() {
2951 *this = ::std::move(from);
2952 }
2953
2954 inline ModifiableComponent& operator=(ModifiableComponent&& from) noexcept {
2955 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
2956 if (this != &from) InternalSwap(&from);
2957 } else {
2958 CopyFrom(from);
2959 }
2960 return *this;
2961 }
2962 #endif
2963 static const ::google::protobuf::Descriptor* descriptor() {
2964 return default_instance().GetDescriptor();
2965 }
2966 static const ModifiableComponent& default_instance();
2967
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002968 enum SpecificCase {
2969 kPortAttr = 50,
Girish Gowdra997432d2022-03-10 15:59:33 -08002970 kTrxAttr = 51,
amit.ghosh98c5a6c2021-08-12 16:19:46 +02002971 SPECIFIC_NOT_SET = 0,
2972 };
2973
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302974 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
2975 static inline const ModifiableComponent* internal_default_instance() {
2976 return reinterpret_cast<const ModifiableComponent*>(
2977 &_ModifiableComponent_default_instance_);
2978 }
2979 static constexpr int kIndexInFileMessages =
Girish Gowdra997432d2022-03-10 15:59:33 -08002980 14;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05302981
2982 void Swap(ModifiableComponent* other);
2983 friend void swap(ModifiableComponent& a, ModifiableComponent& b) {
2984 a.Swap(&b);
2985 }
2986
2987 // implements Message ----------------------------------------------
2988
2989 inline ModifiableComponent* New() const final {
2990 return CreateMaybeMessage<ModifiableComponent>(nullptr);
2991 }
2992
2993 ModifiableComponent* New(::google::protobuf::Arena* arena) const final {
2994 return CreateMaybeMessage<ModifiableComponent>(arena);
2995 }
2996 void CopyFrom(const ::google::protobuf::Message& from) final;
2997 void MergeFrom(const ::google::protobuf::Message& from) final;
2998 void CopyFrom(const ModifiableComponent& from);
2999 void MergeFrom(const ModifiableComponent& from);
3000 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
3001 bool IsInitialized() const final;
3002
3003 size_t ByteSizeLong() const final;
3004 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3005 static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx);
3006 ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; }
3007 #else
3008 bool MergePartialFromCodedStream(
3009 ::google::protobuf::io::CodedInputStream* input) final;
3010 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
3011 void SerializeWithCachedSizes(
3012 ::google::protobuf::io::CodedOutputStream* output) const final;
3013 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
3014 ::google::protobuf::uint8* target) const final;
3015 int GetCachedSize() const final { return _cached_size_.Get(); }
3016
3017 private:
3018 void SharedCtor();
3019 void SharedDtor();
3020 void SetCachedSize(int size) const final;
3021 void InternalSwap(ModifiableComponent* other);
3022 private:
3023 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
3024 return nullptr;
3025 }
3026 inline void* MaybeArenaPtr() const {
3027 return nullptr;
3028 }
3029 public:
3030
3031 ::google::protobuf::Metadata GetMetadata() const final;
3032
3033 // nested types ----------------------------------------------------
3034
3035 // accessors -------------------------------------------------------
3036
3037 // string name = 1;
3038 void clear_name();
3039 static const int kNameFieldNumber = 1;
3040 const ::std::string& name() const;
3041 void set_name(const ::std::string& value);
3042 #if LANG_CXX11
3043 void set_name(::std::string&& value);
3044 #endif
3045 void set_name(const char* value);
3046 void set_name(const char* value, size_t size);
3047 ::std::string* mutable_name();
3048 ::std::string* release_name();
3049 void set_allocated_name(::std::string* name);
3050
3051 // string alias = 5;
3052 void clear_alias();
3053 static const int kAliasFieldNumber = 5;
3054 const ::std::string& alias() const;
3055 void set_alias(const ::std::string& value);
3056 #if LANG_CXX11
3057 void set_alias(::std::string&& value);
3058 #endif
3059 void set_alias(const char* value);
3060 void set_alias(const char* value, size_t size);
3061 ::std::string* mutable_alias();
3062 ::std::string* release_alias();
3063 void set_allocated_alias(::std::string* alias);
3064
3065 // string asset_id = 6;
3066 void clear_asset_id();
3067 static const int kAssetIdFieldNumber = 6;
3068 const ::std::string& asset_id() const;
3069 void set_asset_id(const ::std::string& value);
3070 #if LANG_CXX11
3071 void set_asset_id(::std::string&& value);
3072 #endif
3073 void set_asset_id(const char* value);
3074 void set_asset_id(const char* value, size_t size);
3075 ::std::string* mutable_asset_id();
3076 ::std::string* release_asset_id();
3077 void set_allocated_asset_id(::std::string* asset_id);
3078
3079 // .dmi.Component parent = 3;
3080 bool has_parent() const;
3081 void clear_parent();
3082 static const int kParentFieldNumber = 3;
3083 const ::dmi::Component& parent() const;
3084 ::dmi::Component* release_parent();
3085 ::dmi::Component* mutable_parent();
3086 void set_allocated_parent(::dmi::Component* parent);
3087
3088 // .dmi.Uri uri = 7;
3089 bool has_uri() const;
3090 void clear_uri();
3091 static const int kUriFieldNumber = 7;
3092 const ::dmi::Uri& uri() const;
3093 ::dmi::Uri* release_uri();
3094 ::dmi::Uri* mutable_uri();
3095 void set_allocated_uri(::dmi::Uri* uri);
3096
3097 // .dmi.ComponentType class = 2;
3098 void clear_class_();
3099 static const int kClassFieldNumber = 2;
3100 ::dmi::ComponentType class_() const;
3101 void set_class_(::dmi::ComponentType value);
3102
3103 // int32 parent_rel_pos = 4;
3104 void clear_parent_rel_pos();
3105 static const int kParentRelPosFieldNumber = 4;
3106 ::google::protobuf::int32 parent_rel_pos() const;
3107 void set_parent_rel_pos(::google::protobuf::int32 value);
3108
3109 // .dmi.ComponentAdminState admin_state = 8;
3110 void clear_admin_state();
3111 static const int kAdminStateFieldNumber = 8;
3112 ::dmi::ComponentAdminState admin_state() const;
3113 void set_admin_state(::dmi::ComponentAdminState value);
3114
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003115 // .dmi.PortComponentChangeAttributes port_attr = 50;
3116 bool has_port_attr() const;
3117 void clear_port_attr();
3118 static const int kPortAttrFieldNumber = 50;
3119 const ::dmi::PortComponentChangeAttributes& port_attr() const;
3120 ::dmi::PortComponentChangeAttributes* release_port_attr();
3121 ::dmi::PortComponentChangeAttributes* mutable_port_attr();
3122 void set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr);
3123
Girish Gowdra997432d2022-03-10 15:59:33 -08003124 // .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
3125 bool has_trx_attr() const;
3126 void clear_trx_attr();
3127 static const int kTrxAttrFieldNumber = 51;
3128 const ::dmi::TransceiverComponentChangeAttributes& trx_attr() const;
3129 ::dmi::TransceiverComponentChangeAttributes* release_trx_attr();
3130 ::dmi::TransceiverComponentChangeAttributes* mutable_trx_attr();
3131 void set_allocated_trx_attr(::dmi::TransceiverComponentChangeAttributes* trx_attr);
3132
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003133 void clear_specific();
3134 SpecificCase specific_case() const;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303135 // @@protoc_insertion_point(class_scope:dmi.ModifiableComponent)
3136 private:
3137 class HasBitSetters;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003138 void set_has_port_attr();
Girish Gowdra997432d2022-03-10 15:59:33 -08003139 void set_has_trx_attr();
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003140
3141 inline bool has_specific() const;
3142 inline void clear_has_specific();
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303143
3144 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
3145 ::google::protobuf::internal::ArenaStringPtr name_;
3146 ::google::protobuf::internal::ArenaStringPtr alias_;
3147 ::google::protobuf::internal::ArenaStringPtr asset_id_;
3148 ::dmi::Component* parent_;
3149 ::dmi::Uri* uri_;
3150 int class__;
3151 ::google::protobuf::int32 parent_rel_pos_;
3152 int admin_state_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003153 union SpecificUnion {
3154 SpecificUnion() {}
3155 ::dmi::PortComponentChangeAttributes* port_attr_;
Girish Gowdra997432d2022-03-10 15:59:33 -08003156 ::dmi::TransceiverComponentChangeAttributes* trx_attr_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003157 } specific_;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303158 mutable ::google::protobuf::internal::CachedSize _cached_size_;
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003159 ::google::protobuf::uint32 _oneof_case_[1];
3160
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05303161 friend struct ::TableStruct_dmi_2fhw_2eproto;
3162};
3163// ===================================================================
3164
3165
3166// ===================================================================
3167
3168#ifdef __GNUC__
3169 #pragma GCC diagnostic push
3170 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
3171#endif // __GNUC__
3172// Uuid
3173
3174// string uuid = 1;
3175inline void Uuid::clear_uuid() {
3176 uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3177}
3178inline const ::std::string& Uuid::uuid() const {
3179 // @@protoc_insertion_point(field_get:dmi.Uuid.uuid)
3180 return uuid_.GetNoArena();
3181}
3182inline void Uuid::set_uuid(const ::std::string& value) {
3183
3184 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3185 // @@protoc_insertion_point(field_set:dmi.Uuid.uuid)
3186}
3187#if LANG_CXX11
3188inline void Uuid::set_uuid(::std::string&& value) {
3189
3190 uuid_.SetNoArena(
3191 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3192 // @@protoc_insertion_point(field_set_rvalue:dmi.Uuid.uuid)
3193}
3194#endif
3195inline void Uuid::set_uuid(const char* value) {
3196 GOOGLE_DCHECK(value != nullptr);
3197
3198 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3199 // @@protoc_insertion_point(field_set_char:dmi.Uuid.uuid)
3200}
3201inline void Uuid::set_uuid(const char* value, size_t size) {
3202
3203 uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3204 ::std::string(reinterpret_cast<const char*>(value), size));
3205 // @@protoc_insertion_point(field_set_pointer:dmi.Uuid.uuid)
3206}
3207inline ::std::string* Uuid::mutable_uuid() {
3208
3209 // @@protoc_insertion_point(field_mutable:dmi.Uuid.uuid)
3210 return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3211}
3212inline ::std::string* Uuid::release_uuid() {
3213 // @@protoc_insertion_point(field_release:dmi.Uuid.uuid)
3214
3215 return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3216}
3217inline void Uuid::set_allocated_uuid(::std::string* uuid) {
3218 if (uuid != nullptr) {
3219
3220 } else {
3221
3222 }
3223 uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid);
3224 // @@protoc_insertion_point(field_set_allocated:dmi.Uuid.uuid)
3225}
3226
3227// -------------------------------------------------------------------
3228
3229// HardwareID
3230
3231// .dmi.Uuid uuid = 1;
3232inline bool HardwareID::has_uuid() const {
3233 return this != internal_default_instance() && uuid_ != nullptr;
3234}
3235inline void HardwareID::clear_uuid() {
3236 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
3237 delete uuid_;
3238 }
3239 uuid_ = nullptr;
3240}
3241inline const ::dmi::Uuid& HardwareID::uuid() const {
3242 const ::dmi::Uuid* p = uuid_;
3243 // @@protoc_insertion_point(field_get:dmi.HardwareID.uuid)
3244 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
3245 &::dmi::_Uuid_default_instance_);
3246}
3247inline ::dmi::Uuid* HardwareID::release_uuid() {
3248 // @@protoc_insertion_point(field_release:dmi.HardwareID.uuid)
3249
3250 ::dmi::Uuid* temp = uuid_;
3251 uuid_ = nullptr;
3252 return temp;
3253}
3254inline ::dmi::Uuid* HardwareID::mutable_uuid() {
3255
3256 if (uuid_ == nullptr) {
3257 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
3258 uuid_ = p;
3259 }
3260 // @@protoc_insertion_point(field_mutable:dmi.HardwareID.uuid)
3261 return uuid_;
3262}
3263inline void HardwareID::set_allocated_uuid(::dmi::Uuid* uuid) {
3264 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3265 if (message_arena == nullptr) {
3266 delete uuid_;
3267 }
3268 if (uuid) {
3269 ::google::protobuf::Arena* submessage_arena = nullptr;
3270 if (message_arena != submessage_arena) {
3271 uuid = ::google::protobuf::internal::GetOwnedMessage(
3272 message_arena, uuid, submessage_arena);
3273 }
3274
3275 } else {
3276
3277 }
3278 uuid_ = uuid;
3279 // @@protoc_insertion_point(field_set_allocated:dmi.HardwareID.uuid)
3280}
3281
3282// -------------------------------------------------------------------
3283
3284// Uri
3285
3286// string uri = 1;
3287inline void Uri::clear_uri() {
3288 uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3289}
3290inline const ::std::string& Uri::uri() const {
3291 // @@protoc_insertion_point(field_get:dmi.Uri.uri)
3292 return uri_.GetNoArena();
3293}
3294inline void Uri::set_uri(const ::std::string& value) {
3295
3296 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3297 // @@protoc_insertion_point(field_set:dmi.Uri.uri)
3298}
3299#if LANG_CXX11
3300inline void Uri::set_uri(::std::string&& value) {
3301
3302 uri_.SetNoArena(
3303 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3304 // @@protoc_insertion_point(field_set_rvalue:dmi.Uri.uri)
3305}
3306#endif
3307inline void Uri::set_uri(const char* value) {
3308 GOOGLE_DCHECK(value != nullptr);
3309
3310 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3311 // @@protoc_insertion_point(field_set_char:dmi.Uri.uri)
3312}
3313inline void Uri::set_uri(const char* value, size_t size) {
3314
3315 uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3316 ::std::string(reinterpret_cast<const char*>(value), size));
3317 // @@protoc_insertion_point(field_set_pointer:dmi.Uri.uri)
3318}
3319inline ::std::string* Uri::mutable_uri() {
3320
3321 // @@protoc_insertion_point(field_mutable:dmi.Uri.uri)
3322 return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3323}
3324inline ::std::string* Uri::release_uri() {
3325 // @@protoc_insertion_point(field_release:dmi.Uri.uri)
3326
3327 return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3328}
3329inline void Uri::set_allocated_uri(::std::string* uri) {
3330 if (uri != nullptr) {
3331
3332 } else {
3333
3334 }
3335 uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri);
3336 // @@protoc_insertion_point(field_set_allocated:dmi.Uri.uri)
3337}
3338
3339// -------------------------------------------------------------------
3340
3341// ComponentState
3342
3343// .google.protobuf.Timestamp state_last_changed = 1;
3344inline bool ComponentState::has_state_last_changed() const {
3345 return this != internal_default_instance() && state_last_changed_ != nullptr;
3346}
3347inline const ::google::protobuf::Timestamp& ComponentState::state_last_changed() const {
3348 const ::google::protobuf::Timestamp* p = state_last_changed_;
3349 // @@protoc_insertion_point(field_get:dmi.ComponentState.state_last_changed)
3350 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3351 &::google::protobuf::_Timestamp_default_instance_);
3352}
3353inline ::google::protobuf::Timestamp* ComponentState::release_state_last_changed() {
3354 // @@protoc_insertion_point(field_release:dmi.ComponentState.state_last_changed)
3355
3356 ::google::protobuf::Timestamp* temp = state_last_changed_;
3357 state_last_changed_ = nullptr;
3358 return temp;
3359}
3360inline ::google::protobuf::Timestamp* ComponentState::mutable_state_last_changed() {
3361
3362 if (state_last_changed_ == nullptr) {
3363 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3364 state_last_changed_ = p;
3365 }
3366 // @@protoc_insertion_point(field_mutable:dmi.ComponentState.state_last_changed)
3367 return state_last_changed_;
3368}
3369inline void ComponentState::set_allocated_state_last_changed(::google::protobuf::Timestamp* state_last_changed) {
3370 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3371 if (message_arena == nullptr) {
3372 delete reinterpret_cast< ::google::protobuf::MessageLite*>(state_last_changed_);
3373 }
3374 if (state_last_changed) {
3375 ::google::protobuf::Arena* submessage_arena =
3376 reinterpret_cast<::google::protobuf::MessageLite*>(state_last_changed)->GetArena();
3377 if (message_arena != submessage_arena) {
3378 state_last_changed = ::google::protobuf::internal::GetOwnedMessage(
3379 message_arena, state_last_changed, submessage_arena);
3380 }
3381
3382 } else {
3383
3384 }
3385 state_last_changed_ = state_last_changed;
3386 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentState.state_last_changed)
3387}
3388
3389// .dmi.ComponentAdminState admin_state = 2;
3390inline void ComponentState::clear_admin_state() {
3391 admin_state_ = 0;
3392}
3393inline ::dmi::ComponentAdminState ComponentState::admin_state() const {
3394 // @@protoc_insertion_point(field_get:dmi.ComponentState.admin_state)
3395 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
3396}
3397inline void ComponentState::set_admin_state(::dmi::ComponentAdminState value) {
3398
3399 admin_state_ = value;
3400 // @@protoc_insertion_point(field_set:dmi.ComponentState.admin_state)
3401}
3402
3403// .dmi.ComponentOperState oper_state = 3;
3404inline void ComponentState::clear_oper_state() {
3405 oper_state_ = 0;
3406}
3407inline ::dmi::ComponentOperState ComponentState::oper_state() const {
3408 // @@protoc_insertion_point(field_get:dmi.ComponentState.oper_state)
3409 return static_cast< ::dmi::ComponentOperState >(oper_state_);
3410}
3411inline void ComponentState::set_oper_state(::dmi::ComponentOperState value) {
3412
3413 oper_state_ = value;
3414 // @@protoc_insertion_point(field_set:dmi.ComponentState.oper_state)
3415}
3416
3417// .dmi.ComponentUsageState usage_state = 4;
3418inline void ComponentState::clear_usage_state() {
3419 usage_state_ = 0;
3420}
3421inline ::dmi::ComponentUsageState ComponentState::usage_state() const {
3422 // @@protoc_insertion_point(field_get:dmi.ComponentState.usage_state)
3423 return static_cast< ::dmi::ComponentUsageState >(usage_state_);
3424}
3425inline void ComponentState::set_usage_state(::dmi::ComponentUsageState value) {
3426
3427 usage_state_ = value;
3428 // @@protoc_insertion_point(field_set:dmi.ComponentState.usage_state)
3429}
3430
3431// .dmi.ComponentAlarmState alarm_state = 5;
3432inline void ComponentState::clear_alarm_state() {
3433 alarm_state_ = 0;
3434}
3435inline ::dmi::ComponentAlarmState ComponentState::alarm_state() const {
3436 // @@protoc_insertion_point(field_get:dmi.ComponentState.alarm_state)
3437 return static_cast< ::dmi::ComponentAlarmState >(alarm_state_);
3438}
3439inline void ComponentState::set_alarm_state(::dmi::ComponentAlarmState value) {
3440
3441 alarm_state_ = value;
3442 // @@protoc_insertion_point(field_set:dmi.ComponentState.alarm_state)
3443}
3444
3445// .dmi.ComponentStandbyState standby_state = 6;
3446inline void ComponentState::clear_standby_state() {
3447 standby_state_ = 0;
3448}
3449inline ::dmi::ComponentStandbyState ComponentState::standby_state() const {
3450 // @@protoc_insertion_point(field_get:dmi.ComponentState.standby_state)
3451 return static_cast< ::dmi::ComponentStandbyState >(standby_state_);
3452}
3453inline void ComponentState::set_standby_state(::dmi::ComponentStandbyState value) {
3454
3455 standby_state_ = value;
3456 // @@protoc_insertion_point(field_set:dmi.ComponentState.standby_state)
3457}
3458
3459// -------------------------------------------------------------------
3460
3461// ComponentSensorData
3462
3463// int32 value = 1;
3464inline void ComponentSensorData::clear_value() {
3465 value_ = 0;
3466}
3467inline ::google::protobuf::int32 ComponentSensorData::value() const {
3468 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value)
3469 return value_;
3470}
3471inline void ComponentSensorData::set_value(::google::protobuf::int32 value) {
3472
3473 value_ = value;
3474 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value)
3475}
3476
3477// .dmi.DataValueType type = 2;
3478inline void ComponentSensorData::clear_type() {
3479 type_ = 0;
3480}
3481inline ::dmi::DataValueType ComponentSensorData::type() const {
3482 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.type)
3483 return static_cast< ::dmi::DataValueType >(type_);
3484}
3485inline void ComponentSensorData::set_type(::dmi::DataValueType value) {
3486
3487 type_ = value;
3488 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.type)
3489}
3490
3491// .dmi.ValueScale scale = 3;
3492inline void ComponentSensorData::clear_scale() {
3493 scale_ = 0;
3494}
3495inline ::dmi::ValueScale ComponentSensorData::scale() const {
3496 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.scale)
3497 return static_cast< ::dmi::ValueScale >(scale_);
3498}
3499inline void ComponentSensorData::set_scale(::dmi::ValueScale value) {
3500
3501 scale_ = value;
3502 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.scale)
3503}
3504
3505// int32 precision = 4;
3506inline void ComponentSensorData::clear_precision() {
3507 precision_ = 0;
3508}
3509inline ::google::protobuf::int32 ComponentSensorData::precision() const {
3510 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.precision)
3511 return precision_;
3512}
3513inline void ComponentSensorData::set_precision(::google::protobuf::int32 value) {
3514
3515 precision_ = value;
3516 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.precision)
3517}
3518
3519// .dmi.SensorStatus status = 5;
3520inline void ComponentSensorData::clear_status() {
3521 status_ = 0;
3522}
3523inline ::dmi::SensorStatus ComponentSensorData::status() const {
3524 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.status)
3525 return static_cast< ::dmi::SensorStatus >(status_);
3526}
3527inline void ComponentSensorData::set_status(::dmi::SensorStatus value) {
3528
3529 status_ = value;
3530 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.status)
3531}
3532
3533// string units_display = 6;
3534inline void ComponentSensorData::clear_units_display() {
3535 units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3536}
3537inline const ::std::string& ComponentSensorData::units_display() const {
3538 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.units_display)
3539 return units_display_.GetNoArena();
3540}
3541inline void ComponentSensorData::set_units_display(const ::std::string& value) {
3542
3543 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3544 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.units_display)
3545}
3546#if LANG_CXX11
3547inline void ComponentSensorData::set_units_display(::std::string&& value) {
3548
3549 units_display_.SetNoArena(
3550 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3551 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.units_display)
3552}
3553#endif
3554inline void ComponentSensorData::set_units_display(const char* value) {
3555 GOOGLE_DCHECK(value != nullptr);
3556
3557 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3558 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.units_display)
3559}
3560inline void ComponentSensorData::set_units_display(const char* value, size_t size) {
3561
3562 units_display_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3563 ::std::string(reinterpret_cast<const char*>(value), size));
3564 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.units_display)
3565}
3566inline ::std::string* ComponentSensorData::mutable_units_display() {
3567
3568 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.units_display)
3569 return units_display_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3570}
3571inline ::std::string* ComponentSensorData::release_units_display() {
3572 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.units_display)
3573
3574 return units_display_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3575}
3576inline void ComponentSensorData::set_allocated_units_display(::std::string* units_display) {
3577 if (units_display != nullptr) {
3578
3579 } else {
3580
3581 }
3582 units_display_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), units_display);
3583 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.units_display)
3584}
3585
3586// .google.protobuf.Timestamp timestamp = 7;
3587inline bool ComponentSensorData::has_timestamp() const {
3588 return this != internal_default_instance() && timestamp_ != nullptr;
3589}
3590inline const ::google::protobuf::Timestamp& ComponentSensorData::timestamp() const {
3591 const ::google::protobuf::Timestamp* p = timestamp_;
3592 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.timestamp)
3593 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
3594 &::google::protobuf::_Timestamp_default_instance_);
3595}
3596inline ::google::protobuf::Timestamp* ComponentSensorData::release_timestamp() {
3597 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.timestamp)
3598
3599 ::google::protobuf::Timestamp* temp = timestamp_;
3600 timestamp_ = nullptr;
3601 return temp;
3602}
3603inline ::google::protobuf::Timestamp* ComponentSensorData::mutable_timestamp() {
3604
3605 if (timestamp_ == nullptr) {
3606 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
3607 timestamp_ = p;
3608 }
3609 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.timestamp)
3610 return timestamp_;
3611}
3612inline void ComponentSensorData::set_allocated_timestamp(::google::protobuf::Timestamp* timestamp) {
3613 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3614 if (message_arena == nullptr) {
3615 delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_);
3616 }
3617 if (timestamp) {
3618 ::google::protobuf::Arena* submessage_arena =
3619 reinterpret_cast<::google::protobuf::MessageLite*>(timestamp)->GetArena();
3620 if (message_arena != submessage_arena) {
3621 timestamp = ::google::protobuf::internal::GetOwnedMessage(
3622 message_arena, timestamp, submessage_arena);
3623 }
3624
3625 } else {
3626
3627 }
3628 timestamp_ = timestamp;
3629 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.timestamp)
3630}
3631
3632// uint32 value_update_rate = 8;
3633inline void ComponentSensorData::clear_value_update_rate() {
3634 value_update_rate_ = 0u;
3635}
3636inline ::google::protobuf::uint32 ComponentSensorData::value_update_rate() const {
3637 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.value_update_rate)
3638 return value_update_rate_;
3639}
3640inline void ComponentSensorData::set_value_update_rate(::google::protobuf::uint32 value) {
3641
3642 value_update_rate_ = value;
3643 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.value_update_rate)
3644}
3645
3646// string data_type = 9;
3647inline void ComponentSensorData::clear_data_type() {
3648 data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3649}
3650inline const ::std::string& ComponentSensorData::data_type() const {
3651 // @@protoc_insertion_point(field_get:dmi.ComponentSensorData.data_type)
3652 return data_type_.GetNoArena();
3653}
3654inline void ComponentSensorData::set_data_type(const ::std::string& value) {
3655
3656 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3657 // @@protoc_insertion_point(field_set:dmi.ComponentSensorData.data_type)
3658}
3659#if LANG_CXX11
3660inline void ComponentSensorData::set_data_type(::std::string&& value) {
3661
3662 data_type_.SetNoArena(
3663 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3664 // @@protoc_insertion_point(field_set_rvalue:dmi.ComponentSensorData.data_type)
3665}
3666#endif
3667inline void ComponentSensorData::set_data_type(const char* value) {
3668 GOOGLE_DCHECK(value != nullptr);
3669
3670 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3671 // @@protoc_insertion_point(field_set_char:dmi.ComponentSensorData.data_type)
3672}
3673inline void ComponentSensorData::set_data_type(const char* value, size_t size) {
3674
3675 data_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3676 ::std::string(reinterpret_cast<const char*>(value), size));
3677 // @@protoc_insertion_point(field_set_pointer:dmi.ComponentSensorData.data_type)
3678}
3679inline ::std::string* ComponentSensorData::mutable_data_type() {
3680
3681 // @@protoc_insertion_point(field_mutable:dmi.ComponentSensorData.data_type)
3682 return data_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3683}
3684inline ::std::string* ComponentSensorData::release_data_type() {
3685 // @@protoc_insertion_point(field_release:dmi.ComponentSensorData.data_type)
3686
3687 return data_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3688}
3689inline void ComponentSensorData::set_allocated_data_type(::std::string* data_type) {
3690 if (data_type != nullptr) {
3691
3692 } else {
3693
3694 }
3695 data_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_type);
3696 // @@protoc_insertion_point(field_set_allocated:dmi.ComponentSensorData.data_type)
3697}
3698
3699// -------------------------------------------------------------------
3700
3701// PortComponentAttributes
3702
3703// .dmi.PortComponentAttributes.ConnectorType connector_type = 1;
3704inline void PortComponentAttributes::clear_connector_type() {
3705 connector_type_ = 0;
3706}
3707inline ::dmi::PortComponentAttributes_ConnectorType PortComponentAttributes::connector_type() const {
3708 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.connector_type)
3709 return static_cast< ::dmi::PortComponentAttributes_ConnectorType >(connector_type_);
3710}
3711inline void PortComponentAttributes::set_connector_type(::dmi::PortComponentAttributes_ConnectorType value) {
3712
3713 connector_type_ = value;
3714 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.connector_type)
3715}
3716
3717// .dmi.PortComponentAttributes.Speed speed = 2;
3718inline void PortComponentAttributes::clear_speed() {
3719 speed_ = 0;
3720}
3721inline ::dmi::PortComponentAttributes_Speed PortComponentAttributes::speed() const {
3722 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.speed)
3723 return static_cast< ::dmi::PortComponentAttributes_Speed >(speed_);
3724}
3725inline void PortComponentAttributes::set_speed(::dmi::PortComponentAttributes_Speed value) {
3726
3727 speed_ = value;
3728 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.speed)
3729}
3730
3731// .dmi.PortComponentAttributes.Protocol protocol = 3;
3732inline void PortComponentAttributes::clear_protocol() {
3733 protocol_ = 0;
3734}
3735inline ::dmi::PortComponentAttributes_Protocol PortComponentAttributes::protocol() const {
3736 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.protocol)
3737 return static_cast< ::dmi::PortComponentAttributes_Protocol >(protocol_);
3738}
3739inline void PortComponentAttributes::set_protocol(::dmi::PortComponentAttributes_Protocol value) {
3740
3741 protocol_ = value;
3742 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.protocol)
3743}
3744
3745// string physical_label = 4;
3746inline void PortComponentAttributes::clear_physical_label() {
3747 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3748}
3749inline const ::std::string& PortComponentAttributes::physical_label() const {
3750 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.physical_label)
3751 return physical_label_.GetNoArena();
3752}
3753inline void PortComponentAttributes::set_physical_label(const ::std::string& value) {
3754
3755 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3756 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.physical_label)
3757}
3758#if LANG_CXX11
3759inline void PortComponentAttributes::set_physical_label(::std::string&& value) {
3760
3761 physical_label_.SetNoArena(
3762 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3763 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.physical_label)
3764}
3765#endif
3766inline void PortComponentAttributes::set_physical_label(const char* value) {
3767 GOOGLE_DCHECK(value != nullptr);
3768
3769 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3770 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.physical_label)
3771}
3772inline void PortComponentAttributes::set_physical_label(const char* value, size_t size) {
3773
3774 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3775 ::std::string(reinterpret_cast<const char*>(value), size));
3776 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.physical_label)
3777}
3778inline ::std::string* PortComponentAttributes::mutable_physical_label() {
3779
3780 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.physical_label)
3781 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3782}
3783inline ::std::string* PortComponentAttributes::release_physical_label() {
3784 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.physical_label)
3785
3786 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3787}
3788inline void PortComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
3789 if (physical_label != nullptr) {
3790
3791 } else {
3792
3793 }
3794 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
3795 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.physical_label)
3796}
3797
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003798// string mapping_label = 5;
3799inline void PortComponentAttributes::clear_mapping_label() {
3800 mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3801}
3802inline const ::std::string& PortComponentAttributes::mapping_label() const {
3803 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.mapping_label)
3804 return mapping_label_.GetNoArena();
3805}
3806inline void PortComponentAttributes::set_mapping_label(const ::std::string& value) {
3807
3808 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
3809 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.mapping_label)
3810}
3811#if LANG_CXX11
3812inline void PortComponentAttributes::set_mapping_label(::std::string&& value) {
3813
3814 mapping_label_.SetNoArena(
3815 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
3816 // @@protoc_insertion_point(field_set_rvalue:dmi.PortComponentAttributes.mapping_label)
3817}
3818#endif
3819inline void PortComponentAttributes::set_mapping_label(const char* value) {
3820 GOOGLE_DCHECK(value != nullptr);
3821
3822 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
3823 // @@protoc_insertion_point(field_set_char:dmi.PortComponentAttributes.mapping_label)
3824}
3825inline void PortComponentAttributes::set_mapping_label(const char* value, size_t size) {
3826
3827 mapping_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
3828 ::std::string(reinterpret_cast<const char*>(value), size));
3829 // @@protoc_insertion_point(field_set_pointer:dmi.PortComponentAttributes.mapping_label)
3830}
3831inline ::std::string* PortComponentAttributes::mutable_mapping_label() {
3832
3833 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.mapping_label)
3834 return mapping_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3835}
3836inline ::std::string* PortComponentAttributes::release_mapping_label() {
3837 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.mapping_label)
3838
3839 return mapping_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3840}
3841inline void PortComponentAttributes::set_allocated_mapping_label(::std::string* mapping_label) {
3842 if (mapping_label != nullptr) {
3843
3844 } else {
3845
3846 }
3847 mapping_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mapping_label);
3848 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.mapping_label)
3849}
3850
3851// .dmi.PonIdConfig pon_id_config = 6;
3852inline bool PortComponentAttributes::has_pon_id_config() const {
3853 return this != internal_default_instance() && pon_id_config_ != nullptr;
3854}
3855inline void PortComponentAttributes::clear_pon_id_config() {
3856 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3857 delete pon_id_config_;
3858 }
3859 pon_id_config_ = nullptr;
3860}
3861inline const ::dmi::PonIdConfig& PortComponentAttributes::pon_id_config() const {
3862 const ::dmi::PonIdConfig* p = pon_id_config_;
3863 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.pon_id_config)
3864 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3865 &::dmi::_PonIdConfig_default_instance_);
3866}
3867inline ::dmi::PonIdConfig* PortComponentAttributes::release_pon_id_config() {
3868 // @@protoc_insertion_point(field_release:dmi.PortComponentAttributes.pon_id_config)
3869
3870 ::dmi::PonIdConfig* temp = pon_id_config_;
3871 pon_id_config_ = nullptr;
3872 return temp;
3873}
3874inline ::dmi::PonIdConfig* PortComponentAttributes::mutable_pon_id_config() {
3875
3876 if (pon_id_config_ == nullptr) {
3877 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3878 pon_id_config_ = p;
3879 }
3880 // @@protoc_insertion_point(field_mutable:dmi.PortComponentAttributes.pon_id_config)
3881 return pon_id_config_;
3882}
3883inline void PortComponentAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3884 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3885 if (message_arena == nullptr) {
3886 delete pon_id_config_;
3887 }
3888 if (pon_id_config) {
3889 ::google::protobuf::Arena* submessage_arena = nullptr;
3890 if (message_arena != submessage_arena) {
3891 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3892 message_arena, pon_id_config, submessage_arena);
3893 }
3894
3895 } else {
3896
3897 }
3898 pon_id_config_ = pon_id_config;
3899 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentAttributes.pon_id_config)
3900}
3901
Andrea Campanellafcd22292021-08-27 10:45:46 +02003902// bool speed_autonegotiation = 7;
3903inline void PortComponentAttributes::clear_speed_autonegotiation() {
3904 speed_autonegotiation_ = false;
3905}
3906inline bool PortComponentAttributes::speed_autonegotiation() const {
3907 // @@protoc_insertion_point(field_get:dmi.PortComponentAttributes.speed_autonegotiation)
3908 return speed_autonegotiation_;
3909}
3910inline void PortComponentAttributes::set_speed_autonegotiation(bool value) {
3911
3912 speed_autonegotiation_ = value;
3913 // @@protoc_insertion_point(field_set:dmi.PortComponentAttributes.speed_autonegotiation)
3914}
3915
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003916// -------------------------------------------------------------------
3917
3918// PortComponentChangeAttributes
3919
3920// .dmi.PonIdConfig pon_id_config = 1;
3921inline bool PortComponentChangeAttributes::has_pon_id_config() const {
3922 return this != internal_default_instance() && pon_id_config_ != nullptr;
3923}
3924inline void PortComponentChangeAttributes::clear_pon_id_config() {
3925 if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) {
3926 delete pon_id_config_;
3927 }
3928 pon_id_config_ = nullptr;
3929}
3930inline const ::dmi::PonIdConfig& PortComponentChangeAttributes::pon_id_config() const {
3931 const ::dmi::PonIdConfig* p = pon_id_config_;
3932 // @@protoc_insertion_point(field_get:dmi.PortComponentChangeAttributes.pon_id_config)
3933 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::PonIdConfig*>(
3934 &::dmi::_PonIdConfig_default_instance_);
3935}
3936inline ::dmi::PonIdConfig* PortComponentChangeAttributes::release_pon_id_config() {
3937 // @@protoc_insertion_point(field_release:dmi.PortComponentChangeAttributes.pon_id_config)
3938
3939 ::dmi::PonIdConfig* temp = pon_id_config_;
3940 pon_id_config_ = nullptr;
3941 return temp;
3942}
3943inline ::dmi::PonIdConfig* PortComponentChangeAttributes::mutable_pon_id_config() {
3944
3945 if (pon_id_config_ == nullptr) {
3946 auto* p = CreateMaybeMessage<::dmi::PonIdConfig>(GetArenaNoVirtual());
3947 pon_id_config_ = p;
3948 }
3949 // @@protoc_insertion_point(field_mutable:dmi.PortComponentChangeAttributes.pon_id_config)
3950 return pon_id_config_;
3951}
3952inline void PortComponentChangeAttributes::set_allocated_pon_id_config(::dmi::PonIdConfig* pon_id_config) {
3953 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
3954 if (message_arena == nullptr) {
3955 delete pon_id_config_;
3956 }
3957 if (pon_id_config) {
3958 ::google::protobuf::Arena* submessage_arena = nullptr;
3959 if (message_arena != submessage_arena) {
3960 pon_id_config = ::google::protobuf::internal::GetOwnedMessage(
3961 message_arena, pon_id_config, submessage_arena);
3962 }
3963
3964 } else {
3965
3966 }
3967 pon_id_config_ = pon_id_config;
3968 // @@protoc_insertion_point(field_set_allocated:dmi.PortComponentChangeAttributes.pon_id_config)
3969}
3970
3971// -------------------------------------------------------------------
3972
Girish Gowdra997432d2022-03-10 15:59:33 -08003973// TransceiverComponentChangeAttributes
3974
3975// .dmi.TransceiverType trans_type = 1;
3976inline void TransceiverComponentChangeAttributes::clear_trans_type() {
3977 trans_type_ = 0;
3978}
3979inline ::dmi::TransceiverType TransceiverComponentChangeAttributes::trans_type() const {
3980 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentChangeAttributes.trans_type)
3981 return static_cast< ::dmi::TransceiverType >(trans_type_);
3982}
3983inline void TransceiverComponentChangeAttributes::set_trans_type(::dmi::TransceiverType value) {
3984
3985 trans_type_ = value;
3986 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentChangeAttributes.trans_type)
3987}
3988
3989// -------------------------------------------------------------------
3990
amit.ghosh98c5a6c2021-08-12 16:19:46 +02003991// PonIdConfig
3992
3993// bytes pon_id = 1;
3994inline void PonIdConfig::clear_pon_id() {
3995 pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3996}
3997inline const ::std::string& PonIdConfig::pon_id() const {
3998 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id)
3999 return pon_id_.GetNoArena();
4000}
4001inline void PonIdConfig::set_pon_id(const ::std::string& value) {
4002
4003 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4004 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id)
4005}
4006#if LANG_CXX11
4007inline void PonIdConfig::set_pon_id(::std::string&& value) {
4008
4009 pon_id_.SetNoArena(
4010 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4011 // @@protoc_insertion_point(field_set_rvalue:dmi.PonIdConfig.pon_id)
4012}
4013#endif
4014inline void PonIdConfig::set_pon_id(const char* value) {
4015 GOOGLE_DCHECK(value != nullptr);
4016
4017 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4018 // @@protoc_insertion_point(field_set_char:dmi.PonIdConfig.pon_id)
4019}
4020inline void PonIdConfig::set_pon_id(const void* value, size_t size) {
4021
4022 pon_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4023 ::std::string(reinterpret_cast<const char*>(value), size));
4024 // @@protoc_insertion_point(field_set_pointer:dmi.PonIdConfig.pon_id)
4025}
4026inline ::std::string* PonIdConfig::mutable_pon_id() {
4027
4028 // @@protoc_insertion_point(field_mutable:dmi.PonIdConfig.pon_id)
4029 return pon_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4030}
4031inline ::std::string* PonIdConfig::release_pon_id() {
4032 // @@protoc_insertion_point(field_release:dmi.PonIdConfig.pon_id)
4033
4034 return pon_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4035}
4036inline void PonIdConfig::set_allocated_pon_id(::std::string* pon_id) {
4037 if (pon_id != nullptr) {
4038
4039 } else {
4040
4041 }
4042 pon_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pon_id);
4043 // @@protoc_insertion_point(field_set_allocated:dmi.PonIdConfig.pon_id)
4044}
4045
4046// uint32 pon_id_transmit_periodicity = 2;
4047inline void PonIdConfig::clear_pon_id_transmit_periodicity() {
4048 pon_id_transmit_periodicity_ = 0u;
4049}
4050inline ::google::protobuf::uint32 PonIdConfig::pon_id_transmit_periodicity() const {
4051 // @@protoc_insertion_point(field_get:dmi.PonIdConfig.pon_id_transmit_periodicity)
4052 return pon_id_transmit_periodicity_;
4053}
4054inline void PonIdConfig::set_pon_id_transmit_periodicity(::google::protobuf::uint32 value) {
4055
4056 pon_id_transmit_periodicity_ = value;
4057 // @@protoc_insertion_point(field_set:dmi.PonIdConfig.pon_id_transmit_periodicity)
4058}
4059
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304060// -------------------------------------------------------------------
4061
4062// ContainerComponentAttributes
4063
4064// string physical_label = 1;
4065inline void ContainerComponentAttributes::clear_physical_label() {
4066 physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4067}
4068inline const ::std::string& ContainerComponentAttributes::physical_label() const {
4069 // @@protoc_insertion_point(field_get:dmi.ContainerComponentAttributes.physical_label)
4070 return physical_label_.GetNoArena();
4071}
4072inline void ContainerComponentAttributes::set_physical_label(const ::std::string& value) {
4073
4074 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4075 // @@protoc_insertion_point(field_set:dmi.ContainerComponentAttributes.physical_label)
4076}
4077#if LANG_CXX11
4078inline void ContainerComponentAttributes::set_physical_label(::std::string&& value) {
4079
4080 physical_label_.SetNoArena(
4081 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4082 // @@protoc_insertion_point(field_set_rvalue:dmi.ContainerComponentAttributes.physical_label)
4083}
4084#endif
4085inline void ContainerComponentAttributes::set_physical_label(const char* value) {
4086 GOOGLE_DCHECK(value != nullptr);
4087
4088 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4089 // @@protoc_insertion_point(field_set_char:dmi.ContainerComponentAttributes.physical_label)
4090}
4091inline void ContainerComponentAttributes::set_physical_label(const char* value, size_t size) {
4092
4093 physical_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4094 ::std::string(reinterpret_cast<const char*>(value), size));
4095 // @@protoc_insertion_point(field_set_pointer:dmi.ContainerComponentAttributes.physical_label)
4096}
4097inline ::std::string* ContainerComponentAttributes::mutable_physical_label() {
4098
4099 // @@protoc_insertion_point(field_mutable:dmi.ContainerComponentAttributes.physical_label)
4100 return physical_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4101}
4102inline ::std::string* ContainerComponentAttributes::release_physical_label() {
4103 // @@protoc_insertion_point(field_release:dmi.ContainerComponentAttributes.physical_label)
4104
4105 return physical_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4106}
4107inline void ContainerComponentAttributes::set_allocated_physical_label(::std::string* physical_label) {
4108 if (physical_label != nullptr) {
4109
4110 } else {
4111
4112 }
4113 physical_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_label);
4114 // @@protoc_insertion_point(field_set_allocated:dmi.ContainerComponentAttributes.physical_label)
4115}
4116
4117// -------------------------------------------------------------------
4118
4119// PsuComponentAttributes
4120
4121// .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1;
4122inline void PsuComponentAttributes::clear_supported_voltage() {
4123 supported_voltage_ = 0;
4124}
4125inline ::dmi::PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::supported_voltage() const {
4126 // @@protoc_insertion_point(field_get:dmi.PsuComponentAttributes.supported_voltage)
4127 return static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(supported_voltage_);
4128}
4129inline void PsuComponentAttributes::set_supported_voltage(::dmi::PsuComponentAttributes_SupportedVoltage value) {
4130
4131 supported_voltage_ = value;
4132 // @@protoc_insertion_point(field_set:dmi.PsuComponentAttributes.supported_voltage)
4133}
4134
4135// -------------------------------------------------------------------
4136
4137// TransceiverComponentsAttributes
4138
4139// .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1;
4140inline void TransceiverComponentsAttributes::clear_form_factor() {
4141 form_factor_ = 0;
4142}
4143inline ::dmi::TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::form_factor() const {
4144 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.form_factor)
4145 return static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(form_factor_);
4146}
4147inline void TransceiverComponentsAttributes::set_form_factor(::dmi::TransceiverComponentsAttributes_FormFactor value) {
4148
4149 form_factor_ = value;
4150 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.form_factor)
4151}
4152
Girish Gowdra997432d2022-03-10 15:59:33 -08004153// .dmi.TransceiverType trans_type = 2;
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304154inline void TransceiverComponentsAttributes::clear_trans_type() {
4155 trans_type_ = 0;
4156}
Girish Gowdra997432d2022-03-10 15:59:33 -08004157inline ::dmi::TransceiverType TransceiverComponentsAttributes::trans_type() const {
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304158 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.trans_type)
Girish Gowdra997432d2022-03-10 15:59:33 -08004159 return static_cast< ::dmi::TransceiverType >(trans_type_);
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304160}
Girish Gowdra997432d2022-03-10 15:59:33 -08004161inline void TransceiverComponentsAttributes::set_trans_type(::dmi::TransceiverType value) {
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304162
4163 trans_type_ = value;
4164 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.trans_type)
4165}
4166
4167// uint32 max_distance = 3;
4168inline void TransceiverComponentsAttributes::clear_max_distance() {
4169 max_distance_ = 0u;
4170}
4171inline ::google::protobuf::uint32 TransceiverComponentsAttributes::max_distance() const {
4172 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance)
4173 return max_distance_;
4174}
4175inline void TransceiverComponentsAttributes::set_max_distance(::google::protobuf::uint32 value) {
4176
4177 max_distance_ = value;
4178 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance)
4179}
4180
4181// .dmi.ValueScale max_distance_scale = 4;
4182inline void TransceiverComponentsAttributes::clear_max_distance_scale() {
4183 max_distance_scale_ = 0;
4184}
4185inline ::dmi::ValueScale TransceiverComponentsAttributes::max_distance_scale() const {
4186 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.max_distance_scale)
4187 return static_cast< ::dmi::ValueScale >(max_distance_scale_);
4188}
4189inline void TransceiverComponentsAttributes::set_max_distance_scale(::dmi::ValueScale value) {
4190
4191 max_distance_scale_ = value;
4192 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.max_distance_scale)
4193}
4194
4195// repeated uint32 rx_wavelength = 5;
4196inline int TransceiverComponentsAttributes::rx_wavelength_size() const {
4197 return rx_wavelength_.size();
4198}
4199inline void TransceiverComponentsAttributes::clear_rx_wavelength() {
4200 rx_wavelength_.Clear();
4201}
4202inline ::google::protobuf::uint32 TransceiverComponentsAttributes::rx_wavelength(int index) const {
4203 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.rx_wavelength)
4204 return rx_wavelength_.Get(index);
4205}
4206inline void TransceiverComponentsAttributes::set_rx_wavelength(int index, ::google::protobuf::uint32 value) {
4207 rx_wavelength_.Set(index, value);
4208 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.rx_wavelength)
4209}
4210inline void TransceiverComponentsAttributes::add_rx_wavelength(::google::protobuf::uint32 value) {
4211 rx_wavelength_.Add(value);
4212 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.rx_wavelength)
4213}
4214inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4215TransceiverComponentsAttributes::rx_wavelength() const {
4216 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4217 return rx_wavelength_;
4218}
4219inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4220TransceiverComponentsAttributes::mutable_rx_wavelength() {
4221 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.rx_wavelength)
4222 return &rx_wavelength_;
4223}
4224
4225// repeated uint32 tx_wavelength = 6;
4226inline int TransceiverComponentsAttributes::tx_wavelength_size() const {
4227 return tx_wavelength_.size();
4228}
4229inline void TransceiverComponentsAttributes::clear_tx_wavelength() {
4230 tx_wavelength_.Clear();
4231}
4232inline ::google::protobuf::uint32 TransceiverComponentsAttributes::tx_wavelength(int index) const {
4233 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.tx_wavelength)
4234 return tx_wavelength_.Get(index);
4235}
4236inline void TransceiverComponentsAttributes::set_tx_wavelength(int index, ::google::protobuf::uint32 value) {
4237 tx_wavelength_.Set(index, value);
4238 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.tx_wavelength)
4239}
4240inline void TransceiverComponentsAttributes::add_tx_wavelength(::google::protobuf::uint32 value) {
4241 tx_wavelength_.Add(value);
4242 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.tx_wavelength)
4243}
4244inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
4245TransceiverComponentsAttributes::tx_wavelength() const {
4246 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4247 return tx_wavelength_;
4248}
4249inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
4250TransceiverComponentsAttributes::mutable_tx_wavelength() {
4251 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.tx_wavelength)
4252 return &tx_wavelength_;
4253}
4254
4255// .dmi.ValueScale wavelength_scale = 7;
4256inline void TransceiverComponentsAttributes::clear_wavelength_scale() {
4257 wavelength_scale_ = 0;
4258}
4259inline ::dmi::ValueScale TransceiverComponentsAttributes::wavelength_scale() const {
4260 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.wavelength_scale)
4261 return static_cast< ::dmi::ValueScale >(wavelength_scale_);
4262}
4263inline void TransceiverComponentsAttributes::set_wavelength_scale(::dmi::ValueScale value) {
4264
4265 wavelength_scale_ = value;
4266 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.wavelength_scale)
4267}
4268
amit.ghosh52abaae2022-11-28 13:59:22 +01004269// repeated int32 tx_power = 8;
4270inline int TransceiverComponentsAttributes::tx_power_size() const {
4271 return tx_power_.size();
4272}
4273inline void TransceiverComponentsAttributes::clear_tx_power() {
4274 tx_power_.Clear();
4275}
4276inline ::google::protobuf::int32 TransceiverComponentsAttributes::tx_power(int index) const {
4277 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.tx_power)
4278 return tx_power_.Get(index);
4279}
4280inline void TransceiverComponentsAttributes::set_tx_power(int index, ::google::protobuf::int32 value) {
4281 tx_power_.Set(index, value);
4282 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.tx_power)
4283}
4284inline void TransceiverComponentsAttributes::add_tx_power(::google::protobuf::int32 value) {
4285 tx_power_.Add(value);
4286 // @@protoc_insertion_point(field_add:dmi.TransceiverComponentsAttributes.tx_power)
4287}
4288inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
4289TransceiverComponentsAttributes::tx_power() const {
4290 // @@protoc_insertion_point(field_list:dmi.TransceiverComponentsAttributes.tx_power)
4291 return tx_power_;
4292}
4293inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
4294TransceiverComponentsAttributes::mutable_tx_power() {
4295 // @@protoc_insertion_point(field_mutable_list:dmi.TransceiverComponentsAttributes.tx_power)
4296 return &tx_power_;
4297}
4298
4299// .dmi.ValueScale tx_power_scale = 9;
4300inline void TransceiverComponentsAttributes::clear_tx_power_scale() {
4301 tx_power_scale_ = 0;
4302}
4303inline ::dmi::ValueScale TransceiverComponentsAttributes::tx_power_scale() const {
4304 // @@protoc_insertion_point(field_get:dmi.TransceiverComponentsAttributes.tx_power_scale)
4305 return static_cast< ::dmi::ValueScale >(tx_power_scale_);
4306}
4307inline void TransceiverComponentsAttributes::set_tx_power_scale(::dmi::ValueScale value) {
4308
4309 tx_power_scale_ = value;
4310 // @@protoc_insertion_point(field_set:dmi.TransceiverComponentsAttributes.tx_power_scale)
4311}
4312
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05304313// -------------------------------------------------------------------
4314
4315// Component
4316
4317// string name = 1;
4318inline void Component::clear_name() {
4319 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4320}
4321inline const ::std::string& Component::name() const {
4322 // @@protoc_insertion_point(field_get:dmi.Component.name)
4323 return name_.GetNoArena();
4324}
4325inline void Component::set_name(const ::std::string& value) {
4326
4327 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4328 // @@protoc_insertion_point(field_set:dmi.Component.name)
4329}
4330#if LANG_CXX11
4331inline void Component::set_name(::std::string&& value) {
4332
4333 name_.SetNoArena(
4334 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4335 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.name)
4336}
4337#endif
4338inline void Component::set_name(const char* value) {
4339 GOOGLE_DCHECK(value != nullptr);
4340
4341 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4342 // @@protoc_insertion_point(field_set_char:dmi.Component.name)
4343}
4344inline void Component::set_name(const char* value, size_t size) {
4345
4346 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4347 ::std::string(reinterpret_cast<const char*>(value), size));
4348 // @@protoc_insertion_point(field_set_pointer:dmi.Component.name)
4349}
4350inline ::std::string* Component::mutable_name() {
4351
4352 // @@protoc_insertion_point(field_mutable:dmi.Component.name)
4353 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4354}
4355inline ::std::string* Component::release_name() {
4356 // @@protoc_insertion_point(field_release:dmi.Component.name)
4357
4358 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4359}
4360inline void Component::set_allocated_name(::std::string* name) {
4361 if (name != nullptr) {
4362
4363 } else {
4364
4365 }
4366 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
4367 // @@protoc_insertion_point(field_set_allocated:dmi.Component.name)
4368}
4369
4370// .dmi.ComponentType class = 2;
4371inline void Component::clear_class_() {
4372 class__ = 0;
4373}
4374inline ::dmi::ComponentType Component::class_() const {
4375 // @@protoc_insertion_point(field_get:dmi.Component.class)
4376 return static_cast< ::dmi::ComponentType >(class__);
4377}
4378inline void Component::set_class_(::dmi::ComponentType value) {
4379
4380 class__ = value;
4381 // @@protoc_insertion_point(field_set:dmi.Component.class)
4382}
4383
4384// string description = 3;
4385inline void Component::clear_description() {
4386 description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4387}
4388inline const ::std::string& Component::description() const {
4389 // @@protoc_insertion_point(field_get:dmi.Component.description)
4390 return description_.GetNoArena();
4391}
4392inline void Component::set_description(const ::std::string& value) {
4393
4394 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4395 // @@protoc_insertion_point(field_set:dmi.Component.description)
4396}
4397#if LANG_CXX11
4398inline void Component::set_description(::std::string&& value) {
4399
4400 description_.SetNoArena(
4401 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4402 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.description)
4403}
4404#endif
4405inline void Component::set_description(const char* value) {
4406 GOOGLE_DCHECK(value != nullptr);
4407
4408 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4409 // @@protoc_insertion_point(field_set_char:dmi.Component.description)
4410}
4411inline void Component::set_description(const char* value, size_t size) {
4412
4413 description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4414 ::std::string(reinterpret_cast<const char*>(value), size));
4415 // @@protoc_insertion_point(field_set_pointer:dmi.Component.description)
4416}
4417inline ::std::string* Component::mutable_description() {
4418
4419 // @@protoc_insertion_point(field_mutable:dmi.Component.description)
4420 return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4421}
4422inline ::std::string* Component::release_description() {
4423 // @@protoc_insertion_point(field_release:dmi.Component.description)
4424
4425 return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4426}
4427inline void Component::set_allocated_description(::std::string* description) {
4428 if (description != nullptr) {
4429
4430 } else {
4431
4432 }
4433 description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description);
4434 // @@protoc_insertion_point(field_set_allocated:dmi.Component.description)
4435}
4436
4437// string parent = 4;
4438inline void Component::clear_parent() {
4439 parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4440}
4441inline const ::std::string& Component::parent() const {
4442 // @@protoc_insertion_point(field_get:dmi.Component.parent)
4443 return parent_.GetNoArena();
4444}
4445inline void Component::set_parent(const ::std::string& value) {
4446
4447 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4448 // @@protoc_insertion_point(field_set:dmi.Component.parent)
4449}
4450#if LANG_CXX11
4451inline void Component::set_parent(::std::string&& value) {
4452
4453 parent_.SetNoArena(
4454 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4455 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.parent)
4456}
4457#endif
4458inline void Component::set_parent(const char* value) {
4459 GOOGLE_DCHECK(value != nullptr);
4460
4461 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4462 // @@protoc_insertion_point(field_set_char:dmi.Component.parent)
4463}
4464inline void Component::set_parent(const char* value, size_t size) {
4465
4466 parent_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4467 ::std::string(reinterpret_cast<const char*>(value), size));
4468 // @@protoc_insertion_point(field_set_pointer:dmi.Component.parent)
4469}
4470inline ::std::string* Component::mutable_parent() {
4471
4472 // @@protoc_insertion_point(field_mutable:dmi.Component.parent)
4473 return parent_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4474}
4475inline ::std::string* Component::release_parent() {
4476 // @@protoc_insertion_point(field_release:dmi.Component.parent)
4477
4478 return parent_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4479}
4480inline void Component::set_allocated_parent(::std::string* parent) {
4481 if (parent != nullptr) {
4482
4483 } else {
4484
4485 }
4486 parent_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent);
4487 // @@protoc_insertion_point(field_set_allocated:dmi.Component.parent)
4488}
4489
4490// int32 parent_rel_pos = 5;
4491inline void Component::clear_parent_rel_pos() {
4492 parent_rel_pos_ = 0;
4493}
4494inline ::google::protobuf::int32 Component::parent_rel_pos() const {
4495 // @@protoc_insertion_point(field_get:dmi.Component.parent_rel_pos)
4496 return parent_rel_pos_;
4497}
4498inline void Component::set_parent_rel_pos(::google::protobuf::int32 value) {
4499
4500 parent_rel_pos_ = value;
4501 // @@protoc_insertion_point(field_set:dmi.Component.parent_rel_pos)
4502}
4503
4504// repeated .dmi.Component children = 6;
4505inline int Component::children_size() const {
4506 return children_.size();
4507}
4508inline void Component::clear_children() {
4509 children_.Clear();
4510}
4511inline ::dmi::Component* Component::mutable_children(int index) {
4512 // @@protoc_insertion_point(field_mutable:dmi.Component.children)
4513 return children_.Mutable(index);
4514}
4515inline ::google::protobuf::RepeatedPtrField< ::dmi::Component >*
4516Component::mutable_children() {
4517 // @@protoc_insertion_point(field_mutable_list:dmi.Component.children)
4518 return &children_;
4519}
4520inline const ::dmi::Component& Component::children(int index) const {
4521 // @@protoc_insertion_point(field_get:dmi.Component.children)
4522 return children_.Get(index);
4523}
4524inline ::dmi::Component* Component::add_children() {
4525 // @@protoc_insertion_point(field_add:dmi.Component.children)
4526 return children_.Add();
4527}
4528inline const ::google::protobuf::RepeatedPtrField< ::dmi::Component >&
4529Component::children() const {
4530 // @@protoc_insertion_point(field_list:dmi.Component.children)
4531 return children_;
4532}
4533
4534// string hardware_rev = 7;
4535inline void Component::clear_hardware_rev() {
4536 hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4537}
4538inline const ::std::string& Component::hardware_rev() const {
4539 // @@protoc_insertion_point(field_get:dmi.Component.hardware_rev)
4540 return hardware_rev_.GetNoArena();
4541}
4542inline void Component::set_hardware_rev(const ::std::string& value) {
4543
4544 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4545 // @@protoc_insertion_point(field_set:dmi.Component.hardware_rev)
4546}
4547#if LANG_CXX11
4548inline void Component::set_hardware_rev(::std::string&& value) {
4549
4550 hardware_rev_.SetNoArena(
4551 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4552 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.hardware_rev)
4553}
4554#endif
4555inline void Component::set_hardware_rev(const char* value) {
4556 GOOGLE_DCHECK(value != nullptr);
4557
4558 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4559 // @@protoc_insertion_point(field_set_char:dmi.Component.hardware_rev)
4560}
4561inline void Component::set_hardware_rev(const char* value, size_t size) {
4562
4563 hardware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4564 ::std::string(reinterpret_cast<const char*>(value), size));
4565 // @@protoc_insertion_point(field_set_pointer:dmi.Component.hardware_rev)
4566}
4567inline ::std::string* Component::mutable_hardware_rev() {
4568
4569 // @@protoc_insertion_point(field_mutable:dmi.Component.hardware_rev)
4570 return hardware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4571}
4572inline ::std::string* Component::release_hardware_rev() {
4573 // @@protoc_insertion_point(field_release:dmi.Component.hardware_rev)
4574
4575 return hardware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4576}
4577inline void Component::set_allocated_hardware_rev(::std::string* hardware_rev) {
4578 if (hardware_rev != nullptr) {
4579
4580 } else {
4581
4582 }
4583 hardware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hardware_rev);
4584 // @@protoc_insertion_point(field_set_allocated:dmi.Component.hardware_rev)
4585}
4586
4587// string firmware_rev = 8;
4588inline void Component::clear_firmware_rev() {
4589 firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4590}
4591inline const ::std::string& Component::firmware_rev() const {
4592 // @@protoc_insertion_point(field_get:dmi.Component.firmware_rev)
4593 return firmware_rev_.GetNoArena();
4594}
4595inline void Component::set_firmware_rev(const ::std::string& value) {
4596
4597 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4598 // @@protoc_insertion_point(field_set:dmi.Component.firmware_rev)
4599}
4600#if LANG_CXX11
4601inline void Component::set_firmware_rev(::std::string&& value) {
4602
4603 firmware_rev_.SetNoArena(
4604 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4605 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.firmware_rev)
4606}
4607#endif
4608inline void Component::set_firmware_rev(const char* value) {
4609 GOOGLE_DCHECK(value != nullptr);
4610
4611 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4612 // @@protoc_insertion_point(field_set_char:dmi.Component.firmware_rev)
4613}
4614inline void Component::set_firmware_rev(const char* value, size_t size) {
4615
4616 firmware_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4617 ::std::string(reinterpret_cast<const char*>(value), size));
4618 // @@protoc_insertion_point(field_set_pointer:dmi.Component.firmware_rev)
4619}
4620inline ::std::string* Component::mutable_firmware_rev() {
4621
4622 // @@protoc_insertion_point(field_mutable:dmi.Component.firmware_rev)
4623 return firmware_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4624}
4625inline ::std::string* Component::release_firmware_rev() {
4626 // @@protoc_insertion_point(field_release:dmi.Component.firmware_rev)
4627
4628 return firmware_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4629}
4630inline void Component::set_allocated_firmware_rev(::std::string* firmware_rev) {
4631 if (firmware_rev != nullptr) {
4632
4633 } else {
4634
4635 }
4636 firmware_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), firmware_rev);
4637 // @@protoc_insertion_point(field_set_allocated:dmi.Component.firmware_rev)
4638}
4639
4640// string software_rev = 9;
4641inline void Component::clear_software_rev() {
4642 software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4643}
4644inline const ::std::string& Component::software_rev() const {
4645 // @@protoc_insertion_point(field_get:dmi.Component.software_rev)
4646 return software_rev_.GetNoArena();
4647}
4648inline void Component::set_software_rev(const ::std::string& value) {
4649
4650 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4651 // @@protoc_insertion_point(field_set:dmi.Component.software_rev)
4652}
4653#if LANG_CXX11
4654inline void Component::set_software_rev(::std::string&& value) {
4655
4656 software_rev_.SetNoArena(
4657 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4658 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.software_rev)
4659}
4660#endif
4661inline void Component::set_software_rev(const char* value) {
4662 GOOGLE_DCHECK(value != nullptr);
4663
4664 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4665 // @@protoc_insertion_point(field_set_char:dmi.Component.software_rev)
4666}
4667inline void Component::set_software_rev(const char* value, size_t size) {
4668
4669 software_rev_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4670 ::std::string(reinterpret_cast<const char*>(value), size));
4671 // @@protoc_insertion_point(field_set_pointer:dmi.Component.software_rev)
4672}
4673inline ::std::string* Component::mutable_software_rev() {
4674
4675 // @@protoc_insertion_point(field_mutable:dmi.Component.software_rev)
4676 return software_rev_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4677}
4678inline ::std::string* Component::release_software_rev() {
4679 // @@protoc_insertion_point(field_release:dmi.Component.software_rev)
4680
4681 return software_rev_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4682}
4683inline void Component::set_allocated_software_rev(::std::string* software_rev) {
4684 if (software_rev != nullptr) {
4685
4686 } else {
4687
4688 }
4689 software_rev_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), software_rev);
4690 // @@protoc_insertion_point(field_set_allocated:dmi.Component.software_rev)
4691}
4692
4693// string serial_num = 10;
4694inline void Component::clear_serial_num() {
4695 serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4696}
4697inline const ::std::string& Component::serial_num() const {
4698 // @@protoc_insertion_point(field_get:dmi.Component.serial_num)
4699 return serial_num_.GetNoArena();
4700}
4701inline void Component::set_serial_num(const ::std::string& value) {
4702
4703 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4704 // @@protoc_insertion_point(field_set:dmi.Component.serial_num)
4705}
4706#if LANG_CXX11
4707inline void Component::set_serial_num(::std::string&& value) {
4708
4709 serial_num_.SetNoArena(
4710 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4711 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.serial_num)
4712}
4713#endif
4714inline void Component::set_serial_num(const char* value) {
4715 GOOGLE_DCHECK(value != nullptr);
4716
4717 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4718 // @@protoc_insertion_point(field_set_char:dmi.Component.serial_num)
4719}
4720inline void Component::set_serial_num(const char* value, size_t size) {
4721
4722 serial_num_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4723 ::std::string(reinterpret_cast<const char*>(value), size));
4724 // @@protoc_insertion_point(field_set_pointer:dmi.Component.serial_num)
4725}
4726inline ::std::string* Component::mutable_serial_num() {
4727
4728 // @@protoc_insertion_point(field_mutable:dmi.Component.serial_num)
4729 return serial_num_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4730}
4731inline ::std::string* Component::release_serial_num() {
4732 // @@protoc_insertion_point(field_release:dmi.Component.serial_num)
4733
4734 return serial_num_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4735}
4736inline void Component::set_allocated_serial_num(::std::string* serial_num) {
4737 if (serial_num != nullptr) {
4738
4739 } else {
4740
4741 }
4742 serial_num_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serial_num);
4743 // @@protoc_insertion_point(field_set_allocated:dmi.Component.serial_num)
4744}
4745
4746// string mfg_name = 11;
4747inline void Component::clear_mfg_name() {
4748 mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4749}
4750inline const ::std::string& Component::mfg_name() const {
4751 // @@protoc_insertion_point(field_get:dmi.Component.mfg_name)
4752 return mfg_name_.GetNoArena();
4753}
4754inline void Component::set_mfg_name(const ::std::string& value) {
4755
4756 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4757 // @@protoc_insertion_point(field_set:dmi.Component.mfg_name)
4758}
4759#if LANG_CXX11
4760inline void Component::set_mfg_name(::std::string&& value) {
4761
4762 mfg_name_.SetNoArena(
4763 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4764 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.mfg_name)
4765}
4766#endif
4767inline void Component::set_mfg_name(const char* value) {
4768 GOOGLE_DCHECK(value != nullptr);
4769
4770 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4771 // @@protoc_insertion_point(field_set_char:dmi.Component.mfg_name)
4772}
4773inline void Component::set_mfg_name(const char* value, size_t size) {
4774
4775 mfg_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4776 ::std::string(reinterpret_cast<const char*>(value), size));
4777 // @@protoc_insertion_point(field_set_pointer:dmi.Component.mfg_name)
4778}
4779inline ::std::string* Component::mutable_mfg_name() {
4780
4781 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_name)
4782 return mfg_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4783}
4784inline ::std::string* Component::release_mfg_name() {
4785 // @@protoc_insertion_point(field_release:dmi.Component.mfg_name)
4786
4787 return mfg_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4788}
4789inline void Component::set_allocated_mfg_name(::std::string* mfg_name) {
4790 if (mfg_name != nullptr) {
4791
4792 } else {
4793
4794 }
4795 mfg_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mfg_name);
4796 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_name)
4797}
4798
4799// string model_name = 12;
4800inline void Component::clear_model_name() {
4801 model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4802}
4803inline const ::std::string& Component::model_name() const {
4804 // @@protoc_insertion_point(field_get:dmi.Component.model_name)
4805 return model_name_.GetNoArena();
4806}
4807inline void Component::set_model_name(const ::std::string& value) {
4808
4809 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4810 // @@protoc_insertion_point(field_set:dmi.Component.model_name)
4811}
4812#if LANG_CXX11
4813inline void Component::set_model_name(::std::string&& value) {
4814
4815 model_name_.SetNoArena(
4816 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4817 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.model_name)
4818}
4819#endif
4820inline void Component::set_model_name(const char* value) {
4821 GOOGLE_DCHECK(value != nullptr);
4822
4823 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4824 // @@protoc_insertion_point(field_set_char:dmi.Component.model_name)
4825}
4826inline void Component::set_model_name(const char* value, size_t size) {
4827
4828 model_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4829 ::std::string(reinterpret_cast<const char*>(value), size));
4830 // @@protoc_insertion_point(field_set_pointer:dmi.Component.model_name)
4831}
4832inline ::std::string* Component::mutable_model_name() {
4833
4834 // @@protoc_insertion_point(field_mutable:dmi.Component.model_name)
4835 return model_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4836}
4837inline ::std::string* Component::release_model_name() {
4838 // @@protoc_insertion_point(field_release:dmi.Component.model_name)
4839
4840 return model_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4841}
4842inline void Component::set_allocated_model_name(::std::string* model_name) {
4843 if (model_name != nullptr) {
4844
4845 } else {
4846
4847 }
4848 model_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), model_name);
4849 // @@protoc_insertion_point(field_set_allocated:dmi.Component.model_name)
4850}
4851
4852// string alias = 13;
4853inline void Component::clear_alias() {
4854 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4855}
4856inline const ::std::string& Component::alias() const {
4857 // @@protoc_insertion_point(field_get:dmi.Component.alias)
4858 return alias_.GetNoArena();
4859}
4860inline void Component::set_alias(const ::std::string& value) {
4861
4862 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4863 // @@protoc_insertion_point(field_set:dmi.Component.alias)
4864}
4865#if LANG_CXX11
4866inline void Component::set_alias(::std::string&& value) {
4867
4868 alias_.SetNoArena(
4869 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4870 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.alias)
4871}
4872#endif
4873inline void Component::set_alias(const char* value) {
4874 GOOGLE_DCHECK(value != nullptr);
4875
4876 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4877 // @@protoc_insertion_point(field_set_char:dmi.Component.alias)
4878}
4879inline void Component::set_alias(const char* value, size_t size) {
4880
4881 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4882 ::std::string(reinterpret_cast<const char*>(value), size));
4883 // @@protoc_insertion_point(field_set_pointer:dmi.Component.alias)
4884}
4885inline ::std::string* Component::mutable_alias() {
4886
4887 // @@protoc_insertion_point(field_mutable:dmi.Component.alias)
4888 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4889}
4890inline ::std::string* Component::release_alias() {
4891 // @@protoc_insertion_point(field_release:dmi.Component.alias)
4892
4893 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4894}
4895inline void Component::set_allocated_alias(::std::string* alias) {
4896 if (alias != nullptr) {
4897
4898 } else {
4899
4900 }
4901 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
4902 // @@protoc_insertion_point(field_set_allocated:dmi.Component.alias)
4903}
4904
4905// string asset_id = 14;
4906inline void Component::clear_asset_id() {
4907 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4908}
4909inline const ::std::string& Component::asset_id() const {
4910 // @@protoc_insertion_point(field_get:dmi.Component.asset_id)
4911 return asset_id_.GetNoArena();
4912}
4913inline void Component::set_asset_id(const ::std::string& value) {
4914
4915 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
4916 // @@protoc_insertion_point(field_set:dmi.Component.asset_id)
4917}
4918#if LANG_CXX11
4919inline void Component::set_asset_id(::std::string&& value) {
4920
4921 asset_id_.SetNoArena(
4922 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
4923 // @@protoc_insertion_point(field_set_rvalue:dmi.Component.asset_id)
4924}
4925#endif
4926inline void Component::set_asset_id(const char* value) {
4927 GOOGLE_DCHECK(value != nullptr);
4928
4929 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
4930 // @@protoc_insertion_point(field_set_char:dmi.Component.asset_id)
4931}
4932inline void Component::set_asset_id(const char* value, size_t size) {
4933
4934 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
4935 ::std::string(reinterpret_cast<const char*>(value), size));
4936 // @@protoc_insertion_point(field_set_pointer:dmi.Component.asset_id)
4937}
4938inline ::std::string* Component::mutable_asset_id() {
4939
4940 // @@protoc_insertion_point(field_mutable:dmi.Component.asset_id)
4941 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4942}
4943inline ::std::string* Component::release_asset_id() {
4944 // @@protoc_insertion_point(field_release:dmi.Component.asset_id)
4945
4946 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4947}
4948inline void Component::set_allocated_asset_id(::std::string* asset_id) {
4949 if (asset_id != nullptr) {
4950
4951 } else {
4952
4953 }
4954 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
4955 // @@protoc_insertion_point(field_set_allocated:dmi.Component.asset_id)
4956}
4957
4958// bool is_fru = 15;
4959inline void Component::clear_is_fru() {
4960 is_fru_ = false;
4961}
4962inline bool Component::is_fru() const {
4963 // @@protoc_insertion_point(field_get:dmi.Component.is_fru)
4964 return is_fru_;
4965}
4966inline void Component::set_is_fru(bool value) {
4967
4968 is_fru_ = value;
4969 // @@protoc_insertion_point(field_set:dmi.Component.is_fru)
4970}
4971
4972// .google.protobuf.Timestamp mfg_date = 16;
4973inline bool Component::has_mfg_date() const {
4974 return this != internal_default_instance() && mfg_date_ != nullptr;
4975}
4976inline const ::google::protobuf::Timestamp& Component::mfg_date() const {
4977 const ::google::protobuf::Timestamp* p = mfg_date_;
4978 // @@protoc_insertion_point(field_get:dmi.Component.mfg_date)
4979 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
4980 &::google::protobuf::_Timestamp_default_instance_);
4981}
4982inline ::google::protobuf::Timestamp* Component::release_mfg_date() {
4983 // @@protoc_insertion_point(field_release:dmi.Component.mfg_date)
4984
4985 ::google::protobuf::Timestamp* temp = mfg_date_;
4986 mfg_date_ = nullptr;
4987 return temp;
4988}
4989inline ::google::protobuf::Timestamp* Component::mutable_mfg_date() {
4990
4991 if (mfg_date_ == nullptr) {
4992 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
4993 mfg_date_ = p;
4994 }
4995 // @@protoc_insertion_point(field_mutable:dmi.Component.mfg_date)
4996 return mfg_date_;
4997}
4998inline void Component::set_allocated_mfg_date(::google::protobuf::Timestamp* mfg_date) {
4999 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5000 if (message_arena == nullptr) {
5001 delete reinterpret_cast< ::google::protobuf::MessageLite*>(mfg_date_);
5002 }
5003 if (mfg_date) {
5004 ::google::protobuf::Arena* submessage_arena =
5005 reinterpret_cast<::google::protobuf::MessageLite*>(mfg_date)->GetArena();
5006 if (message_arena != submessage_arena) {
5007 mfg_date = ::google::protobuf::internal::GetOwnedMessage(
5008 message_arena, mfg_date, submessage_arena);
5009 }
5010
5011 } else {
5012
5013 }
5014 mfg_date_ = mfg_date;
5015 // @@protoc_insertion_point(field_set_allocated:dmi.Component.mfg_date)
5016}
5017
5018// .dmi.Uri uri = 17;
5019inline bool Component::has_uri() const {
5020 return this != internal_default_instance() && uri_ != nullptr;
5021}
5022inline void Component::clear_uri() {
5023 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
5024 delete uri_;
5025 }
5026 uri_ = nullptr;
5027}
5028inline const ::dmi::Uri& Component::uri() const {
5029 const ::dmi::Uri* p = uri_;
5030 // @@protoc_insertion_point(field_get:dmi.Component.uri)
5031 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
5032 &::dmi::_Uri_default_instance_);
5033}
5034inline ::dmi::Uri* Component::release_uri() {
5035 // @@protoc_insertion_point(field_release:dmi.Component.uri)
5036
5037 ::dmi::Uri* temp = uri_;
5038 uri_ = nullptr;
5039 return temp;
5040}
5041inline ::dmi::Uri* Component::mutable_uri() {
5042
5043 if (uri_ == nullptr) {
5044 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
5045 uri_ = p;
5046 }
5047 // @@protoc_insertion_point(field_mutable:dmi.Component.uri)
5048 return uri_;
5049}
5050inline void Component::set_allocated_uri(::dmi::Uri* uri) {
5051 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5052 if (message_arena == nullptr) {
5053 delete uri_;
5054 }
5055 if (uri) {
5056 ::google::protobuf::Arena* submessage_arena = nullptr;
5057 if (message_arena != submessage_arena) {
5058 uri = ::google::protobuf::internal::GetOwnedMessage(
5059 message_arena, uri, submessage_arena);
5060 }
5061
5062 } else {
5063
5064 }
5065 uri_ = uri;
5066 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uri)
5067}
5068
5069// .dmi.Uuid uuid = 18;
5070inline bool Component::has_uuid() const {
5071 return this != internal_default_instance() && uuid_ != nullptr;
5072}
5073inline void Component::clear_uuid() {
5074 if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) {
5075 delete uuid_;
5076 }
5077 uuid_ = nullptr;
5078}
5079inline const ::dmi::Uuid& Component::uuid() const {
5080 const ::dmi::Uuid* p = uuid_;
5081 // @@protoc_insertion_point(field_get:dmi.Component.uuid)
5082 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uuid*>(
5083 &::dmi::_Uuid_default_instance_);
5084}
5085inline ::dmi::Uuid* Component::release_uuid() {
5086 // @@protoc_insertion_point(field_release:dmi.Component.uuid)
5087
5088 ::dmi::Uuid* temp = uuid_;
5089 uuid_ = nullptr;
5090 return temp;
5091}
5092inline ::dmi::Uuid* Component::mutable_uuid() {
5093
5094 if (uuid_ == nullptr) {
5095 auto* p = CreateMaybeMessage<::dmi::Uuid>(GetArenaNoVirtual());
5096 uuid_ = p;
5097 }
5098 // @@protoc_insertion_point(field_mutable:dmi.Component.uuid)
5099 return uuid_;
5100}
5101inline void Component::set_allocated_uuid(::dmi::Uuid* uuid) {
5102 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5103 if (message_arena == nullptr) {
5104 delete uuid_;
5105 }
5106 if (uuid) {
5107 ::google::protobuf::Arena* submessage_arena = nullptr;
5108 if (message_arena != submessage_arena) {
5109 uuid = ::google::protobuf::internal::GetOwnedMessage(
5110 message_arena, uuid, submessage_arena);
5111 }
5112
5113 } else {
5114
5115 }
5116 uuid_ = uuid;
5117 // @@protoc_insertion_point(field_set_allocated:dmi.Component.uuid)
5118}
5119
5120// .dmi.ComponentState state = 19;
5121inline bool Component::has_state() const {
5122 return this != internal_default_instance() && state_ != nullptr;
5123}
5124inline void Component::clear_state() {
5125 if (GetArenaNoVirtual() == nullptr && state_ != nullptr) {
5126 delete state_;
5127 }
5128 state_ = nullptr;
5129}
5130inline const ::dmi::ComponentState& Component::state() const {
5131 const ::dmi::ComponentState* p = state_;
5132 // @@protoc_insertion_point(field_get:dmi.Component.state)
5133 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::ComponentState*>(
5134 &::dmi::_ComponentState_default_instance_);
5135}
5136inline ::dmi::ComponentState* Component::release_state() {
5137 // @@protoc_insertion_point(field_release:dmi.Component.state)
5138
5139 ::dmi::ComponentState* temp = state_;
5140 state_ = nullptr;
5141 return temp;
5142}
5143inline ::dmi::ComponentState* Component::mutable_state() {
5144
5145 if (state_ == nullptr) {
5146 auto* p = CreateMaybeMessage<::dmi::ComponentState>(GetArenaNoVirtual());
5147 state_ = p;
5148 }
5149 // @@protoc_insertion_point(field_mutable:dmi.Component.state)
5150 return state_;
5151}
5152inline void Component::set_allocated_state(::dmi::ComponentState* state) {
5153 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5154 if (message_arena == nullptr) {
5155 delete state_;
5156 }
5157 if (state) {
5158 ::google::protobuf::Arena* submessage_arena = nullptr;
5159 if (message_arena != submessage_arena) {
5160 state = ::google::protobuf::internal::GetOwnedMessage(
5161 message_arena, state, submessage_arena);
5162 }
5163
5164 } else {
5165
5166 }
5167 state_ = state;
5168 // @@protoc_insertion_point(field_set_allocated:dmi.Component.state)
5169}
5170
5171// repeated .dmi.ComponentSensorData sensor_data = 20;
5172inline int Component::sensor_data_size() const {
5173 return sensor_data_.size();
5174}
5175inline void Component::clear_sensor_data() {
5176 sensor_data_.Clear();
5177}
5178inline ::dmi::ComponentSensorData* Component::mutable_sensor_data(int index) {
5179 // @@protoc_insertion_point(field_mutable:dmi.Component.sensor_data)
5180 return sensor_data_.Mutable(index);
5181}
5182inline ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >*
5183Component::mutable_sensor_data() {
5184 // @@protoc_insertion_point(field_mutable_list:dmi.Component.sensor_data)
5185 return &sensor_data_;
5186}
5187inline const ::dmi::ComponentSensorData& Component::sensor_data(int index) const {
5188 // @@protoc_insertion_point(field_get:dmi.Component.sensor_data)
5189 return sensor_data_.Get(index);
5190}
5191inline ::dmi::ComponentSensorData* Component::add_sensor_data() {
5192 // @@protoc_insertion_point(field_add:dmi.Component.sensor_data)
5193 return sensor_data_.Add();
5194}
5195inline const ::google::protobuf::RepeatedPtrField< ::dmi::ComponentSensorData >&
5196Component::sensor_data() const {
5197 // @@protoc_insertion_point(field_list:dmi.Component.sensor_data)
5198 return sensor_data_;
5199}
5200
5201// .dmi.PortComponentAttributes port_attr = 50;
5202inline bool Component::has_port_attr() const {
5203 return specific_case() == kPortAttr;
5204}
5205inline void Component::set_has_port_attr() {
5206 _oneof_case_[0] = kPortAttr;
5207}
5208inline void Component::clear_port_attr() {
5209 if (has_port_attr()) {
5210 delete specific_.port_attr_;
5211 clear_has_specific();
5212 }
5213}
5214inline ::dmi::PortComponentAttributes* Component::release_port_attr() {
5215 // @@protoc_insertion_point(field_release:dmi.Component.port_attr)
5216 if (has_port_attr()) {
5217 clear_has_specific();
5218 ::dmi::PortComponentAttributes* temp = specific_.port_attr_;
5219 specific_.port_attr_ = nullptr;
5220 return temp;
5221 } else {
5222 return nullptr;
5223 }
5224}
5225inline const ::dmi::PortComponentAttributes& Component::port_attr() const {
5226 // @@protoc_insertion_point(field_get:dmi.Component.port_attr)
5227 return has_port_attr()
5228 ? *specific_.port_attr_
5229 : *reinterpret_cast< ::dmi::PortComponentAttributes*>(&::dmi::_PortComponentAttributes_default_instance_);
5230}
5231inline ::dmi::PortComponentAttributes* Component::mutable_port_attr() {
5232 if (!has_port_attr()) {
5233 clear_specific();
5234 set_has_port_attr();
5235 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentAttributes >(
5236 GetArenaNoVirtual());
5237 }
5238 // @@protoc_insertion_point(field_mutable:dmi.Component.port_attr)
5239 return specific_.port_attr_;
5240}
5241
5242// .dmi.ContainerComponentAttributes container_attr = 51;
5243inline bool Component::has_container_attr() const {
5244 return specific_case() == kContainerAttr;
5245}
5246inline void Component::set_has_container_attr() {
5247 _oneof_case_[0] = kContainerAttr;
5248}
5249inline void Component::clear_container_attr() {
5250 if (has_container_attr()) {
5251 delete specific_.container_attr_;
5252 clear_has_specific();
5253 }
5254}
5255inline ::dmi::ContainerComponentAttributes* Component::release_container_attr() {
5256 // @@protoc_insertion_point(field_release:dmi.Component.container_attr)
5257 if (has_container_attr()) {
5258 clear_has_specific();
5259 ::dmi::ContainerComponentAttributes* temp = specific_.container_attr_;
5260 specific_.container_attr_ = nullptr;
5261 return temp;
5262 } else {
5263 return nullptr;
5264 }
5265}
5266inline const ::dmi::ContainerComponentAttributes& Component::container_attr() const {
5267 // @@protoc_insertion_point(field_get:dmi.Component.container_attr)
5268 return has_container_attr()
5269 ? *specific_.container_attr_
5270 : *reinterpret_cast< ::dmi::ContainerComponentAttributes*>(&::dmi::_ContainerComponentAttributes_default_instance_);
5271}
5272inline ::dmi::ContainerComponentAttributes* Component::mutable_container_attr() {
5273 if (!has_container_attr()) {
5274 clear_specific();
5275 set_has_container_attr();
5276 specific_.container_attr_ = CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(
5277 GetArenaNoVirtual());
5278 }
5279 // @@protoc_insertion_point(field_mutable:dmi.Component.container_attr)
5280 return specific_.container_attr_;
5281}
5282
5283// .dmi.PsuComponentAttributes psu_attr = 52;
5284inline bool Component::has_psu_attr() const {
5285 return specific_case() == kPsuAttr;
5286}
5287inline void Component::set_has_psu_attr() {
5288 _oneof_case_[0] = kPsuAttr;
5289}
5290inline void Component::clear_psu_attr() {
5291 if (has_psu_attr()) {
5292 delete specific_.psu_attr_;
5293 clear_has_specific();
5294 }
5295}
5296inline ::dmi::PsuComponentAttributes* Component::release_psu_attr() {
5297 // @@protoc_insertion_point(field_release:dmi.Component.psu_attr)
5298 if (has_psu_attr()) {
5299 clear_has_specific();
5300 ::dmi::PsuComponentAttributes* temp = specific_.psu_attr_;
5301 specific_.psu_attr_ = nullptr;
5302 return temp;
5303 } else {
5304 return nullptr;
5305 }
5306}
5307inline const ::dmi::PsuComponentAttributes& Component::psu_attr() const {
5308 // @@protoc_insertion_point(field_get:dmi.Component.psu_attr)
5309 return has_psu_attr()
5310 ? *specific_.psu_attr_
5311 : *reinterpret_cast< ::dmi::PsuComponentAttributes*>(&::dmi::_PsuComponentAttributes_default_instance_);
5312}
5313inline ::dmi::PsuComponentAttributes* Component::mutable_psu_attr() {
5314 if (!has_psu_attr()) {
5315 clear_specific();
5316 set_has_psu_attr();
5317 specific_.psu_attr_ = CreateMaybeMessage< ::dmi::PsuComponentAttributes >(
5318 GetArenaNoVirtual());
5319 }
5320 // @@protoc_insertion_point(field_mutable:dmi.Component.psu_attr)
5321 return specific_.psu_attr_;
5322}
5323
5324// .dmi.TransceiverComponentsAttributes transceiver_attr = 53;
5325inline bool Component::has_transceiver_attr() const {
5326 return specific_case() == kTransceiverAttr;
5327}
5328inline void Component::set_has_transceiver_attr() {
5329 _oneof_case_[0] = kTransceiverAttr;
5330}
5331inline void Component::clear_transceiver_attr() {
5332 if (has_transceiver_attr()) {
5333 delete specific_.transceiver_attr_;
5334 clear_has_specific();
5335 }
5336}
5337inline ::dmi::TransceiverComponentsAttributes* Component::release_transceiver_attr() {
5338 // @@protoc_insertion_point(field_release:dmi.Component.transceiver_attr)
5339 if (has_transceiver_attr()) {
5340 clear_has_specific();
5341 ::dmi::TransceiverComponentsAttributes* temp = specific_.transceiver_attr_;
5342 specific_.transceiver_attr_ = nullptr;
5343 return temp;
5344 } else {
5345 return nullptr;
5346 }
5347}
5348inline const ::dmi::TransceiverComponentsAttributes& Component::transceiver_attr() const {
5349 // @@protoc_insertion_point(field_get:dmi.Component.transceiver_attr)
5350 return has_transceiver_attr()
5351 ? *specific_.transceiver_attr_
5352 : *reinterpret_cast< ::dmi::TransceiverComponentsAttributes*>(&::dmi::_TransceiverComponentsAttributes_default_instance_);
5353}
5354inline ::dmi::TransceiverComponentsAttributes* Component::mutable_transceiver_attr() {
5355 if (!has_transceiver_attr()) {
5356 clear_specific();
5357 set_has_transceiver_attr();
5358 specific_.transceiver_attr_ = CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(
5359 GetArenaNoVirtual());
5360 }
5361 // @@protoc_insertion_point(field_mutable:dmi.Component.transceiver_attr)
5362 return specific_.transceiver_attr_;
5363}
5364
5365inline bool Component::has_specific() const {
5366 return specific_case() != SPECIFIC_NOT_SET;
5367}
5368inline void Component::clear_has_specific() {
5369 _oneof_case_[0] = SPECIFIC_NOT_SET;
5370}
5371inline Component::SpecificCase Component::specific_case() const {
5372 return Component::SpecificCase(_oneof_case_[0]);
5373}
5374// -------------------------------------------------------------------
5375
5376// Hardware
5377
5378// .google.protobuf.Timestamp last_change = 1;
5379inline bool Hardware::has_last_change() const {
5380 return this != internal_default_instance() && last_change_ != nullptr;
5381}
5382inline const ::google::protobuf::Timestamp& Hardware::last_change() const {
5383 const ::google::protobuf::Timestamp* p = last_change_;
5384 // @@protoc_insertion_point(field_get:dmi.Hardware.last_change)
5385 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5386 &::google::protobuf::_Timestamp_default_instance_);
5387}
5388inline ::google::protobuf::Timestamp* Hardware::release_last_change() {
5389 // @@protoc_insertion_point(field_release:dmi.Hardware.last_change)
5390
5391 ::google::protobuf::Timestamp* temp = last_change_;
5392 last_change_ = nullptr;
5393 return temp;
5394}
5395inline ::google::protobuf::Timestamp* Hardware::mutable_last_change() {
5396
5397 if (last_change_ == nullptr) {
5398 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5399 last_change_ = p;
5400 }
5401 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_change)
5402 return last_change_;
5403}
5404inline void Hardware::set_allocated_last_change(::google::protobuf::Timestamp* last_change) {
5405 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5406 if (message_arena == nullptr) {
5407 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_change_);
5408 }
5409 if (last_change) {
5410 ::google::protobuf::Arena* submessage_arena =
5411 reinterpret_cast<::google::protobuf::MessageLite*>(last_change)->GetArena();
5412 if (message_arena != submessage_arena) {
5413 last_change = ::google::protobuf::internal::GetOwnedMessage(
5414 message_arena, last_change, submessage_arena);
5415 }
5416
5417 } else {
5418
5419 }
5420 last_change_ = last_change;
5421 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_change)
5422}
5423
5424// .dmi.Component root = 2;
5425inline bool Hardware::has_root() const {
5426 return this != internal_default_instance() && root_ != nullptr;
5427}
5428inline void Hardware::clear_root() {
5429 if (GetArenaNoVirtual() == nullptr && root_ != nullptr) {
5430 delete root_;
5431 }
5432 root_ = nullptr;
5433}
5434inline const ::dmi::Component& Hardware::root() const {
5435 const ::dmi::Component* p = root_;
5436 // @@protoc_insertion_point(field_get:dmi.Hardware.root)
5437 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5438 &::dmi::_Component_default_instance_);
5439}
5440inline ::dmi::Component* Hardware::release_root() {
5441 // @@protoc_insertion_point(field_release:dmi.Hardware.root)
5442
5443 ::dmi::Component* temp = root_;
5444 root_ = nullptr;
5445 return temp;
5446}
5447inline ::dmi::Component* Hardware::mutable_root() {
5448
5449 if (root_ == nullptr) {
5450 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5451 root_ = p;
5452 }
5453 // @@protoc_insertion_point(field_mutable:dmi.Hardware.root)
5454 return root_;
5455}
5456inline void Hardware::set_allocated_root(::dmi::Component* root) {
5457 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5458 if (message_arena == nullptr) {
5459 delete root_;
5460 }
5461 if (root) {
5462 ::google::protobuf::Arena* submessage_arena = nullptr;
5463 if (message_arena != submessage_arena) {
5464 root = ::google::protobuf::internal::GetOwnedMessage(
5465 message_arena, root, submessage_arena);
5466 }
5467
5468 } else {
5469
5470 }
5471 root_ = root;
5472 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.root)
5473}
5474
5475// .google.protobuf.Timestamp last_booted = 3;
5476inline bool Hardware::has_last_booted() const {
5477 return this != internal_default_instance() && last_booted_ != nullptr;
5478}
5479inline const ::google::protobuf::Timestamp& Hardware::last_booted() const {
5480 const ::google::protobuf::Timestamp* p = last_booted_;
5481 // @@protoc_insertion_point(field_get:dmi.Hardware.last_booted)
5482 return p != nullptr ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
5483 &::google::protobuf::_Timestamp_default_instance_);
5484}
5485inline ::google::protobuf::Timestamp* Hardware::release_last_booted() {
5486 // @@protoc_insertion_point(field_release:dmi.Hardware.last_booted)
5487
5488 ::google::protobuf::Timestamp* temp = last_booted_;
5489 last_booted_ = nullptr;
5490 return temp;
5491}
5492inline ::google::protobuf::Timestamp* Hardware::mutable_last_booted() {
5493
5494 if (last_booted_ == nullptr) {
5495 auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
5496 last_booted_ = p;
5497 }
5498 // @@protoc_insertion_point(field_mutable:dmi.Hardware.last_booted)
5499 return last_booted_;
5500}
5501inline void Hardware::set_allocated_last_booted(::google::protobuf::Timestamp* last_booted) {
5502 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5503 if (message_arena == nullptr) {
5504 delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_booted_);
5505 }
5506 if (last_booted) {
5507 ::google::protobuf::Arena* submessage_arena =
5508 reinterpret_cast<::google::protobuf::MessageLite*>(last_booted)->GetArena();
5509 if (message_arena != submessage_arena) {
5510 last_booted = ::google::protobuf::internal::GetOwnedMessage(
5511 message_arena, last_booted, submessage_arena);
5512 }
5513
5514 } else {
5515
5516 }
5517 last_booted_ = last_booted;
5518 // @@protoc_insertion_point(field_set_allocated:dmi.Hardware.last_booted)
5519}
5520
5521// -------------------------------------------------------------------
5522
5523// ModifiableComponent
5524
5525// string name = 1;
5526inline void ModifiableComponent::clear_name() {
5527 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5528}
5529inline const ::std::string& ModifiableComponent::name() const {
5530 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.name)
5531 return name_.GetNoArena();
5532}
5533inline void ModifiableComponent::set_name(const ::std::string& value) {
5534
5535 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5536 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.name)
5537}
5538#if LANG_CXX11
5539inline void ModifiableComponent::set_name(::std::string&& value) {
5540
5541 name_.SetNoArena(
5542 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5543 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.name)
5544}
5545#endif
5546inline void ModifiableComponent::set_name(const char* value) {
5547 GOOGLE_DCHECK(value != nullptr);
5548
5549 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5550 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.name)
5551}
5552inline void ModifiableComponent::set_name(const char* value, size_t size) {
5553
5554 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5555 ::std::string(reinterpret_cast<const char*>(value), size));
5556 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.name)
5557}
5558inline ::std::string* ModifiableComponent::mutable_name() {
5559
5560 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.name)
5561 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5562}
5563inline ::std::string* ModifiableComponent::release_name() {
5564 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.name)
5565
5566 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5567}
5568inline void ModifiableComponent::set_allocated_name(::std::string* name) {
5569 if (name != nullptr) {
5570
5571 } else {
5572
5573 }
5574 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
5575 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.name)
5576}
5577
5578// .dmi.ComponentType class = 2;
5579inline void ModifiableComponent::clear_class_() {
5580 class__ = 0;
5581}
5582inline ::dmi::ComponentType ModifiableComponent::class_() const {
5583 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.class)
5584 return static_cast< ::dmi::ComponentType >(class__);
5585}
5586inline void ModifiableComponent::set_class_(::dmi::ComponentType value) {
5587
5588 class__ = value;
5589 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.class)
5590}
5591
5592// .dmi.Component parent = 3;
5593inline bool ModifiableComponent::has_parent() const {
5594 return this != internal_default_instance() && parent_ != nullptr;
5595}
5596inline void ModifiableComponent::clear_parent() {
5597 if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) {
5598 delete parent_;
5599 }
5600 parent_ = nullptr;
5601}
5602inline const ::dmi::Component& ModifiableComponent::parent() const {
5603 const ::dmi::Component* p = parent_;
5604 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent)
5605 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Component*>(
5606 &::dmi::_Component_default_instance_);
5607}
5608inline ::dmi::Component* ModifiableComponent::release_parent() {
5609 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.parent)
5610
5611 ::dmi::Component* temp = parent_;
5612 parent_ = nullptr;
5613 return temp;
5614}
5615inline ::dmi::Component* ModifiableComponent::mutable_parent() {
5616
5617 if (parent_ == nullptr) {
5618 auto* p = CreateMaybeMessage<::dmi::Component>(GetArenaNoVirtual());
5619 parent_ = p;
5620 }
5621 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.parent)
5622 return parent_;
5623}
5624inline void ModifiableComponent::set_allocated_parent(::dmi::Component* parent) {
5625 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5626 if (message_arena == nullptr) {
5627 delete parent_;
5628 }
5629 if (parent) {
5630 ::google::protobuf::Arena* submessage_arena = nullptr;
5631 if (message_arena != submessage_arena) {
5632 parent = ::google::protobuf::internal::GetOwnedMessage(
5633 message_arena, parent, submessage_arena);
5634 }
5635
5636 } else {
5637
5638 }
5639 parent_ = parent;
5640 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.parent)
5641}
5642
5643// int32 parent_rel_pos = 4;
5644inline void ModifiableComponent::clear_parent_rel_pos() {
5645 parent_rel_pos_ = 0;
5646}
5647inline ::google::protobuf::int32 ModifiableComponent::parent_rel_pos() const {
5648 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.parent_rel_pos)
5649 return parent_rel_pos_;
5650}
5651inline void ModifiableComponent::set_parent_rel_pos(::google::protobuf::int32 value) {
5652
5653 parent_rel_pos_ = value;
5654 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.parent_rel_pos)
5655}
5656
5657// string alias = 5;
5658inline void ModifiableComponent::clear_alias() {
5659 alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5660}
5661inline const ::std::string& ModifiableComponent::alias() const {
5662 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.alias)
5663 return alias_.GetNoArena();
5664}
5665inline void ModifiableComponent::set_alias(const ::std::string& value) {
5666
5667 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5668 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.alias)
5669}
5670#if LANG_CXX11
5671inline void ModifiableComponent::set_alias(::std::string&& value) {
5672
5673 alias_.SetNoArena(
5674 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5675 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.alias)
5676}
5677#endif
5678inline void ModifiableComponent::set_alias(const char* value) {
5679 GOOGLE_DCHECK(value != nullptr);
5680
5681 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5682 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.alias)
5683}
5684inline void ModifiableComponent::set_alias(const char* value, size_t size) {
5685
5686 alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5687 ::std::string(reinterpret_cast<const char*>(value), size));
5688 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.alias)
5689}
5690inline ::std::string* ModifiableComponent::mutable_alias() {
5691
5692 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.alias)
5693 return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5694}
5695inline ::std::string* ModifiableComponent::release_alias() {
5696 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.alias)
5697
5698 return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5699}
5700inline void ModifiableComponent::set_allocated_alias(::std::string* alias) {
5701 if (alias != nullptr) {
5702
5703 } else {
5704
5705 }
5706 alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias);
5707 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.alias)
5708}
5709
5710// string asset_id = 6;
5711inline void ModifiableComponent::clear_asset_id() {
5712 asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5713}
5714inline const ::std::string& ModifiableComponent::asset_id() const {
5715 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.asset_id)
5716 return asset_id_.GetNoArena();
5717}
5718inline void ModifiableComponent::set_asset_id(const ::std::string& value) {
5719
5720 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
5721 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.asset_id)
5722}
5723#if LANG_CXX11
5724inline void ModifiableComponent::set_asset_id(::std::string&& value) {
5725
5726 asset_id_.SetNoArena(
5727 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
5728 // @@protoc_insertion_point(field_set_rvalue:dmi.ModifiableComponent.asset_id)
5729}
5730#endif
5731inline void ModifiableComponent::set_asset_id(const char* value) {
5732 GOOGLE_DCHECK(value != nullptr);
5733
5734 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
5735 // @@protoc_insertion_point(field_set_char:dmi.ModifiableComponent.asset_id)
5736}
5737inline void ModifiableComponent::set_asset_id(const char* value, size_t size) {
5738
5739 asset_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
5740 ::std::string(reinterpret_cast<const char*>(value), size));
5741 // @@protoc_insertion_point(field_set_pointer:dmi.ModifiableComponent.asset_id)
5742}
5743inline ::std::string* ModifiableComponent::mutable_asset_id() {
5744
5745 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.asset_id)
5746 return asset_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5747}
5748inline ::std::string* ModifiableComponent::release_asset_id() {
5749 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.asset_id)
5750
5751 return asset_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5752}
5753inline void ModifiableComponent::set_allocated_asset_id(::std::string* asset_id) {
5754 if (asset_id != nullptr) {
5755
5756 } else {
5757
5758 }
5759 asset_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), asset_id);
5760 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.asset_id)
5761}
5762
5763// .dmi.Uri uri = 7;
5764inline bool ModifiableComponent::has_uri() const {
5765 return this != internal_default_instance() && uri_ != nullptr;
5766}
5767inline void ModifiableComponent::clear_uri() {
5768 if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) {
5769 delete uri_;
5770 }
5771 uri_ = nullptr;
5772}
5773inline const ::dmi::Uri& ModifiableComponent::uri() const {
5774 const ::dmi::Uri* p = uri_;
5775 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.uri)
5776 return p != nullptr ? *p : *reinterpret_cast<const ::dmi::Uri*>(
5777 &::dmi::_Uri_default_instance_);
5778}
5779inline ::dmi::Uri* ModifiableComponent::release_uri() {
5780 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.uri)
5781
5782 ::dmi::Uri* temp = uri_;
5783 uri_ = nullptr;
5784 return temp;
5785}
5786inline ::dmi::Uri* ModifiableComponent::mutable_uri() {
5787
5788 if (uri_ == nullptr) {
5789 auto* p = CreateMaybeMessage<::dmi::Uri>(GetArenaNoVirtual());
5790 uri_ = p;
5791 }
5792 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.uri)
5793 return uri_;
5794}
5795inline void ModifiableComponent::set_allocated_uri(::dmi::Uri* uri) {
5796 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
5797 if (message_arena == nullptr) {
5798 delete uri_;
5799 }
5800 if (uri) {
5801 ::google::protobuf::Arena* submessage_arena = nullptr;
5802 if (message_arena != submessage_arena) {
5803 uri = ::google::protobuf::internal::GetOwnedMessage(
5804 message_arena, uri, submessage_arena);
5805 }
5806
5807 } else {
5808
5809 }
5810 uri_ = uri;
5811 // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.uri)
5812}
5813
5814// .dmi.ComponentAdminState admin_state = 8;
5815inline void ModifiableComponent::clear_admin_state() {
5816 admin_state_ = 0;
5817}
5818inline ::dmi::ComponentAdminState ModifiableComponent::admin_state() const {
5819 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.admin_state)
5820 return static_cast< ::dmi::ComponentAdminState >(admin_state_);
5821}
5822inline void ModifiableComponent::set_admin_state(::dmi::ComponentAdminState value) {
5823
5824 admin_state_ = value;
5825 // @@protoc_insertion_point(field_set:dmi.ModifiableComponent.admin_state)
5826}
5827
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005828// .dmi.PortComponentChangeAttributes port_attr = 50;
5829inline bool ModifiableComponent::has_port_attr() const {
5830 return specific_case() == kPortAttr;
5831}
5832inline void ModifiableComponent::set_has_port_attr() {
5833 _oneof_case_[0] = kPortAttr;
5834}
5835inline void ModifiableComponent::clear_port_attr() {
5836 if (has_port_attr()) {
5837 delete specific_.port_attr_;
5838 clear_has_specific();
5839 }
5840}
5841inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::release_port_attr() {
5842 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.port_attr)
5843 if (has_port_attr()) {
5844 clear_has_specific();
5845 ::dmi::PortComponentChangeAttributes* temp = specific_.port_attr_;
5846 specific_.port_attr_ = nullptr;
5847 return temp;
5848 } else {
5849 return nullptr;
5850 }
5851}
5852inline const ::dmi::PortComponentChangeAttributes& ModifiableComponent::port_attr() const {
5853 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.port_attr)
5854 return has_port_attr()
5855 ? *specific_.port_attr_
5856 : *reinterpret_cast< ::dmi::PortComponentChangeAttributes*>(&::dmi::_PortComponentChangeAttributes_default_instance_);
5857}
5858inline ::dmi::PortComponentChangeAttributes* ModifiableComponent::mutable_port_attr() {
5859 if (!has_port_attr()) {
5860 clear_specific();
5861 set_has_port_attr();
5862 specific_.port_attr_ = CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(
5863 GetArenaNoVirtual());
5864 }
5865 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.port_attr)
5866 return specific_.port_attr_;
5867}
5868
Girish Gowdra997432d2022-03-10 15:59:33 -08005869// .dmi.TransceiverComponentChangeAttributes trx_attr = 51;
5870inline bool ModifiableComponent::has_trx_attr() const {
5871 return specific_case() == kTrxAttr;
5872}
5873inline void ModifiableComponent::set_has_trx_attr() {
5874 _oneof_case_[0] = kTrxAttr;
5875}
5876inline void ModifiableComponent::clear_trx_attr() {
5877 if (has_trx_attr()) {
5878 delete specific_.trx_attr_;
5879 clear_has_specific();
5880 }
5881}
5882inline ::dmi::TransceiverComponentChangeAttributes* ModifiableComponent::release_trx_attr() {
5883 // @@protoc_insertion_point(field_release:dmi.ModifiableComponent.trx_attr)
5884 if (has_trx_attr()) {
5885 clear_has_specific();
5886 ::dmi::TransceiverComponentChangeAttributes* temp = specific_.trx_attr_;
5887 specific_.trx_attr_ = nullptr;
5888 return temp;
5889 } else {
5890 return nullptr;
5891 }
5892}
5893inline const ::dmi::TransceiverComponentChangeAttributes& ModifiableComponent::trx_attr() const {
5894 // @@protoc_insertion_point(field_get:dmi.ModifiableComponent.trx_attr)
5895 return has_trx_attr()
5896 ? *specific_.trx_attr_
5897 : *reinterpret_cast< ::dmi::TransceiverComponentChangeAttributes*>(&::dmi::_TransceiverComponentChangeAttributes_default_instance_);
5898}
5899inline ::dmi::TransceiverComponentChangeAttributes* ModifiableComponent::mutable_trx_attr() {
5900 if (!has_trx_attr()) {
5901 clear_specific();
5902 set_has_trx_attr();
5903 specific_.trx_attr_ = CreateMaybeMessage< ::dmi::TransceiverComponentChangeAttributes >(
5904 GetArenaNoVirtual());
5905 }
5906 // @@protoc_insertion_point(field_mutable:dmi.ModifiableComponent.trx_attr)
5907 return specific_.trx_attr_;
5908}
5909
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005910inline bool ModifiableComponent::has_specific() const {
5911 return specific_case() != SPECIFIC_NOT_SET;
5912}
5913inline void ModifiableComponent::clear_has_specific() {
5914 _oneof_case_[0] = SPECIFIC_NOT_SET;
5915}
5916inline ModifiableComponent::SpecificCase ModifiableComponent::specific_case() const {
5917 return ModifiableComponent::SpecificCase(_oneof_case_[0]);
5918}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305919#ifdef __GNUC__
5920 #pragma GCC diagnostic pop
5921#endif // __GNUC__
5922// -------------------------------------------------------------------
5923
5924// -------------------------------------------------------------------
5925
5926// -------------------------------------------------------------------
5927
5928// -------------------------------------------------------------------
5929
5930// -------------------------------------------------------------------
5931
5932// -------------------------------------------------------------------
5933
5934// -------------------------------------------------------------------
5935
5936// -------------------------------------------------------------------
5937
5938// -------------------------------------------------------------------
5939
5940// -------------------------------------------------------------------
5941
5942// -------------------------------------------------------------------
5943
amit.ghosh98c5a6c2021-08-12 16:19:46 +02005944// -------------------------------------------------------------------
5945
5946// -------------------------------------------------------------------
5947
Girish Gowdra997432d2022-03-10 15:59:33 -08005948// -------------------------------------------------------------------
5949
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305950
5951// @@protoc_insertion_point(namespace_scope)
5952
5953} // namespace dmi
5954
5955namespace google {
5956namespace protobuf {
5957
5958template <> struct is_proto_enum< ::dmi::PortComponentAttributes_ConnectorType> : ::std::true_type {};
5959template <>
5960inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_ConnectorType>() {
5961 return ::dmi::PortComponentAttributes_ConnectorType_descriptor();
5962}
5963template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Speed> : ::std::true_type {};
5964template <>
5965inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Speed>() {
5966 return ::dmi::PortComponentAttributes_Speed_descriptor();
5967}
5968template <> struct is_proto_enum< ::dmi::PortComponentAttributes_Protocol> : ::std::true_type {};
5969template <>
5970inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PortComponentAttributes_Protocol>() {
5971 return ::dmi::PortComponentAttributes_Protocol_descriptor();
5972}
5973template <> struct is_proto_enum< ::dmi::PsuComponentAttributes_SupportedVoltage> : ::std::true_type {};
5974template <>
5975inline const EnumDescriptor* GetEnumDescriptor< ::dmi::PsuComponentAttributes_SupportedVoltage>() {
5976 return ::dmi::PsuComponentAttributes_SupportedVoltage_descriptor();
5977}
5978template <> struct is_proto_enum< ::dmi::TransceiverComponentsAttributes_FormFactor> : ::std::true_type {};
5979template <>
5980inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverComponentsAttributes_FormFactor>() {
5981 return ::dmi::TransceiverComponentsAttributes_FormFactor_descriptor();
5982}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05305983template <> struct is_proto_enum< ::dmi::ComponentType> : ::std::true_type {};
5984template <>
5985inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentType>() {
5986 return ::dmi::ComponentType_descriptor();
5987}
5988template <> struct is_proto_enum< ::dmi::ComponentAdminState> : ::std::true_type {};
5989template <>
5990inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAdminState>() {
5991 return ::dmi::ComponentAdminState_descriptor();
5992}
5993template <> struct is_proto_enum< ::dmi::ComponentOperState> : ::std::true_type {};
5994template <>
5995inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentOperState>() {
5996 return ::dmi::ComponentOperState_descriptor();
5997}
5998template <> struct is_proto_enum< ::dmi::ComponentUsageState> : ::std::true_type {};
5999template <>
6000inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentUsageState>() {
6001 return ::dmi::ComponentUsageState_descriptor();
6002}
6003template <> struct is_proto_enum< ::dmi::ComponentAlarmState> : ::std::true_type {};
6004template <>
6005inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentAlarmState>() {
6006 return ::dmi::ComponentAlarmState_descriptor();
6007}
6008template <> struct is_proto_enum< ::dmi::ComponentStandbyState> : ::std::true_type {};
6009template <>
6010inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ComponentStandbyState>() {
6011 return ::dmi::ComponentStandbyState_descriptor();
6012}
6013template <> struct is_proto_enum< ::dmi::DataValueType> : ::std::true_type {};
6014template <>
6015inline const EnumDescriptor* GetEnumDescriptor< ::dmi::DataValueType>() {
6016 return ::dmi::DataValueType_descriptor();
6017}
6018template <> struct is_proto_enum< ::dmi::ValueScale> : ::std::true_type {};
6019template <>
6020inline const EnumDescriptor* GetEnumDescriptor< ::dmi::ValueScale>() {
6021 return ::dmi::ValueScale_descriptor();
6022}
6023template <> struct is_proto_enum< ::dmi::SensorStatus> : ::std::true_type {};
6024template <>
6025inline const EnumDescriptor* GetEnumDescriptor< ::dmi::SensorStatus>() {
6026 return ::dmi::SensorStatus_descriptor();
6027}
Girish Gowdra997432d2022-03-10 15:59:33 -08006028template <> struct is_proto_enum< ::dmi::TransceiverType> : ::std::true_type {};
6029template <>
6030inline const EnumDescriptor* GetEnumDescriptor< ::dmi::TransceiverType>() {
6031 return ::dmi::TransceiverType_descriptor();
6032}
Shivanagouda Malaginahalli335fe4d2021-03-31 16:52:28 +05306033
6034} // namespace protobuf
6035} // namespace google
6036
6037// @@protoc_insertion_point(global_scope)
6038
6039#include <google/protobuf/port_undef.inc>
6040#endif // PROTOBUF_INCLUDED_dmi_2fhw_2eproto