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 | #include "dmi/hw.pb.h" |
| 5 | |
| 6 | #include <algorithm> |
| 7 | |
| 8 | #include <google/protobuf/stubs/common.h> |
| 9 | #include <google/protobuf/io/coded_stream.h> |
| 10 | #include <google/protobuf/extension_set.h> |
| 11 | #include <google/protobuf/wire_format_lite_inl.h> |
| 12 | #include <google/protobuf/descriptor.h> |
| 13 | #include <google/protobuf/generated_message_reflection.h> |
| 14 | #include <google/protobuf/reflection_ops.h> |
| 15 | #include <google/protobuf/wire_format.h> |
| 16 | // @@protoc_insertion_point(includes) |
| 17 | #include <google/protobuf/port_def.inc> |
| 18 | |
| 19 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PonIdConfig_dmi_2fhw_2eproto; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 22 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 23 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto; |
| 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto; |
| 25 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto; |
| 26 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto; |
| 27 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 28 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PortComponentAttributes_dmi_2fhw_2eproto; |
| 29 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 30 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto; |
| 31 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; |
| 32 | namespace dmi { |
| 33 | class UuidDefaultTypeInternal { |
| 34 | public: |
| 35 | ::google::protobuf::internal::ExplicitlyConstructed<Uuid> _instance; |
| 36 | } _Uuid_default_instance_; |
| 37 | class HardwareIDDefaultTypeInternal { |
| 38 | public: |
| 39 | ::google::protobuf::internal::ExplicitlyConstructed<HardwareID> _instance; |
| 40 | } _HardwareID_default_instance_; |
| 41 | class UriDefaultTypeInternal { |
| 42 | public: |
| 43 | ::google::protobuf::internal::ExplicitlyConstructed<Uri> _instance; |
| 44 | } _Uri_default_instance_; |
| 45 | class ComponentStateDefaultTypeInternal { |
| 46 | public: |
| 47 | ::google::protobuf::internal::ExplicitlyConstructed<ComponentState> _instance; |
| 48 | } _ComponentState_default_instance_; |
| 49 | class ComponentSensorDataDefaultTypeInternal { |
| 50 | public: |
| 51 | ::google::protobuf::internal::ExplicitlyConstructed<ComponentSensorData> _instance; |
| 52 | } _ComponentSensorData_default_instance_; |
| 53 | class PortComponentAttributesDefaultTypeInternal { |
| 54 | public: |
| 55 | ::google::protobuf::internal::ExplicitlyConstructed<PortComponentAttributes> _instance; |
| 56 | } _PortComponentAttributes_default_instance_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 57 | class PortComponentChangeAttributesDefaultTypeInternal { |
| 58 | public: |
| 59 | ::google::protobuf::internal::ExplicitlyConstructed<PortComponentChangeAttributes> _instance; |
| 60 | } _PortComponentChangeAttributes_default_instance_; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 61 | class TransceiverComponentChangeAttributesDefaultTypeInternal { |
| 62 | public: |
| 63 | ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentChangeAttributes> _instance; |
| 64 | } _TransceiverComponentChangeAttributes_default_instance_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 65 | class PonIdConfigDefaultTypeInternal { |
| 66 | public: |
| 67 | ::google::protobuf::internal::ExplicitlyConstructed<PonIdConfig> _instance; |
| 68 | } _PonIdConfig_default_instance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 69 | class ContainerComponentAttributesDefaultTypeInternal { |
| 70 | public: |
| 71 | ::google::protobuf::internal::ExplicitlyConstructed<ContainerComponentAttributes> _instance; |
| 72 | } _ContainerComponentAttributes_default_instance_; |
| 73 | class PsuComponentAttributesDefaultTypeInternal { |
| 74 | public: |
| 75 | ::google::protobuf::internal::ExplicitlyConstructed<PsuComponentAttributes> _instance; |
| 76 | } _PsuComponentAttributes_default_instance_; |
| 77 | class TransceiverComponentsAttributesDefaultTypeInternal { |
| 78 | public: |
| 79 | ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentsAttributes> _instance; |
| 80 | } _TransceiverComponentsAttributes_default_instance_; |
| 81 | class ComponentDefaultTypeInternal { |
| 82 | public: |
| 83 | ::google::protobuf::internal::ExplicitlyConstructed<Component> _instance; |
| 84 | const ::dmi::PortComponentAttributes* port_attr_; |
| 85 | const ::dmi::ContainerComponentAttributes* container_attr_; |
| 86 | const ::dmi::PsuComponentAttributes* psu_attr_; |
| 87 | const ::dmi::TransceiverComponentsAttributes* transceiver_attr_; |
| 88 | } _Component_default_instance_; |
| 89 | class HardwareDefaultTypeInternal { |
| 90 | public: |
| 91 | ::google::protobuf::internal::ExplicitlyConstructed<Hardware> _instance; |
| 92 | } _Hardware_default_instance_; |
| 93 | class ModifiableComponentDefaultTypeInternal { |
| 94 | public: |
| 95 | ::google::protobuf::internal::ExplicitlyConstructed<ModifiableComponent> _instance; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 96 | const ::dmi::PortComponentChangeAttributes* port_attr_; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 97 | const ::dmi::TransceiverComponentChangeAttributes* trx_attr_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 98 | } _ModifiableComponent_default_instance_; |
| 99 | } // namespace dmi |
| 100 | static void InitDefaultsUuid_dmi_2fhw_2eproto() { |
| 101 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 102 | |
| 103 | { |
| 104 | void* ptr = &::dmi::_Uuid_default_instance_; |
| 105 | new (ptr) ::dmi::Uuid(); |
| 106 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 107 | } |
| 108 | ::dmi::Uuid::InitAsDefaultInstance(); |
| 109 | } |
| 110 | |
| 111 | ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto = |
| 112 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUuid_dmi_2fhw_2eproto}, {}}; |
| 113 | |
| 114 | static void InitDefaultsHardwareID_dmi_2fhw_2eproto() { |
| 115 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 116 | |
| 117 | { |
| 118 | void* ptr = &::dmi::_HardwareID_default_instance_; |
| 119 | new (ptr) ::dmi::HardwareID(); |
| 120 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 121 | } |
| 122 | ::dmi::HardwareID::InitAsDefaultInstance(); |
| 123 | } |
| 124 | |
| 125 | ::google::protobuf::internal::SCCInfo<1> scc_info_HardwareID_dmi_2fhw_2eproto = |
| 126 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHardwareID_dmi_2fhw_2eproto}, { |
| 127 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 128 | |
| 129 | static void InitDefaultsUri_dmi_2fhw_2eproto() { |
| 130 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 131 | |
| 132 | { |
| 133 | void* ptr = &::dmi::_Uri_default_instance_; |
| 134 | new (ptr) ::dmi::Uri(); |
| 135 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 136 | } |
| 137 | ::dmi::Uri::InitAsDefaultInstance(); |
| 138 | } |
| 139 | |
| 140 | ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto = |
| 141 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUri_dmi_2fhw_2eproto}, {}}; |
| 142 | |
| 143 | static void InitDefaultsComponentState_dmi_2fhw_2eproto() { |
| 144 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 145 | |
| 146 | { |
| 147 | void* ptr = &::dmi::_ComponentState_default_instance_; |
| 148 | new (ptr) ::dmi::ComponentState(); |
| 149 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 150 | } |
| 151 | ::dmi::ComponentState::InitAsDefaultInstance(); |
| 152 | } |
| 153 | |
| 154 | ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto = |
| 155 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentState_dmi_2fhw_2eproto}, { |
| 156 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; |
| 157 | |
| 158 | static void InitDefaultsComponentSensorData_dmi_2fhw_2eproto() { |
| 159 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 160 | |
| 161 | { |
| 162 | void* ptr = &::dmi::_ComponentSensorData_default_instance_; |
| 163 | new (ptr) ::dmi::ComponentSensorData(); |
| 164 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 165 | } |
| 166 | ::dmi::ComponentSensorData::InitAsDefaultInstance(); |
| 167 | } |
| 168 | |
| 169 | ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto = |
| 170 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentSensorData_dmi_2fhw_2eproto}, { |
| 171 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; |
| 172 | |
| 173 | static void InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto() { |
| 174 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 175 | |
| 176 | { |
| 177 | void* ptr = &::dmi::_PortComponentAttributes_default_instance_; |
| 178 | new (ptr) ::dmi::PortComponentAttributes(); |
| 179 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 180 | } |
| 181 | ::dmi::PortComponentAttributes::InitAsDefaultInstance(); |
| 182 | } |
| 183 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 184 | ::google::protobuf::internal::SCCInfo<1> scc_info_PortComponentAttributes_dmi_2fhw_2eproto = |
| 185 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto}, { |
| 186 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base,}}; |
| 187 | |
| 188 | static void InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto() { |
| 189 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 190 | |
| 191 | { |
| 192 | void* ptr = &::dmi::_PortComponentChangeAttributes_default_instance_; |
| 193 | new (ptr) ::dmi::PortComponentChangeAttributes(); |
| 194 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 195 | } |
| 196 | ::dmi::PortComponentChangeAttributes::InitAsDefaultInstance(); |
| 197 | } |
| 198 | |
| 199 | ::google::protobuf::internal::SCCInfo<1> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto = |
| 200 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto}, { |
| 201 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base,}}; |
| 202 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 203 | static void InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto() { |
| 204 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 205 | |
| 206 | { |
| 207 | void* ptr = &::dmi::_TransceiverComponentChangeAttributes_default_instance_; |
| 208 | new (ptr) ::dmi::TransceiverComponentChangeAttributes(); |
| 209 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 210 | } |
| 211 | ::dmi::TransceiverComponentChangeAttributes::InitAsDefaultInstance(); |
| 212 | } |
| 213 | |
| 214 | ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto = |
| 215 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto}, {}}; |
| 216 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 217 | static void InitDefaultsPonIdConfig_dmi_2fhw_2eproto() { |
| 218 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 219 | |
| 220 | { |
| 221 | void* ptr = &::dmi::_PonIdConfig_default_instance_; |
| 222 | new (ptr) ::dmi::PonIdConfig(); |
| 223 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 224 | } |
| 225 | ::dmi::PonIdConfig::InitAsDefaultInstance(); |
| 226 | } |
| 227 | |
| 228 | ::google::protobuf::internal::SCCInfo<0> scc_info_PonIdConfig_dmi_2fhw_2eproto = |
| 229 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPonIdConfig_dmi_2fhw_2eproto}, {}}; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 230 | |
| 231 | static void InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto() { |
| 232 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 233 | |
| 234 | { |
| 235 | void* ptr = &::dmi::_ContainerComponentAttributes_default_instance_; |
| 236 | new (ptr) ::dmi::ContainerComponentAttributes(); |
| 237 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 238 | } |
| 239 | ::dmi::ContainerComponentAttributes::InitAsDefaultInstance(); |
| 240 | } |
| 241 | |
| 242 | ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto = |
| 243 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto}, {}}; |
| 244 | |
| 245 | static void InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto() { |
| 246 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 247 | |
| 248 | { |
| 249 | void* ptr = &::dmi::_PsuComponentAttributes_default_instance_; |
| 250 | new (ptr) ::dmi::PsuComponentAttributes(); |
| 251 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 252 | } |
| 253 | ::dmi::PsuComponentAttributes::InitAsDefaultInstance(); |
| 254 | } |
| 255 | |
| 256 | ::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto = |
| 257 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto}, {}}; |
| 258 | |
| 259 | static void InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto() { |
| 260 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 261 | |
| 262 | { |
| 263 | void* ptr = &::dmi::_TransceiverComponentsAttributes_default_instance_; |
| 264 | new (ptr) ::dmi::TransceiverComponentsAttributes(); |
| 265 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 266 | } |
| 267 | ::dmi::TransceiverComponentsAttributes::InitAsDefaultInstance(); |
| 268 | } |
| 269 | |
| 270 | ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto = |
| 271 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto}, {}}; |
| 272 | |
| 273 | static void InitDefaultsComponent_dmi_2fhw_2eproto() { |
| 274 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 275 | |
| 276 | { |
| 277 | void* ptr = &::dmi::_Component_default_instance_; |
| 278 | new (ptr) ::dmi::Component(); |
| 279 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 280 | } |
| 281 | ::dmi::Component::InitAsDefaultInstance(); |
| 282 | } |
| 283 | |
| 284 | ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto = |
| 285 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsComponent_dmi_2fhw_2eproto}, { |
| 286 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| 287 | &scc_info_Uri_dmi_2fhw_2eproto.base, |
| 288 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 289 | &scc_info_ComponentState_dmi_2fhw_2eproto.base, |
| 290 | &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base, |
| 291 | &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base, |
| 292 | &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base, |
| 293 | &scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base, |
| 294 | &scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base,}}; |
| 295 | |
| 296 | static void InitDefaultsHardware_dmi_2fhw_2eproto() { |
| 297 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 298 | |
| 299 | { |
| 300 | void* ptr = &::dmi::_Hardware_default_instance_; |
| 301 | new (ptr) ::dmi::Hardware(); |
| 302 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 303 | } |
| 304 | ::dmi::Hardware::InitAsDefaultInstance(); |
| 305 | } |
| 306 | |
| 307 | ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto = |
| 308 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_dmi_2fhw_2eproto}, { |
| 309 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| 310 | &scc_info_Component_dmi_2fhw_2eproto.base,}}; |
| 311 | |
| 312 | static void InitDefaultsModifiableComponent_dmi_2fhw_2eproto() { |
| 313 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 314 | |
| 315 | { |
| 316 | void* ptr = &::dmi::_ModifiableComponent_default_instance_; |
| 317 | new (ptr) ::dmi::ModifiableComponent(); |
| 318 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 319 | } |
| 320 | ::dmi::ModifiableComponent::InitAsDefaultInstance(); |
| 321 | } |
| 322 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 323 | ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto = |
| 324 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsModifiableComponent_dmi_2fhw_2eproto}, { |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 325 | &scc_info_Component_dmi_2fhw_2eproto.base, |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 326 | &scc_info_Uri_dmi_2fhw_2eproto.base, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 327 | &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base, |
| 328 | &scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base,}}; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 329 | |
| 330 | void InitDefaults_dmi_2fhw_2eproto() { |
| 331 | ::google::protobuf::internal::InitSCC(&scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 332 | ::google::protobuf::internal::InitSCC(&scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 333 | ::google::protobuf::internal::InitSCC(&scc_info_Uri_dmi_2fhw_2eproto.base); |
| 334 | ::google::protobuf::internal::InitSCC(&scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 335 | ::google::protobuf::internal::InitSCC(&scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 336 | ::google::protobuf::internal::InitSCC(&scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 337 | ::google::protobuf::internal::InitSCC(&scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 338 | ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 339 | ::google::protobuf::internal::InitSCC(&scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 340 | ::google::protobuf::internal::InitSCC(&scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 341 | ::google::protobuf::internal::InitSCC(&scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base); |
| 342 | ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base); |
| 343 | ::google::protobuf::internal::InitSCC(&scc_info_Component_dmi_2fhw_2eproto.base); |
| 344 | ::google::protobuf::internal::InitSCC(&scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 345 | ::google::protobuf::internal::InitSCC(&scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 346 | } |
| 347 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 348 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_2eproto[15]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 349 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_2eproto[15]; |
| 350 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_2eproto = nullptr; |
| 351 | |
| 352 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 353 | ~0u, // no _has_bits_ |
| 354 | PROTOBUF_FIELD_OFFSET(::dmi::Uuid, _internal_metadata_), |
| 355 | ~0u, // no _extensions_ |
| 356 | ~0u, // no _oneof_case_ |
| 357 | ~0u, // no _weak_field_map_ |
| 358 | PROTOBUF_FIELD_OFFSET(::dmi::Uuid, uuid_), |
| 359 | ~0u, // no _has_bits_ |
| 360 | PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, _internal_metadata_), |
| 361 | ~0u, // no _extensions_ |
| 362 | ~0u, // no _oneof_case_ |
| 363 | ~0u, // no _weak_field_map_ |
| 364 | PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, uuid_), |
| 365 | ~0u, // no _has_bits_ |
| 366 | PROTOBUF_FIELD_OFFSET(::dmi::Uri, _internal_metadata_), |
| 367 | ~0u, // no _extensions_ |
| 368 | ~0u, // no _oneof_case_ |
| 369 | ~0u, // no _weak_field_map_ |
| 370 | PROTOBUF_FIELD_OFFSET(::dmi::Uri, uri_), |
| 371 | ~0u, // no _has_bits_ |
| 372 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, _internal_metadata_), |
| 373 | ~0u, // no _extensions_ |
| 374 | ~0u, // no _oneof_case_ |
| 375 | ~0u, // no _weak_field_map_ |
| 376 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, state_last_changed_), |
| 377 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, admin_state_), |
| 378 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, oper_state_), |
| 379 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, usage_state_), |
| 380 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, alarm_state_), |
| 381 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, standby_state_), |
| 382 | ~0u, // no _has_bits_ |
| 383 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, _internal_metadata_), |
| 384 | ~0u, // no _extensions_ |
| 385 | ~0u, // no _oneof_case_ |
| 386 | ~0u, // no _weak_field_map_ |
| 387 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_), |
| 388 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, type_), |
| 389 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, scale_), |
| 390 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, precision_), |
| 391 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, status_), |
| 392 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, units_display_), |
| 393 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, timestamp_), |
| 394 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_update_rate_), |
| 395 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, data_type_), |
| 396 | ~0u, // no _has_bits_ |
| 397 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, _internal_metadata_), |
| 398 | ~0u, // no _extensions_ |
| 399 | ~0u, // no _oneof_case_ |
| 400 | ~0u, // no _weak_field_map_ |
| 401 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, connector_type_), |
| 402 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_), |
| 403 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, protocol_), |
| 404 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, physical_label_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 405 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, mapping_label_), |
| 406 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, pon_id_config_), |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 407 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_autonegotiation_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 408 | ~0u, // no _has_bits_ |
| 409 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, _internal_metadata_), |
| 410 | ~0u, // no _extensions_ |
| 411 | ~0u, // no _oneof_case_ |
| 412 | ~0u, // no _weak_field_map_ |
| 413 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, pon_id_config_), |
| 414 | ~0u, // no _has_bits_ |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 415 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, _internal_metadata_), |
| 416 | ~0u, // no _extensions_ |
| 417 | ~0u, // no _oneof_case_ |
| 418 | ~0u, // no _weak_field_map_ |
| 419 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, trans_type_), |
| 420 | ~0u, // no _has_bits_ |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 421 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, _internal_metadata_), |
| 422 | ~0u, // no _extensions_ |
| 423 | ~0u, // no _oneof_case_ |
| 424 | ~0u, // no _weak_field_map_ |
| 425 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_), |
| 426 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_transmit_periodicity_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 427 | ~0u, // no _has_bits_ |
| 428 | PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, _internal_metadata_), |
| 429 | ~0u, // no _extensions_ |
| 430 | ~0u, // no _oneof_case_ |
| 431 | ~0u, // no _weak_field_map_ |
| 432 | PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, physical_label_), |
| 433 | ~0u, // no _has_bits_ |
| 434 | PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, _internal_metadata_), |
| 435 | ~0u, // no _extensions_ |
| 436 | ~0u, // no _oneof_case_ |
| 437 | ~0u, // no _weak_field_map_ |
| 438 | PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, supported_voltage_), |
| 439 | ~0u, // no _has_bits_ |
| 440 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, _internal_metadata_), |
| 441 | ~0u, // no _extensions_ |
| 442 | ~0u, // no _oneof_case_ |
| 443 | ~0u, // no _weak_field_map_ |
| 444 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, form_factor_), |
| 445 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, trans_type_), |
| 446 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_), |
| 447 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_scale_), |
| 448 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, rx_wavelength_), |
| 449 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_wavelength_), |
| 450 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, wavelength_scale_), |
| 451 | ~0u, // no _has_bits_ |
| 452 | PROTOBUF_FIELD_OFFSET(::dmi::Component, _internal_metadata_), |
| 453 | ~0u, // no _extensions_ |
| 454 | PROTOBUF_FIELD_OFFSET(::dmi::Component, _oneof_case_[0]), |
| 455 | ~0u, // no _weak_field_map_ |
| 456 | PROTOBUF_FIELD_OFFSET(::dmi::Component, name_), |
| 457 | PROTOBUF_FIELD_OFFSET(::dmi::Component, class__), |
| 458 | PROTOBUF_FIELD_OFFSET(::dmi::Component, description_), |
| 459 | PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_), |
| 460 | PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_rel_pos_), |
| 461 | PROTOBUF_FIELD_OFFSET(::dmi::Component, children_), |
| 462 | PROTOBUF_FIELD_OFFSET(::dmi::Component, hardware_rev_), |
| 463 | PROTOBUF_FIELD_OFFSET(::dmi::Component, firmware_rev_), |
| 464 | PROTOBUF_FIELD_OFFSET(::dmi::Component, software_rev_), |
| 465 | PROTOBUF_FIELD_OFFSET(::dmi::Component, serial_num_), |
| 466 | PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_name_), |
| 467 | PROTOBUF_FIELD_OFFSET(::dmi::Component, model_name_), |
| 468 | PROTOBUF_FIELD_OFFSET(::dmi::Component, alias_), |
| 469 | PROTOBUF_FIELD_OFFSET(::dmi::Component, asset_id_), |
| 470 | PROTOBUF_FIELD_OFFSET(::dmi::Component, is_fru_), |
| 471 | PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_date_), |
| 472 | PROTOBUF_FIELD_OFFSET(::dmi::Component, uri_), |
| 473 | PROTOBUF_FIELD_OFFSET(::dmi::Component, uuid_), |
| 474 | PROTOBUF_FIELD_OFFSET(::dmi::Component, state_), |
| 475 | PROTOBUF_FIELD_OFFSET(::dmi::Component, sensor_data_), |
| 476 | offsetof(::dmi::ComponentDefaultTypeInternal, port_attr_), |
| 477 | offsetof(::dmi::ComponentDefaultTypeInternal, container_attr_), |
| 478 | offsetof(::dmi::ComponentDefaultTypeInternal, psu_attr_), |
| 479 | offsetof(::dmi::ComponentDefaultTypeInternal, transceiver_attr_), |
| 480 | PROTOBUF_FIELD_OFFSET(::dmi::Component, specific_), |
| 481 | ~0u, // no _has_bits_ |
| 482 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, _internal_metadata_), |
| 483 | ~0u, // no _extensions_ |
| 484 | ~0u, // no _oneof_case_ |
| 485 | ~0u, // no _weak_field_map_ |
| 486 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_change_), |
| 487 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, root_), |
| 488 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_booted_), |
| 489 | ~0u, // no _has_bits_ |
| 490 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _internal_metadata_), |
| 491 | ~0u, // no _extensions_ |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 492 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _oneof_case_[0]), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 493 | ~0u, // no _weak_field_map_ |
| 494 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, name_), |
| 495 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, class__), |
| 496 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_), |
| 497 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_rel_pos_), |
| 498 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, alias_), |
| 499 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, asset_id_), |
| 500 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, uri_), |
| 501 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, admin_state_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 502 | offsetof(::dmi::ModifiableComponentDefaultTypeInternal, port_attr_), |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 503 | offsetof(::dmi::ModifiableComponentDefaultTypeInternal, trx_attr_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 504 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, specific_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 505 | }; |
| 506 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 507 | { 0, -1, sizeof(::dmi::Uuid)}, |
| 508 | { 6, -1, sizeof(::dmi::HardwareID)}, |
| 509 | { 12, -1, sizeof(::dmi::Uri)}, |
| 510 | { 18, -1, sizeof(::dmi::ComponentState)}, |
| 511 | { 29, -1, sizeof(::dmi::ComponentSensorData)}, |
| 512 | { 43, -1, sizeof(::dmi::PortComponentAttributes)}, |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 513 | { 55, -1, sizeof(::dmi::PortComponentChangeAttributes)}, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 514 | { 61, -1, sizeof(::dmi::TransceiverComponentChangeAttributes)}, |
| 515 | { 67, -1, sizeof(::dmi::PonIdConfig)}, |
| 516 | { 74, -1, sizeof(::dmi::ContainerComponentAttributes)}, |
| 517 | { 80, -1, sizeof(::dmi::PsuComponentAttributes)}, |
| 518 | { 86, -1, sizeof(::dmi::TransceiverComponentsAttributes)}, |
| 519 | { 98, -1, sizeof(::dmi::Component)}, |
| 520 | { 128, -1, sizeof(::dmi::Hardware)}, |
| 521 | { 136, -1, sizeof(::dmi::ModifiableComponent)}, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 522 | }; |
| 523 | |
| 524 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 525 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uuid_default_instance_), |
| 526 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HardwareID_default_instance_), |
| 527 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uri_default_instance_), |
| 528 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentState_default_instance_), |
| 529 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentSensorData_default_instance_), |
| 530 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentAttributes_default_instance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 531 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentChangeAttributes_default_instance_), |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 532 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentChangeAttributes_default_instance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 533 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PonIdConfig_default_instance_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 534 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ContainerComponentAttributes_default_instance_), |
| 535 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PsuComponentAttributes_default_instance_), |
| 536 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentsAttributes_default_instance_), |
| 537 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Component_default_instance_), |
| 538 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Hardware_default_instance_), |
| 539 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ModifiableComponent_default_instance_), |
| 540 | }; |
| 541 | |
| 542 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_2eproto = { |
| 543 | {}, AddDescriptors_dmi_2fhw_2eproto, "dmi/hw.proto", schemas, |
| 544 | file_default_instances, TableStruct_dmi_2fhw_2eproto::offsets, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 545 | file_level_metadata_dmi_2fhw_2eproto, 15, file_level_enum_descriptors_dmi_2fhw_2eproto, file_level_service_descriptors_dmi_2fhw_2eproto, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 546 | }; |
| 547 | |
| 548 | const char descriptor_table_protodef_dmi_2fhw_2eproto[] = |
| 549 | "\n\014dmi/hw.proto\022\003dmi\032\037google/protobuf/tim" |
| 550 | "estamp.proto\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"%\n\nHa" |
| 551 | "rdwareID\022\027\n\004uuid\030\001 \001(\0132\t.dmi.Uuid\"\022\n\003Uri" |
| 552 | "\022\013\n\003uri\030\001 \001(\t\"\265\002\n\016ComponentState\0226\n\022stat" |
| 553 | "e_last_changed\030\001 \001(\0132\032.google.protobuf.T" |
| 554 | "imestamp\022-\n\013admin_state\030\002 \001(\0162\030.dmi.Comp" |
| 555 | "onentAdminState\022+\n\noper_state\030\003 \001(\0162\027.dm" |
| 556 | "i.ComponentOperState\022-\n\013usage_state\030\004 \001(" |
| 557 | "\0162\030.dmi.ComponentUsageState\022-\n\013alarm_sta" |
| 558 | "te\030\005 \001(\0162\030.dmi.ComponentAlarmState\0221\n\rst" |
| 559 | "andby_state\030\006 \001(\0162\032.dmi.ComponentStandby" |
| 560 | "State\"\220\002\n\023ComponentSensorData\022\r\n\005value\030\001" |
| 561 | " \001(\005\022 \n\004type\030\002 \001(\0162\022.dmi.DataValueType\022\036" |
| 562 | "\n\005scale\030\003 \001(\0162\017.dmi.ValueScale\022\021\n\tprecis" |
| 563 | "ion\030\004 \001(\005\022!\n\006status\030\005 \001(\0162\021.dmi.SensorSt" |
| 564 | "atus\022\025\n\runits_display\030\006 \001(\t\022-\n\ttimestamp" |
| 565 | "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\031\n\021va" |
| 566 | "lue_update_rate\030\010 \001(\r\022\021\n\tdata_type\030\t \001(\t" |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 567 | "\"\341\005\n\027PortComponentAttributes\022B\n\016connecto" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 568 | "r_type\030\001 \001(\0162*.dmi.PortComponentAttribut" |
| 569 | "es.ConnectorType\0221\n\005speed\030\002 \001(\0162\".dmi.Po" |
| 570 | "rtComponentAttributes.Speed\0227\n\010protocol\030" |
| 571 | "\003 \001(\0162%.dmi.PortComponentAttributes.Prot" |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 572 | "ocol\022\026\n\016physical_label\030\004 \001(\t\022\025\n\rmapping_" |
| 573 | "label\030\005 \001(\t\022\'\n\rpon_id_config\030\006 \001(\0132\020.dmi" |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 574 | ".PonIdConfig\022\035\n\025speed_autonegotiation\030\007 " |
| 575 | "\001(\010\"p\n\rConnectorType\022\034\n\030CONNECTOR_TYPE_U" |
| 576 | "NDEFINED\020\000\022\010\n\004RJ45\020\001\022\014\n\010FIBER_LC\020\002\022\017\n\013FI" |
| 577 | "BER_SC_PC\020\003\022\r\n\tFIBER_MPO\020\004\022\t\n\005RS232\020\005\"\256\001" |
| 578 | "\n\005Speed\022\023\n\017SPEED_UNDEFINED\020\000\022\013\n\007DYNAMIC\020" |
| 579 | "\001\022\r\n\tGIGABIT_1\020\002\022\016\n\nGIGABIT_10\020\003\022\016\n\nGIGA" |
| 580 | "BIT_25\020\004\022\016\n\nGIGABIT_40\020\005\022\017\n\013GIGABIT_100\020" |
| 581 | "\006\022\017\n\013GIGABIT_400\020\007\022\020\n\014MEGABIT_2500\020\010\022\020\n\014" |
| 582 | "MEGABIT_1250\020\t\"|\n\010Protocol\022\026\n\022PROTOCOL_U" |
| 583 | "NDEFINED\020\000\022\014\n\010ETHERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XG" |
| 584 | "PON\020\003\022\n\n\006XGSPON\020\004\022\t\n\005GFAST\020\005\022\n\n\006SERIAL\020\006" |
| 585 | "\022\010\n\004EPON\020\007\022\010\n\004BITS\020\010\"H\n\035PortComponentCha" |
| 586 | "ngeAttributes\022\'\n\rpon_id_config\030\001 \001(\0132\020.d" |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 587 | "mi.PonIdConfig\"P\n$TransceiverComponentCh" |
| 588 | "angeAttributes\022(\n\ntrans_type\030\001 \001(\0162\024.dmi" |
| 589 | ".TransceiverType\"B\n\013PonIdConfig\022\016\n\006pon_i" |
| 590 | "d\030\001 \001(\014\022#\n\033pon_id_transmit_periodicity\030\002" |
| 591 | " \001(\r\"6\n\034ContainerComponentAttributes\022\026\n\016" |
| 592 | "physical_label\030\001 \001(\t\"\263\001\n\026PsuComponentAtt" |
| 593 | "ributes\022G\n\021supported_voltage\030\001 \001(\0162,.dmi" |
| 594 | ".PsuComponentAttributes.SupportedVoltage" |
| 595 | "\"P\n\020SupportedVoltage\022\037\n\033SUPPORTED_VOLTAG" |
| 596 | "E_UNDEFINED\020\000\022\007\n\003V48\020\001\022\010\n\004V230\020\002\022\010\n\004V115" |
| 597 | "\020\003\"\360\003\n\037TransceiverComponentsAttributes\022D" |
| 598 | "\n\013form_factor\030\001 \001(\0162/.dmi.TransceiverCom" |
| 599 | "ponentsAttributes.FormFactor\022(\n\ntrans_ty" |
| 600 | "pe\030\002 \001(\0162\024.dmi.TransceiverType\022\024\n\014max_di" |
| 601 | "stance\030\003 \001(\r\022+\n\022max_distance_scale\030\004 \001(\016" |
| 602 | "2\017.dmi.ValueScale\022\025\n\rrx_wavelength\030\005 \003(\r" |
| 603 | "\022\025\n\rtx_wavelength\030\006 \003(\r\022)\n\020wavelength_sc" |
| 604 | "ale\030\007 \001(\0162\017.dmi.ValueScale\"\300\001\n\nFormFacto" |
| 605 | "r\022\027\n\023FORM_FACTOR_UNKNOWN\020\000\022\010\n\004QSFP\020\001\022\r\n\t" |
| 606 | "QSFP_PLUS\020\002\022\n\n\006QSFP28\020\003\022\007\n\003SFP\020\004\022\014\n\010SFP_" |
| 607 | "PLUS\020\005\022\007\n\003XFP\020\006\022\010\n\004CFP4\020\007\022\010\n\004CFP2\020\010\022\010\n\004C" |
| 608 | "PAK\020\t\022\006\n\002X2\020\n\022\t\n\005OTHER\020\013\022\007\n\003CFP\020\014\022\014\n\010CFP" |
| 609 | "2_ACO\020\r\022\014\n\010CFP2_DCO\020\016\"\350\005\n\tComponent\022\014\n\004n" |
| 610 | "ame\030\001 \001(\t\022!\n\005class\030\002 \001(\0162\022.dmi.Component" |
| 611 | "Type\022\023\n\013description\030\003 \001(\t\022\016\n\006parent\030\004 \001(" |
| 612 | "\t\022\026\n\016parent_rel_pos\030\005 \001(\005\022 \n\010children\030\006 " |
| 613 | "\003(\0132\016.dmi.Component\022\024\n\014hardware_rev\030\007 \001(" |
| 614 | "\t\022\024\n\014firmware_rev\030\010 \001(\t\022\024\n\014software_rev\030" |
| 615 | "\t \001(\t\022\022\n\nserial_num\030\n \001(\t\022\020\n\010mfg_name\030\013 " |
| 616 | "\001(\t\022\022\n\nmodel_name\030\014 \001(\t\022\r\n\005alias\030\r \001(\t\022\020" |
| 617 | "\n\010asset_id\030\016 \001(\t\022\016\n\006is_fru\030\017 \001(\010\022,\n\010mfg_" |
| 618 | "date\030\020 \001(\0132\032.google.protobuf.Timestamp\022\025" |
| 619 | "\n\003uri\030\021 \001(\0132\010.dmi.Uri\022\027\n\004uuid\030\022 \001(\0132\t.dm" |
| 620 | "i.Uuid\022\"\n\005state\030\023 \001(\0132\023.dmi.ComponentSta" |
| 621 | "te\022-\n\013sensor_data\030\024 \003(\0132\030.dmi.ComponentS" |
| 622 | "ensorData\0221\n\tport_attr\0302 \001(\0132\034.dmi.PortC" |
| 623 | "omponentAttributesH\000\022;\n\016container_attr\0303" |
| 624 | " \001(\0132!.dmi.ContainerComponentAttributesH" |
| 625 | "\000\022/\n\010psu_attr\0304 \001(\0132\033.dmi.PsuComponentAt" |
| 626 | "tributesH\000\022@\n\020transceiver_attr\0305 \001(\0132$.d" |
| 627 | "mi.TransceiverComponentsAttributesH\000B\n\n\010" |
| 628 | "specific\"\212\001\n\010Hardware\022/\n\013last_change\030\001 \001" |
| 629 | "(\0132\032.google.protobuf.Timestamp\022\034\n\004root\030\002" |
| 630 | " \001(\0132\016.dmi.Component\022/\n\013last_booted\030\003 \001(" |
| 631 | "\0132\032.google.protobuf.Timestamp\"\351\002\n\023Modifi" |
| 632 | "ableComponent\022\014\n\004name\030\001 \001(\t\022!\n\005class\030\002 \001" |
| 633 | "(\0162\022.dmi.ComponentType\022\036\n\006parent\030\003 \001(\0132\016" |
| 634 | ".dmi.Component\022\026\n\016parent_rel_pos\030\004 \001(\005\022\r" |
| 635 | "\n\005alias\030\005 \001(\t\022\020\n\010asset_id\030\006 \001(\t\022\025\n\003uri\030\007" |
| 636 | " \001(\0132\010.dmi.Uri\022-\n\013admin_state\030\010 \001(\0162\030.dm" |
| 637 | "i.ComponentAdminState\0227\n\tport_attr\0302 \001(\013" |
| 638 | "2\".dmi.PortComponentChangeAttributesH\000\022=" |
| 639 | "\n\010trx_attr\0303 \001(\0132).dmi.TransceiverCompon" |
| 640 | "entChangeAttributesH\000B\n\n\010specific*\264\003\n\rCo" |
| 641 | "mponentType\022\034\n\030COMPONENT_TYPE_UNDEFINED\020" |
| 642 | "\000\022\032\n\026COMPONENT_TYPE_UNKNOWN\020\001\022\032\n\026COMPONE" |
| 643 | "NT_TYPE_CHASSIS\020\002\022\034\n\030COMPONENT_TYPE_BACK" |
| 644 | "PLANE\020\003\022\034\n\030COMPONENT_TYPE_CONTAINER\020\004\022\037\n" |
| 645 | "\033COMPONENT_TYPE_POWER_SUPPLY\020\005\022\026\n\022COMPON" |
| 646 | "ENT_TYPE_FAN\020\006\022\031\n\025COMPONENT_TYPE_SENSOR\020" |
| 647 | "\007\022\031\n\025COMPONENT_TYPE_MODULE\020\010\022\027\n\023COMPONEN" |
| 648 | "T_TYPE_PORT\020\t\022\026\n\022COMPONENT_TYPE_CPU\020\n\022\032\n" |
| 649 | "\026COMPONENT_TYPE_BATTERY\020\013\022\032\n\026COMPONENT_T" |
| 650 | "YPE_STORAGE\020\014\022\031\n\025COMPONENT_TYPE_MEMORY\020\r" |
| 651 | "\022\036\n\032COMPONENT_TYPE_TRANSCEIVER\020\016*\263\001\n\023Com" |
| 652 | "ponentAdminState\022\036\n\032COMP_ADMIN_STATE_UND" |
| 653 | "EFINED\020\000\022\034\n\030COMP_ADMIN_STATE_UNKNOWN\020\001\022\033" |
| 654 | "\n\027COMP_ADMIN_STATE_LOCKED\020\002\022\"\n\036COMP_ADMI" |
| 655 | "N_STATE_SHUTTING_DOWN\020\003\022\035\n\031COMP_ADMIN_ST" |
| 656 | "ATE_UNLOCKED\020\004*\250\001\n\022ComponentOperState\022\035\n" |
| 657 | "\031COMP_OPER_STATE_UNDEFINED\020\000\022\033\n\027COMP_OPE" |
| 658 | "R_STATE_UNKNOWN\020\001\022\034\n\030COMP_OPER_STATE_DIS" |
| 659 | "ABLED\020\002\022\033\n\027COMP_OPER_STATE_ENABLED\020\003\022\033\n\027" |
| 660 | "COMP_OPER_STATE_TESTING\020\004*\246\001\n\023ComponentU" |
| 661 | "sageState\022\036\n\032COMP_USAGE_STATE_UNDEFINED\020" |
| 662 | "\000\022\034\n\030COMP_USAGE_STATE_UNKNOWN\020\001\022\031\n\025COMP_" |
| 663 | "USAGE_STATE_IDLE\020\002\022\033\n\027COMP_USAGE_STATE_A" |
| 664 | "CTIVE\020\003\022\031\n\025COMP_USAGE_STATE_BUSY\020\004*\217\002\n\023C" |
| 665 | "omponentAlarmState\022\036\n\032COMP_ALARM_STATE_U" |
| 666 | "NDEFINED\020\000\022\034\n\030COMP_ALARM_STATE_UNKNOWN\020\001" |
| 667 | "\022!\n\035COMP_ALARM_STATE_UNDER_REPAIR\020\002\022\035\n\031C" |
| 668 | "OMP_ALARM_STATE_CRITICAL\020\003\022\032\n\026COMP_ALARM" |
| 669 | "_STATE_MAJOR\020\004\022\032\n\026COMP_ALARM_STATE_MINOR" |
| 670 | "\020\005\022\034\n\030COMP_ALARM_STATE_WARNING\020\006\022\"\n\036COMP" |
| 671 | "_ALARM_STATE_INDETERMINATE\020\007*\274\001\n\025Compone" |
| 672 | "ntStandbyState\022 \n\034COMP_STANDBY_STATE_UND" |
| 673 | "EFINED\020\000\022\036\n\032COMP_STANDBY_STATE_UNKNOWN\020\001" |
| 674 | "\022\032\n\026COMP_STANDBY_STATE_HOT\020\002\022\033\n\027COMP_STA" |
| 675 | "NDBY_STATE_COLD\020\003\022(\n$COMP_STANDBY_STATE_" |
| 676 | "PROVIDING_SERVICE\020\004*\211\003\n\rDataValueType\022\030\n" |
| 677 | "\024VALUE_TYPE_UNDEFINED\020\000\022\024\n\020VALUE_TYPE_OT" |
| 678 | "HER\020\001\022\026\n\022VALUE_TYPE_UNKNOWN\020\002\022\027\n\023VALUE_T" |
| 679 | "YPE_VOLTS_AC\020\003\022\027\n\023VALUE_TYPE_VOLTS_DC\020\004\022" |
| 680 | "\026\n\022VALUE_TYPE_AMPERES\020\005\022\024\n\020VALUE_TYPE_WA" |
| 681 | "TTS\020\006\022\024\n\020VALUE_TYPE_HERTZ\020\007\022\026\n\022VALUE_TYP" |
| 682 | "E_CELSIUS\020\010\022\031\n\025VALUE_TYPE_PERCENT_RH\020\t\022\022" |
| 683 | "\n\016VALUE_TYPE_RPM\020\n\022\022\n\016VALUE_TYPE_CMM\020\013\022\032" |
| 684 | "\n\026VALUE_TYPE_TRUTH_VALUE\020\014\022\026\n\022VALUE_TYPE" |
| 685 | "_PERCENT\020\r\022\025\n\021VALUE_TYPE_METERS\020\016\022\024\n\020VAL" |
| 686 | "UE_TYPE_BYTES\020\017*\244\003\n\nValueScale\022\031\n\025VALUE_" |
| 687 | "SCALE_UNDEFINED\020\000\022\025\n\021VALUE_SCALE_YOCTO\020\001" |
| 688 | "\022\025\n\021VALUE_SCALE_ZEPTO\020\002\022\024\n\020VALUE_SCALE_A" |
| 689 | "TTO\020\003\022\025\n\021VALUE_SCALE_FEMTO\020\004\022\024\n\020VALUE_SC" |
| 690 | "ALE_PICO\020\005\022\024\n\020VALUE_SCALE_NANO\020\006\022\025\n\021VALU" |
| 691 | "E_SCALE_MICRO\020\007\022\025\n\021VALUE_SCALE_MILLI\020\010\022\025" |
| 692 | "\n\021VALUE_SCALE_UNITS\020\t\022\024\n\020VALUE_SCALE_KIL" |
| 693 | "O\020\n\022\024\n\020VALUE_SCALE_MEGA\020\013\022\024\n\020VALUE_SCALE" |
| 694 | "_GIGA\020\014\022\024\n\020VALUE_SCALE_TERA\020\r\022\024\n\020VALUE_S" |
| 695 | "CALE_PETA\020\016\022\023\n\017VALUE_SCALE_EXA\020\017\022\025\n\021VALU" |
| 696 | "E_SCALE_ZETTA\020\020\022\025\n\021VALUE_SCALE_YOTTA\020\021*\202" |
| 697 | "\001\n\014SensorStatus\022\033\n\027SENSOR_STATUS_UNDEFIN" |
| 698 | "ED\020\000\022\024\n\020SENSOR_STATUS_OK\020\001\022\035\n\031SENSOR_STA" |
| 699 | "TUS_UNAVAILABLE\020\002\022 \n\034SENSOR_STATUS_NONOP" |
| 700 | "ERATIONAL\020\003*\215\001\n\017TransceiverType\022\022\n\016TYPE_" |
| 701 | "UNDEFINED\020\000\022\014\n\010ETHERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005X" |
| 702 | "GPON\020\003\022\n\n\006XGSPON\020\004\022\010\n\004CPON\020\005\022\013\n\007NG_PON2\020" |
| 703 | "\006\022\010\n\004EPON\020\007\022\026\n\021TYPE_NOT_DETECTED\020\377\001B;Z9g" |
| 704 | "ithub.com/opencord/device-management-int" |
| 705 | "erface/v3/go/dmib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 706 | ; |
| 707 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_2eproto = { |
| 708 | false, InitDefaults_dmi_2fhw_2eproto, |
| 709 | descriptor_table_protodef_dmi_2fhw_2eproto, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 710 | "dmi/hw.proto", &assign_descriptors_table_dmi_2fhw_2eproto, 6264, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 711 | }; |
| 712 | |
| 713 | void AddDescriptors_dmi_2fhw_2eproto() { |
| 714 | static constexpr ::google::protobuf::internal::InitFunc deps[1] = |
| 715 | { |
| 716 | ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, |
| 717 | }; |
| 718 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_2eproto, deps, 1); |
| 719 | } |
| 720 | |
| 721 | // Force running AddDescriptors() at dynamic initialization time. |
| 722 | static bool dynamic_init_dummy_dmi_2fhw_2eproto = []() { AddDescriptors_dmi_2fhw_2eproto(); return true; }(); |
| 723 | namespace dmi { |
| 724 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_ConnectorType_descriptor() { |
| 725 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 726 | return file_level_enum_descriptors_dmi_2fhw_2eproto[0]; |
| 727 | } |
| 728 | bool PortComponentAttributes_ConnectorType_IsValid(int value) { |
| 729 | switch (value) { |
| 730 | case 0: |
| 731 | case 1: |
| 732 | case 2: |
| 733 | case 3: |
| 734 | case 4: |
| 735 | case 5: |
| 736 | return true; |
| 737 | default: |
| 738 | return false; |
| 739 | } |
| 740 | } |
| 741 | |
| 742 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 743 | const PortComponentAttributes_ConnectorType PortComponentAttributes::CONNECTOR_TYPE_UNDEFINED; |
| 744 | const PortComponentAttributes_ConnectorType PortComponentAttributes::RJ45; |
| 745 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_LC; |
| 746 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_SC_PC; |
| 747 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_MPO; |
| 748 | const PortComponentAttributes_ConnectorType PortComponentAttributes::RS232; |
| 749 | const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MIN; |
| 750 | const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MAX; |
| 751 | const int PortComponentAttributes::ConnectorType_ARRAYSIZE; |
| 752 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 753 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Speed_descriptor() { |
| 754 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 755 | return file_level_enum_descriptors_dmi_2fhw_2eproto[1]; |
| 756 | } |
| 757 | bool PortComponentAttributes_Speed_IsValid(int value) { |
| 758 | switch (value) { |
| 759 | case 0: |
| 760 | case 1: |
| 761 | case 2: |
| 762 | case 3: |
| 763 | case 4: |
| 764 | case 5: |
| 765 | case 6: |
| 766 | case 7: |
| 767 | case 8: |
| 768 | case 9: |
| 769 | return true; |
| 770 | default: |
| 771 | return false; |
| 772 | } |
| 773 | } |
| 774 | |
| 775 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 776 | const PortComponentAttributes_Speed PortComponentAttributes::SPEED_UNDEFINED; |
| 777 | const PortComponentAttributes_Speed PortComponentAttributes::DYNAMIC; |
| 778 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_1; |
| 779 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_10; |
| 780 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_25; |
| 781 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_40; |
| 782 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_100; |
| 783 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_400; |
| 784 | const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_2500; |
| 785 | const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_1250; |
| 786 | const PortComponentAttributes_Speed PortComponentAttributes::Speed_MIN; |
| 787 | const PortComponentAttributes_Speed PortComponentAttributes::Speed_MAX; |
| 788 | const int PortComponentAttributes::Speed_ARRAYSIZE; |
| 789 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 790 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Protocol_descriptor() { |
| 791 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 792 | return file_level_enum_descriptors_dmi_2fhw_2eproto[2]; |
| 793 | } |
| 794 | bool PortComponentAttributes_Protocol_IsValid(int value) { |
| 795 | switch (value) { |
| 796 | case 0: |
| 797 | case 1: |
| 798 | case 2: |
| 799 | case 3: |
| 800 | case 4: |
| 801 | case 5: |
| 802 | case 6: |
| 803 | case 7: |
| 804 | case 8: |
| 805 | return true; |
| 806 | default: |
| 807 | return false; |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 812 | const PortComponentAttributes_Protocol PortComponentAttributes::PROTOCOL_UNDEFINED; |
| 813 | const PortComponentAttributes_Protocol PortComponentAttributes::ETHERNET; |
| 814 | const PortComponentAttributes_Protocol PortComponentAttributes::GPON; |
| 815 | const PortComponentAttributes_Protocol PortComponentAttributes::XGPON; |
| 816 | const PortComponentAttributes_Protocol PortComponentAttributes::XGSPON; |
| 817 | const PortComponentAttributes_Protocol PortComponentAttributes::GFAST; |
| 818 | const PortComponentAttributes_Protocol PortComponentAttributes::SERIAL; |
| 819 | const PortComponentAttributes_Protocol PortComponentAttributes::EPON; |
| 820 | const PortComponentAttributes_Protocol PortComponentAttributes::BITS; |
| 821 | const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MIN; |
| 822 | const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MAX; |
| 823 | const int PortComponentAttributes::Protocol_ARRAYSIZE; |
| 824 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 825 | const ::google::protobuf::EnumDescriptor* PsuComponentAttributes_SupportedVoltage_descriptor() { |
| 826 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 827 | return file_level_enum_descriptors_dmi_2fhw_2eproto[3]; |
| 828 | } |
| 829 | bool PsuComponentAttributes_SupportedVoltage_IsValid(int value) { |
| 830 | switch (value) { |
| 831 | case 0: |
| 832 | case 1: |
| 833 | case 2: |
| 834 | case 3: |
| 835 | return true; |
| 836 | default: |
| 837 | return false; |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 842 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SUPPORTED_VOLTAGE_UNDEFINED; |
| 843 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V48; |
| 844 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V230; |
| 845 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V115; |
| 846 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MIN; |
| 847 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MAX; |
| 848 | const int PsuComponentAttributes::SupportedVoltage_ARRAYSIZE; |
| 849 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 850 | const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_FormFactor_descriptor() { |
| 851 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 852 | return file_level_enum_descriptors_dmi_2fhw_2eproto[4]; |
| 853 | } |
| 854 | bool TransceiverComponentsAttributes_FormFactor_IsValid(int value) { |
| 855 | switch (value) { |
| 856 | case 0: |
| 857 | case 1: |
| 858 | case 2: |
| 859 | case 3: |
| 860 | case 4: |
| 861 | case 5: |
| 862 | case 6: |
| 863 | case 7: |
| 864 | case 8: |
| 865 | case 9: |
| 866 | case 10: |
| 867 | case 11: |
| 868 | case 12: |
| 869 | case 13: |
| 870 | case 14: |
| 871 | return true; |
| 872 | default: |
| 873 | return false; |
| 874 | } |
| 875 | } |
| 876 | |
| 877 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 878 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FORM_FACTOR_UNKNOWN; |
| 879 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP; |
| 880 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_PLUS; |
| 881 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP28; |
| 882 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP; |
| 883 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP_PLUS; |
| 884 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::XFP; |
| 885 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP4; |
| 886 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2; |
| 887 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CPAK; |
| 888 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::X2; |
| 889 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::OTHER; |
| 890 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP; |
| 891 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_ACO; |
| 892 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_DCO; |
| 893 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MIN; |
| 894 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MAX; |
| 895 | const int TransceiverComponentsAttributes::FormFactor_ARRAYSIZE; |
| 896 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 897 | const ::google::protobuf::EnumDescriptor* ComponentType_descriptor() { |
| 898 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 899 | return file_level_enum_descriptors_dmi_2fhw_2eproto[5]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 900 | } |
| 901 | bool ComponentType_IsValid(int value) { |
| 902 | switch (value) { |
| 903 | case 0: |
| 904 | case 1: |
| 905 | case 2: |
| 906 | case 3: |
| 907 | case 4: |
| 908 | case 5: |
| 909 | case 6: |
| 910 | case 7: |
| 911 | case 8: |
| 912 | case 9: |
| 913 | case 10: |
| 914 | case 11: |
| 915 | case 12: |
| 916 | case 13: |
| 917 | case 14: |
| 918 | return true; |
| 919 | default: |
| 920 | return false; |
| 921 | } |
| 922 | } |
| 923 | |
| 924 | const ::google::protobuf::EnumDescriptor* ComponentAdminState_descriptor() { |
| 925 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 926 | return file_level_enum_descriptors_dmi_2fhw_2eproto[6]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 927 | } |
| 928 | bool ComponentAdminState_IsValid(int value) { |
| 929 | switch (value) { |
| 930 | case 0: |
| 931 | case 1: |
| 932 | case 2: |
| 933 | case 3: |
| 934 | case 4: |
| 935 | return true; |
| 936 | default: |
| 937 | return false; |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | const ::google::protobuf::EnumDescriptor* ComponentOperState_descriptor() { |
| 942 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 943 | return file_level_enum_descriptors_dmi_2fhw_2eproto[7]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 944 | } |
| 945 | bool ComponentOperState_IsValid(int value) { |
| 946 | switch (value) { |
| 947 | case 0: |
| 948 | case 1: |
| 949 | case 2: |
| 950 | case 3: |
| 951 | case 4: |
| 952 | return true; |
| 953 | default: |
| 954 | return false; |
| 955 | } |
| 956 | } |
| 957 | |
| 958 | const ::google::protobuf::EnumDescriptor* ComponentUsageState_descriptor() { |
| 959 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 960 | return file_level_enum_descriptors_dmi_2fhw_2eproto[8]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 961 | } |
| 962 | bool ComponentUsageState_IsValid(int value) { |
| 963 | switch (value) { |
| 964 | case 0: |
| 965 | case 1: |
| 966 | case 2: |
| 967 | case 3: |
| 968 | case 4: |
| 969 | return true; |
| 970 | default: |
| 971 | return false; |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | const ::google::protobuf::EnumDescriptor* ComponentAlarmState_descriptor() { |
| 976 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 977 | return file_level_enum_descriptors_dmi_2fhw_2eproto[9]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 978 | } |
| 979 | bool ComponentAlarmState_IsValid(int value) { |
| 980 | switch (value) { |
| 981 | case 0: |
| 982 | case 1: |
| 983 | case 2: |
| 984 | case 3: |
| 985 | case 4: |
| 986 | case 5: |
| 987 | case 6: |
| 988 | case 7: |
| 989 | return true; |
| 990 | default: |
| 991 | return false; |
| 992 | } |
| 993 | } |
| 994 | |
| 995 | const ::google::protobuf::EnumDescriptor* ComponentStandbyState_descriptor() { |
| 996 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 997 | return file_level_enum_descriptors_dmi_2fhw_2eproto[10]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 998 | } |
| 999 | bool ComponentStandbyState_IsValid(int value) { |
| 1000 | switch (value) { |
| 1001 | case 0: |
| 1002 | case 1: |
| 1003 | case 2: |
| 1004 | case 3: |
| 1005 | case 4: |
| 1006 | return true; |
| 1007 | default: |
| 1008 | return false; |
| 1009 | } |
| 1010 | } |
| 1011 | |
| 1012 | const ::google::protobuf::EnumDescriptor* DataValueType_descriptor() { |
| 1013 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1014 | return file_level_enum_descriptors_dmi_2fhw_2eproto[11]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1015 | } |
| 1016 | bool DataValueType_IsValid(int value) { |
| 1017 | switch (value) { |
| 1018 | case 0: |
| 1019 | case 1: |
| 1020 | case 2: |
| 1021 | case 3: |
| 1022 | case 4: |
| 1023 | case 5: |
| 1024 | case 6: |
| 1025 | case 7: |
| 1026 | case 8: |
| 1027 | case 9: |
| 1028 | case 10: |
| 1029 | case 11: |
| 1030 | case 12: |
| 1031 | case 13: |
| 1032 | case 14: |
| 1033 | case 15: |
| 1034 | return true; |
| 1035 | default: |
| 1036 | return false; |
| 1037 | } |
| 1038 | } |
| 1039 | |
| 1040 | const ::google::protobuf::EnumDescriptor* ValueScale_descriptor() { |
| 1041 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1042 | return file_level_enum_descriptors_dmi_2fhw_2eproto[12]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1043 | } |
| 1044 | bool ValueScale_IsValid(int value) { |
| 1045 | switch (value) { |
| 1046 | case 0: |
| 1047 | case 1: |
| 1048 | case 2: |
| 1049 | case 3: |
| 1050 | case 4: |
| 1051 | case 5: |
| 1052 | case 6: |
| 1053 | case 7: |
| 1054 | case 8: |
| 1055 | case 9: |
| 1056 | case 10: |
| 1057 | case 11: |
| 1058 | case 12: |
| 1059 | case 13: |
| 1060 | case 14: |
| 1061 | case 15: |
| 1062 | case 16: |
| 1063 | case 17: |
| 1064 | return true; |
| 1065 | default: |
| 1066 | return false; |
| 1067 | } |
| 1068 | } |
| 1069 | |
| 1070 | const ::google::protobuf::EnumDescriptor* SensorStatus_descriptor() { |
| 1071 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1072 | return file_level_enum_descriptors_dmi_2fhw_2eproto[13]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1073 | } |
| 1074 | bool SensorStatus_IsValid(int value) { |
| 1075 | switch (value) { |
| 1076 | case 0: |
| 1077 | case 1: |
| 1078 | case 2: |
| 1079 | case 3: |
| 1080 | return true; |
| 1081 | default: |
| 1082 | return false; |
| 1083 | } |
| 1084 | } |
| 1085 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1086 | const ::google::protobuf::EnumDescriptor* TransceiverType_descriptor() { |
| 1087 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 1088 | return file_level_enum_descriptors_dmi_2fhw_2eproto[14]; |
| 1089 | } |
| 1090 | bool TransceiverType_IsValid(int value) { |
| 1091 | switch (value) { |
| 1092 | case 0: |
| 1093 | case 1: |
| 1094 | case 2: |
| 1095 | case 3: |
| 1096 | case 4: |
| 1097 | case 5: |
| 1098 | case 6: |
| 1099 | case 7: |
| 1100 | case 255: |
| 1101 | return true; |
| 1102 | default: |
| 1103 | return false; |
| 1104 | } |
| 1105 | } |
| 1106 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1107 | |
| 1108 | // =================================================================== |
| 1109 | |
| 1110 | void Uuid::InitAsDefaultInstance() { |
| 1111 | } |
| 1112 | class Uuid::HasBitSetters { |
| 1113 | public: |
| 1114 | }; |
| 1115 | |
| 1116 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1117 | const int Uuid::kUuidFieldNumber; |
| 1118 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1119 | |
| 1120 | Uuid::Uuid() |
| 1121 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1122 | SharedCtor(); |
| 1123 | // @@protoc_insertion_point(constructor:dmi.Uuid) |
| 1124 | } |
| 1125 | Uuid::Uuid(const Uuid& from) |
| 1126 | : ::google::protobuf::Message(), |
| 1127 | _internal_metadata_(nullptr) { |
| 1128 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1129 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1130 | if (from.uuid().size() > 0) { |
| 1131 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
| 1132 | } |
| 1133 | // @@protoc_insertion_point(copy_constructor:dmi.Uuid) |
| 1134 | } |
| 1135 | |
| 1136 | void Uuid::SharedCtor() { |
| 1137 | ::google::protobuf::internal::InitSCC( |
| 1138 | &scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 1139 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1140 | } |
| 1141 | |
| 1142 | Uuid::~Uuid() { |
| 1143 | // @@protoc_insertion_point(destructor:dmi.Uuid) |
| 1144 | SharedDtor(); |
| 1145 | } |
| 1146 | |
| 1147 | void Uuid::SharedDtor() { |
| 1148 | uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1149 | } |
| 1150 | |
| 1151 | void Uuid::SetCachedSize(int size) const { |
| 1152 | _cached_size_.Set(size); |
| 1153 | } |
| 1154 | const Uuid& Uuid::default_instance() { |
| 1155 | ::google::protobuf::internal::InitSCC(&::scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 1156 | return *internal_default_instance(); |
| 1157 | } |
| 1158 | |
| 1159 | |
| 1160 | void Uuid::Clear() { |
| 1161 | // @@protoc_insertion_point(message_clear_start:dmi.Uuid) |
| 1162 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1163 | // Prevent compiler warnings about cached_has_bits being unused |
| 1164 | (void) cached_has_bits; |
| 1165 | |
| 1166 | uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1167 | _internal_metadata_.Clear(); |
| 1168 | } |
| 1169 | |
| 1170 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1171 | const char* Uuid::_InternalParse(const char* begin, const char* end, void* object, |
| 1172 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1173 | auto msg = static_cast<Uuid*>(object); |
| 1174 | ::google::protobuf::int32 size; (void)size; |
| 1175 | int depth; (void)depth; |
| 1176 | ::google::protobuf::uint32 tag; |
| 1177 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1178 | auto ptr = begin; |
| 1179 | while (ptr < end) { |
| 1180 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1181 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1182 | switch (tag >> 3) { |
| 1183 | // string uuid = 1; |
| 1184 | case 1: { |
| 1185 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1186 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1187 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1188 | ctx->extra_parse_data().SetFieldName("dmi.Uuid.uuid"); |
| 1189 | object = msg->mutable_uuid(); |
| 1190 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1191 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1192 | goto string_till_end; |
| 1193 | } |
| 1194 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1195 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1196 | ptr += size; |
| 1197 | break; |
| 1198 | } |
| 1199 | default: { |
| 1200 | handle_unusual: |
| 1201 | if ((tag & 7) == 4 || tag == 0) { |
| 1202 | ctx->EndGroup(tag); |
| 1203 | return ptr; |
| 1204 | } |
| 1205 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1206 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1207 | ptr = res.first; |
| 1208 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1209 | if (res.second) return ptr; |
| 1210 | } |
| 1211 | } // switch |
| 1212 | } // while |
| 1213 | return ptr; |
| 1214 | string_till_end: |
| 1215 | static_cast<::std::string*>(object)->clear(); |
| 1216 | static_cast<::std::string*>(object)->reserve(size); |
| 1217 | goto len_delim_till_end; |
| 1218 | len_delim_till_end: |
| 1219 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1220 | {parser_till_end, object}, size); |
| 1221 | } |
| 1222 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1223 | bool Uuid::MergePartialFromCodedStream( |
| 1224 | ::google::protobuf::io::CodedInputStream* input) { |
| 1225 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1226 | ::google::protobuf::uint32 tag; |
| 1227 | // @@protoc_insertion_point(parse_start:dmi.Uuid) |
| 1228 | for (;;) { |
| 1229 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1230 | tag = p.first; |
| 1231 | if (!p.second) goto handle_unusual; |
| 1232 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1233 | // string uuid = 1; |
| 1234 | case 1: { |
| 1235 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1236 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1237 | input, this->mutable_uuid())); |
| 1238 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1239 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1240 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1241 | "dmi.Uuid.uuid")); |
| 1242 | } else { |
| 1243 | goto handle_unusual; |
| 1244 | } |
| 1245 | break; |
| 1246 | } |
| 1247 | |
| 1248 | default: { |
| 1249 | handle_unusual: |
| 1250 | if (tag == 0) { |
| 1251 | goto success; |
| 1252 | } |
| 1253 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1254 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1255 | break; |
| 1256 | } |
| 1257 | } |
| 1258 | } |
| 1259 | success: |
| 1260 | // @@protoc_insertion_point(parse_success:dmi.Uuid) |
| 1261 | return true; |
| 1262 | failure: |
| 1263 | // @@protoc_insertion_point(parse_failure:dmi.Uuid) |
| 1264 | return false; |
| 1265 | #undef DO_ |
| 1266 | } |
| 1267 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1268 | |
| 1269 | void Uuid::SerializeWithCachedSizes( |
| 1270 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1271 | // @@protoc_insertion_point(serialize_start:dmi.Uuid) |
| 1272 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1273 | (void) cached_has_bits; |
| 1274 | |
| 1275 | // string uuid = 1; |
| 1276 | if (this->uuid().size() > 0) { |
| 1277 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1278 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1279 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1280 | "dmi.Uuid.uuid"); |
| 1281 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1282 | 1, this->uuid(), output); |
| 1283 | } |
| 1284 | |
| 1285 | if (_internal_metadata_.have_unknown_fields()) { |
| 1286 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1287 | _internal_metadata_.unknown_fields(), output); |
| 1288 | } |
| 1289 | // @@protoc_insertion_point(serialize_end:dmi.Uuid) |
| 1290 | } |
| 1291 | |
| 1292 | ::google::protobuf::uint8* Uuid::InternalSerializeWithCachedSizesToArray( |
| 1293 | ::google::protobuf::uint8* target) const { |
| 1294 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Uuid) |
| 1295 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1296 | (void) cached_has_bits; |
| 1297 | |
| 1298 | // string uuid = 1; |
| 1299 | if (this->uuid().size() > 0) { |
| 1300 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1301 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1302 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1303 | "dmi.Uuid.uuid"); |
| 1304 | target = |
| 1305 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1306 | 1, this->uuid(), target); |
| 1307 | } |
| 1308 | |
| 1309 | if (_internal_metadata_.have_unknown_fields()) { |
| 1310 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1311 | _internal_metadata_.unknown_fields(), target); |
| 1312 | } |
| 1313 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Uuid) |
| 1314 | return target; |
| 1315 | } |
| 1316 | |
| 1317 | size_t Uuid::ByteSizeLong() const { |
| 1318 | // @@protoc_insertion_point(message_byte_size_start:dmi.Uuid) |
| 1319 | size_t total_size = 0; |
| 1320 | |
| 1321 | if (_internal_metadata_.have_unknown_fields()) { |
| 1322 | total_size += |
| 1323 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1324 | _internal_metadata_.unknown_fields()); |
| 1325 | } |
| 1326 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1327 | // Prevent compiler warnings about cached_has_bits being unused |
| 1328 | (void) cached_has_bits; |
| 1329 | |
| 1330 | // string uuid = 1; |
| 1331 | if (this->uuid().size() > 0) { |
| 1332 | total_size += 1 + |
| 1333 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1334 | this->uuid()); |
| 1335 | } |
| 1336 | |
| 1337 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1338 | SetCachedSize(cached_size); |
| 1339 | return total_size; |
| 1340 | } |
| 1341 | |
| 1342 | void Uuid::MergeFrom(const ::google::protobuf::Message& from) { |
| 1343 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Uuid) |
| 1344 | GOOGLE_DCHECK_NE(&from, this); |
| 1345 | const Uuid* source = |
| 1346 | ::google::protobuf::DynamicCastToGenerated<Uuid>( |
| 1347 | &from); |
| 1348 | if (source == nullptr) { |
| 1349 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uuid) |
| 1350 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1351 | } else { |
| 1352 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uuid) |
| 1353 | MergeFrom(*source); |
| 1354 | } |
| 1355 | } |
| 1356 | |
| 1357 | void Uuid::MergeFrom(const Uuid& from) { |
| 1358 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uuid) |
| 1359 | GOOGLE_DCHECK_NE(&from, this); |
| 1360 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1361 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1362 | (void) cached_has_bits; |
| 1363 | |
| 1364 | if (from.uuid().size() > 0) { |
| 1365 | |
| 1366 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
| 1367 | } |
| 1368 | } |
| 1369 | |
| 1370 | void Uuid::CopyFrom(const ::google::protobuf::Message& from) { |
| 1371 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Uuid) |
| 1372 | if (&from == this) return; |
| 1373 | Clear(); |
| 1374 | MergeFrom(from); |
| 1375 | } |
| 1376 | |
| 1377 | void Uuid::CopyFrom(const Uuid& from) { |
| 1378 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uuid) |
| 1379 | if (&from == this) return; |
| 1380 | Clear(); |
| 1381 | MergeFrom(from); |
| 1382 | } |
| 1383 | |
| 1384 | bool Uuid::IsInitialized() const { |
| 1385 | return true; |
| 1386 | } |
| 1387 | |
| 1388 | void Uuid::Swap(Uuid* other) { |
| 1389 | if (other == this) return; |
| 1390 | InternalSwap(other); |
| 1391 | } |
| 1392 | void Uuid::InternalSwap(Uuid* other) { |
| 1393 | using std::swap; |
| 1394 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1395 | uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1396 | GetArenaNoVirtual()); |
| 1397 | } |
| 1398 | |
| 1399 | ::google::protobuf::Metadata Uuid::GetMetadata() const { |
| 1400 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 1401 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 1402 | } |
| 1403 | |
| 1404 | |
| 1405 | // =================================================================== |
| 1406 | |
| 1407 | void HardwareID::InitAsDefaultInstance() { |
| 1408 | ::dmi::_HardwareID_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>( |
| 1409 | ::dmi::Uuid::internal_default_instance()); |
| 1410 | } |
| 1411 | class HardwareID::HasBitSetters { |
| 1412 | public: |
| 1413 | static const ::dmi::Uuid& uuid(const HardwareID* msg); |
| 1414 | }; |
| 1415 | |
| 1416 | const ::dmi::Uuid& |
| 1417 | HardwareID::HasBitSetters::uuid(const HardwareID* msg) { |
| 1418 | return *msg->uuid_; |
| 1419 | } |
| 1420 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1421 | const int HardwareID::kUuidFieldNumber; |
| 1422 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1423 | |
| 1424 | HardwareID::HardwareID() |
| 1425 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1426 | SharedCtor(); |
| 1427 | // @@protoc_insertion_point(constructor:dmi.HardwareID) |
| 1428 | } |
| 1429 | HardwareID::HardwareID(const HardwareID& from) |
| 1430 | : ::google::protobuf::Message(), |
| 1431 | _internal_metadata_(nullptr) { |
| 1432 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1433 | if (from.has_uuid()) { |
| 1434 | uuid_ = new ::dmi::Uuid(*from.uuid_); |
| 1435 | } else { |
| 1436 | uuid_ = nullptr; |
| 1437 | } |
| 1438 | // @@protoc_insertion_point(copy_constructor:dmi.HardwareID) |
| 1439 | } |
| 1440 | |
| 1441 | void HardwareID::SharedCtor() { |
| 1442 | ::google::protobuf::internal::InitSCC( |
| 1443 | &scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 1444 | uuid_ = nullptr; |
| 1445 | } |
| 1446 | |
| 1447 | HardwareID::~HardwareID() { |
| 1448 | // @@protoc_insertion_point(destructor:dmi.HardwareID) |
| 1449 | SharedDtor(); |
| 1450 | } |
| 1451 | |
| 1452 | void HardwareID::SharedDtor() { |
| 1453 | if (this != internal_default_instance()) delete uuid_; |
| 1454 | } |
| 1455 | |
| 1456 | void HardwareID::SetCachedSize(int size) const { |
| 1457 | _cached_size_.Set(size); |
| 1458 | } |
| 1459 | const HardwareID& HardwareID::default_instance() { |
| 1460 | ::google::protobuf::internal::InitSCC(&::scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 1461 | return *internal_default_instance(); |
| 1462 | } |
| 1463 | |
| 1464 | |
| 1465 | void HardwareID::Clear() { |
| 1466 | // @@protoc_insertion_point(message_clear_start:dmi.HardwareID) |
| 1467 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1468 | // Prevent compiler warnings about cached_has_bits being unused |
| 1469 | (void) cached_has_bits; |
| 1470 | |
| 1471 | if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) { |
| 1472 | delete uuid_; |
| 1473 | } |
| 1474 | uuid_ = nullptr; |
| 1475 | _internal_metadata_.Clear(); |
| 1476 | } |
| 1477 | |
| 1478 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1479 | const char* HardwareID::_InternalParse(const char* begin, const char* end, void* object, |
| 1480 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1481 | auto msg = static_cast<HardwareID*>(object); |
| 1482 | ::google::protobuf::int32 size; (void)size; |
| 1483 | int depth; (void)depth; |
| 1484 | ::google::protobuf::uint32 tag; |
| 1485 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1486 | auto ptr = begin; |
| 1487 | while (ptr < end) { |
| 1488 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1489 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1490 | switch (tag >> 3) { |
| 1491 | // .dmi.Uuid uuid = 1; |
| 1492 | case 1: { |
| 1493 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1494 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1495 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1496 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1497 | object = msg->mutable_uuid(); |
| 1498 | if (size > end - ptr) goto len_delim_till_end; |
| 1499 | ptr += size; |
| 1500 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1501 | {parser_till_end, object}, ptr - size, ptr)); |
| 1502 | break; |
| 1503 | } |
| 1504 | default: { |
| 1505 | handle_unusual: |
| 1506 | if ((tag & 7) == 4 || tag == 0) { |
| 1507 | ctx->EndGroup(tag); |
| 1508 | return ptr; |
| 1509 | } |
| 1510 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1511 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1512 | ptr = res.first; |
| 1513 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1514 | if (res.second) return ptr; |
| 1515 | } |
| 1516 | } // switch |
| 1517 | } // while |
| 1518 | return ptr; |
| 1519 | len_delim_till_end: |
| 1520 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1521 | {parser_till_end, object}, size); |
| 1522 | } |
| 1523 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1524 | bool HardwareID::MergePartialFromCodedStream( |
| 1525 | ::google::protobuf::io::CodedInputStream* input) { |
| 1526 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1527 | ::google::protobuf::uint32 tag; |
| 1528 | // @@protoc_insertion_point(parse_start:dmi.HardwareID) |
| 1529 | for (;;) { |
| 1530 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1531 | tag = p.first; |
| 1532 | if (!p.second) goto handle_unusual; |
| 1533 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1534 | // .dmi.Uuid uuid = 1; |
| 1535 | case 1: { |
| 1536 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1537 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1538 | input, mutable_uuid())); |
| 1539 | } else { |
| 1540 | goto handle_unusual; |
| 1541 | } |
| 1542 | break; |
| 1543 | } |
| 1544 | |
| 1545 | default: { |
| 1546 | handle_unusual: |
| 1547 | if (tag == 0) { |
| 1548 | goto success; |
| 1549 | } |
| 1550 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1551 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1552 | break; |
| 1553 | } |
| 1554 | } |
| 1555 | } |
| 1556 | success: |
| 1557 | // @@protoc_insertion_point(parse_success:dmi.HardwareID) |
| 1558 | return true; |
| 1559 | failure: |
| 1560 | // @@protoc_insertion_point(parse_failure:dmi.HardwareID) |
| 1561 | return false; |
| 1562 | #undef DO_ |
| 1563 | } |
| 1564 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1565 | |
| 1566 | void HardwareID::SerializeWithCachedSizes( |
| 1567 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1568 | // @@protoc_insertion_point(serialize_start:dmi.HardwareID) |
| 1569 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1570 | (void) cached_has_bits; |
| 1571 | |
| 1572 | // .dmi.Uuid uuid = 1; |
| 1573 | if (this->has_uuid()) { |
| 1574 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1575 | 1, HasBitSetters::uuid(this), output); |
| 1576 | } |
| 1577 | |
| 1578 | if (_internal_metadata_.have_unknown_fields()) { |
| 1579 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1580 | _internal_metadata_.unknown_fields(), output); |
| 1581 | } |
| 1582 | // @@protoc_insertion_point(serialize_end:dmi.HardwareID) |
| 1583 | } |
| 1584 | |
| 1585 | ::google::protobuf::uint8* HardwareID::InternalSerializeWithCachedSizesToArray( |
| 1586 | ::google::protobuf::uint8* target) const { |
| 1587 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HardwareID) |
| 1588 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1589 | (void) cached_has_bits; |
| 1590 | |
| 1591 | // .dmi.Uuid uuid = 1; |
| 1592 | if (this->has_uuid()) { |
| 1593 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1594 | InternalWriteMessageToArray( |
| 1595 | 1, HasBitSetters::uuid(this), target); |
| 1596 | } |
| 1597 | |
| 1598 | if (_internal_metadata_.have_unknown_fields()) { |
| 1599 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1600 | _internal_metadata_.unknown_fields(), target); |
| 1601 | } |
| 1602 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HardwareID) |
| 1603 | return target; |
| 1604 | } |
| 1605 | |
| 1606 | size_t HardwareID::ByteSizeLong() const { |
| 1607 | // @@protoc_insertion_point(message_byte_size_start:dmi.HardwareID) |
| 1608 | size_t total_size = 0; |
| 1609 | |
| 1610 | if (_internal_metadata_.have_unknown_fields()) { |
| 1611 | total_size += |
| 1612 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1613 | _internal_metadata_.unknown_fields()); |
| 1614 | } |
| 1615 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1616 | // Prevent compiler warnings about cached_has_bits being unused |
| 1617 | (void) cached_has_bits; |
| 1618 | |
| 1619 | // .dmi.Uuid uuid = 1; |
| 1620 | if (this->has_uuid()) { |
| 1621 | total_size += 1 + |
| 1622 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1623 | *uuid_); |
| 1624 | } |
| 1625 | |
| 1626 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1627 | SetCachedSize(cached_size); |
| 1628 | return total_size; |
| 1629 | } |
| 1630 | |
| 1631 | void HardwareID::MergeFrom(const ::google::protobuf::Message& from) { |
| 1632 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HardwareID) |
| 1633 | GOOGLE_DCHECK_NE(&from, this); |
| 1634 | const HardwareID* source = |
| 1635 | ::google::protobuf::DynamicCastToGenerated<HardwareID>( |
| 1636 | &from); |
| 1637 | if (source == nullptr) { |
| 1638 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HardwareID) |
| 1639 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1640 | } else { |
| 1641 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HardwareID) |
| 1642 | MergeFrom(*source); |
| 1643 | } |
| 1644 | } |
| 1645 | |
| 1646 | void HardwareID::MergeFrom(const HardwareID& from) { |
| 1647 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HardwareID) |
| 1648 | GOOGLE_DCHECK_NE(&from, this); |
| 1649 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1650 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1651 | (void) cached_has_bits; |
| 1652 | |
| 1653 | if (from.has_uuid()) { |
| 1654 | mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid()); |
| 1655 | } |
| 1656 | } |
| 1657 | |
| 1658 | void HardwareID::CopyFrom(const ::google::protobuf::Message& from) { |
| 1659 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HardwareID) |
| 1660 | if (&from == this) return; |
| 1661 | Clear(); |
| 1662 | MergeFrom(from); |
| 1663 | } |
| 1664 | |
| 1665 | void HardwareID::CopyFrom(const HardwareID& from) { |
| 1666 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HardwareID) |
| 1667 | if (&from == this) return; |
| 1668 | Clear(); |
| 1669 | MergeFrom(from); |
| 1670 | } |
| 1671 | |
| 1672 | bool HardwareID::IsInitialized() const { |
| 1673 | return true; |
| 1674 | } |
| 1675 | |
| 1676 | void HardwareID::Swap(HardwareID* other) { |
| 1677 | if (other == this) return; |
| 1678 | InternalSwap(other); |
| 1679 | } |
| 1680 | void HardwareID::InternalSwap(HardwareID* other) { |
| 1681 | using std::swap; |
| 1682 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1683 | swap(uuid_, other->uuid_); |
| 1684 | } |
| 1685 | |
| 1686 | ::google::protobuf::Metadata HardwareID::GetMetadata() const { |
| 1687 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 1688 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 1689 | } |
| 1690 | |
| 1691 | |
| 1692 | // =================================================================== |
| 1693 | |
| 1694 | void Uri::InitAsDefaultInstance() { |
| 1695 | } |
| 1696 | class Uri::HasBitSetters { |
| 1697 | public: |
| 1698 | }; |
| 1699 | |
| 1700 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1701 | const int Uri::kUriFieldNumber; |
| 1702 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1703 | |
| 1704 | Uri::Uri() |
| 1705 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1706 | SharedCtor(); |
| 1707 | // @@protoc_insertion_point(constructor:dmi.Uri) |
| 1708 | } |
| 1709 | Uri::Uri(const Uri& from) |
| 1710 | : ::google::protobuf::Message(), |
| 1711 | _internal_metadata_(nullptr) { |
| 1712 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1713 | uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1714 | if (from.uri().size() > 0) { |
| 1715 | uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); |
| 1716 | } |
| 1717 | // @@protoc_insertion_point(copy_constructor:dmi.Uri) |
| 1718 | } |
| 1719 | |
| 1720 | void Uri::SharedCtor() { |
| 1721 | ::google::protobuf::internal::InitSCC( |
| 1722 | &scc_info_Uri_dmi_2fhw_2eproto.base); |
| 1723 | uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1724 | } |
| 1725 | |
| 1726 | Uri::~Uri() { |
| 1727 | // @@protoc_insertion_point(destructor:dmi.Uri) |
| 1728 | SharedDtor(); |
| 1729 | } |
| 1730 | |
| 1731 | void Uri::SharedDtor() { |
| 1732 | uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1733 | } |
| 1734 | |
| 1735 | void Uri::SetCachedSize(int size) const { |
| 1736 | _cached_size_.Set(size); |
| 1737 | } |
| 1738 | const Uri& Uri::default_instance() { |
| 1739 | ::google::protobuf::internal::InitSCC(&::scc_info_Uri_dmi_2fhw_2eproto.base); |
| 1740 | return *internal_default_instance(); |
| 1741 | } |
| 1742 | |
| 1743 | |
| 1744 | void Uri::Clear() { |
| 1745 | // @@protoc_insertion_point(message_clear_start:dmi.Uri) |
| 1746 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1747 | // Prevent compiler warnings about cached_has_bits being unused |
| 1748 | (void) cached_has_bits; |
| 1749 | |
| 1750 | uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1751 | _internal_metadata_.Clear(); |
| 1752 | } |
| 1753 | |
| 1754 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1755 | const char* Uri::_InternalParse(const char* begin, const char* end, void* object, |
| 1756 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1757 | auto msg = static_cast<Uri*>(object); |
| 1758 | ::google::protobuf::int32 size; (void)size; |
| 1759 | int depth; (void)depth; |
| 1760 | ::google::protobuf::uint32 tag; |
| 1761 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1762 | auto ptr = begin; |
| 1763 | while (ptr < end) { |
| 1764 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1765 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1766 | switch (tag >> 3) { |
| 1767 | // string uri = 1; |
| 1768 | case 1: { |
| 1769 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1770 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1771 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1772 | ctx->extra_parse_data().SetFieldName("dmi.Uri.uri"); |
| 1773 | object = msg->mutable_uri(); |
| 1774 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1775 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1776 | goto string_till_end; |
| 1777 | } |
| 1778 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1779 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1780 | ptr += size; |
| 1781 | break; |
| 1782 | } |
| 1783 | default: { |
| 1784 | handle_unusual: |
| 1785 | if ((tag & 7) == 4 || tag == 0) { |
| 1786 | ctx->EndGroup(tag); |
| 1787 | return ptr; |
| 1788 | } |
| 1789 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1790 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1791 | ptr = res.first; |
| 1792 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1793 | if (res.second) return ptr; |
| 1794 | } |
| 1795 | } // switch |
| 1796 | } // while |
| 1797 | return ptr; |
| 1798 | string_till_end: |
| 1799 | static_cast<::std::string*>(object)->clear(); |
| 1800 | static_cast<::std::string*>(object)->reserve(size); |
| 1801 | goto len_delim_till_end; |
| 1802 | len_delim_till_end: |
| 1803 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1804 | {parser_till_end, object}, size); |
| 1805 | } |
| 1806 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1807 | bool Uri::MergePartialFromCodedStream( |
| 1808 | ::google::protobuf::io::CodedInputStream* input) { |
| 1809 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1810 | ::google::protobuf::uint32 tag; |
| 1811 | // @@protoc_insertion_point(parse_start:dmi.Uri) |
| 1812 | for (;;) { |
| 1813 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1814 | tag = p.first; |
| 1815 | if (!p.second) goto handle_unusual; |
| 1816 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1817 | // string uri = 1; |
| 1818 | case 1: { |
| 1819 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1820 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1821 | input, this->mutable_uri())); |
| 1822 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1823 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1824 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1825 | "dmi.Uri.uri")); |
| 1826 | } else { |
| 1827 | goto handle_unusual; |
| 1828 | } |
| 1829 | break; |
| 1830 | } |
| 1831 | |
| 1832 | default: { |
| 1833 | handle_unusual: |
| 1834 | if (tag == 0) { |
| 1835 | goto success; |
| 1836 | } |
| 1837 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1838 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1839 | break; |
| 1840 | } |
| 1841 | } |
| 1842 | } |
| 1843 | success: |
| 1844 | // @@protoc_insertion_point(parse_success:dmi.Uri) |
| 1845 | return true; |
| 1846 | failure: |
| 1847 | // @@protoc_insertion_point(parse_failure:dmi.Uri) |
| 1848 | return false; |
| 1849 | #undef DO_ |
| 1850 | } |
| 1851 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1852 | |
| 1853 | void Uri::SerializeWithCachedSizes( |
| 1854 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1855 | // @@protoc_insertion_point(serialize_start:dmi.Uri) |
| 1856 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1857 | (void) cached_has_bits; |
| 1858 | |
| 1859 | // string uri = 1; |
| 1860 | if (this->uri().size() > 0) { |
| 1861 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1862 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1863 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1864 | "dmi.Uri.uri"); |
| 1865 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1866 | 1, this->uri(), output); |
| 1867 | } |
| 1868 | |
| 1869 | if (_internal_metadata_.have_unknown_fields()) { |
| 1870 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1871 | _internal_metadata_.unknown_fields(), output); |
| 1872 | } |
| 1873 | // @@protoc_insertion_point(serialize_end:dmi.Uri) |
| 1874 | } |
| 1875 | |
| 1876 | ::google::protobuf::uint8* Uri::InternalSerializeWithCachedSizesToArray( |
| 1877 | ::google::protobuf::uint8* target) const { |
| 1878 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Uri) |
| 1879 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1880 | (void) cached_has_bits; |
| 1881 | |
| 1882 | // string uri = 1; |
| 1883 | if (this->uri().size() > 0) { |
| 1884 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1885 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1886 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1887 | "dmi.Uri.uri"); |
| 1888 | target = |
| 1889 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1890 | 1, this->uri(), target); |
| 1891 | } |
| 1892 | |
| 1893 | if (_internal_metadata_.have_unknown_fields()) { |
| 1894 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1895 | _internal_metadata_.unknown_fields(), target); |
| 1896 | } |
| 1897 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Uri) |
| 1898 | return target; |
| 1899 | } |
| 1900 | |
| 1901 | size_t Uri::ByteSizeLong() const { |
| 1902 | // @@protoc_insertion_point(message_byte_size_start:dmi.Uri) |
| 1903 | size_t total_size = 0; |
| 1904 | |
| 1905 | if (_internal_metadata_.have_unknown_fields()) { |
| 1906 | total_size += |
| 1907 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1908 | _internal_metadata_.unknown_fields()); |
| 1909 | } |
| 1910 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1911 | // Prevent compiler warnings about cached_has_bits being unused |
| 1912 | (void) cached_has_bits; |
| 1913 | |
| 1914 | // string uri = 1; |
| 1915 | if (this->uri().size() > 0) { |
| 1916 | total_size += 1 + |
| 1917 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1918 | this->uri()); |
| 1919 | } |
| 1920 | |
| 1921 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1922 | SetCachedSize(cached_size); |
| 1923 | return total_size; |
| 1924 | } |
| 1925 | |
| 1926 | void Uri::MergeFrom(const ::google::protobuf::Message& from) { |
| 1927 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Uri) |
| 1928 | GOOGLE_DCHECK_NE(&from, this); |
| 1929 | const Uri* source = |
| 1930 | ::google::protobuf::DynamicCastToGenerated<Uri>( |
| 1931 | &from); |
| 1932 | if (source == nullptr) { |
| 1933 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uri) |
| 1934 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1935 | } else { |
| 1936 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uri) |
| 1937 | MergeFrom(*source); |
| 1938 | } |
| 1939 | } |
| 1940 | |
| 1941 | void Uri::MergeFrom(const Uri& from) { |
| 1942 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uri) |
| 1943 | GOOGLE_DCHECK_NE(&from, this); |
| 1944 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1945 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1946 | (void) cached_has_bits; |
| 1947 | |
| 1948 | if (from.uri().size() > 0) { |
| 1949 | |
| 1950 | uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); |
| 1951 | } |
| 1952 | } |
| 1953 | |
| 1954 | void Uri::CopyFrom(const ::google::protobuf::Message& from) { |
| 1955 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Uri) |
| 1956 | if (&from == this) return; |
| 1957 | Clear(); |
| 1958 | MergeFrom(from); |
| 1959 | } |
| 1960 | |
| 1961 | void Uri::CopyFrom(const Uri& from) { |
| 1962 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uri) |
| 1963 | if (&from == this) return; |
| 1964 | Clear(); |
| 1965 | MergeFrom(from); |
| 1966 | } |
| 1967 | |
| 1968 | bool Uri::IsInitialized() const { |
| 1969 | return true; |
| 1970 | } |
| 1971 | |
| 1972 | void Uri::Swap(Uri* other) { |
| 1973 | if (other == this) return; |
| 1974 | InternalSwap(other); |
| 1975 | } |
| 1976 | void Uri::InternalSwap(Uri* other) { |
| 1977 | using std::swap; |
| 1978 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1979 | uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1980 | GetArenaNoVirtual()); |
| 1981 | } |
| 1982 | |
| 1983 | ::google::protobuf::Metadata Uri::GetMetadata() const { |
| 1984 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 1985 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 1986 | } |
| 1987 | |
| 1988 | |
| 1989 | // =================================================================== |
| 1990 | |
| 1991 | void ComponentState::InitAsDefaultInstance() { |
| 1992 | ::dmi::_ComponentState_default_instance_._instance.get_mutable()->state_last_changed_ = const_cast< ::google::protobuf::Timestamp*>( |
| 1993 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 1994 | } |
| 1995 | class ComponentState::HasBitSetters { |
| 1996 | public: |
| 1997 | static const ::google::protobuf::Timestamp& state_last_changed(const ComponentState* msg); |
| 1998 | }; |
| 1999 | |
| 2000 | const ::google::protobuf::Timestamp& |
| 2001 | ComponentState::HasBitSetters::state_last_changed(const ComponentState* msg) { |
| 2002 | return *msg->state_last_changed_; |
| 2003 | } |
| 2004 | void ComponentState::clear_state_last_changed() { |
| 2005 | if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) { |
| 2006 | delete state_last_changed_; |
| 2007 | } |
| 2008 | state_last_changed_ = nullptr; |
| 2009 | } |
| 2010 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2011 | const int ComponentState::kStateLastChangedFieldNumber; |
| 2012 | const int ComponentState::kAdminStateFieldNumber; |
| 2013 | const int ComponentState::kOperStateFieldNumber; |
| 2014 | const int ComponentState::kUsageStateFieldNumber; |
| 2015 | const int ComponentState::kAlarmStateFieldNumber; |
| 2016 | const int ComponentState::kStandbyStateFieldNumber; |
| 2017 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2018 | |
| 2019 | ComponentState::ComponentState() |
| 2020 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2021 | SharedCtor(); |
| 2022 | // @@protoc_insertion_point(constructor:dmi.ComponentState) |
| 2023 | } |
| 2024 | ComponentState::ComponentState(const ComponentState& from) |
| 2025 | : ::google::protobuf::Message(), |
| 2026 | _internal_metadata_(nullptr) { |
| 2027 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2028 | if (from.has_state_last_changed()) { |
| 2029 | state_last_changed_ = new ::google::protobuf::Timestamp(*from.state_last_changed_); |
| 2030 | } else { |
| 2031 | state_last_changed_ = nullptr; |
| 2032 | } |
| 2033 | ::memcpy(&admin_state_, &from.admin_state_, |
| 2034 | static_cast<size_t>(reinterpret_cast<char*>(&standby_state_) - |
| 2035 | reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_)); |
| 2036 | // @@protoc_insertion_point(copy_constructor:dmi.ComponentState) |
| 2037 | } |
| 2038 | |
| 2039 | void ComponentState::SharedCtor() { |
| 2040 | ::google::protobuf::internal::InitSCC( |
| 2041 | &scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 2042 | ::memset(&state_last_changed_, 0, static_cast<size_t>( |
| 2043 | reinterpret_cast<char*>(&standby_state_) - |
| 2044 | reinterpret_cast<char*>(&state_last_changed_)) + sizeof(standby_state_)); |
| 2045 | } |
| 2046 | |
| 2047 | ComponentState::~ComponentState() { |
| 2048 | // @@protoc_insertion_point(destructor:dmi.ComponentState) |
| 2049 | SharedDtor(); |
| 2050 | } |
| 2051 | |
| 2052 | void ComponentState::SharedDtor() { |
| 2053 | if (this != internal_default_instance()) delete state_last_changed_; |
| 2054 | } |
| 2055 | |
| 2056 | void ComponentState::SetCachedSize(int size) const { |
| 2057 | _cached_size_.Set(size); |
| 2058 | } |
| 2059 | const ComponentState& ComponentState::default_instance() { |
| 2060 | ::google::protobuf::internal::InitSCC(&::scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 2061 | return *internal_default_instance(); |
| 2062 | } |
| 2063 | |
| 2064 | |
| 2065 | void ComponentState::Clear() { |
| 2066 | // @@protoc_insertion_point(message_clear_start:dmi.ComponentState) |
| 2067 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2068 | // Prevent compiler warnings about cached_has_bits being unused |
| 2069 | (void) cached_has_bits; |
| 2070 | |
| 2071 | if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) { |
| 2072 | delete state_last_changed_; |
| 2073 | } |
| 2074 | state_last_changed_ = nullptr; |
| 2075 | ::memset(&admin_state_, 0, static_cast<size_t>( |
| 2076 | reinterpret_cast<char*>(&standby_state_) - |
| 2077 | reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_)); |
| 2078 | _internal_metadata_.Clear(); |
| 2079 | } |
| 2080 | |
| 2081 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2082 | const char* ComponentState::_InternalParse(const char* begin, const char* end, void* object, |
| 2083 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2084 | auto msg = static_cast<ComponentState*>(object); |
| 2085 | ::google::protobuf::int32 size; (void)size; |
| 2086 | int depth; (void)depth; |
| 2087 | ::google::protobuf::uint32 tag; |
| 2088 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2089 | auto ptr = begin; |
| 2090 | while (ptr < end) { |
| 2091 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2092 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2093 | switch (tag >> 3) { |
| 2094 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2095 | case 1: { |
| 2096 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2097 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2098 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2099 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 2100 | object = msg->mutable_state_last_changed(); |
| 2101 | if (size > end - ptr) goto len_delim_till_end; |
| 2102 | ptr += size; |
| 2103 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2104 | {parser_till_end, object}, ptr - size, ptr)); |
| 2105 | break; |
| 2106 | } |
| 2107 | // .dmi.ComponentAdminState admin_state = 2; |
| 2108 | case 2: { |
| 2109 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2110 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2111 | msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val)); |
| 2112 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2113 | break; |
| 2114 | } |
| 2115 | // .dmi.ComponentOperState oper_state = 3; |
| 2116 | case 3: { |
| 2117 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 2118 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2119 | msg->set_oper_state(static_cast<::dmi::ComponentOperState>(val)); |
| 2120 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2121 | break; |
| 2122 | } |
| 2123 | // .dmi.ComponentUsageState usage_state = 4; |
| 2124 | case 4: { |
| 2125 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 2126 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2127 | msg->set_usage_state(static_cast<::dmi::ComponentUsageState>(val)); |
| 2128 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2129 | break; |
| 2130 | } |
| 2131 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2132 | case 5: { |
| 2133 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 2134 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2135 | msg->set_alarm_state(static_cast<::dmi::ComponentAlarmState>(val)); |
| 2136 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2137 | break; |
| 2138 | } |
| 2139 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2140 | case 6: { |
| 2141 | if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; |
| 2142 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2143 | msg->set_standby_state(static_cast<::dmi::ComponentStandbyState>(val)); |
| 2144 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2145 | break; |
| 2146 | } |
| 2147 | default: { |
| 2148 | handle_unusual: |
| 2149 | if ((tag & 7) == 4 || tag == 0) { |
| 2150 | ctx->EndGroup(tag); |
| 2151 | return ptr; |
| 2152 | } |
| 2153 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2154 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2155 | ptr = res.first; |
| 2156 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2157 | if (res.second) return ptr; |
| 2158 | } |
| 2159 | } // switch |
| 2160 | } // while |
| 2161 | return ptr; |
| 2162 | len_delim_till_end: |
| 2163 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2164 | {parser_till_end, object}, size); |
| 2165 | } |
| 2166 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2167 | bool ComponentState::MergePartialFromCodedStream( |
| 2168 | ::google::protobuf::io::CodedInputStream* input) { |
| 2169 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2170 | ::google::protobuf::uint32 tag; |
| 2171 | // @@protoc_insertion_point(parse_start:dmi.ComponentState) |
| 2172 | for (;;) { |
| 2173 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2174 | tag = p.first; |
| 2175 | if (!p.second) goto handle_unusual; |
| 2176 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2177 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2178 | case 1: { |
| 2179 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2180 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2181 | input, mutable_state_last_changed())); |
| 2182 | } else { |
| 2183 | goto handle_unusual; |
| 2184 | } |
| 2185 | break; |
| 2186 | } |
| 2187 | |
| 2188 | // .dmi.ComponentAdminState admin_state = 2; |
| 2189 | case 2: { |
| 2190 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2191 | int value = 0; |
| 2192 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2193 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2194 | input, &value))); |
| 2195 | set_admin_state(static_cast< ::dmi::ComponentAdminState >(value)); |
| 2196 | } else { |
| 2197 | goto handle_unusual; |
| 2198 | } |
| 2199 | break; |
| 2200 | } |
| 2201 | |
| 2202 | // .dmi.ComponentOperState oper_state = 3; |
| 2203 | case 3: { |
| 2204 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 2205 | int value = 0; |
| 2206 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2207 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2208 | input, &value))); |
| 2209 | set_oper_state(static_cast< ::dmi::ComponentOperState >(value)); |
| 2210 | } else { |
| 2211 | goto handle_unusual; |
| 2212 | } |
| 2213 | break; |
| 2214 | } |
| 2215 | |
| 2216 | // .dmi.ComponentUsageState usage_state = 4; |
| 2217 | case 4: { |
| 2218 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 2219 | int value = 0; |
| 2220 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2221 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2222 | input, &value))); |
| 2223 | set_usage_state(static_cast< ::dmi::ComponentUsageState >(value)); |
| 2224 | } else { |
| 2225 | goto handle_unusual; |
| 2226 | } |
| 2227 | break; |
| 2228 | } |
| 2229 | |
| 2230 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2231 | case 5: { |
| 2232 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 2233 | int value = 0; |
| 2234 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2235 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2236 | input, &value))); |
| 2237 | set_alarm_state(static_cast< ::dmi::ComponentAlarmState >(value)); |
| 2238 | } else { |
| 2239 | goto handle_unusual; |
| 2240 | } |
| 2241 | break; |
| 2242 | } |
| 2243 | |
| 2244 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2245 | case 6: { |
| 2246 | if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { |
| 2247 | int value = 0; |
| 2248 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2249 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2250 | input, &value))); |
| 2251 | set_standby_state(static_cast< ::dmi::ComponentStandbyState >(value)); |
| 2252 | } else { |
| 2253 | goto handle_unusual; |
| 2254 | } |
| 2255 | break; |
| 2256 | } |
| 2257 | |
| 2258 | default: { |
| 2259 | handle_unusual: |
| 2260 | if (tag == 0) { |
| 2261 | goto success; |
| 2262 | } |
| 2263 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2264 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2265 | break; |
| 2266 | } |
| 2267 | } |
| 2268 | } |
| 2269 | success: |
| 2270 | // @@protoc_insertion_point(parse_success:dmi.ComponentState) |
| 2271 | return true; |
| 2272 | failure: |
| 2273 | // @@protoc_insertion_point(parse_failure:dmi.ComponentState) |
| 2274 | return false; |
| 2275 | #undef DO_ |
| 2276 | } |
| 2277 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2278 | |
| 2279 | void ComponentState::SerializeWithCachedSizes( |
| 2280 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2281 | // @@protoc_insertion_point(serialize_start:dmi.ComponentState) |
| 2282 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2283 | (void) cached_has_bits; |
| 2284 | |
| 2285 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2286 | if (this->has_state_last_changed()) { |
| 2287 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2288 | 1, HasBitSetters::state_last_changed(this), output); |
| 2289 | } |
| 2290 | |
| 2291 | // .dmi.ComponentAdminState admin_state = 2; |
| 2292 | if (this->admin_state() != 0) { |
| 2293 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2294 | 2, this->admin_state(), output); |
| 2295 | } |
| 2296 | |
| 2297 | // .dmi.ComponentOperState oper_state = 3; |
| 2298 | if (this->oper_state() != 0) { |
| 2299 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2300 | 3, this->oper_state(), output); |
| 2301 | } |
| 2302 | |
| 2303 | // .dmi.ComponentUsageState usage_state = 4; |
| 2304 | if (this->usage_state() != 0) { |
| 2305 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2306 | 4, this->usage_state(), output); |
| 2307 | } |
| 2308 | |
| 2309 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2310 | if (this->alarm_state() != 0) { |
| 2311 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2312 | 5, this->alarm_state(), output); |
| 2313 | } |
| 2314 | |
| 2315 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2316 | if (this->standby_state() != 0) { |
| 2317 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2318 | 6, this->standby_state(), output); |
| 2319 | } |
| 2320 | |
| 2321 | if (_internal_metadata_.have_unknown_fields()) { |
| 2322 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2323 | _internal_metadata_.unknown_fields(), output); |
| 2324 | } |
| 2325 | // @@protoc_insertion_point(serialize_end:dmi.ComponentState) |
| 2326 | } |
| 2327 | |
| 2328 | ::google::protobuf::uint8* ComponentState::InternalSerializeWithCachedSizesToArray( |
| 2329 | ::google::protobuf::uint8* target) const { |
| 2330 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentState) |
| 2331 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2332 | (void) cached_has_bits; |
| 2333 | |
| 2334 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2335 | if (this->has_state_last_changed()) { |
| 2336 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2337 | InternalWriteMessageToArray( |
| 2338 | 1, HasBitSetters::state_last_changed(this), target); |
| 2339 | } |
| 2340 | |
| 2341 | // .dmi.ComponentAdminState admin_state = 2; |
| 2342 | if (this->admin_state() != 0) { |
| 2343 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2344 | 2, this->admin_state(), target); |
| 2345 | } |
| 2346 | |
| 2347 | // .dmi.ComponentOperState oper_state = 3; |
| 2348 | if (this->oper_state() != 0) { |
| 2349 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2350 | 3, this->oper_state(), target); |
| 2351 | } |
| 2352 | |
| 2353 | // .dmi.ComponentUsageState usage_state = 4; |
| 2354 | if (this->usage_state() != 0) { |
| 2355 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2356 | 4, this->usage_state(), target); |
| 2357 | } |
| 2358 | |
| 2359 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2360 | if (this->alarm_state() != 0) { |
| 2361 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2362 | 5, this->alarm_state(), target); |
| 2363 | } |
| 2364 | |
| 2365 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2366 | if (this->standby_state() != 0) { |
| 2367 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2368 | 6, this->standby_state(), target); |
| 2369 | } |
| 2370 | |
| 2371 | if (_internal_metadata_.have_unknown_fields()) { |
| 2372 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2373 | _internal_metadata_.unknown_fields(), target); |
| 2374 | } |
| 2375 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentState) |
| 2376 | return target; |
| 2377 | } |
| 2378 | |
| 2379 | size_t ComponentState::ByteSizeLong() const { |
| 2380 | // @@protoc_insertion_point(message_byte_size_start:dmi.ComponentState) |
| 2381 | size_t total_size = 0; |
| 2382 | |
| 2383 | if (_internal_metadata_.have_unknown_fields()) { |
| 2384 | total_size += |
| 2385 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2386 | _internal_metadata_.unknown_fields()); |
| 2387 | } |
| 2388 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2389 | // Prevent compiler warnings about cached_has_bits being unused |
| 2390 | (void) cached_has_bits; |
| 2391 | |
| 2392 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2393 | if (this->has_state_last_changed()) { |
| 2394 | total_size += 1 + |
| 2395 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2396 | *state_last_changed_); |
| 2397 | } |
| 2398 | |
| 2399 | // .dmi.ComponentAdminState admin_state = 2; |
| 2400 | if (this->admin_state() != 0) { |
| 2401 | total_size += 1 + |
| 2402 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state()); |
| 2403 | } |
| 2404 | |
| 2405 | // .dmi.ComponentOperState oper_state = 3; |
| 2406 | if (this->oper_state() != 0) { |
| 2407 | total_size += 1 + |
| 2408 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->oper_state()); |
| 2409 | } |
| 2410 | |
| 2411 | // .dmi.ComponentUsageState usage_state = 4; |
| 2412 | if (this->usage_state() != 0) { |
| 2413 | total_size += 1 + |
| 2414 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->usage_state()); |
| 2415 | } |
| 2416 | |
| 2417 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2418 | if (this->alarm_state() != 0) { |
| 2419 | total_size += 1 + |
| 2420 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->alarm_state()); |
| 2421 | } |
| 2422 | |
| 2423 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2424 | if (this->standby_state() != 0) { |
| 2425 | total_size += 1 + |
| 2426 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->standby_state()); |
| 2427 | } |
| 2428 | |
| 2429 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2430 | SetCachedSize(cached_size); |
| 2431 | return total_size; |
| 2432 | } |
| 2433 | |
| 2434 | void ComponentState::MergeFrom(const ::google::protobuf::Message& from) { |
| 2435 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentState) |
| 2436 | GOOGLE_DCHECK_NE(&from, this); |
| 2437 | const ComponentState* source = |
| 2438 | ::google::protobuf::DynamicCastToGenerated<ComponentState>( |
| 2439 | &from); |
| 2440 | if (source == nullptr) { |
| 2441 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentState) |
| 2442 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2443 | } else { |
| 2444 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentState) |
| 2445 | MergeFrom(*source); |
| 2446 | } |
| 2447 | } |
| 2448 | |
| 2449 | void ComponentState::MergeFrom(const ComponentState& from) { |
| 2450 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentState) |
| 2451 | GOOGLE_DCHECK_NE(&from, this); |
| 2452 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2453 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2454 | (void) cached_has_bits; |
| 2455 | |
| 2456 | if (from.has_state_last_changed()) { |
| 2457 | mutable_state_last_changed()->::google::protobuf::Timestamp::MergeFrom(from.state_last_changed()); |
| 2458 | } |
| 2459 | if (from.admin_state() != 0) { |
| 2460 | set_admin_state(from.admin_state()); |
| 2461 | } |
| 2462 | if (from.oper_state() != 0) { |
| 2463 | set_oper_state(from.oper_state()); |
| 2464 | } |
| 2465 | if (from.usage_state() != 0) { |
| 2466 | set_usage_state(from.usage_state()); |
| 2467 | } |
| 2468 | if (from.alarm_state() != 0) { |
| 2469 | set_alarm_state(from.alarm_state()); |
| 2470 | } |
| 2471 | if (from.standby_state() != 0) { |
| 2472 | set_standby_state(from.standby_state()); |
| 2473 | } |
| 2474 | } |
| 2475 | |
| 2476 | void ComponentState::CopyFrom(const ::google::protobuf::Message& from) { |
| 2477 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentState) |
| 2478 | if (&from == this) return; |
| 2479 | Clear(); |
| 2480 | MergeFrom(from); |
| 2481 | } |
| 2482 | |
| 2483 | void ComponentState::CopyFrom(const ComponentState& from) { |
| 2484 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentState) |
| 2485 | if (&from == this) return; |
| 2486 | Clear(); |
| 2487 | MergeFrom(from); |
| 2488 | } |
| 2489 | |
| 2490 | bool ComponentState::IsInitialized() const { |
| 2491 | return true; |
| 2492 | } |
| 2493 | |
| 2494 | void ComponentState::Swap(ComponentState* other) { |
| 2495 | if (other == this) return; |
| 2496 | InternalSwap(other); |
| 2497 | } |
| 2498 | void ComponentState::InternalSwap(ComponentState* other) { |
| 2499 | using std::swap; |
| 2500 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2501 | swap(state_last_changed_, other->state_last_changed_); |
| 2502 | swap(admin_state_, other->admin_state_); |
| 2503 | swap(oper_state_, other->oper_state_); |
| 2504 | swap(usage_state_, other->usage_state_); |
| 2505 | swap(alarm_state_, other->alarm_state_); |
| 2506 | swap(standby_state_, other->standby_state_); |
| 2507 | } |
| 2508 | |
| 2509 | ::google::protobuf::Metadata ComponentState::GetMetadata() const { |
| 2510 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 2511 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 2512 | } |
| 2513 | |
| 2514 | |
| 2515 | // =================================================================== |
| 2516 | |
| 2517 | void ComponentSensorData::InitAsDefaultInstance() { |
| 2518 | ::dmi::_ComponentSensorData_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>( |
| 2519 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 2520 | } |
| 2521 | class ComponentSensorData::HasBitSetters { |
| 2522 | public: |
| 2523 | static const ::google::protobuf::Timestamp& timestamp(const ComponentSensorData* msg); |
| 2524 | }; |
| 2525 | |
| 2526 | const ::google::protobuf::Timestamp& |
| 2527 | ComponentSensorData::HasBitSetters::timestamp(const ComponentSensorData* msg) { |
| 2528 | return *msg->timestamp_; |
| 2529 | } |
| 2530 | void ComponentSensorData::clear_timestamp() { |
| 2531 | if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { |
| 2532 | delete timestamp_; |
| 2533 | } |
| 2534 | timestamp_ = nullptr; |
| 2535 | } |
| 2536 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2537 | const int ComponentSensorData::kValueFieldNumber; |
| 2538 | const int ComponentSensorData::kTypeFieldNumber; |
| 2539 | const int ComponentSensorData::kScaleFieldNumber; |
| 2540 | const int ComponentSensorData::kPrecisionFieldNumber; |
| 2541 | const int ComponentSensorData::kStatusFieldNumber; |
| 2542 | const int ComponentSensorData::kUnitsDisplayFieldNumber; |
| 2543 | const int ComponentSensorData::kTimestampFieldNumber; |
| 2544 | const int ComponentSensorData::kValueUpdateRateFieldNumber; |
| 2545 | const int ComponentSensorData::kDataTypeFieldNumber; |
| 2546 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2547 | |
| 2548 | ComponentSensorData::ComponentSensorData() |
| 2549 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2550 | SharedCtor(); |
| 2551 | // @@protoc_insertion_point(constructor:dmi.ComponentSensorData) |
| 2552 | } |
| 2553 | ComponentSensorData::ComponentSensorData(const ComponentSensorData& from) |
| 2554 | : ::google::protobuf::Message(), |
| 2555 | _internal_metadata_(nullptr) { |
| 2556 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2557 | units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2558 | if (from.units_display().size() > 0) { |
| 2559 | units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_); |
| 2560 | } |
| 2561 | data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2562 | if (from.data_type().size() > 0) { |
| 2563 | data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_); |
| 2564 | } |
| 2565 | if (from.has_timestamp()) { |
| 2566 | timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_); |
| 2567 | } else { |
| 2568 | timestamp_ = nullptr; |
| 2569 | } |
| 2570 | ::memcpy(&value_, &from.value_, |
| 2571 | static_cast<size_t>(reinterpret_cast<char*>(&value_update_rate_) - |
| 2572 | reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_)); |
| 2573 | // @@protoc_insertion_point(copy_constructor:dmi.ComponentSensorData) |
| 2574 | } |
| 2575 | |
| 2576 | void ComponentSensorData::SharedCtor() { |
| 2577 | ::google::protobuf::internal::InitSCC( |
| 2578 | &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 2579 | units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2580 | data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2581 | ::memset(×tamp_, 0, static_cast<size_t>( |
| 2582 | reinterpret_cast<char*>(&value_update_rate_) - |
| 2583 | reinterpret_cast<char*>(×tamp_)) + sizeof(value_update_rate_)); |
| 2584 | } |
| 2585 | |
| 2586 | ComponentSensorData::~ComponentSensorData() { |
| 2587 | // @@protoc_insertion_point(destructor:dmi.ComponentSensorData) |
| 2588 | SharedDtor(); |
| 2589 | } |
| 2590 | |
| 2591 | void ComponentSensorData::SharedDtor() { |
| 2592 | units_display_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2593 | data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2594 | if (this != internal_default_instance()) delete timestamp_; |
| 2595 | } |
| 2596 | |
| 2597 | void ComponentSensorData::SetCachedSize(int size) const { |
| 2598 | _cached_size_.Set(size); |
| 2599 | } |
| 2600 | const ComponentSensorData& ComponentSensorData::default_instance() { |
| 2601 | ::google::protobuf::internal::InitSCC(&::scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 2602 | return *internal_default_instance(); |
| 2603 | } |
| 2604 | |
| 2605 | |
| 2606 | void ComponentSensorData::Clear() { |
| 2607 | // @@protoc_insertion_point(message_clear_start:dmi.ComponentSensorData) |
| 2608 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2609 | // Prevent compiler warnings about cached_has_bits being unused |
| 2610 | (void) cached_has_bits; |
| 2611 | |
| 2612 | units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2613 | data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2614 | if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { |
| 2615 | delete timestamp_; |
| 2616 | } |
| 2617 | timestamp_ = nullptr; |
| 2618 | ::memset(&value_, 0, static_cast<size_t>( |
| 2619 | reinterpret_cast<char*>(&value_update_rate_) - |
| 2620 | reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_)); |
| 2621 | _internal_metadata_.Clear(); |
| 2622 | } |
| 2623 | |
| 2624 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2625 | const char* ComponentSensorData::_InternalParse(const char* begin, const char* end, void* object, |
| 2626 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2627 | auto msg = static_cast<ComponentSensorData*>(object); |
| 2628 | ::google::protobuf::int32 size; (void)size; |
| 2629 | int depth; (void)depth; |
| 2630 | ::google::protobuf::uint32 tag; |
| 2631 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2632 | auto ptr = begin; |
| 2633 | while (ptr < end) { |
| 2634 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2635 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2636 | switch (tag >> 3) { |
| 2637 | // int32 value = 1; |
| 2638 | case 1: { |
| 2639 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2640 | msg->set_value(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2641 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2642 | break; |
| 2643 | } |
| 2644 | // .dmi.DataValueType type = 2; |
| 2645 | case 2: { |
| 2646 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2647 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2648 | msg->set_type(static_cast<::dmi::DataValueType>(val)); |
| 2649 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2650 | break; |
| 2651 | } |
| 2652 | // .dmi.ValueScale scale = 3; |
| 2653 | case 3: { |
| 2654 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 2655 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2656 | msg->set_scale(static_cast<::dmi::ValueScale>(val)); |
| 2657 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2658 | break; |
| 2659 | } |
| 2660 | // int32 precision = 4; |
| 2661 | case 4: { |
| 2662 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 2663 | msg->set_precision(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2664 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2665 | break; |
| 2666 | } |
| 2667 | // .dmi.SensorStatus status = 5; |
| 2668 | case 5: { |
| 2669 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 2670 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2671 | msg->set_status(static_cast<::dmi::SensorStatus>(val)); |
| 2672 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2673 | break; |
| 2674 | } |
| 2675 | // string units_display = 6; |
| 2676 | case 6: { |
| 2677 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 2678 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2679 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2680 | ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.units_display"); |
| 2681 | object = msg->mutable_units_display(); |
| 2682 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2683 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2684 | goto string_till_end; |
| 2685 | } |
| 2686 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2687 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2688 | ptr += size; |
| 2689 | break; |
| 2690 | } |
| 2691 | // .google.protobuf.Timestamp timestamp = 7; |
| 2692 | case 7: { |
| 2693 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 2694 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2695 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2696 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 2697 | object = msg->mutable_timestamp(); |
| 2698 | if (size > end - ptr) goto len_delim_till_end; |
| 2699 | ptr += size; |
| 2700 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2701 | {parser_till_end, object}, ptr - size, ptr)); |
| 2702 | break; |
| 2703 | } |
| 2704 | // uint32 value_update_rate = 8; |
| 2705 | case 8: { |
| 2706 | if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; |
| 2707 | msg->set_value_update_rate(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2708 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2709 | break; |
| 2710 | } |
| 2711 | // string data_type = 9; |
| 2712 | case 9: { |
| 2713 | if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; |
| 2714 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2715 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2716 | ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.data_type"); |
| 2717 | object = msg->mutable_data_type(); |
| 2718 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2719 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2720 | goto string_till_end; |
| 2721 | } |
| 2722 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2723 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2724 | ptr += size; |
| 2725 | break; |
| 2726 | } |
| 2727 | default: { |
| 2728 | handle_unusual: |
| 2729 | if ((tag & 7) == 4 || tag == 0) { |
| 2730 | ctx->EndGroup(tag); |
| 2731 | return ptr; |
| 2732 | } |
| 2733 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2734 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2735 | ptr = res.first; |
| 2736 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2737 | if (res.second) return ptr; |
| 2738 | } |
| 2739 | } // switch |
| 2740 | } // while |
| 2741 | return ptr; |
| 2742 | string_till_end: |
| 2743 | static_cast<::std::string*>(object)->clear(); |
| 2744 | static_cast<::std::string*>(object)->reserve(size); |
| 2745 | goto len_delim_till_end; |
| 2746 | len_delim_till_end: |
| 2747 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2748 | {parser_till_end, object}, size); |
| 2749 | } |
| 2750 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2751 | bool ComponentSensorData::MergePartialFromCodedStream( |
| 2752 | ::google::protobuf::io::CodedInputStream* input) { |
| 2753 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2754 | ::google::protobuf::uint32 tag; |
| 2755 | // @@protoc_insertion_point(parse_start:dmi.ComponentSensorData) |
| 2756 | for (;;) { |
| 2757 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2758 | tag = p.first; |
| 2759 | if (!p.second) goto handle_unusual; |
| 2760 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2761 | // int32 value = 1; |
| 2762 | case 1: { |
| 2763 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2764 | |
| 2765 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2766 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2767 | input, &value_))); |
| 2768 | } else { |
| 2769 | goto handle_unusual; |
| 2770 | } |
| 2771 | break; |
| 2772 | } |
| 2773 | |
| 2774 | // .dmi.DataValueType type = 2; |
| 2775 | case 2: { |
| 2776 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2777 | int value = 0; |
| 2778 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2779 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2780 | input, &value))); |
| 2781 | set_type(static_cast< ::dmi::DataValueType >(value)); |
| 2782 | } else { |
| 2783 | goto handle_unusual; |
| 2784 | } |
| 2785 | break; |
| 2786 | } |
| 2787 | |
| 2788 | // .dmi.ValueScale scale = 3; |
| 2789 | case 3: { |
| 2790 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 2791 | int value = 0; |
| 2792 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2793 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2794 | input, &value))); |
| 2795 | set_scale(static_cast< ::dmi::ValueScale >(value)); |
| 2796 | } else { |
| 2797 | goto handle_unusual; |
| 2798 | } |
| 2799 | break; |
| 2800 | } |
| 2801 | |
| 2802 | // int32 precision = 4; |
| 2803 | case 4: { |
| 2804 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 2805 | |
| 2806 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2807 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2808 | input, &precision_))); |
| 2809 | } else { |
| 2810 | goto handle_unusual; |
| 2811 | } |
| 2812 | break; |
| 2813 | } |
| 2814 | |
| 2815 | // .dmi.SensorStatus status = 5; |
| 2816 | case 5: { |
| 2817 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 2818 | int value = 0; |
| 2819 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2820 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2821 | input, &value))); |
| 2822 | set_status(static_cast< ::dmi::SensorStatus >(value)); |
| 2823 | } else { |
| 2824 | goto handle_unusual; |
| 2825 | } |
| 2826 | break; |
| 2827 | } |
| 2828 | |
| 2829 | // string units_display = 6; |
| 2830 | case 6: { |
| 2831 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 2832 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2833 | input, this->mutable_units_display())); |
| 2834 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2835 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 2836 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2837 | "dmi.ComponentSensorData.units_display")); |
| 2838 | } else { |
| 2839 | goto handle_unusual; |
| 2840 | } |
| 2841 | break; |
| 2842 | } |
| 2843 | |
| 2844 | // .google.protobuf.Timestamp timestamp = 7; |
| 2845 | case 7: { |
| 2846 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 2847 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2848 | input, mutable_timestamp())); |
| 2849 | } else { |
| 2850 | goto handle_unusual; |
| 2851 | } |
| 2852 | break; |
| 2853 | } |
| 2854 | |
| 2855 | // uint32 value_update_rate = 8; |
| 2856 | case 8: { |
| 2857 | if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { |
| 2858 | |
| 2859 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2860 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 2861 | input, &value_update_rate_))); |
| 2862 | } else { |
| 2863 | goto handle_unusual; |
| 2864 | } |
| 2865 | break; |
| 2866 | } |
| 2867 | |
| 2868 | // string data_type = 9; |
| 2869 | case 9: { |
| 2870 | if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { |
| 2871 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2872 | input, this->mutable_data_type())); |
| 2873 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2874 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 2875 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2876 | "dmi.ComponentSensorData.data_type")); |
| 2877 | } else { |
| 2878 | goto handle_unusual; |
| 2879 | } |
| 2880 | break; |
| 2881 | } |
| 2882 | |
| 2883 | default: { |
| 2884 | handle_unusual: |
| 2885 | if (tag == 0) { |
| 2886 | goto success; |
| 2887 | } |
| 2888 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2889 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2890 | break; |
| 2891 | } |
| 2892 | } |
| 2893 | } |
| 2894 | success: |
| 2895 | // @@protoc_insertion_point(parse_success:dmi.ComponentSensorData) |
| 2896 | return true; |
| 2897 | failure: |
| 2898 | // @@protoc_insertion_point(parse_failure:dmi.ComponentSensorData) |
| 2899 | return false; |
| 2900 | #undef DO_ |
| 2901 | } |
| 2902 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2903 | |
| 2904 | void ComponentSensorData::SerializeWithCachedSizes( |
| 2905 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2906 | // @@protoc_insertion_point(serialize_start:dmi.ComponentSensorData) |
| 2907 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2908 | (void) cached_has_bits; |
| 2909 | |
| 2910 | // int32 value = 1; |
| 2911 | if (this->value() != 0) { |
| 2912 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output); |
| 2913 | } |
| 2914 | |
| 2915 | // .dmi.DataValueType type = 2; |
| 2916 | if (this->type() != 0) { |
| 2917 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2918 | 2, this->type(), output); |
| 2919 | } |
| 2920 | |
| 2921 | // .dmi.ValueScale scale = 3; |
| 2922 | if (this->scale() != 0) { |
| 2923 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2924 | 3, this->scale(), output); |
| 2925 | } |
| 2926 | |
| 2927 | // int32 precision = 4; |
| 2928 | if (this->precision() != 0) { |
| 2929 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->precision(), output); |
| 2930 | } |
| 2931 | |
| 2932 | // .dmi.SensorStatus status = 5; |
| 2933 | if (this->status() != 0) { |
| 2934 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2935 | 5, this->status(), output); |
| 2936 | } |
| 2937 | |
| 2938 | // string units_display = 6; |
| 2939 | if (this->units_display().size() > 0) { |
| 2940 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2941 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 2942 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2943 | "dmi.ComponentSensorData.units_display"); |
| 2944 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2945 | 6, this->units_display(), output); |
| 2946 | } |
| 2947 | |
| 2948 | // .google.protobuf.Timestamp timestamp = 7; |
| 2949 | if (this->has_timestamp()) { |
| 2950 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2951 | 7, HasBitSetters::timestamp(this), output); |
| 2952 | } |
| 2953 | |
| 2954 | // uint32 value_update_rate = 8; |
| 2955 | if (this->value_update_rate() != 0) { |
| 2956 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->value_update_rate(), output); |
| 2957 | } |
| 2958 | |
| 2959 | // string data_type = 9; |
| 2960 | if (this->data_type().size() > 0) { |
| 2961 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2962 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 2963 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2964 | "dmi.ComponentSensorData.data_type"); |
| 2965 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2966 | 9, this->data_type(), output); |
| 2967 | } |
| 2968 | |
| 2969 | if (_internal_metadata_.have_unknown_fields()) { |
| 2970 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2971 | _internal_metadata_.unknown_fields(), output); |
| 2972 | } |
| 2973 | // @@protoc_insertion_point(serialize_end:dmi.ComponentSensorData) |
| 2974 | } |
| 2975 | |
| 2976 | ::google::protobuf::uint8* ComponentSensorData::InternalSerializeWithCachedSizesToArray( |
| 2977 | ::google::protobuf::uint8* target) const { |
| 2978 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentSensorData) |
| 2979 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2980 | (void) cached_has_bits; |
| 2981 | |
| 2982 | // int32 value = 1; |
| 2983 | if (this->value() != 0) { |
| 2984 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target); |
| 2985 | } |
| 2986 | |
| 2987 | // .dmi.DataValueType type = 2; |
| 2988 | if (this->type() != 0) { |
| 2989 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2990 | 2, this->type(), target); |
| 2991 | } |
| 2992 | |
| 2993 | // .dmi.ValueScale scale = 3; |
| 2994 | if (this->scale() != 0) { |
| 2995 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2996 | 3, this->scale(), target); |
| 2997 | } |
| 2998 | |
| 2999 | // int32 precision = 4; |
| 3000 | if (this->precision() != 0) { |
| 3001 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->precision(), target); |
| 3002 | } |
| 3003 | |
| 3004 | // .dmi.SensorStatus status = 5; |
| 3005 | if (this->status() != 0) { |
| 3006 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3007 | 5, this->status(), target); |
| 3008 | } |
| 3009 | |
| 3010 | // string units_display = 6; |
| 3011 | if (this->units_display().size() > 0) { |
| 3012 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3013 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 3014 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3015 | "dmi.ComponentSensorData.units_display"); |
| 3016 | target = |
| 3017 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3018 | 6, this->units_display(), target); |
| 3019 | } |
| 3020 | |
| 3021 | // .google.protobuf.Timestamp timestamp = 7; |
| 3022 | if (this->has_timestamp()) { |
| 3023 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3024 | InternalWriteMessageToArray( |
| 3025 | 7, HasBitSetters::timestamp(this), target); |
| 3026 | } |
| 3027 | |
| 3028 | // uint32 value_update_rate = 8; |
| 3029 | if (this->value_update_rate() != 0) { |
| 3030 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->value_update_rate(), target); |
| 3031 | } |
| 3032 | |
| 3033 | // string data_type = 9; |
| 3034 | if (this->data_type().size() > 0) { |
| 3035 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3036 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 3037 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3038 | "dmi.ComponentSensorData.data_type"); |
| 3039 | target = |
| 3040 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3041 | 9, this->data_type(), target); |
| 3042 | } |
| 3043 | |
| 3044 | if (_internal_metadata_.have_unknown_fields()) { |
| 3045 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3046 | _internal_metadata_.unknown_fields(), target); |
| 3047 | } |
| 3048 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentSensorData) |
| 3049 | return target; |
| 3050 | } |
| 3051 | |
| 3052 | size_t ComponentSensorData::ByteSizeLong() const { |
| 3053 | // @@protoc_insertion_point(message_byte_size_start:dmi.ComponentSensorData) |
| 3054 | size_t total_size = 0; |
| 3055 | |
| 3056 | if (_internal_metadata_.have_unknown_fields()) { |
| 3057 | total_size += |
| 3058 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3059 | _internal_metadata_.unknown_fields()); |
| 3060 | } |
| 3061 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3062 | // Prevent compiler warnings about cached_has_bits being unused |
| 3063 | (void) cached_has_bits; |
| 3064 | |
| 3065 | // string units_display = 6; |
| 3066 | if (this->units_display().size() > 0) { |
| 3067 | total_size += 1 + |
| 3068 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3069 | this->units_display()); |
| 3070 | } |
| 3071 | |
| 3072 | // string data_type = 9; |
| 3073 | if (this->data_type().size() > 0) { |
| 3074 | total_size += 1 + |
| 3075 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3076 | this->data_type()); |
| 3077 | } |
| 3078 | |
| 3079 | // .google.protobuf.Timestamp timestamp = 7; |
| 3080 | if (this->has_timestamp()) { |
| 3081 | total_size += 1 + |
| 3082 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3083 | *timestamp_); |
| 3084 | } |
| 3085 | |
| 3086 | // int32 value = 1; |
| 3087 | if (this->value() != 0) { |
| 3088 | total_size += 1 + |
| 3089 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3090 | this->value()); |
| 3091 | } |
| 3092 | |
| 3093 | // .dmi.DataValueType type = 2; |
| 3094 | if (this->type() != 0) { |
| 3095 | total_size += 1 + |
| 3096 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 3097 | } |
| 3098 | |
| 3099 | // .dmi.ValueScale scale = 3; |
| 3100 | if (this->scale() != 0) { |
| 3101 | total_size += 1 + |
| 3102 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->scale()); |
| 3103 | } |
| 3104 | |
| 3105 | // int32 precision = 4; |
| 3106 | if (this->precision() != 0) { |
| 3107 | total_size += 1 + |
| 3108 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3109 | this->precision()); |
| 3110 | } |
| 3111 | |
| 3112 | // .dmi.SensorStatus status = 5; |
| 3113 | if (this->status() != 0) { |
| 3114 | total_size += 1 + |
| 3115 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3116 | } |
| 3117 | |
| 3118 | // uint32 value_update_rate = 8; |
| 3119 | if (this->value_update_rate() != 0) { |
| 3120 | total_size += 1 + |
| 3121 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 3122 | this->value_update_rate()); |
| 3123 | } |
| 3124 | |
| 3125 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3126 | SetCachedSize(cached_size); |
| 3127 | return total_size; |
| 3128 | } |
| 3129 | |
| 3130 | void ComponentSensorData::MergeFrom(const ::google::protobuf::Message& from) { |
| 3131 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentSensorData) |
| 3132 | GOOGLE_DCHECK_NE(&from, this); |
| 3133 | const ComponentSensorData* source = |
| 3134 | ::google::protobuf::DynamicCastToGenerated<ComponentSensorData>( |
| 3135 | &from); |
| 3136 | if (source == nullptr) { |
| 3137 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentSensorData) |
| 3138 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3139 | } else { |
| 3140 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentSensorData) |
| 3141 | MergeFrom(*source); |
| 3142 | } |
| 3143 | } |
| 3144 | |
| 3145 | void ComponentSensorData::MergeFrom(const ComponentSensorData& from) { |
| 3146 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentSensorData) |
| 3147 | GOOGLE_DCHECK_NE(&from, this); |
| 3148 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3149 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3150 | (void) cached_has_bits; |
| 3151 | |
| 3152 | if (from.units_display().size() > 0) { |
| 3153 | |
| 3154 | units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_); |
| 3155 | } |
| 3156 | if (from.data_type().size() > 0) { |
| 3157 | |
| 3158 | data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_); |
| 3159 | } |
| 3160 | if (from.has_timestamp()) { |
| 3161 | mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp()); |
| 3162 | } |
| 3163 | if (from.value() != 0) { |
| 3164 | set_value(from.value()); |
| 3165 | } |
| 3166 | if (from.type() != 0) { |
| 3167 | set_type(from.type()); |
| 3168 | } |
| 3169 | if (from.scale() != 0) { |
| 3170 | set_scale(from.scale()); |
| 3171 | } |
| 3172 | if (from.precision() != 0) { |
| 3173 | set_precision(from.precision()); |
| 3174 | } |
| 3175 | if (from.status() != 0) { |
| 3176 | set_status(from.status()); |
| 3177 | } |
| 3178 | if (from.value_update_rate() != 0) { |
| 3179 | set_value_update_rate(from.value_update_rate()); |
| 3180 | } |
| 3181 | } |
| 3182 | |
| 3183 | void ComponentSensorData::CopyFrom(const ::google::protobuf::Message& from) { |
| 3184 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentSensorData) |
| 3185 | if (&from == this) return; |
| 3186 | Clear(); |
| 3187 | MergeFrom(from); |
| 3188 | } |
| 3189 | |
| 3190 | void ComponentSensorData::CopyFrom(const ComponentSensorData& from) { |
| 3191 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentSensorData) |
| 3192 | if (&from == this) return; |
| 3193 | Clear(); |
| 3194 | MergeFrom(from); |
| 3195 | } |
| 3196 | |
| 3197 | bool ComponentSensorData::IsInitialized() const { |
| 3198 | return true; |
| 3199 | } |
| 3200 | |
| 3201 | void ComponentSensorData::Swap(ComponentSensorData* other) { |
| 3202 | if (other == this) return; |
| 3203 | InternalSwap(other); |
| 3204 | } |
| 3205 | void ComponentSensorData::InternalSwap(ComponentSensorData* other) { |
| 3206 | using std::swap; |
| 3207 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3208 | units_display_.Swap(&other->units_display_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3209 | GetArenaNoVirtual()); |
| 3210 | data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3211 | GetArenaNoVirtual()); |
| 3212 | swap(timestamp_, other->timestamp_); |
| 3213 | swap(value_, other->value_); |
| 3214 | swap(type_, other->type_); |
| 3215 | swap(scale_, other->scale_); |
| 3216 | swap(precision_, other->precision_); |
| 3217 | swap(status_, other->status_); |
| 3218 | swap(value_update_rate_, other->value_update_rate_); |
| 3219 | } |
| 3220 | |
| 3221 | ::google::protobuf::Metadata ComponentSensorData::GetMetadata() const { |
| 3222 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 3223 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 3224 | } |
| 3225 | |
| 3226 | |
| 3227 | // =================================================================== |
| 3228 | |
| 3229 | void PortComponentAttributes::InitAsDefaultInstance() { |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3230 | ::dmi::_PortComponentAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>( |
| 3231 | ::dmi::PonIdConfig::internal_default_instance()); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3232 | } |
| 3233 | class PortComponentAttributes::HasBitSetters { |
| 3234 | public: |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3235 | static const ::dmi::PonIdConfig& pon_id_config(const PortComponentAttributes* msg); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3236 | }; |
| 3237 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3238 | const ::dmi::PonIdConfig& |
| 3239 | PortComponentAttributes::HasBitSetters::pon_id_config(const PortComponentAttributes* msg) { |
| 3240 | return *msg->pon_id_config_; |
| 3241 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3242 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3243 | const int PortComponentAttributes::kConnectorTypeFieldNumber; |
| 3244 | const int PortComponentAttributes::kSpeedFieldNumber; |
| 3245 | const int PortComponentAttributes::kProtocolFieldNumber; |
| 3246 | const int PortComponentAttributes::kPhysicalLabelFieldNumber; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3247 | const int PortComponentAttributes::kMappingLabelFieldNumber; |
| 3248 | const int PortComponentAttributes::kPonIdConfigFieldNumber; |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3249 | const int PortComponentAttributes::kSpeedAutonegotiationFieldNumber; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3250 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3251 | |
| 3252 | PortComponentAttributes::PortComponentAttributes() |
| 3253 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3254 | SharedCtor(); |
| 3255 | // @@protoc_insertion_point(constructor:dmi.PortComponentAttributes) |
| 3256 | } |
| 3257 | PortComponentAttributes::PortComponentAttributes(const PortComponentAttributes& from) |
| 3258 | : ::google::protobuf::Message(), |
| 3259 | _internal_metadata_(nullptr) { |
| 3260 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3261 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3262 | if (from.physical_label().size() > 0) { |
| 3263 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 3264 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3265 | mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3266 | if (from.mapping_label().size() > 0) { |
| 3267 | mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_); |
| 3268 | } |
| 3269 | if (from.has_pon_id_config()) { |
| 3270 | pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_); |
| 3271 | } else { |
| 3272 | pon_id_config_ = nullptr; |
| 3273 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3274 | ::memcpy(&connector_type_, &from.connector_type_, |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3275 | static_cast<size_t>(reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3276 | reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3277 | // @@protoc_insertion_point(copy_constructor:dmi.PortComponentAttributes) |
| 3278 | } |
| 3279 | |
| 3280 | void PortComponentAttributes::SharedCtor() { |
| 3281 | ::google::protobuf::internal::InitSCC( |
| 3282 | &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
| 3283 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3284 | mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3285 | ::memset(&pon_id_config_, 0, static_cast<size_t>( |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3286 | reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3287 | reinterpret_cast<char*>(&pon_id_config_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3288 | } |
| 3289 | |
| 3290 | PortComponentAttributes::~PortComponentAttributes() { |
| 3291 | // @@protoc_insertion_point(destructor:dmi.PortComponentAttributes) |
| 3292 | SharedDtor(); |
| 3293 | } |
| 3294 | |
| 3295 | void PortComponentAttributes::SharedDtor() { |
| 3296 | physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3297 | mapping_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3298 | if (this != internal_default_instance()) delete pon_id_config_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3299 | } |
| 3300 | |
| 3301 | void PortComponentAttributes::SetCachedSize(int size) const { |
| 3302 | _cached_size_.Set(size); |
| 3303 | } |
| 3304 | const PortComponentAttributes& PortComponentAttributes::default_instance() { |
| 3305 | ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
| 3306 | return *internal_default_instance(); |
| 3307 | } |
| 3308 | |
| 3309 | |
| 3310 | void PortComponentAttributes::Clear() { |
| 3311 | // @@protoc_insertion_point(message_clear_start:dmi.PortComponentAttributes) |
| 3312 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3313 | // Prevent compiler warnings about cached_has_bits being unused |
| 3314 | (void) cached_has_bits; |
| 3315 | |
| 3316 | physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3317 | mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3318 | if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) { |
| 3319 | delete pon_id_config_; |
| 3320 | } |
| 3321 | pon_id_config_ = nullptr; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3322 | ::memset(&connector_type_, 0, static_cast<size_t>( |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3323 | reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3324 | reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3325 | _internal_metadata_.Clear(); |
| 3326 | } |
| 3327 | |
| 3328 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3329 | const char* PortComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 3330 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3331 | auto msg = static_cast<PortComponentAttributes*>(object); |
| 3332 | ::google::protobuf::int32 size; (void)size; |
| 3333 | int depth; (void)depth; |
| 3334 | ::google::protobuf::uint32 tag; |
| 3335 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3336 | auto ptr = begin; |
| 3337 | while (ptr < end) { |
| 3338 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3339 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3340 | switch (tag >> 3) { |
| 3341 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3342 | case 1: { |
| 3343 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3344 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3345 | msg->set_connector_type(static_cast<::dmi::PortComponentAttributes_ConnectorType>(val)); |
| 3346 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3347 | break; |
| 3348 | } |
| 3349 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3350 | case 2: { |
| 3351 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3352 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3353 | msg->set_speed(static_cast<::dmi::PortComponentAttributes_Speed>(val)); |
| 3354 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3355 | break; |
| 3356 | } |
| 3357 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3358 | case 3: { |
| 3359 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 3360 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3361 | msg->set_protocol(static_cast<::dmi::PortComponentAttributes_Protocol>(val)); |
| 3362 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3363 | break; |
| 3364 | } |
| 3365 | // string physical_label = 4; |
| 3366 | case 4: { |
| 3367 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3368 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3369 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3370 | ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.physical_label"); |
| 3371 | object = msg->mutable_physical_label(); |
| 3372 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3373 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3374 | goto string_till_end; |
| 3375 | } |
| 3376 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3377 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3378 | ptr += size; |
| 3379 | break; |
| 3380 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3381 | // string mapping_label = 5; |
| 3382 | case 5: { |
| 3383 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 3384 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3385 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3386 | ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.mapping_label"); |
| 3387 | object = msg->mutable_mapping_label(); |
| 3388 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3389 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3390 | goto string_till_end; |
| 3391 | } |
| 3392 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3393 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3394 | ptr += size; |
| 3395 | break; |
| 3396 | } |
| 3397 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3398 | case 6: { |
| 3399 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 3400 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3401 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3402 | parser_till_end = ::dmi::PonIdConfig::_InternalParse; |
| 3403 | object = msg->mutable_pon_id_config(); |
| 3404 | if (size > end - ptr) goto len_delim_till_end; |
| 3405 | ptr += size; |
| 3406 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3407 | {parser_till_end, object}, ptr - size, ptr)); |
| 3408 | break; |
| 3409 | } |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3410 | // bool speed_autonegotiation = 7; |
| 3411 | case 7: { |
| 3412 | if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; |
| 3413 | msg->set_speed_autonegotiation(::google::protobuf::internal::ReadVarint(&ptr)); |
| 3414 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3415 | break; |
| 3416 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3417 | default: { |
| 3418 | handle_unusual: |
| 3419 | if ((tag & 7) == 4 || tag == 0) { |
| 3420 | ctx->EndGroup(tag); |
| 3421 | return ptr; |
| 3422 | } |
| 3423 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3424 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3425 | ptr = res.first; |
| 3426 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3427 | if (res.second) return ptr; |
| 3428 | } |
| 3429 | } // switch |
| 3430 | } // while |
| 3431 | return ptr; |
| 3432 | string_till_end: |
| 3433 | static_cast<::std::string*>(object)->clear(); |
| 3434 | static_cast<::std::string*>(object)->reserve(size); |
| 3435 | goto len_delim_till_end; |
| 3436 | len_delim_till_end: |
| 3437 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3438 | {parser_till_end, object}, size); |
| 3439 | } |
| 3440 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3441 | bool PortComponentAttributes::MergePartialFromCodedStream( |
| 3442 | ::google::protobuf::io::CodedInputStream* input) { |
| 3443 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3444 | ::google::protobuf::uint32 tag; |
| 3445 | // @@protoc_insertion_point(parse_start:dmi.PortComponentAttributes) |
| 3446 | for (;;) { |
| 3447 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3448 | tag = p.first; |
| 3449 | if (!p.second) goto handle_unusual; |
| 3450 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3451 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3452 | case 1: { |
| 3453 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3454 | int value = 0; |
| 3455 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3456 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3457 | input, &value))); |
| 3458 | set_connector_type(static_cast< ::dmi::PortComponentAttributes_ConnectorType >(value)); |
| 3459 | } else { |
| 3460 | goto handle_unusual; |
| 3461 | } |
| 3462 | break; |
| 3463 | } |
| 3464 | |
| 3465 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3466 | case 2: { |
| 3467 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3468 | int value = 0; |
| 3469 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3470 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3471 | input, &value))); |
| 3472 | set_speed(static_cast< ::dmi::PortComponentAttributes_Speed >(value)); |
| 3473 | } else { |
| 3474 | goto handle_unusual; |
| 3475 | } |
| 3476 | break; |
| 3477 | } |
| 3478 | |
| 3479 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3480 | case 3: { |
| 3481 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 3482 | int value = 0; |
| 3483 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3484 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3485 | input, &value))); |
| 3486 | set_protocol(static_cast< ::dmi::PortComponentAttributes_Protocol >(value)); |
| 3487 | } else { |
| 3488 | goto handle_unusual; |
| 3489 | } |
| 3490 | break; |
| 3491 | } |
| 3492 | |
| 3493 | // string physical_label = 4; |
| 3494 | case 4: { |
| 3495 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3496 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3497 | input, this->mutable_physical_label())); |
| 3498 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3499 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3500 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3501 | "dmi.PortComponentAttributes.physical_label")); |
| 3502 | } else { |
| 3503 | goto handle_unusual; |
| 3504 | } |
| 3505 | break; |
| 3506 | } |
| 3507 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3508 | // string mapping_label = 5; |
| 3509 | case 5: { |
| 3510 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 3511 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3512 | input, this->mutable_mapping_label())); |
| 3513 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3514 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3515 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3516 | "dmi.PortComponentAttributes.mapping_label")); |
| 3517 | } else { |
| 3518 | goto handle_unusual; |
| 3519 | } |
| 3520 | break; |
| 3521 | } |
| 3522 | |
| 3523 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3524 | case 6: { |
| 3525 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 3526 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3527 | input, mutable_pon_id_config())); |
| 3528 | } else { |
| 3529 | goto handle_unusual; |
| 3530 | } |
| 3531 | break; |
| 3532 | } |
| 3533 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3534 | // bool speed_autonegotiation = 7; |
| 3535 | case 7: { |
| 3536 | if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { |
| 3537 | |
| 3538 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3539 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 3540 | input, &speed_autonegotiation_))); |
| 3541 | } else { |
| 3542 | goto handle_unusual; |
| 3543 | } |
| 3544 | break; |
| 3545 | } |
| 3546 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3547 | default: { |
| 3548 | handle_unusual: |
| 3549 | if (tag == 0) { |
| 3550 | goto success; |
| 3551 | } |
| 3552 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3553 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3554 | break; |
| 3555 | } |
| 3556 | } |
| 3557 | } |
| 3558 | success: |
| 3559 | // @@protoc_insertion_point(parse_success:dmi.PortComponentAttributes) |
| 3560 | return true; |
| 3561 | failure: |
| 3562 | // @@protoc_insertion_point(parse_failure:dmi.PortComponentAttributes) |
| 3563 | return false; |
| 3564 | #undef DO_ |
| 3565 | } |
| 3566 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3567 | |
| 3568 | void PortComponentAttributes::SerializeWithCachedSizes( |
| 3569 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3570 | // @@protoc_insertion_point(serialize_start:dmi.PortComponentAttributes) |
| 3571 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3572 | (void) cached_has_bits; |
| 3573 | |
| 3574 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3575 | if (this->connector_type() != 0) { |
| 3576 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3577 | 1, this->connector_type(), output); |
| 3578 | } |
| 3579 | |
| 3580 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3581 | if (this->speed() != 0) { |
| 3582 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3583 | 2, this->speed(), output); |
| 3584 | } |
| 3585 | |
| 3586 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3587 | if (this->protocol() != 0) { |
| 3588 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3589 | 3, this->protocol(), output); |
| 3590 | } |
| 3591 | |
| 3592 | // string physical_label = 4; |
| 3593 | if (this->physical_label().size() > 0) { |
| 3594 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3595 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3596 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3597 | "dmi.PortComponentAttributes.physical_label"); |
| 3598 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3599 | 4, this->physical_label(), output); |
| 3600 | } |
| 3601 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3602 | // string mapping_label = 5; |
| 3603 | if (this->mapping_label().size() > 0) { |
| 3604 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3605 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3606 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3607 | "dmi.PortComponentAttributes.mapping_label"); |
| 3608 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3609 | 5, this->mapping_label(), output); |
| 3610 | } |
| 3611 | |
| 3612 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3613 | if (this->has_pon_id_config()) { |
| 3614 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3615 | 6, HasBitSetters::pon_id_config(this), output); |
| 3616 | } |
| 3617 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3618 | // bool speed_autonegotiation = 7; |
| 3619 | if (this->speed_autonegotiation() != 0) { |
| 3620 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->speed_autonegotiation(), output); |
| 3621 | } |
| 3622 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3623 | if (_internal_metadata_.have_unknown_fields()) { |
| 3624 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3625 | _internal_metadata_.unknown_fields(), output); |
| 3626 | } |
| 3627 | // @@protoc_insertion_point(serialize_end:dmi.PortComponentAttributes) |
| 3628 | } |
| 3629 | |
| 3630 | ::google::protobuf::uint8* PortComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 3631 | ::google::protobuf::uint8* target) const { |
| 3632 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentAttributes) |
| 3633 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3634 | (void) cached_has_bits; |
| 3635 | |
| 3636 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3637 | if (this->connector_type() != 0) { |
| 3638 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3639 | 1, this->connector_type(), target); |
| 3640 | } |
| 3641 | |
| 3642 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3643 | if (this->speed() != 0) { |
| 3644 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3645 | 2, this->speed(), target); |
| 3646 | } |
| 3647 | |
| 3648 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3649 | if (this->protocol() != 0) { |
| 3650 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3651 | 3, this->protocol(), target); |
| 3652 | } |
| 3653 | |
| 3654 | // string physical_label = 4; |
| 3655 | if (this->physical_label().size() > 0) { |
| 3656 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3657 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3658 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3659 | "dmi.PortComponentAttributes.physical_label"); |
| 3660 | target = |
| 3661 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3662 | 4, this->physical_label(), target); |
| 3663 | } |
| 3664 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3665 | // string mapping_label = 5; |
| 3666 | if (this->mapping_label().size() > 0) { |
| 3667 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3668 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3669 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3670 | "dmi.PortComponentAttributes.mapping_label"); |
| 3671 | target = |
| 3672 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3673 | 5, this->mapping_label(), target); |
| 3674 | } |
| 3675 | |
| 3676 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3677 | if (this->has_pon_id_config()) { |
| 3678 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3679 | InternalWriteMessageToArray( |
| 3680 | 6, HasBitSetters::pon_id_config(this), target); |
| 3681 | } |
| 3682 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3683 | // bool speed_autonegotiation = 7; |
| 3684 | if (this->speed_autonegotiation() != 0) { |
| 3685 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->speed_autonegotiation(), target); |
| 3686 | } |
| 3687 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3688 | if (_internal_metadata_.have_unknown_fields()) { |
| 3689 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3690 | _internal_metadata_.unknown_fields(), target); |
| 3691 | } |
| 3692 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentAttributes) |
| 3693 | return target; |
| 3694 | } |
| 3695 | |
| 3696 | size_t PortComponentAttributes::ByteSizeLong() const { |
| 3697 | // @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentAttributes) |
| 3698 | size_t total_size = 0; |
| 3699 | |
| 3700 | if (_internal_metadata_.have_unknown_fields()) { |
| 3701 | total_size += |
| 3702 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3703 | _internal_metadata_.unknown_fields()); |
| 3704 | } |
| 3705 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3706 | // Prevent compiler warnings about cached_has_bits being unused |
| 3707 | (void) cached_has_bits; |
| 3708 | |
| 3709 | // string physical_label = 4; |
| 3710 | if (this->physical_label().size() > 0) { |
| 3711 | total_size += 1 + |
| 3712 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3713 | this->physical_label()); |
| 3714 | } |
| 3715 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3716 | // string mapping_label = 5; |
| 3717 | if (this->mapping_label().size() > 0) { |
| 3718 | total_size += 1 + |
| 3719 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3720 | this->mapping_label()); |
| 3721 | } |
| 3722 | |
| 3723 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3724 | if (this->has_pon_id_config()) { |
| 3725 | total_size += 1 + |
| 3726 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3727 | *pon_id_config_); |
| 3728 | } |
| 3729 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3730 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3731 | if (this->connector_type() != 0) { |
| 3732 | total_size += 1 + |
| 3733 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->connector_type()); |
| 3734 | } |
| 3735 | |
| 3736 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3737 | if (this->speed() != 0) { |
| 3738 | total_size += 1 + |
| 3739 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->speed()); |
| 3740 | } |
| 3741 | |
| 3742 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3743 | if (this->protocol() != 0) { |
| 3744 | total_size += 1 + |
| 3745 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->protocol()); |
| 3746 | } |
| 3747 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3748 | // bool speed_autonegotiation = 7; |
| 3749 | if (this->speed_autonegotiation() != 0) { |
| 3750 | total_size += 1 + 1; |
| 3751 | } |
| 3752 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3753 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3754 | SetCachedSize(cached_size); |
| 3755 | return total_size; |
| 3756 | } |
| 3757 | |
| 3758 | void PortComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 3759 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentAttributes) |
| 3760 | GOOGLE_DCHECK_NE(&from, this); |
| 3761 | const PortComponentAttributes* source = |
| 3762 | ::google::protobuf::DynamicCastToGenerated<PortComponentAttributes>( |
| 3763 | &from); |
| 3764 | if (source == nullptr) { |
| 3765 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentAttributes) |
| 3766 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3767 | } else { |
| 3768 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentAttributes) |
| 3769 | MergeFrom(*source); |
| 3770 | } |
| 3771 | } |
| 3772 | |
| 3773 | void PortComponentAttributes::MergeFrom(const PortComponentAttributes& from) { |
| 3774 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentAttributes) |
| 3775 | GOOGLE_DCHECK_NE(&from, this); |
| 3776 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3777 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3778 | (void) cached_has_bits; |
| 3779 | |
| 3780 | if (from.physical_label().size() > 0) { |
| 3781 | |
| 3782 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 3783 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3784 | if (from.mapping_label().size() > 0) { |
| 3785 | |
| 3786 | mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_); |
| 3787 | } |
| 3788 | if (from.has_pon_id_config()) { |
| 3789 | mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config()); |
| 3790 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3791 | if (from.connector_type() != 0) { |
| 3792 | set_connector_type(from.connector_type()); |
| 3793 | } |
| 3794 | if (from.speed() != 0) { |
| 3795 | set_speed(from.speed()); |
| 3796 | } |
| 3797 | if (from.protocol() != 0) { |
| 3798 | set_protocol(from.protocol()); |
| 3799 | } |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3800 | if (from.speed_autonegotiation() != 0) { |
| 3801 | set_speed_autonegotiation(from.speed_autonegotiation()); |
| 3802 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3803 | } |
| 3804 | |
| 3805 | void PortComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 3806 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentAttributes) |
| 3807 | if (&from == this) return; |
| 3808 | Clear(); |
| 3809 | MergeFrom(from); |
| 3810 | } |
| 3811 | |
| 3812 | void PortComponentAttributes::CopyFrom(const PortComponentAttributes& from) { |
| 3813 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentAttributes) |
| 3814 | if (&from == this) return; |
| 3815 | Clear(); |
| 3816 | MergeFrom(from); |
| 3817 | } |
| 3818 | |
| 3819 | bool PortComponentAttributes::IsInitialized() const { |
| 3820 | return true; |
| 3821 | } |
| 3822 | |
| 3823 | void PortComponentAttributes::Swap(PortComponentAttributes* other) { |
| 3824 | if (other == this) return; |
| 3825 | InternalSwap(other); |
| 3826 | } |
| 3827 | void PortComponentAttributes::InternalSwap(PortComponentAttributes* other) { |
| 3828 | using std::swap; |
| 3829 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3830 | physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3831 | GetArenaNoVirtual()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3832 | mapping_label_.Swap(&other->mapping_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3833 | GetArenaNoVirtual()); |
| 3834 | swap(pon_id_config_, other->pon_id_config_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3835 | swap(connector_type_, other->connector_type_); |
| 3836 | swap(speed_, other->speed_); |
| 3837 | swap(protocol_, other->protocol_); |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3838 | swap(speed_autonegotiation_, other->speed_autonegotiation_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3839 | } |
| 3840 | |
| 3841 | ::google::protobuf::Metadata PortComponentAttributes::GetMetadata() const { |
| 3842 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 3843 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 3844 | } |
| 3845 | |
| 3846 | |
| 3847 | // =================================================================== |
| 3848 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3849 | void PortComponentChangeAttributes::InitAsDefaultInstance() { |
| 3850 | ::dmi::_PortComponentChangeAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>( |
| 3851 | ::dmi::PonIdConfig::internal_default_instance()); |
| 3852 | } |
| 3853 | class PortComponentChangeAttributes::HasBitSetters { |
| 3854 | public: |
| 3855 | static const ::dmi::PonIdConfig& pon_id_config(const PortComponentChangeAttributes* msg); |
| 3856 | }; |
| 3857 | |
| 3858 | const ::dmi::PonIdConfig& |
| 3859 | PortComponentChangeAttributes::HasBitSetters::pon_id_config(const PortComponentChangeAttributes* msg) { |
| 3860 | return *msg->pon_id_config_; |
| 3861 | } |
| 3862 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3863 | const int PortComponentChangeAttributes::kPonIdConfigFieldNumber; |
| 3864 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3865 | |
| 3866 | PortComponentChangeAttributes::PortComponentChangeAttributes() |
| 3867 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3868 | SharedCtor(); |
| 3869 | // @@protoc_insertion_point(constructor:dmi.PortComponentChangeAttributes) |
| 3870 | } |
| 3871 | PortComponentChangeAttributes::PortComponentChangeAttributes(const PortComponentChangeAttributes& from) |
| 3872 | : ::google::protobuf::Message(), |
| 3873 | _internal_metadata_(nullptr) { |
| 3874 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3875 | if (from.has_pon_id_config()) { |
| 3876 | pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_); |
| 3877 | } else { |
| 3878 | pon_id_config_ = nullptr; |
| 3879 | } |
| 3880 | // @@protoc_insertion_point(copy_constructor:dmi.PortComponentChangeAttributes) |
| 3881 | } |
| 3882 | |
| 3883 | void PortComponentChangeAttributes::SharedCtor() { |
| 3884 | ::google::protobuf::internal::InitSCC( |
| 3885 | &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
| 3886 | pon_id_config_ = nullptr; |
| 3887 | } |
| 3888 | |
| 3889 | PortComponentChangeAttributes::~PortComponentChangeAttributes() { |
| 3890 | // @@protoc_insertion_point(destructor:dmi.PortComponentChangeAttributes) |
| 3891 | SharedDtor(); |
| 3892 | } |
| 3893 | |
| 3894 | void PortComponentChangeAttributes::SharedDtor() { |
| 3895 | if (this != internal_default_instance()) delete pon_id_config_; |
| 3896 | } |
| 3897 | |
| 3898 | void PortComponentChangeAttributes::SetCachedSize(int size) const { |
| 3899 | _cached_size_.Set(size); |
| 3900 | } |
| 3901 | const PortComponentChangeAttributes& PortComponentChangeAttributes::default_instance() { |
| 3902 | ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
| 3903 | return *internal_default_instance(); |
| 3904 | } |
| 3905 | |
| 3906 | |
| 3907 | void PortComponentChangeAttributes::Clear() { |
| 3908 | // @@protoc_insertion_point(message_clear_start:dmi.PortComponentChangeAttributes) |
| 3909 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3910 | // Prevent compiler warnings about cached_has_bits being unused |
| 3911 | (void) cached_has_bits; |
| 3912 | |
| 3913 | if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) { |
| 3914 | delete pon_id_config_; |
| 3915 | } |
| 3916 | pon_id_config_ = nullptr; |
| 3917 | _internal_metadata_.Clear(); |
| 3918 | } |
| 3919 | |
| 3920 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3921 | const char* PortComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 3922 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3923 | auto msg = static_cast<PortComponentChangeAttributes*>(object); |
| 3924 | ::google::protobuf::int32 size; (void)size; |
| 3925 | int depth; (void)depth; |
| 3926 | ::google::protobuf::uint32 tag; |
| 3927 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3928 | auto ptr = begin; |
| 3929 | while (ptr < end) { |
| 3930 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3931 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3932 | switch (tag >> 3) { |
| 3933 | // .dmi.PonIdConfig pon_id_config = 1; |
| 3934 | case 1: { |
| 3935 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3936 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3937 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3938 | parser_till_end = ::dmi::PonIdConfig::_InternalParse; |
| 3939 | object = msg->mutable_pon_id_config(); |
| 3940 | if (size > end - ptr) goto len_delim_till_end; |
| 3941 | ptr += size; |
| 3942 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3943 | {parser_till_end, object}, ptr - size, ptr)); |
| 3944 | break; |
| 3945 | } |
| 3946 | default: { |
| 3947 | handle_unusual: |
| 3948 | if ((tag & 7) == 4 || tag == 0) { |
| 3949 | ctx->EndGroup(tag); |
| 3950 | return ptr; |
| 3951 | } |
| 3952 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3953 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3954 | ptr = res.first; |
| 3955 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3956 | if (res.second) return ptr; |
| 3957 | } |
| 3958 | } // switch |
| 3959 | } // while |
| 3960 | return ptr; |
| 3961 | len_delim_till_end: |
| 3962 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3963 | {parser_till_end, object}, size); |
| 3964 | } |
| 3965 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3966 | bool PortComponentChangeAttributes::MergePartialFromCodedStream( |
| 3967 | ::google::protobuf::io::CodedInputStream* input) { |
| 3968 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3969 | ::google::protobuf::uint32 tag; |
| 3970 | // @@protoc_insertion_point(parse_start:dmi.PortComponentChangeAttributes) |
| 3971 | for (;;) { |
| 3972 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3973 | tag = p.first; |
| 3974 | if (!p.second) goto handle_unusual; |
| 3975 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3976 | // .dmi.PonIdConfig pon_id_config = 1; |
| 3977 | case 1: { |
| 3978 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3979 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3980 | input, mutable_pon_id_config())); |
| 3981 | } else { |
| 3982 | goto handle_unusual; |
| 3983 | } |
| 3984 | break; |
| 3985 | } |
| 3986 | |
| 3987 | default: { |
| 3988 | handle_unusual: |
| 3989 | if (tag == 0) { |
| 3990 | goto success; |
| 3991 | } |
| 3992 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3993 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3994 | break; |
| 3995 | } |
| 3996 | } |
| 3997 | } |
| 3998 | success: |
| 3999 | // @@protoc_insertion_point(parse_success:dmi.PortComponentChangeAttributes) |
| 4000 | return true; |
| 4001 | failure: |
| 4002 | // @@protoc_insertion_point(parse_failure:dmi.PortComponentChangeAttributes) |
| 4003 | return false; |
| 4004 | #undef DO_ |
| 4005 | } |
| 4006 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4007 | |
| 4008 | void PortComponentChangeAttributes::SerializeWithCachedSizes( |
| 4009 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4010 | // @@protoc_insertion_point(serialize_start:dmi.PortComponentChangeAttributes) |
| 4011 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4012 | (void) cached_has_bits; |
| 4013 | |
| 4014 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4015 | if (this->has_pon_id_config()) { |
| 4016 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4017 | 1, HasBitSetters::pon_id_config(this), output); |
| 4018 | } |
| 4019 | |
| 4020 | if (_internal_metadata_.have_unknown_fields()) { |
| 4021 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4022 | _internal_metadata_.unknown_fields(), output); |
| 4023 | } |
| 4024 | // @@protoc_insertion_point(serialize_end:dmi.PortComponentChangeAttributes) |
| 4025 | } |
| 4026 | |
| 4027 | ::google::protobuf::uint8* PortComponentChangeAttributes::InternalSerializeWithCachedSizesToArray( |
| 4028 | ::google::protobuf::uint8* target) const { |
| 4029 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentChangeAttributes) |
| 4030 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4031 | (void) cached_has_bits; |
| 4032 | |
| 4033 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4034 | if (this->has_pon_id_config()) { |
| 4035 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4036 | InternalWriteMessageToArray( |
| 4037 | 1, HasBitSetters::pon_id_config(this), target); |
| 4038 | } |
| 4039 | |
| 4040 | if (_internal_metadata_.have_unknown_fields()) { |
| 4041 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4042 | _internal_metadata_.unknown_fields(), target); |
| 4043 | } |
| 4044 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentChangeAttributes) |
| 4045 | return target; |
| 4046 | } |
| 4047 | |
| 4048 | size_t PortComponentChangeAttributes::ByteSizeLong() const { |
| 4049 | // @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentChangeAttributes) |
| 4050 | size_t total_size = 0; |
| 4051 | |
| 4052 | if (_internal_metadata_.have_unknown_fields()) { |
| 4053 | total_size += |
| 4054 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4055 | _internal_metadata_.unknown_fields()); |
| 4056 | } |
| 4057 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4058 | // Prevent compiler warnings about cached_has_bits being unused |
| 4059 | (void) cached_has_bits; |
| 4060 | |
| 4061 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4062 | if (this->has_pon_id_config()) { |
| 4063 | total_size += 1 + |
| 4064 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4065 | *pon_id_config_); |
| 4066 | } |
| 4067 | |
| 4068 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4069 | SetCachedSize(cached_size); |
| 4070 | return total_size; |
| 4071 | } |
| 4072 | |
| 4073 | void PortComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 4074 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentChangeAttributes) |
| 4075 | GOOGLE_DCHECK_NE(&from, this); |
| 4076 | const PortComponentChangeAttributes* source = |
| 4077 | ::google::protobuf::DynamicCastToGenerated<PortComponentChangeAttributes>( |
| 4078 | &from); |
| 4079 | if (source == nullptr) { |
| 4080 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentChangeAttributes) |
| 4081 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4082 | } else { |
| 4083 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentChangeAttributes) |
| 4084 | MergeFrom(*source); |
| 4085 | } |
| 4086 | } |
| 4087 | |
| 4088 | void PortComponentChangeAttributes::MergeFrom(const PortComponentChangeAttributes& from) { |
| 4089 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentChangeAttributes) |
| 4090 | GOOGLE_DCHECK_NE(&from, this); |
| 4091 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4092 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4093 | (void) cached_has_bits; |
| 4094 | |
| 4095 | if (from.has_pon_id_config()) { |
| 4096 | mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config()); |
| 4097 | } |
| 4098 | } |
| 4099 | |
| 4100 | void PortComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 4101 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentChangeAttributes) |
| 4102 | if (&from == this) return; |
| 4103 | Clear(); |
| 4104 | MergeFrom(from); |
| 4105 | } |
| 4106 | |
| 4107 | void PortComponentChangeAttributes::CopyFrom(const PortComponentChangeAttributes& from) { |
| 4108 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentChangeAttributes) |
| 4109 | if (&from == this) return; |
| 4110 | Clear(); |
| 4111 | MergeFrom(from); |
| 4112 | } |
| 4113 | |
| 4114 | bool PortComponentChangeAttributes::IsInitialized() const { |
| 4115 | return true; |
| 4116 | } |
| 4117 | |
| 4118 | void PortComponentChangeAttributes::Swap(PortComponentChangeAttributes* other) { |
| 4119 | if (other == this) return; |
| 4120 | InternalSwap(other); |
| 4121 | } |
| 4122 | void PortComponentChangeAttributes::InternalSwap(PortComponentChangeAttributes* other) { |
| 4123 | using std::swap; |
| 4124 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4125 | swap(pon_id_config_, other->pon_id_config_); |
| 4126 | } |
| 4127 | |
| 4128 | ::google::protobuf::Metadata PortComponentChangeAttributes::GetMetadata() const { |
| 4129 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4130 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4131 | } |
| 4132 | |
| 4133 | |
| 4134 | // =================================================================== |
| 4135 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 4136 | void TransceiverComponentChangeAttributes::InitAsDefaultInstance() { |
| 4137 | } |
| 4138 | class TransceiverComponentChangeAttributes::HasBitSetters { |
| 4139 | public: |
| 4140 | }; |
| 4141 | |
| 4142 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4143 | const int TransceiverComponentChangeAttributes::kTransTypeFieldNumber; |
| 4144 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4145 | |
| 4146 | TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes() |
| 4147 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4148 | SharedCtor(); |
| 4149 | // @@protoc_insertion_point(constructor:dmi.TransceiverComponentChangeAttributes) |
| 4150 | } |
| 4151 | TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes(const TransceiverComponentChangeAttributes& from) |
| 4152 | : ::google::protobuf::Message(), |
| 4153 | _internal_metadata_(nullptr) { |
| 4154 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4155 | trans_type_ = from.trans_type_; |
| 4156 | // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentChangeAttributes) |
| 4157 | } |
| 4158 | |
| 4159 | void TransceiverComponentChangeAttributes::SharedCtor() { |
| 4160 | trans_type_ = 0; |
| 4161 | } |
| 4162 | |
| 4163 | TransceiverComponentChangeAttributes::~TransceiverComponentChangeAttributes() { |
| 4164 | // @@protoc_insertion_point(destructor:dmi.TransceiverComponentChangeAttributes) |
| 4165 | SharedDtor(); |
| 4166 | } |
| 4167 | |
| 4168 | void TransceiverComponentChangeAttributes::SharedDtor() { |
| 4169 | } |
| 4170 | |
| 4171 | void TransceiverComponentChangeAttributes::SetCachedSize(int size) const { |
| 4172 | _cached_size_.Set(size); |
| 4173 | } |
| 4174 | const TransceiverComponentChangeAttributes& TransceiverComponentChangeAttributes::default_instance() { |
| 4175 | ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base); |
| 4176 | return *internal_default_instance(); |
| 4177 | } |
| 4178 | |
| 4179 | |
| 4180 | void TransceiverComponentChangeAttributes::Clear() { |
| 4181 | // @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentChangeAttributes) |
| 4182 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4183 | // Prevent compiler warnings about cached_has_bits being unused |
| 4184 | (void) cached_has_bits; |
| 4185 | |
| 4186 | trans_type_ = 0; |
| 4187 | _internal_metadata_.Clear(); |
| 4188 | } |
| 4189 | |
| 4190 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4191 | const char* TransceiverComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 4192 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4193 | auto msg = static_cast<TransceiverComponentChangeAttributes*>(object); |
| 4194 | ::google::protobuf::int32 size; (void)size; |
| 4195 | int depth; (void)depth; |
| 4196 | ::google::protobuf::uint32 tag; |
| 4197 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4198 | auto ptr = begin; |
| 4199 | while (ptr < end) { |
| 4200 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4201 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4202 | switch (tag >> 3) { |
| 4203 | // .dmi.TransceiverType trans_type = 1; |
| 4204 | case 1: { |
| 4205 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4206 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4207 | msg->set_trans_type(static_cast<::dmi::TransceiverType>(val)); |
| 4208 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4209 | break; |
| 4210 | } |
| 4211 | default: { |
| 4212 | handle_unusual: |
| 4213 | if ((tag & 7) == 4 || tag == 0) { |
| 4214 | ctx->EndGroup(tag); |
| 4215 | return ptr; |
| 4216 | } |
| 4217 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4218 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4219 | ptr = res.first; |
| 4220 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4221 | if (res.second) return ptr; |
| 4222 | } |
| 4223 | } // switch |
| 4224 | } // while |
| 4225 | return ptr; |
| 4226 | } |
| 4227 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4228 | bool TransceiverComponentChangeAttributes::MergePartialFromCodedStream( |
| 4229 | ::google::protobuf::io::CodedInputStream* input) { |
| 4230 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4231 | ::google::protobuf::uint32 tag; |
| 4232 | // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentChangeAttributes) |
| 4233 | for (;;) { |
| 4234 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4235 | tag = p.first; |
| 4236 | if (!p.second) goto handle_unusual; |
| 4237 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4238 | // .dmi.TransceiverType trans_type = 1; |
| 4239 | case 1: { |
| 4240 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4241 | int value = 0; |
| 4242 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4243 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4244 | input, &value))); |
| 4245 | set_trans_type(static_cast< ::dmi::TransceiverType >(value)); |
| 4246 | } else { |
| 4247 | goto handle_unusual; |
| 4248 | } |
| 4249 | break; |
| 4250 | } |
| 4251 | |
| 4252 | default: { |
| 4253 | handle_unusual: |
| 4254 | if (tag == 0) { |
| 4255 | goto success; |
| 4256 | } |
| 4257 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4258 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4259 | break; |
| 4260 | } |
| 4261 | } |
| 4262 | } |
| 4263 | success: |
| 4264 | // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentChangeAttributes) |
| 4265 | return true; |
| 4266 | failure: |
| 4267 | // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentChangeAttributes) |
| 4268 | return false; |
| 4269 | #undef DO_ |
| 4270 | } |
| 4271 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4272 | |
| 4273 | void TransceiverComponentChangeAttributes::SerializeWithCachedSizes( |
| 4274 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4275 | // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentChangeAttributes) |
| 4276 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4277 | (void) cached_has_bits; |
| 4278 | |
| 4279 | // .dmi.TransceiverType trans_type = 1; |
| 4280 | if (this->trans_type() != 0) { |
| 4281 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4282 | 1, this->trans_type(), output); |
| 4283 | } |
| 4284 | |
| 4285 | if (_internal_metadata_.have_unknown_fields()) { |
| 4286 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4287 | _internal_metadata_.unknown_fields(), output); |
| 4288 | } |
| 4289 | // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentChangeAttributes) |
| 4290 | } |
| 4291 | |
| 4292 | ::google::protobuf::uint8* TransceiverComponentChangeAttributes::InternalSerializeWithCachedSizesToArray( |
| 4293 | ::google::protobuf::uint8* target) const { |
| 4294 | // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentChangeAttributes) |
| 4295 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4296 | (void) cached_has_bits; |
| 4297 | |
| 4298 | // .dmi.TransceiverType trans_type = 1; |
| 4299 | if (this->trans_type() != 0) { |
| 4300 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4301 | 1, this->trans_type(), target); |
| 4302 | } |
| 4303 | |
| 4304 | if (_internal_metadata_.have_unknown_fields()) { |
| 4305 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4306 | _internal_metadata_.unknown_fields(), target); |
| 4307 | } |
| 4308 | // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentChangeAttributes) |
| 4309 | return target; |
| 4310 | } |
| 4311 | |
| 4312 | size_t TransceiverComponentChangeAttributes::ByteSizeLong() const { |
| 4313 | // @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentChangeAttributes) |
| 4314 | size_t total_size = 0; |
| 4315 | |
| 4316 | if (_internal_metadata_.have_unknown_fields()) { |
| 4317 | total_size += |
| 4318 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4319 | _internal_metadata_.unknown_fields()); |
| 4320 | } |
| 4321 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4322 | // Prevent compiler warnings about cached_has_bits being unused |
| 4323 | (void) cached_has_bits; |
| 4324 | |
| 4325 | // .dmi.TransceiverType trans_type = 1; |
| 4326 | if (this->trans_type() != 0) { |
| 4327 | total_size += 1 + |
| 4328 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type()); |
| 4329 | } |
| 4330 | |
| 4331 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4332 | SetCachedSize(cached_size); |
| 4333 | return total_size; |
| 4334 | } |
| 4335 | |
| 4336 | void TransceiverComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 4337 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4338 | GOOGLE_DCHECK_NE(&from, this); |
| 4339 | const TransceiverComponentChangeAttributes* source = |
| 4340 | ::google::protobuf::DynamicCastToGenerated<TransceiverComponentChangeAttributes>( |
| 4341 | &from); |
| 4342 | if (source == nullptr) { |
| 4343 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentChangeAttributes) |
| 4344 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4345 | } else { |
| 4346 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentChangeAttributes) |
| 4347 | MergeFrom(*source); |
| 4348 | } |
| 4349 | } |
| 4350 | |
| 4351 | void TransceiverComponentChangeAttributes::MergeFrom(const TransceiverComponentChangeAttributes& from) { |
| 4352 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4353 | GOOGLE_DCHECK_NE(&from, this); |
| 4354 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4355 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4356 | (void) cached_has_bits; |
| 4357 | |
| 4358 | if (from.trans_type() != 0) { |
| 4359 | set_trans_type(from.trans_type()); |
| 4360 | } |
| 4361 | } |
| 4362 | |
| 4363 | void TransceiverComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 4364 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4365 | if (&from == this) return; |
| 4366 | Clear(); |
| 4367 | MergeFrom(from); |
| 4368 | } |
| 4369 | |
| 4370 | void TransceiverComponentChangeAttributes::CopyFrom(const TransceiverComponentChangeAttributes& from) { |
| 4371 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4372 | if (&from == this) return; |
| 4373 | Clear(); |
| 4374 | MergeFrom(from); |
| 4375 | } |
| 4376 | |
| 4377 | bool TransceiverComponentChangeAttributes::IsInitialized() const { |
| 4378 | return true; |
| 4379 | } |
| 4380 | |
| 4381 | void TransceiverComponentChangeAttributes::Swap(TransceiverComponentChangeAttributes* other) { |
| 4382 | if (other == this) return; |
| 4383 | InternalSwap(other); |
| 4384 | } |
| 4385 | void TransceiverComponentChangeAttributes::InternalSwap(TransceiverComponentChangeAttributes* other) { |
| 4386 | using std::swap; |
| 4387 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4388 | swap(trans_type_, other->trans_type_); |
| 4389 | } |
| 4390 | |
| 4391 | ::google::protobuf::Metadata TransceiverComponentChangeAttributes::GetMetadata() const { |
| 4392 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4393 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4394 | } |
| 4395 | |
| 4396 | |
| 4397 | // =================================================================== |
| 4398 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4399 | void PonIdConfig::InitAsDefaultInstance() { |
| 4400 | } |
| 4401 | class PonIdConfig::HasBitSetters { |
| 4402 | public: |
| 4403 | }; |
| 4404 | |
| 4405 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4406 | const int PonIdConfig::kPonIdFieldNumber; |
| 4407 | const int PonIdConfig::kPonIdTransmitPeriodicityFieldNumber; |
| 4408 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4409 | |
| 4410 | PonIdConfig::PonIdConfig() |
| 4411 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4412 | SharedCtor(); |
| 4413 | // @@protoc_insertion_point(constructor:dmi.PonIdConfig) |
| 4414 | } |
| 4415 | PonIdConfig::PonIdConfig(const PonIdConfig& from) |
| 4416 | : ::google::protobuf::Message(), |
| 4417 | _internal_metadata_(nullptr) { |
| 4418 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4419 | pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4420 | if (from.pon_id().size() > 0) { |
| 4421 | pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_); |
| 4422 | } |
| 4423 | pon_id_transmit_periodicity_ = from.pon_id_transmit_periodicity_; |
| 4424 | // @@protoc_insertion_point(copy_constructor:dmi.PonIdConfig) |
| 4425 | } |
| 4426 | |
| 4427 | void PonIdConfig::SharedCtor() { |
| 4428 | ::google::protobuf::internal::InitSCC( |
| 4429 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
| 4430 | pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4431 | pon_id_transmit_periodicity_ = 0u; |
| 4432 | } |
| 4433 | |
| 4434 | PonIdConfig::~PonIdConfig() { |
| 4435 | // @@protoc_insertion_point(destructor:dmi.PonIdConfig) |
| 4436 | SharedDtor(); |
| 4437 | } |
| 4438 | |
| 4439 | void PonIdConfig::SharedDtor() { |
| 4440 | pon_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4441 | } |
| 4442 | |
| 4443 | void PonIdConfig::SetCachedSize(int size) const { |
| 4444 | _cached_size_.Set(size); |
| 4445 | } |
| 4446 | const PonIdConfig& PonIdConfig::default_instance() { |
| 4447 | ::google::protobuf::internal::InitSCC(&::scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
| 4448 | return *internal_default_instance(); |
| 4449 | } |
| 4450 | |
| 4451 | |
| 4452 | void PonIdConfig::Clear() { |
| 4453 | // @@protoc_insertion_point(message_clear_start:dmi.PonIdConfig) |
| 4454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4455 | // Prevent compiler warnings about cached_has_bits being unused |
| 4456 | (void) cached_has_bits; |
| 4457 | |
| 4458 | pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4459 | pon_id_transmit_periodicity_ = 0u; |
| 4460 | _internal_metadata_.Clear(); |
| 4461 | } |
| 4462 | |
| 4463 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4464 | const char* PonIdConfig::_InternalParse(const char* begin, const char* end, void* object, |
| 4465 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4466 | auto msg = static_cast<PonIdConfig*>(object); |
| 4467 | ::google::protobuf::int32 size; (void)size; |
| 4468 | int depth; (void)depth; |
| 4469 | ::google::protobuf::uint32 tag; |
| 4470 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4471 | auto ptr = begin; |
| 4472 | while (ptr < end) { |
| 4473 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4474 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4475 | switch (tag >> 3) { |
| 4476 | // bytes pon_id = 1; |
| 4477 | case 1: { |
| 4478 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4479 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4480 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4481 | object = msg->mutable_pon_id(); |
| 4482 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4483 | parser_till_end = ::google::protobuf::internal::GreedyStringParser; |
| 4484 | goto string_till_end; |
| 4485 | } |
| 4486 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); |
| 4487 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4488 | ptr += size; |
| 4489 | break; |
| 4490 | } |
| 4491 | // uint32 pon_id_transmit_periodicity = 2; |
| 4492 | case 2: { |
| 4493 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4494 | msg->set_pon_id_transmit_periodicity(::google::protobuf::internal::ReadVarint(&ptr)); |
| 4495 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4496 | break; |
| 4497 | } |
| 4498 | default: { |
| 4499 | handle_unusual: |
| 4500 | if ((tag & 7) == 4 || tag == 0) { |
| 4501 | ctx->EndGroup(tag); |
| 4502 | return ptr; |
| 4503 | } |
| 4504 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4505 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4506 | ptr = res.first; |
| 4507 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4508 | if (res.second) return ptr; |
| 4509 | } |
| 4510 | } // switch |
| 4511 | } // while |
| 4512 | return ptr; |
| 4513 | string_till_end: |
| 4514 | static_cast<::std::string*>(object)->clear(); |
| 4515 | static_cast<::std::string*>(object)->reserve(size); |
| 4516 | goto len_delim_till_end; |
| 4517 | len_delim_till_end: |
| 4518 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4519 | {parser_till_end, object}, size); |
| 4520 | } |
| 4521 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4522 | bool PonIdConfig::MergePartialFromCodedStream( |
| 4523 | ::google::protobuf::io::CodedInputStream* input) { |
| 4524 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4525 | ::google::protobuf::uint32 tag; |
| 4526 | // @@protoc_insertion_point(parse_start:dmi.PonIdConfig) |
| 4527 | for (;;) { |
| 4528 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4529 | tag = p.first; |
| 4530 | if (!p.second) goto handle_unusual; |
| 4531 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4532 | // bytes pon_id = 1; |
| 4533 | case 1: { |
| 4534 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4535 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 4536 | input, this->mutable_pon_id())); |
| 4537 | } else { |
| 4538 | goto handle_unusual; |
| 4539 | } |
| 4540 | break; |
| 4541 | } |
| 4542 | |
| 4543 | // uint32 pon_id_transmit_periodicity = 2; |
| 4544 | case 2: { |
| 4545 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4546 | |
| 4547 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4548 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 4549 | input, &pon_id_transmit_periodicity_))); |
| 4550 | } else { |
| 4551 | goto handle_unusual; |
| 4552 | } |
| 4553 | break; |
| 4554 | } |
| 4555 | |
| 4556 | default: { |
| 4557 | handle_unusual: |
| 4558 | if (tag == 0) { |
| 4559 | goto success; |
| 4560 | } |
| 4561 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4562 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4563 | break; |
| 4564 | } |
| 4565 | } |
| 4566 | } |
| 4567 | success: |
| 4568 | // @@protoc_insertion_point(parse_success:dmi.PonIdConfig) |
| 4569 | return true; |
| 4570 | failure: |
| 4571 | // @@protoc_insertion_point(parse_failure:dmi.PonIdConfig) |
| 4572 | return false; |
| 4573 | #undef DO_ |
| 4574 | } |
| 4575 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4576 | |
| 4577 | void PonIdConfig::SerializeWithCachedSizes( |
| 4578 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4579 | // @@protoc_insertion_point(serialize_start:dmi.PonIdConfig) |
| 4580 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4581 | (void) cached_has_bits; |
| 4582 | |
| 4583 | // bytes pon_id = 1; |
| 4584 | if (this->pon_id().size() > 0) { |
| 4585 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
| 4586 | 1, this->pon_id(), output); |
| 4587 | } |
| 4588 | |
| 4589 | // uint32 pon_id_transmit_periodicity = 2; |
| 4590 | if (this->pon_id_transmit_periodicity() != 0) { |
| 4591 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pon_id_transmit_periodicity(), output); |
| 4592 | } |
| 4593 | |
| 4594 | if (_internal_metadata_.have_unknown_fields()) { |
| 4595 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4596 | _internal_metadata_.unknown_fields(), output); |
| 4597 | } |
| 4598 | // @@protoc_insertion_point(serialize_end:dmi.PonIdConfig) |
| 4599 | } |
| 4600 | |
| 4601 | ::google::protobuf::uint8* PonIdConfig::InternalSerializeWithCachedSizesToArray( |
| 4602 | ::google::protobuf::uint8* target) const { |
| 4603 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PonIdConfig) |
| 4604 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4605 | (void) cached_has_bits; |
| 4606 | |
| 4607 | // bytes pon_id = 1; |
| 4608 | if (this->pon_id().size() > 0) { |
| 4609 | target = |
| 4610 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
| 4611 | 1, this->pon_id(), target); |
| 4612 | } |
| 4613 | |
| 4614 | // uint32 pon_id_transmit_periodicity = 2; |
| 4615 | if (this->pon_id_transmit_periodicity() != 0) { |
| 4616 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pon_id_transmit_periodicity(), target); |
| 4617 | } |
| 4618 | |
| 4619 | if (_internal_metadata_.have_unknown_fields()) { |
| 4620 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4621 | _internal_metadata_.unknown_fields(), target); |
| 4622 | } |
| 4623 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PonIdConfig) |
| 4624 | return target; |
| 4625 | } |
| 4626 | |
| 4627 | size_t PonIdConfig::ByteSizeLong() const { |
| 4628 | // @@protoc_insertion_point(message_byte_size_start:dmi.PonIdConfig) |
| 4629 | size_t total_size = 0; |
| 4630 | |
| 4631 | if (_internal_metadata_.have_unknown_fields()) { |
| 4632 | total_size += |
| 4633 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4634 | _internal_metadata_.unknown_fields()); |
| 4635 | } |
| 4636 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4637 | // Prevent compiler warnings about cached_has_bits being unused |
| 4638 | (void) cached_has_bits; |
| 4639 | |
| 4640 | // bytes pon_id = 1; |
| 4641 | if (this->pon_id().size() > 0) { |
| 4642 | total_size += 1 + |
| 4643 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 4644 | this->pon_id()); |
| 4645 | } |
| 4646 | |
| 4647 | // uint32 pon_id_transmit_periodicity = 2; |
| 4648 | if (this->pon_id_transmit_periodicity() != 0) { |
| 4649 | total_size += 1 + |
| 4650 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 4651 | this->pon_id_transmit_periodicity()); |
| 4652 | } |
| 4653 | |
| 4654 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4655 | SetCachedSize(cached_size); |
| 4656 | return total_size; |
| 4657 | } |
| 4658 | |
| 4659 | void PonIdConfig::MergeFrom(const ::google::protobuf::Message& from) { |
| 4660 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PonIdConfig) |
| 4661 | GOOGLE_DCHECK_NE(&from, this); |
| 4662 | const PonIdConfig* source = |
| 4663 | ::google::protobuf::DynamicCastToGenerated<PonIdConfig>( |
| 4664 | &from); |
| 4665 | if (source == nullptr) { |
| 4666 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PonIdConfig) |
| 4667 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4668 | } else { |
| 4669 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PonIdConfig) |
| 4670 | MergeFrom(*source); |
| 4671 | } |
| 4672 | } |
| 4673 | |
| 4674 | void PonIdConfig::MergeFrom(const PonIdConfig& from) { |
| 4675 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PonIdConfig) |
| 4676 | GOOGLE_DCHECK_NE(&from, this); |
| 4677 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4678 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4679 | (void) cached_has_bits; |
| 4680 | |
| 4681 | if (from.pon_id().size() > 0) { |
| 4682 | |
| 4683 | pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_); |
| 4684 | } |
| 4685 | if (from.pon_id_transmit_periodicity() != 0) { |
| 4686 | set_pon_id_transmit_periodicity(from.pon_id_transmit_periodicity()); |
| 4687 | } |
| 4688 | } |
| 4689 | |
| 4690 | void PonIdConfig::CopyFrom(const ::google::protobuf::Message& from) { |
| 4691 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PonIdConfig) |
| 4692 | if (&from == this) return; |
| 4693 | Clear(); |
| 4694 | MergeFrom(from); |
| 4695 | } |
| 4696 | |
| 4697 | void PonIdConfig::CopyFrom(const PonIdConfig& from) { |
| 4698 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PonIdConfig) |
| 4699 | if (&from == this) return; |
| 4700 | Clear(); |
| 4701 | MergeFrom(from); |
| 4702 | } |
| 4703 | |
| 4704 | bool PonIdConfig::IsInitialized() const { |
| 4705 | return true; |
| 4706 | } |
| 4707 | |
| 4708 | void PonIdConfig::Swap(PonIdConfig* other) { |
| 4709 | if (other == this) return; |
| 4710 | InternalSwap(other); |
| 4711 | } |
| 4712 | void PonIdConfig::InternalSwap(PonIdConfig* other) { |
| 4713 | using std::swap; |
| 4714 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4715 | pon_id_.Swap(&other->pon_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4716 | GetArenaNoVirtual()); |
| 4717 | swap(pon_id_transmit_periodicity_, other->pon_id_transmit_periodicity_); |
| 4718 | } |
| 4719 | |
| 4720 | ::google::protobuf::Metadata PonIdConfig::GetMetadata() const { |
| 4721 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4722 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4723 | } |
| 4724 | |
| 4725 | |
| 4726 | // =================================================================== |
| 4727 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 4728 | void ContainerComponentAttributes::InitAsDefaultInstance() { |
| 4729 | } |
| 4730 | class ContainerComponentAttributes::HasBitSetters { |
| 4731 | public: |
| 4732 | }; |
| 4733 | |
| 4734 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4735 | const int ContainerComponentAttributes::kPhysicalLabelFieldNumber; |
| 4736 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4737 | |
| 4738 | ContainerComponentAttributes::ContainerComponentAttributes() |
| 4739 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4740 | SharedCtor(); |
| 4741 | // @@protoc_insertion_point(constructor:dmi.ContainerComponentAttributes) |
| 4742 | } |
| 4743 | ContainerComponentAttributes::ContainerComponentAttributes(const ContainerComponentAttributes& from) |
| 4744 | : ::google::protobuf::Message(), |
| 4745 | _internal_metadata_(nullptr) { |
| 4746 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4747 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4748 | if (from.physical_label().size() > 0) { |
| 4749 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 4750 | } |
| 4751 | // @@protoc_insertion_point(copy_constructor:dmi.ContainerComponentAttributes) |
| 4752 | } |
| 4753 | |
| 4754 | void ContainerComponentAttributes::SharedCtor() { |
| 4755 | ::google::protobuf::internal::InitSCC( |
| 4756 | &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 4757 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4758 | } |
| 4759 | |
| 4760 | ContainerComponentAttributes::~ContainerComponentAttributes() { |
| 4761 | // @@protoc_insertion_point(destructor:dmi.ContainerComponentAttributes) |
| 4762 | SharedDtor(); |
| 4763 | } |
| 4764 | |
| 4765 | void ContainerComponentAttributes::SharedDtor() { |
| 4766 | physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4767 | } |
| 4768 | |
| 4769 | void ContainerComponentAttributes::SetCachedSize(int size) const { |
| 4770 | _cached_size_.Set(size); |
| 4771 | } |
| 4772 | const ContainerComponentAttributes& ContainerComponentAttributes::default_instance() { |
| 4773 | ::google::protobuf::internal::InitSCC(&::scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 4774 | return *internal_default_instance(); |
| 4775 | } |
| 4776 | |
| 4777 | |
| 4778 | void ContainerComponentAttributes::Clear() { |
| 4779 | // @@protoc_insertion_point(message_clear_start:dmi.ContainerComponentAttributes) |
| 4780 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4781 | // Prevent compiler warnings about cached_has_bits being unused |
| 4782 | (void) cached_has_bits; |
| 4783 | |
| 4784 | physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4785 | _internal_metadata_.Clear(); |
| 4786 | } |
| 4787 | |
| 4788 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4789 | const char* ContainerComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 4790 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4791 | auto msg = static_cast<ContainerComponentAttributes*>(object); |
| 4792 | ::google::protobuf::int32 size; (void)size; |
| 4793 | int depth; (void)depth; |
| 4794 | ::google::protobuf::uint32 tag; |
| 4795 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4796 | auto ptr = begin; |
| 4797 | while (ptr < end) { |
| 4798 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4799 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4800 | switch (tag >> 3) { |
| 4801 | // string physical_label = 1; |
| 4802 | case 1: { |
| 4803 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4804 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4805 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4806 | ctx->extra_parse_data().SetFieldName("dmi.ContainerComponentAttributes.physical_label"); |
| 4807 | object = msg->mutable_physical_label(); |
| 4808 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4809 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4810 | goto string_till_end; |
| 4811 | } |
| 4812 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4813 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4814 | ptr += size; |
| 4815 | break; |
| 4816 | } |
| 4817 | default: { |
| 4818 | handle_unusual: |
| 4819 | if ((tag & 7) == 4 || tag == 0) { |
| 4820 | ctx->EndGroup(tag); |
| 4821 | return ptr; |
| 4822 | } |
| 4823 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4824 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4825 | ptr = res.first; |
| 4826 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4827 | if (res.second) return ptr; |
| 4828 | } |
| 4829 | } // switch |
| 4830 | } // while |
| 4831 | return ptr; |
| 4832 | string_till_end: |
| 4833 | static_cast<::std::string*>(object)->clear(); |
| 4834 | static_cast<::std::string*>(object)->reserve(size); |
| 4835 | goto len_delim_till_end; |
| 4836 | len_delim_till_end: |
| 4837 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4838 | {parser_till_end, object}, size); |
| 4839 | } |
| 4840 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4841 | bool ContainerComponentAttributes::MergePartialFromCodedStream( |
| 4842 | ::google::protobuf::io::CodedInputStream* input) { |
| 4843 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4844 | ::google::protobuf::uint32 tag; |
| 4845 | // @@protoc_insertion_point(parse_start:dmi.ContainerComponentAttributes) |
| 4846 | for (;;) { |
| 4847 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4848 | tag = p.first; |
| 4849 | if (!p.second) goto handle_unusual; |
| 4850 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4851 | // string physical_label = 1; |
| 4852 | case 1: { |
| 4853 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4854 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4855 | input, this->mutable_physical_label())); |
| 4856 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4857 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 4858 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4859 | "dmi.ContainerComponentAttributes.physical_label")); |
| 4860 | } else { |
| 4861 | goto handle_unusual; |
| 4862 | } |
| 4863 | break; |
| 4864 | } |
| 4865 | |
| 4866 | default: { |
| 4867 | handle_unusual: |
| 4868 | if (tag == 0) { |
| 4869 | goto success; |
| 4870 | } |
| 4871 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4872 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4873 | break; |
| 4874 | } |
| 4875 | } |
| 4876 | } |
| 4877 | success: |
| 4878 | // @@protoc_insertion_point(parse_success:dmi.ContainerComponentAttributes) |
| 4879 | return true; |
| 4880 | failure: |
| 4881 | // @@protoc_insertion_point(parse_failure:dmi.ContainerComponentAttributes) |
| 4882 | return false; |
| 4883 | #undef DO_ |
| 4884 | } |
| 4885 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4886 | |
| 4887 | void ContainerComponentAttributes::SerializeWithCachedSizes( |
| 4888 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4889 | // @@protoc_insertion_point(serialize_start:dmi.ContainerComponentAttributes) |
| 4890 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4891 | (void) cached_has_bits; |
| 4892 | |
| 4893 | // string physical_label = 1; |
| 4894 | if (this->physical_label().size() > 0) { |
| 4895 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4896 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 4897 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4898 | "dmi.ContainerComponentAttributes.physical_label"); |
| 4899 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4900 | 1, this->physical_label(), output); |
| 4901 | } |
| 4902 | |
| 4903 | if (_internal_metadata_.have_unknown_fields()) { |
| 4904 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4905 | _internal_metadata_.unknown_fields(), output); |
| 4906 | } |
| 4907 | // @@protoc_insertion_point(serialize_end:dmi.ContainerComponentAttributes) |
| 4908 | } |
| 4909 | |
| 4910 | ::google::protobuf::uint8* ContainerComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 4911 | ::google::protobuf::uint8* target) const { |
| 4912 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ContainerComponentAttributes) |
| 4913 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4914 | (void) cached_has_bits; |
| 4915 | |
| 4916 | // string physical_label = 1; |
| 4917 | if (this->physical_label().size() > 0) { |
| 4918 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4919 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 4920 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4921 | "dmi.ContainerComponentAttributes.physical_label"); |
| 4922 | target = |
| 4923 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4924 | 1, this->physical_label(), target); |
| 4925 | } |
| 4926 | |
| 4927 | if (_internal_metadata_.have_unknown_fields()) { |
| 4928 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4929 | _internal_metadata_.unknown_fields(), target); |
| 4930 | } |
| 4931 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ContainerComponentAttributes) |
| 4932 | return target; |
| 4933 | } |
| 4934 | |
| 4935 | size_t ContainerComponentAttributes::ByteSizeLong() const { |
| 4936 | // @@protoc_insertion_point(message_byte_size_start:dmi.ContainerComponentAttributes) |
| 4937 | size_t total_size = 0; |
| 4938 | |
| 4939 | if (_internal_metadata_.have_unknown_fields()) { |
| 4940 | total_size += |
| 4941 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4942 | _internal_metadata_.unknown_fields()); |
| 4943 | } |
| 4944 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4945 | // Prevent compiler warnings about cached_has_bits being unused |
| 4946 | (void) cached_has_bits; |
| 4947 | |
| 4948 | // string physical_label = 1; |
| 4949 | if (this->physical_label().size() > 0) { |
| 4950 | total_size += 1 + |
| 4951 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4952 | this->physical_label()); |
| 4953 | } |
| 4954 | |
| 4955 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4956 | SetCachedSize(cached_size); |
| 4957 | return total_size; |
| 4958 | } |
| 4959 | |
| 4960 | void ContainerComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 4961 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ContainerComponentAttributes) |
| 4962 | GOOGLE_DCHECK_NE(&from, this); |
| 4963 | const ContainerComponentAttributes* source = |
| 4964 | ::google::protobuf::DynamicCastToGenerated<ContainerComponentAttributes>( |
| 4965 | &from); |
| 4966 | if (source == nullptr) { |
| 4967 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ContainerComponentAttributes) |
| 4968 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4969 | } else { |
| 4970 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ContainerComponentAttributes) |
| 4971 | MergeFrom(*source); |
| 4972 | } |
| 4973 | } |
| 4974 | |
| 4975 | void ContainerComponentAttributes::MergeFrom(const ContainerComponentAttributes& from) { |
| 4976 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ContainerComponentAttributes) |
| 4977 | GOOGLE_DCHECK_NE(&from, this); |
| 4978 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4979 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4980 | (void) cached_has_bits; |
| 4981 | |
| 4982 | if (from.physical_label().size() > 0) { |
| 4983 | |
| 4984 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 4985 | } |
| 4986 | } |
| 4987 | |
| 4988 | void ContainerComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 4989 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ContainerComponentAttributes) |
| 4990 | if (&from == this) return; |
| 4991 | Clear(); |
| 4992 | MergeFrom(from); |
| 4993 | } |
| 4994 | |
| 4995 | void ContainerComponentAttributes::CopyFrom(const ContainerComponentAttributes& from) { |
| 4996 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ContainerComponentAttributes) |
| 4997 | if (&from == this) return; |
| 4998 | Clear(); |
| 4999 | MergeFrom(from); |
| 5000 | } |
| 5001 | |
| 5002 | bool ContainerComponentAttributes::IsInitialized() const { |
| 5003 | return true; |
| 5004 | } |
| 5005 | |
| 5006 | void ContainerComponentAttributes::Swap(ContainerComponentAttributes* other) { |
| 5007 | if (other == this) return; |
| 5008 | InternalSwap(other); |
| 5009 | } |
| 5010 | void ContainerComponentAttributes::InternalSwap(ContainerComponentAttributes* other) { |
| 5011 | using std::swap; |
| 5012 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5013 | physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5014 | GetArenaNoVirtual()); |
| 5015 | } |
| 5016 | |
| 5017 | ::google::protobuf::Metadata ContainerComponentAttributes::GetMetadata() const { |
| 5018 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5019 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5020 | } |
| 5021 | |
| 5022 | |
| 5023 | // =================================================================== |
| 5024 | |
| 5025 | void PsuComponentAttributes::InitAsDefaultInstance() { |
| 5026 | } |
| 5027 | class PsuComponentAttributes::HasBitSetters { |
| 5028 | public: |
| 5029 | }; |
| 5030 | |
| 5031 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5032 | const int PsuComponentAttributes::kSupportedVoltageFieldNumber; |
| 5033 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5034 | |
| 5035 | PsuComponentAttributes::PsuComponentAttributes() |
| 5036 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5037 | SharedCtor(); |
| 5038 | // @@protoc_insertion_point(constructor:dmi.PsuComponentAttributes) |
| 5039 | } |
| 5040 | PsuComponentAttributes::PsuComponentAttributes(const PsuComponentAttributes& from) |
| 5041 | : ::google::protobuf::Message(), |
| 5042 | _internal_metadata_(nullptr) { |
| 5043 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5044 | supported_voltage_ = from.supported_voltage_; |
| 5045 | // @@protoc_insertion_point(copy_constructor:dmi.PsuComponentAttributes) |
| 5046 | } |
| 5047 | |
| 5048 | void PsuComponentAttributes::SharedCtor() { |
| 5049 | supported_voltage_ = 0; |
| 5050 | } |
| 5051 | |
| 5052 | PsuComponentAttributes::~PsuComponentAttributes() { |
| 5053 | // @@protoc_insertion_point(destructor:dmi.PsuComponentAttributes) |
| 5054 | SharedDtor(); |
| 5055 | } |
| 5056 | |
| 5057 | void PsuComponentAttributes::SharedDtor() { |
| 5058 | } |
| 5059 | |
| 5060 | void PsuComponentAttributes::SetCachedSize(int size) const { |
| 5061 | _cached_size_.Set(size); |
| 5062 | } |
| 5063 | const PsuComponentAttributes& PsuComponentAttributes::default_instance() { |
| 5064 | ::google::protobuf::internal::InitSCC(&::scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base); |
| 5065 | return *internal_default_instance(); |
| 5066 | } |
| 5067 | |
| 5068 | |
| 5069 | void PsuComponentAttributes::Clear() { |
| 5070 | // @@protoc_insertion_point(message_clear_start:dmi.PsuComponentAttributes) |
| 5071 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5072 | // Prevent compiler warnings about cached_has_bits being unused |
| 5073 | (void) cached_has_bits; |
| 5074 | |
| 5075 | supported_voltage_ = 0; |
| 5076 | _internal_metadata_.Clear(); |
| 5077 | } |
| 5078 | |
| 5079 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5080 | const char* PsuComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 5081 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5082 | auto msg = static_cast<PsuComponentAttributes*>(object); |
| 5083 | ::google::protobuf::int32 size; (void)size; |
| 5084 | int depth; (void)depth; |
| 5085 | ::google::protobuf::uint32 tag; |
| 5086 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5087 | auto ptr = begin; |
| 5088 | while (ptr < end) { |
| 5089 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5090 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5091 | switch (tag >> 3) { |
| 5092 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5093 | case 1: { |
| 5094 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5095 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5096 | msg->set_supported_voltage(static_cast<::dmi::PsuComponentAttributes_SupportedVoltage>(val)); |
| 5097 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5098 | break; |
| 5099 | } |
| 5100 | default: { |
| 5101 | handle_unusual: |
| 5102 | if ((tag & 7) == 4 || tag == 0) { |
| 5103 | ctx->EndGroup(tag); |
| 5104 | return ptr; |
| 5105 | } |
| 5106 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5107 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5108 | ptr = res.first; |
| 5109 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5110 | if (res.second) return ptr; |
| 5111 | } |
| 5112 | } // switch |
| 5113 | } // while |
| 5114 | return ptr; |
| 5115 | } |
| 5116 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5117 | bool PsuComponentAttributes::MergePartialFromCodedStream( |
| 5118 | ::google::protobuf::io::CodedInputStream* input) { |
| 5119 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5120 | ::google::protobuf::uint32 tag; |
| 5121 | // @@protoc_insertion_point(parse_start:dmi.PsuComponentAttributes) |
| 5122 | for (;;) { |
| 5123 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5124 | tag = p.first; |
| 5125 | if (!p.second) goto handle_unusual; |
| 5126 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5127 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5128 | case 1: { |
| 5129 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5130 | int value = 0; |
| 5131 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5132 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5133 | input, &value))); |
| 5134 | set_supported_voltage(static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(value)); |
| 5135 | } else { |
| 5136 | goto handle_unusual; |
| 5137 | } |
| 5138 | break; |
| 5139 | } |
| 5140 | |
| 5141 | default: { |
| 5142 | handle_unusual: |
| 5143 | if (tag == 0) { |
| 5144 | goto success; |
| 5145 | } |
| 5146 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5147 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5148 | break; |
| 5149 | } |
| 5150 | } |
| 5151 | } |
| 5152 | success: |
| 5153 | // @@protoc_insertion_point(parse_success:dmi.PsuComponentAttributes) |
| 5154 | return true; |
| 5155 | failure: |
| 5156 | // @@protoc_insertion_point(parse_failure:dmi.PsuComponentAttributes) |
| 5157 | return false; |
| 5158 | #undef DO_ |
| 5159 | } |
| 5160 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5161 | |
| 5162 | void PsuComponentAttributes::SerializeWithCachedSizes( |
| 5163 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5164 | // @@protoc_insertion_point(serialize_start:dmi.PsuComponentAttributes) |
| 5165 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5166 | (void) cached_has_bits; |
| 5167 | |
| 5168 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5169 | if (this->supported_voltage() != 0) { |
| 5170 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5171 | 1, this->supported_voltage(), output); |
| 5172 | } |
| 5173 | |
| 5174 | if (_internal_metadata_.have_unknown_fields()) { |
| 5175 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5176 | _internal_metadata_.unknown_fields(), output); |
| 5177 | } |
| 5178 | // @@protoc_insertion_point(serialize_end:dmi.PsuComponentAttributes) |
| 5179 | } |
| 5180 | |
| 5181 | ::google::protobuf::uint8* PsuComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 5182 | ::google::protobuf::uint8* target) const { |
| 5183 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PsuComponentAttributes) |
| 5184 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5185 | (void) cached_has_bits; |
| 5186 | |
| 5187 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5188 | if (this->supported_voltage() != 0) { |
| 5189 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5190 | 1, this->supported_voltage(), target); |
| 5191 | } |
| 5192 | |
| 5193 | if (_internal_metadata_.have_unknown_fields()) { |
| 5194 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5195 | _internal_metadata_.unknown_fields(), target); |
| 5196 | } |
| 5197 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PsuComponentAttributes) |
| 5198 | return target; |
| 5199 | } |
| 5200 | |
| 5201 | size_t PsuComponentAttributes::ByteSizeLong() const { |
| 5202 | // @@protoc_insertion_point(message_byte_size_start:dmi.PsuComponentAttributes) |
| 5203 | size_t total_size = 0; |
| 5204 | |
| 5205 | if (_internal_metadata_.have_unknown_fields()) { |
| 5206 | total_size += |
| 5207 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5208 | _internal_metadata_.unknown_fields()); |
| 5209 | } |
| 5210 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5211 | // Prevent compiler warnings about cached_has_bits being unused |
| 5212 | (void) cached_has_bits; |
| 5213 | |
| 5214 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5215 | if (this->supported_voltage() != 0) { |
| 5216 | total_size += 1 + |
| 5217 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->supported_voltage()); |
| 5218 | } |
| 5219 | |
| 5220 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5221 | SetCachedSize(cached_size); |
| 5222 | return total_size; |
| 5223 | } |
| 5224 | |
| 5225 | void PsuComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 5226 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PsuComponentAttributes) |
| 5227 | GOOGLE_DCHECK_NE(&from, this); |
| 5228 | const PsuComponentAttributes* source = |
| 5229 | ::google::protobuf::DynamicCastToGenerated<PsuComponentAttributes>( |
| 5230 | &from); |
| 5231 | if (source == nullptr) { |
| 5232 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PsuComponentAttributes) |
| 5233 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5234 | } else { |
| 5235 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PsuComponentAttributes) |
| 5236 | MergeFrom(*source); |
| 5237 | } |
| 5238 | } |
| 5239 | |
| 5240 | void PsuComponentAttributes::MergeFrom(const PsuComponentAttributes& from) { |
| 5241 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PsuComponentAttributes) |
| 5242 | GOOGLE_DCHECK_NE(&from, this); |
| 5243 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5244 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5245 | (void) cached_has_bits; |
| 5246 | |
| 5247 | if (from.supported_voltage() != 0) { |
| 5248 | set_supported_voltage(from.supported_voltage()); |
| 5249 | } |
| 5250 | } |
| 5251 | |
| 5252 | void PsuComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 5253 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PsuComponentAttributes) |
| 5254 | if (&from == this) return; |
| 5255 | Clear(); |
| 5256 | MergeFrom(from); |
| 5257 | } |
| 5258 | |
| 5259 | void PsuComponentAttributes::CopyFrom(const PsuComponentAttributes& from) { |
| 5260 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PsuComponentAttributes) |
| 5261 | if (&from == this) return; |
| 5262 | Clear(); |
| 5263 | MergeFrom(from); |
| 5264 | } |
| 5265 | |
| 5266 | bool PsuComponentAttributes::IsInitialized() const { |
| 5267 | return true; |
| 5268 | } |
| 5269 | |
| 5270 | void PsuComponentAttributes::Swap(PsuComponentAttributes* other) { |
| 5271 | if (other == this) return; |
| 5272 | InternalSwap(other); |
| 5273 | } |
| 5274 | void PsuComponentAttributes::InternalSwap(PsuComponentAttributes* other) { |
| 5275 | using std::swap; |
| 5276 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5277 | swap(supported_voltage_, other->supported_voltage_); |
| 5278 | } |
| 5279 | |
| 5280 | ::google::protobuf::Metadata PsuComponentAttributes::GetMetadata() const { |
| 5281 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5282 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5283 | } |
| 5284 | |
| 5285 | |
| 5286 | // =================================================================== |
| 5287 | |
| 5288 | void TransceiverComponentsAttributes::InitAsDefaultInstance() { |
| 5289 | } |
| 5290 | class TransceiverComponentsAttributes::HasBitSetters { |
| 5291 | public: |
| 5292 | }; |
| 5293 | |
| 5294 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5295 | const int TransceiverComponentsAttributes::kFormFactorFieldNumber; |
| 5296 | const int TransceiverComponentsAttributes::kTransTypeFieldNumber; |
| 5297 | const int TransceiverComponentsAttributes::kMaxDistanceFieldNumber; |
| 5298 | const int TransceiverComponentsAttributes::kMaxDistanceScaleFieldNumber; |
| 5299 | const int TransceiverComponentsAttributes::kRxWavelengthFieldNumber; |
| 5300 | const int TransceiverComponentsAttributes::kTxWavelengthFieldNumber; |
| 5301 | const int TransceiverComponentsAttributes::kWavelengthScaleFieldNumber; |
| 5302 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5303 | |
| 5304 | TransceiverComponentsAttributes::TransceiverComponentsAttributes() |
| 5305 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5306 | SharedCtor(); |
| 5307 | // @@protoc_insertion_point(constructor:dmi.TransceiverComponentsAttributes) |
| 5308 | } |
| 5309 | TransceiverComponentsAttributes::TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from) |
| 5310 | : ::google::protobuf::Message(), |
| 5311 | _internal_metadata_(nullptr), |
| 5312 | rx_wavelength_(from.rx_wavelength_), |
| 5313 | tx_wavelength_(from.tx_wavelength_) { |
| 5314 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5315 | ::memcpy(&form_factor_, &from.form_factor_, |
| 5316 | static_cast<size_t>(reinterpret_cast<char*>(&wavelength_scale_) - |
| 5317 | reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_)); |
| 5318 | // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentsAttributes) |
| 5319 | } |
| 5320 | |
| 5321 | void TransceiverComponentsAttributes::SharedCtor() { |
| 5322 | ::memset(&form_factor_, 0, static_cast<size_t>( |
| 5323 | reinterpret_cast<char*>(&wavelength_scale_) - |
| 5324 | reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_)); |
| 5325 | } |
| 5326 | |
| 5327 | TransceiverComponentsAttributes::~TransceiverComponentsAttributes() { |
| 5328 | // @@protoc_insertion_point(destructor:dmi.TransceiverComponentsAttributes) |
| 5329 | SharedDtor(); |
| 5330 | } |
| 5331 | |
| 5332 | void TransceiverComponentsAttributes::SharedDtor() { |
| 5333 | } |
| 5334 | |
| 5335 | void TransceiverComponentsAttributes::SetCachedSize(int size) const { |
| 5336 | _cached_size_.Set(size); |
| 5337 | } |
| 5338 | const TransceiverComponentsAttributes& TransceiverComponentsAttributes::default_instance() { |
| 5339 | ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base); |
| 5340 | return *internal_default_instance(); |
| 5341 | } |
| 5342 | |
| 5343 | |
| 5344 | void TransceiverComponentsAttributes::Clear() { |
| 5345 | // @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentsAttributes) |
| 5346 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5347 | // Prevent compiler warnings about cached_has_bits being unused |
| 5348 | (void) cached_has_bits; |
| 5349 | |
| 5350 | rx_wavelength_.Clear(); |
| 5351 | tx_wavelength_.Clear(); |
| 5352 | ::memset(&form_factor_, 0, static_cast<size_t>( |
| 5353 | reinterpret_cast<char*>(&wavelength_scale_) - |
| 5354 | reinterpret_cast<char*>(&form_factor_)) + sizeof(wavelength_scale_)); |
| 5355 | _internal_metadata_.Clear(); |
| 5356 | } |
| 5357 | |
| 5358 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5359 | const char* TransceiverComponentsAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 5360 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5361 | auto msg = static_cast<TransceiverComponentsAttributes*>(object); |
| 5362 | ::google::protobuf::int32 size; (void)size; |
| 5363 | int depth; (void)depth; |
| 5364 | ::google::protobuf::uint32 tag; |
| 5365 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5366 | auto ptr = begin; |
| 5367 | while (ptr < end) { |
| 5368 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5369 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5370 | switch (tag >> 3) { |
| 5371 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5372 | case 1: { |
| 5373 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5374 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5375 | msg->set_form_factor(static_cast<::dmi::TransceiverComponentsAttributes_FormFactor>(val)); |
| 5376 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5377 | break; |
| 5378 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5379 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5380 | case 2: { |
| 5381 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5382 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5383 | msg->set_trans_type(static_cast<::dmi::TransceiverType>(val)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5384 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5385 | break; |
| 5386 | } |
| 5387 | // uint32 max_distance = 3; |
| 5388 | case 3: { |
| 5389 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 5390 | msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5391 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5392 | break; |
| 5393 | } |
| 5394 | // .dmi.ValueScale max_distance_scale = 4; |
| 5395 | case 4: { |
| 5396 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 5397 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5398 | msg->set_max_distance_scale(static_cast<::dmi::ValueScale>(val)); |
| 5399 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5400 | break; |
| 5401 | } |
| 5402 | // repeated uint32 rx_wavelength = 5; |
| 5403 | case 5: { |
| 5404 | if (static_cast<::google::protobuf::uint8>(tag) == 42) { |
| 5405 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5406 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5407 | parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; |
| 5408 | object = msg->mutable_rx_wavelength(); |
| 5409 | if (size > end - ptr) goto len_delim_till_end; |
| 5410 | auto newend = ptr + size; |
| 5411 | if (size) ptr = parser_till_end(ptr, newend, object, ctx); |
| 5412 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); |
| 5413 | break; |
| 5414 | } else if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 5415 | do { |
| 5416 | msg->add_rx_wavelength(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5417 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5418 | if (ptr >= end) break; |
| 5419 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 40 && (ptr += 1)); |
| 5420 | break; |
| 5421 | } |
| 5422 | // repeated uint32 tx_wavelength = 6; |
| 5423 | case 6: { |
| 5424 | if (static_cast<::google::protobuf::uint8>(tag) == 50) { |
| 5425 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5426 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5427 | parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; |
| 5428 | object = msg->mutable_tx_wavelength(); |
| 5429 | if (size > end - ptr) goto len_delim_till_end; |
| 5430 | auto newend = ptr + size; |
| 5431 | if (size) ptr = parser_till_end(ptr, newend, object, ctx); |
| 5432 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); |
| 5433 | break; |
| 5434 | } else if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; |
| 5435 | do { |
| 5436 | msg->add_tx_wavelength(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5437 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5438 | if (ptr >= end) break; |
| 5439 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 48 && (ptr += 1)); |
| 5440 | break; |
| 5441 | } |
| 5442 | // .dmi.ValueScale wavelength_scale = 7; |
| 5443 | case 7: { |
| 5444 | if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; |
| 5445 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5446 | msg->set_wavelength_scale(static_cast<::dmi::ValueScale>(val)); |
| 5447 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5448 | break; |
| 5449 | } |
| 5450 | default: { |
| 5451 | handle_unusual: |
| 5452 | if ((tag & 7) == 4 || tag == 0) { |
| 5453 | ctx->EndGroup(tag); |
| 5454 | return ptr; |
| 5455 | } |
| 5456 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5457 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5458 | ptr = res.first; |
| 5459 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5460 | if (res.second) return ptr; |
| 5461 | } |
| 5462 | } // switch |
| 5463 | } // while |
| 5464 | return ptr; |
| 5465 | len_delim_till_end: |
| 5466 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5467 | {parser_till_end, object}, size); |
| 5468 | } |
| 5469 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5470 | bool TransceiverComponentsAttributes::MergePartialFromCodedStream( |
| 5471 | ::google::protobuf::io::CodedInputStream* input) { |
| 5472 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5473 | ::google::protobuf::uint32 tag; |
| 5474 | // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentsAttributes) |
| 5475 | for (;;) { |
| 5476 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5477 | tag = p.first; |
| 5478 | if (!p.second) goto handle_unusual; |
| 5479 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5480 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5481 | case 1: { |
| 5482 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5483 | int value = 0; |
| 5484 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5485 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5486 | input, &value))); |
| 5487 | set_form_factor(static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(value)); |
| 5488 | } else { |
| 5489 | goto handle_unusual; |
| 5490 | } |
| 5491 | break; |
| 5492 | } |
| 5493 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5494 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5495 | case 2: { |
| 5496 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5497 | int value = 0; |
| 5498 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5499 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5500 | input, &value))); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5501 | set_trans_type(static_cast< ::dmi::TransceiverType >(value)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5502 | } else { |
| 5503 | goto handle_unusual; |
| 5504 | } |
| 5505 | break; |
| 5506 | } |
| 5507 | |
| 5508 | // uint32 max_distance = 3; |
| 5509 | case 3: { |
| 5510 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 5511 | |
| 5512 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5513 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5514 | input, &max_distance_))); |
| 5515 | } else { |
| 5516 | goto handle_unusual; |
| 5517 | } |
| 5518 | break; |
| 5519 | } |
| 5520 | |
| 5521 | // .dmi.ValueScale max_distance_scale = 4; |
| 5522 | case 4: { |
| 5523 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 5524 | int value = 0; |
| 5525 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5526 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5527 | input, &value))); |
| 5528 | set_max_distance_scale(static_cast< ::dmi::ValueScale >(value)); |
| 5529 | } else { |
| 5530 | goto handle_unusual; |
| 5531 | } |
| 5532 | break; |
| 5533 | } |
| 5534 | |
| 5535 | // repeated uint32 rx_wavelength = 5; |
| 5536 | case 5: { |
| 5537 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 5538 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 5539 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5540 | input, this->mutable_rx_wavelength()))); |
| 5541 | } else if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 5542 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 5543 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5544 | 1, 42u, input, this->mutable_rx_wavelength()))); |
| 5545 | } else { |
| 5546 | goto handle_unusual; |
| 5547 | } |
| 5548 | break; |
| 5549 | } |
| 5550 | |
| 5551 | // repeated uint32 tx_wavelength = 6; |
| 5552 | case 6: { |
| 5553 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 5554 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 5555 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5556 | input, this->mutable_tx_wavelength()))); |
| 5557 | } else if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { |
| 5558 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 5559 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5560 | 1, 50u, input, this->mutable_tx_wavelength()))); |
| 5561 | } else { |
| 5562 | goto handle_unusual; |
| 5563 | } |
| 5564 | break; |
| 5565 | } |
| 5566 | |
| 5567 | // .dmi.ValueScale wavelength_scale = 7; |
| 5568 | case 7: { |
| 5569 | if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { |
| 5570 | int value = 0; |
| 5571 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5572 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5573 | input, &value))); |
| 5574 | set_wavelength_scale(static_cast< ::dmi::ValueScale >(value)); |
| 5575 | } else { |
| 5576 | goto handle_unusual; |
| 5577 | } |
| 5578 | break; |
| 5579 | } |
| 5580 | |
| 5581 | default: { |
| 5582 | handle_unusual: |
| 5583 | if (tag == 0) { |
| 5584 | goto success; |
| 5585 | } |
| 5586 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5587 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5588 | break; |
| 5589 | } |
| 5590 | } |
| 5591 | } |
| 5592 | success: |
| 5593 | // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentsAttributes) |
| 5594 | return true; |
| 5595 | failure: |
| 5596 | // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentsAttributes) |
| 5597 | return false; |
| 5598 | #undef DO_ |
| 5599 | } |
| 5600 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5601 | |
| 5602 | void TransceiverComponentsAttributes::SerializeWithCachedSizes( |
| 5603 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5604 | // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentsAttributes) |
| 5605 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5606 | (void) cached_has_bits; |
| 5607 | |
| 5608 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5609 | if (this->form_factor() != 0) { |
| 5610 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5611 | 1, this->form_factor(), output); |
| 5612 | } |
| 5613 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5614 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5615 | if (this->trans_type() != 0) { |
| 5616 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5617 | 2, this->trans_type(), output); |
| 5618 | } |
| 5619 | |
| 5620 | // uint32 max_distance = 3; |
| 5621 | if (this->max_distance() != 0) { |
| 5622 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_distance(), output); |
| 5623 | } |
| 5624 | |
| 5625 | // .dmi.ValueScale max_distance_scale = 4; |
| 5626 | if (this->max_distance_scale() != 0) { |
| 5627 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5628 | 4, this->max_distance_scale(), output); |
| 5629 | } |
| 5630 | |
| 5631 | // repeated uint32 rx_wavelength = 5; |
| 5632 | if (this->rx_wavelength_size() > 0) { |
| 5633 | ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 5634 | output->WriteVarint32(_rx_wavelength_cached_byte_size_.load( |
| 5635 | std::memory_order_relaxed)); |
| 5636 | } |
| 5637 | for (int i = 0, n = this->rx_wavelength_size(); i < n; i++) { |
| 5638 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| 5639 | this->rx_wavelength(i), output); |
| 5640 | } |
| 5641 | |
| 5642 | // repeated uint32 tx_wavelength = 6; |
| 5643 | if (this->tx_wavelength_size() > 0) { |
| 5644 | ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 5645 | output->WriteVarint32(_tx_wavelength_cached_byte_size_.load( |
| 5646 | std::memory_order_relaxed)); |
| 5647 | } |
| 5648 | for (int i = 0, n = this->tx_wavelength_size(); i < n; i++) { |
| 5649 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| 5650 | this->tx_wavelength(i), output); |
| 5651 | } |
| 5652 | |
| 5653 | // .dmi.ValueScale wavelength_scale = 7; |
| 5654 | if (this->wavelength_scale() != 0) { |
| 5655 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5656 | 7, this->wavelength_scale(), output); |
| 5657 | } |
| 5658 | |
| 5659 | if (_internal_metadata_.have_unknown_fields()) { |
| 5660 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5661 | _internal_metadata_.unknown_fields(), output); |
| 5662 | } |
| 5663 | // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentsAttributes) |
| 5664 | } |
| 5665 | |
| 5666 | ::google::protobuf::uint8* TransceiverComponentsAttributes::InternalSerializeWithCachedSizesToArray( |
| 5667 | ::google::protobuf::uint8* target) const { |
| 5668 | // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentsAttributes) |
| 5669 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5670 | (void) cached_has_bits; |
| 5671 | |
| 5672 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5673 | if (this->form_factor() != 0) { |
| 5674 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5675 | 1, this->form_factor(), target); |
| 5676 | } |
| 5677 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5678 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5679 | if (this->trans_type() != 0) { |
| 5680 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5681 | 2, this->trans_type(), target); |
| 5682 | } |
| 5683 | |
| 5684 | // uint32 max_distance = 3; |
| 5685 | if (this->max_distance() != 0) { |
| 5686 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_distance(), target); |
| 5687 | } |
| 5688 | |
| 5689 | // .dmi.ValueScale max_distance_scale = 4; |
| 5690 | if (this->max_distance_scale() != 0) { |
| 5691 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5692 | 4, this->max_distance_scale(), target); |
| 5693 | } |
| 5694 | |
| 5695 | // repeated uint32 rx_wavelength = 5; |
| 5696 | if (this->rx_wavelength_size() > 0) { |
| 5697 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 5698 | 5, |
| 5699 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 5700 | target); |
| 5701 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 5702 | _rx_wavelength_cached_byte_size_.load(std::memory_order_relaxed), |
| 5703 | target); |
| 5704 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5705 | WriteUInt32NoTagToArray(this->rx_wavelength_, target); |
| 5706 | } |
| 5707 | |
| 5708 | // repeated uint32 tx_wavelength = 6; |
| 5709 | if (this->tx_wavelength_size() > 0) { |
| 5710 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 5711 | 6, |
| 5712 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 5713 | target); |
| 5714 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 5715 | _tx_wavelength_cached_byte_size_.load(std::memory_order_relaxed), |
| 5716 | target); |
| 5717 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5718 | WriteUInt32NoTagToArray(this->tx_wavelength_, target); |
| 5719 | } |
| 5720 | |
| 5721 | // .dmi.ValueScale wavelength_scale = 7; |
| 5722 | if (this->wavelength_scale() != 0) { |
| 5723 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5724 | 7, this->wavelength_scale(), target); |
| 5725 | } |
| 5726 | |
| 5727 | if (_internal_metadata_.have_unknown_fields()) { |
| 5728 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5729 | _internal_metadata_.unknown_fields(), target); |
| 5730 | } |
| 5731 | // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentsAttributes) |
| 5732 | return target; |
| 5733 | } |
| 5734 | |
| 5735 | size_t TransceiverComponentsAttributes::ByteSizeLong() const { |
| 5736 | // @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentsAttributes) |
| 5737 | size_t total_size = 0; |
| 5738 | |
| 5739 | if (_internal_metadata_.have_unknown_fields()) { |
| 5740 | total_size += |
| 5741 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5742 | _internal_metadata_.unknown_fields()); |
| 5743 | } |
| 5744 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5745 | // Prevent compiler warnings about cached_has_bits being unused |
| 5746 | (void) cached_has_bits; |
| 5747 | |
| 5748 | // repeated uint32 rx_wavelength = 5; |
| 5749 | { |
| 5750 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
| 5751 | UInt32Size(this->rx_wavelength_); |
| 5752 | if (data_size > 0) { |
| 5753 | total_size += 1 + |
| 5754 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 5755 | static_cast<::google::protobuf::int32>(data_size)); |
| 5756 | } |
| 5757 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 5758 | _rx_wavelength_cached_byte_size_.store(cached_size, |
| 5759 | std::memory_order_relaxed); |
| 5760 | total_size += data_size; |
| 5761 | } |
| 5762 | |
| 5763 | // repeated uint32 tx_wavelength = 6; |
| 5764 | { |
| 5765 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
| 5766 | UInt32Size(this->tx_wavelength_); |
| 5767 | if (data_size > 0) { |
| 5768 | total_size += 1 + |
| 5769 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 5770 | static_cast<::google::protobuf::int32>(data_size)); |
| 5771 | } |
| 5772 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 5773 | _tx_wavelength_cached_byte_size_.store(cached_size, |
| 5774 | std::memory_order_relaxed); |
| 5775 | total_size += data_size; |
| 5776 | } |
| 5777 | |
| 5778 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5779 | if (this->form_factor() != 0) { |
| 5780 | total_size += 1 + |
| 5781 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->form_factor()); |
| 5782 | } |
| 5783 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5784 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5785 | if (this->trans_type() != 0) { |
| 5786 | total_size += 1 + |
| 5787 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type()); |
| 5788 | } |
| 5789 | |
| 5790 | // uint32 max_distance = 3; |
| 5791 | if (this->max_distance() != 0) { |
| 5792 | total_size += 1 + |
| 5793 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 5794 | this->max_distance()); |
| 5795 | } |
| 5796 | |
| 5797 | // .dmi.ValueScale max_distance_scale = 4; |
| 5798 | if (this->max_distance_scale() != 0) { |
| 5799 | total_size += 1 + |
| 5800 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->max_distance_scale()); |
| 5801 | } |
| 5802 | |
| 5803 | // .dmi.ValueScale wavelength_scale = 7; |
| 5804 | if (this->wavelength_scale() != 0) { |
| 5805 | total_size += 1 + |
| 5806 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->wavelength_scale()); |
| 5807 | } |
| 5808 | |
| 5809 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5810 | SetCachedSize(cached_size); |
| 5811 | return total_size; |
| 5812 | } |
| 5813 | |
| 5814 | void TransceiverComponentsAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 5815 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentsAttributes) |
| 5816 | GOOGLE_DCHECK_NE(&from, this); |
| 5817 | const TransceiverComponentsAttributes* source = |
| 5818 | ::google::protobuf::DynamicCastToGenerated<TransceiverComponentsAttributes>( |
| 5819 | &from); |
| 5820 | if (source == nullptr) { |
| 5821 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentsAttributes) |
| 5822 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5823 | } else { |
| 5824 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentsAttributes) |
| 5825 | MergeFrom(*source); |
| 5826 | } |
| 5827 | } |
| 5828 | |
| 5829 | void TransceiverComponentsAttributes::MergeFrom(const TransceiverComponentsAttributes& from) { |
| 5830 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentsAttributes) |
| 5831 | GOOGLE_DCHECK_NE(&from, this); |
| 5832 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5833 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5834 | (void) cached_has_bits; |
| 5835 | |
| 5836 | rx_wavelength_.MergeFrom(from.rx_wavelength_); |
| 5837 | tx_wavelength_.MergeFrom(from.tx_wavelength_); |
| 5838 | if (from.form_factor() != 0) { |
| 5839 | set_form_factor(from.form_factor()); |
| 5840 | } |
| 5841 | if (from.trans_type() != 0) { |
| 5842 | set_trans_type(from.trans_type()); |
| 5843 | } |
| 5844 | if (from.max_distance() != 0) { |
| 5845 | set_max_distance(from.max_distance()); |
| 5846 | } |
| 5847 | if (from.max_distance_scale() != 0) { |
| 5848 | set_max_distance_scale(from.max_distance_scale()); |
| 5849 | } |
| 5850 | if (from.wavelength_scale() != 0) { |
| 5851 | set_wavelength_scale(from.wavelength_scale()); |
| 5852 | } |
| 5853 | } |
| 5854 | |
| 5855 | void TransceiverComponentsAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 5856 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentsAttributes) |
| 5857 | if (&from == this) return; |
| 5858 | Clear(); |
| 5859 | MergeFrom(from); |
| 5860 | } |
| 5861 | |
| 5862 | void TransceiverComponentsAttributes::CopyFrom(const TransceiverComponentsAttributes& from) { |
| 5863 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentsAttributes) |
| 5864 | if (&from == this) return; |
| 5865 | Clear(); |
| 5866 | MergeFrom(from); |
| 5867 | } |
| 5868 | |
| 5869 | bool TransceiverComponentsAttributes::IsInitialized() const { |
| 5870 | return true; |
| 5871 | } |
| 5872 | |
| 5873 | void TransceiverComponentsAttributes::Swap(TransceiverComponentsAttributes* other) { |
| 5874 | if (other == this) return; |
| 5875 | InternalSwap(other); |
| 5876 | } |
| 5877 | void TransceiverComponentsAttributes::InternalSwap(TransceiverComponentsAttributes* other) { |
| 5878 | using std::swap; |
| 5879 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5880 | rx_wavelength_.InternalSwap(&other->rx_wavelength_); |
| 5881 | tx_wavelength_.InternalSwap(&other->tx_wavelength_); |
| 5882 | swap(form_factor_, other->form_factor_); |
| 5883 | swap(trans_type_, other->trans_type_); |
| 5884 | swap(max_distance_, other->max_distance_); |
| 5885 | swap(max_distance_scale_, other->max_distance_scale_); |
| 5886 | swap(wavelength_scale_, other->wavelength_scale_); |
| 5887 | } |
| 5888 | |
| 5889 | ::google::protobuf::Metadata TransceiverComponentsAttributes::GetMetadata() const { |
| 5890 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5891 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5892 | } |
| 5893 | |
| 5894 | |
| 5895 | // =================================================================== |
| 5896 | |
| 5897 | void Component::InitAsDefaultInstance() { |
| 5898 | ::dmi::_Component_default_instance_._instance.get_mutable()->mfg_date_ = const_cast< ::google::protobuf::Timestamp*>( |
| 5899 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 5900 | ::dmi::_Component_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>( |
| 5901 | ::dmi::Uri::internal_default_instance()); |
| 5902 | ::dmi::_Component_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>( |
| 5903 | ::dmi::Uuid::internal_default_instance()); |
| 5904 | ::dmi::_Component_default_instance_._instance.get_mutable()->state_ = const_cast< ::dmi::ComponentState*>( |
| 5905 | ::dmi::ComponentState::internal_default_instance()); |
| 5906 | ::dmi::_Component_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentAttributes*>( |
| 5907 | ::dmi::PortComponentAttributes::internal_default_instance()); |
| 5908 | ::dmi::_Component_default_instance_.container_attr_ = const_cast< ::dmi::ContainerComponentAttributes*>( |
| 5909 | ::dmi::ContainerComponentAttributes::internal_default_instance()); |
| 5910 | ::dmi::_Component_default_instance_.psu_attr_ = const_cast< ::dmi::PsuComponentAttributes*>( |
| 5911 | ::dmi::PsuComponentAttributes::internal_default_instance()); |
| 5912 | ::dmi::_Component_default_instance_.transceiver_attr_ = const_cast< ::dmi::TransceiverComponentsAttributes*>( |
| 5913 | ::dmi::TransceiverComponentsAttributes::internal_default_instance()); |
| 5914 | } |
| 5915 | class Component::HasBitSetters { |
| 5916 | public: |
| 5917 | static const ::google::protobuf::Timestamp& mfg_date(const Component* msg); |
| 5918 | static const ::dmi::Uri& uri(const Component* msg); |
| 5919 | static const ::dmi::Uuid& uuid(const Component* msg); |
| 5920 | static const ::dmi::ComponentState& state(const Component* msg); |
| 5921 | static const ::dmi::PortComponentAttributes& port_attr(const Component* msg); |
| 5922 | static const ::dmi::ContainerComponentAttributes& container_attr(const Component* msg); |
| 5923 | static const ::dmi::PsuComponentAttributes& psu_attr(const Component* msg); |
| 5924 | static const ::dmi::TransceiverComponentsAttributes& transceiver_attr(const Component* msg); |
| 5925 | }; |
| 5926 | |
| 5927 | const ::google::protobuf::Timestamp& |
| 5928 | Component::HasBitSetters::mfg_date(const Component* msg) { |
| 5929 | return *msg->mfg_date_; |
| 5930 | } |
| 5931 | const ::dmi::Uri& |
| 5932 | Component::HasBitSetters::uri(const Component* msg) { |
| 5933 | return *msg->uri_; |
| 5934 | } |
| 5935 | const ::dmi::Uuid& |
| 5936 | Component::HasBitSetters::uuid(const Component* msg) { |
| 5937 | return *msg->uuid_; |
| 5938 | } |
| 5939 | const ::dmi::ComponentState& |
| 5940 | Component::HasBitSetters::state(const Component* msg) { |
| 5941 | return *msg->state_; |
| 5942 | } |
| 5943 | const ::dmi::PortComponentAttributes& |
| 5944 | Component::HasBitSetters::port_attr(const Component* msg) { |
| 5945 | return *msg->specific_.port_attr_; |
| 5946 | } |
| 5947 | const ::dmi::ContainerComponentAttributes& |
| 5948 | Component::HasBitSetters::container_attr(const Component* msg) { |
| 5949 | return *msg->specific_.container_attr_; |
| 5950 | } |
| 5951 | const ::dmi::PsuComponentAttributes& |
| 5952 | Component::HasBitSetters::psu_attr(const Component* msg) { |
| 5953 | return *msg->specific_.psu_attr_; |
| 5954 | } |
| 5955 | const ::dmi::TransceiverComponentsAttributes& |
| 5956 | Component::HasBitSetters::transceiver_attr(const Component* msg) { |
| 5957 | return *msg->specific_.transceiver_attr_; |
| 5958 | } |
| 5959 | void Component::clear_mfg_date() { |
| 5960 | if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) { |
| 5961 | delete mfg_date_; |
| 5962 | } |
| 5963 | mfg_date_ = nullptr; |
| 5964 | } |
| 5965 | void Component::set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr) { |
| 5966 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 5967 | clear_specific(); |
| 5968 | if (port_attr) { |
| 5969 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 5970 | if (message_arena != submessage_arena) { |
| 5971 | port_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 5972 | message_arena, port_attr, submessage_arena); |
| 5973 | } |
| 5974 | set_has_port_attr(); |
| 5975 | specific_.port_attr_ = port_attr; |
| 5976 | } |
| 5977 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.port_attr) |
| 5978 | } |
| 5979 | void Component::set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr) { |
| 5980 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 5981 | clear_specific(); |
| 5982 | if (container_attr) { |
| 5983 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 5984 | if (message_arena != submessage_arena) { |
| 5985 | container_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 5986 | message_arena, container_attr, submessage_arena); |
| 5987 | } |
| 5988 | set_has_container_attr(); |
| 5989 | specific_.container_attr_ = container_attr; |
| 5990 | } |
| 5991 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.container_attr) |
| 5992 | } |
| 5993 | void Component::set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr) { |
| 5994 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 5995 | clear_specific(); |
| 5996 | if (psu_attr) { |
| 5997 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 5998 | if (message_arena != submessage_arena) { |
| 5999 | psu_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6000 | message_arena, psu_attr, submessage_arena); |
| 6001 | } |
| 6002 | set_has_psu_attr(); |
| 6003 | specific_.psu_attr_ = psu_attr; |
| 6004 | } |
| 6005 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.psu_attr) |
| 6006 | } |
| 6007 | void Component::set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr) { |
| 6008 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6009 | clear_specific(); |
| 6010 | if (transceiver_attr) { |
| 6011 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6012 | if (message_arena != submessage_arena) { |
| 6013 | transceiver_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6014 | message_arena, transceiver_attr, submessage_arena); |
| 6015 | } |
| 6016 | set_has_transceiver_attr(); |
| 6017 | specific_.transceiver_attr_ = transceiver_attr; |
| 6018 | } |
| 6019 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.transceiver_attr) |
| 6020 | } |
| 6021 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6022 | const int Component::kNameFieldNumber; |
| 6023 | const int Component::kClassFieldNumber; |
| 6024 | const int Component::kDescriptionFieldNumber; |
| 6025 | const int Component::kParentFieldNumber; |
| 6026 | const int Component::kParentRelPosFieldNumber; |
| 6027 | const int Component::kChildrenFieldNumber; |
| 6028 | const int Component::kHardwareRevFieldNumber; |
| 6029 | const int Component::kFirmwareRevFieldNumber; |
| 6030 | const int Component::kSoftwareRevFieldNumber; |
| 6031 | const int Component::kSerialNumFieldNumber; |
| 6032 | const int Component::kMfgNameFieldNumber; |
| 6033 | const int Component::kModelNameFieldNumber; |
| 6034 | const int Component::kAliasFieldNumber; |
| 6035 | const int Component::kAssetIdFieldNumber; |
| 6036 | const int Component::kIsFruFieldNumber; |
| 6037 | const int Component::kMfgDateFieldNumber; |
| 6038 | const int Component::kUriFieldNumber; |
| 6039 | const int Component::kUuidFieldNumber; |
| 6040 | const int Component::kStateFieldNumber; |
| 6041 | const int Component::kSensorDataFieldNumber; |
| 6042 | const int Component::kPortAttrFieldNumber; |
| 6043 | const int Component::kContainerAttrFieldNumber; |
| 6044 | const int Component::kPsuAttrFieldNumber; |
| 6045 | const int Component::kTransceiverAttrFieldNumber; |
| 6046 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6047 | |
| 6048 | Component::Component() |
| 6049 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6050 | SharedCtor(); |
| 6051 | // @@protoc_insertion_point(constructor:dmi.Component) |
| 6052 | } |
| 6053 | Component::Component(const Component& from) |
| 6054 | : ::google::protobuf::Message(), |
| 6055 | _internal_metadata_(nullptr), |
| 6056 | children_(from.children_), |
| 6057 | sensor_data_(from.sensor_data_) { |
| 6058 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6059 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6060 | if (from.name().size() > 0) { |
| 6061 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6062 | } |
| 6063 | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6064 | if (from.description().size() > 0) { |
| 6065 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
| 6066 | } |
| 6067 | parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6068 | if (from.parent().size() > 0) { |
| 6069 | parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); |
| 6070 | } |
| 6071 | hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6072 | if (from.hardware_rev().size() > 0) { |
| 6073 | hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_); |
| 6074 | } |
| 6075 | firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6076 | if (from.firmware_rev().size() > 0) { |
| 6077 | firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_); |
| 6078 | } |
| 6079 | software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6080 | if (from.software_rev().size() > 0) { |
| 6081 | software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_); |
| 6082 | } |
| 6083 | serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6084 | if (from.serial_num().size() > 0) { |
| 6085 | serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_); |
| 6086 | } |
| 6087 | mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6088 | if (from.mfg_name().size() > 0) { |
| 6089 | mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_); |
| 6090 | } |
| 6091 | model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6092 | if (from.model_name().size() > 0) { |
| 6093 | model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_); |
| 6094 | } |
| 6095 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6096 | if (from.alias().size() > 0) { |
| 6097 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 6098 | } |
| 6099 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6100 | if (from.asset_id().size() > 0) { |
| 6101 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 6102 | } |
| 6103 | if (from.has_mfg_date()) { |
| 6104 | mfg_date_ = new ::google::protobuf::Timestamp(*from.mfg_date_); |
| 6105 | } else { |
| 6106 | mfg_date_ = nullptr; |
| 6107 | } |
| 6108 | if (from.has_uri()) { |
| 6109 | uri_ = new ::dmi::Uri(*from.uri_); |
| 6110 | } else { |
| 6111 | uri_ = nullptr; |
| 6112 | } |
| 6113 | if (from.has_uuid()) { |
| 6114 | uuid_ = new ::dmi::Uuid(*from.uuid_); |
| 6115 | } else { |
| 6116 | uuid_ = nullptr; |
| 6117 | } |
| 6118 | if (from.has_state()) { |
| 6119 | state_ = new ::dmi::ComponentState(*from.state_); |
| 6120 | } else { |
| 6121 | state_ = nullptr; |
| 6122 | } |
| 6123 | ::memcpy(&class__, &from.class__, |
| 6124 | static_cast<size_t>(reinterpret_cast<char*>(&is_fru_) - |
| 6125 | reinterpret_cast<char*>(&class__)) + sizeof(is_fru_)); |
| 6126 | clear_has_specific(); |
| 6127 | switch (from.specific_case()) { |
| 6128 | case kPortAttr: { |
| 6129 | mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr()); |
| 6130 | break; |
| 6131 | } |
| 6132 | case kContainerAttr: { |
| 6133 | mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr()); |
| 6134 | break; |
| 6135 | } |
| 6136 | case kPsuAttr: { |
| 6137 | mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr()); |
| 6138 | break; |
| 6139 | } |
| 6140 | case kTransceiverAttr: { |
| 6141 | mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr()); |
| 6142 | break; |
| 6143 | } |
| 6144 | case SPECIFIC_NOT_SET: { |
| 6145 | break; |
| 6146 | } |
| 6147 | } |
| 6148 | // @@protoc_insertion_point(copy_constructor:dmi.Component) |
| 6149 | } |
| 6150 | |
| 6151 | void Component::SharedCtor() { |
| 6152 | ::google::protobuf::internal::InitSCC( |
| 6153 | &scc_info_Component_dmi_2fhw_2eproto.base); |
| 6154 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6155 | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6156 | parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6157 | hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6158 | firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6159 | software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6160 | serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6161 | mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6162 | model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6163 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6164 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6165 | ::memset(&mfg_date_, 0, static_cast<size_t>( |
| 6166 | reinterpret_cast<char*>(&is_fru_) - |
| 6167 | reinterpret_cast<char*>(&mfg_date_)) + sizeof(is_fru_)); |
| 6168 | clear_has_specific(); |
| 6169 | } |
| 6170 | |
| 6171 | Component::~Component() { |
| 6172 | // @@protoc_insertion_point(destructor:dmi.Component) |
| 6173 | SharedDtor(); |
| 6174 | } |
| 6175 | |
| 6176 | void Component::SharedDtor() { |
| 6177 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6178 | description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6179 | parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6180 | hardware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6181 | firmware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6182 | software_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6183 | serial_num_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6184 | mfg_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6185 | model_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6186 | alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6187 | asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6188 | if (this != internal_default_instance()) delete mfg_date_; |
| 6189 | if (this != internal_default_instance()) delete uri_; |
| 6190 | if (this != internal_default_instance()) delete uuid_; |
| 6191 | if (this != internal_default_instance()) delete state_; |
| 6192 | if (has_specific()) { |
| 6193 | clear_specific(); |
| 6194 | } |
| 6195 | } |
| 6196 | |
| 6197 | void Component::SetCachedSize(int size) const { |
| 6198 | _cached_size_.Set(size); |
| 6199 | } |
| 6200 | const Component& Component::default_instance() { |
| 6201 | ::google::protobuf::internal::InitSCC(&::scc_info_Component_dmi_2fhw_2eproto.base); |
| 6202 | return *internal_default_instance(); |
| 6203 | } |
| 6204 | |
| 6205 | |
| 6206 | void Component::clear_specific() { |
| 6207 | // @@protoc_insertion_point(one_of_clear_start:dmi.Component) |
| 6208 | switch (specific_case()) { |
| 6209 | case kPortAttr: { |
| 6210 | delete specific_.port_attr_; |
| 6211 | break; |
| 6212 | } |
| 6213 | case kContainerAttr: { |
| 6214 | delete specific_.container_attr_; |
| 6215 | break; |
| 6216 | } |
| 6217 | case kPsuAttr: { |
| 6218 | delete specific_.psu_attr_; |
| 6219 | break; |
| 6220 | } |
| 6221 | case kTransceiverAttr: { |
| 6222 | delete specific_.transceiver_attr_; |
| 6223 | break; |
| 6224 | } |
| 6225 | case SPECIFIC_NOT_SET: { |
| 6226 | break; |
| 6227 | } |
| 6228 | } |
| 6229 | _oneof_case_[0] = SPECIFIC_NOT_SET; |
| 6230 | } |
| 6231 | |
| 6232 | |
| 6233 | void Component::Clear() { |
| 6234 | // @@protoc_insertion_point(message_clear_start:dmi.Component) |
| 6235 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6236 | // Prevent compiler warnings about cached_has_bits being unused |
| 6237 | (void) cached_has_bits; |
| 6238 | |
| 6239 | children_.Clear(); |
| 6240 | sensor_data_.Clear(); |
| 6241 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6242 | description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6243 | parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6244 | hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6245 | firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6246 | software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6247 | serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6248 | mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6249 | model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6250 | alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6251 | asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6252 | if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) { |
| 6253 | delete mfg_date_; |
| 6254 | } |
| 6255 | mfg_date_ = nullptr; |
| 6256 | if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) { |
| 6257 | delete uri_; |
| 6258 | } |
| 6259 | uri_ = nullptr; |
| 6260 | if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) { |
| 6261 | delete uuid_; |
| 6262 | } |
| 6263 | uuid_ = nullptr; |
| 6264 | if (GetArenaNoVirtual() == nullptr && state_ != nullptr) { |
| 6265 | delete state_; |
| 6266 | } |
| 6267 | state_ = nullptr; |
| 6268 | ::memset(&class__, 0, static_cast<size_t>( |
| 6269 | reinterpret_cast<char*>(&is_fru_) - |
| 6270 | reinterpret_cast<char*>(&class__)) + sizeof(is_fru_)); |
| 6271 | clear_specific(); |
| 6272 | _internal_metadata_.Clear(); |
| 6273 | } |
| 6274 | |
| 6275 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6276 | const char* Component::_InternalParse(const char* begin, const char* end, void* object, |
| 6277 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6278 | auto msg = static_cast<Component*>(object); |
| 6279 | ::google::protobuf::int32 size; (void)size; |
| 6280 | int depth; (void)depth; |
| 6281 | ::google::protobuf::uint32 tag; |
| 6282 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6283 | auto ptr = begin; |
| 6284 | while (ptr < end) { |
| 6285 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6286 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6287 | switch (tag >> 3) { |
| 6288 | // string name = 1; |
| 6289 | case 1: { |
| 6290 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 6291 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6292 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6293 | ctx->extra_parse_data().SetFieldName("dmi.Component.name"); |
| 6294 | object = msg->mutable_name(); |
| 6295 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6296 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6297 | goto string_till_end; |
| 6298 | } |
| 6299 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6300 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6301 | ptr += size; |
| 6302 | break; |
| 6303 | } |
| 6304 | // .dmi.ComponentType class = 2; |
| 6305 | case 2: { |
| 6306 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6307 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6308 | msg->set_class_(static_cast<::dmi::ComponentType>(val)); |
| 6309 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6310 | break; |
| 6311 | } |
| 6312 | // string description = 3; |
| 6313 | case 3: { |
| 6314 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6315 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6316 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6317 | ctx->extra_parse_data().SetFieldName("dmi.Component.description"); |
| 6318 | object = msg->mutable_description(); |
| 6319 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6320 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6321 | goto string_till_end; |
| 6322 | } |
| 6323 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6324 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6325 | ptr += size; |
| 6326 | break; |
| 6327 | } |
| 6328 | // string parent = 4; |
| 6329 | case 4: { |
| 6330 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6331 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6332 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6333 | ctx->extra_parse_data().SetFieldName("dmi.Component.parent"); |
| 6334 | object = msg->mutable_parent(); |
| 6335 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6336 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6337 | goto string_till_end; |
| 6338 | } |
| 6339 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6340 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6341 | ptr += size; |
| 6342 | break; |
| 6343 | } |
| 6344 | // int32 parent_rel_pos = 5; |
| 6345 | case 5: { |
| 6346 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 6347 | msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr)); |
| 6348 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6349 | break; |
| 6350 | } |
| 6351 | // repeated .dmi.Component children = 6; |
| 6352 | case 6: { |
| 6353 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 6354 | do { |
| 6355 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6356 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6357 | parser_till_end = ::dmi::Component::_InternalParse; |
| 6358 | object = msg->add_children(); |
| 6359 | if (size > end - ptr) goto len_delim_till_end; |
| 6360 | ptr += size; |
| 6361 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6362 | {parser_till_end, object}, ptr - size, ptr)); |
| 6363 | if (ptr >= end) break; |
| 6364 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); |
| 6365 | break; |
| 6366 | } |
| 6367 | // string hardware_rev = 7; |
| 6368 | case 7: { |
| 6369 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 6370 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6371 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6372 | ctx->extra_parse_data().SetFieldName("dmi.Component.hardware_rev"); |
| 6373 | object = msg->mutable_hardware_rev(); |
| 6374 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6375 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6376 | goto string_till_end; |
| 6377 | } |
| 6378 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6379 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6380 | ptr += size; |
| 6381 | break; |
| 6382 | } |
| 6383 | // string firmware_rev = 8; |
| 6384 | case 8: { |
| 6385 | if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; |
| 6386 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6387 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6388 | ctx->extra_parse_data().SetFieldName("dmi.Component.firmware_rev"); |
| 6389 | object = msg->mutable_firmware_rev(); |
| 6390 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6391 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6392 | goto string_till_end; |
| 6393 | } |
| 6394 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6395 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6396 | ptr += size; |
| 6397 | break; |
| 6398 | } |
| 6399 | // string software_rev = 9; |
| 6400 | case 9: { |
| 6401 | if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; |
| 6402 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6403 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6404 | ctx->extra_parse_data().SetFieldName("dmi.Component.software_rev"); |
| 6405 | object = msg->mutable_software_rev(); |
| 6406 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6407 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6408 | goto string_till_end; |
| 6409 | } |
| 6410 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6411 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6412 | ptr += size; |
| 6413 | break; |
| 6414 | } |
| 6415 | // string serial_num = 10; |
| 6416 | case 10: { |
| 6417 | if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; |
| 6418 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6419 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6420 | ctx->extra_parse_data().SetFieldName("dmi.Component.serial_num"); |
| 6421 | object = msg->mutable_serial_num(); |
| 6422 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6423 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6424 | goto string_till_end; |
| 6425 | } |
| 6426 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6427 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6428 | ptr += size; |
| 6429 | break; |
| 6430 | } |
| 6431 | // string mfg_name = 11; |
| 6432 | case 11: { |
| 6433 | if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; |
| 6434 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6435 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6436 | ctx->extra_parse_data().SetFieldName("dmi.Component.mfg_name"); |
| 6437 | object = msg->mutable_mfg_name(); |
| 6438 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6439 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6440 | goto string_till_end; |
| 6441 | } |
| 6442 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6443 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6444 | ptr += size; |
| 6445 | break; |
| 6446 | } |
| 6447 | // string model_name = 12; |
| 6448 | case 12: { |
| 6449 | if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; |
| 6450 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6451 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6452 | ctx->extra_parse_data().SetFieldName("dmi.Component.model_name"); |
| 6453 | object = msg->mutable_model_name(); |
| 6454 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6455 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6456 | goto string_till_end; |
| 6457 | } |
| 6458 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6459 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6460 | ptr += size; |
| 6461 | break; |
| 6462 | } |
| 6463 | // string alias = 13; |
| 6464 | case 13: { |
| 6465 | if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; |
| 6466 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6467 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6468 | ctx->extra_parse_data().SetFieldName("dmi.Component.alias"); |
| 6469 | object = msg->mutable_alias(); |
| 6470 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6471 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6472 | goto string_till_end; |
| 6473 | } |
| 6474 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6475 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6476 | ptr += size; |
| 6477 | break; |
| 6478 | } |
| 6479 | // string asset_id = 14; |
| 6480 | case 14: { |
| 6481 | if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; |
| 6482 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6483 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6484 | ctx->extra_parse_data().SetFieldName("dmi.Component.asset_id"); |
| 6485 | object = msg->mutable_asset_id(); |
| 6486 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6487 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6488 | goto string_till_end; |
| 6489 | } |
| 6490 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6491 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6492 | ptr += size; |
| 6493 | break; |
| 6494 | } |
| 6495 | // bool is_fru = 15; |
| 6496 | case 15: { |
| 6497 | if (static_cast<::google::protobuf::uint8>(tag) != 120) goto handle_unusual; |
| 6498 | msg->set_is_fru(::google::protobuf::internal::ReadVarint(&ptr)); |
| 6499 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6500 | break; |
| 6501 | } |
| 6502 | // .google.protobuf.Timestamp mfg_date = 16; |
| 6503 | case 16: { |
| 6504 | if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; |
| 6505 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6506 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6507 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 6508 | object = msg->mutable_mfg_date(); |
| 6509 | if (size > end - ptr) goto len_delim_till_end; |
| 6510 | ptr += size; |
| 6511 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6512 | {parser_till_end, object}, ptr - size, ptr)); |
| 6513 | break; |
| 6514 | } |
| 6515 | // .dmi.Uri uri = 17; |
| 6516 | case 17: { |
| 6517 | if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; |
| 6518 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6519 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6520 | parser_till_end = ::dmi::Uri::_InternalParse; |
| 6521 | object = msg->mutable_uri(); |
| 6522 | if (size > end - ptr) goto len_delim_till_end; |
| 6523 | ptr += size; |
| 6524 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6525 | {parser_till_end, object}, ptr - size, ptr)); |
| 6526 | break; |
| 6527 | } |
| 6528 | // .dmi.Uuid uuid = 18; |
| 6529 | case 18: { |
| 6530 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 6531 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6532 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6533 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 6534 | object = msg->mutable_uuid(); |
| 6535 | if (size > end - ptr) goto len_delim_till_end; |
| 6536 | ptr += size; |
| 6537 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6538 | {parser_till_end, object}, ptr - size, ptr)); |
| 6539 | break; |
| 6540 | } |
| 6541 | // .dmi.ComponentState state = 19; |
| 6542 | case 19: { |
| 6543 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 6544 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6545 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6546 | parser_till_end = ::dmi::ComponentState::_InternalParse; |
| 6547 | object = msg->mutable_state(); |
| 6548 | if (size > end - ptr) goto len_delim_till_end; |
| 6549 | ptr += size; |
| 6550 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6551 | {parser_till_end, object}, ptr - size, ptr)); |
| 6552 | break; |
| 6553 | } |
| 6554 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 6555 | case 20: { |
| 6556 | if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; |
| 6557 | do { |
| 6558 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6559 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6560 | parser_till_end = ::dmi::ComponentSensorData::_InternalParse; |
| 6561 | object = msg->add_sensor_data(); |
| 6562 | if (size > end - ptr) goto len_delim_till_end; |
| 6563 | ptr += size; |
| 6564 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6565 | {parser_till_end, object}, ptr - size, ptr)); |
| 6566 | if (ptr >= end) break; |
| 6567 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 418 && (ptr += 2)); |
| 6568 | break; |
| 6569 | } |
| 6570 | // .dmi.PortComponentAttributes port_attr = 50; |
| 6571 | case 50: { |
| 6572 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 6573 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6574 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6575 | parser_till_end = ::dmi::PortComponentAttributes::_InternalParse; |
| 6576 | object = msg->mutable_port_attr(); |
| 6577 | if (size > end - ptr) goto len_delim_till_end; |
| 6578 | ptr += size; |
| 6579 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6580 | {parser_till_end, object}, ptr - size, ptr)); |
| 6581 | break; |
| 6582 | } |
| 6583 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 6584 | case 51: { |
| 6585 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 6586 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6587 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6588 | parser_till_end = ::dmi::ContainerComponentAttributes::_InternalParse; |
| 6589 | object = msg->mutable_container_attr(); |
| 6590 | if (size > end - ptr) goto len_delim_till_end; |
| 6591 | ptr += size; |
| 6592 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6593 | {parser_till_end, object}, ptr - size, ptr)); |
| 6594 | break; |
| 6595 | } |
| 6596 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 6597 | case 52: { |
| 6598 | if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; |
| 6599 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6600 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6601 | parser_till_end = ::dmi::PsuComponentAttributes::_InternalParse; |
| 6602 | object = msg->mutable_psu_attr(); |
| 6603 | if (size > end - ptr) goto len_delim_till_end; |
| 6604 | ptr += size; |
| 6605 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6606 | {parser_till_end, object}, ptr - size, ptr)); |
| 6607 | break; |
| 6608 | } |
| 6609 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 6610 | case 53: { |
| 6611 | if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; |
| 6612 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6613 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6614 | parser_till_end = ::dmi::TransceiverComponentsAttributes::_InternalParse; |
| 6615 | object = msg->mutable_transceiver_attr(); |
| 6616 | if (size > end - ptr) goto len_delim_till_end; |
| 6617 | ptr += size; |
| 6618 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6619 | {parser_till_end, object}, ptr - size, ptr)); |
| 6620 | break; |
| 6621 | } |
| 6622 | default: { |
| 6623 | handle_unusual: |
| 6624 | if ((tag & 7) == 4 || tag == 0) { |
| 6625 | ctx->EndGroup(tag); |
| 6626 | return ptr; |
| 6627 | } |
| 6628 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6629 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6630 | ptr = res.first; |
| 6631 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6632 | if (res.second) return ptr; |
| 6633 | } |
| 6634 | } // switch |
| 6635 | } // while |
| 6636 | return ptr; |
| 6637 | string_till_end: |
| 6638 | static_cast<::std::string*>(object)->clear(); |
| 6639 | static_cast<::std::string*>(object)->reserve(size); |
| 6640 | goto len_delim_till_end; |
| 6641 | len_delim_till_end: |
| 6642 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6643 | {parser_till_end, object}, size); |
| 6644 | } |
| 6645 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6646 | bool Component::MergePartialFromCodedStream( |
| 6647 | ::google::protobuf::io::CodedInputStream* input) { |
| 6648 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6649 | ::google::protobuf::uint32 tag; |
| 6650 | // @@protoc_insertion_point(parse_start:dmi.Component) |
| 6651 | for (;;) { |
| 6652 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 6653 | tag = p.first; |
| 6654 | if (!p.second) goto handle_unusual; |
| 6655 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6656 | // string name = 1; |
| 6657 | case 1: { |
| 6658 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 6659 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6660 | input, this->mutable_name())); |
| 6661 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6662 | this->name().data(), static_cast<int>(this->name().length()), |
| 6663 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6664 | "dmi.Component.name")); |
| 6665 | } else { |
| 6666 | goto handle_unusual; |
| 6667 | } |
| 6668 | break; |
| 6669 | } |
| 6670 | |
| 6671 | // .dmi.ComponentType class = 2; |
| 6672 | case 2: { |
| 6673 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6674 | int value = 0; |
| 6675 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6676 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6677 | input, &value))); |
| 6678 | set_class_(static_cast< ::dmi::ComponentType >(value)); |
| 6679 | } else { |
| 6680 | goto handle_unusual; |
| 6681 | } |
| 6682 | break; |
| 6683 | } |
| 6684 | |
| 6685 | // string description = 3; |
| 6686 | case 3: { |
| 6687 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6688 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6689 | input, this->mutable_description())); |
| 6690 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6691 | this->description().data(), static_cast<int>(this->description().length()), |
| 6692 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6693 | "dmi.Component.description")); |
| 6694 | } else { |
| 6695 | goto handle_unusual; |
| 6696 | } |
| 6697 | break; |
| 6698 | } |
| 6699 | |
| 6700 | // string parent = 4; |
| 6701 | case 4: { |
| 6702 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 6703 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6704 | input, this->mutable_parent())); |
| 6705 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6706 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 6707 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6708 | "dmi.Component.parent")); |
| 6709 | } else { |
| 6710 | goto handle_unusual; |
| 6711 | } |
| 6712 | break; |
| 6713 | } |
| 6714 | |
| 6715 | // int32 parent_rel_pos = 5; |
| 6716 | case 5: { |
| 6717 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 6718 | |
| 6719 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6720 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 6721 | input, &parent_rel_pos_))); |
| 6722 | } else { |
| 6723 | goto handle_unusual; |
| 6724 | } |
| 6725 | break; |
| 6726 | } |
| 6727 | |
| 6728 | // repeated .dmi.Component children = 6; |
| 6729 | case 6: { |
| 6730 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 6731 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6732 | input, add_children())); |
| 6733 | } else { |
| 6734 | goto handle_unusual; |
| 6735 | } |
| 6736 | break; |
| 6737 | } |
| 6738 | |
| 6739 | // string hardware_rev = 7; |
| 6740 | case 7: { |
| 6741 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 6742 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6743 | input, this->mutable_hardware_rev())); |
| 6744 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6745 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 6746 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6747 | "dmi.Component.hardware_rev")); |
| 6748 | } else { |
| 6749 | goto handle_unusual; |
| 6750 | } |
| 6751 | break; |
| 6752 | } |
| 6753 | |
| 6754 | // string firmware_rev = 8; |
| 6755 | case 8: { |
| 6756 | if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { |
| 6757 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6758 | input, this->mutable_firmware_rev())); |
| 6759 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6760 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 6761 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6762 | "dmi.Component.firmware_rev")); |
| 6763 | } else { |
| 6764 | goto handle_unusual; |
| 6765 | } |
| 6766 | break; |
| 6767 | } |
| 6768 | |
| 6769 | // string software_rev = 9; |
| 6770 | case 9: { |
| 6771 | if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { |
| 6772 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6773 | input, this->mutable_software_rev())); |
| 6774 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6775 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 6776 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6777 | "dmi.Component.software_rev")); |
| 6778 | } else { |
| 6779 | goto handle_unusual; |
| 6780 | } |
| 6781 | break; |
| 6782 | } |
| 6783 | |
| 6784 | // string serial_num = 10; |
| 6785 | case 10: { |
| 6786 | if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { |
| 6787 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6788 | input, this->mutable_serial_num())); |
| 6789 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6790 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 6791 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6792 | "dmi.Component.serial_num")); |
| 6793 | } else { |
| 6794 | goto handle_unusual; |
| 6795 | } |
| 6796 | break; |
| 6797 | } |
| 6798 | |
| 6799 | // string mfg_name = 11; |
| 6800 | case 11: { |
| 6801 | if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { |
| 6802 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6803 | input, this->mutable_mfg_name())); |
| 6804 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6805 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 6806 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6807 | "dmi.Component.mfg_name")); |
| 6808 | } else { |
| 6809 | goto handle_unusual; |
| 6810 | } |
| 6811 | break; |
| 6812 | } |
| 6813 | |
| 6814 | // string model_name = 12; |
| 6815 | case 12: { |
| 6816 | if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { |
| 6817 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6818 | input, this->mutable_model_name())); |
| 6819 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6820 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 6821 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6822 | "dmi.Component.model_name")); |
| 6823 | } else { |
| 6824 | goto handle_unusual; |
| 6825 | } |
| 6826 | break; |
| 6827 | } |
| 6828 | |
| 6829 | // string alias = 13; |
| 6830 | case 13: { |
| 6831 | if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { |
| 6832 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6833 | input, this->mutable_alias())); |
| 6834 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6835 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 6836 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6837 | "dmi.Component.alias")); |
| 6838 | } else { |
| 6839 | goto handle_unusual; |
| 6840 | } |
| 6841 | break; |
| 6842 | } |
| 6843 | |
| 6844 | // string asset_id = 14; |
| 6845 | case 14: { |
| 6846 | if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { |
| 6847 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6848 | input, this->mutable_asset_id())); |
| 6849 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6850 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 6851 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6852 | "dmi.Component.asset_id")); |
| 6853 | } else { |
| 6854 | goto handle_unusual; |
| 6855 | } |
| 6856 | break; |
| 6857 | } |
| 6858 | |
| 6859 | // bool is_fru = 15; |
| 6860 | case 15: { |
| 6861 | if (static_cast< ::google::protobuf::uint8>(tag) == (120 & 0xFF)) { |
| 6862 | |
| 6863 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6864 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 6865 | input, &is_fru_))); |
| 6866 | } else { |
| 6867 | goto handle_unusual; |
| 6868 | } |
| 6869 | break; |
| 6870 | } |
| 6871 | |
| 6872 | // .google.protobuf.Timestamp mfg_date = 16; |
| 6873 | case 16: { |
| 6874 | if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { |
| 6875 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6876 | input, mutable_mfg_date())); |
| 6877 | } else { |
| 6878 | goto handle_unusual; |
| 6879 | } |
| 6880 | break; |
| 6881 | } |
| 6882 | |
| 6883 | // .dmi.Uri uri = 17; |
| 6884 | case 17: { |
| 6885 | if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { |
| 6886 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6887 | input, mutable_uri())); |
| 6888 | } else { |
| 6889 | goto handle_unusual; |
| 6890 | } |
| 6891 | break; |
| 6892 | } |
| 6893 | |
| 6894 | // .dmi.Uuid uuid = 18; |
| 6895 | case 18: { |
| 6896 | if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { |
| 6897 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6898 | input, mutable_uuid())); |
| 6899 | } else { |
| 6900 | goto handle_unusual; |
| 6901 | } |
| 6902 | break; |
| 6903 | } |
| 6904 | |
| 6905 | // .dmi.ComponentState state = 19; |
| 6906 | case 19: { |
| 6907 | if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { |
| 6908 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6909 | input, mutable_state())); |
| 6910 | } else { |
| 6911 | goto handle_unusual; |
| 6912 | } |
| 6913 | break; |
| 6914 | } |
| 6915 | |
| 6916 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 6917 | case 20: { |
| 6918 | if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { |
| 6919 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6920 | input, add_sensor_data())); |
| 6921 | } else { |
| 6922 | goto handle_unusual; |
| 6923 | } |
| 6924 | break; |
| 6925 | } |
| 6926 | |
| 6927 | // .dmi.PortComponentAttributes port_attr = 50; |
| 6928 | case 50: { |
| 6929 | if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { |
| 6930 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6931 | input, mutable_port_attr())); |
| 6932 | } else { |
| 6933 | goto handle_unusual; |
| 6934 | } |
| 6935 | break; |
| 6936 | } |
| 6937 | |
| 6938 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 6939 | case 51: { |
| 6940 | if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { |
| 6941 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6942 | input, mutable_container_attr())); |
| 6943 | } else { |
| 6944 | goto handle_unusual; |
| 6945 | } |
| 6946 | break; |
| 6947 | } |
| 6948 | |
| 6949 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 6950 | case 52: { |
| 6951 | if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) { |
| 6952 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6953 | input, mutable_psu_attr())); |
| 6954 | } else { |
| 6955 | goto handle_unusual; |
| 6956 | } |
| 6957 | break; |
| 6958 | } |
| 6959 | |
| 6960 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 6961 | case 53: { |
| 6962 | if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) { |
| 6963 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6964 | input, mutable_transceiver_attr())); |
| 6965 | } else { |
| 6966 | goto handle_unusual; |
| 6967 | } |
| 6968 | break; |
| 6969 | } |
| 6970 | |
| 6971 | default: { |
| 6972 | handle_unusual: |
| 6973 | if (tag == 0) { |
| 6974 | goto success; |
| 6975 | } |
| 6976 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6977 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6978 | break; |
| 6979 | } |
| 6980 | } |
| 6981 | } |
| 6982 | success: |
| 6983 | // @@protoc_insertion_point(parse_success:dmi.Component) |
| 6984 | return true; |
| 6985 | failure: |
| 6986 | // @@protoc_insertion_point(parse_failure:dmi.Component) |
| 6987 | return false; |
| 6988 | #undef DO_ |
| 6989 | } |
| 6990 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6991 | |
| 6992 | void Component::SerializeWithCachedSizes( |
| 6993 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6994 | // @@protoc_insertion_point(serialize_start:dmi.Component) |
| 6995 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6996 | (void) cached_has_bits; |
| 6997 | |
| 6998 | // string name = 1; |
| 6999 | if (this->name().size() > 0) { |
| 7000 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7001 | this->name().data(), static_cast<int>(this->name().length()), |
| 7002 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7003 | "dmi.Component.name"); |
| 7004 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7005 | 1, this->name(), output); |
| 7006 | } |
| 7007 | |
| 7008 | // .dmi.ComponentType class = 2; |
| 7009 | if (this->class_() != 0) { |
| 7010 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7011 | 2, this->class_(), output); |
| 7012 | } |
| 7013 | |
| 7014 | // string description = 3; |
| 7015 | if (this->description().size() > 0) { |
| 7016 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7017 | this->description().data(), static_cast<int>(this->description().length()), |
| 7018 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7019 | "dmi.Component.description"); |
| 7020 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7021 | 3, this->description(), output); |
| 7022 | } |
| 7023 | |
| 7024 | // string parent = 4; |
| 7025 | if (this->parent().size() > 0) { |
| 7026 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7027 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 7028 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7029 | "dmi.Component.parent"); |
| 7030 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7031 | 4, this->parent(), output); |
| 7032 | } |
| 7033 | |
| 7034 | // int32 parent_rel_pos = 5; |
| 7035 | if (this->parent_rel_pos() != 0) { |
| 7036 | ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parent_rel_pos(), output); |
| 7037 | } |
| 7038 | |
| 7039 | // repeated .dmi.Component children = 6; |
| 7040 | for (unsigned int i = 0, |
| 7041 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
| 7042 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7043 | 6, |
| 7044 | this->children(static_cast<int>(i)), |
| 7045 | output); |
| 7046 | } |
| 7047 | |
| 7048 | // string hardware_rev = 7; |
| 7049 | if (this->hardware_rev().size() > 0) { |
| 7050 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7051 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 7052 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7053 | "dmi.Component.hardware_rev"); |
| 7054 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7055 | 7, this->hardware_rev(), output); |
| 7056 | } |
| 7057 | |
| 7058 | // string firmware_rev = 8; |
| 7059 | if (this->firmware_rev().size() > 0) { |
| 7060 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7061 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 7062 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7063 | "dmi.Component.firmware_rev"); |
| 7064 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7065 | 8, this->firmware_rev(), output); |
| 7066 | } |
| 7067 | |
| 7068 | // string software_rev = 9; |
| 7069 | if (this->software_rev().size() > 0) { |
| 7070 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7071 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 7072 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7073 | "dmi.Component.software_rev"); |
| 7074 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7075 | 9, this->software_rev(), output); |
| 7076 | } |
| 7077 | |
| 7078 | // string serial_num = 10; |
| 7079 | if (this->serial_num().size() > 0) { |
| 7080 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7081 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 7082 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7083 | "dmi.Component.serial_num"); |
| 7084 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7085 | 10, this->serial_num(), output); |
| 7086 | } |
| 7087 | |
| 7088 | // string mfg_name = 11; |
| 7089 | if (this->mfg_name().size() > 0) { |
| 7090 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7091 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 7092 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7093 | "dmi.Component.mfg_name"); |
| 7094 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7095 | 11, this->mfg_name(), output); |
| 7096 | } |
| 7097 | |
| 7098 | // string model_name = 12; |
| 7099 | if (this->model_name().size() > 0) { |
| 7100 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7101 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 7102 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7103 | "dmi.Component.model_name"); |
| 7104 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7105 | 12, this->model_name(), output); |
| 7106 | } |
| 7107 | |
| 7108 | // string alias = 13; |
| 7109 | if (this->alias().size() > 0) { |
| 7110 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7111 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 7112 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7113 | "dmi.Component.alias"); |
| 7114 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7115 | 13, this->alias(), output); |
| 7116 | } |
| 7117 | |
| 7118 | // string asset_id = 14; |
| 7119 | if (this->asset_id().size() > 0) { |
| 7120 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7121 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 7122 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7123 | "dmi.Component.asset_id"); |
| 7124 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7125 | 14, this->asset_id(), output); |
| 7126 | } |
| 7127 | |
| 7128 | // bool is_fru = 15; |
| 7129 | if (this->is_fru() != 0) { |
| 7130 | ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_fru(), output); |
| 7131 | } |
| 7132 | |
| 7133 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7134 | if (this->has_mfg_date()) { |
| 7135 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7136 | 16, HasBitSetters::mfg_date(this), output); |
| 7137 | } |
| 7138 | |
| 7139 | // .dmi.Uri uri = 17; |
| 7140 | if (this->has_uri()) { |
| 7141 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7142 | 17, HasBitSetters::uri(this), output); |
| 7143 | } |
| 7144 | |
| 7145 | // .dmi.Uuid uuid = 18; |
| 7146 | if (this->has_uuid()) { |
| 7147 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7148 | 18, HasBitSetters::uuid(this), output); |
| 7149 | } |
| 7150 | |
| 7151 | // .dmi.ComponentState state = 19; |
| 7152 | if (this->has_state()) { |
| 7153 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7154 | 19, HasBitSetters::state(this), output); |
| 7155 | } |
| 7156 | |
| 7157 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7158 | for (unsigned int i = 0, |
| 7159 | n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) { |
| 7160 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7161 | 20, |
| 7162 | this->sensor_data(static_cast<int>(i)), |
| 7163 | output); |
| 7164 | } |
| 7165 | |
| 7166 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7167 | if (has_port_attr()) { |
| 7168 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7169 | 50, HasBitSetters::port_attr(this), output); |
| 7170 | } |
| 7171 | |
| 7172 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7173 | if (has_container_attr()) { |
| 7174 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7175 | 51, HasBitSetters::container_attr(this), output); |
| 7176 | } |
| 7177 | |
| 7178 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7179 | if (has_psu_attr()) { |
| 7180 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7181 | 52, HasBitSetters::psu_attr(this), output); |
| 7182 | } |
| 7183 | |
| 7184 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7185 | if (has_transceiver_attr()) { |
| 7186 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7187 | 53, HasBitSetters::transceiver_attr(this), output); |
| 7188 | } |
| 7189 | |
| 7190 | if (_internal_metadata_.have_unknown_fields()) { |
| 7191 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7192 | _internal_metadata_.unknown_fields(), output); |
| 7193 | } |
| 7194 | // @@protoc_insertion_point(serialize_end:dmi.Component) |
| 7195 | } |
| 7196 | |
| 7197 | ::google::protobuf::uint8* Component::InternalSerializeWithCachedSizesToArray( |
| 7198 | ::google::protobuf::uint8* target) const { |
| 7199 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Component) |
| 7200 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7201 | (void) cached_has_bits; |
| 7202 | |
| 7203 | // string name = 1; |
| 7204 | if (this->name().size() > 0) { |
| 7205 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7206 | this->name().data(), static_cast<int>(this->name().length()), |
| 7207 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7208 | "dmi.Component.name"); |
| 7209 | target = |
| 7210 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7211 | 1, this->name(), target); |
| 7212 | } |
| 7213 | |
| 7214 | // .dmi.ComponentType class = 2; |
| 7215 | if (this->class_() != 0) { |
| 7216 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7217 | 2, this->class_(), target); |
| 7218 | } |
| 7219 | |
| 7220 | // string description = 3; |
| 7221 | if (this->description().size() > 0) { |
| 7222 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7223 | this->description().data(), static_cast<int>(this->description().length()), |
| 7224 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7225 | "dmi.Component.description"); |
| 7226 | target = |
| 7227 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7228 | 3, this->description(), target); |
| 7229 | } |
| 7230 | |
| 7231 | // string parent = 4; |
| 7232 | if (this->parent().size() > 0) { |
| 7233 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7234 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 7235 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7236 | "dmi.Component.parent"); |
| 7237 | target = |
| 7238 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7239 | 4, this->parent(), target); |
| 7240 | } |
| 7241 | |
| 7242 | // int32 parent_rel_pos = 5; |
| 7243 | if (this->parent_rel_pos() != 0) { |
| 7244 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parent_rel_pos(), target); |
| 7245 | } |
| 7246 | |
| 7247 | // repeated .dmi.Component children = 6; |
| 7248 | for (unsigned int i = 0, |
| 7249 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
| 7250 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7251 | InternalWriteMessageToArray( |
| 7252 | 6, this->children(static_cast<int>(i)), target); |
| 7253 | } |
| 7254 | |
| 7255 | // string hardware_rev = 7; |
| 7256 | if (this->hardware_rev().size() > 0) { |
| 7257 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7258 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 7259 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7260 | "dmi.Component.hardware_rev"); |
| 7261 | target = |
| 7262 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7263 | 7, this->hardware_rev(), target); |
| 7264 | } |
| 7265 | |
| 7266 | // string firmware_rev = 8; |
| 7267 | if (this->firmware_rev().size() > 0) { |
| 7268 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7269 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 7270 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7271 | "dmi.Component.firmware_rev"); |
| 7272 | target = |
| 7273 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7274 | 8, this->firmware_rev(), target); |
| 7275 | } |
| 7276 | |
| 7277 | // string software_rev = 9; |
| 7278 | if (this->software_rev().size() > 0) { |
| 7279 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7280 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 7281 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7282 | "dmi.Component.software_rev"); |
| 7283 | target = |
| 7284 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7285 | 9, this->software_rev(), target); |
| 7286 | } |
| 7287 | |
| 7288 | // string serial_num = 10; |
| 7289 | if (this->serial_num().size() > 0) { |
| 7290 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7291 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 7292 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7293 | "dmi.Component.serial_num"); |
| 7294 | target = |
| 7295 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7296 | 10, this->serial_num(), target); |
| 7297 | } |
| 7298 | |
| 7299 | // string mfg_name = 11; |
| 7300 | if (this->mfg_name().size() > 0) { |
| 7301 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7302 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 7303 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7304 | "dmi.Component.mfg_name"); |
| 7305 | target = |
| 7306 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7307 | 11, this->mfg_name(), target); |
| 7308 | } |
| 7309 | |
| 7310 | // string model_name = 12; |
| 7311 | if (this->model_name().size() > 0) { |
| 7312 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7313 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 7314 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7315 | "dmi.Component.model_name"); |
| 7316 | target = |
| 7317 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7318 | 12, this->model_name(), target); |
| 7319 | } |
| 7320 | |
| 7321 | // string alias = 13; |
| 7322 | if (this->alias().size() > 0) { |
| 7323 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7324 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 7325 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7326 | "dmi.Component.alias"); |
| 7327 | target = |
| 7328 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7329 | 13, this->alias(), target); |
| 7330 | } |
| 7331 | |
| 7332 | // string asset_id = 14; |
| 7333 | if (this->asset_id().size() > 0) { |
| 7334 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7335 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 7336 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7337 | "dmi.Component.asset_id"); |
| 7338 | target = |
| 7339 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7340 | 14, this->asset_id(), target); |
| 7341 | } |
| 7342 | |
| 7343 | // bool is_fru = 15; |
| 7344 | if (this->is_fru() != 0) { |
| 7345 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_fru(), target); |
| 7346 | } |
| 7347 | |
| 7348 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7349 | if (this->has_mfg_date()) { |
| 7350 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7351 | InternalWriteMessageToArray( |
| 7352 | 16, HasBitSetters::mfg_date(this), target); |
| 7353 | } |
| 7354 | |
| 7355 | // .dmi.Uri uri = 17; |
| 7356 | if (this->has_uri()) { |
| 7357 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7358 | InternalWriteMessageToArray( |
| 7359 | 17, HasBitSetters::uri(this), target); |
| 7360 | } |
| 7361 | |
| 7362 | // .dmi.Uuid uuid = 18; |
| 7363 | if (this->has_uuid()) { |
| 7364 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7365 | InternalWriteMessageToArray( |
| 7366 | 18, HasBitSetters::uuid(this), target); |
| 7367 | } |
| 7368 | |
| 7369 | // .dmi.ComponentState state = 19; |
| 7370 | if (this->has_state()) { |
| 7371 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7372 | InternalWriteMessageToArray( |
| 7373 | 19, HasBitSetters::state(this), target); |
| 7374 | } |
| 7375 | |
| 7376 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7377 | for (unsigned int i = 0, |
| 7378 | n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) { |
| 7379 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7380 | InternalWriteMessageToArray( |
| 7381 | 20, this->sensor_data(static_cast<int>(i)), target); |
| 7382 | } |
| 7383 | |
| 7384 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7385 | if (has_port_attr()) { |
| 7386 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7387 | InternalWriteMessageToArray( |
| 7388 | 50, HasBitSetters::port_attr(this), target); |
| 7389 | } |
| 7390 | |
| 7391 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7392 | if (has_container_attr()) { |
| 7393 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7394 | InternalWriteMessageToArray( |
| 7395 | 51, HasBitSetters::container_attr(this), target); |
| 7396 | } |
| 7397 | |
| 7398 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7399 | if (has_psu_attr()) { |
| 7400 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7401 | InternalWriteMessageToArray( |
| 7402 | 52, HasBitSetters::psu_attr(this), target); |
| 7403 | } |
| 7404 | |
| 7405 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7406 | if (has_transceiver_attr()) { |
| 7407 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7408 | InternalWriteMessageToArray( |
| 7409 | 53, HasBitSetters::transceiver_attr(this), target); |
| 7410 | } |
| 7411 | |
| 7412 | if (_internal_metadata_.have_unknown_fields()) { |
| 7413 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7414 | _internal_metadata_.unknown_fields(), target); |
| 7415 | } |
| 7416 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Component) |
| 7417 | return target; |
| 7418 | } |
| 7419 | |
| 7420 | size_t Component::ByteSizeLong() const { |
| 7421 | // @@protoc_insertion_point(message_byte_size_start:dmi.Component) |
| 7422 | size_t total_size = 0; |
| 7423 | |
| 7424 | if (_internal_metadata_.have_unknown_fields()) { |
| 7425 | total_size += |
| 7426 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7427 | _internal_metadata_.unknown_fields()); |
| 7428 | } |
| 7429 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7430 | // Prevent compiler warnings about cached_has_bits being unused |
| 7431 | (void) cached_has_bits; |
| 7432 | |
| 7433 | // repeated .dmi.Component children = 6; |
| 7434 | { |
| 7435 | unsigned int count = static_cast<unsigned int>(this->children_size()); |
| 7436 | total_size += 1UL * count; |
| 7437 | for (unsigned int i = 0; i < count; i++) { |
| 7438 | total_size += |
| 7439 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7440 | this->children(static_cast<int>(i))); |
| 7441 | } |
| 7442 | } |
| 7443 | |
| 7444 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7445 | { |
| 7446 | unsigned int count = static_cast<unsigned int>(this->sensor_data_size()); |
| 7447 | total_size += 2UL * count; |
| 7448 | for (unsigned int i = 0; i < count; i++) { |
| 7449 | total_size += |
| 7450 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7451 | this->sensor_data(static_cast<int>(i))); |
| 7452 | } |
| 7453 | } |
| 7454 | |
| 7455 | // string name = 1; |
| 7456 | if (this->name().size() > 0) { |
| 7457 | total_size += 1 + |
| 7458 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7459 | this->name()); |
| 7460 | } |
| 7461 | |
| 7462 | // string description = 3; |
| 7463 | if (this->description().size() > 0) { |
| 7464 | total_size += 1 + |
| 7465 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7466 | this->description()); |
| 7467 | } |
| 7468 | |
| 7469 | // string parent = 4; |
| 7470 | if (this->parent().size() > 0) { |
| 7471 | total_size += 1 + |
| 7472 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7473 | this->parent()); |
| 7474 | } |
| 7475 | |
| 7476 | // string hardware_rev = 7; |
| 7477 | if (this->hardware_rev().size() > 0) { |
| 7478 | total_size += 1 + |
| 7479 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7480 | this->hardware_rev()); |
| 7481 | } |
| 7482 | |
| 7483 | // string firmware_rev = 8; |
| 7484 | if (this->firmware_rev().size() > 0) { |
| 7485 | total_size += 1 + |
| 7486 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7487 | this->firmware_rev()); |
| 7488 | } |
| 7489 | |
| 7490 | // string software_rev = 9; |
| 7491 | if (this->software_rev().size() > 0) { |
| 7492 | total_size += 1 + |
| 7493 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7494 | this->software_rev()); |
| 7495 | } |
| 7496 | |
| 7497 | // string serial_num = 10; |
| 7498 | if (this->serial_num().size() > 0) { |
| 7499 | total_size += 1 + |
| 7500 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7501 | this->serial_num()); |
| 7502 | } |
| 7503 | |
| 7504 | // string mfg_name = 11; |
| 7505 | if (this->mfg_name().size() > 0) { |
| 7506 | total_size += 1 + |
| 7507 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7508 | this->mfg_name()); |
| 7509 | } |
| 7510 | |
| 7511 | // string model_name = 12; |
| 7512 | if (this->model_name().size() > 0) { |
| 7513 | total_size += 1 + |
| 7514 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7515 | this->model_name()); |
| 7516 | } |
| 7517 | |
| 7518 | // string alias = 13; |
| 7519 | if (this->alias().size() > 0) { |
| 7520 | total_size += 1 + |
| 7521 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7522 | this->alias()); |
| 7523 | } |
| 7524 | |
| 7525 | // string asset_id = 14; |
| 7526 | if (this->asset_id().size() > 0) { |
| 7527 | total_size += 1 + |
| 7528 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7529 | this->asset_id()); |
| 7530 | } |
| 7531 | |
| 7532 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7533 | if (this->has_mfg_date()) { |
| 7534 | total_size += 2 + |
| 7535 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7536 | *mfg_date_); |
| 7537 | } |
| 7538 | |
| 7539 | // .dmi.Uri uri = 17; |
| 7540 | if (this->has_uri()) { |
| 7541 | total_size += 2 + |
| 7542 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7543 | *uri_); |
| 7544 | } |
| 7545 | |
| 7546 | // .dmi.Uuid uuid = 18; |
| 7547 | if (this->has_uuid()) { |
| 7548 | total_size += 2 + |
| 7549 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7550 | *uuid_); |
| 7551 | } |
| 7552 | |
| 7553 | // .dmi.ComponentState state = 19; |
| 7554 | if (this->has_state()) { |
| 7555 | total_size += 2 + |
| 7556 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7557 | *state_); |
| 7558 | } |
| 7559 | |
| 7560 | // .dmi.ComponentType class = 2; |
| 7561 | if (this->class_() != 0) { |
| 7562 | total_size += 1 + |
| 7563 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_()); |
| 7564 | } |
| 7565 | |
| 7566 | // int32 parent_rel_pos = 5; |
| 7567 | if (this->parent_rel_pos() != 0) { |
| 7568 | total_size += 1 + |
| 7569 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 7570 | this->parent_rel_pos()); |
| 7571 | } |
| 7572 | |
| 7573 | // bool is_fru = 15; |
| 7574 | if (this->is_fru() != 0) { |
| 7575 | total_size += 1 + 1; |
| 7576 | } |
| 7577 | |
| 7578 | switch (specific_case()) { |
| 7579 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7580 | case kPortAttr: { |
| 7581 | total_size += 2 + |
| 7582 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7583 | *specific_.port_attr_); |
| 7584 | break; |
| 7585 | } |
| 7586 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7587 | case kContainerAttr: { |
| 7588 | total_size += 2 + |
| 7589 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7590 | *specific_.container_attr_); |
| 7591 | break; |
| 7592 | } |
| 7593 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7594 | case kPsuAttr: { |
| 7595 | total_size += 2 + |
| 7596 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7597 | *specific_.psu_attr_); |
| 7598 | break; |
| 7599 | } |
| 7600 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7601 | case kTransceiverAttr: { |
| 7602 | total_size += 2 + |
| 7603 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 7604 | *specific_.transceiver_attr_); |
| 7605 | break; |
| 7606 | } |
| 7607 | case SPECIFIC_NOT_SET: { |
| 7608 | break; |
| 7609 | } |
| 7610 | } |
| 7611 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7612 | SetCachedSize(cached_size); |
| 7613 | return total_size; |
| 7614 | } |
| 7615 | |
| 7616 | void Component::MergeFrom(const ::google::protobuf::Message& from) { |
| 7617 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Component) |
| 7618 | GOOGLE_DCHECK_NE(&from, this); |
| 7619 | const Component* source = |
| 7620 | ::google::protobuf::DynamicCastToGenerated<Component>( |
| 7621 | &from); |
| 7622 | if (source == nullptr) { |
| 7623 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Component) |
| 7624 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7625 | } else { |
| 7626 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Component) |
| 7627 | MergeFrom(*source); |
| 7628 | } |
| 7629 | } |
| 7630 | |
| 7631 | void Component::MergeFrom(const Component& from) { |
| 7632 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Component) |
| 7633 | GOOGLE_DCHECK_NE(&from, this); |
| 7634 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7635 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7636 | (void) cached_has_bits; |
| 7637 | |
| 7638 | children_.MergeFrom(from.children_); |
| 7639 | sensor_data_.MergeFrom(from.sensor_data_); |
| 7640 | if (from.name().size() > 0) { |
| 7641 | |
| 7642 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 7643 | } |
| 7644 | if (from.description().size() > 0) { |
| 7645 | |
| 7646 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
| 7647 | } |
| 7648 | if (from.parent().size() > 0) { |
| 7649 | |
| 7650 | parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); |
| 7651 | } |
| 7652 | if (from.hardware_rev().size() > 0) { |
| 7653 | |
| 7654 | hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_); |
| 7655 | } |
| 7656 | if (from.firmware_rev().size() > 0) { |
| 7657 | |
| 7658 | firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_); |
| 7659 | } |
| 7660 | if (from.software_rev().size() > 0) { |
| 7661 | |
| 7662 | software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_); |
| 7663 | } |
| 7664 | if (from.serial_num().size() > 0) { |
| 7665 | |
| 7666 | serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_); |
| 7667 | } |
| 7668 | if (from.mfg_name().size() > 0) { |
| 7669 | |
| 7670 | mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_); |
| 7671 | } |
| 7672 | if (from.model_name().size() > 0) { |
| 7673 | |
| 7674 | model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_); |
| 7675 | } |
| 7676 | if (from.alias().size() > 0) { |
| 7677 | |
| 7678 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 7679 | } |
| 7680 | if (from.asset_id().size() > 0) { |
| 7681 | |
| 7682 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 7683 | } |
| 7684 | if (from.has_mfg_date()) { |
| 7685 | mutable_mfg_date()->::google::protobuf::Timestamp::MergeFrom(from.mfg_date()); |
| 7686 | } |
| 7687 | if (from.has_uri()) { |
| 7688 | mutable_uri()->::dmi::Uri::MergeFrom(from.uri()); |
| 7689 | } |
| 7690 | if (from.has_uuid()) { |
| 7691 | mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid()); |
| 7692 | } |
| 7693 | if (from.has_state()) { |
| 7694 | mutable_state()->::dmi::ComponentState::MergeFrom(from.state()); |
| 7695 | } |
| 7696 | if (from.class_() != 0) { |
| 7697 | set_class_(from.class_()); |
| 7698 | } |
| 7699 | if (from.parent_rel_pos() != 0) { |
| 7700 | set_parent_rel_pos(from.parent_rel_pos()); |
| 7701 | } |
| 7702 | if (from.is_fru() != 0) { |
| 7703 | set_is_fru(from.is_fru()); |
| 7704 | } |
| 7705 | switch (from.specific_case()) { |
| 7706 | case kPortAttr: { |
| 7707 | mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr()); |
| 7708 | break; |
| 7709 | } |
| 7710 | case kContainerAttr: { |
| 7711 | mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr()); |
| 7712 | break; |
| 7713 | } |
| 7714 | case kPsuAttr: { |
| 7715 | mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr()); |
| 7716 | break; |
| 7717 | } |
| 7718 | case kTransceiverAttr: { |
| 7719 | mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr()); |
| 7720 | break; |
| 7721 | } |
| 7722 | case SPECIFIC_NOT_SET: { |
| 7723 | break; |
| 7724 | } |
| 7725 | } |
| 7726 | } |
| 7727 | |
| 7728 | void Component::CopyFrom(const ::google::protobuf::Message& from) { |
| 7729 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Component) |
| 7730 | if (&from == this) return; |
| 7731 | Clear(); |
| 7732 | MergeFrom(from); |
| 7733 | } |
| 7734 | |
| 7735 | void Component::CopyFrom(const Component& from) { |
| 7736 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Component) |
| 7737 | if (&from == this) return; |
| 7738 | Clear(); |
| 7739 | MergeFrom(from); |
| 7740 | } |
| 7741 | |
| 7742 | bool Component::IsInitialized() const { |
| 7743 | return true; |
| 7744 | } |
| 7745 | |
| 7746 | void Component::Swap(Component* other) { |
| 7747 | if (other == this) return; |
| 7748 | InternalSwap(other); |
| 7749 | } |
| 7750 | void Component::InternalSwap(Component* other) { |
| 7751 | using std::swap; |
| 7752 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7753 | CastToBase(&children_)->InternalSwap(CastToBase(&other->children_)); |
| 7754 | CastToBase(&sensor_data_)->InternalSwap(CastToBase(&other->sensor_data_)); |
| 7755 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7756 | GetArenaNoVirtual()); |
| 7757 | description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7758 | GetArenaNoVirtual()); |
| 7759 | parent_.Swap(&other->parent_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7760 | GetArenaNoVirtual()); |
| 7761 | hardware_rev_.Swap(&other->hardware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7762 | GetArenaNoVirtual()); |
| 7763 | firmware_rev_.Swap(&other->firmware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7764 | GetArenaNoVirtual()); |
| 7765 | software_rev_.Swap(&other->software_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7766 | GetArenaNoVirtual()); |
| 7767 | serial_num_.Swap(&other->serial_num_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7768 | GetArenaNoVirtual()); |
| 7769 | mfg_name_.Swap(&other->mfg_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7770 | GetArenaNoVirtual()); |
| 7771 | model_name_.Swap(&other->model_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7772 | GetArenaNoVirtual()); |
| 7773 | alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7774 | GetArenaNoVirtual()); |
| 7775 | asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7776 | GetArenaNoVirtual()); |
| 7777 | swap(mfg_date_, other->mfg_date_); |
| 7778 | swap(uri_, other->uri_); |
| 7779 | swap(uuid_, other->uuid_); |
| 7780 | swap(state_, other->state_); |
| 7781 | swap(class__, other->class__); |
| 7782 | swap(parent_rel_pos_, other->parent_rel_pos_); |
| 7783 | swap(is_fru_, other->is_fru_); |
| 7784 | swap(specific_, other->specific_); |
| 7785 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 7786 | } |
| 7787 | |
| 7788 | ::google::protobuf::Metadata Component::GetMetadata() const { |
| 7789 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 7790 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 7791 | } |
| 7792 | |
| 7793 | |
| 7794 | // =================================================================== |
| 7795 | |
| 7796 | void Hardware::InitAsDefaultInstance() { |
| 7797 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_change_ = const_cast< ::google::protobuf::Timestamp*>( |
| 7798 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 7799 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->root_ = const_cast< ::dmi::Component*>( |
| 7800 | ::dmi::Component::internal_default_instance()); |
| 7801 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_booted_ = const_cast< ::google::protobuf::Timestamp*>( |
| 7802 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 7803 | } |
| 7804 | class Hardware::HasBitSetters { |
| 7805 | public: |
| 7806 | static const ::google::protobuf::Timestamp& last_change(const Hardware* msg); |
| 7807 | static const ::dmi::Component& root(const Hardware* msg); |
| 7808 | static const ::google::protobuf::Timestamp& last_booted(const Hardware* msg); |
| 7809 | }; |
| 7810 | |
| 7811 | const ::google::protobuf::Timestamp& |
| 7812 | Hardware::HasBitSetters::last_change(const Hardware* msg) { |
| 7813 | return *msg->last_change_; |
| 7814 | } |
| 7815 | const ::dmi::Component& |
| 7816 | Hardware::HasBitSetters::root(const Hardware* msg) { |
| 7817 | return *msg->root_; |
| 7818 | } |
| 7819 | const ::google::protobuf::Timestamp& |
| 7820 | Hardware::HasBitSetters::last_booted(const Hardware* msg) { |
| 7821 | return *msg->last_booted_; |
| 7822 | } |
| 7823 | void Hardware::clear_last_change() { |
| 7824 | if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) { |
| 7825 | delete last_change_; |
| 7826 | } |
| 7827 | last_change_ = nullptr; |
| 7828 | } |
| 7829 | void Hardware::clear_last_booted() { |
| 7830 | if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) { |
| 7831 | delete last_booted_; |
| 7832 | } |
| 7833 | last_booted_ = nullptr; |
| 7834 | } |
| 7835 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7836 | const int Hardware::kLastChangeFieldNumber; |
| 7837 | const int Hardware::kRootFieldNumber; |
| 7838 | const int Hardware::kLastBootedFieldNumber; |
| 7839 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7840 | |
| 7841 | Hardware::Hardware() |
| 7842 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7843 | SharedCtor(); |
| 7844 | // @@protoc_insertion_point(constructor:dmi.Hardware) |
| 7845 | } |
| 7846 | Hardware::Hardware(const Hardware& from) |
| 7847 | : ::google::protobuf::Message(), |
| 7848 | _internal_metadata_(nullptr) { |
| 7849 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7850 | if (from.has_last_change()) { |
| 7851 | last_change_ = new ::google::protobuf::Timestamp(*from.last_change_); |
| 7852 | } else { |
| 7853 | last_change_ = nullptr; |
| 7854 | } |
| 7855 | if (from.has_root()) { |
| 7856 | root_ = new ::dmi::Component(*from.root_); |
| 7857 | } else { |
| 7858 | root_ = nullptr; |
| 7859 | } |
| 7860 | if (from.has_last_booted()) { |
| 7861 | last_booted_ = new ::google::protobuf::Timestamp(*from.last_booted_); |
| 7862 | } else { |
| 7863 | last_booted_ = nullptr; |
| 7864 | } |
| 7865 | // @@protoc_insertion_point(copy_constructor:dmi.Hardware) |
| 7866 | } |
| 7867 | |
| 7868 | void Hardware::SharedCtor() { |
| 7869 | ::google::protobuf::internal::InitSCC( |
| 7870 | &scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 7871 | ::memset(&last_change_, 0, static_cast<size_t>( |
| 7872 | reinterpret_cast<char*>(&last_booted_) - |
| 7873 | reinterpret_cast<char*>(&last_change_)) + sizeof(last_booted_)); |
| 7874 | } |
| 7875 | |
| 7876 | Hardware::~Hardware() { |
| 7877 | // @@protoc_insertion_point(destructor:dmi.Hardware) |
| 7878 | SharedDtor(); |
| 7879 | } |
| 7880 | |
| 7881 | void Hardware::SharedDtor() { |
| 7882 | if (this != internal_default_instance()) delete last_change_; |
| 7883 | if (this != internal_default_instance()) delete root_; |
| 7884 | if (this != internal_default_instance()) delete last_booted_; |
| 7885 | } |
| 7886 | |
| 7887 | void Hardware::SetCachedSize(int size) const { |
| 7888 | _cached_size_.Set(size); |
| 7889 | } |
| 7890 | const Hardware& Hardware::default_instance() { |
| 7891 | ::google::protobuf::internal::InitSCC(&::scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 7892 | return *internal_default_instance(); |
| 7893 | } |
| 7894 | |
| 7895 | |
| 7896 | void Hardware::Clear() { |
| 7897 | // @@protoc_insertion_point(message_clear_start:dmi.Hardware) |
| 7898 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7899 | // Prevent compiler warnings about cached_has_bits being unused |
| 7900 | (void) cached_has_bits; |
| 7901 | |
| 7902 | if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) { |
| 7903 | delete last_change_; |
| 7904 | } |
| 7905 | last_change_ = nullptr; |
| 7906 | if (GetArenaNoVirtual() == nullptr && root_ != nullptr) { |
| 7907 | delete root_; |
| 7908 | } |
| 7909 | root_ = nullptr; |
| 7910 | if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) { |
| 7911 | delete last_booted_; |
| 7912 | } |
| 7913 | last_booted_ = nullptr; |
| 7914 | _internal_metadata_.Clear(); |
| 7915 | } |
| 7916 | |
| 7917 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7918 | const char* Hardware::_InternalParse(const char* begin, const char* end, void* object, |
| 7919 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7920 | auto msg = static_cast<Hardware*>(object); |
| 7921 | ::google::protobuf::int32 size; (void)size; |
| 7922 | int depth; (void)depth; |
| 7923 | ::google::protobuf::uint32 tag; |
| 7924 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7925 | auto ptr = begin; |
| 7926 | while (ptr < end) { |
| 7927 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7928 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7929 | switch (tag >> 3) { |
| 7930 | // .google.protobuf.Timestamp last_change = 1; |
| 7931 | case 1: { |
| 7932 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7933 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7934 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7935 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 7936 | object = msg->mutable_last_change(); |
| 7937 | if (size > end - ptr) goto len_delim_till_end; |
| 7938 | ptr += size; |
| 7939 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7940 | {parser_till_end, object}, ptr - size, ptr)); |
| 7941 | break; |
| 7942 | } |
| 7943 | // .dmi.Component root = 2; |
| 7944 | case 2: { |
| 7945 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 7946 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7947 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7948 | parser_till_end = ::dmi::Component::_InternalParse; |
| 7949 | object = msg->mutable_root(); |
| 7950 | if (size > end - ptr) goto len_delim_till_end; |
| 7951 | ptr += size; |
| 7952 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7953 | {parser_till_end, object}, ptr - size, ptr)); |
| 7954 | break; |
| 7955 | } |
| 7956 | // .google.protobuf.Timestamp last_booted = 3; |
| 7957 | case 3: { |
| 7958 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7959 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7960 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7961 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 7962 | object = msg->mutable_last_booted(); |
| 7963 | if (size > end - ptr) goto len_delim_till_end; |
| 7964 | ptr += size; |
| 7965 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7966 | {parser_till_end, object}, ptr - size, ptr)); |
| 7967 | break; |
| 7968 | } |
| 7969 | default: { |
| 7970 | handle_unusual: |
| 7971 | if ((tag & 7) == 4 || tag == 0) { |
| 7972 | ctx->EndGroup(tag); |
| 7973 | return ptr; |
| 7974 | } |
| 7975 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7976 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7977 | ptr = res.first; |
| 7978 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7979 | if (res.second) return ptr; |
| 7980 | } |
| 7981 | } // switch |
| 7982 | } // while |
| 7983 | return ptr; |
| 7984 | len_delim_till_end: |
| 7985 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7986 | {parser_till_end, object}, size); |
| 7987 | } |
| 7988 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7989 | bool Hardware::MergePartialFromCodedStream( |
| 7990 | ::google::protobuf::io::CodedInputStream* input) { |
| 7991 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7992 | ::google::protobuf::uint32 tag; |
| 7993 | // @@protoc_insertion_point(parse_start:dmi.Hardware) |
| 7994 | for (;;) { |
| 7995 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7996 | tag = p.first; |
| 7997 | if (!p.second) goto handle_unusual; |
| 7998 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7999 | // .google.protobuf.Timestamp last_change = 1; |
| 8000 | case 1: { |
| 8001 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8002 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8003 | input, mutable_last_change())); |
| 8004 | } else { |
| 8005 | goto handle_unusual; |
| 8006 | } |
| 8007 | break; |
| 8008 | } |
| 8009 | |
| 8010 | // .dmi.Component root = 2; |
| 8011 | case 2: { |
| 8012 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8013 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8014 | input, mutable_root())); |
| 8015 | } else { |
| 8016 | goto handle_unusual; |
| 8017 | } |
| 8018 | break; |
| 8019 | } |
| 8020 | |
| 8021 | // .google.protobuf.Timestamp last_booted = 3; |
| 8022 | case 3: { |
| 8023 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 8024 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8025 | input, mutable_last_booted())); |
| 8026 | } else { |
| 8027 | goto handle_unusual; |
| 8028 | } |
| 8029 | break; |
| 8030 | } |
| 8031 | |
| 8032 | default: { |
| 8033 | handle_unusual: |
| 8034 | if (tag == 0) { |
| 8035 | goto success; |
| 8036 | } |
| 8037 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8038 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8039 | break; |
| 8040 | } |
| 8041 | } |
| 8042 | } |
| 8043 | success: |
| 8044 | // @@protoc_insertion_point(parse_success:dmi.Hardware) |
| 8045 | return true; |
| 8046 | failure: |
| 8047 | // @@protoc_insertion_point(parse_failure:dmi.Hardware) |
| 8048 | return false; |
| 8049 | #undef DO_ |
| 8050 | } |
| 8051 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8052 | |
| 8053 | void Hardware::SerializeWithCachedSizes( |
| 8054 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8055 | // @@protoc_insertion_point(serialize_start:dmi.Hardware) |
| 8056 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8057 | (void) cached_has_bits; |
| 8058 | |
| 8059 | // .google.protobuf.Timestamp last_change = 1; |
| 8060 | if (this->has_last_change()) { |
| 8061 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8062 | 1, HasBitSetters::last_change(this), output); |
| 8063 | } |
| 8064 | |
| 8065 | // .dmi.Component root = 2; |
| 8066 | if (this->has_root()) { |
| 8067 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8068 | 2, HasBitSetters::root(this), output); |
| 8069 | } |
| 8070 | |
| 8071 | // .google.protobuf.Timestamp last_booted = 3; |
| 8072 | if (this->has_last_booted()) { |
| 8073 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8074 | 3, HasBitSetters::last_booted(this), output); |
| 8075 | } |
| 8076 | |
| 8077 | if (_internal_metadata_.have_unknown_fields()) { |
| 8078 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8079 | _internal_metadata_.unknown_fields(), output); |
| 8080 | } |
| 8081 | // @@protoc_insertion_point(serialize_end:dmi.Hardware) |
| 8082 | } |
| 8083 | |
| 8084 | ::google::protobuf::uint8* Hardware::InternalSerializeWithCachedSizesToArray( |
| 8085 | ::google::protobuf::uint8* target) const { |
| 8086 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Hardware) |
| 8087 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8088 | (void) cached_has_bits; |
| 8089 | |
| 8090 | // .google.protobuf.Timestamp last_change = 1; |
| 8091 | if (this->has_last_change()) { |
| 8092 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8093 | InternalWriteMessageToArray( |
| 8094 | 1, HasBitSetters::last_change(this), target); |
| 8095 | } |
| 8096 | |
| 8097 | // .dmi.Component root = 2; |
| 8098 | if (this->has_root()) { |
| 8099 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8100 | InternalWriteMessageToArray( |
| 8101 | 2, HasBitSetters::root(this), target); |
| 8102 | } |
| 8103 | |
| 8104 | // .google.protobuf.Timestamp last_booted = 3; |
| 8105 | if (this->has_last_booted()) { |
| 8106 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8107 | InternalWriteMessageToArray( |
| 8108 | 3, HasBitSetters::last_booted(this), target); |
| 8109 | } |
| 8110 | |
| 8111 | if (_internal_metadata_.have_unknown_fields()) { |
| 8112 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8113 | _internal_metadata_.unknown_fields(), target); |
| 8114 | } |
| 8115 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Hardware) |
| 8116 | return target; |
| 8117 | } |
| 8118 | |
| 8119 | size_t Hardware::ByteSizeLong() const { |
| 8120 | // @@protoc_insertion_point(message_byte_size_start:dmi.Hardware) |
| 8121 | size_t total_size = 0; |
| 8122 | |
| 8123 | if (_internal_metadata_.have_unknown_fields()) { |
| 8124 | total_size += |
| 8125 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8126 | _internal_metadata_.unknown_fields()); |
| 8127 | } |
| 8128 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8129 | // Prevent compiler warnings about cached_has_bits being unused |
| 8130 | (void) cached_has_bits; |
| 8131 | |
| 8132 | // .google.protobuf.Timestamp last_change = 1; |
| 8133 | if (this->has_last_change()) { |
| 8134 | total_size += 1 + |
| 8135 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8136 | *last_change_); |
| 8137 | } |
| 8138 | |
| 8139 | // .dmi.Component root = 2; |
| 8140 | if (this->has_root()) { |
| 8141 | total_size += 1 + |
| 8142 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8143 | *root_); |
| 8144 | } |
| 8145 | |
| 8146 | // .google.protobuf.Timestamp last_booted = 3; |
| 8147 | if (this->has_last_booted()) { |
| 8148 | total_size += 1 + |
| 8149 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8150 | *last_booted_); |
| 8151 | } |
| 8152 | |
| 8153 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8154 | SetCachedSize(cached_size); |
| 8155 | return total_size; |
| 8156 | } |
| 8157 | |
| 8158 | void Hardware::MergeFrom(const ::google::protobuf::Message& from) { |
| 8159 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Hardware) |
| 8160 | GOOGLE_DCHECK_NE(&from, this); |
| 8161 | const Hardware* source = |
| 8162 | ::google::protobuf::DynamicCastToGenerated<Hardware>( |
| 8163 | &from); |
| 8164 | if (source == nullptr) { |
| 8165 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Hardware) |
| 8166 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8167 | } else { |
| 8168 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Hardware) |
| 8169 | MergeFrom(*source); |
| 8170 | } |
| 8171 | } |
| 8172 | |
| 8173 | void Hardware::MergeFrom(const Hardware& from) { |
| 8174 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Hardware) |
| 8175 | GOOGLE_DCHECK_NE(&from, this); |
| 8176 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8177 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8178 | (void) cached_has_bits; |
| 8179 | |
| 8180 | if (from.has_last_change()) { |
| 8181 | mutable_last_change()->::google::protobuf::Timestamp::MergeFrom(from.last_change()); |
| 8182 | } |
| 8183 | if (from.has_root()) { |
| 8184 | mutable_root()->::dmi::Component::MergeFrom(from.root()); |
| 8185 | } |
| 8186 | if (from.has_last_booted()) { |
| 8187 | mutable_last_booted()->::google::protobuf::Timestamp::MergeFrom(from.last_booted()); |
| 8188 | } |
| 8189 | } |
| 8190 | |
| 8191 | void Hardware::CopyFrom(const ::google::protobuf::Message& from) { |
| 8192 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Hardware) |
| 8193 | if (&from == this) return; |
| 8194 | Clear(); |
| 8195 | MergeFrom(from); |
| 8196 | } |
| 8197 | |
| 8198 | void Hardware::CopyFrom(const Hardware& from) { |
| 8199 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Hardware) |
| 8200 | if (&from == this) return; |
| 8201 | Clear(); |
| 8202 | MergeFrom(from); |
| 8203 | } |
| 8204 | |
| 8205 | bool Hardware::IsInitialized() const { |
| 8206 | return true; |
| 8207 | } |
| 8208 | |
| 8209 | void Hardware::Swap(Hardware* other) { |
| 8210 | if (other == this) return; |
| 8211 | InternalSwap(other); |
| 8212 | } |
| 8213 | void Hardware::InternalSwap(Hardware* other) { |
| 8214 | using std::swap; |
| 8215 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8216 | swap(last_change_, other->last_change_); |
| 8217 | swap(root_, other->root_); |
| 8218 | swap(last_booted_, other->last_booted_); |
| 8219 | } |
| 8220 | |
| 8221 | ::google::protobuf::Metadata Hardware::GetMetadata() const { |
| 8222 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 8223 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 8224 | } |
| 8225 | |
| 8226 | |
| 8227 | // =================================================================== |
| 8228 | |
| 8229 | void ModifiableComponent::InitAsDefaultInstance() { |
| 8230 | ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->parent_ = const_cast< ::dmi::Component*>( |
| 8231 | ::dmi::Component::internal_default_instance()); |
| 8232 | ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>( |
| 8233 | ::dmi::Uri::internal_default_instance()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8234 | ::dmi::_ModifiableComponent_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentChangeAttributes*>( |
| 8235 | ::dmi::PortComponentChangeAttributes::internal_default_instance()); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8236 | ::dmi::_ModifiableComponent_default_instance_.trx_attr_ = const_cast< ::dmi::TransceiverComponentChangeAttributes*>( |
| 8237 | ::dmi::TransceiverComponentChangeAttributes::internal_default_instance()); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8238 | } |
| 8239 | class ModifiableComponent::HasBitSetters { |
| 8240 | public: |
| 8241 | static const ::dmi::Component& parent(const ModifiableComponent* msg); |
| 8242 | static const ::dmi::Uri& uri(const ModifiableComponent* msg); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8243 | static const ::dmi::PortComponentChangeAttributes& port_attr(const ModifiableComponent* msg); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8244 | static const ::dmi::TransceiverComponentChangeAttributes& trx_attr(const ModifiableComponent* msg); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8245 | }; |
| 8246 | |
| 8247 | const ::dmi::Component& |
| 8248 | ModifiableComponent::HasBitSetters::parent(const ModifiableComponent* msg) { |
| 8249 | return *msg->parent_; |
| 8250 | } |
| 8251 | const ::dmi::Uri& |
| 8252 | ModifiableComponent::HasBitSetters::uri(const ModifiableComponent* msg) { |
| 8253 | return *msg->uri_; |
| 8254 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8255 | const ::dmi::PortComponentChangeAttributes& |
| 8256 | ModifiableComponent::HasBitSetters::port_attr(const ModifiableComponent* msg) { |
| 8257 | return *msg->specific_.port_attr_; |
| 8258 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8259 | const ::dmi::TransceiverComponentChangeAttributes& |
| 8260 | ModifiableComponent::HasBitSetters::trx_attr(const ModifiableComponent* msg) { |
| 8261 | return *msg->specific_.trx_attr_; |
| 8262 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8263 | void ModifiableComponent::set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr) { |
| 8264 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 8265 | clear_specific(); |
| 8266 | if (port_attr) { |
| 8267 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 8268 | if (message_arena != submessage_arena) { |
| 8269 | port_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 8270 | message_arena, port_attr, submessage_arena); |
| 8271 | } |
| 8272 | set_has_port_attr(); |
| 8273 | specific_.port_attr_ = port_attr; |
| 8274 | } |
| 8275 | // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.port_attr) |
| 8276 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8277 | void ModifiableComponent::set_allocated_trx_attr(::dmi::TransceiverComponentChangeAttributes* trx_attr) { |
| 8278 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 8279 | clear_specific(); |
| 8280 | if (trx_attr) { |
| 8281 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 8282 | if (message_arena != submessage_arena) { |
| 8283 | trx_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 8284 | message_arena, trx_attr, submessage_arena); |
| 8285 | } |
| 8286 | set_has_trx_attr(); |
| 8287 | specific_.trx_attr_ = trx_attr; |
| 8288 | } |
| 8289 | // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.trx_attr) |
| 8290 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8291 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8292 | const int ModifiableComponent::kNameFieldNumber; |
| 8293 | const int ModifiableComponent::kClassFieldNumber; |
| 8294 | const int ModifiableComponent::kParentFieldNumber; |
| 8295 | const int ModifiableComponent::kParentRelPosFieldNumber; |
| 8296 | const int ModifiableComponent::kAliasFieldNumber; |
| 8297 | const int ModifiableComponent::kAssetIdFieldNumber; |
| 8298 | const int ModifiableComponent::kUriFieldNumber; |
| 8299 | const int ModifiableComponent::kAdminStateFieldNumber; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8300 | const int ModifiableComponent::kPortAttrFieldNumber; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8301 | const int ModifiableComponent::kTrxAttrFieldNumber; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8302 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8303 | |
| 8304 | ModifiableComponent::ModifiableComponent() |
| 8305 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8306 | SharedCtor(); |
| 8307 | // @@protoc_insertion_point(constructor:dmi.ModifiableComponent) |
| 8308 | } |
| 8309 | ModifiableComponent::ModifiableComponent(const ModifiableComponent& from) |
| 8310 | : ::google::protobuf::Message(), |
| 8311 | _internal_metadata_(nullptr) { |
| 8312 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8313 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8314 | if (from.name().size() > 0) { |
| 8315 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 8316 | } |
| 8317 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8318 | if (from.alias().size() > 0) { |
| 8319 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 8320 | } |
| 8321 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8322 | if (from.asset_id().size() > 0) { |
| 8323 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 8324 | } |
| 8325 | if (from.has_parent()) { |
| 8326 | parent_ = new ::dmi::Component(*from.parent_); |
| 8327 | } else { |
| 8328 | parent_ = nullptr; |
| 8329 | } |
| 8330 | if (from.has_uri()) { |
| 8331 | uri_ = new ::dmi::Uri(*from.uri_); |
| 8332 | } else { |
| 8333 | uri_ = nullptr; |
| 8334 | } |
| 8335 | ::memcpy(&class__, &from.class__, |
| 8336 | static_cast<size_t>(reinterpret_cast<char*>(&admin_state_) - |
| 8337 | reinterpret_cast<char*>(&class__)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8338 | clear_has_specific(); |
| 8339 | switch (from.specific_case()) { |
| 8340 | case kPortAttr: { |
| 8341 | mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr()); |
| 8342 | break; |
| 8343 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8344 | case kTrxAttr: { |
| 8345 | mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr()); |
| 8346 | break; |
| 8347 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8348 | case SPECIFIC_NOT_SET: { |
| 8349 | break; |
| 8350 | } |
| 8351 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8352 | // @@protoc_insertion_point(copy_constructor:dmi.ModifiableComponent) |
| 8353 | } |
| 8354 | |
| 8355 | void ModifiableComponent::SharedCtor() { |
| 8356 | ::google::protobuf::internal::InitSCC( |
| 8357 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 8358 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8359 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8360 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8361 | ::memset(&parent_, 0, static_cast<size_t>( |
| 8362 | reinterpret_cast<char*>(&admin_state_) - |
| 8363 | reinterpret_cast<char*>(&parent_)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8364 | clear_has_specific(); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8365 | } |
| 8366 | |
| 8367 | ModifiableComponent::~ModifiableComponent() { |
| 8368 | // @@protoc_insertion_point(destructor:dmi.ModifiableComponent) |
| 8369 | SharedDtor(); |
| 8370 | } |
| 8371 | |
| 8372 | void ModifiableComponent::SharedDtor() { |
| 8373 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8374 | alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8375 | asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8376 | if (this != internal_default_instance()) delete parent_; |
| 8377 | if (this != internal_default_instance()) delete uri_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8378 | if (has_specific()) { |
| 8379 | clear_specific(); |
| 8380 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8381 | } |
| 8382 | |
| 8383 | void ModifiableComponent::SetCachedSize(int size) const { |
| 8384 | _cached_size_.Set(size); |
| 8385 | } |
| 8386 | const ModifiableComponent& ModifiableComponent::default_instance() { |
| 8387 | ::google::protobuf::internal::InitSCC(&::scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 8388 | return *internal_default_instance(); |
| 8389 | } |
| 8390 | |
| 8391 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8392 | void ModifiableComponent::clear_specific() { |
| 8393 | // @@protoc_insertion_point(one_of_clear_start:dmi.ModifiableComponent) |
| 8394 | switch (specific_case()) { |
| 8395 | case kPortAttr: { |
| 8396 | delete specific_.port_attr_; |
| 8397 | break; |
| 8398 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8399 | case kTrxAttr: { |
| 8400 | delete specific_.trx_attr_; |
| 8401 | break; |
| 8402 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8403 | case SPECIFIC_NOT_SET: { |
| 8404 | break; |
| 8405 | } |
| 8406 | } |
| 8407 | _oneof_case_[0] = SPECIFIC_NOT_SET; |
| 8408 | } |
| 8409 | |
| 8410 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8411 | void ModifiableComponent::Clear() { |
| 8412 | // @@protoc_insertion_point(message_clear_start:dmi.ModifiableComponent) |
| 8413 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8414 | // Prevent compiler warnings about cached_has_bits being unused |
| 8415 | (void) cached_has_bits; |
| 8416 | |
| 8417 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8418 | alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8419 | asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8420 | if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) { |
| 8421 | delete parent_; |
| 8422 | } |
| 8423 | parent_ = nullptr; |
| 8424 | if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) { |
| 8425 | delete uri_; |
| 8426 | } |
| 8427 | uri_ = nullptr; |
| 8428 | ::memset(&class__, 0, static_cast<size_t>( |
| 8429 | reinterpret_cast<char*>(&admin_state_) - |
| 8430 | reinterpret_cast<char*>(&class__)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8431 | clear_specific(); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8432 | _internal_metadata_.Clear(); |
| 8433 | } |
| 8434 | |
| 8435 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8436 | const char* ModifiableComponent::_InternalParse(const char* begin, const char* end, void* object, |
| 8437 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8438 | auto msg = static_cast<ModifiableComponent*>(object); |
| 8439 | ::google::protobuf::int32 size; (void)size; |
| 8440 | int depth; (void)depth; |
| 8441 | ::google::protobuf::uint32 tag; |
| 8442 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8443 | auto ptr = begin; |
| 8444 | while (ptr < end) { |
| 8445 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8446 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8447 | switch (tag >> 3) { |
| 8448 | // string name = 1; |
| 8449 | case 1: { |
| 8450 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8451 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8452 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8453 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.name"); |
| 8454 | object = msg->mutable_name(); |
| 8455 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8456 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8457 | goto string_till_end; |
| 8458 | } |
| 8459 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8460 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8461 | ptr += size; |
| 8462 | break; |
| 8463 | } |
| 8464 | // .dmi.ComponentType class = 2; |
| 8465 | case 2: { |
| 8466 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 8467 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8468 | msg->set_class_(static_cast<::dmi::ComponentType>(val)); |
| 8469 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8470 | break; |
| 8471 | } |
| 8472 | // .dmi.Component parent = 3; |
| 8473 | case 3: { |
| 8474 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 8475 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8476 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8477 | parser_till_end = ::dmi::Component::_InternalParse; |
| 8478 | object = msg->mutable_parent(); |
| 8479 | if (size > end - ptr) goto len_delim_till_end; |
| 8480 | ptr += size; |
| 8481 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8482 | {parser_till_end, object}, ptr - size, ptr)); |
| 8483 | break; |
| 8484 | } |
| 8485 | // int32 parent_rel_pos = 4; |
| 8486 | case 4: { |
| 8487 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 8488 | msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr)); |
| 8489 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8490 | break; |
| 8491 | } |
| 8492 | // string alias = 5; |
| 8493 | case 5: { |
| 8494 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 8495 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8496 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8497 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.alias"); |
| 8498 | object = msg->mutable_alias(); |
| 8499 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8500 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8501 | goto string_till_end; |
| 8502 | } |
| 8503 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8504 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8505 | ptr += size; |
| 8506 | break; |
| 8507 | } |
| 8508 | // string asset_id = 6; |
| 8509 | case 6: { |
| 8510 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 8511 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8512 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8513 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.asset_id"); |
| 8514 | object = msg->mutable_asset_id(); |
| 8515 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8516 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8517 | goto string_till_end; |
| 8518 | } |
| 8519 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8520 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8521 | ptr += size; |
| 8522 | break; |
| 8523 | } |
| 8524 | // .dmi.Uri uri = 7; |
| 8525 | case 7: { |
| 8526 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 8527 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8528 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8529 | parser_till_end = ::dmi::Uri::_InternalParse; |
| 8530 | object = msg->mutable_uri(); |
| 8531 | if (size > end - ptr) goto len_delim_till_end; |
| 8532 | ptr += size; |
| 8533 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8534 | {parser_till_end, object}, ptr - size, ptr)); |
| 8535 | break; |
| 8536 | } |
| 8537 | // .dmi.ComponentAdminState admin_state = 8; |
| 8538 | case 8: { |
| 8539 | if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; |
| 8540 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8541 | msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val)); |
| 8542 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8543 | break; |
| 8544 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8545 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 8546 | case 50: { |
| 8547 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 8548 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8549 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8550 | parser_till_end = ::dmi::PortComponentChangeAttributes::_InternalParse; |
| 8551 | object = msg->mutable_port_attr(); |
| 8552 | if (size > end - ptr) goto len_delim_till_end; |
| 8553 | ptr += size; |
| 8554 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8555 | {parser_till_end, object}, ptr - size, ptr)); |
| 8556 | break; |
| 8557 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8558 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 8559 | case 51: { |
| 8560 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 8561 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8562 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8563 | parser_till_end = ::dmi::TransceiverComponentChangeAttributes::_InternalParse; |
| 8564 | object = msg->mutable_trx_attr(); |
| 8565 | if (size > end - ptr) goto len_delim_till_end; |
| 8566 | ptr += size; |
| 8567 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8568 | {parser_till_end, object}, ptr - size, ptr)); |
| 8569 | break; |
| 8570 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8571 | default: { |
| 8572 | handle_unusual: |
| 8573 | if ((tag & 7) == 4 || tag == 0) { |
| 8574 | ctx->EndGroup(tag); |
| 8575 | return ptr; |
| 8576 | } |
| 8577 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8578 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8579 | ptr = res.first; |
| 8580 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8581 | if (res.second) return ptr; |
| 8582 | } |
| 8583 | } // switch |
| 8584 | } // while |
| 8585 | return ptr; |
| 8586 | string_till_end: |
| 8587 | static_cast<::std::string*>(object)->clear(); |
| 8588 | static_cast<::std::string*>(object)->reserve(size); |
| 8589 | goto len_delim_till_end; |
| 8590 | len_delim_till_end: |
| 8591 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8592 | {parser_till_end, object}, size); |
| 8593 | } |
| 8594 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8595 | bool ModifiableComponent::MergePartialFromCodedStream( |
| 8596 | ::google::protobuf::io::CodedInputStream* input) { |
| 8597 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8598 | ::google::protobuf::uint32 tag; |
| 8599 | // @@protoc_insertion_point(parse_start:dmi.ModifiableComponent) |
| 8600 | for (;;) { |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8601 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8602 | tag = p.first; |
| 8603 | if (!p.second) goto handle_unusual; |
| 8604 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8605 | // string name = 1; |
| 8606 | case 1: { |
| 8607 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8608 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8609 | input, this->mutable_name())); |
| 8610 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8611 | this->name().data(), static_cast<int>(this->name().length()), |
| 8612 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8613 | "dmi.ModifiableComponent.name")); |
| 8614 | } else { |
| 8615 | goto handle_unusual; |
| 8616 | } |
| 8617 | break; |
| 8618 | } |
| 8619 | |
| 8620 | // .dmi.ComponentType class = 2; |
| 8621 | case 2: { |
| 8622 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 8623 | int value = 0; |
| 8624 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8625 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8626 | input, &value))); |
| 8627 | set_class_(static_cast< ::dmi::ComponentType >(value)); |
| 8628 | } else { |
| 8629 | goto handle_unusual; |
| 8630 | } |
| 8631 | break; |
| 8632 | } |
| 8633 | |
| 8634 | // .dmi.Component parent = 3; |
| 8635 | case 3: { |
| 8636 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 8637 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8638 | input, mutable_parent())); |
| 8639 | } else { |
| 8640 | goto handle_unusual; |
| 8641 | } |
| 8642 | break; |
| 8643 | } |
| 8644 | |
| 8645 | // int32 parent_rel_pos = 4; |
| 8646 | case 4: { |
| 8647 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 8648 | |
| 8649 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8650 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 8651 | input, &parent_rel_pos_))); |
| 8652 | } else { |
| 8653 | goto handle_unusual; |
| 8654 | } |
| 8655 | break; |
| 8656 | } |
| 8657 | |
| 8658 | // string alias = 5; |
| 8659 | case 5: { |
| 8660 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 8661 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8662 | input, this->mutable_alias())); |
| 8663 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8664 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 8665 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8666 | "dmi.ModifiableComponent.alias")); |
| 8667 | } else { |
| 8668 | goto handle_unusual; |
| 8669 | } |
| 8670 | break; |
| 8671 | } |
| 8672 | |
| 8673 | // string asset_id = 6; |
| 8674 | case 6: { |
| 8675 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 8676 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8677 | input, this->mutable_asset_id())); |
| 8678 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8679 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 8680 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8681 | "dmi.ModifiableComponent.asset_id")); |
| 8682 | } else { |
| 8683 | goto handle_unusual; |
| 8684 | } |
| 8685 | break; |
| 8686 | } |
| 8687 | |
| 8688 | // .dmi.Uri uri = 7; |
| 8689 | case 7: { |
| 8690 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 8691 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8692 | input, mutable_uri())); |
| 8693 | } else { |
| 8694 | goto handle_unusual; |
| 8695 | } |
| 8696 | break; |
| 8697 | } |
| 8698 | |
| 8699 | // .dmi.ComponentAdminState admin_state = 8; |
| 8700 | case 8: { |
| 8701 | if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { |
| 8702 | int value = 0; |
| 8703 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8704 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8705 | input, &value))); |
| 8706 | set_admin_state(static_cast< ::dmi::ComponentAdminState >(value)); |
| 8707 | } else { |
| 8708 | goto handle_unusual; |
| 8709 | } |
| 8710 | break; |
| 8711 | } |
| 8712 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8713 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 8714 | case 50: { |
| 8715 | if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { |
| 8716 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8717 | input, mutable_port_attr())); |
| 8718 | } else { |
| 8719 | goto handle_unusual; |
| 8720 | } |
| 8721 | break; |
| 8722 | } |
| 8723 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8724 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 8725 | case 51: { |
| 8726 | if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { |
| 8727 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8728 | input, mutable_trx_attr())); |
| 8729 | } else { |
| 8730 | goto handle_unusual; |
| 8731 | } |
| 8732 | break; |
| 8733 | } |
| 8734 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8735 | default: { |
| 8736 | handle_unusual: |
| 8737 | if (tag == 0) { |
| 8738 | goto success; |
| 8739 | } |
| 8740 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8741 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8742 | break; |
| 8743 | } |
| 8744 | } |
| 8745 | } |
| 8746 | success: |
| 8747 | // @@protoc_insertion_point(parse_success:dmi.ModifiableComponent) |
| 8748 | return true; |
| 8749 | failure: |
| 8750 | // @@protoc_insertion_point(parse_failure:dmi.ModifiableComponent) |
| 8751 | return false; |
| 8752 | #undef DO_ |
| 8753 | } |
| 8754 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8755 | |
| 8756 | void ModifiableComponent::SerializeWithCachedSizes( |
| 8757 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8758 | // @@protoc_insertion_point(serialize_start:dmi.ModifiableComponent) |
| 8759 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8760 | (void) cached_has_bits; |
| 8761 | |
| 8762 | // string name = 1; |
| 8763 | if (this->name().size() > 0) { |
| 8764 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8765 | this->name().data(), static_cast<int>(this->name().length()), |
| 8766 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8767 | "dmi.ModifiableComponent.name"); |
| 8768 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8769 | 1, this->name(), output); |
| 8770 | } |
| 8771 | |
| 8772 | // .dmi.ComponentType class = 2; |
| 8773 | if (this->class_() != 0) { |
| 8774 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8775 | 2, this->class_(), output); |
| 8776 | } |
| 8777 | |
| 8778 | // .dmi.Component parent = 3; |
| 8779 | if (this->has_parent()) { |
| 8780 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8781 | 3, HasBitSetters::parent(this), output); |
| 8782 | } |
| 8783 | |
| 8784 | // int32 parent_rel_pos = 4; |
| 8785 | if (this->parent_rel_pos() != 0) { |
| 8786 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parent_rel_pos(), output); |
| 8787 | } |
| 8788 | |
| 8789 | // string alias = 5; |
| 8790 | if (this->alias().size() > 0) { |
| 8791 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8792 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 8793 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8794 | "dmi.ModifiableComponent.alias"); |
| 8795 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8796 | 5, this->alias(), output); |
| 8797 | } |
| 8798 | |
| 8799 | // string asset_id = 6; |
| 8800 | if (this->asset_id().size() > 0) { |
| 8801 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8802 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 8803 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8804 | "dmi.ModifiableComponent.asset_id"); |
| 8805 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8806 | 6, this->asset_id(), output); |
| 8807 | } |
| 8808 | |
| 8809 | // .dmi.Uri uri = 7; |
| 8810 | if (this->has_uri()) { |
| 8811 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8812 | 7, HasBitSetters::uri(this), output); |
| 8813 | } |
| 8814 | |
| 8815 | // .dmi.ComponentAdminState admin_state = 8; |
| 8816 | if (this->admin_state() != 0) { |
| 8817 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8818 | 8, this->admin_state(), output); |
| 8819 | } |
| 8820 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8821 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 8822 | if (has_port_attr()) { |
| 8823 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8824 | 50, HasBitSetters::port_attr(this), output); |
| 8825 | } |
| 8826 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8827 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 8828 | if (has_trx_attr()) { |
| 8829 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8830 | 51, HasBitSetters::trx_attr(this), output); |
| 8831 | } |
| 8832 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8833 | if (_internal_metadata_.have_unknown_fields()) { |
| 8834 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8835 | _internal_metadata_.unknown_fields(), output); |
| 8836 | } |
| 8837 | // @@protoc_insertion_point(serialize_end:dmi.ModifiableComponent) |
| 8838 | } |
| 8839 | |
| 8840 | ::google::protobuf::uint8* ModifiableComponent::InternalSerializeWithCachedSizesToArray( |
| 8841 | ::google::protobuf::uint8* target) const { |
| 8842 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ModifiableComponent) |
| 8843 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8844 | (void) cached_has_bits; |
| 8845 | |
| 8846 | // string name = 1; |
| 8847 | if (this->name().size() > 0) { |
| 8848 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8849 | this->name().data(), static_cast<int>(this->name().length()), |
| 8850 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8851 | "dmi.ModifiableComponent.name"); |
| 8852 | target = |
| 8853 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8854 | 1, this->name(), target); |
| 8855 | } |
| 8856 | |
| 8857 | // .dmi.ComponentType class = 2; |
| 8858 | if (this->class_() != 0) { |
| 8859 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8860 | 2, this->class_(), target); |
| 8861 | } |
| 8862 | |
| 8863 | // .dmi.Component parent = 3; |
| 8864 | if (this->has_parent()) { |
| 8865 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8866 | InternalWriteMessageToArray( |
| 8867 | 3, HasBitSetters::parent(this), target); |
| 8868 | } |
| 8869 | |
| 8870 | // int32 parent_rel_pos = 4; |
| 8871 | if (this->parent_rel_pos() != 0) { |
| 8872 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parent_rel_pos(), target); |
| 8873 | } |
| 8874 | |
| 8875 | // string alias = 5; |
| 8876 | if (this->alias().size() > 0) { |
| 8877 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8878 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 8879 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8880 | "dmi.ModifiableComponent.alias"); |
| 8881 | target = |
| 8882 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8883 | 5, this->alias(), target); |
| 8884 | } |
| 8885 | |
| 8886 | // string asset_id = 6; |
| 8887 | if (this->asset_id().size() > 0) { |
| 8888 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8889 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 8890 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8891 | "dmi.ModifiableComponent.asset_id"); |
| 8892 | target = |
| 8893 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8894 | 6, this->asset_id(), target); |
| 8895 | } |
| 8896 | |
| 8897 | // .dmi.Uri uri = 7; |
| 8898 | if (this->has_uri()) { |
| 8899 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8900 | InternalWriteMessageToArray( |
| 8901 | 7, HasBitSetters::uri(this), target); |
| 8902 | } |
| 8903 | |
| 8904 | // .dmi.ComponentAdminState admin_state = 8; |
| 8905 | if (this->admin_state() != 0) { |
| 8906 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8907 | 8, this->admin_state(), target); |
| 8908 | } |
| 8909 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8910 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 8911 | if (has_port_attr()) { |
| 8912 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8913 | InternalWriteMessageToArray( |
| 8914 | 50, HasBitSetters::port_attr(this), target); |
| 8915 | } |
| 8916 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8917 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 8918 | if (has_trx_attr()) { |
| 8919 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8920 | InternalWriteMessageToArray( |
| 8921 | 51, HasBitSetters::trx_attr(this), target); |
| 8922 | } |
| 8923 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8924 | if (_internal_metadata_.have_unknown_fields()) { |
| 8925 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8926 | _internal_metadata_.unknown_fields(), target); |
| 8927 | } |
| 8928 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ModifiableComponent) |
| 8929 | return target; |
| 8930 | } |
| 8931 | |
| 8932 | size_t ModifiableComponent::ByteSizeLong() const { |
| 8933 | // @@protoc_insertion_point(message_byte_size_start:dmi.ModifiableComponent) |
| 8934 | size_t total_size = 0; |
| 8935 | |
| 8936 | if (_internal_metadata_.have_unknown_fields()) { |
| 8937 | total_size += |
| 8938 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8939 | _internal_metadata_.unknown_fields()); |
| 8940 | } |
| 8941 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8942 | // Prevent compiler warnings about cached_has_bits being unused |
| 8943 | (void) cached_has_bits; |
| 8944 | |
| 8945 | // string name = 1; |
| 8946 | if (this->name().size() > 0) { |
| 8947 | total_size += 1 + |
| 8948 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8949 | this->name()); |
| 8950 | } |
| 8951 | |
| 8952 | // string alias = 5; |
| 8953 | if (this->alias().size() > 0) { |
| 8954 | total_size += 1 + |
| 8955 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8956 | this->alias()); |
| 8957 | } |
| 8958 | |
| 8959 | // string asset_id = 6; |
| 8960 | if (this->asset_id().size() > 0) { |
| 8961 | total_size += 1 + |
| 8962 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8963 | this->asset_id()); |
| 8964 | } |
| 8965 | |
| 8966 | // .dmi.Component parent = 3; |
| 8967 | if (this->has_parent()) { |
| 8968 | total_size += 1 + |
| 8969 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8970 | *parent_); |
| 8971 | } |
| 8972 | |
| 8973 | // .dmi.Uri uri = 7; |
| 8974 | if (this->has_uri()) { |
| 8975 | total_size += 1 + |
| 8976 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8977 | *uri_); |
| 8978 | } |
| 8979 | |
| 8980 | // .dmi.ComponentType class = 2; |
| 8981 | if (this->class_() != 0) { |
| 8982 | total_size += 1 + |
| 8983 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_()); |
| 8984 | } |
| 8985 | |
| 8986 | // int32 parent_rel_pos = 4; |
| 8987 | if (this->parent_rel_pos() != 0) { |
| 8988 | total_size += 1 + |
| 8989 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 8990 | this->parent_rel_pos()); |
| 8991 | } |
| 8992 | |
| 8993 | // .dmi.ComponentAdminState admin_state = 8; |
| 8994 | if (this->admin_state() != 0) { |
| 8995 | total_size += 1 + |
| 8996 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state()); |
| 8997 | } |
| 8998 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8999 | switch (specific_case()) { |
| 9000 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9001 | case kPortAttr: { |
| 9002 | total_size += 2 + |
| 9003 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9004 | *specific_.port_attr_); |
| 9005 | break; |
| 9006 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9007 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9008 | case kTrxAttr: { |
| 9009 | total_size += 2 + |
| 9010 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9011 | *specific_.trx_attr_); |
| 9012 | break; |
| 9013 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9014 | case SPECIFIC_NOT_SET: { |
| 9015 | break; |
| 9016 | } |
| 9017 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9018 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9019 | SetCachedSize(cached_size); |
| 9020 | return total_size; |
| 9021 | } |
| 9022 | |
| 9023 | void ModifiableComponent::MergeFrom(const ::google::protobuf::Message& from) { |
| 9024 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ModifiableComponent) |
| 9025 | GOOGLE_DCHECK_NE(&from, this); |
| 9026 | const ModifiableComponent* source = |
| 9027 | ::google::protobuf::DynamicCastToGenerated<ModifiableComponent>( |
| 9028 | &from); |
| 9029 | if (source == nullptr) { |
| 9030 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ModifiableComponent) |
| 9031 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9032 | } else { |
| 9033 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ModifiableComponent) |
| 9034 | MergeFrom(*source); |
| 9035 | } |
| 9036 | } |
| 9037 | |
| 9038 | void ModifiableComponent::MergeFrom(const ModifiableComponent& from) { |
| 9039 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ModifiableComponent) |
| 9040 | GOOGLE_DCHECK_NE(&from, this); |
| 9041 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9042 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9043 | (void) cached_has_bits; |
| 9044 | |
| 9045 | if (from.name().size() > 0) { |
| 9046 | |
| 9047 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 9048 | } |
| 9049 | if (from.alias().size() > 0) { |
| 9050 | |
| 9051 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 9052 | } |
| 9053 | if (from.asset_id().size() > 0) { |
| 9054 | |
| 9055 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 9056 | } |
| 9057 | if (from.has_parent()) { |
| 9058 | mutable_parent()->::dmi::Component::MergeFrom(from.parent()); |
| 9059 | } |
| 9060 | if (from.has_uri()) { |
| 9061 | mutable_uri()->::dmi::Uri::MergeFrom(from.uri()); |
| 9062 | } |
| 9063 | if (from.class_() != 0) { |
| 9064 | set_class_(from.class_()); |
| 9065 | } |
| 9066 | if (from.parent_rel_pos() != 0) { |
| 9067 | set_parent_rel_pos(from.parent_rel_pos()); |
| 9068 | } |
| 9069 | if (from.admin_state() != 0) { |
| 9070 | set_admin_state(from.admin_state()); |
| 9071 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9072 | switch (from.specific_case()) { |
| 9073 | case kPortAttr: { |
| 9074 | mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr()); |
| 9075 | break; |
| 9076 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9077 | case kTrxAttr: { |
| 9078 | mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr()); |
| 9079 | break; |
| 9080 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9081 | case SPECIFIC_NOT_SET: { |
| 9082 | break; |
| 9083 | } |
| 9084 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9085 | } |
| 9086 | |
| 9087 | void ModifiableComponent::CopyFrom(const ::google::protobuf::Message& from) { |
| 9088 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ModifiableComponent) |
| 9089 | if (&from == this) return; |
| 9090 | Clear(); |
| 9091 | MergeFrom(from); |
| 9092 | } |
| 9093 | |
| 9094 | void ModifiableComponent::CopyFrom(const ModifiableComponent& from) { |
| 9095 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ModifiableComponent) |
| 9096 | if (&from == this) return; |
| 9097 | Clear(); |
| 9098 | MergeFrom(from); |
| 9099 | } |
| 9100 | |
| 9101 | bool ModifiableComponent::IsInitialized() const { |
| 9102 | return true; |
| 9103 | } |
| 9104 | |
| 9105 | void ModifiableComponent::Swap(ModifiableComponent* other) { |
| 9106 | if (other == this) return; |
| 9107 | InternalSwap(other); |
| 9108 | } |
| 9109 | void ModifiableComponent::InternalSwap(ModifiableComponent* other) { |
| 9110 | using std::swap; |
| 9111 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9112 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9113 | GetArenaNoVirtual()); |
| 9114 | alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9115 | GetArenaNoVirtual()); |
| 9116 | asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9117 | GetArenaNoVirtual()); |
| 9118 | swap(parent_, other->parent_); |
| 9119 | swap(uri_, other->uri_); |
| 9120 | swap(class__, other->class__); |
| 9121 | swap(parent_rel_pos_, other->parent_rel_pos_); |
| 9122 | swap(admin_state_, other->admin_state_); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9123 | swap(specific_, other->specific_); |
| 9124 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9125 | } |
| 9126 | |
| 9127 | ::google::protobuf::Metadata ModifiableComponent::GetMetadata() const { |
| 9128 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 9129 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 9130 | } |
| 9131 | |
| 9132 | |
| 9133 | // @@protoc_insertion_point(namespace_scope) |
| 9134 | } // namespace dmi |
| 9135 | namespace google { |
| 9136 | namespace protobuf { |
| 9137 | template<> PROTOBUF_NOINLINE ::dmi::Uuid* Arena::CreateMaybeMessage< ::dmi::Uuid >(Arena* arena) { |
| 9138 | return Arena::CreateInternal< ::dmi::Uuid >(arena); |
| 9139 | } |
| 9140 | template<> PROTOBUF_NOINLINE ::dmi::HardwareID* Arena::CreateMaybeMessage< ::dmi::HardwareID >(Arena* arena) { |
| 9141 | return Arena::CreateInternal< ::dmi::HardwareID >(arena); |
| 9142 | } |
| 9143 | template<> PROTOBUF_NOINLINE ::dmi::Uri* Arena::CreateMaybeMessage< ::dmi::Uri >(Arena* arena) { |
| 9144 | return Arena::CreateInternal< ::dmi::Uri >(arena); |
| 9145 | } |
| 9146 | template<> PROTOBUF_NOINLINE ::dmi::ComponentState* Arena::CreateMaybeMessage< ::dmi::ComponentState >(Arena* arena) { |
| 9147 | return Arena::CreateInternal< ::dmi::ComponentState >(arena); |
| 9148 | } |
| 9149 | template<> PROTOBUF_NOINLINE ::dmi::ComponentSensorData* Arena::CreateMaybeMessage< ::dmi::ComponentSensorData >(Arena* arena) { |
| 9150 | return Arena::CreateInternal< ::dmi::ComponentSensorData >(arena); |
| 9151 | } |
| 9152 | template<> PROTOBUF_NOINLINE ::dmi::PortComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentAttributes >(Arena* arena) { |
| 9153 | return Arena::CreateInternal< ::dmi::PortComponentAttributes >(arena); |
| 9154 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9155 | template<> PROTOBUF_NOINLINE ::dmi::PortComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(Arena* arena) { |
| 9156 | return Arena::CreateInternal< ::dmi::PortComponentChangeAttributes >(arena); |
| 9157 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9158 | template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentChangeAttributes >(Arena* arena) { |
| 9159 | return Arena::CreateInternal< ::dmi::TransceiverComponentChangeAttributes >(arena); |
| 9160 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9161 | template<> PROTOBUF_NOINLINE ::dmi::PonIdConfig* Arena::CreateMaybeMessage< ::dmi::PonIdConfig >(Arena* arena) { |
| 9162 | return Arena::CreateInternal< ::dmi::PonIdConfig >(arena); |
| 9163 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9164 | template<> PROTOBUF_NOINLINE ::dmi::ContainerComponentAttributes* Arena::CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(Arena* arena) { |
| 9165 | return Arena::CreateInternal< ::dmi::ContainerComponentAttributes >(arena); |
| 9166 | } |
| 9167 | template<> PROTOBUF_NOINLINE ::dmi::PsuComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PsuComponentAttributes >(Arena* arena) { |
| 9168 | return Arena::CreateInternal< ::dmi::PsuComponentAttributes >(arena); |
| 9169 | } |
| 9170 | template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentsAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(Arena* arena) { |
| 9171 | return Arena::CreateInternal< ::dmi::TransceiverComponentsAttributes >(arena); |
| 9172 | } |
| 9173 | template<> PROTOBUF_NOINLINE ::dmi::Component* Arena::CreateMaybeMessage< ::dmi::Component >(Arena* arena) { |
| 9174 | return Arena::CreateInternal< ::dmi::Component >(arena); |
| 9175 | } |
| 9176 | template<> PROTOBUF_NOINLINE ::dmi::Hardware* Arena::CreateMaybeMessage< ::dmi::Hardware >(Arena* arena) { |
| 9177 | return Arena::CreateInternal< ::dmi::Hardware >(arena); |
| 9178 | } |
| 9179 | template<> PROTOBUF_NOINLINE ::dmi::ModifiableComponent* Arena::CreateMaybeMessage< ::dmi::ModifiableComponent >(Arena* arena) { |
| 9180 | return Arena::CreateInternal< ::dmi::ModifiableComponent >(arena); |
| 9181 | } |
| 9182 | } // namespace protobuf |
| 9183 | } // namespace google |
| 9184 | |
| 9185 | // @@protoc_insertion_point(global_scope) |
| 9186 | #include <google/protobuf/port_undef.inc> |