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