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