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