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; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PonDistance_dmi_2fhw_2eproto; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 21 | 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] | 22 | 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] | 23 | 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] | 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto; |
| 25 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto; |
| 26 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto; |
| 27 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto; |
| 28 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 29 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentAttributes_dmi_2fhw_2eproto; |
| 30 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 31 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto; |
| 32 | extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; |
| 33 | namespace dmi { |
| 34 | class UuidDefaultTypeInternal { |
| 35 | public: |
| 36 | ::google::protobuf::internal::ExplicitlyConstructed<Uuid> _instance; |
| 37 | } _Uuid_default_instance_; |
| 38 | class HardwareIDDefaultTypeInternal { |
| 39 | public: |
| 40 | ::google::protobuf::internal::ExplicitlyConstructed<HardwareID> _instance; |
| 41 | } _HardwareID_default_instance_; |
| 42 | class UriDefaultTypeInternal { |
| 43 | public: |
| 44 | ::google::protobuf::internal::ExplicitlyConstructed<Uri> _instance; |
| 45 | } _Uri_default_instance_; |
| 46 | class ComponentStateDefaultTypeInternal { |
| 47 | public: |
| 48 | ::google::protobuf::internal::ExplicitlyConstructed<ComponentState> _instance; |
| 49 | } _ComponentState_default_instance_; |
| 50 | class ComponentSensorDataDefaultTypeInternal { |
| 51 | public: |
| 52 | ::google::protobuf::internal::ExplicitlyConstructed<ComponentSensorData> _instance; |
| 53 | } _ComponentSensorData_default_instance_; |
| 54 | class PortComponentAttributesDefaultTypeInternal { |
| 55 | public: |
| 56 | ::google::protobuf::internal::ExplicitlyConstructed<PortComponentAttributes> _instance; |
| 57 | } _PortComponentAttributes_default_instance_; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 58 | class PonDistanceDefaultTypeInternal { |
| 59 | public: |
| 60 | ::google::protobuf::internal::ExplicitlyConstructed<PonDistance> _instance; |
| 61 | } _PonDistance_default_instance_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 62 | class PortComponentChangeAttributesDefaultTypeInternal { |
| 63 | public: |
| 64 | ::google::protobuf::internal::ExplicitlyConstructed<PortComponentChangeAttributes> _instance; |
| 65 | } _PortComponentChangeAttributes_default_instance_; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 66 | class TransceiverComponentChangeAttributesDefaultTypeInternal { |
| 67 | public: |
| 68 | ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentChangeAttributes> _instance; |
| 69 | } _TransceiverComponentChangeAttributes_default_instance_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 70 | class PonIdConfigDefaultTypeInternal { |
| 71 | public: |
| 72 | ::google::protobuf::internal::ExplicitlyConstructed<PonIdConfig> _instance; |
| 73 | } _PonIdConfig_default_instance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 74 | class ContainerComponentAttributesDefaultTypeInternal { |
| 75 | public: |
| 76 | ::google::protobuf::internal::ExplicitlyConstructed<ContainerComponentAttributes> _instance; |
| 77 | } _ContainerComponentAttributes_default_instance_; |
| 78 | class PsuComponentAttributesDefaultTypeInternal { |
| 79 | public: |
| 80 | ::google::protobuf::internal::ExplicitlyConstructed<PsuComponentAttributes> _instance; |
| 81 | } _PsuComponentAttributes_default_instance_; |
| 82 | class TransceiverComponentsAttributesDefaultTypeInternal { |
| 83 | public: |
| 84 | ::google::protobuf::internal::ExplicitlyConstructed<TransceiverComponentsAttributes> _instance; |
| 85 | } _TransceiverComponentsAttributes_default_instance_; |
| 86 | class ComponentDefaultTypeInternal { |
| 87 | public: |
| 88 | ::google::protobuf::internal::ExplicitlyConstructed<Component> _instance; |
| 89 | const ::dmi::PortComponentAttributes* port_attr_; |
| 90 | const ::dmi::ContainerComponentAttributes* container_attr_; |
| 91 | const ::dmi::PsuComponentAttributes* psu_attr_; |
| 92 | const ::dmi::TransceiverComponentsAttributes* transceiver_attr_; |
| 93 | } _Component_default_instance_; |
| 94 | class HardwareDefaultTypeInternal { |
| 95 | public: |
| 96 | ::google::protobuf::internal::ExplicitlyConstructed<Hardware> _instance; |
| 97 | } _Hardware_default_instance_; |
| 98 | class ModifiableComponentDefaultTypeInternal { |
| 99 | public: |
| 100 | ::google::protobuf::internal::ExplicitlyConstructed<ModifiableComponent> _instance; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 101 | const ::dmi::PortComponentChangeAttributes* port_attr_; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 102 | const ::dmi::TransceiverComponentChangeAttributes* trx_attr_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 103 | } _ModifiableComponent_default_instance_; |
| 104 | } // namespace dmi |
| 105 | static void InitDefaultsUuid_dmi_2fhw_2eproto() { |
| 106 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 107 | |
| 108 | { |
| 109 | void* ptr = &::dmi::_Uuid_default_instance_; |
| 110 | new (ptr) ::dmi::Uuid(); |
| 111 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 112 | } |
| 113 | ::dmi::Uuid::InitAsDefaultInstance(); |
| 114 | } |
| 115 | |
| 116 | ::google::protobuf::internal::SCCInfo<0> scc_info_Uuid_dmi_2fhw_2eproto = |
| 117 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUuid_dmi_2fhw_2eproto}, {}}; |
| 118 | |
| 119 | static void InitDefaultsHardwareID_dmi_2fhw_2eproto() { |
| 120 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 121 | |
| 122 | { |
| 123 | void* ptr = &::dmi::_HardwareID_default_instance_; |
| 124 | new (ptr) ::dmi::HardwareID(); |
| 125 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 126 | } |
| 127 | ::dmi::HardwareID::InitAsDefaultInstance(); |
| 128 | } |
| 129 | |
| 130 | ::google::protobuf::internal::SCCInfo<1> scc_info_HardwareID_dmi_2fhw_2eproto = |
| 131 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHardwareID_dmi_2fhw_2eproto}, { |
| 132 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 133 | |
| 134 | static void InitDefaultsUri_dmi_2fhw_2eproto() { |
| 135 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 136 | |
| 137 | { |
| 138 | void* ptr = &::dmi::_Uri_default_instance_; |
| 139 | new (ptr) ::dmi::Uri(); |
| 140 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 141 | } |
| 142 | ::dmi::Uri::InitAsDefaultInstance(); |
| 143 | } |
| 144 | |
| 145 | ::google::protobuf::internal::SCCInfo<0> scc_info_Uri_dmi_2fhw_2eproto = |
| 146 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUri_dmi_2fhw_2eproto}, {}}; |
| 147 | |
| 148 | static void InitDefaultsComponentState_dmi_2fhw_2eproto() { |
| 149 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 150 | |
| 151 | { |
| 152 | void* ptr = &::dmi::_ComponentState_default_instance_; |
| 153 | new (ptr) ::dmi::ComponentState(); |
| 154 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 155 | } |
| 156 | ::dmi::ComponentState::InitAsDefaultInstance(); |
| 157 | } |
| 158 | |
| 159 | ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentState_dmi_2fhw_2eproto = |
| 160 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentState_dmi_2fhw_2eproto}, { |
| 161 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; |
| 162 | |
| 163 | static void InitDefaultsComponentSensorData_dmi_2fhw_2eproto() { |
| 164 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 165 | |
| 166 | { |
| 167 | void* ptr = &::dmi::_ComponentSensorData_default_instance_; |
| 168 | new (ptr) ::dmi::ComponentSensorData(); |
| 169 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 170 | } |
| 171 | ::dmi::ComponentSensorData::InitAsDefaultInstance(); |
| 172 | } |
| 173 | |
| 174 | ::google::protobuf::internal::SCCInfo<1> scc_info_ComponentSensorData_dmi_2fhw_2eproto = |
| 175 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComponentSensorData_dmi_2fhw_2eproto}, { |
| 176 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; |
| 177 | |
| 178 | static void InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto() { |
| 179 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 180 | |
| 181 | { |
| 182 | void* ptr = &::dmi::_PortComponentAttributes_default_instance_; |
| 183 | new (ptr) ::dmi::PortComponentAttributes(); |
| 184 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 185 | } |
| 186 | ::dmi::PortComponentAttributes::InitAsDefaultInstance(); |
| 187 | } |
| 188 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 189 | ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentAttributes_dmi_2fhw_2eproto = |
| 190 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPortComponentAttributes_dmi_2fhw_2eproto}, { |
| 191 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base, |
| 192 | &scc_info_PonDistance_dmi_2fhw_2eproto.base,}}; |
| 193 | |
| 194 | static void InitDefaultsPonDistance_dmi_2fhw_2eproto() { |
| 195 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 196 | |
| 197 | { |
| 198 | void* ptr = &::dmi::_PonDistance_default_instance_; |
| 199 | new (ptr) ::dmi::PonDistance(); |
| 200 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 201 | } |
| 202 | ::dmi::PonDistance::InitAsDefaultInstance(); |
| 203 | } |
| 204 | |
| 205 | ::google::protobuf::internal::SCCInfo<0> scc_info_PonDistance_dmi_2fhw_2eproto = |
| 206 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPonDistance_dmi_2fhw_2eproto}, {}}; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 207 | |
| 208 | static void InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto() { |
| 209 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 210 | |
| 211 | { |
| 212 | void* ptr = &::dmi::_PortComponentChangeAttributes_default_instance_; |
| 213 | new (ptr) ::dmi::PortComponentChangeAttributes(); |
| 214 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 215 | } |
| 216 | ::dmi::PortComponentChangeAttributes::InitAsDefaultInstance(); |
| 217 | } |
| 218 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 219 | ::google::protobuf::internal::SCCInfo<2> scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto = |
| 220 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPortComponentChangeAttributes_dmi_2fhw_2eproto}, { |
| 221 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base, |
| 222 | &scc_info_PonDistance_dmi_2fhw_2eproto.base,}}; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 223 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 224 | static void InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto() { |
| 225 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 226 | |
| 227 | { |
| 228 | void* ptr = &::dmi::_TransceiverComponentChangeAttributes_default_instance_; |
| 229 | new (ptr) ::dmi::TransceiverComponentChangeAttributes(); |
| 230 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 231 | } |
| 232 | ::dmi::TransceiverComponentChangeAttributes::InitAsDefaultInstance(); |
| 233 | } |
| 234 | |
| 235 | ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto = |
| 236 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentChangeAttributes_dmi_2fhw_2eproto}, {}}; |
| 237 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 238 | static void InitDefaultsPonIdConfig_dmi_2fhw_2eproto() { |
| 239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 240 | |
| 241 | { |
| 242 | void* ptr = &::dmi::_PonIdConfig_default_instance_; |
| 243 | new (ptr) ::dmi::PonIdConfig(); |
| 244 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 245 | } |
| 246 | ::dmi::PonIdConfig::InitAsDefaultInstance(); |
| 247 | } |
| 248 | |
| 249 | ::google::protobuf::internal::SCCInfo<0> scc_info_PonIdConfig_dmi_2fhw_2eproto = |
| 250 | {{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] | 251 | |
| 252 | static void InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto() { |
| 253 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 254 | |
| 255 | { |
| 256 | void* ptr = &::dmi::_ContainerComponentAttributes_default_instance_; |
| 257 | new (ptr) ::dmi::ContainerComponentAttributes(); |
| 258 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 259 | } |
| 260 | ::dmi::ContainerComponentAttributes::InitAsDefaultInstance(); |
| 261 | } |
| 262 | |
| 263 | ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto = |
| 264 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerComponentAttributes_dmi_2fhw_2eproto}, {}}; |
| 265 | |
| 266 | static void InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto() { |
| 267 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 268 | |
| 269 | { |
| 270 | void* ptr = &::dmi::_PsuComponentAttributes_default_instance_; |
| 271 | new (ptr) ::dmi::PsuComponentAttributes(); |
| 272 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 273 | } |
| 274 | ::dmi::PsuComponentAttributes::InitAsDefaultInstance(); |
| 275 | } |
| 276 | |
| 277 | ::google::protobuf::internal::SCCInfo<0> scc_info_PsuComponentAttributes_dmi_2fhw_2eproto = |
| 278 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPsuComponentAttributes_dmi_2fhw_2eproto}, {}}; |
| 279 | |
| 280 | static void InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto() { |
| 281 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 282 | |
| 283 | { |
| 284 | void* ptr = &::dmi::_TransceiverComponentsAttributes_default_instance_; |
| 285 | new (ptr) ::dmi::TransceiverComponentsAttributes(); |
| 286 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 287 | } |
| 288 | ::dmi::TransceiverComponentsAttributes::InitAsDefaultInstance(); |
| 289 | } |
| 290 | |
| 291 | ::google::protobuf::internal::SCCInfo<0> scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto = |
| 292 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransceiverComponentsAttributes_dmi_2fhw_2eproto}, {}}; |
| 293 | |
| 294 | static void InitDefaultsComponent_dmi_2fhw_2eproto() { |
| 295 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 296 | |
| 297 | { |
| 298 | void* ptr = &::dmi::_Component_default_instance_; |
| 299 | new (ptr) ::dmi::Component(); |
| 300 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 301 | } |
| 302 | ::dmi::Component::InitAsDefaultInstance(); |
| 303 | } |
| 304 | |
| 305 | ::google::protobuf::internal::SCCInfo<9> scc_info_Component_dmi_2fhw_2eproto = |
| 306 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsComponent_dmi_2fhw_2eproto}, { |
| 307 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| 308 | &scc_info_Uri_dmi_2fhw_2eproto.base, |
| 309 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 310 | &scc_info_ComponentState_dmi_2fhw_2eproto.base, |
| 311 | &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base, |
| 312 | &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base, |
| 313 | &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base, |
| 314 | &scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base, |
| 315 | &scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base,}}; |
| 316 | |
| 317 | static void InitDefaultsHardware_dmi_2fhw_2eproto() { |
| 318 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 319 | |
| 320 | { |
| 321 | void* ptr = &::dmi::_Hardware_default_instance_; |
| 322 | new (ptr) ::dmi::Hardware(); |
| 323 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 324 | } |
| 325 | ::dmi::Hardware::InitAsDefaultInstance(); |
| 326 | } |
| 327 | |
| 328 | ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto = |
| 329 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHardware_dmi_2fhw_2eproto}, { |
| 330 | &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, |
| 331 | &scc_info_Component_dmi_2fhw_2eproto.base,}}; |
| 332 | |
| 333 | static void InitDefaultsModifiableComponent_dmi_2fhw_2eproto() { |
| 334 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 335 | |
| 336 | { |
| 337 | void* ptr = &::dmi::_ModifiableComponent_default_instance_; |
| 338 | new (ptr) ::dmi::ModifiableComponent(); |
| 339 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 340 | } |
| 341 | ::dmi::ModifiableComponent::InitAsDefaultInstance(); |
| 342 | } |
| 343 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 344 | ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_dmi_2fhw_2eproto = |
| 345 | {{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] | 346 | &scc_info_Component_dmi_2fhw_2eproto.base, |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 347 | &scc_info_Uri_dmi_2fhw_2eproto.base, |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 348 | &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base, |
| 349 | &scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base,}}; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 350 | |
| 351 | void InitDefaults_dmi_2fhw_2eproto() { |
| 352 | ::google::protobuf::internal::InitSCC(&scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 353 | ::google::protobuf::internal::InitSCC(&scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 354 | ::google::protobuf::internal::InitSCC(&scc_info_Uri_dmi_2fhw_2eproto.base); |
| 355 | ::google::protobuf::internal::InitSCC(&scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 356 | ::google::protobuf::internal::InitSCC(&scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 357 | ::google::protobuf::internal::InitSCC(&scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 358 | ::google::protobuf::internal::InitSCC(&scc_info_PonDistance_dmi_2fhw_2eproto.base); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 359 | ::google::protobuf::internal::InitSCC(&scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 360 | ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 361 | ::google::protobuf::internal::InitSCC(&scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 362 | ::google::protobuf::internal::InitSCC(&scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 363 | ::google::protobuf::internal::InitSCC(&scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base); |
| 364 | ::google::protobuf::internal::InitSCC(&scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base); |
| 365 | ::google::protobuf::internal::InitSCC(&scc_info_Component_dmi_2fhw_2eproto.base); |
| 366 | ::google::protobuf::internal::InitSCC(&scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 367 | ::google::protobuf::internal::InitSCC(&scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 368 | } |
| 369 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 370 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_2eproto[16]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 371 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_2eproto[15]; |
| 372 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_2eproto = nullptr; |
| 373 | |
| 374 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 375 | ~0u, // no _has_bits_ |
| 376 | PROTOBUF_FIELD_OFFSET(::dmi::Uuid, _internal_metadata_), |
| 377 | ~0u, // no _extensions_ |
| 378 | ~0u, // no _oneof_case_ |
| 379 | ~0u, // no _weak_field_map_ |
| 380 | PROTOBUF_FIELD_OFFSET(::dmi::Uuid, uuid_), |
| 381 | ~0u, // no _has_bits_ |
| 382 | PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, _internal_metadata_), |
| 383 | ~0u, // no _extensions_ |
| 384 | ~0u, // no _oneof_case_ |
| 385 | ~0u, // no _weak_field_map_ |
| 386 | PROTOBUF_FIELD_OFFSET(::dmi::HardwareID, uuid_), |
| 387 | ~0u, // no _has_bits_ |
| 388 | PROTOBUF_FIELD_OFFSET(::dmi::Uri, _internal_metadata_), |
| 389 | ~0u, // no _extensions_ |
| 390 | ~0u, // no _oneof_case_ |
| 391 | ~0u, // no _weak_field_map_ |
| 392 | PROTOBUF_FIELD_OFFSET(::dmi::Uri, uri_), |
| 393 | ~0u, // no _has_bits_ |
| 394 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, _internal_metadata_), |
| 395 | ~0u, // no _extensions_ |
| 396 | ~0u, // no _oneof_case_ |
| 397 | ~0u, // no _weak_field_map_ |
| 398 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, state_last_changed_), |
| 399 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, admin_state_), |
| 400 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, oper_state_), |
| 401 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, usage_state_), |
| 402 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, alarm_state_), |
| 403 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentState, standby_state_), |
| 404 | ~0u, // no _has_bits_ |
| 405 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, _internal_metadata_), |
| 406 | ~0u, // no _extensions_ |
| 407 | ~0u, // no _oneof_case_ |
| 408 | ~0u, // no _weak_field_map_ |
| 409 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_), |
| 410 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, type_), |
| 411 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, scale_), |
| 412 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, precision_), |
| 413 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, status_), |
| 414 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, units_display_), |
| 415 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, timestamp_), |
| 416 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, value_update_rate_), |
| 417 | PROTOBUF_FIELD_OFFSET(::dmi::ComponentSensorData, data_type_), |
| 418 | ~0u, // no _has_bits_ |
| 419 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, _internal_metadata_), |
| 420 | ~0u, // no _extensions_ |
| 421 | ~0u, // no _oneof_case_ |
| 422 | ~0u, // no _weak_field_map_ |
| 423 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, connector_type_), |
| 424 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_), |
| 425 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, protocol_), |
| 426 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, physical_label_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 427 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, mapping_label_), |
| 428 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, pon_id_config_), |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 429 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, speed_autonegotiation_), |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 430 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentAttributes, distance_), |
| 431 | ~0u, // no _has_bits_ |
| 432 | PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, _internal_metadata_), |
| 433 | ~0u, // no _extensions_ |
| 434 | ~0u, // no _oneof_case_ |
| 435 | ~0u, // no _weak_field_map_ |
| 436 | PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, max_distance_), |
| 437 | PROTOBUF_FIELD_OFFSET(::dmi::PonDistance, max_differential_distance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 438 | ~0u, // no _has_bits_ |
| 439 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, _internal_metadata_), |
| 440 | ~0u, // no _extensions_ |
| 441 | ~0u, // no _oneof_case_ |
| 442 | ~0u, // no _weak_field_map_ |
| 443 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, pon_id_config_), |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 444 | PROTOBUF_FIELD_OFFSET(::dmi::PortComponentChangeAttributes, distance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 445 | ~0u, // no _has_bits_ |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 446 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, _internal_metadata_), |
| 447 | ~0u, // no _extensions_ |
| 448 | ~0u, // no _oneof_case_ |
| 449 | ~0u, // no _weak_field_map_ |
| 450 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentChangeAttributes, trans_type_), |
| 451 | ~0u, // no _has_bits_ |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 452 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, _internal_metadata_), |
| 453 | ~0u, // no _extensions_ |
| 454 | ~0u, // no _oneof_case_ |
| 455 | ~0u, // no _weak_field_map_ |
| 456 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_), |
| 457 | PROTOBUF_FIELD_OFFSET(::dmi::PonIdConfig, pon_id_transmit_periodicity_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 458 | ~0u, // no _has_bits_ |
| 459 | PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, _internal_metadata_), |
| 460 | ~0u, // no _extensions_ |
| 461 | ~0u, // no _oneof_case_ |
| 462 | ~0u, // no _weak_field_map_ |
| 463 | PROTOBUF_FIELD_OFFSET(::dmi::ContainerComponentAttributes, physical_label_), |
| 464 | ~0u, // no _has_bits_ |
| 465 | PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, _internal_metadata_), |
| 466 | ~0u, // no _extensions_ |
| 467 | ~0u, // no _oneof_case_ |
| 468 | ~0u, // no _weak_field_map_ |
| 469 | PROTOBUF_FIELD_OFFSET(::dmi::PsuComponentAttributes, supported_voltage_), |
| 470 | ~0u, // no _has_bits_ |
| 471 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, _internal_metadata_), |
| 472 | ~0u, // no _extensions_ |
| 473 | ~0u, // no _oneof_case_ |
| 474 | ~0u, // no _weak_field_map_ |
| 475 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, form_factor_), |
| 476 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, trans_type_), |
| 477 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_), |
| 478 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, max_distance_scale_), |
| 479 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, rx_wavelength_), |
| 480 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_wavelength_), |
| 481 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, wavelength_scale_), |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 482 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_power_), |
| 483 | PROTOBUF_FIELD_OFFSET(::dmi::TransceiverComponentsAttributes, tx_power_scale_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 484 | ~0u, // no _has_bits_ |
| 485 | PROTOBUF_FIELD_OFFSET(::dmi::Component, _internal_metadata_), |
| 486 | ~0u, // no _extensions_ |
| 487 | PROTOBUF_FIELD_OFFSET(::dmi::Component, _oneof_case_[0]), |
| 488 | ~0u, // no _weak_field_map_ |
| 489 | PROTOBUF_FIELD_OFFSET(::dmi::Component, name_), |
| 490 | PROTOBUF_FIELD_OFFSET(::dmi::Component, class__), |
| 491 | PROTOBUF_FIELD_OFFSET(::dmi::Component, description_), |
| 492 | PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_), |
| 493 | PROTOBUF_FIELD_OFFSET(::dmi::Component, parent_rel_pos_), |
| 494 | PROTOBUF_FIELD_OFFSET(::dmi::Component, children_), |
| 495 | PROTOBUF_FIELD_OFFSET(::dmi::Component, hardware_rev_), |
| 496 | PROTOBUF_FIELD_OFFSET(::dmi::Component, firmware_rev_), |
| 497 | PROTOBUF_FIELD_OFFSET(::dmi::Component, software_rev_), |
| 498 | PROTOBUF_FIELD_OFFSET(::dmi::Component, serial_num_), |
| 499 | PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_name_), |
| 500 | PROTOBUF_FIELD_OFFSET(::dmi::Component, model_name_), |
| 501 | PROTOBUF_FIELD_OFFSET(::dmi::Component, alias_), |
| 502 | PROTOBUF_FIELD_OFFSET(::dmi::Component, asset_id_), |
| 503 | PROTOBUF_FIELD_OFFSET(::dmi::Component, is_fru_), |
| 504 | PROTOBUF_FIELD_OFFSET(::dmi::Component, mfg_date_), |
| 505 | PROTOBUF_FIELD_OFFSET(::dmi::Component, uri_), |
| 506 | PROTOBUF_FIELD_OFFSET(::dmi::Component, uuid_), |
| 507 | PROTOBUF_FIELD_OFFSET(::dmi::Component, state_), |
| 508 | PROTOBUF_FIELD_OFFSET(::dmi::Component, sensor_data_), |
| 509 | offsetof(::dmi::ComponentDefaultTypeInternal, port_attr_), |
| 510 | offsetof(::dmi::ComponentDefaultTypeInternal, container_attr_), |
| 511 | offsetof(::dmi::ComponentDefaultTypeInternal, psu_attr_), |
| 512 | offsetof(::dmi::ComponentDefaultTypeInternal, transceiver_attr_), |
| 513 | PROTOBUF_FIELD_OFFSET(::dmi::Component, specific_), |
| 514 | ~0u, // no _has_bits_ |
| 515 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, _internal_metadata_), |
| 516 | ~0u, // no _extensions_ |
| 517 | ~0u, // no _oneof_case_ |
| 518 | ~0u, // no _weak_field_map_ |
| 519 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_change_), |
| 520 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, root_), |
| 521 | PROTOBUF_FIELD_OFFSET(::dmi::Hardware, last_booted_), |
| 522 | ~0u, // no _has_bits_ |
| 523 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _internal_metadata_), |
| 524 | ~0u, // no _extensions_ |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 525 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, _oneof_case_[0]), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 526 | ~0u, // no _weak_field_map_ |
| 527 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, name_), |
| 528 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, class__), |
| 529 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_), |
| 530 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, parent_rel_pos_), |
| 531 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, alias_), |
| 532 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, asset_id_), |
| 533 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, uri_), |
| 534 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, admin_state_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 535 | offsetof(::dmi::ModifiableComponentDefaultTypeInternal, port_attr_), |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 536 | offsetof(::dmi::ModifiableComponentDefaultTypeInternal, trx_attr_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 537 | PROTOBUF_FIELD_OFFSET(::dmi::ModifiableComponent, specific_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 538 | }; |
| 539 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 540 | { 0, -1, sizeof(::dmi::Uuid)}, |
| 541 | { 6, -1, sizeof(::dmi::HardwareID)}, |
| 542 | { 12, -1, sizeof(::dmi::Uri)}, |
| 543 | { 18, -1, sizeof(::dmi::ComponentState)}, |
| 544 | { 29, -1, sizeof(::dmi::ComponentSensorData)}, |
| 545 | { 43, -1, sizeof(::dmi::PortComponentAttributes)}, |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 546 | { 56, -1, sizeof(::dmi::PonDistance)}, |
| 547 | { 63, -1, sizeof(::dmi::PortComponentChangeAttributes)}, |
| 548 | { 70, -1, sizeof(::dmi::TransceiverComponentChangeAttributes)}, |
| 549 | { 76, -1, sizeof(::dmi::PonIdConfig)}, |
| 550 | { 83, -1, sizeof(::dmi::ContainerComponentAttributes)}, |
| 551 | { 89, -1, sizeof(::dmi::PsuComponentAttributes)}, |
| 552 | { 95, -1, sizeof(::dmi::TransceiverComponentsAttributes)}, |
| 553 | { 109, -1, sizeof(::dmi::Component)}, |
| 554 | { 139, -1, sizeof(::dmi::Hardware)}, |
| 555 | { 147, -1, sizeof(::dmi::ModifiableComponent)}, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 556 | }; |
| 557 | |
| 558 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 559 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uuid_default_instance_), |
| 560 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HardwareID_default_instance_), |
| 561 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Uri_default_instance_), |
| 562 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentState_default_instance_), |
| 563 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ComponentSensorData_default_instance_), |
| 564 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentAttributes_default_instance_), |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 565 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PonDistance_default_instance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 566 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PortComponentChangeAttributes_default_instance_), |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 567 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentChangeAttributes_default_instance_), |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 568 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PonIdConfig_default_instance_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 569 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ContainerComponentAttributes_default_instance_), |
| 570 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PsuComponentAttributes_default_instance_), |
| 571 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_TransceiverComponentsAttributes_default_instance_), |
| 572 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Component_default_instance_), |
| 573 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Hardware_default_instance_), |
| 574 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ModifiableComponent_default_instance_), |
| 575 | }; |
| 576 | |
| 577 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_2eproto = { |
| 578 | {}, AddDescriptors_dmi_2fhw_2eproto, "dmi/hw.proto", schemas, |
| 579 | file_default_instances, TableStruct_dmi_2fhw_2eproto::offsets, |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 580 | file_level_metadata_dmi_2fhw_2eproto, 16, 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] | 581 | }; |
| 582 | |
| 583 | const char descriptor_table_protodef_dmi_2fhw_2eproto[] = |
| 584 | "\n\014dmi/hw.proto\022\003dmi\032\037google/protobuf/tim" |
| 585 | "estamp.proto\"\024\n\004Uuid\022\014\n\004uuid\030\001 \001(\t\"%\n\nHa" |
| 586 | "rdwareID\022\027\n\004uuid\030\001 \001(\0132\t.dmi.Uuid\"\022\n\003Uri" |
| 587 | "\022\013\n\003uri\030\001 \001(\t\"\265\002\n\016ComponentState\0226\n\022stat" |
| 588 | "e_last_changed\030\001 \001(\0132\032.google.protobuf.T" |
| 589 | "imestamp\022-\n\013admin_state\030\002 \001(\0162\030.dmi.Comp" |
| 590 | "onentAdminState\022+\n\noper_state\030\003 \001(\0162\027.dm" |
| 591 | "i.ComponentOperState\022-\n\013usage_state\030\004 \001(" |
| 592 | "\0162\030.dmi.ComponentUsageState\022-\n\013alarm_sta" |
| 593 | "te\030\005 \001(\0162\030.dmi.ComponentAlarmState\0221\n\rst" |
| 594 | "andby_state\030\006 \001(\0162\032.dmi.ComponentStandby" |
| 595 | "State\"\220\002\n\023ComponentSensorData\022\r\n\005value\030\001" |
| 596 | " \001(\005\022 \n\004type\030\002 \001(\0162\022.dmi.DataValueType\022\036" |
| 597 | "\n\005scale\030\003 \001(\0162\017.dmi.ValueScale\022\021\n\tprecis" |
| 598 | "ion\030\004 \001(\005\022!\n\006status\030\005 \001(\0162\021.dmi.SensorSt" |
| 599 | "atus\022\025\n\runits_display\030\006 \001(\t\022-\n\ttimestamp" |
| 600 | "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\031\n\021va" |
| 601 | "lue_update_rate\030\010 \001(\r\022\021\n\tdata_type\030\t \001(\t" |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 602 | "\"\205\006\n\027PortComponentAttributes\022B\n\016connecto" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 603 | "r_type\030\001 \001(\0162*.dmi.PortComponentAttribut" |
| 604 | "es.ConnectorType\0221\n\005speed\030\002 \001(\0162\".dmi.Po" |
| 605 | "rtComponentAttributes.Speed\0227\n\010protocol\030" |
| 606 | "\003 \001(\0162%.dmi.PortComponentAttributes.Prot" |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 607 | "ocol\022\026\n\016physical_label\030\004 \001(\t\022\025\n\rmapping_" |
| 608 | "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] | 609 | ".PonIdConfig\022\035\n\025speed_autonegotiation\030\007 " |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 610 | "\001(\010\022\"\n\010distance\030\010 \001(\0132\020.dmi.PonDistance\"" |
| 611 | "p\n\rConnectorType\022\034\n\030CONNECTOR_TYPE_UNDEF" |
| 612 | "INED\020\000\022\010\n\004RJ45\020\001\022\014\n\010FIBER_LC\020\002\022\017\n\013FIBER_" |
| 613 | "SC_PC\020\003\022\r\n\tFIBER_MPO\020\004\022\t\n\005RS232\020\005\"\256\001\n\005Sp" |
| 614 | "eed\022\023\n\017SPEED_UNDEFINED\020\000\022\013\n\007DYNAMIC\020\001\022\r\n" |
| 615 | "\tGIGABIT_1\020\002\022\016\n\nGIGABIT_10\020\003\022\016\n\nGIGABIT_" |
| 616 | "25\020\004\022\016\n\nGIGABIT_40\020\005\022\017\n\013GIGABIT_100\020\006\022\017\n" |
| 617 | "\013GIGABIT_400\020\007\022\020\n\014MEGABIT_2500\020\010\022\020\n\014MEGA" |
| 618 | "BIT_1250\020\t\"|\n\010Protocol\022\026\n\022PROTOCOL_UNDEF" |
| 619 | "INED\020\000\022\014\n\010ETHERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON\020" |
| 620 | "\003\022\n\n\006XGSPON\020\004\022\t\n\005GFAST\020\005\022\n\n\006SERIAL\020\006\022\010\n\004" |
| 621 | "EPON\020\007\022\010\n\004BITS\020\010\"F\n\013PonDistance\022\024\n\014max_d" |
| 622 | "istance\030\001 \001(\r\022!\n\031max_differential_distan" |
| 623 | "ce\030\002 \001(\r\"l\n\035PortComponentChangeAttribute" |
| 624 | "s\022\'\n\rpon_id_config\030\001 \001(\0132\020.dmi.PonIdConf" |
| 625 | "ig\022\"\n\010distance\030\002 \001(\0132\020.dmi.PonDistance\"P" |
| 626 | "\n$TransceiverComponentChangeAttributes\022(" |
| 627 | "\n\ntrans_type\030\001 \001(\0162\024.dmi.TransceiverType" |
| 628 | "\"B\n\013PonIdConfig\022\016\n\006pon_id\030\001 \001(\014\022#\n\033pon_i" |
| 629 | "d_transmit_periodicity\030\002 \001(\r\"6\n\034Containe" |
| 630 | "rComponentAttributes\022\026\n\016physical_label\030\001" |
| 631 | " \001(\t\"\263\001\n\026PsuComponentAttributes\022G\n\021suppo" |
| 632 | "rted_voltage\030\001 \001(\0162,.dmi.PsuComponentAtt" |
| 633 | "ributes.SupportedVoltage\"P\n\020SupportedVol" |
| 634 | "tage\022\037\n\033SUPPORTED_VOLTAGE_UNDEFINED\020\000\022\007\n" |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 635 | "\003V48\020\001\022\010\n\004V230\020\002\022\010\n\004V115\020\003\"\270\004\n\037Transceiv" |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 636 | "erComponentsAttributes\022D\n\013form_factor\030\001 " |
| 637 | "\001(\0162/.dmi.TransceiverComponentsAttribute" |
| 638 | "s.FormFactor\022(\n\ntrans_type\030\002 \001(\0162\024.dmi.T" |
| 639 | "ransceiverType\022\024\n\014max_distance\030\003 \001(\r\022+\n\022" |
| 640 | "max_distance_scale\030\004 \001(\0162\017.dmi.ValueScal" |
| 641 | "e\022\025\n\rrx_wavelength\030\005 \003(\r\022\025\n\rtx_wavelengt" |
| 642 | "h\030\006 \003(\r\022)\n\020wavelength_scale\030\007 \001(\0162\017.dmi." |
| 643 | "ValueScale\022\020\n\010tx_power\030\010 \003(\005\022\'\n\016tx_power" |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 644 | "_scale\030\t \001(\0162\017.dmi.ValueScale\"\315\001\n\nFormFa" |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 645 | "ctor\022\027\n\023FORM_FACTOR_UNKNOWN\020\000\022\010\n\004QSFP\020\001\022" |
| 646 | "\r\n\tQSFP_PLUS\020\002\022\n\n\006QSFP28\020\003\022\007\n\003SFP\020\004\022\014\n\010S" |
| 647 | "FP_PLUS\020\005\022\007\n\003XFP\020\006\022\010\n\004CFP4\020\007\022\010\n\004CFP2\020\010\022\010" |
| 648 | "\n\004CPAK\020\t\022\006\n\002X2\020\n\022\t\n\005OTHER\020\013\022\007\n\003CFP\020\014\022\014\n\010" |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 649 | "CFP2_ACO\020\r\022\014\n\010CFP2_DCO\020\016\022\013\n\007QSFP_DD\020\017\"\350\005" |
| 650 | "\n\tComponent\022\014\n\004name\030\001 \001(\t\022!\n\005class\030\002 \001(\016" |
| 651 | "2\022.dmi.ComponentType\022\023\n\013description\030\003 \001(" |
| 652 | "\t\022\016\n\006parent\030\004 \001(\t\022\026\n\016parent_rel_pos\030\005 \001(" |
| 653 | "\005\022 \n\010children\030\006 \003(\0132\016.dmi.Component\022\024\n\014h" |
| 654 | "ardware_rev\030\007 \001(\t\022\024\n\014firmware_rev\030\010 \001(\t\022" |
| 655 | "\024\n\014software_rev\030\t \001(\t\022\022\n\nserial_num\030\n \001(" |
| 656 | "\t\022\020\n\010mfg_name\030\013 \001(\t\022\022\n\nmodel_name\030\014 \001(\t\022" |
| 657 | "\r\n\005alias\030\r \001(\t\022\020\n\010asset_id\030\016 \001(\t\022\016\n\006is_f" |
| 658 | "ru\030\017 \001(\010\022,\n\010mfg_date\030\020 \001(\0132\032.google.prot" |
| 659 | "obuf.Timestamp\022\025\n\003uri\030\021 \001(\0132\010.dmi.Uri\022\027\n" |
| 660 | "\004uuid\030\022 \001(\0132\t.dmi.Uuid\022\"\n\005state\030\023 \001(\0132\023." |
| 661 | "dmi.ComponentState\022-\n\013sensor_data\030\024 \003(\0132" |
| 662 | "\030.dmi.ComponentSensorData\0221\n\tport_attr\0302" |
| 663 | " \001(\0132\034.dmi.PortComponentAttributesH\000\022;\n\016" |
| 664 | "container_attr\0303 \001(\0132!.dmi.ContainerComp" |
| 665 | "onentAttributesH\000\022/\n\010psu_attr\0304 \001(\0132\033.dm" |
| 666 | "i.PsuComponentAttributesH\000\022@\n\020transceive" |
| 667 | "r_attr\0305 \001(\0132$.dmi.TransceiverComponents" |
| 668 | "AttributesH\000B\n\n\010specific\"\212\001\n\010Hardware\022/\n" |
| 669 | "\013last_change\030\001 \001(\0132\032.google.protobuf.Tim" |
| 670 | "estamp\022\034\n\004root\030\002 \001(\0132\016.dmi.Component\022/\n\013" |
| 671 | "last_booted\030\003 \001(\0132\032.google.protobuf.Time" |
| 672 | "stamp\"\351\002\n\023ModifiableComponent\022\014\n\004name\030\001 " |
| 673 | "\001(\t\022!\n\005class\030\002 \001(\0162\022.dmi.ComponentType\022\036" |
| 674 | "\n\006parent\030\003 \001(\0132\016.dmi.Component\022\026\n\016parent" |
| 675 | "_rel_pos\030\004 \001(\005\022\r\n\005alias\030\005 \001(\t\022\020\n\010asset_i" |
| 676 | "d\030\006 \001(\t\022\025\n\003uri\030\007 \001(\0132\010.dmi.Uri\022-\n\013admin_" |
| 677 | "state\030\010 \001(\0162\030.dmi.ComponentAdminState\0227\n" |
| 678 | "\tport_attr\0302 \001(\0132\".dmi.PortComponentChan" |
| 679 | "geAttributesH\000\022=\n\010trx_attr\0303 \001(\0132).dmi.T" |
| 680 | "ransceiverComponentChangeAttributesH\000B\n\n" |
| 681 | "\010specific*\264\003\n\rComponentType\022\034\n\030COMPONENT" |
| 682 | "_TYPE_UNDEFINED\020\000\022\032\n\026COMPONENT_TYPE_UNKN" |
| 683 | "OWN\020\001\022\032\n\026COMPONENT_TYPE_CHASSIS\020\002\022\034\n\030COM" |
| 684 | "PONENT_TYPE_BACKPLANE\020\003\022\034\n\030COMPONENT_TYP" |
| 685 | "E_CONTAINER\020\004\022\037\n\033COMPONENT_TYPE_POWER_SU" |
| 686 | "PPLY\020\005\022\026\n\022COMPONENT_TYPE_FAN\020\006\022\031\n\025COMPON" |
| 687 | "ENT_TYPE_SENSOR\020\007\022\031\n\025COMPONENT_TYPE_MODU" |
| 688 | "LE\020\010\022\027\n\023COMPONENT_TYPE_PORT\020\t\022\026\n\022COMPONE" |
| 689 | "NT_TYPE_CPU\020\n\022\032\n\026COMPONENT_TYPE_BATTERY\020" |
| 690 | "\013\022\032\n\026COMPONENT_TYPE_STORAGE\020\014\022\031\n\025COMPONE" |
| 691 | "NT_TYPE_MEMORY\020\r\022\036\n\032COMPONENT_TYPE_TRANS" |
| 692 | "CEIVER\020\016*\263\001\n\023ComponentAdminState\022\036\n\032COMP" |
| 693 | "_ADMIN_STATE_UNDEFINED\020\000\022\034\n\030COMP_ADMIN_S" |
| 694 | "TATE_UNKNOWN\020\001\022\033\n\027COMP_ADMIN_STATE_LOCKE" |
| 695 | "D\020\002\022\"\n\036COMP_ADMIN_STATE_SHUTTING_DOWN\020\003\022" |
| 696 | "\035\n\031COMP_ADMIN_STATE_UNLOCKED\020\004*\250\001\n\022Compo" |
| 697 | "nentOperState\022\035\n\031COMP_OPER_STATE_UNDEFIN" |
| 698 | "ED\020\000\022\033\n\027COMP_OPER_STATE_UNKNOWN\020\001\022\034\n\030COM" |
| 699 | "P_OPER_STATE_DISABLED\020\002\022\033\n\027COMP_OPER_STA" |
| 700 | "TE_ENABLED\020\003\022\033\n\027COMP_OPER_STATE_TESTING\020" |
| 701 | "\004*\246\001\n\023ComponentUsageState\022\036\n\032COMP_USAGE_" |
| 702 | "STATE_UNDEFINED\020\000\022\034\n\030COMP_USAGE_STATE_UN" |
| 703 | "KNOWN\020\001\022\031\n\025COMP_USAGE_STATE_IDLE\020\002\022\033\n\027CO" |
| 704 | "MP_USAGE_STATE_ACTIVE\020\003\022\031\n\025COMP_USAGE_ST" |
| 705 | "ATE_BUSY\020\004*\217\002\n\023ComponentAlarmState\022\036\n\032CO" |
| 706 | "MP_ALARM_STATE_UNDEFINED\020\000\022\034\n\030COMP_ALARM" |
| 707 | "_STATE_UNKNOWN\020\001\022!\n\035COMP_ALARM_STATE_UND" |
| 708 | "ER_REPAIR\020\002\022\035\n\031COMP_ALARM_STATE_CRITICAL" |
| 709 | "\020\003\022\032\n\026COMP_ALARM_STATE_MAJOR\020\004\022\032\n\026COMP_A" |
| 710 | "LARM_STATE_MINOR\020\005\022\034\n\030COMP_ALARM_STATE_W" |
| 711 | "ARNING\020\006\022\"\n\036COMP_ALARM_STATE_INDETERMINA" |
| 712 | "TE\020\007*\274\001\n\025ComponentStandbyState\022 \n\034COMP_S" |
| 713 | "TANDBY_STATE_UNDEFINED\020\000\022\036\n\032COMP_STANDBY" |
| 714 | "_STATE_UNKNOWN\020\001\022\032\n\026COMP_STANDBY_STATE_H" |
| 715 | "OT\020\002\022\033\n\027COMP_STANDBY_STATE_COLD\020\003\022(\n$COM" |
| 716 | "P_STANDBY_STATE_PROVIDING_SERVICE\020\004*\235\003\n\r" |
| 717 | "DataValueType\022\030\n\024VALUE_TYPE_UNDEFINED\020\000\022" |
| 718 | "\024\n\020VALUE_TYPE_OTHER\020\001\022\026\n\022VALUE_TYPE_UNKN" |
| 719 | "OWN\020\002\022\027\n\023VALUE_TYPE_VOLTS_AC\020\003\022\027\n\023VALUE_" |
| 720 | "TYPE_VOLTS_DC\020\004\022\026\n\022VALUE_TYPE_AMPERES\020\005\022" |
| 721 | "\024\n\020VALUE_TYPE_WATTS\020\006\022\024\n\020VALUE_TYPE_HERT" |
| 722 | "Z\020\007\022\026\n\022VALUE_TYPE_CELSIUS\020\010\022\031\n\025VALUE_TYP" |
| 723 | "E_PERCENT_RH\020\t\022\022\n\016VALUE_TYPE_RPM\020\n\022\022\n\016VA" |
| 724 | "LUE_TYPE_CMM\020\013\022\032\n\026VALUE_TYPE_TRUTH_VALUE" |
| 725 | "\020\014\022\026\n\022VALUE_TYPE_PERCENT\020\r\022\025\n\021VALUE_TYPE" |
| 726 | "_METERS\020\016\022\024\n\020VALUE_TYPE_BYTES\020\017\022\022\n\016VALUE" |
| 727 | "_TYPE_DBM\020\020*\244\003\n\nValueScale\022\031\n\025VALUE_SCAL" |
| 728 | "E_UNDEFINED\020\000\022\025\n\021VALUE_SCALE_YOCTO\020\001\022\025\n\021" |
| 729 | "VALUE_SCALE_ZEPTO\020\002\022\024\n\020VALUE_SCALE_ATTO\020" |
| 730 | "\003\022\025\n\021VALUE_SCALE_FEMTO\020\004\022\024\n\020VALUE_SCALE_" |
| 731 | "PICO\020\005\022\024\n\020VALUE_SCALE_NANO\020\006\022\025\n\021VALUE_SC" |
| 732 | "ALE_MICRO\020\007\022\025\n\021VALUE_SCALE_MILLI\020\010\022\025\n\021VA" |
| 733 | "LUE_SCALE_UNITS\020\t\022\024\n\020VALUE_SCALE_KILO\020\n\022" |
| 734 | "\024\n\020VALUE_SCALE_MEGA\020\013\022\024\n\020VALUE_SCALE_GIG" |
| 735 | "A\020\014\022\024\n\020VALUE_SCALE_TERA\020\r\022\024\n\020VALUE_SCALE" |
| 736 | "_PETA\020\016\022\023\n\017VALUE_SCALE_EXA\020\017\022\025\n\021VALUE_SC" |
| 737 | "ALE_ZETTA\020\020\022\025\n\021VALUE_SCALE_YOTTA\020\021*\202\001\n\014S" |
| 738 | "ensorStatus\022\033\n\027SENSOR_STATUS_UNDEFINED\020\000" |
| 739 | "\022\024\n\020SENSOR_STATUS_OK\020\001\022\035\n\031SENSOR_STATUS_" |
| 740 | "UNAVAILABLE\020\002\022 \n\034SENSOR_STATUS_NONOPERAT" |
| 741 | "IONAL\020\003*\244\001\n\017TransceiverType\022\022\n\016TYPE_UNDE" |
| 742 | "FINED\020\000\022\014\n\010ETHERNET\020\001\022\010\n\004GPON\020\002\022\t\n\005XGPON" |
| 743 | "\020\003\022\n\n\006XGSPON\020\004\022\010\n\004CPON\020\005\022\013\n\007NG_PON2\020\006\022\010\n" |
| 744 | "\004EPON\020\007\022\025\n\021COMBO_GPON_XGSPON\020\010\022\026\n\021TYPE_N" |
| 745 | "OT_DETECTED\020\377\001B;Z9github.com/opencord/de" |
| 746 | "vice-management-interface/v3/go/dmib\006pro" |
| 747 | "to3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 748 | ; |
| 749 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_2eproto = { |
| 750 | false, InitDefaults_dmi_2fhw_2eproto, |
| 751 | descriptor_table_protodef_dmi_2fhw_2eproto, |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 752 | "dmi/hw.proto", &assign_descriptors_table_dmi_2fhw_2eproto, 6523, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 753 | }; |
| 754 | |
| 755 | void AddDescriptors_dmi_2fhw_2eproto() { |
| 756 | static constexpr ::google::protobuf::internal::InitFunc deps[1] = |
| 757 | { |
| 758 | ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, |
| 759 | }; |
| 760 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_2eproto, deps, 1); |
| 761 | } |
| 762 | |
| 763 | // Force running AddDescriptors() at dynamic initialization time. |
| 764 | static bool dynamic_init_dummy_dmi_2fhw_2eproto = []() { AddDescriptors_dmi_2fhw_2eproto(); return true; }(); |
| 765 | namespace dmi { |
| 766 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_ConnectorType_descriptor() { |
| 767 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 768 | return file_level_enum_descriptors_dmi_2fhw_2eproto[0]; |
| 769 | } |
| 770 | bool PortComponentAttributes_ConnectorType_IsValid(int value) { |
| 771 | switch (value) { |
| 772 | case 0: |
| 773 | case 1: |
| 774 | case 2: |
| 775 | case 3: |
| 776 | case 4: |
| 777 | case 5: |
| 778 | return true; |
| 779 | default: |
| 780 | return false; |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 785 | const PortComponentAttributes_ConnectorType PortComponentAttributes::CONNECTOR_TYPE_UNDEFINED; |
| 786 | const PortComponentAttributes_ConnectorType PortComponentAttributes::RJ45; |
| 787 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_LC; |
| 788 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_SC_PC; |
| 789 | const PortComponentAttributes_ConnectorType PortComponentAttributes::FIBER_MPO; |
| 790 | const PortComponentAttributes_ConnectorType PortComponentAttributes::RS232; |
| 791 | const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MIN; |
| 792 | const PortComponentAttributes_ConnectorType PortComponentAttributes::ConnectorType_MAX; |
| 793 | const int PortComponentAttributes::ConnectorType_ARRAYSIZE; |
| 794 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 795 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Speed_descriptor() { |
| 796 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 797 | return file_level_enum_descriptors_dmi_2fhw_2eproto[1]; |
| 798 | } |
| 799 | bool PortComponentAttributes_Speed_IsValid(int value) { |
| 800 | switch (value) { |
| 801 | case 0: |
| 802 | case 1: |
| 803 | case 2: |
| 804 | case 3: |
| 805 | case 4: |
| 806 | case 5: |
| 807 | case 6: |
| 808 | case 7: |
| 809 | case 8: |
| 810 | case 9: |
| 811 | return true; |
| 812 | default: |
| 813 | return false; |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 818 | const PortComponentAttributes_Speed PortComponentAttributes::SPEED_UNDEFINED; |
| 819 | const PortComponentAttributes_Speed PortComponentAttributes::DYNAMIC; |
| 820 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_1; |
| 821 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_10; |
| 822 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_25; |
| 823 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_40; |
| 824 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_100; |
| 825 | const PortComponentAttributes_Speed PortComponentAttributes::GIGABIT_400; |
| 826 | const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_2500; |
| 827 | const PortComponentAttributes_Speed PortComponentAttributes::MEGABIT_1250; |
| 828 | const PortComponentAttributes_Speed PortComponentAttributes::Speed_MIN; |
| 829 | const PortComponentAttributes_Speed PortComponentAttributes::Speed_MAX; |
| 830 | const int PortComponentAttributes::Speed_ARRAYSIZE; |
| 831 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 832 | const ::google::protobuf::EnumDescriptor* PortComponentAttributes_Protocol_descriptor() { |
| 833 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 834 | return file_level_enum_descriptors_dmi_2fhw_2eproto[2]; |
| 835 | } |
| 836 | bool PortComponentAttributes_Protocol_IsValid(int value) { |
| 837 | switch (value) { |
| 838 | case 0: |
| 839 | case 1: |
| 840 | case 2: |
| 841 | case 3: |
| 842 | case 4: |
| 843 | case 5: |
| 844 | case 6: |
| 845 | case 7: |
| 846 | case 8: |
| 847 | return true; |
| 848 | default: |
| 849 | return false; |
| 850 | } |
| 851 | } |
| 852 | |
| 853 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 854 | const PortComponentAttributes_Protocol PortComponentAttributes::PROTOCOL_UNDEFINED; |
| 855 | const PortComponentAttributes_Protocol PortComponentAttributes::ETHERNET; |
| 856 | const PortComponentAttributes_Protocol PortComponentAttributes::GPON; |
| 857 | const PortComponentAttributes_Protocol PortComponentAttributes::XGPON; |
| 858 | const PortComponentAttributes_Protocol PortComponentAttributes::XGSPON; |
| 859 | const PortComponentAttributes_Protocol PortComponentAttributes::GFAST; |
| 860 | const PortComponentAttributes_Protocol PortComponentAttributes::SERIAL; |
| 861 | const PortComponentAttributes_Protocol PortComponentAttributes::EPON; |
| 862 | const PortComponentAttributes_Protocol PortComponentAttributes::BITS; |
| 863 | const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MIN; |
| 864 | const PortComponentAttributes_Protocol PortComponentAttributes::Protocol_MAX; |
| 865 | const int PortComponentAttributes::Protocol_ARRAYSIZE; |
| 866 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 867 | const ::google::protobuf::EnumDescriptor* PsuComponentAttributes_SupportedVoltage_descriptor() { |
| 868 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 869 | return file_level_enum_descriptors_dmi_2fhw_2eproto[3]; |
| 870 | } |
| 871 | bool PsuComponentAttributes_SupportedVoltage_IsValid(int value) { |
| 872 | switch (value) { |
| 873 | case 0: |
| 874 | case 1: |
| 875 | case 2: |
| 876 | case 3: |
| 877 | return true; |
| 878 | default: |
| 879 | return false; |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 884 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SUPPORTED_VOLTAGE_UNDEFINED; |
| 885 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V48; |
| 886 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V230; |
| 887 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::V115; |
| 888 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MIN; |
| 889 | const PsuComponentAttributes_SupportedVoltage PsuComponentAttributes::SupportedVoltage_MAX; |
| 890 | const int PsuComponentAttributes::SupportedVoltage_ARRAYSIZE; |
| 891 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 892 | const ::google::protobuf::EnumDescriptor* TransceiverComponentsAttributes_FormFactor_descriptor() { |
| 893 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 894 | return file_level_enum_descriptors_dmi_2fhw_2eproto[4]; |
| 895 | } |
| 896 | bool TransceiverComponentsAttributes_FormFactor_IsValid(int value) { |
| 897 | switch (value) { |
| 898 | case 0: |
| 899 | case 1: |
| 900 | case 2: |
| 901 | case 3: |
| 902 | case 4: |
| 903 | case 5: |
| 904 | case 6: |
| 905 | case 7: |
| 906 | case 8: |
| 907 | case 9: |
| 908 | case 10: |
| 909 | case 11: |
| 910 | case 12: |
| 911 | case 13: |
| 912 | case 14: |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 913 | case 15: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 914 | return true; |
| 915 | default: |
| 916 | return false; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 921 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FORM_FACTOR_UNKNOWN; |
| 922 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP; |
| 923 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_PLUS; |
| 924 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP28; |
| 925 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP; |
| 926 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::SFP_PLUS; |
| 927 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::XFP; |
| 928 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP4; |
| 929 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2; |
| 930 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CPAK; |
| 931 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::X2; |
| 932 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::OTHER; |
| 933 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP; |
| 934 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_ACO; |
| 935 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::CFP2_DCO; |
amit.ghosh | b68828f | 2023-10-25 18:56:01 +0200 | [diff] [blame] | 936 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::QSFP_DD; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 937 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MIN; |
| 938 | const TransceiverComponentsAttributes_FormFactor TransceiverComponentsAttributes::FormFactor_MAX; |
| 939 | const int TransceiverComponentsAttributes::FormFactor_ARRAYSIZE; |
| 940 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 941 | const ::google::protobuf::EnumDescriptor* ComponentType_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[5]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 944 | } |
| 945 | bool ComponentType_IsValid(int value) { |
| 946 | switch (value) { |
| 947 | case 0: |
| 948 | case 1: |
| 949 | case 2: |
| 950 | case 3: |
| 951 | case 4: |
| 952 | case 5: |
| 953 | case 6: |
| 954 | case 7: |
| 955 | case 8: |
| 956 | case 9: |
| 957 | case 10: |
| 958 | case 11: |
| 959 | case 12: |
| 960 | case 13: |
| 961 | case 14: |
| 962 | return true; |
| 963 | default: |
| 964 | return false; |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | const ::google::protobuf::EnumDescriptor* ComponentAdminState_descriptor() { |
| 969 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 970 | return file_level_enum_descriptors_dmi_2fhw_2eproto[6]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 971 | } |
| 972 | bool ComponentAdminState_IsValid(int value) { |
| 973 | switch (value) { |
| 974 | case 0: |
| 975 | case 1: |
| 976 | case 2: |
| 977 | case 3: |
| 978 | case 4: |
| 979 | return true; |
| 980 | default: |
| 981 | return false; |
| 982 | } |
| 983 | } |
| 984 | |
| 985 | const ::google::protobuf::EnumDescriptor* ComponentOperState_descriptor() { |
| 986 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 987 | return file_level_enum_descriptors_dmi_2fhw_2eproto[7]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 988 | } |
| 989 | bool ComponentOperState_IsValid(int value) { |
| 990 | switch (value) { |
| 991 | case 0: |
| 992 | case 1: |
| 993 | case 2: |
| 994 | case 3: |
| 995 | case 4: |
| 996 | return true; |
| 997 | default: |
| 998 | return false; |
| 999 | } |
| 1000 | } |
| 1001 | |
| 1002 | const ::google::protobuf::EnumDescriptor* ComponentUsageState_descriptor() { |
| 1003 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1004 | return file_level_enum_descriptors_dmi_2fhw_2eproto[8]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1005 | } |
| 1006 | bool ComponentUsageState_IsValid(int value) { |
| 1007 | switch (value) { |
| 1008 | case 0: |
| 1009 | case 1: |
| 1010 | case 2: |
| 1011 | case 3: |
| 1012 | case 4: |
| 1013 | return true; |
| 1014 | default: |
| 1015 | return false; |
| 1016 | } |
| 1017 | } |
| 1018 | |
| 1019 | const ::google::protobuf::EnumDescriptor* ComponentAlarmState_descriptor() { |
| 1020 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1021 | return file_level_enum_descriptors_dmi_2fhw_2eproto[9]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1022 | } |
| 1023 | bool ComponentAlarmState_IsValid(int value) { |
| 1024 | switch (value) { |
| 1025 | case 0: |
| 1026 | case 1: |
| 1027 | case 2: |
| 1028 | case 3: |
| 1029 | case 4: |
| 1030 | case 5: |
| 1031 | case 6: |
| 1032 | case 7: |
| 1033 | return true; |
| 1034 | default: |
| 1035 | return false; |
| 1036 | } |
| 1037 | } |
| 1038 | |
| 1039 | const ::google::protobuf::EnumDescriptor* ComponentStandbyState_descriptor() { |
| 1040 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1041 | return file_level_enum_descriptors_dmi_2fhw_2eproto[10]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1042 | } |
| 1043 | bool ComponentStandbyState_IsValid(int value) { |
| 1044 | switch (value) { |
| 1045 | case 0: |
| 1046 | case 1: |
| 1047 | case 2: |
| 1048 | case 3: |
| 1049 | case 4: |
| 1050 | return true; |
| 1051 | default: |
| 1052 | return false; |
| 1053 | } |
| 1054 | } |
| 1055 | |
| 1056 | const ::google::protobuf::EnumDescriptor* DataValueType_descriptor() { |
| 1057 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1058 | return file_level_enum_descriptors_dmi_2fhw_2eproto[11]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1059 | } |
| 1060 | bool DataValueType_IsValid(int value) { |
| 1061 | switch (value) { |
| 1062 | case 0: |
| 1063 | case 1: |
| 1064 | case 2: |
| 1065 | case 3: |
| 1066 | case 4: |
| 1067 | case 5: |
| 1068 | case 6: |
| 1069 | case 7: |
| 1070 | case 8: |
| 1071 | case 9: |
| 1072 | case 10: |
| 1073 | case 11: |
| 1074 | case 12: |
| 1075 | case 13: |
| 1076 | case 14: |
| 1077 | case 15: |
amit.ghosh | 93921ec | 2022-09-08 17:22:40 +0200 | [diff] [blame] | 1078 | case 16: |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1079 | return true; |
| 1080 | default: |
| 1081 | return false; |
| 1082 | } |
| 1083 | } |
| 1084 | |
| 1085 | const ::google::protobuf::EnumDescriptor* ValueScale_descriptor() { |
| 1086 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1087 | return file_level_enum_descriptors_dmi_2fhw_2eproto[12]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1088 | } |
| 1089 | bool ValueScale_IsValid(int value) { |
| 1090 | switch (value) { |
| 1091 | case 0: |
| 1092 | case 1: |
| 1093 | case 2: |
| 1094 | case 3: |
| 1095 | case 4: |
| 1096 | case 5: |
| 1097 | case 6: |
| 1098 | case 7: |
| 1099 | case 8: |
| 1100 | case 9: |
| 1101 | case 10: |
| 1102 | case 11: |
| 1103 | case 12: |
| 1104 | case 13: |
| 1105 | case 14: |
| 1106 | case 15: |
| 1107 | case 16: |
| 1108 | case 17: |
| 1109 | return true; |
| 1110 | default: |
| 1111 | return false; |
| 1112 | } |
| 1113 | } |
| 1114 | |
| 1115 | const ::google::protobuf::EnumDescriptor* SensorStatus_descriptor() { |
| 1116 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1117 | return file_level_enum_descriptors_dmi_2fhw_2eproto[13]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1118 | } |
| 1119 | bool SensorStatus_IsValid(int value) { |
| 1120 | switch (value) { |
| 1121 | case 0: |
| 1122 | case 1: |
| 1123 | case 2: |
| 1124 | case 3: |
| 1125 | return true; |
| 1126 | default: |
| 1127 | return false; |
| 1128 | } |
| 1129 | } |
| 1130 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1131 | const ::google::protobuf::EnumDescriptor* TransceiverType_descriptor() { |
| 1132 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_2eproto); |
| 1133 | return file_level_enum_descriptors_dmi_2fhw_2eproto[14]; |
| 1134 | } |
| 1135 | bool TransceiverType_IsValid(int value) { |
| 1136 | switch (value) { |
| 1137 | case 0: |
| 1138 | case 1: |
| 1139 | case 2: |
| 1140 | case 3: |
| 1141 | case 4: |
| 1142 | case 5: |
| 1143 | case 6: |
| 1144 | case 7: |
amit.ghosh | ecfad5d | 2022-03-17 13:37:14 +0100 | [diff] [blame] | 1145 | case 8: |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1146 | case 255: |
| 1147 | return true; |
| 1148 | default: |
| 1149 | return false; |
| 1150 | } |
| 1151 | } |
| 1152 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1153 | |
| 1154 | // =================================================================== |
| 1155 | |
| 1156 | void Uuid::InitAsDefaultInstance() { |
| 1157 | } |
| 1158 | class Uuid::HasBitSetters { |
| 1159 | public: |
| 1160 | }; |
| 1161 | |
| 1162 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1163 | const int Uuid::kUuidFieldNumber; |
| 1164 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1165 | |
| 1166 | Uuid::Uuid() |
| 1167 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1168 | SharedCtor(); |
| 1169 | // @@protoc_insertion_point(constructor:dmi.Uuid) |
| 1170 | } |
| 1171 | Uuid::Uuid(const Uuid& from) |
| 1172 | : ::google::protobuf::Message(), |
| 1173 | _internal_metadata_(nullptr) { |
| 1174 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1175 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1176 | if (from.uuid().size() > 0) { |
| 1177 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
| 1178 | } |
| 1179 | // @@protoc_insertion_point(copy_constructor:dmi.Uuid) |
| 1180 | } |
| 1181 | |
| 1182 | void Uuid::SharedCtor() { |
| 1183 | ::google::protobuf::internal::InitSCC( |
| 1184 | &scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 1185 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1186 | } |
| 1187 | |
| 1188 | Uuid::~Uuid() { |
| 1189 | // @@protoc_insertion_point(destructor:dmi.Uuid) |
| 1190 | SharedDtor(); |
| 1191 | } |
| 1192 | |
| 1193 | void Uuid::SharedDtor() { |
| 1194 | uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1195 | } |
| 1196 | |
| 1197 | void Uuid::SetCachedSize(int size) const { |
| 1198 | _cached_size_.Set(size); |
| 1199 | } |
| 1200 | const Uuid& Uuid::default_instance() { |
| 1201 | ::google::protobuf::internal::InitSCC(&::scc_info_Uuid_dmi_2fhw_2eproto.base); |
| 1202 | return *internal_default_instance(); |
| 1203 | } |
| 1204 | |
| 1205 | |
| 1206 | void Uuid::Clear() { |
| 1207 | // @@protoc_insertion_point(message_clear_start:dmi.Uuid) |
| 1208 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1209 | // Prevent compiler warnings about cached_has_bits being unused |
| 1210 | (void) cached_has_bits; |
| 1211 | |
| 1212 | uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1213 | _internal_metadata_.Clear(); |
| 1214 | } |
| 1215 | |
| 1216 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1217 | const char* Uuid::_InternalParse(const char* begin, const char* end, void* object, |
| 1218 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1219 | auto msg = static_cast<Uuid*>(object); |
| 1220 | ::google::protobuf::int32 size; (void)size; |
| 1221 | int depth; (void)depth; |
| 1222 | ::google::protobuf::uint32 tag; |
| 1223 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1224 | auto ptr = begin; |
| 1225 | while (ptr < end) { |
| 1226 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1227 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1228 | switch (tag >> 3) { |
| 1229 | // string uuid = 1; |
| 1230 | case 1: { |
| 1231 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1232 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1233 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1234 | ctx->extra_parse_data().SetFieldName("dmi.Uuid.uuid"); |
| 1235 | object = msg->mutable_uuid(); |
| 1236 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1237 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1238 | goto string_till_end; |
| 1239 | } |
| 1240 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1241 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1242 | ptr += size; |
| 1243 | break; |
| 1244 | } |
| 1245 | default: { |
| 1246 | handle_unusual: |
| 1247 | if ((tag & 7) == 4 || tag == 0) { |
| 1248 | ctx->EndGroup(tag); |
| 1249 | return ptr; |
| 1250 | } |
| 1251 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1252 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1253 | ptr = res.first; |
| 1254 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1255 | if (res.second) return ptr; |
| 1256 | } |
| 1257 | } // switch |
| 1258 | } // while |
| 1259 | return ptr; |
| 1260 | string_till_end: |
| 1261 | static_cast<::std::string*>(object)->clear(); |
| 1262 | static_cast<::std::string*>(object)->reserve(size); |
| 1263 | goto len_delim_till_end; |
| 1264 | len_delim_till_end: |
| 1265 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1266 | {parser_till_end, object}, size); |
| 1267 | } |
| 1268 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1269 | bool Uuid::MergePartialFromCodedStream( |
| 1270 | ::google::protobuf::io::CodedInputStream* input) { |
| 1271 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1272 | ::google::protobuf::uint32 tag; |
| 1273 | // @@protoc_insertion_point(parse_start:dmi.Uuid) |
| 1274 | for (;;) { |
| 1275 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1276 | tag = p.first; |
| 1277 | if (!p.second) goto handle_unusual; |
| 1278 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1279 | // string uuid = 1; |
| 1280 | case 1: { |
| 1281 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1282 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1283 | input, this->mutable_uuid())); |
| 1284 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1285 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1286 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1287 | "dmi.Uuid.uuid")); |
| 1288 | } else { |
| 1289 | goto handle_unusual; |
| 1290 | } |
| 1291 | break; |
| 1292 | } |
| 1293 | |
| 1294 | default: { |
| 1295 | handle_unusual: |
| 1296 | if (tag == 0) { |
| 1297 | goto success; |
| 1298 | } |
| 1299 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1300 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1301 | break; |
| 1302 | } |
| 1303 | } |
| 1304 | } |
| 1305 | success: |
| 1306 | // @@protoc_insertion_point(parse_success:dmi.Uuid) |
| 1307 | return true; |
| 1308 | failure: |
| 1309 | // @@protoc_insertion_point(parse_failure:dmi.Uuid) |
| 1310 | return false; |
| 1311 | #undef DO_ |
| 1312 | } |
| 1313 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1314 | |
| 1315 | void Uuid::SerializeWithCachedSizes( |
| 1316 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1317 | // @@protoc_insertion_point(serialize_start:dmi.Uuid) |
| 1318 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1319 | (void) cached_has_bits; |
| 1320 | |
| 1321 | // string uuid = 1; |
| 1322 | if (this->uuid().size() > 0) { |
| 1323 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1324 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1325 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1326 | "dmi.Uuid.uuid"); |
| 1327 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1328 | 1, this->uuid(), output); |
| 1329 | } |
| 1330 | |
| 1331 | if (_internal_metadata_.have_unknown_fields()) { |
| 1332 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1333 | _internal_metadata_.unknown_fields(), output); |
| 1334 | } |
| 1335 | // @@protoc_insertion_point(serialize_end:dmi.Uuid) |
| 1336 | } |
| 1337 | |
| 1338 | ::google::protobuf::uint8* Uuid::InternalSerializeWithCachedSizesToArray( |
| 1339 | ::google::protobuf::uint8* target) const { |
| 1340 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Uuid) |
| 1341 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1342 | (void) cached_has_bits; |
| 1343 | |
| 1344 | // string uuid = 1; |
| 1345 | if (this->uuid().size() > 0) { |
| 1346 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1347 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
| 1348 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1349 | "dmi.Uuid.uuid"); |
| 1350 | target = |
| 1351 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1352 | 1, this->uuid(), target); |
| 1353 | } |
| 1354 | |
| 1355 | if (_internal_metadata_.have_unknown_fields()) { |
| 1356 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1357 | _internal_metadata_.unknown_fields(), target); |
| 1358 | } |
| 1359 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Uuid) |
| 1360 | return target; |
| 1361 | } |
| 1362 | |
| 1363 | size_t Uuid::ByteSizeLong() const { |
| 1364 | // @@protoc_insertion_point(message_byte_size_start:dmi.Uuid) |
| 1365 | size_t total_size = 0; |
| 1366 | |
| 1367 | if (_internal_metadata_.have_unknown_fields()) { |
| 1368 | total_size += |
| 1369 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1370 | _internal_metadata_.unknown_fields()); |
| 1371 | } |
| 1372 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1373 | // Prevent compiler warnings about cached_has_bits being unused |
| 1374 | (void) cached_has_bits; |
| 1375 | |
| 1376 | // string uuid = 1; |
| 1377 | if (this->uuid().size() > 0) { |
| 1378 | total_size += 1 + |
| 1379 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1380 | this->uuid()); |
| 1381 | } |
| 1382 | |
| 1383 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1384 | SetCachedSize(cached_size); |
| 1385 | return total_size; |
| 1386 | } |
| 1387 | |
| 1388 | void Uuid::MergeFrom(const ::google::protobuf::Message& from) { |
| 1389 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Uuid) |
| 1390 | GOOGLE_DCHECK_NE(&from, this); |
| 1391 | const Uuid* source = |
| 1392 | ::google::protobuf::DynamicCastToGenerated<Uuid>( |
| 1393 | &from); |
| 1394 | if (source == nullptr) { |
| 1395 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uuid) |
| 1396 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1397 | } else { |
| 1398 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uuid) |
| 1399 | MergeFrom(*source); |
| 1400 | } |
| 1401 | } |
| 1402 | |
| 1403 | void Uuid::MergeFrom(const Uuid& from) { |
| 1404 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uuid) |
| 1405 | GOOGLE_DCHECK_NE(&from, this); |
| 1406 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1407 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1408 | (void) cached_has_bits; |
| 1409 | |
| 1410 | if (from.uuid().size() > 0) { |
| 1411 | |
| 1412 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
| 1413 | } |
| 1414 | } |
| 1415 | |
| 1416 | void Uuid::CopyFrom(const ::google::protobuf::Message& from) { |
| 1417 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Uuid) |
| 1418 | if (&from == this) return; |
| 1419 | Clear(); |
| 1420 | MergeFrom(from); |
| 1421 | } |
| 1422 | |
| 1423 | void Uuid::CopyFrom(const Uuid& from) { |
| 1424 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uuid) |
| 1425 | if (&from == this) return; |
| 1426 | Clear(); |
| 1427 | MergeFrom(from); |
| 1428 | } |
| 1429 | |
| 1430 | bool Uuid::IsInitialized() const { |
| 1431 | return true; |
| 1432 | } |
| 1433 | |
| 1434 | void Uuid::Swap(Uuid* other) { |
| 1435 | if (other == this) return; |
| 1436 | InternalSwap(other); |
| 1437 | } |
| 1438 | void Uuid::InternalSwap(Uuid* other) { |
| 1439 | using std::swap; |
| 1440 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1441 | uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1442 | GetArenaNoVirtual()); |
| 1443 | } |
| 1444 | |
| 1445 | ::google::protobuf::Metadata Uuid::GetMetadata() const { |
| 1446 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 1447 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 1448 | } |
| 1449 | |
| 1450 | |
| 1451 | // =================================================================== |
| 1452 | |
| 1453 | void HardwareID::InitAsDefaultInstance() { |
| 1454 | ::dmi::_HardwareID_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>( |
| 1455 | ::dmi::Uuid::internal_default_instance()); |
| 1456 | } |
| 1457 | class HardwareID::HasBitSetters { |
| 1458 | public: |
| 1459 | static const ::dmi::Uuid& uuid(const HardwareID* msg); |
| 1460 | }; |
| 1461 | |
| 1462 | const ::dmi::Uuid& |
| 1463 | HardwareID::HasBitSetters::uuid(const HardwareID* msg) { |
| 1464 | return *msg->uuid_; |
| 1465 | } |
| 1466 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1467 | const int HardwareID::kUuidFieldNumber; |
| 1468 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1469 | |
| 1470 | HardwareID::HardwareID() |
| 1471 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1472 | SharedCtor(); |
| 1473 | // @@protoc_insertion_point(constructor:dmi.HardwareID) |
| 1474 | } |
| 1475 | HardwareID::HardwareID(const HardwareID& from) |
| 1476 | : ::google::protobuf::Message(), |
| 1477 | _internal_metadata_(nullptr) { |
| 1478 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1479 | if (from.has_uuid()) { |
| 1480 | uuid_ = new ::dmi::Uuid(*from.uuid_); |
| 1481 | } else { |
| 1482 | uuid_ = nullptr; |
| 1483 | } |
| 1484 | // @@protoc_insertion_point(copy_constructor:dmi.HardwareID) |
| 1485 | } |
| 1486 | |
| 1487 | void HardwareID::SharedCtor() { |
| 1488 | ::google::protobuf::internal::InitSCC( |
| 1489 | &scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 1490 | uuid_ = nullptr; |
| 1491 | } |
| 1492 | |
| 1493 | HardwareID::~HardwareID() { |
| 1494 | // @@protoc_insertion_point(destructor:dmi.HardwareID) |
| 1495 | SharedDtor(); |
| 1496 | } |
| 1497 | |
| 1498 | void HardwareID::SharedDtor() { |
| 1499 | if (this != internal_default_instance()) delete uuid_; |
| 1500 | } |
| 1501 | |
| 1502 | void HardwareID::SetCachedSize(int size) const { |
| 1503 | _cached_size_.Set(size); |
| 1504 | } |
| 1505 | const HardwareID& HardwareID::default_instance() { |
| 1506 | ::google::protobuf::internal::InitSCC(&::scc_info_HardwareID_dmi_2fhw_2eproto.base); |
| 1507 | return *internal_default_instance(); |
| 1508 | } |
| 1509 | |
| 1510 | |
| 1511 | void HardwareID::Clear() { |
| 1512 | // @@protoc_insertion_point(message_clear_start:dmi.HardwareID) |
| 1513 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1514 | // Prevent compiler warnings about cached_has_bits being unused |
| 1515 | (void) cached_has_bits; |
| 1516 | |
| 1517 | if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) { |
| 1518 | delete uuid_; |
| 1519 | } |
| 1520 | uuid_ = nullptr; |
| 1521 | _internal_metadata_.Clear(); |
| 1522 | } |
| 1523 | |
| 1524 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1525 | const char* HardwareID::_InternalParse(const char* begin, const char* end, void* object, |
| 1526 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1527 | auto msg = static_cast<HardwareID*>(object); |
| 1528 | ::google::protobuf::int32 size; (void)size; |
| 1529 | int depth; (void)depth; |
| 1530 | ::google::protobuf::uint32 tag; |
| 1531 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1532 | auto ptr = begin; |
| 1533 | while (ptr < end) { |
| 1534 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1535 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1536 | switch (tag >> 3) { |
| 1537 | // .dmi.Uuid uuid = 1; |
| 1538 | case 1: { |
| 1539 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1540 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1541 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1542 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1543 | object = msg->mutable_uuid(); |
| 1544 | if (size > end - ptr) goto len_delim_till_end; |
| 1545 | ptr += size; |
| 1546 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1547 | {parser_till_end, object}, ptr - size, ptr)); |
| 1548 | break; |
| 1549 | } |
| 1550 | default: { |
| 1551 | handle_unusual: |
| 1552 | if ((tag & 7) == 4 || tag == 0) { |
| 1553 | ctx->EndGroup(tag); |
| 1554 | return ptr; |
| 1555 | } |
| 1556 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1557 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1558 | ptr = res.first; |
| 1559 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1560 | if (res.second) return ptr; |
| 1561 | } |
| 1562 | } // switch |
| 1563 | } // while |
| 1564 | return ptr; |
| 1565 | len_delim_till_end: |
| 1566 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1567 | {parser_till_end, object}, size); |
| 1568 | } |
| 1569 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1570 | bool HardwareID::MergePartialFromCodedStream( |
| 1571 | ::google::protobuf::io::CodedInputStream* input) { |
| 1572 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1573 | ::google::protobuf::uint32 tag; |
| 1574 | // @@protoc_insertion_point(parse_start:dmi.HardwareID) |
| 1575 | for (;;) { |
| 1576 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1577 | tag = p.first; |
| 1578 | if (!p.second) goto handle_unusual; |
| 1579 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1580 | // .dmi.Uuid uuid = 1; |
| 1581 | case 1: { |
| 1582 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1583 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1584 | input, mutable_uuid())); |
| 1585 | } else { |
| 1586 | goto handle_unusual; |
| 1587 | } |
| 1588 | break; |
| 1589 | } |
| 1590 | |
| 1591 | default: { |
| 1592 | handle_unusual: |
| 1593 | if (tag == 0) { |
| 1594 | goto success; |
| 1595 | } |
| 1596 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1597 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1598 | break; |
| 1599 | } |
| 1600 | } |
| 1601 | } |
| 1602 | success: |
| 1603 | // @@protoc_insertion_point(parse_success:dmi.HardwareID) |
| 1604 | return true; |
| 1605 | failure: |
| 1606 | // @@protoc_insertion_point(parse_failure:dmi.HardwareID) |
| 1607 | return false; |
| 1608 | #undef DO_ |
| 1609 | } |
| 1610 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1611 | |
| 1612 | void HardwareID::SerializeWithCachedSizes( |
| 1613 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1614 | // @@protoc_insertion_point(serialize_start:dmi.HardwareID) |
| 1615 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1616 | (void) cached_has_bits; |
| 1617 | |
| 1618 | // .dmi.Uuid uuid = 1; |
| 1619 | if (this->has_uuid()) { |
| 1620 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1621 | 1, HasBitSetters::uuid(this), output); |
| 1622 | } |
| 1623 | |
| 1624 | if (_internal_metadata_.have_unknown_fields()) { |
| 1625 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1626 | _internal_metadata_.unknown_fields(), output); |
| 1627 | } |
| 1628 | // @@protoc_insertion_point(serialize_end:dmi.HardwareID) |
| 1629 | } |
| 1630 | |
| 1631 | ::google::protobuf::uint8* HardwareID::InternalSerializeWithCachedSizesToArray( |
| 1632 | ::google::protobuf::uint8* target) const { |
| 1633 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HardwareID) |
| 1634 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1635 | (void) cached_has_bits; |
| 1636 | |
| 1637 | // .dmi.Uuid uuid = 1; |
| 1638 | if (this->has_uuid()) { |
| 1639 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1640 | InternalWriteMessageToArray( |
| 1641 | 1, HasBitSetters::uuid(this), target); |
| 1642 | } |
| 1643 | |
| 1644 | if (_internal_metadata_.have_unknown_fields()) { |
| 1645 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1646 | _internal_metadata_.unknown_fields(), target); |
| 1647 | } |
| 1648 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HardwareID) |
| 1649 | return target; |
| 1650 | } |
| 1651 | |
| 1652 | size_t HardwareID::ByteSizeLong() const { |
| 1653 | // @@protoc_insertion_point(message_byte_size_start:dmi.HardwareID) |
| 1654 | size_t total_size = 0; |
| 1655 | |
| 1656 | if (_internal_metadata_.have_unknown_fields()) { |
| 1657 | total_size += |
| 1658 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1659 | _internal_metadata_.unknown_fields()); |
| 1660 | } |
| 1661 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1662 | // Prevent compiler warnings about cached_has_bits being unused |
| 1663 | (void) cached_has_bits; |
| 1664 | |
| 1665 | // .dmi.Uuid uuid = 1; |
| 1666 | if (this->has_uuid()) { |
| 1667 | total_size += 1 + |
| 1668 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1669 | *uuid_); |
| 1670 | } |
| 1671 | |
| 1672 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1673 | SetCachedSize(cached_size); |
| 1674 | return total_size; |
| 1675 | } |
| 1676 | |
| 1677 | void HardwareID::MergeFrom(const ::google::protobuf::Message& from) { |
| 1678 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HardwareID) |
| 1679 | GOOGLE_DCHECK_NE(&from, this); |
| 1680 | const HardwareID* source = |
| 1681 | ::google::protobuf::DynamicCastToGenerated<HardwareID>( |
| 1682 | &from); |
| 1683 | if (source == nullptr) { |
| 1684 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HardwareID) |
| 1685 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1686 | } else { |
| 1687 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HardwareID) |
| 1688 | MergeFrom(*source); |
| 1689 | } |
| 1690 | } |
| 1691 | |
| 1692 | void HardwareID::MergeFrom(const HardwareID& from) { |
| 1693 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HardwareID) |
| 1694 | GOOGLE_DCHECK_NE(&from, this); |
| 1695 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1696 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1697 | (void) cached_has_bits; |
| 1698 | |
| 1699 | if (from.has_uuid()) { |
| 1700 | mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid()); |
| 1701 | } |
| 1702 | } |
| 1703 | |
| 1704 | void HardwareID::CopyFrom(const ::google::protobuf::Message& from) { |
| 1705 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HardwareID) |
| 1706 | if (&from == this) return; |
| 1707 | Clear(); |
| 1708 | MergeFrom(from); |
| 1709 | } |
| 1710 | |
| 1711 | void HardwareID::CopyFrom(const HardwareID& from) { |
| 1712 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HardwareID) |
| 1713 | if (&from == this) return; |
| 1714 | Clear(); |
| 1715 | MergeFrom(from); |
| 1716 | } |
| 1717 | |
| 1718 | bool HardwareID::IsInitialized() const { |
| 1719 | return true; |
| 1720 | } |
| 1721 | |
| 1722 | void HardwareID::Swap(HardwareID* other) { |
| 1723 | if (other == this) return; |
| 1724 | InternalSwap(other); |
| 1725 | } |
| 1726 | void HardwareID::InternalSwap(HardwareID* other) { |
| 1727 | using std::swap; |
| 1728 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1729 | swap(uuid_, other->uuid_); |
| 1730 | } |
| 1731 | |
| 1732 | ::google::protobuf::Metadata HardwareID::GetMetadata() const { |
| 1733 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 1734 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 1735 | } |
| 1736 | |
| 1737 | |
| 1738 | // =================================================================== |
| 1739 | |
| 1740 | void Uri::InitAsDefaultInstance() { |
| 1741 | } |
| 1742 | class Uri::HasBitSetters { |
| 1743 | public: |
| 1744 | }; |
| 1745 | |
| 1746 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1747 | const int Uri::kUriFieldNumber; |
| 1748 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1749 | |
| 1750 | Uri::Uri() |
| 1751 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1752 | SharedCtor(); |
| 1753 | // @@protoc_insertion_point(constructor:dmi.Uri) |
| 1754 | } |
| 1755 | Uri::Uri(const Uri& from) |
| 1756 | : ::google::protobuf::Message(), |
| 1757 | _internal_metadata_(nullptr) { |
| 1758 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1759 | uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1760 | if (from.uri().size() > 0) { |
| 1761 | uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); |
| 1762 | } |
| 1763 | // @@protoc_insertion_point(copy_constructor:dmi.Uri) |
| 1764 | } |
| 1765 | |
| 1766 | void Uri::SharedCtor() { |
| 1767 | ::google::protobuf::internal::InitSCC( |
| 1768 | &scc_info_Uri_dmi_2fhw_2eproto.base); |
| 1769 | uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1770 | } |
| 1771 | |
| 1772 | Uri::~Uri() { |
| 1773 | // @@protoc_insertion_point(destructor:dmi.Uri) |
| 1774 | SharedDtor(); |
| 1775 | } |
| 1776 | |
| 1777 | void Uri::SharedDtor() { |
| 1778 | uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1779 | } |
| 1780 | |
| 1781 | void Uri::SetCachedSize(int size) const { |
| 1782 | _cached_size_.Set(size); |
| 1783 | } |
| 1784 | const Uri& Uri::default_instance() { |
| 1785 | ::google::protobuf::internal::InitSCC(&::scc_info_Uri_dmi_2fhw_2eproto.base); |
| 1786 | return *internal_default_instance(); |
| 1787 | } |
| 1788 | |
| 1789 | |
| 1790 | void Uri::Clear() { |
| 1791 | // @@protoc_insertion_point(message_clear_start:dmi.Uri) |
| 1792 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1793 | // Prevent compiler warnings about cached_has_bits being unused |
| 1794 | (void) cached_has_bits; |
| 1795 | |
| 1796 | uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1797 | _internal_metadata_.Clear(); |
| 1798 | } |
| 1799 | |
| 1800 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1801 | const char* Uri::_InternalParse(const char* begin, const char* end, void* object, |
| 1802 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1803 | auto msg = static_cast<Uri*>(object); |
| 1804 | ::google::protobuf::int32 size; (void)size; |
| 1805 | int depth; (void)depth; |
| 1806 | ::google::protobuf::uint32 tag; |
| 1807 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1808 | auto ptr = begin; |
| 1809 | while (ptr < end) { |
| 1810 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1811 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1812 | switch (tag >> 3) { |
| 1813 | // string uri = 1; |
| 1814 | case 1: { |
| 1815 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1816 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1817 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1818 | ctx->extra_parse_data().SetFieldName("dmi.Uri.uri"); |
| 1819 | object = msg->mutable_uri(); |
| 1820 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1821 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1822 | goto string_till_end; |
| 1823 | } |
| 1824 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1825 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1826 | ptr += size; |
| 1827 | break; |
| 1828 | } |
| 1829 | default: { |
| 1830 | handle_unusual: |
| 1831 | if ((tag & 7) == 4 || tag == 0) { |
| 1832 | ctx->EndGroup(tag); |
| 1833 | return ptr; |
| 1834 | } |
| 1835 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1836 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1837 | ptr = res.first; |
| 1838 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1839 | if (res.second) return ptr; |
| 1840 | } |
| 1841 | } // switch |
| 1842 | } // while |
| 1843 | return ptr; |
| 1844 | string_till_end: |
| 1845 | static_cast<::std::string*>(object)->clear(); |
| 1846 | static_cast<::std::string*>(object)->reserve(size); |
| 1847 | goto len_delim_till_end; |
| 1848 | len_delim_till_end: |
| 1849 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1850 | {parser_till_end, object}, size); |
| 1851 | } |
| 1852 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1853 | bool Uri::MergePartialFromCodedStream( |
| 1854 | ::google::protobuf::io::CodedInputStream* input) { |
| 1855 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1856 | ::google::protobuf::uint32 tag; |
| 1857 | // @@protoc_insertion_point(parse_start:dmi.Uri) |
| 1858 | for (;;) { |
| 1859 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1860 | tag = p.first; |
| 1861 | if (!p.second) goto handle_unusual; |
| 1862 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1863 | // string uri = 1; |
| 1864 | case 1: { |
| 1865 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1866 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1867 | input, this->mutable_uri())); |
| 1868 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1869 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1870 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1871 | "dmi.Uri.uri")); |
| 1872 | } else { |
| 1873 | goto handle_unusual; |
| 1874 | } |
| 1875 | break; |
| 1876 | } |
| 1877 | |
| 1878 | default: { |
| 1879 | handle_unusual: |
| 1880 | if (tag == 0) { |
| 1881 | goto success; |
| 1882 | } |
| 1883 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1884 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1885 | break; |
| 1886 | } |
| 1887 | } |
| 1888 | } |
| 1889 | success: |
| 1890 | // @@protoc_insertion_point(parse_success:dmi.Uri) |
| 1891 | return true; |
| 1892 | failure: |
| 1893 | // @@protoc_insertion_point(parse_failure:dmi.Uri) |
| 1894 | return false; |
| 1895 | #undef DO_ |
| 1896 | } |
| 1897 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1898 | |
| 1899 | void Uri::SerializeWithCachedSizes( |
| 1900 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1901 | // @@protoc_insertion_point(serialize_start:dmi.Uri) |
| 1902 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1903 | (void) cached_has_bits; |
| 1904 | |
| 1905 | // string uri = 1; |
| 1906 | if (this->uri().size() > 0) { |
| 1907 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1908 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1909 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1910 | "dmi.Uri.uri"); |
| 1911 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1912 | 1, this->uri(), output); |
| 1913 | } |
| 1914 | |
| 1915 | if (_internal_metadata_.have_unknown_fields()) { |
| 1916 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1917 | _internal_metadata_.unknown_fields(), output); |
| 1918 | } |
| 1919 | // @@protoc_insertion_point(serialize_end:dmi.Uri) |
| 1920 | } |
| 1921 | |
| 1922 | ::google::protobuf::uint8* Uri::InternalSerializeWithCachedSizesToArray( |
| 1923 | ::google::protobuf::uint8* target) const { |
| 1924 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Uri) |
| 1925 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1926 | (void) cached_has_bits; |
| 1927 | |
| 1928 | // string uri = 1; |
| 1929 | if (this->uri().size() > 0) { |
| 1930 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1931 | this->uri().data(), static_cast<int>(this->uri().length()), |
| 1932 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1933 | "dmi.Uri.uri"); |
| 1934 | target = |
| 1935 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1936 | 1, this->uri(), target); |
| 1937 | } |
| 1938 | |
| 1939 | if (_internal_metadata_.have_unknown_fields()) { |
| 1940 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1941 | _internal_metadata_.unknown_fields(), target); |
| 1942 | } |
| 1943 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Uri) |
| 1944 | return target; |
| 1945 | } |
| 1946 | |
| 1947 | size_t Uri::ByteSizeLong() const { |
| 1948 | // @@protoc_insertion_point(message_byte_size_start:dmi.Uri) |
| 1949 | size_t total_size = 0; |
| 1950 | |
| 1951 | if (_internal_metadata_.have_unknown_fields()) { |
| 1952 | total_size += |
| 1953 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1954 | _internal_metadata_.unknown_fields()); |
| 1955 | } |
| 1956 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1957 | // Prevent compiler warnings about cached_has_bits being unused |
| 1958 | (void) cached_has_bits; |
| 1959 | |
| 1960 | // string uri = 1; |
| 1961 | if (this->uri().size() > 0) { |
| 1962 | total_size += 1 + |
| 1963 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1964 | this->uri()); |
| 1965 | } |
| 1966 | |
| 1967 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1968 | SetCachedSize(cached_size); |
| 1969 | return total_size; |
| 1970 | } |
| 1971 | |
| 1972 | void Uri::MergeFrom(const ::google::protobuf::Message& from) { |
| 1973 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Uri) |
| 1974 | GOOGLE_DCHECK_NE(&from, this); |
| 1975 | const Uri* source = |
| 1976 | ::google::protobuf::DynamicCastToGenerated<Uri>( |
| 1977 | &from); |
| 1978 | if (source == nullptr) { |
| 1979 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Uri) |
| 1980 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1981 | } else { |
| 1982 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Uri) |
| 1983 | MergeFrom(*source); |
| 1984 | } |
| 1985 | } |
| 1986 | |
| 1987 | void Uri::MergeFrom(const Uri& from) { |
| 1988 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Uri) |
| 1989 | GOOGLE_DCHECK_NE(&from, this); |
| 1990 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1991 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1992 | (void) cached_has_bits; |
| 1993 | |
| 1994 | if (from.uri().size() > 0) { |
| 1995 | |
| 1996 | uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); |
| 1997 | } |
| 1998 | } |
| 1999 | |
| 2000 | void Uri::CopyFrom(const ::google::protobuf::Message& from) { |
| 2001 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Uri) |
| 2002 | if (&from == this) return; |
| 2003 | Clear(); |
| 2004 | MergeFrom(from); |
| 2005 | } |
| 2006 | |
| 2007 | void Uri::CopyFrom(const Uri& from) { |
| 2008 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Uri) |
| 2009 | if (&from == this) return; |
| 2010 | Clear(); |
| 2011 | MergeFrom(from); |
| 2012 | } |
| 2013 | |
| 2014 | bool Uri::IsInitialized() const { |
| 2015 | return true; |
| 2016 | } |
| 2017 | |
| 2018 | void Uri::Swap(Uri* other) { |
| 2019 | if (other == this) return; |
| 2020 | InternalSwap(other); |
| 2021 | } |
| 2022 | void Uri::InternalSwap(Uri* other) { |
| 2023 | using std::swap; |
| 2024 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2025 | uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2026 | GetArenaNoVirtual()); |
| 2027 | } |
| 2028 | |
| 2029 | ::google::protobuf::Metadata Uri::GetMetadata() const { |
| 2030 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 2031 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 2032 | } |
| 2033 | |
| 2034 | |
| 2035 | // =================================================================== |
| 2036 | |
| 2037 | void ComponentState::InitAsDefaultInstance() { |
| 2038 | ::dmi::_ComponentState_default_instance_._instance.get_mutable()->state_last_changed_ = const_cast< ::google::protobuf::Timestamp*>( |
| 2039 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 2040 | } |
| 2041 | class ComponentState::HasBitSetters { |
| 2042 | public: |
| 2043 | static const ::google::protobuf::Timestamp& state_last_changed(const ComponentState* msg); |
| 2044 | }; |
| 2045 | |
| 2046 | const ::google::protobuf::Timestamp& |
| 2047 | ComponentState::HasBitSetters::state_last_changed(const ComponentState* msg) { |
| 2048 | return *msg->state_last_changed_; |
| 2049 | } |
| 2050 | void ComponentState::clear_state_last_changed() { |
| 2051 | if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) { |
| 2052 | delete state_last_changed_; |
| 2053 | } |
| 2054 | state_last_changed_ = nullptr; |
| 2055 | } |
| 2056 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2057 | const int ComponentState::kStateLastChangedFieldNumber; |
| 2058 | const int ComponentState::kAdminStateFieldNumber; |
| 2059 | const int ComponentState::kOperStateFieldNumber; |
| 2060 | const int ComponentState::kUsageStateFieldNumber; |
| 2061 | const int ComponentState::kAlarmStateFieldNumber; |
| 2062 | const int ComponentState::kStandbyStateFieldNumber; |
| 2063 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2064 | |
| 2065 | ComponentState::ComponentState() |
| 2066 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2067 | SharedCtor(); |
| 2068 | // @@protoc_insertion_point(constructor:dmi.ComponentState) |
| 2069 | } |
| 2070 | ComponentState::ComponentState(const ComponentState& from) |
| 2071 | : ::google::protobuf::Message(), |
| 2072 | _internal_metadata_(nullptr) { |
| 2073 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2074 | if (from.has_state_last_changed()) { |
| 2075 | state_last_changed_ = new ::google::protobuf::Timestamp(*from.state_last_changed_); |
| 2076 | } else { |
| 2077 | state_last_changed_ = nullptr; |
| 2078 | } |
| 2079 | ::memcpy(&admin_state_, &from.admin_state_, |
| 2080 | static_cast<size_t>(reinterpret_cast<char*>(&standby_state_) - |
| 2081 | reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_)); |
| 2082 | // @@protoc_insertion_point(copy_constructor:dmi.ComponentState) |
| 2083 | } |
| 2084 | |
| 2085 | void ComponentState::SharedCtor() { |
| 2086 | ::google::protobuf::internal::InitSCC( |
| 2087 | &scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 2088 | ::memset(&state_last_changed_, 0, static_cast<size_t>( |
| 2089 | reinterpret_cast<char*>(&standby_state_) - |
| 2090 | reinterpret_cast<char*>(&state_last_changed_)) + sizeof(standby_state_)); |
| 2091 | } |
| 2092 | |
| 2093 | ComponentState::~ComponentState() { |
| 2094 | // @@protoc_insertion_point(destructor:dmi.ComponentState) |
| 2095 | SharedDtor(); |
| 2096 | } |
| 2097 | |
| 2098 | void ComponentState::SharedDtor() { |
| 2099 | if (this != internal_default_instance()) delete state_last_changed_; |
| 2100 | } |
| 2101 | |
| 2102 | void ComponentState::SetCachedSize(int size) const { |
| 2103 | _cached_size_.Set(size); |
| 2104 | } |
| 2105 | const ComponentState& ComponentState::default_instance() { |
| 2106 | ::google::protobuf::internal::InitSCC(&::scc_info_ComponentState_dmi_2fhw_2eproto.base); |
| 2107 | return *internal_default_instance(); |
| 2108 | } |
| 2109 | |
| 2110 | |
| 2111 | void ComponentState::Clear() { |
| 2112 | // @@protoc_insertion_point(message_clear_start:dmi.ComponentState) |
| 2113 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2114 | // Prevent compiler warnings about cached_has_bits being unused |
| 2115 | (void) cached_has_bits; |
| 2116 | |
| 2117 | if (GetArenaNoVirtual() == nullptr && state_last_changed_ != nullptr) { |
| 2118 | delete state_last_changed_; |
| 2119 | } |
| 2120 | state_last_changed_ = nullptr; |
| 2121 | ::memset(&admin_state_, 0, static_cast<size_t>( |
| 2122 | reinterpret_cast<char*>(&standby_state_) - |
| 2123 | reinterpret_cast<char*>(&admin_state_)) + sizeof(standby_state_)); |
| 2124 | _internal_metadata_.Clear(); |
| 2125 | } |
| 2126 | |
| 2127 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2128 | const char* ComponentState::_InternalParse(const char* begin, const char* end, void* object, |
| 2129 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2130 | auto msg = static_cast<ComponentState*>(object); |
| 2131 | ::google::protobuf::int32 size; (void)size; |
| 2132 | int depth; (void)depth; |
| 2133 | ::google::protobuf::uint32 tag; |
| 2134 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2135 | auto ptr = begin; |
| 2136 | while (ptr < end) { |
| 2137 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2138 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2139 | switch (tag >> 3) { |
| 2140 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2141 | case 1: { |
| 2142 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2143 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2144 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2145 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 2146 | object = msg->mutable_state_last_changed(); |
| 2147 | if (size > end - ptr) goto len_delim_till_end; |
| 2148 | ptr += size; |
| 2149 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2150 | {parser_till_end, object}, ptr - size, ptr)); |
| 2151 | break; |
| 2152 | } |
| 2153 | // .dmi.ComponentAdminState admin_state = 2; |
| 2154 | case 2: { |
| 2155 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2156 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2157 | msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val)); |
| 2158 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2159 | break; |
| 2160 | } |
| 2161 | // .dmi.ComponentOperState oper_state = 3; |
| 2162 | case 3: { |
| 2163 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 2164 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2165 | msg->set_oper_state(static_cast<::dmi::ComponentOperState>(val)); |
| 2166 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2167 | break; |
| 2168 | } |
| 2169 | // .dmi.ComponentUsageState usage_state = 4; |
| 2170 | case 4: { |
| 2171 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 2172 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2173 | msg->set_usage_state(static_cast<::dmi::ComponentUsageState>(val)); |
| 2174 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2175 | break; |
| 2176 | } |
| 2177 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2178 | case 5: { |
| 2179 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 2180 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2181 | msg->set_alarm_state(static_cast<::dmi::ComponentAlarmState>(val)); |
| 2182 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2183 | break; |
| 2184 | } |
| 2185 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2186 | case 6: { |
| 2187 | if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; |
| 2188 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2189 | msg->set_standby_state(static_cast<::dmi::ComponentStandbyState>(val)); |
| 2190 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2191 | break; |
| 2192 | } |
| 2193 | default: { |
| 2194 | handle_unusual: |
| 2195 | if ((tag & 7) == 4 || tag == 0) { |
| 2196 | ctx->EndGroup(tag); |
| 2197 | return ptr; |
| 2198 | } |
| 2199 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2200 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2201 | ptr = res.first; |
| 2202 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2203 | if (res.second) return ptr; |
| 2204 | } |
| 2205 | } // switch |
| 2206 | } // while |
| 2207 | return ptr; |
| 2208 | len_delim_till_end: |
| 2209 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2210 | {parser_till_end, object}, size); |
| 2211 | } |
| 2212 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2213 | bool ComponentState::MergePartialFromCodedStream( |
| 2214 | ::google::protobuf::io::CodedInputStream* input) { |
| 2215 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2216 | ::google::protobuf::uint32 tag; |
| 2217 | // @@protoc_insertion_point(parse_start:dmi.ComponentState) |
| 2218 | for (;;) { |
| 2219 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2220 | tag = p.first; |
| 2221 | if (!p.second) goto handle_unusual; |
| 2222 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2223 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2224 | case 1: { |
| 2225 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2226 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2227 | input, mutable_state_last_changed())); |
| 2228 | } else { |
| 2229 | goto handle_unusual; |
| 2230 | } |
| 2231 | break; |
| 2232 | } |
| 2233 | |
| 2234 | // .dmi.ComponentAdminState admin_state = 2; |
| 2235 | case 2: { |
| 2236 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2237 | int value = 0; |
| 2238 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2239 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2240 | input, &value))); |
| 2241 | set_admin_state(static_cast< ::dmi::ComponentAdminState >(value)); |
| 2242 | } else { |
| 2243 | goto handle_unusual; |
| 2244 | } |
| 2245 | break; |
| 2246 | } |
| 2247 | |
| 2248 | // .dmi.ComponentOperState oper_state = 3; |
| 2249 | case 3: { |
| 2250 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 2251 | int value = 0; |
| 2252 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2253 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2254 | input, &value))); |
| 2255 | set_oper_state(static_cast< ::dmi::ComponentOperState >(value)); |
| 2256 | } else { |
| 2257 | goto handle_unusual; |
| 2258 | } |
| 2259 | break; |
| 2260 | } |
| 2261 | |
| 2262 | // .dmi.ComponentUsageState usage_state = 4; |
| 2263 | case 4: { |
| 2264 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 2265 | int value = 0; |
| 2266 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2267 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2268 | input, &value))); |
| 2269 | set_usage_state(static_cast< ::dmi::ComponentUsageState >(value)); |
| 2270 | } else { |
| 2271 | goto handle_unusual; |
| 2272 | } |
| 2273 | break; |
| 2274 | } |
| 2275 | |
| 2276 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2277 | case 5: { |
| 2278 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 2279 | int value = 0; |
| 2280 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2281 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2282 | input, &value))); |
| 2283 | set_alarm_state(static_cast< ::dmi::ComponentAlarmState >(value)); |
| 2284 | } else { |
| 2285 | goto handle_unusual; |
| 2286 | } |
| 2287 | break; |
| 2288 | } |
| 2289 | |
| 2290 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2291 | case 6: { |
| 2292 | if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { |
| 2293 | int value = 0; |
| 2294 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2295 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2296 | input, &value))); |
| 2297 | set_standby_state(static_cast< ::dmi::ComponentStandbyState >(value)); |
| 2298 | } else { |
| 2299 | goto handle_unusual; |
| 2300 | } |
| 2301 | break; |
| 2302 | } |
| 2303 | |
| 2304 | default: { |
| 2305 | handle_unusual: |
| 2306 | if (tag == 0) { |
| 2307 | goto success; |
| 2308 | } |
| 2309 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2310 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2311 | break; |
| 2312 | } |
| 2313 | } |
| 2314 | } |
| 2315 | success: |
| 2316 | // @@protoc_insertion_point(parse_success:dmi.ComponentState) |
| 2317 | return true; |
| 2318 | failure: |
| 2319 | // @@protoc_insertion_point(parse_failure:dmi.ComponentState) |
| 2320 | return false; |
| 2321 | #undef DO_ |
| 2322 | } |
| 2323 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2324 | |
| 2325 | void ComponentState::SerializeWithCachedSizes( |
| 2326 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2327 | // @@protoc_insertion_point(serialize_start:dmi.ComponentState) |
| 2328 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2329 | (void) cached_has_bits; |
| 2330 | |
| 2331 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2332 | if (this->has_state_last_changed()) { |
| 2333 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2334 | 1, HasBitSetters::state_last_changed(this), output); |
| 2335 | } |
| 2336 | |
| 2337 | // .dmi.ComponentAdminState admin_state = 2; |
| 2338 | if (this->admin_state() != 0) { |
| 2339 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2340 | 2, this->admin_state(), output); |
| 2341 | } |
| 2342 | |
| 2343 | // .dmi.ComponentOperState oper_state = 3; |
| 2344 | if (this->oper_state() != 0) { |
| 2345 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2346 | 3, this->oper_state(), output); |
| 2347 | } |
| 2348 | |
| 2349 | // .dmi.ComponentUsageState usage_state = 4; |
| 2350 | if (this->usage_state() != 0) { |
| 2351 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2352 | 4, this->usage_state(), output); |
| 2353 | } |
| 2354 | |
| 2355 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2356 | if (this->alarm_state() != 0) { |
| 2357 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2358 | 5, this->alarm_state(), output); |
| 2359 | } |
| 2360 | |
| 2361 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2362 | if (this->standby_state() != 0) { |
| 2363 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2364 | 6, this->standby_state(), output); |
| 2365 | } |
| 2366 | |
| 2367 | if (_internal_metadata_.have_unknown_fields()) { |
| 2368 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2369 | _internal_metadata_.unknown_fields(), output); |
| 2370 | } |
| 2371 | // @@protoc_insertion_point(serialize_end:dmi.ComponentState) |
| 2372 | } |
| 2373 | |
| 2374 | ::google::protobuf::uint8* ComponentState::InternalSerializeWithCachedSizesToArray( |
| 2375 | ::google::protobuf::uint8* target) const { |
| 2376 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentState) |
| 2377 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2378 | (void) cached_has_bits; |
| 2379 | |
| 2380 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2381 | if (this->has_state_last_changed()) { |
| 2382 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2383 | InternalWriteMessageToArray( |
| 2384 | 1, HasBitSetters::state_last_changed(this), target); |
| 2385 | } |
| 2386 | |
| 2387 | // .dmi.ComponentAdminState admin_state = 2; |
| 2388 | if (this->admin_state() != 0) { |
| 2389 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2390 | 2, this->admin_state(), target); |
| 2391 | } |
| 2392 | |
| 2393 | // .dmi.ComponentOperState oper_state = 3; |
| 2394 | if (this->oper_state() != 0) { |
| 2395 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2396 | 3, this->oper_state(), target); |
| 2397 | } |
| 2398 | |
| 2399 | // .dmi.ComponentUsageState usage_state = 4; |
| 2400 | if (this->usage_state() != 0) { |
| 2401 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2402 | 4, this->usage_state(), target); |
| 2403 | } |
| 2404 | |
| 2405 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2406 | if (this->alarm_state() != 0) { |
| 2407 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2408 | 5, this->alarm_state(), target); |
| 2409 | } |
| 2410 | |
| 2411 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2412 | if (this->standby_state() != 0) { |
| 2413 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2414 | 6, this->standby_state(), target); |
| 2415 | } |
| 2416 | |
| 2417 | if (_internal_metadata_.have_unknown_fields()) { |
| 2418 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2419 | _internal_metadata_.unknown_fields(), target); |
| 2420 | } |
| 2421 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentState) |
| 2422 | return target; |
| 2423 | } |
| 2424 | |
| 2425 | size_t ComponentState::ByteSizeLong() const { |
| 2426 | // @@protoc_insertion_point(message_byte_size_start:dmi.ComponentState) |
| 2427 | size_t total_size = 0; |
| 2428 | |
| 2429 | if (_internal_metadata_.have_unknown_fields()) { |
| 2430 | total_size += |
| 2431 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2432 | _internal_metadata_.unknown_fields()); |
| 2433 | } |
| 2434 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2435 | // Prevent compiler warnings about cached_has_bits being unused |
| 2436 | (void) cached_has_bits; |
| 2437 | |
| 2438 | // .google.protobuf.Timestamp state_last_changed = 1; |
| 2439 | if (this->has_state_last_changed()) { |
| 2440 | total_size += 1 + |
| 2441 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2442 | *state_last_changed_); |
| 2443 | } |
| 2444 | |
| 2445 | // .dmi.ComponentAdminState admin_state = 2; |
| 2446 | if (this->admin_state() != 0) { |
| 2447 | total_size += 1 + |
| 2448 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state()); |
| 2449 | } |
| 2450 | |
| 2451 | // .dmi.ComponentOperState oper_state = 3; |
| 2452 | if (this->oper_state() != 0) { |
| 2453 | total_size += 1 + |
| 2454 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->oper_state()); |
| 2455 | } |
| 2456 | |
| 2457 | // .dmi.ComponentUsageState usage_state = 4; |
| 2458 | if (this->usage_state() != 0) { |
| 2459 | total_size += 1 + |
| 2460 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->usage_state()); |
| 2461 | } |
| 2462 | |
| 2463 | // .dmi.ComponentAlarmState alarm_state = 5; |
| 2464 | if (this->alarm_state() != 0) { |
| 2465 | total_size += 1 + |
| 2466 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->alarm_state()); |
| 2467 | } |
| 2468 | |
| 2469 | // .dmi.ComponentStandbyState standby_state = 6; |
| 2470 | if (this->standby_state() != 0) { |
| 2471 | total_size += 1 + |
| 2472 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->standby_state()); |
| 2473 | } |
| 2474 | |
| 2475 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2476 | SetCachedSize(cached_size); |
| 2477 | return total_size; |
| 2478 | } |
| 2479 | |
| 2480 | void ComponentState::MergeFrom(const ::google::protobuf::Message& from) { |
| 2481 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentState) |
| 2482 | GOOGLE_DCHECK_NE(&from, this); |
| 2483 | const ComponentState* source = |
| 2484 | ::google::protobuf::DynamicCastToGenerated<ComponentState>( |
| 2485 | &from); |
| 2486 | if (source == nullptr) { |
| 2487 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentState) |
| 2488 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2489 | } else { |
| 2490 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentState) |
| 2491 | MergeFrom(*source); |
| 2492 | } |
| 2493 | } |
| 2494 | |
| 2495 | void ComponentState::MergeFrom(const ComponentState& from) { |
| 2496 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentState) |
| 2497 | GOOGLE_DCHECK_NE(&from, this); |
| 2498 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2499 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2500 | (void) cached_has_bits; |
| 2501 | |
| 2502 | if (from.has_state_last_changed()) { |
| 2503 | mutable_state_last_changed()->::google::protobuf::Timestamp::MergeFrom(from.state_last_changed()); |
| 2504 | } |
| 2505 | if (from.admin_state() != 0) { |
| 2506 | set_admin_state(from.admin_state()); |
| 2507 | } |
| 2508 | if (from.oper_state() != 0) { |
| 2509 | set_oper_state(from.oper_state()); |
| 2510 | } |
| 2511 | if (from.usage_state() != 0) { |
| 2512 | set_usage_state(from.usage_state()); |
| 2513 | } |
| 2514 | if (from.alarm_state() != 0) { |
| 2515 | set_alarm_state(from.alarm_state()); |
| 2516 | } |
| 2517 | if (from.standby_state() != 0) { |
| 2518 | set_standby_state(from.standby_state()); |
| 2519 | } |
| 2520 | } |
| 2521 | |
| 2522 | void ComponentState::CopyFrom(const ::google::protobuf::Message& from) { |
| 2523 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentState) |
| 2524 | if (&from == this) return; |
| 2525 | Clear(); |
| 2526 | MergeFrom(from); |
| 2527 | } |
| 2528 | |
| 2529 | void ComponentState::CopyFrom(const ComponentState& from) { |
| 2530 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentState) |
| 2531 | if (&from == this) return; |
| 2532 | Clear(); |
| 2533 | MergeFrom(from); |
| 2534 | } |
| 2535 | |
| 2536 | bool ComponentState::IsInitialized() const { |
| 2537 | return true; |
| 2538 | } |
| 2539 | |
| 2540 | void ComponentState::Swap(ComponentState* other) { |
| 2541 | if (other == this) return; |
| 2542 | InternalSwap(other); |
| 2543 | } |
| 2544 | void ComponentState::InternalSwap(ComponentState* other) { |
| 2545 | using std::swap; |
| 2546 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2547 | swap(state_last_changed_, other->state_last_changed_); |
| 2548 | swap(admin_state_, other->admin_state_); |
| 2549 | swap(oper_state_, other->oper_state_); |
| 2550 | swap(usage_state_, other->usage_state_); |
| 2551 | swap(alarm_state_, other->alarm_state_); |
| 2552 | swap(standby_state_, other->standby_state_); |
| 2553 | } |
| 2554 | |
| 2555 | ::google::protobuf::Metadata ComponentState::GetMetadata() const { |
| 2556 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 2557 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 2558 | } |
| 2559 | |
| 2560 | |
| 2561 | // =================================================================== |
| 2562 | |
| 2563 | void ComponentSensorData::InitAsDefaultInstance() { |
| 2564 | ::dmi::_ComponentSensorData_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>( |
| 2565 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 2566 | } |
| 2567 | class ComponentSensorData::HasBitSetters { |
| 2568 | public: |
| 2569 | static const ::google::protobuf::Timestamp& timestamp(const ComponentSensorData* msg); |
| 2570 | }; |
| 2571 | |
| 2572 | const ::google::protobuf::Timestamp& |
| 2573 | ComponentSensorData::HasBitSetters::timestamp(const ComponentSensorData* msg) { |
| 2574 | return *msg->timestamp_; |
| 2575 | } |
| 2576 | void ComponentSensorData::clear_timestamp() { |
| 2577 | if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { |
| 2578 | delete timestamp_; |
| 2579 | } |
| 2580 | timestamp_ = nullptr; |
| 2581 | } |
| 2582 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2583 | const int ComponentSensorData::kValueFieldNumber; |
| 2584 | const int ComponentSensorData::kTypeFieldNumber; |
| 2585 | const int ComponentSensorData::kScaleFieldNumber; |
| 2586 | const int ComponentSensorData::kPrecisionFieldNumber; |
| 2587 | const int ComponentSensorData::kStatusFieldNumber; |
| 2588 | const int ComponentSensorData::kUnitsDisplayFieldNumber; |
| 2589 | const int ComponentSensorData::kTimestampFieldNumber; |
| 2590 | const int ComponentSensorData::kValueUpdateRateFieldNumber; |
| 2591 | const int ComponentSensorData::kDataTypeFieldNumber; |
| 2592 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2593 | |
| 2594 | ComponentSensorData::ComponentSensorData() |
| 2595 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2596 | SharedCtor(); |
| 2597 | // @@protoc_insertion_point(constructor:dmi.ComponentSensorData) |
| 2598 | } |
| 2599 | ComponentSensorData::ComponentSensorData(const ComponentSensorData& from) |
| 2600 | : ::google::protobuf::Message(), |
| 2601 | _internal_metadata_(nullptr) { |
| 2602 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2603 | units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2604 | if (from.units_display().size() > 0) { |
| 2605 | units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_); |
| 2606 | } |
| 2607 | data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2608 | if (from.data_type().size() > 0) { |
| 2609 | data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_); |
| 2610 | } |
| 2611 | if (from.has_timestamp()) { |
| 2612 | timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_); |
| 2613 | } else { |
| 2614 | timestamp_ = nullptr; |
| 2615 | } |
| 2616 | ::memcpy(&value_, &from.value_, |
| 2617 | static_cast<size_t>(reinterpret_cast<char*>(&value_update_rate_) - |
| 2618 | reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_)); |
| 2619 | // @@protoc_insertion_point(copy_constructor:dmi.ComponentSensorData) |
| 2620 | } |
| 2621 | |
| 2622 | void ComponentSensorData::SharedCtor() { |
| 2623 | ::google::protobuf::internal::InitSCC( |
| 2624 | &scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 2625 | units_display_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2626 | data_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2627 | ::memset(×tamp_, 0, static_cast<size_t>( |
| 2628 | reinterpret_cast<char*>(&value_update_rate_) - |
| 2629 | reinterpret_cast<char*>(×tamp_)) + sizeof(value_update_rate_)); |
| 2630 | } |
| 2631 | |
| 2632 | ComponentSensorData::~ComponentSensorData() { |
| 2633 | // @@protoc_insertion_point(destructor:dmi.ComponentSensorData) |
| 2634 | SharedDtor(); |
| 2635 | } |
| 2636 | |
| 2637 | void ComponentSensorData::SharedDtor() { |
| 2638 | units_display_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2639 | data_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2640 | if (this != internal_default_instance()) delete timestamp_; |
| 2641 | } |
| 2642 | |
| 2643 | void ComponentSensorData::SetCachedSize(int size) const { |
| 2644 | _cached_size_.Set(size); |
| 2645 | } |
| 2646 | const ComponentSensorData& ComponentSensorData::default_instance() { |
| 2647 | ::google::protobuf::internal::InitSCC(&::scc_info_ComponentSensorData_dmi_2fhw_2eproto.base); |
| 2648 | return *internal_default_instance(); |
| 2649 | } |
| 2650 | |
| 2651 | |
| 2652 | void ComponentSensorData::Clear() { |
| 2653 | // @@protoc_insertion_point(message_clear_start:dmi.ComponentSensorData) |
| 2654 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2655 | // Prevent compiler warnings about cached_has_bits being unused |
| 2656 | (void) cached_has_bits; |
| 2657 | |
| 2658 | units_display_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2659 | data_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2660 | if (GetArenaNoVirtual() == nullptr && timestamp_ != nullptr) { |
| 2661 | delete timestamp_; |
| 2662 | } |
| 2663 | timestamp_ = nullptr; |
| 2664 | ::memset(&value_, 0, static_cast<size_t>( |
| 2665 | reinterpret_cast<char*>(&value_update_rate_) - |
| 2666 | reinterpret_cast<char*>(&value_)) + sizeof(value_update_rate_)); |
| 2667 | _internal_metadata_.Clear(); |
| 2668 | } |
| 2669 | |
| 2670 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2671 | const char* ComponentSensorData::_InternalParse(const char* begin, const char* end, void* object, |
| 2672 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2673 | auto msg = static_cast<ComponentSensorData*>(object); |
| 2674 | ::google::protobuf::int32 size; (void)size; |
| 2675 | int depth; (void)depth; |
| 2676 | ::google::protobuf::uint32 tag; |
| 2677 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2678 | auto ptr = begin; |
| 2679 | while (ptr < end) { |
| 2680 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2681 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2682 | switch (tag >> 3) { |
| 2683 | // int32 value = 1; |
| 2684 | case 1: { |
| 2685 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2686 | msg->set_value(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2687 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2688 | break; |
| 2689 | } |
| 2690 | // .dmi.DataValueType type = 2; |
| 2691 | case 2: { |
| 2692 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2693 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2694 | msg->set_type(static_cast<::dmi::DataValueType>(val)); |
| 2695 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2696 | break; |
| 2697 | } |
| 2698 | // .dmi.ValueScale scale = 3; |
| 2699 | case 3: { |
| 2700 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 2701 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2702 | msg->set_scale(static_cast<::dmi::ValueScale>(val)); |
| 2703 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2704 | break; |
| 2705 | } |
| 2706 | // int32 precision = 4; |
| 2707 | case 4: { |
| 2708 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 2709 | msg->set_precision(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2710 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2711 | break; |
| 2712 | } |
| 2713 | // .dmi.SensorStatus status = 5; |
| 2714 | case 5: { |
| 2715 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 2716 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2717 | msg->set_status(static_cast<::dmi::SensorStatus>(val)); |
| 2718 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2719 | break; |
| 2720 | } |
| 2721 | // string units_display = 6; |
| 2722 | case 6: { |
| 2723 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 2724 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2725 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2726 | ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.units_display"); |
| 2727 | object = msg->mutable_units_display(); |
| 2728 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2729 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2730 | goto string_till_end; |
| 2731 | } |
| 2732 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2733 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2734 | ptr += size; |
| 2735 | break; |
| 2736 | } |
| 2737 | // .google.protobuf.Timestamp timestamp = 7; |
| 2738 | case 7: { |
| 2739 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 2740 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2741 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2742 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 2743 | object = msg->mutable_timestamp(); |
| 2744 | if (size > end - ptr) goto len_delim_till_end; |
| 2745 | ptr += size; |
| 2746 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2747 | {parser_till_end, object}, ptr - size, ptr)); |
| 2748 | break; |
| 2749 | } |
| 2750 | // uint32 value_update_rate = 8; |
| 2751 | case 8: { |
| 2752 | if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; |
| 2753 | msg->set_value_update_rate(::google::protobuf::internal::ReadVarint(&ptr)); |
| 2754 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2755 | break; |
| 2756 | } |
| 2757 | // string data_type = 9; |
| 2758 | case 9: { |
| 2759 | if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; |
| 2760 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2761 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2762 | ctx->extra_parse_data().SetFieldName("dmi.ComponentSensorData.data_type"); |
| 2763 | object = msg->mutable_data_type(); |
| 2764 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2765 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2766 | goto string_till_end; |
| 2767 | } |
| 2768 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2769 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2770 | ptr += size; |
| 2771 | break; |
| 2772 | } |
| 2773 | default: { |
| 2774 | handle_unusual: |
| 2775 | if ((tag & 7) == 4 || tag == 0) { |
| 2776 | ctx->EndGroup(tag); |
| 2777 | return ptr; |
| 2778 | } |
| 2779 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2780 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2781 | ptr = res.first; |
| 2782 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2783 | if (res.second) return ptr; |
| 2784 | } |
| 2785 | } // switch |
| 2786 | } // while |
| 2787 | return ptr; |
| 2788 | string_till_end: |
| 2789 | static_cast<::std::string*>(object)->clear(); |
| 2790 | static_cast<::std::string*>(object)->reserve(size); |
| 2791 | goto len_delim_till_end; |
| 2792 | len_delim_till_end: |
| 2793 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2794 | {parser_till_end, object}, size); |
| 2795 | } |
| 2796 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2797 | bool ComponentSensorData::MergePartialFromCodedStream( |
| 2798 | ::google::protobuf::io::CodedInputStream* input) { |
| 2799 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2800 | ::google::protobuf::uint32 tag; |
| 2801 | // @@protoc_insertion_point(parse_start:dmi.ComponentSensorData) |
| 2802 | for (;;) { |
| 2803 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2804 | tag = p.first; |
| 2805 | if (!p.second) goto handle_unusual; |
| 2806 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2807 | // int32 value = 1; |
| 2808 | case 1: { |
| 2809 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2810 | |
| 2811 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2812 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2813 | input, &value_))); |
| 2814 | } else { |
| 2815 | goto handle_unusual; |
| 2816 | } |
| 2817 | break; |
| 2818 | } |
| 2819 | |
| 2820 | // .dmi.DataValueType type = 2; |
| 2821 | case 2: { |
| 2822 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2823 | int value = 0; |
| 2824 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2825 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2826 | input, &value))); |
| 2827 | set_type(static_cast< ::dmi::DataValueType >(value)); |
| 2828 | } else { |
| 2829 | goto handle_unusual; |
| 2830 | } |
| 2831 | break; |
| 2832 | } |
| 2833 | |
| 2834 | // .dmi.ValueScale scale = 3; |
| 2835 | case 3: { |
| 2836 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 2837 | int value = 0; |
| 2838 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2839 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2840 | input, &value))); |
| 2841 | set_scale(static_cast< ::dmi::ValueScale >(value)); |
| 2842 | } else { |
| 2843 | goto handle_unusual; |
| 2844 | } |
| 2845 | break; |
| 2846 | } |
| 2847 | |
| 2848 | // int32 precision = 4; |
| 2849 | case 4: { |
| 2850 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 2851 | |
| 2852 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2853 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 2854 | input, &precision_))); |
| 2855 | } else { |
| 2856 | goto handle_unusual; |
| 2857 | } |
| 2858 | break; |
| 2859 | } |
| 2860 | |
| 2861 | // .dmi.SensorStatus status = 5; |
| 2862 | case 5: { |
| 2863 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 2864 | int value = 0; |
| 2865 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2866 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2867 | input, &value))); |
| 2868 | set_status(static_cast< ::dmi::SensorStatus >(value)); |
| 2869 | } else { |
| 2870 | goto handle_unusual; |
| 2871 | } |
| 2872 | break; |
| 2873 | } |
| 2874 | |
| 2875 | // string units_display = 6; |
| 2876 | case 6: { |
| 2877 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 2878 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2879 | input, this->mutable_units_display())); |
| 2880 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2881 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 2882 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2883 | "dmi.ComponentSensorData.units_display")); |
| 2884 | } else { |
| 2885 | goto handle_unusual; |
| 2886 | } |
| 2887 | break; |
| 2888 | } |
| 2889 | |
| 2890 | // .google.protobuf.Timestamp timestamp = 7; |
| 2891 | case 7: { |
| 2892 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 2893 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2894 | input, mutable_timestamp())); |
| 2895 | } else { |
| 2896 | goto handle_unusual; |
| 2897 | } |
| 2898 | break; |
| 2899 | } |
| 2900 | |
| 2901 | // uint32 value_update_rate = 8; |
| 2902 | case 8: { |
| 2903 | if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { |
| 2904 | |
| 2905 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2906 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 2907 | input, &value_update_rate_))); |
| 2908 | } else { |
| 2909 | goto handle_unusual; |
| 2910 | } |
| 2911 | break; |
| 2912 | } |
| 2913 | |
| 2914 | // string data_type = 9; |
| 2915 | case 9: { |
| 2916 | if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { |
| 2917 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2918 | input, this->mutable_data_type())); |
| 2919 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2920 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 2921 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2922 | "dmi.ComponentSensorData.data_type")); |
| 2923 | } else { |
| 2924 | goto handle_unusual; |
| 2925 | } |
| 2926 | break; |
| 2927 | } |
| 2928 | |
| 2929 | default: { |
| 2930 | handle_unusual: |
| 2931 | if (tag == 0) { |
| 2932 | goto success; |
| 2933 | } |
| 2934 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2935 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2936 | break; |
| 2937 | } |
| 2938 | } |
| 2939 | } |
| 2940 | success: |
| 2941 | // @@protoc_insertion_point(parse_success:dmi.ComponentSensorData) |
| 2942 | return true; |
| 2943 | failure: |
| 2944 | // @@protoc_insertion_point(parse_failure:dmi.ComponentSensorData) |
| 2945 | return false; |
| 2946 | #undef DO_ |
| 2947 | } |
| 2948 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2949 | |
| 2950 | void ComponentSensorData::SerializeWithCachedSizes( |
| 2951 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2952 | // @@protoc_insertion_point(serialize_start:dmi.ComponentSensorData) |
| 2953 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2954 | (void) cached_has_bits; |
| 2955 | |
| 2956 | // int32 value = 1; |
| 2957 | if (this->value() != 0) { |
| 2958 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output); |
| 2959 | } |
| 2960 | |
| 2961 | // .dmi.DataValueType type = 2; |
| 2962 | if (this->type() != 0) { |
| 2963 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2964 | 2, this->type(), output); |
| 2965 | } |
| 2966 | |
| 2967 | // .dmi.ValueScale scale = 3; |
| 2968 | if (this->scale() != 0) { |
| 2969 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2970 | 3, this->scale(), output); |
| 2971 | } |
| 2972 | |
| 2973 | // int32 precision = 4; |
| 2974 | if (this->precision() != 0) { |
| 2975 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->precision(), output); |
| 2976 | } |
| 2977 | |
| 2978 | // .dmi.SensorStatus status = 5; |
| 2979 | if (this->status() != 0) { |
| 2980 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2981 | 5, this->status(), output); |
| 2982 | } |
| 2983 | |
| 2984 | // string units_display = 6; |
| 2985 | if (this->units_display().size() > 0) { |
| 2986 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2987 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 2988 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2989 | "dmi.ComponentSensorData.units_display"); |
| 2990 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2991 | 6, this->units_display(), output); |
| 2992 | } |
| 2993 | |
| 2994 | // .google.protobuf.Timestamp timestamp = 7; |
| 2995 | if (this->has_timestamp()) { |
| 2996 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2997 | 7, HasBitSetters::timestamp(this), output); |
| 2998 | } |
| 2999 | |
| 3000 | // uint32 value_update_rate = 8; |
| 3001 | if (this->value_update_rate() != 0) { |
| 3002 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->value_update_rate(), output); |
| 3003 | } |
| 3004 | |
| 3005 | // string data_type = 9; |
| 3006 | if (this->data_type().size() > 0) { |
| 3007 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3008 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 3009 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3010 | "dmi.ComponentSensorData.data_type"); |
| 3011 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3012 | 9, this->data_type(), output); |
| 3013 | } |
| 3014 | |
| 3015 | if (_internal_metadata_.have_unknown_fields()) { |
| 3016 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3017 | _internal_metadata_.unknown_fields(), output); |
| 3018 | } |
| 3019 | // @@protoc_insertion_point(serialize_end:dmi.ComponentSensorData) |
| 3020 | } |
| 3021 | |
| 3022 | ::google::protobuf::uint8* ComponentSensorData::InternalSerializeWithCachedSizesToArray( |
| 3023 | ::google::protobuf::uint8* target) const { |
| 3024 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ComponentSensorData) |
| 3025 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3026 | (void) cached_has_bits; |
| 3027 | |
| 3028 | // int32 value = 1; |
| 3029 | if (this->value() != 0) { |
| 3030 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target); |
| 3031 | } |
| 3032 | |
| 3033 | // .dmi.DataValueType type = 2; |
| 3034 | if (this->type() != 0) { |
| 3035 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3036 | 2, this->type(), target); |
| 3037 | } |
| 3038 | |
| 3039 | // .dmi.ValueScale scale = 3; |
| 3040 | if (this->scale() != 0) { |
| 3041 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3042 | 3, this->scale(), target); |
| 3043 | } |
| 3044 | |
| 3045 | // int32 precision = 4; |
| 3046 | if (this->precision() != 0) { |
| 3047 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->precision(), target); |
| 3048 | } |
| 3049 | |
| 3050 | // .dmi.SensorStatus status = 5; |
| 3051 | if (this->status() != 0) { |
| 3052 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3053 | 5, this->status(), target); |
| 3054 | } |
| 3055 | |
| 3056 | // string units_display = 6; |
| 3057 | if (this->units_display().size() > 0) { |
| 3058 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3059 | this->units_display().data(), static_cast<int>(this->units_display().length()), |
| 3060 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3061 | "dmi.ComponentSensorData.units_display"); |
| 3062 | target = |
| 3063 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3064 | 6, this->units_display(), target); |
| 3065 | } |
| 3066 | |
| 3067 | // .google.protobuf.Timestamp timestamp = 7; |
| 3068 | if (this->has_timestamp()) { |
| 3069 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3070 | InternalWriteMessageToArray( |
| 3071 | 7, HasBitSetters::timestamp(this), target); |
| 3072 | } |
| 3073 | |
| 3074 | // uint32 value_update_rate = 8; |
| 3075 | if (this->value_update_rate() != 0) { |
| 3076 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->value_update_rate(), target); |
| 3077 | } |
| 3078 | |
| 3079 | // string data_type = 9; |
| 3080 | if (this->data_type().size() > 0) { |
| 3081 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3082 | this->data_type().data(), static_cast<int>(this->data_type().length()), |
| 3083 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3084 | "dmi.ComponentSensorData.data_type"); |
| 3085 | target = |
| 3086 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3087 | 9, this->data_type(), target); |
| 3088 | } |
| 3089 | |
| 3090 | if (_internal_metadata_.have_unknown_fields()) { |
| 3091 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3092 | _internal_metadata_.unknown_fields(), target); |
| 3093 | } |
| 3094 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ComponentSensorData) |
| 3095 | return target; |
| 3096 | } |
| 3097 | |
| 3098 | size_t ComponentSensorData::ByteSizeLong() const { |
| 3099 | // @@protoc_insertion_point(message_byte_size_start:dmi.ComponentSensorData) |
| 3100 | size_t total_size = 0; |
| 3101 | |
| 3102 | if (_internal_metadata_.have_unknown_fields()) { |
| 3103 | total_size += |
| 3104 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3105 | _internal_metadata_.unknown_fields()); |
| 3106 | } |
| 3107 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3108 | // Prevent compiler warnings about cached_has_bits being unused |
| 3109 | (void) cached_has_bits; |
| 3110 | |
| 3111 | // string units_display = 6; |
| 3112 | if (this->units_display().size() > 0) { |
| 3113 | total_size += 1 + |
| 3114 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3115 | this->units_display()); |
| 3116 | } |
| 3117 | |
| 3118 | // string data_type = 9; |
| 3119 | if (this->data_type().size() > 0) { |
| 3120 | total_size += 1 + |
| 3121 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3122 | this->data_type()); |
| 3123 | } |
| 3124 | |
| 3125 | // .google.protobuf.Timestamp timestamp = 7; |
| 3126 | if (this->has_timestamp()) { |
| 3127 | total_size += 1 + |
| 3128 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3129 | *timestamp_); |
| 3130 | } |
| 3131 | |
| 3132 | // int32 value = 1; |
| 3133 | if (this->value() != 0) { |
| 3134 | total_size += 1 + |
| 3135 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3136 | this->value()); |
| 3137 | } |
| 3138 | |
| 3139 | // .dmi.DataValueType type = 2; |
| 3140 | if (this->type() != 0) { |
| 3141 | total_size += 1 + |
| 3142 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); |
| 3143 | } |
| 3144 | |
| 3145 | // .dmi.ValueScale scale = 3; |
| 3146 | if (this->scale() != 0) { |
| 3147 | total_size += 1 + |
| 3148 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->scale()); |
| 3149 | } |
| 3150 | |
| 3151 | // int32 precision = 4; |
| 3152 | if (this->precision() != 0) { |
| 3153 | total_size += 1 + |
| 3154 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 3155 | this->precision()); |
| 3156 | } |
| 3157 | |
| 3158 | // .dmi.SensorStatus status = 5; |
| 3159 | if (this->status() != 0) { |
| 3160 | total_size += 1 + |
| 3161 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3162 | } |
| 3163 | |
| 3164 | // uint32 value_update_rate = 8; |
| 3165 | if (this->value_update_rate() != 0) { |
| 3166 | total_size += 1 + |
| 3167 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 3168 | this->value_update_rate()); |
| 3169 | } |
| 3170 | |
| 3171 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3172 | SetCachedSize(cached_size); |
| 3173 | return total_size; |
| 3174 | } |
| 3175 | |
| 3176 | void ComponentSensorData::MergeFrom(const ::google::protobuf::Message& from) { |
| 3177 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ComponentSensorData) |
| 3178 | GOOGLE_DCHECK_NE(&from, this); |
| 3179 | const ComponentSensorData* source = |
| 3180 | ::google::protobuf::DynamicCastToGenerated<ComponentSensorData>( |
| 3181 | &from); |
| 3182 | if (source == nullptr) { |
| 3183 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ComponentSensorData) |
| 3184 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3185 | } else { |
| 3186 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ComponentSensorData) |
| 3187 | MergeFrom(*source); |
| 3188 | } |
| 3189 | } |
| 3190 | |
| 3191 | void ComponentSensorData::MergeFrom(const ComponentSensorData& from) { |
| 3192 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ComponentSensorData) |
| 3193 | GOOGLE_DCHECK_NE(&from, this); |
| 3194 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3195 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3196 | (void) cached_has_bits; |
| 3197 | |
| 3198 | if (from.units_display().size() > 0) { |
| 3199 | |
| 3200 | units_display_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.units_display_); |
| 3201 | } |
| 3202 | if (from.data_type().size() > 0) { |
| 3203 | |
| 3204 | data_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.data_type_); |
| 3205 | } |
| 3206 | if (from.has_timestamp()) { |
| 3207 | mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp()); |
| 3208 | } |
| 3209 | if (from.value() != 0) { |
| 3210 | set_value(from.value()); |
| 3211 | } |
| 3212 | if (from.type() != 0) { |
| 3213 | set_type(from.type()); |
| 3214 | } |
| 3215 | if (from.scale() != 0) { |
| 3216 | set_scale(from.scale()); |
| 3217 | } |
| 3218 | if (from.precision() != 0) { |
| 3219 | set_precision(from.precision()); |
| 3220 | } |
| 3221 | if (from.status() != 0) { |
| 3222 | set_status(from.status()); |
| 3223 | } |
| 3224 | if (from.value_update_rate() != 0) { |
| 3225 | set_value_update_rate(from.value_update_rate()); |
| 3226 | } |
| 3227 | } |
| 3228 | |
| 3229 | void ComponentSensorData::CopyFrom(const ::google::protobuf::Message& from) { |
| 3230 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ComponentSensorData) |
| 3231 | if (&from == this) return; |
| 3232 | Clear(); |
| 3233 | MergeFrom(from); |
| 3234 | } |
| 3235 | |
| 3236 | void ComponentSensorData::CopyFrom(const ComponentSensorData& from) { |
| 3237 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ComponentSensorData) |
| 3238 | if (&from == this) return; |
| 3239 | Clear(); |
| 3240 | MergeFrom(from); |
| 3241 | } |
| 3242 | |
| 3243 | bool ComponentSensorData::IsInitialized() const { |
| 3244 | return true; |
| 3245 | } |
| 3246 | |
| 3247 | void ComponentSensorData::Swap(ComponentSensorData* other) { |
| 3248 | if (other == this) return; |
| 3249 | InternalSwap(other); |
| 3250 | } |
| 3251 | void ComponentSensorData::InternalSwap(ComponentSensorData* other) { |
| 3252 | using std::swap; |
| 3253 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3254 | units_display_.Swap(&other->units_display_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3255 | GetArenaNoVirtual()); |
| 3256 | data_type_.Swap(&other->data_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3257 | GetArenaNoVirtual()); |
| 3258 | swap(timestamp_, other->timestamp_); |
| 3259 | swap(value_, other->value_); |
| 3260 | swap(type_, other->type_); |
| 3261 | swap(scale_, other->scale_); |
| 3262 | swap(precision_, other->precision_); |
| 3263 | swap(status_, other->status_); |
| 3264 | swap(value_update_rate_, other->value_update_rate_); |
| 3265 | } |
| 3266 | |
| 3267 | ::google::protobuf::Metadata ComponentSensorData::GetMetadata() const { |
| 3268 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 3269 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 3270 | } |
| 3271 | |
| 3272 | |
| 3273 | // =================================================================== |
| 3274 | |
| 3275 | void PortComponentAttributes::InitAsDefaultInstance() { |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3276 | ::dmi::_PortComponentAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>( |
| 3277 | ::dmi::PonIdConfig::internal_default_instance()); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3278 | ::dmi::_PortComponentAttributes_default_instance_._instance.get_mutable()->distance_ = const_cast< ::dmi::PonDistance*>( |
| 3279 | ::dmi::PonDistance::internal_default_instance()); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3280 | } |
| 3281 | class PortComponentAttributes::HasBitSetters { |
| 3282 | public: |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3283 | static const ::dmi::PonIdConfig& pon_id_config(const PortComponentAttributes* msg); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3284 | static const ::dmi::PonDistance& distance(const PortComponentAttributes* msg); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3285 | }; |
| 3286 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3287 | const ::dmi::PonIdConfig& |
| 3288 | PortComponentAttributes::HasBitSetters::pon_id_config(const PortComponentAttributes* msg) { |
| 3289 | return *msg->pon_id_config_; |
| 3290 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3291 | const ::dmi::PonDistance& |
| 3292 | PortComponentAttributes::HasBitSetters::distance(const PortComponentAttributes* msg) { |
| 3293 | return *msg->distance_; |
| 3294 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3295 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3296 | const int PortComponentAttributes::kConnectorTypeFieldNumber; |
| 3297 | const int PortComponentAttributes::kSpeedFieldNumber; |
| 3298 | const int PortComponentAttributes::kProtocolFieldNumber; |
| 3299 | const int PortComponentAttributes::kPhysicalLabelFieldNumber; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3300 | const int PortComponentAttributes::kMappingLabelFieldNumber; |
| 3301 | const int PortComponentAttributes::kPonIdConfigFieldNumber; |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3302 | const int PortComponentAttributes::kSpeedAutonegotiationFieldNumber; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3303 | const int PortComponentAttributes::kDistanceFieldNumber; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3304 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3305 | |
| 3306 | PortComponentAttributes::PortComponentAttributes() |
| 3307 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3308 | SharedCtor(); |
| 3309 | // @@protoc_insertion_point(constructor:dmi.PortComponentAttributes) |
| 3310 | } |
| 3311 | PortComponentAttributes::PortComponentAttributes(const PortComponentAttributes& from) |
| 3312 | : ::google::protobuf::Message(), |
| 3313 | _internal_metadata_(nullptr) { |
| 3314 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3315 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3316 | if (from.physical_label().size() > 0) { |
| 3317 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 3318 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3319 | mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3320 | if (from.mapping_label().size() > 0) { |
| 3321 | mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_); |
| 3322 | } |
| 3323 | if (from.has_pon_id_config()) { |
| 3324 | pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_); |
| 3325 | } else { |
| 3326 | pon_id_config_ = nullptr; |
| 3327 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3328 | if (from.has_distance()) { |
| 3329 | distance_ = new ::dmi::PonDistance(*from.distance_); |
| 3330 | } else { |
| 3331 | distance_ = nullptr; |
| 3332 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3333 | ::memcpy(&connector_type_, &from.connector_type_, |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3334 | static_cast<size_t>(reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3335 | reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3336 | // @@protoc_insertion_point(copy_constructor:dmi.PortComponentAttributes) |
| 3337 | } |
| 3338 | |
| 3339 | void PortComponentAttributes::SharedCtor() { |
| 3340 | ::google::protobuf::internal::InitSCC( |
| 3341 | &scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
| 3342 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3343 | mapping_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3344 | ::memset(&pon_id_config_, 0, static_cast<size_t>( |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3345 | reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3346 | reinterpret_cast<char*>(&pon_id_config_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3347 | } |
| 3348 | |
| 3349 | PortComponentAttributes::~PortComponentAttributes() { |
| 3350 | // @@protoc_insertion_point(destructor:dmi.PortComponentAttributes) |
| 3351 | SharedDtor(); |
| 3352 | } |
| 3353 | |
| 3354 | void PortComponentAttributes::SharedDtor() { |
| 3355 | physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3356 | mapping_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3357 | if (this != internal_default_instance()) delete pon_id_config_; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3358 | if (this != internal_default_instance()) delete distance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3359 | } |
| 3360 | |
| 3361 | void PortComponentAttributes::SetCachedSize(int size) const { |
| 3362 | _cached_size_.Set(size); |
| 3363 | } |
| 3364 | const PortComponentAttributes& PortComponentAttributes::default_instance() { |
| 3365 | ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentAttributes_dmi_2fhw_2eproto.base); |
| 3366 | return *internal_default_instance(); |
| 3367 | } |
| 3368 | |
| 3369 | |
| 3370 | void PortComponentAttributes::Clear() { |
| 3371 | // @@protoc_insertion_point(message_clear_start:dmi.PortComponentAttributes) |
| 3372 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3373 | // Prevent compiler warnings about cached_has_bits being unused |
| 3374 | (void) cached_has_bits; |
| 3375 | |
| 3376 | physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3377 | mapping_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3378 | if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) { |
| 3379 | delete pon_id_config_; |
| 3380 | } |
| 3381 | pon_id_config_ = nullptr; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3382 | if (GetArenaNoVirtual() == nullptr && distance_ != nullptr) { |
| 3383 | delete distance_; |
| 3384 | } |
| 3385 | distance_ = nullptr; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3386 | ::memset(&connector_type_, 0, static_cast<size_t>( |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3387 | reinterpret_cast<char*>(&speed_autonegotiation_) - |
| 3388 | reinterpret_cast<char*>(&connector_type_)) + sizeof(speed_autonegotiation_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3389 | _internal_metadata_.Clear(); |
| 3390 | } |
| 3391 | |
| 3392 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3393 | const char* PortComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 3394 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3395 | auto msg = static_cast<PortComponentAttributes*>(object); |
| 3396 | ::google::protobuf::int32 size; (void)size; |
| 3397 | int depth; (void)depth; |
| 3398 | ::google::protobuf::uint32 tag; |
| 3399 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3400 | auto ptr = begin; |
| 3401 | while (ptr < end) { |
| 3402 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3403 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3404 | switch (tag >> 3) { |
| 3405 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3406 | case 1: { |
| 3407 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3408 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3409 | msg->set_connector_type(static_cast<::dmi::PortComponentAttributes_ConnectorType>(val)); |
| 3410 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3411 | break; |
| 3412 | } |
| 3413 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3414 | case 2: { |
| 3415 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3416 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3417 | msg->set_speed(static_cast<::dmi::PortComponentAttributes_Speed>(val)); |
| 3418 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3419 | break; |
| 3420 | } |
| 3421 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3422 | case 3: { |
| 3423 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 3424 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3425 | msg->set_protocol(static_cast<::dmi::PortComponentAttributes_Protocol>(val)); |
| 3426 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3427 | break; |
| 3428 | } |
| 3429 | // string physical_label = 4; |
| 3430 | case 4: { |
| 3431 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3432 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3433 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3434 | ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.physical_label"); |
| 3435 | object = msg->mutable_physical_label(); |
| 3436 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3437 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3438 | goto string_till_end; |
| 3439 | } |
| 3440 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3441 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3442 | ptr += size; |
| 3443 | break; |
| 3444 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3445 | // string mapping_label = 5; |
| 3446 | case 5: { |
| 3447 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 3448 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3449 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3450 | ctx->extra_parse_data().SetFieldName("dmi.PortComponentAttributes.mapping_label"); |
| 3451 | object = msg->mutable_mapping_label(); |
| 3452 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3453 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3454 | goto string_till_end; |
| 3455 | } |
| 3456 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3457 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3458 | ptr += size; |
| 3459 | break; |
| 3460 | } |
| 3461 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3462 | case 6: { |
| 3463 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 3464 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3465 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3466 | parser_till_end = ::dmi::PonIdConfig::_InternalParse; |
| 3467 | object = msg->mutable_pon_id_config(); |
| 3468 | if (size > end - ptr) goto len_delim_till_end; |
| 3469 | ptr += size; |
| 3470 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3471 | {parser_till_end, object}, ptr - size, ptr)); |
| 3472 | break; |
| 3473 | } |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3474 | // bool speed_autonegotiation = 7; |
| 3475 | case 7: { |
| 3476 | if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; |
| 3477 | msg->set_speed_autonegotiation(::google::protobuf::internal::ReadVarint(&ptr)); |
| 3478 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3479 | break; |
| 3480 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3481 | // .dmi.PonDistance distance = 8; |
| 3482 | case 8: { |
| 3483 | if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; |
| 3484 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3485 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3486 | parser_till_end = ::dmi::PonDistance::_InternalParse; |
| 3487 | object = msg->mutable_distance(); |
| 3488 | if (size > end - ptr) goto len_delim_till_end; |
| 3489 | ptr += size; |
| 3490 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3491 | {parser_till_end, object}, ptr - size, ptr)); |
| 3492 | break; |
| 3493 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3494 | default: { |
| 3495 | handle_unusual: |
| 3496 | if ((tag & 7) == 4 || tag == 0) { |
| 3497 | ctx->EndGroup(tag); |
| 3498 | return ptr; |
| 3499 | } |
| 3500 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3501 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3502 | ptr = res.first; |
| 3503 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3504 | if (res.second) return ptr; |
| 3505 | } |
| 3506 | } // switch |
| 3507 | } // while |
| 3508 | return ptr; |
| 3509 | string_till_end: |
| 3510 | static_cast<::std::string*>(object)->clear(); |
| 3511 | static_cast<::std::string*>(object)->reserve(size); |
| 3512 | goto len_delim_till_end; |
| 3513 | len_delim_till_end: |
| 3514 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3515 | {parser_till_end, object}, size); |
| 3516 | } |
| 3517 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3518 | bool PortComponentAttributes::MergePartialFromCodedStream( |
| 3519 | ::google::protobuf::io::CodedInputStream* input) { |
| 3520 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3521 | ::google::protobuf::uint32 tag; |
| 3522 | // @@protoc_insertion_point(parse_start:dmi.PortComponentAttributes) |
| 3523 | for (;;) { |
| 3524 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3525 | tag = p.first; |
| 3526 | if (!p.second) goto handle_unusual; |
| 3527 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3528 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3529 | case 1: { |
| 3530 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3531 | int value = 0; |
| 3532 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3533 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3534 | input, &value))); |
| 3535 | set_connector_type(static_cast< ::dmi::PortComponentAttributes_ConnectorType >(value)); |
| 3536 | } else { |
| 3537 | goto handle_unusual; |
| 3538 | } |
| 3539 | break; |
| 3540 | } |
| 3541 | |
| 3542 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3543 | case 2: { |
| 3544 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3545 | int value = 0; |
| 3546 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3547 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3548 | input, &value))); |
| 3549 | set_speed(static_cast< ::dmi::PortComponentAttributes_Speed >(value)); |
| 3550 | } else { |
| 3551 | goto handle_unusual; |
| 3552 | } |
| 3553 | break; |
| 3554 | } |
| 3555 | |
| 3556 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3557 | case 3: { |
| 3558 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 3559 | int value = 0; |
| 3560 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3561 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3562 | input, &value))); |
| 3563 | set_protocol(static_cast< ::dmi::PortComponentAttributes_Protocol >(value)); |
| 3564 | } else { |
| 3565 | goto handle_unusual; |
| 3566 | } |
| 3567 | break; |
| 3568 | } |
| 3569 | |
| 3570 | // string physical_label = 4; |
| 3571 | case 4: { |
| 3572 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3573 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3574 | input, this->mutable_physical_label())); |
| 3575 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3576 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3577 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3578 | "dmi.PortComponentAttributes.physical_label")); |
| 3579 | } else { |
| 3580 | goto handle_unusual; |
| 3581 | } |
| 3582 | break; |
| 3583 | } |
| 3584 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3585 | // string mapping_label = 5; |
| 3586 | case 5: { |
| 3587 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 3588 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3589 | input, this->mutable_mapping_label())); |
| 3590 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3591 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3592 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3593 | "dmi.PortComponentAttributes.mapping_label")); |
| 3594 | } else { |
| 3595 | goto handle_unusual; |
| 3596 | } |
| 3597 | break; |
| 3598 | } |
| 3599 | |
| 3600 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3601 | case 6: { |
| 3602 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 3603 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3604 | input, mutable_pon_id_config())); |
| 3605 | } else { |
| 3606 | goto handle_unusual; |
| 3607 | } |
| 3608 | break; |
| 3609 | } |
| 3610 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3611 | // bool speed_autonegotiation = 7; |
| 3612 | case 7: { |
| 3613 | if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { |
| 3614 | |
| 3615 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3616 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 3617 | input, &speed_autonegotiation_))); |
| 3618 | } else { |
| 3619 | goto handle_unusual; |
| 3620 | } |
| 3621 | break; |
| 3622 | } |
| 3623 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3624 | // .dmi.PonDistance distance = 8; |
| 3625 | case 8: { |
| 3626 | if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { |
| 3627 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3628 | input, mutable_distance())); |
| 3629 | } else { |
| 3630 | goto handle_unusual; |
| 3631 | } |
| 3632 | break; |
| 3633 | } |
| 3634 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3635 | default: { |
| 3636 | handle_unusual: |
| 3637 | if (tag == 0) { |
| 3638 | goto success; |
| 3639 | } |
| 3640 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3641 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3642 | break; |
| 3643 | } |
| 3644 | } |
| 3645 | } |
| 3646 | success: |
| 3647 | // @@protoc_insertion_point(parse_success:dmi.PortComponentAttributes) |
| 3648 | return true; |
| 3649 | failure: |
| 3650 | // @@protoc_insertion_point(parse_failure:dmi.PortComponentAttributes) |
| 3651 | return false; |
| 3652 | #undef DO_ |
| 3653 | } |
| 3654 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3655 | |
| 3656 | void PortComponentAttributes::SerializeWithCachedSizes( |
| 3657 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3658 | // @@protoc_insertion_point(serialize_start:dmi.PortComponentAttributes) |
| 3659 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3660 | (void) cached_has_bits; |
| 3661 | |
| 3662 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3663 | if (this->connector_type() != 0) { |
| 3664 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3665 | 1, this->connector_type(), output); |
| 3666 | } |
| 3667 | |
| 3668 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3669 | if (this->speed() != 0) { |
| 3670 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3671 | 2, this->speed(), output); |
| 3672 | } |
| 3673 | |
| 3674 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3675 | if (this->protocol() != 0) { |
| 3676 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3677 | 3, this->protocol(), output); |
| 3678 | } |
| 3679 | |
| 3680 | // string physical_label = 4; |
| 3681 | if (this->physical_label().size() > 0) { |
| 3682 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3683 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3684 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3685 | "dmi.PortComponentAttributes.physical_label"); |
| 3686 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3687 | 4, this->physical_label(), output); |
| 3688 | } |
| 3689 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3690 | // string mapping_label = 5; |
| 3691 | if (this->mapping_label().size() > 0) { |
| 3692 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3693 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3694 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3695 | "dmi.PortComponentAttributes.mapping_label"); |
| 3696 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3697 | 5, this->mapping_label(), output); |
| 3698 | } |
| 3699 | |
| 3700 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3701 | if (this->has_pon_id_config()) { |
| 3702 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3703 | 6, HasBitSetters::pon_id_config(this), output); |
| 3704 | } |
| 3705 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3706 | // bool speed_autonegotiation = 7; |
| 3707 | if (this->speed_autonegotiation() != 0) { |
| 3708 | ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->speed_autonegotiation(), output); |
| 3709 | } |
| 3710 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3711 | // .dmi.PonDistance distance = 8; |
| 3712 | if (this->has_distance()) { |
| 3713 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3714 | 8, HasBitSetters::distance(this), output); |
| 3715 | } |
| 3716 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3717 | if (_internal_metadata_.have_unknown_fields()) { |
| 3718 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3719 | _internal_metadata_.unknown_fields(), output); |
| 3720 | } |
| 3721 | // @@protoc_insertion_point(serialize_end:dmi.PortComponentAttributes) |
| 3722 | } |
| 3723 | |
| 3724 | ::google::protobuf::uint8* PortComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 3725 | ::google::protobuf::uint8* target) const { |
| 3726 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentAttributes) |
| 3727 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3728 | (void) cached_has_bits; |
| 3729 | |
| 3730 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3731 | if (this->connector_type() != 0) { |
| 3732 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3733 | 1, this->connector_type(), target); |
| 3734 | } |
| 3735 | |
| 3736 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3737 | if (this->speed() != 0) { |
| 3738 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3739 | 2, this->speed(), target); |
| 3740 | } |
| 3741 | |
| 3742 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3743 | if (this->protocol() != 0) { |
| 3744 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3745 | 3, this->protocol(), target); |
| 3746 | } |
| 3747 | |
| 3748 | // string physical_label = 4; |
| 3749 | if (this->physical_label().size() > 0) { |
| 3750 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3751 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 3752 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3753 | "dmi.PortComponentAttributes.physical_label"); |
| 3754 | target = |
| 3755 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3756 | 4, this->physical_label(), target); |
| 3757 | } |
| 3758 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3759 | // string mapping_label = 5; |
| 3760 | if (this->mapping_label().size() > 0) { |
| 3761 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3762 | this->mapping_label().data(), static_cast<int>(this->mapping_label().length()), |
| 3763 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3764 | "dmi.PortComponentAttributes.mapping_label"); |
| 3765 | target = |
| 3766 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3767 | 5, this->mapping_label(), target); |
| 3768 | } |
| 3769 | |
| 3770 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3771 | if (this->has_pon_id_config()) { |
| 3772 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3773 | InternalWriteMessageToArray( |
| 3774 | 6, HasBitSetters::pon_id_config(this), target); |
| 3775 | } |
| 3776 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3777 | // bool speed_autonegotiation = 7; |
| 3778 | if (this->speed_autonegotiation() != 0) { |
| 3779 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->speed_autonegotiation(), target); |
| 3780 | } |
| 3781 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3782 | // .dmi.PonDistance distance = 8; |
| 3783 | if (this->has_distance()) { |
| 3784 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3785 | InternalWriteMessageToArray( |
| 3786 | 8, HasBitSetters::distance(this), target); |
| 3787 | } |
| 3788 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3789 | if (_internal_metadata_.have_unknown_fields()) { |
| 3790 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3791 | _internal_metadata_.unknown_fields(), target); |
| 3792 | } |
| 3793 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentAttributes) |
| 3794 | return target; |
| 3795 | } |
| 3796 | |
| 3797 | size_t PortComponentAttributes::ByteSizeLong() const { |
| 3798 | // @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentAttributes) |
| 3799 | size_t total_size = 0; |
| 3800 | |
| 3801 | if (_internal_metadata_.have_unknown_fields()) { |
| 3802 | total_size += |
| 3803 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3804 | _internal_metadata_.unknown_fields()); |
| 3805 | } |
| 3806 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3807 | // Prevent compiler warnings about cached_has_bits being unused |
| 3808 | (void) cached_has_bits; |
| 3809 | |
| 3810 | // string physical_label = 4; |
| 3811 | if (this->physical_label().size() > 0) { |
| 3812 | total_size += 1 + |
| 3813 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3814 | this->physical_label()); |
| 3815 | } |
| 3816 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3817 | // string mapping_label = 5; |
| 3818 | if (this->mapping_label().size() > 0) { |
| 3819 | total_size += 1 + |
| 3820 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3821 | this->mapping_label()); |
| 3822 | } |
| 3823 | |
| 3824 | // .dmi.PonIdConfig pon_id_config = 6; |
| 3825 | if (this->has_pon_id_config()) { |
| 3826 | total_size += 1 + |
| 3827 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3828 | *pon_id_config_); |
| 3829 | } |
| 3830 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3831 | // .dmi.PonDistance distance = 8; |
| 3832 | if (this->has_distance()) { |
| 3833 | total_size += 1 + |
| 3834 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3835 | *distance_); |
| 3836 | } |
| 3837 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3838 | // .dmi.PortComponentAttributes.ConnectorType connector_type = 1; |
| 3839 | if (this->connector_type() != 0) { |
| 3840 | total_size += 1 + |
| 3841 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->connector_type()); |
| 3842 | } |
| 3843 | |
| 3844 | // .dmi.PortComponentAttributes.Speed speed = 2; |
| 3845 | if (this->speed() != 0) { |
| 3846 | total_size += 1 + |
| 3847 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->speed()); |
| 3848 | } |
| 3849 | |
| 3850 | // .dmi.PortComponentAttributes.Protocol protocol = 3; |
| 3851 | if (this->protocol() != 0) { |
| 3852 | total_size += 1 + |
| 3853 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->protocol()); |
| 3854 | } |
| 3855 | |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3856 | // bool speed_autonegotiation = 7; |
| 3857 | if (this->speed_autonegotiation() != 0) { |
| 3858 | total_size += 1 + 1; |
| 3859 | } |
| 3860 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3861 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3862 | SetCachedSize(cached_size); |
| 3863 | return total_size; |
| 3864 | } |
| 3865 | |
| 3866 | void PortComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 3867 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentAttributes) |
| 3868 | GOOGLE_DCHECK_NE(&from, this); |
| 3869 | const PortComponentAttributes* source = |
| 3870 | ::google::protobuf::DynamicCastToGenerated<PortComponentAttributes>( |
| 3871 | &from); |
| 3872 | if (source == nullptr) { |
| 3873 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentAttributes) |
| 3874 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3875 | } else { |
| 3876 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentAttributes) |
| 3877 | MergeFrom(*source); |
| 3878 | } |
| 3879 | } |
| 3880 | |
| 3881 | void PortComponentAttributes::MergeFrom(const PortComponentAttributes& from) { |
| 3882 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentAttributes) |
| 3883 | GOOGLE_DCHECK_NE(&from, this); |
| 3884 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3885 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3886 | (void) cached_has_bits; |
| 3887 | |
| 3888 | if (from.physical_label().size() > 0) { |
| 3889 | |
| 3890 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 3891 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3892 | if (from.mapping_label().size() > 0) { |
| 3893 | |
| 3894 | mapping_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mapping_label_); |
| 3895 | } |
| 3896 | if (from.has_pon_id_config()) { |
| 3897 | mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config()); |
| 3898 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3899 | if (from.has_distance()) { |
| 3900 | mutable_distance()->::dmi::PonDistance::MergeFrom(from.distance()); |
| 3901 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3902 | if (from.connector_type() != 0) { |
| 3903 | set_connector_type(from.connector_type()); |
| 3904 | } |
| 3905 | if (from.speed() != 0) { |
| 3906 | set_speed(from.speed()); |
| 3907 | } |
| 3908 | if (from.protocol() != 0) { |
| 3909 | set_protocol(from.protocol()); |
| 3910 | } |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3911 | if (from.speed_autonegotiation() != 0) { |
| 3912 | set_speed_autonegotiation(from.speed_autonegotiation()); |
| 3913 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3914 | } |
| 3915 | |
| 3916 | void PortComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 3917 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentAttributes) |
| 3918 | if (&from == this) return; |
| 3919 | Clear(); |
| 3920 | MergeFrom(from); |
| 3921 | } |
| 3922 | |
| 3923 | void PortComponentAttributes::CopyFrom(const PortComponentAttributes& from) { |
| 3924 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentAttributes) |
| 3925 | if (&from == this) return; |
| 3926 | Clear(); |
| 3927 | MergeFrom(from); |
| 3928 | } |
| 3929 | |
| 3930 | bool PortComponentAttributes::IsInitialized() const { |
| 3931 | return true; |
| 3932 | } |
| 3933 | |
| 3934 | void PortComponentAttributes::Swap(PortComponentAttributes* other) { |
| 3935 | if (other == this) return; |
| 3936 | InternalSwap(other); |
| 3937 | } |
| 3938 | void PortComponentAttributes::InternalSwap(PortComponentAttributes* other) { |
| 3939 | using std::swap; |
| 3940 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3941 | physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3942 | GetArenaNoVirtual()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 3943 | mapping_label_.Swap(&other->mapping_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3944 | GetArenaNoVirtual()); |
| 3945 | swap(pon_id_config_, other->pon_id_config_); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3946 | swap(distance_, other->distance_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3947 | swap(connector_type_, other->connector_type_); |
| 3948 | swap(speed_, other->speed_); |
| 3949 | swap(protocol_, other->protocol_); |
Andrea Campanella | fcd2229 | 2021-08-27 10:45:46 +0200 | [diff] [blame] | 3950 | swap(speed_autonegotiation_, other->speed_autonegotiation_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 3951 | } |
| 3952 | |
| 3953 | ::google::protobuf::Metadata PortComponentAttributes::GetMetadata() const { |
| 3954 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 3955 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 3956 | } |
| 3957 | |
| 3958 | |
| 3959 | // =================================================================== |
| 3960 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 3961 | void PonDistance::InitAsDefaultInstance() { |
| 3962 | } |
| 3963 | class PonDistance::HasBitSetters { |
| 3964 | public: |
| 3965 | }; |
| 3966 | |
| 3967 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3968 | const int PonDistance::kMaxDistanceFieldNumber; |
| 3969 | const int PonDistance::kMaxDifferentialDistanceFieldNumber; |
| 3970 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3971 | |
| 3972 | PonDistance::PonDistance() |
| 3973 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3974 | SharedCtor(); |
| 3975 | // @@protoc_insertion_point(constructor:dmi.PonDistance) |
| 3976 | } |
| 3977 | PonDistance::PonDistance(const PonDistance& from) |
| 3978 | : ::google::protobuf::Message(), |
| 3979 | _internal_metadata_(nullptr) { |
| 3980 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3981 | ::memcpy(&max_distance_, &from.max_distance_, |
| 3982 | static_cast<size_t>(reinterpret_cast<char*>(&max_differential_distance_) - |
| 3983 | reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_)); |
| 3984 | // @@protoc_insertion_point(copy_constructor:dmi.PonDistance) |
| 3985 | } |
| 3986 | |
| 3987 | void PonDistance::SharedCtor() { |
| 3988 | ::memset(&max_distance_, 0, static_cast<size_t>( |
| 3989 | reinterpret_cast<char*>(&max_differential_distance_) - |
| 3990 | reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_)); |
| 3991 | } |
| 3992 | |
| 3993 | PonDistance::~PonDistance() { |
| 3994 | // @@protoc_insertion_point(destructor:dmi.PonDistance) |
| 3995 | SharedDtor(); |
| 3996 | } |
| 3997 | |
| 3998 | void PonDistance::SharedDtor() { |
| 3999 | } |
| 4000 | |
| 4001 | void PonDistance::SetCachedSize(int size) const { |
| 4002 | _cached_size_.Set(size); |
| 4003 | } |
| 4004 | const PonDistance& PonDistance::default_instance() { |
| 4005 | ::google::protobuf::internal::InitSCC(&::scc_info_PonDistance_dmi_2fhw_2eproto.base); |
| 4006 | return *internal_default_instance(); |
| 4007 | } |
| 4008 | |
| 4009 | |
| 4010 | void PonDistance::Clear() { |
| 4011 | // @@protoc_insertion_point(message_clear_start:dmi.PonDistance) |
| 4012 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4013 | // Prevent compiler warnings about cached_has_bits being unused |
| 4014 | (void) cached_has_bits; |
| 4015 | |
| 4016 | ::memset(&max_distance_, 0, static_cast<size_t>( |
| 4017 | reinterpret_cast<char*>(&max_differential_distance_) - |
| 4018 | reinterpret_cast<char*>(&max_distance_)) + sizeof(max_differential_distance_)); |
| 4019 | _internal_metadata_.Clear(); |
| 4020 | } |
| 4021 | |
| 4022 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4023 | const char* PonDistance::_InternalParse(const char* begin, const char* end, void* object, |
| 4024 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4025 | auto msg = static_cast<PonDistance*>(object); |
| 4026 | ::google::protobuf::int32 size; (void)size; |
| 4027 | int depth; (void)depth; |
| 4028 | ::google::protobuf::uint32 tag; |
| 4029 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4030 | auto ptr = begin; |
| 4031 | while (ptr < end) { |
| 4032 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4033 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4034 | switch (tag >> 3) { |
| 4035 | // uint32 max_distance = 1; |
| 4036 | case 1: { |
| 4037 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4038 | msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr)); |
| 4039 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4040 | break; |
| 4041 | } |
| 4042 | // uint32 max_differential_distance = 2; |
| 4043 | case 2: { |
| 4044 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4045 | msg->set_max_differential_distance(::google::protobuf::internal::ReadVarint(&ptr)); |
| 4046 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4047 | break; |
| 4048 | } |
| 4049 | default: { |
| 4050 | handle_unusual: |
| 4051 | if ((tag & 7) == 4 || tag == 0) { |
| 4052 | ctx->EndGroup(tag); |
| 4053 | return ptr; |
| 4054 | } |
| 4055 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4056 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4057 | ptr = res.first; |
| 4058 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4059 | if (res.second) return ptr; |
| 4060 | } |
| 4061 | } // switch |
| 4062 | } // while |
| 4063 | return ptr; |
| 4064 | } |
| 4065 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4066 | bool PonDistance::MergePartialFromCodedStream( |
| 4067 | ::google::protobuf::io::CodedInputStream* input) { |
| 4068 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4069 | ::google::protobuf::uint32 tag; |
| 4070 | // @@protoc_insertion_point(parse_start:dmi.PonDistance) |
| 4071 | for (;;) { |
| 4072 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4073 | tag = p.first; |
| 4074 | if (!p.second) goto handle_unusual; |
| 4075 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4076 | // uint32 max_distance = 1; |
| 4077 | case 1: { |
| 4078 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4079 | |
| 4080 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4081 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 4082 | input, &max_distance_))); |
| 4083 | } else { |
| 4084 | goto handle_unusual; |
| 4085 | } |
| 4086 | break; |
| 4087 | } |
| 4088 | |
| 4089 | // uint32 max_differential_distance = 2; |
| 4090 | case 2: { |
| 4091 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4092 | |
| 4093 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4094 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 4095 | input, &max_differential_distance_))); |
| 4096 | } else { |
| 4097 | goto handle_unusual; |
| 4098 | } |
| 4099 | break; |
| 4100 | } |
| 4101 | |
| 4102 | default: { |
| 4103 | handle_unusual: |
| 4104 | if (tag == 0) { |
| 4105 | goto success; |
| 4106 | } |
| 4107 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4108 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4109 | break; |
| 4110 | } |
| 4111 | } |
| 4112 | } |
| 4113 | success: |
| 4114 | // @@protoc_insertion_point(parse_success:dmi.PonDistance) |
| 4115 | return true; |
| 4116 | failure: |
| 4117 | // @@protoc_insertion_point(parse_failure:dmi.PonDistance) |
| 4118 | return false; |
| 4119 | #undef DO_ |
| 4120 | } |
| 4121 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4122 | |
| 4123 | void PonDistance::SerializeWithCachedSizes( |
| 4124 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4125 | // @@protoc_insertion_point(serialize_start:dmi.PonDistance) |
| 4126 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4127 | (void) cached_has_bits; |
| 4128 | |
| 4129 | // uint32 max_distance = 1; |
| 4130 | if (this->max_distance() != 0) { |
| 4131 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->max_distance(), output); |
| 4132 | } |
| 4133 | |
| 4134 | // uint32 max_differential_distance = 2; |
| 4135 | if (this->max_differential_distance() != 0) { |
| 4136 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->max_differential_distance(), output); |
| 4137 | } |
| 4138 | |
| 4139 | if (_internal_metadata_.have_unknown_fields()) { |
| 4140 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4141 | _internal_metadata_.unknown_fields(), output); |
| 4142 | } |
| 4143 | // @@protoc_insertion_point(serialize_end:dmi.PonDistance) |
| 4144 | } |
| 4145 | |
| 4146 | ::google::protobuf::uint8* PonDistance::InternalSerializeWithCachedSizesToArray( |
| 4147 | ::google::protobuf::uint8* target) const { |
| 4148 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PonDistance) |
| 4149 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4150 | (void) cached_has_bits; |
| 4151 | |
| 4152 | // uint32 max_distance = 1; |
| 4153 | if (this->max_distance() != 0) { |
| 4154 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->max_distance(), target); |
| 4155 | } |
| 4156 | |
| 4157 | // uint32 max_differential_distance = 2; |
| 4158 | if (this->max_differential_distance() != 0) { |
| 4159 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->max_differential_distance(), target); |
| 4160 | } |
| 4161 | |
| 4162 | if (_internal_metadata_.have_unknown_fields()) { |
| 4163 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4164 | _internal_metadata_.unknown_fields(), target); |
| 4165 | } |
| 4166 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PonDistance) |
| 4167 | return target; |
| 4168 | } |
| 4169 | |
| 4170 | size_t PonDistance::ByteSizeLong() const { |
| 4171 | // @@protoc_insertion_point(message_byte_size_start:dmi.PonDistance) |
| 4172 | size_t total_size = 0; |
| 4173 | |
| 4174 | if (_internal_metadata_.have_unknown_fields()) { |
| 4175 | total_size += |
| 4176 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4177 | _internal_metadata_.unknown_fields()); |
| 4178 | } |
| 4179 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4180 | // Prevent compiler warnings about cached_has_bits being unused |
| 4181 | (void) cached_has_bits; |
| 4182 | |
| 4183 | // uint32 max_distance = 1; |
| 4184 | if (this->max_distance() != 0) { |
| 4185 | total_size += 1 + |
| 4186 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 4187 | this->max_distance()); |
| 4188 | } |
| 4189 | |
| 4190 | // uint32 max_differential_distance = 2; |
| 4191 | if (this->max_differential_distance() != 0) { |
| 4192 | total_size += 1 + |
| 4193 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 4194 | this->max_differential_distance()); |
| 4195 | } |
| 4196 | |
| 4197 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4198 | SetCachedSize(cached_size); |
| 4199 | return total_size; |
| 4200 | } |
| 4201 | |
| 4202 | void PonDistance::MergeFrom(const ::google::protobuf::Message& from) { |
| 4203 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PonDistance) |
| 4204 | GOOGLE_DCHECK_NE(&from, this); |
| 4205 | const PonDistance* source = |
| 4206 | ::google::protobuf::DynamicCastToGenerated<PonDistance>( |
| 4207 | &from); |
| 4208 | if (source == nullptr) { |
| 4209 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PonDistance) |
| 4210 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4211 | } else { |
| 4212 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PonDistance) |
| 4213 | MergeFrom(*source); |
| 4214 | } |
| 4215 | } |
| 4216 | |
| 4217 | void PonDistance::MergeFrom(const PonDistance& from) { |
| 4218 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PonDistance) |
| 4219 | GOOGLE_DCHECK_NE(&from, this); |
| 4220 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4221 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4222 | (void) cached_has_bits; |
| 4223 | |
| 4224 | if (from.max_distance() != 0) { |
| 4225 | set_max_distance(from.max_distance()); |
| 4226 | } |
| 4227 | if (from.max_differential_distance() != 0) { |
| 4228 | set_max_differential_distance(from.max_differential_distance()); |
| 4229 | } |
| 4230 | } |
| 4231 | |
| 4232 | void PonDistance::CopyFrom(const ::google::protobuf::Message& from) { |
| 4233 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PonDistance) |
| 4234 | if (&from == this) return; |
| 4235 | Clear(); |
| 4236 | MergeFrom(from); |
| 4237 | } |
| 4238 | |
| 4239 | void PonDistance::CopyFrom(const PonDistance& from) { |
| 4240 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PonDistance) |
| 4241 | if (&from == this) return; |
| 4242 | Clear(); |
| 4243 | MergeFrom(from); |
| 4244 | } |
| 4245 | |
| 4246 | bool PonDistance::IsInitialized() const { |
| 4247 | return true; |
| 4248 | } |
| 4249 | |
| 4250 | void PonDistance::Swap(PonDistance* other) { |
| 4251 | if (other == this) return; |
| 4252 | InternalSwap(other); |
| 4253 | } |
| 4254 | void PonDistance::InternalSwap(PonDistance* other) { |
| 4255 | using std::swap; |
| 4256 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4257 | swap(max_distance_, other->max_distance_); |
| 4258 | swap(max_differential_distance_, other->max_differential_distance_); |
| 4259 | } |
| 4260 | |
| 4261 | ::google::protobuf::Metadata PonDistance::GetMetadata() const { |
| 4262 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4263 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4264 | } |
| 4265 | |
| 4266 | |
| 4267 | // =================================================================== |
| 4268 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4269 | void PortComponentChangeAttributes::InitAsDefaultInstance() { |
| 4270 | ::dmi::_PortComponentChangeAttributes_default_instance_._instance.get_mutable()->pon_id_config_ = const_cast< ::dmi::PonIdConfig*>( |
| 4271 | ::dmi::PonIdConfig::internal_default_instance()); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4272 | ::dmi::_PortComponentChangeAttributes_default_instance_._instance.get_mutable()->distance_ = const_cast< ::dmi::PonDistance*>( |
| 4273 | ::dmi::PonDistance::internal_default_instance()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4274 | } |
| 4275 | class PortComponentChangeAttributes::HasBitSetters { |
| 4276 | public: |
| 4277 | static const ::dmi::PonIdConfig& pon_id_config(const PortComponentChangeAttributes* msg); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4278 | static const ::dmi::PonDistance& distance(const PortComponentChangeAttributes* msg); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4279 | }; |
| 4280 | |
| 4281 | const ::dmi::PonIdConfig& |
| 4282 | PortComponentChangeAttributes::HasBitSetters::pon_id_config(const PortComponentChangeAttributes* msg) { |
| 4283 | return *msg->pon_id_config_; |
| 4284 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4285 | const ::dmi::PonDistance& |
| 4286 | PortComponentChangeAttributes::HasBitSetters::distance(const PortComponentChangeAttributes* msg) { |
| 4287 | return *msg->distance_; |
| 4288 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4289 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4290 | const int PortComponentChangeAttributes::kPonIdConfigFieldNumber; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4291 | const int PortComponentChangeAttributes::kDistanceFieldNumber; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4292 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4293 | |
| 4294 | PortComponentChangeAttributes::PortComponentChangeAttributes() |
| 4295 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4296 | SharedCtor(); |
| 4297 | // @@protoc_insertion_point(constructor:dmi.PortComponentChangeAttributes) |
| 4298 | } |
| 4299 | PortComponentChangeAttributes::PortComponentChangeAttributes(const PortComponentChangeAttributes& from) |
| 4300 | : ::google::protobuf::Message(), |
| 4301 | _internal_metadata_(nullptr) { |
| 4302 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4303 | if (from.has_pon_id_config()) { |
| 4304 | pon_id_config_ = new ::dmi::PonIdConfig(*from.pon_id_config_); |
| 4305 | } else { |
| 4306 | pon_id_config_ = nullptr; |
| 4307 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4308 | if (from.has_distance()) { |
| 4309 | distance_ = new ::dmi::PonDistance(*from.distance_); |
| 4310 | } else { |
| 4311 | distance_ = nullptr; |
| 4312 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4313 | // @@protoc_insertion_point(copy_constructor:dmi.PortComponentChangeAttributes) |
| 4314 | } |
| 4315 | |
| 4316 | void PortComponentChangeAttributes::SharedCtor() { |
| 4317 | ::google::protobuf::internal::InitSCC( |
| 4318 | &scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4319 | ::memset(&pon_id_config_, 0, static_cast<size_t>( |
| 4320 | reinterpret_cast<char*>(&distance_) - |
| 4321 | reinterpret_cast<char*>(&pon_id_config_)) + sizeof(distance_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4322 | } |
| 4323 | |
| 4324 | PortComponentChangeAttributes::~PortComponentChangeAttributes() { |
| 4325 | // @@protoc_insertion_point(destructor:dmi.PortComponentChangeAttributes) |
| 4326 | SharedDtor(); |
| 4327 | } |
| 4328 | |
| 4329 | void PortComponentChangeAttributes::SharedDtor() { |
| 4330 | if (this != internal_default_instance()) delete pon_id_config_; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4331 | if (this != internal_default_instance()) delete distance_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4332 | } |
| 4333 | |
| 4334 | void PortComponentChangeAttributes::SetCachedSize(int size) const { |
| 4335 | _cached_size_.Set(size); |
| 4336 | } |
| 4337 | const PortComponentChangeAttributes& PortComponentChangeAttributes::default_instance() { |
| 4338 | ::google::protobuf::internal::InitSCC(&::scc_info_PortComponentChangeAttributes_dmi_2fhw_2eproto.base); |
| 4339 | return *internal_default_instance(); |
| 4340 | } |
| 4341 | |
| 4342 | |
| 4343 | void PortComponentChangeAttributes::Clear() { |
| 4344 | // @@protoc_insertion_point(message_clear_start:dmi.PortComponentChangeAttributes) |
| 4345 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4346 | // Prevent compiler warnings about cached_has_bits being unused |
| 4347 | (void) cached_has_bits; |
| 4348 | |
| 4349 | if (GetArenaNoVirtual() == nullptr && pon_id_config_ != nullptr) { |
| 4350 | delete pon_id_config_; |
| 4351 | } |
| 4352 | pon_id_config_ = nullptr; |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4353 | if (GetArenaNoVirtual() == nullptr && distance_ != nullptr) { |
| 4354 | delete distance_; |
| 4355 | } |
| 4356 | distance_ = nullptr; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4357 | _internal_metadata_.Clear(); |
| 4358 | } |
| 4359 | |
| 4360 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4361 | const char* PortComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 4362 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4363 | auto msg = static_cast<PortComponentChangeAttributes*>(object); |
| 4364 | ::google::protobuf::int32 size; (void)size; |
| 4365 | int depth; (void)depth; |
| 4366 | ::google::protobuf::uint32 tag; |
| 4367 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4368 | auto ptr = begin; |
| 4369 | while (ptr < end) { |
| 4370 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4371 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4372 | switch (tag >> 3) { |
| 4373 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4374 | case 1: { |
| 4375 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4376 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4377 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4378 | parser_till_end = ::dmi::PonIdConfig::_InternalParse; |
| 4379 | object = msg->mutable_pon_id_config(); |
| 4380 | if (size > end - ptr) goto len_delim_till_end; |
| 4381 | ptr += size; |
| 4382 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4383 | {parser_till_end, object}, ptr - size, ptr)); |
| 4384 | break; |
| 4385 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4386 | // .dmi.PonDistance distance = 2; |
| 4387 | case 2: { |
| 4388 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 4389 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4390 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4391 | parser_till_end = ::dmi::PonDistance::_InternalParse; |
| 4392 | object = msg->mutable_distance(); |
| 4393 | if (size > end - ptr) goto len_delim_till_end; |
| 4394 | ptr += size; |
| 4395 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4396 | {parser_till_end, object}, ptr - size, ptr)); |
| 4397 | break; |
| 4398 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4399 | default: { |
| 4400 | handle_unusual: |
| 4401 | if ((tag & 7) == 4 || tag == 0) { |
| 4402 | ctx->EndGroup(tag); |
| 4403 | return ptr; |
| 4404 | } |
| 4405 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4406 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4407 | ptr = res.first; |
| 4408 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4409 | if (res.second) return ptr; |
| 4410 | } |
| 4411 | } // switch |
| 4412 | } // while |
| 4413 | return ptr; |
| 4414 | len_delim_till_end: |
| 4415 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4416 | {parser_till_end, object}, size); |
| 4417 | } |
| 4418 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4419 | bool PortComponentChangeAttributes::MergePartialFromCodedStream( |
| 4420 | ::google::protobuf::io::CodedInputStream* input) { |
| 4421 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4422 | ::google::protobuf::uint32 tag; |
| 4423 | // @@protoc_insertion_point(parse_start:dmi.PortComponentChangeAttributes) |
| 4424 | for (;;) { |
| 4425 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4426 | tag = p.first; |
| 4427 | if (!p.second) goto handle_unusual; |
| 4428 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4429 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4430 | case 1: { |
| 4431 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4432 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4433 | input, mutable_pon_id_config())); |
| 4434 | } else { |
| 4435 | goto handle_unusual; |
| 4436 | } |
| 4437 | break; |
| 4438 | } |
| 4439 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4440 | // .dmi.PonDistance distance = 2; |
| 4441 | case 2: { |
| 4442 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 4443 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4444 | input, mutable_distance())); |
| 4445 | } else { |
| 4446 | goto handle_unusual; |
| 4447 | } |
| 4448 | break; |
| 4449 | } |
| 4450 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4451 | default: { |
| 4452 | handle_unusual: |
| 4453 | if (tag == 0) { |
| 4454 | goto success; |
| 4455 | } |
| 4456 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4457 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4458 | break; |
| 4459 | } |
| 4460 | } |
| 4461 | } |
| 4462 | success: |
| 4463 | // @@protoc_insertion_point(parse_success:dmi.PortComponentChangeAttributes) |
| 4464 | return true; |
| 4465 | failure: |
| 4466 | // @@protoc_insertion_point(parse_failure:dmi.PortComponentChangeAttributes) |
| 4467 | return false; |
| 4468 | #undef DO_ |
| 4469 | } |
| 4470 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4471 | |
| 4472 | void PortComponentChangeAttributes::SerializeWithCachedSizes( |
| 4473 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4474 | // @@protoc_insertion_point(serialize_start:dmi.PortComponentChangeAttributes) |
| 4475 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4476 | (void) cached_has_bits; |
| 4477 | |
| 4478 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4479 | if (this->has_pon_id_config()) { |
| 4480 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4481 | 1, HasBitSetters::pon_id_config(this), output); |
| 4482 | } |
| 4483 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4484 | // .dmi.PonDistance distance = 2; |
| 4485 | if (this->has_distance()) { |
| 4486 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4487 | 2, HasBitSetters::distance(this), output); |
| 4488 | } |
| 4489 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4490 | if (_internal_metadata_.have_unknown_fields()) { |
| 4491 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4492 | _internal_metadata_.unknown_fields(), output); |
| 4493 | } |
| 4494 | // @@protoc_insertion_point(serialize_end:dmi.PortComponentChangeAttributes) |
| 4495 | } |
| 4496 | |
| 4497 | ::google::protobuf::uint8* PortComponentChangeAttributes::InternalSerializeWithCachedSizesToArray( |
| 4498 | ::google::protobuf::uint8* target) const { |
| 4499 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PortComponentChangeAttributes) |
| 4500 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4501 | (void) cached_has_bits; |
| 4502 | |
| 4503 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4504 | if (this->has_pon_id_config()) { |
| 4505 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4506 | InternalWriteMessageToArray( |
| 4507 | 1, HasBitSetters::pon_id_config(this), target); |
| 4508 | } |
| 4509 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4510 | // .dmi.PonDistance distance = 2; |
| 4511 | if (this->has_distance()) { |
| 4512 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4513 | InternalWriteMessageToArray( |
| 4514 | 2, HasBitSetters::distance(this), target); |
| 4515 | } |
| 4516 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4517 | if (_internal_metadata_.have_unknown_fields()) { |
| 4518 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4519 | _internal_metadata_.unknown_fields(), target); |
| 4520 | } |
| 4521 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PortComponentChangeAttributes) |
| 4522 | return target; |
| 4523 | } |
| 4524 | |
| 4525 | size_t PortComponentChangeAttributes::ByteSizeLong() const { |
| 4526 | // @@protoc_insertion_point(message_byte_size_start:dmi.PortComponentChangeAttributes) |
| 4527 | size_t total_size = 0; |
| 4528 | |
| 4529 | if (_internal_metadata_.have_unknown_fields()) { |
| 4530 | total_size += |
| 4531 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4532 | _internal_metadata_.unknown_fields()); |
| 4533 | } |
| 4534 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4535 | // Prevent compiler warnings about cached_has_bits being unused |
| 4536 | (void) cached_has_bits; |
| 4537 | |
| 4538 | // .dmi.PonIdConfig pon_id_config = 1; |
| 4539 | if (this->has_pon_id_config()) { |
| 4540 | total_size += 1 + |
| 4541 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4542 | *pon_id_config_); |
| 4543 | } |
| 4544 | |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4545 | // .dmi.PonDistance distance = 2; |
| 4546 | if (this->has_distance()) { |
| 4547 | total_size += 1 + |
| 4548 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4549 | *distance_); |
| 4550 | } |
| 4551 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4552 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4553 | SetCachedSize(cached_size); |
| 4554 | return total_size; |
| 4555 | } |
| 4556 | |
| 4557 | void PortComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 4558 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PortComponentChangeAttributes) |
| 4559 | GOOGLE_DCHECK_NE(&from, this); |
| 4560 | const PortComponentChangeAttributes* source = |
| 4561 | ::google::protobuf::DynamicCastToGenerated<PortComponentChangeAttributes>( |
| 4562 | &from); |
| 4563 | if (source == nullptr) { |
| 4564 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PortComponentChangeAttributes) |
| 4565 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4566 | } else { |
| 4567 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PortComponentChangeAttributes) |
| 4568 | MergeFrom(*source); |
| 4569 | } |
| 4570 | } |
| 4571 | |
| 4572 | void PortComponentChangeAttributes::MergeFrom(const PortComponentChangeAttributes& from) { |
| 4573 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PortComponentChangeAttributes) |
| 4574 | GOOGLE_DCHECK_NE(&from, this); |
| 4575 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4576 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4577 | (void) cached_has_bits; |
| 4578 | |
| 4579 | if (from.has_pon_id_config()) { |
| 4580 | mutable_pon_id_config()->::dmi::PonIdConfig::MergeFrom(from.pon_id_config()); |
| 4581 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4582 | if (from.has_distance()) { |
| 4583 | mutable_distance()->::dmi::PonDistance::MergeFrom(from.distance()); |
| 4584 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4585 | } |
| 4586 | |
| 4587 | void PortComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 4588 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PortComponentChangeAttributes) |
| 4589 | if (&from == this) return; |
| 4590 | Clear(); |
| 4591 | MergeFrom(from); |
| 4592 | } |
| 4593 | |
| 4594 | void PortComponentChangeAttributes::CopyFrom(const PortComponentChangeAttributes& from) { |
| 4595 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PortComponentChangeAttributes) |
| 4596 | if (&from == this) return; |
| 4597 | Clear(); |
| 4598 | MergeFrom(from); |
| 4599 | } |
| 4600 | |
| 4601 | bool PortComponentChangeAttributes::IsInitialized() const { |
| 4602 | return true; |
| 4603 | } |
| 4604 | |
| 4605 | void PortComponentChangeAttributes::Swap(PortComponentChangeAttributes* other) { |
| 4606 | if (other == this) return; |
| 4607 | InternalSwap(other); |
| 4608 | } |
| 4609 | void PortComponentChangeAttributes::InternalSwap(PortComponentChangeAttributes* other) { |
| 4610 | using std::swap; |
| 4611 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4612 | swap(pon_id_config_, other->pon_id_config_); |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 4613 | swap(distance_, other->distance_); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4614 | } |
| 4615 | |
| 4616 | ::google::protobuf::Metadata PortComponentChangeAttributes::GetMetadata() const { |
| 4617 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4618 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4619 | } |
| 4620 | |
| 4621 | |
| 4622 | // =================================================================== |
| 4623 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 4624 | void TransceiverComponentChangeAttributes::InitAsDefaultInstance() { |
| 4625 | } |
| 4626 | class TransceiverComponentChangeAttributes::HasBitSetters { |
| 4627 | public: |
| 4628 | }; |
| 4629 | |
| 4630 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4631 | const int TransceiverComponentChangeAttributes::kTransTypeFieldNumber; |
| 4632 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4633 | |
| 4634 | TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes() |
| 4635 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4636 | SharedCtor(); |
| 4637 | // @@protoc_insertion_point(constructor:dmi.TransceiverComponentChangeAttributes) |
| 4638 | } |
| 4639 | TransceiverComponentChangeAttributes::TransceiverComponentChangeAttributes(const TransceiverComponentChangeAttributes& from) |
| 4640 | : ::google::protobuf::Message(), |
| 4641 | _internal_metadata_(nullptr) { |
| 4642 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4643 | trans_type_ = from.trans_type_; |
| 4644 | // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentChangeAttributes) |
| 4645 | } |
| 4646 | |
| 4647 | void TransceiverComponentChangeAttributes::SharedCtor() { |
| 4648 | trans_type_ = 0; |
| 4649 | } |
| 4650 | |
| 4651 | TransceiverComponentChangeAttributes::~TransceiverComponentChangeAttributes() { |
| 4652 | // @@protoc_insertion_point(destructor:dmi.TransceiverComponentChangeAttributes) |
| 4653 | SharedDtor(); |
| 4654 | } |
| 4655 | |
| 4656 | void TransceiverComponentChangeAttributes::SharedDtor() { |
| 4657 | } |
| 4658 | |
| 4659 | void TransceiverComponentChangeAttributes::SetCachedSize(int size) const { |
| 4660 | _cached_size_.Set(size); |
| 4661 | } |
| 4662 | const TransceiverComponentChangeAttributes& TransceiverComponentChangeAttributes::default_instance() { |
| 4663 | ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentChangeAttributes_dmi_2fhw_2eproto.base); |
| 4664 | return *internal_default_instance(); |
| 4665 | } |
| 4666 | |
| 4667 | |
| 4668 | void TransceiverComponentChangeAttributes::Clear() { |
| 4669 | // @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentChangeAttributes) |
| 4670 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4671 | // Prevent compiler warnings about cached_has_bits being unused |
| 4672 | (void) cached_has_bits; |
| 4673 | |
| 4674 | trans_type_ = 0; |
| 4675 | _internal_metadata_.Clear(); |
| 4676 | } |
| 4677 | |
| 4678 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4679 | const char* TransceiverComponentChangeAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 4680 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4681 | auto msg = static_cast<TransceiverComponentChangeAttributes*>(object); |
| 4682 | ::google::protobuf::int32 size; (void)size; |
| 4683 | int depth; (void)depth; |
| 4684 | ::google::protobuf::uint32 tag; |
| 4685 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4686 | auto ptr = begin; |
| 4687 | while (ptr < end) { |
| 4688 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4689 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4690 | switch (tag >> 3) { |
| 4691 | // .dmi.TransceiverType trans_type = 1; |
| 4692 | case 1: { |
| 4693 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4694 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4695 | msg->set_trans_type(static_cast<::dmi::TransceiverType>(val)); |
| 4696 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4697 | break; |
| 4698 | } |
| 4699 | default: { |
| 4700 | handle_unusual: |
| 4701 | if ((tag & 7) == 4 || tag == 0) { |
| 4702 | ctx->EndGroup(tag); |
| 4703 | return ptr; |
| 4704 | } |
| 4705 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4706 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4707 | ptr = res.first; |
| 4708 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4709 | if (res.second) return ptr; |
| 4710 | } |
| 4711 | } // switch |
| 4712 | } // while |
| 4713 | return ptr; |
| 4714 | } |
| 4715 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4716 | bool TransceiverComponentChangeAttributes::MergePartialFromCodedStream( |
| 4717 | ::google::protobuf::io::CodedInputStream* input) { |
| 4718 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4719 | ::google::protobuf::uint32 tag; |
| 4720 | // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentChangeAttributes) |
| 4721 | for (;;) { |
| 4722 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4723 | tag = p.first; |
| 4724 | if (!p.second) goto handle_unusual; |
| 4725 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4726 | // .dmi.TransceiverType trans_type = 1; |
| 4727 | case 1: { |
| 4728 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4729 | int value = 0; |
| 4730 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4731 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4732 | input, &value))); |
| 4733 | set_trans_type(static_cast< ::dmi::TransceiverType >(value)); |
| 4734 | } else { |
| 4735 | goto handle_unusual; |
| 4736 | } |
| 4737 | break; |
| 4738 | } |
| 4739 | |
| 4740 | default: { |
| 4741 | handle_unusual: |
| 4742 | if (tag == 0) { |
| 4743 | goto success; |
| 4744 | } |
| 4745 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4746 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4747 | break; |
| 4748 | } |
| 4749 | } |
| 4750 | } |
| 4751 | success: |
| 4752 | // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentChangeAttributes) |
| 4753 | return true; |
| 4754 | failure: |
| 4755 | // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentChangeAttributes) |
| 4756 | return false; |
| 4757 | #undef DO_ |
| 4758 | } |
| 4759 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4760 | |
| 4761 | void TransceiverComponentChangeAttributes::SerializeWithCachedSizes( |
| 4762 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4763 | // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentChangeAttributes) |
| 4764 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4765 | (void) cached_has_bits; |
| 4766 | |
| 4767 | // .dmi.TransceiverType trans_type = 1; |
| 4768 | if (this->trans_type() != 0) { |
| 4769 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4770 | 1, this->trans_type(), output); |
| 4771 | } |
| 4772 | |
| 4773 | if (_internal_metadata_.have_unknown_fields()) { |
| 4774 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4775 | _internal_metadata_.unknown_fields(), output); |
| 4776 | } |
| 4777 | // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentChangeAttributes) |
| 4778 | } |
| 4779 | |
| 4780 | ::google::protobuf::uint8* TransceiverComponentChangeAttributes::InternalSerializeWithCachedSizesToArray( |
| 4781 | ::google::protobuf::uint8* target) const { |
| 4782 | // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentChangeAttributes) |
| 4783 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4784 | (void) cached_has_bits; |
| 4785 | |
| 4786 | // .dmi.TransceiverType trans_type = 1; |
| 4787 | if (this->trans_type() != 0) { |
| 4788 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4789 | 1, this->trans_type(), target); |
| 4790 | } |
| 4791 | |
| 4792 | if (_internal_metadata_.have_unknown_fields()) { |
| 4793 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4794 | _internal_metadata_.unknown_fields(), target); |
| 4795 | } |
| 4796 | // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentChangeAttributes) |
| 4797 | return target; |
| 4798 | } |
| 4799 | |
| 4800 | size_t TransceiverComponentChangeAttributes::ByteSizeLong() const { |
| 4801 | // @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentChangeAttributes) |
| 4802 | size_t total_size = 0; |
| 4803 | |
| 4804 | if (_internal_metadata_.have_unknown_fields()) { |
| 4805 | total_size += |
| 4806 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4807 | _internal_metadata_.unknown_fields()); |
| 4808 | } |
| 4809 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4810 | // Prevent compiler warnings about cached_has_bits being unused |
| 4811 | (void) cached_has_bits; |
| 4812 | |
| 4813 | // .dmi.TransceiverType trans_type = 1; |
| 4814 | if (this->trans_type() != 0) { |
| 4815 | total_size += 1 + |
| 4816 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type()); |
| 4817 | } |
| 4818 | |
| 4819 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4820 | SetCachedSize(cached_size); |
| 4821 | return total_size; |
| 4822 | } |
| 4823 | |
| 4824 | void TransceiverComponentChangeAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 4825 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4826 | GOOGLE_DCHECK_NE(&from, this); |
| 4827 | const TransceiverComponentChangeAttributes* source = |
| 4828 | ::google::protobuf::DynamicCastToGenerated<TransceiverComponentChangeAttributes>( |
| 4829 | &from); |
| 4830 | if (source == nullptr) { |
| 4831 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentChangeAttributes) |
| 4832 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4833 | } else { |
| 4834 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentChangeAttributes) |
| 4835 | MergeFrom(*source); |
| 4836 | } |
| 4837 | } |
| 4838 | |
| 4839 | void TransceiverComponentChangeAttributes::MergeFrom(const TransceiverComponentChangeAttributes& from) { |
| 4840 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4841 | GOOGLE_DCHECK_NE(&from, this); |
| 4842 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4843 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4844 | (void) cached_has_bits; |
| 4845 | |
| 4846 | if (from.trans_type() != 0) { |
| 4847 | set_trans_type(from.trans_type()); |
| 4848 | } |
| 4849 | } |
| 4850 | |
| 4851 | void TransceiverComponentChangeAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 4852 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4853 | if (&from == this) return; |
| 4854 | Clear(); |
| 4855 | MergeFrom(from); |
| 4856 | } |
| 4857 | |
| 4858 | void TransceiverComponentChangeAttributes::CopyFrom(const TransceiverComponentChangeAttributes& from) { |
| 4859 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentChangeAttributes) |
| 4860 | if (&from == this) return; |
| 4861 | Clear(); |
| 4862 | MergeFrom(from); |
| 4863 | } |
| 4864 | |
| 4865 | bool TransceiverComponentChangeAttributes::IsInitialized() const { |
| 4866 | return true; |
| 4867 | } |
| 4868 | |
| 4869 | void TransceiverComponentChangeAttributes::Swap(TransceiverComponentChangeAttributes* other) { |
| 4870 | if (other == this) return; |
| 4871 | InternalSwap(other); |
| 4872 | } |
| 4873 | void TransceiverComponentChangeAttributes::InternalSwap(TransceiverComponentChangeAttributes* other) { |
| 4874 | using std::swap; |
| 4875 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4876 | swap(trans_type_, other->trans_type_); |
| 4877 | } |
| 4878 | |
| 4879 | ::google::protobuf::Metadata TransceiverComponentChangeAttributes::GetMetadata() const { |
| 4880 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 4881 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 4882 | } |
| 4883 | |
| 4884 | |
| 4885 | // =================================================================== |
| 4886 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 4887 | void PonIdConfig::InitAsDefaultInstance() { |
| 4888 | } |
| 4889 | class PonIdConfig::HasBitSetters { |
| 4890 | public: |
| 4891 | }; |
| 4892 | |
| 4893 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4894 | const int PonIdConfig::kPonIdFieldNumber; |
| 4895 | const int PonIdConfig::kPonIdTransmitPeriodicityFieldNumber; |
| 4896 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4897 | |
| 4898 | PonIdConfig::PonIdConfig() |
| 4899 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4900 | SharedCtor(); |
| 4901 | // @@protoc_insertion_point(constructor:dmi.PonIdConfig) |
| 4902 | } |
| 4903 | PonIdConfig::PonIdConfig(const PonIdConfig& from) |
| 4904 | : ::google::protobuf::Message(), |
| 4905 | _internal_metadata_(nullptr) { |
| 4906 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4907 | pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4908 | if (from.pon_id().size() > 0) { |
| 4909 | pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_); |
| 4910 | } |
| 4911 | pon_id_transmit_periodicity_ = from.pon_id_transmit_periodicity_; |
| 4912 | // @@protoc_insertion_point(copy_constructor:dmi.PonIdConfig) |
| 4913 | } |
| 4914 | |
| 4915 | void PonIdConfig::SharedCtor() { |
| 4916 | ::google::protobuf::internal::InitSCC( |
| 4917 | &scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
| 4918 | pon_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4919 | pon_id_transmit_periodicity_ = 0u; |
| 4920 | } |
| 4921 | |
| 4922 | PonIdConfig::~PonIdConfig() { |
| 4923 | // @@protoc_insertion_point(destructor:dmi.PonIdConfig) |
| 4924 | SharedDtor(); |
| 4925 | } |
| 4926 | |
| 4927 | void PonIdConfig::SharedDtor() { |
| 4928 | pon_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4929 | } |
| 4930 | |
| 4931 | void PonIdConfig::SetCachedSize(int size) const { |
| 4932 | _cached_size_.Set(size); |
| 4933 | } |
| 4934 | const PonIdConfig& PonIdConfig::default_instance() { |
| 4935 | ::google::protobuf::internal::InitSCC(&::scc_info_PonIdConfig_dmi_2fhw_2eproto.base); |
| 4936 | return *internal_default_instance(); |
| 4937 | } |
| 4938 | |
| 4939 | |
| 4940 | void PonIdConfig::Clear() { |
| 4941 | // @@protoc_insertion_point(message_clear_start:dmi.PonIdConfig) |
| 4942 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4943 | // Prevent compiler warnings about cached_has_bits being unused |
| 4944 | (void) cached_has_bits; |
| 4945 | |
| 4946 | pon_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4947 | pon_id_transmit_periodicity_ = 0u; |
| 4948 | _internal_metadata_.Clear(); |
| 4949 | } |
| 4950 | |
| 4951 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4952 | const char* PonIdConfig::_InternalParse(const char* begin, const char* end, void* object, |
| 4953 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4954 | auto msg = static_cast<PonIdConfig*>(object); |
| 4955 | ::google::protobuf::int32 size; (void)size; |
| 4956 | int depth; (void)depth; |
| 4957 | ::google::protobuf::uint32 tag; |
| 4958 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4959 | auto ptr = begin; |
| 4960 | while (ptr < end) { |
| 4961 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4962 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4963 | switch (tag >> 3) { |
| 4964 | // bytes pon_id = 1; |
| 4965 | case 1: { |
| 4966 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4967 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4968 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4969 | object = msg->mutable_pon_id(); |
| 4970 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4971 | parser_till_end = ::google::protobuf::internal::GreedyStringParser; |
| 4972 | goto string_till_end; |
| 4973 | } |
| 4974 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); |
| 4975 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4976 | ptr += size; |
| 4977 | break; |
| 4978 | } |
| 4979 | // uint32 pon_id_transmit_periodicity = 2; |
| 4980 | case 2: { |
| 4981 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4982 | msg->set_pon_id_transmit_periodicity(::google::protobuf::internal::ReadVarint(&ptr)); |
| 4983 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4984 | break; |
| 4985 | } |
| 4986 | default: { |
| 4987 | handle_unusual: |
| 4988 | if ((tag & 7) == 4 || tag == 0) { |
| 4989 | ctx->EndGroup(tag); |
| 4990 | return ptr; |
| 4991 | } |
| 4992 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4993 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4994 | ptr = res.first; |
| 4995 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4996 | if (res.second) return ptr; |
| 4997 | } |
| 4998 | } // switch |
| 4999 | } // while |
| 5000 | return ptr; |
| 5001 | string_till_end: |
| 5002 | static_cast<::std::string*>(object)->clear(); |
| 5003 | static_cast<::std::string*>(object)->reserve(size); |
| 5004 | goto len_delim_till_end; |
| 5005 | len_delim_till_end: |
| 5006 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5007 | {parser_till_end, object}, size); |
| 5008 | } |
| 5009 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5010 | bool PonIdConfig::MergePartialFromCodedStream( |
| 5011 | ::google::protobuf::io::CodedInputStream* input) { |
| 5012 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5013 | ::google::protobuf::uint32 tag; |
| 5014 | // @@protoc_insertion_point(parse_start:dmi.PonIdConfig) |
| 5015 | for (;;) { |
| 5016 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5017 | tag = p.first; |
| 5018 | if (!p.second) goto handle_unusual; |
| 5019 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5020 | // bytes pon_id = 1; |
| 5021 | case 1: { |
| 5022 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5023 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 5024 | input, this->mutable_pon_id())); |
| 5025 | } else { |
| 5026 | goto handle_unusual; |
| 5027 | } |
| 5028 | break; |
| 5029 | } |
| 5030 | |
| 5031 | // uint32 pon_id_transmit_periodicity = 2; |
| 5032 | case 2: { |
| 5033 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5034 | |
| 5035 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5036 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 5037 | input, &pon_id_transmit_periodicity_))); |
| 5038 | } else { |
| 5039 | goto handle_unusual; |
| 5040 | } |
| 5041 | break; |
| 5042 | } |
| 5043 | |
| 5044 | default: { |
| 5045 | handle_unusual: |
| 5046 | if (tag == 0) { |
| 5047 | goto success; |
| 5048 | } |
| 5049 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5050 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5051 | break; |
| 5052 | } |
| 5053 | } |
| 5054 | } |
| 5055 | success: |
| 5056 | // @@protoc_insertion_point(parse_success:dmi.PonIdConfig) |
| 5057 | return true; |
| 5058 | failure: |
| 5059 | // @@protoc_insertion_point(parse_failure:dmi.PonIdConfig) |
| 5060 | return false; |
| 5061 | #undef DO_ |
| 5062 | } |
| 5063 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5064 | |
| 5065 | void PonIdConfig::SerializeWithCachedSizes( |
| 5066 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5067 | // @@protoc_insertion_point(serialize_start:dmi.PonIdConfig) |
| 5068 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5069 | (void) cached_has_bits; |
| 5070 | |
| 5071 | // bytes pon_id = 1; |
| 5072 | if (this->pon_id().size() > 0) { |
| 5073 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
| 5074 | 1, this->pon_id(), output); |
| 5075 | } |
| 5076 | |
| 5077 | // uint32 pon_id_transmit_periodicity = 2; |
| 5078 | if (this->pon_id_transmit_periodicity() != 0) { |
| 5079 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->pon_id_transmit_periodicity(), output); |
| 5080 | } |
| 5081 | |
| 5082 | if (_internal_metadata_.have_unknown_fields()) { |
| 5083 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5084 | _internal_metadata_.unknown_fields(), output); |
| 5085 | } |
| 5086 | // @@protoc_insertion_point(serialize_end:dmi.PonIdConfig) |
| 5087 | } |
| 5088 | |
| 5089 | ::google::protobuf::uint8* PonIdConfig::InternalSerializeWithCachedSizesToArray( |
| 5090 | ::google::protobuf::uint8* target) const { |
| 5091 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PonIdConfig) |
| 5092 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5093 | (void) cached_has_bits; |
| 5094 | |
| 5095 | // bytes pon_id = 1; |
| 5096 | if (this->pon_id().size() > 0) { |
| 5097 | target = |
| 5098 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
| 5099 | 1, this->pon_id(), target); |
| 5100 | } |
| 5101 | |
| 5102 | // uint32 pon_id_transmit_periodicity = 2; |
| 5103 | if (this->pon_id_transmit_periodicity() != 0) { |
| 5104 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->pon_id_transmit_periodicity(), target); |
| 5105 | } |
| 5106 | |
| 5107 | if (_internal_metadata_.have_unknown_fields()) { |
| 5108 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5109 | _internal_metadata_.unknown_fields(), target); |
| 5110 | } |
| 5111 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PonIdConfig) |
| 5112 | return target; |
| 5113 | } |
| 5114 | |
| 5115 | size_t PonIdConfig::ByteSizeLong() const { |
| 5116 | // @@protoc_insertion_point(message_byte_size_start:dmi.PonIdConfig) |
| 5117 | size_t total_size = 0; |
| 5118 | |
| 5119 | if (_internal_metadata_.have_unknown_fields()) { |
| 5120 | total_size += |
| 5121 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5122 | _internal_metadata_.unknown_fields()); |
| 5123 | } |
| 5124 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5125 | // Prevent compiler warnings about cached_has_bits being unused |
| 5126 | (void) cached_has_bits; |
| 5127 | |
| 5128 | // bytes pon_id = 1; |
| 5129 | if (this->pon_id().size() > 0) { |
| 5130 | total_size += 1 + |
| 5131 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 5132 | this->pon_id()); |
| 5133 | } |
| 5134 | |
| 5135 | // uint32 pon_id_transmit_periodicity = 2; |
| 5136 | if (this->pon_id_transmit_periodicity() != 0) { |
| 5137 | total_size += 1 + |
| 5138 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 5139 | this->pon_id_transmit_periodicity()); |
| 5140 | } |
| 5141 | |
| 5142 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5143 | SetCachedSize(cached_size); |
| 5144 | return total_size; |
| 5145 | } |
| 5146 | |
| 5147 | void PonIdConfig::MergeFrom(const ::google::protobuf::Message& from) { |
| 5148 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PonIdConfig) |
| 5149 | GOOGLE_DCHECK_NE(&from, this); |
| 5150 | const PonIdConfig* source = |
| 5151 | ::google::protobuf::DynamicCastToGenerated<PonIdConfig>( |
| 5152 | &from); |
| 5153 | if (source == nullptr) { |
| 5154 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PonIdConfig) |
| 5155 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5156 | } else { |
| 5157 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PonIdConfig) |
| 5158 | MergeFrom(*source); |
| 5159 | } |
| 5160 | } |
| 5161 | |
| 5162 | void PonIdConfig::MergeFrom(const PonIdConfig& from) { |
| 5163 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PonIdConfig) |
| 5164 | GOOGLE_DCHECK_NE(&from, this); |
| 5165 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5166 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5167 | (void) cached_has_bits; |
| 5168 | |
| 5169 | if (from.pon_id().size() > 0) { |
| 5170 | |
| 5171 | pon_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pon_id_); |
| 5172 | } |
| 5173 | if (from.pon_id_transmit_periodicity() != 0) { |
| 5174 | set_pon_id_transmit_periodicity(from.pon_id_transmit_periodicity()); |
| 5175 | } |
| 5176 | } |
| 5177 | |
| 5178 | void PonIdConfig::CopyFrom(const ::google::protobuf::Message& from) { |
| 5179 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PonIdConfig) |
| 5180 | if (&from == this) return; |
| 5181 | Clear(); |
| 5182 | MergeFrom(from); |
| 5183 | } |
| 5184 | |
| 5185 | void PonIdConfig::CopyFrom(const PonIdConfig& from) { |
| 5186 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PonIdConfig) |
| 5187 | if (&from == this) return; |
| 5188 | Clear(); |
| 5189 | MergeFrom(from); |
| 5190 | } |
| 5191 | |
| 5192 | bool PonIdConfig::IsInitialized() const { |
| 5193 | return true; |
| 5194 | } |
| 5195 | |
| 5196 | void PonIdConfig::Swap(PonIdConfig* other) { |
| 5197 | if (other == this) return; |
| 5198 | InternalSwap(other); |
| 5199 | } |
| 5200 | void PonIdConfig::InternalSwap(PonIdConfig* other) { |
| 5201 | using std::swap; |
| 5202 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5203 | pon_id_.Swap(&other->pon_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5204 | GetArenaNoVirtual()); |
| 5205 | swap(pon_id_transmit_periodicity_, other->pon_id_transmit_periodicity_); |
| 5206 | } |
| 5207 | |
| 5208 | ::google::protobuf::Metadata PonIdConfig::GetMetadata() const { |
| 5209 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5210 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5211 | } |
| 5212 | |
| 5213 | |
| 5214 | // =================================================================== |
| 5215 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5216 | void ContainerComponentAttributes::InitAsDefaultInstance() { |
| 5217 | } |
| 5218 | class ContainerComponentAttributes::HasBitSetters { |
| 5219 | public: |
| 5220 | }; |
| 5221 | |
| 5222 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5223 | const int ContainerComponentAttributes::kPhysicalLabelFieldNumber; |
| 5224 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5225 | |
| 5226 | ContainerComponentAttributes::ContainerComponentAttributes() |
| 5227 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5228 | SharedCtor(); |
| 5229 | // @@protoc_insertion_point(constructor:dmi.ContainerComponentAttributes) |
| 5230 | } |
| 5231 | ContainerComponentAttributes::ContainerComponentAttributes(const ContainerComponentAttributes& from) |
| 5232 | : ::google::protobuf::Message(), |
| 5233 | _internal_metadata_(nullptr) { |
| 5234 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5235 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5236 | if (from.physical_label().size() > 0) { |
| 5237 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 5238 | } |
| 5239 | // @@protoc_insertion_point(copy_constructor:dmi.ContainerComponentAttributes) |
| 5240 | } |
| 5241 | |
| 5242 | void ContainerComponentAttributes::SharedCtor() { |
| 5243 | ::google::protobuf::internal::InitSCC( |
| 5244 | &scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 5245 | physical_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5246 | } |
| 5247 | |
| 5248 | ContainerComponentAttributes::~ContainerComponentAttributes() { |
| 5249 | // @@protoc_insertion_point(destructor:dmi.ContainerComponentAttributes) |
| 5250 | SharedDtor(); |
| 5251 | } |
| 5252 | |
| 5253 | void ContainerComponentAttributes::SharedDtor() { |
| 5254 | physical_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5255 | } |
| 5256 | |
| 5257 | void ContainerComponentAttributes::SetCachedSize(int size) const { |
| 5258 | _cached_size_.Set(size); |
| 5259 | } |
| 5260 | const ContainerComponentAttributes& ContainerComponentAttributes::default_instance() { |
| 5261 | ::google::protobuf::internal::InitSCC(&::scc_info_ContainerComponentAttributes_dmi_2fhw_2eproto.base); |
| 5262 | return *internal_default_instance(); |
| 5263 | } |
| 5264 | |
| 5265 | |
| 5266 | void ContainerComponentAttributes::Clear() { |
| 5267 | // @@protoc_insertion_point(message_clear_start:dmi.ContainerComponentAttributes) |
| 5268 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5269 | // Prevent compiler warnings about cached_has_bits being unused |
| 5270 | (void) cached_has_bits; |
| 5271 | |
| 5272 | physical_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5273 | _internal_metadata_.Clear(); |
| 5274 | } |
| 5275 | |
| 5276 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5277 | const char* ContainerComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 5278 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5279 | auto msg = static_cast<ContainerComponentAttributes*>(object); |
| 5280 | ::google::protobuf::int32 size; (void)size; |
| 5281 | int depth; (void)depth; |
| 5282 | ::google::protobuf::uint32 tag; |
| 5283 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5284 | auto ptr = begin; |
| 5285 | while (ptr < end) { |
| 5286 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5287 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5288 | switch (tag >> 3) { |
| 5289 | // string physical_label = 1; |
| 5290 | case 1: { |
| 5291 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5292 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5293 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5294 | ctx->extra_parse_data().SetFieldName("dmi.ContainerComponentAttributes.physical_label"); |
| 5295 | object = msg->mutable_physical_label(); |
| 5296 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5297 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5298 | goto string_till_end; |
| 5299 | } |
| 5300 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5301 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5302 | ptr += size; |
| 5303 | break; |
| 5304 | } |
| 5305 | default: { |
| 5306 | handle_unusual: |
| 5307 | if ((tag & 7) == 4 || tag == 0) { |
| 5308 | ctx->EndGroup(tag); |
| 5309 | return ptr; |
| 5310 | } |
| 5311 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5312 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5313 | ptr = res.first; |
| 5314 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5315 | if (res.second) return ptr; |
| 5316 | } |
| 5317 | } // switch |
| 5318 | } // while |
| 5319 | return ptr; |
| 5320 | string_till_end: |
| 5321 | static_cast<::std::string*>(object)->clear(); |
| 5322 | static_cast<::std::string*>(object)->reserve(size); |
| 5323 | goto len_delim_till_end; |
| 5324 | len_delim_till_end: |
| 5325 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5326 | {parser_till_end, object}, size); |
| 5327 | } |
| 5328 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5329 | bool ContainerComponentAttributes::MergePartialFromCodedStream( |
| 5330 | ::google::protobuf::io::CodedInputStream* input) { |
| 5331 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5332 | ::google::protobuf::uint32 tag; |
| 5333 | // @@protoc_insertion_point(parse_start:dmi.ContainerComponentAttributes) |
| 5334 | for (;;) { |
| 5335 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5336 | tag = p.first; |
| 5337 | if (!p.second) goto handle_unusual; |
| 5338 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5339 | // string physical_label = 1; |
| 5340 | case 1: { |
| 5341 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5342 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5343 | input, this->mutable_physical_label())); |
| 5344 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5345 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 5346 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5347 | "dmi.ContainerComponentAttributes.physical_label")); |
| 5348 | } else { |
| 5349 | goto handle_unusual; |
| 5350 | } |
| 5351 | break; |
| 5352 | } |
| 5353 | |
| 5354 | default: { |
| 5355 | handle_unusual: |
| 5356 | if (tag == 0) { |
| 5357 | goto success; |
| 5358 | } |
| 5359 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5360 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5361 | break; |
| 5362 | } |
| 5363 | } |
| 5364 | } |
| 5365 | success: |
| 5366 | // @@protoc_insertion_point(parse_success:dmi.ContainerComponentAttributes) |
| 5367 | return true; |
| 5368 | failure: |
| 5369 | // @@protoc_insertion_point(parse_failure:dmi.ContainerComponentAttributes) |
| 5370 | return false; |
| 5371 | #undef DO_ |
| 5372 | } |
| 5373 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5374 | |
| 5375 | void ContainerComponentAttributes::SerializeWithCachedSizes( |
| 5376 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5377 | // @@protoc_insertion_point(serialize_start:dmi.ContainerComponentAttributes) |
| 5378 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5379 | (void) cached_has_bits; |
| 5380 | |
| 5381 | // string physical_label = 1; |
| 5382 | if (this->physical_label().size() > 0) { |
| 5383 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5384 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 5385 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5386 | "dmi.ContainerComponentAttributes.physical_label"); |
| 5387 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5388 | 1, this->physical_label(), output); |
| 5389 | } |
| 5390 | |
| 5391 | if (_internal_metadata_.have_unknown_fields()) { |
| 5392 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5393 | _internal_metadata_.unknown_fields(), output); |
| 5394 | } |
| 5395 | // @@protoc_insertion_point(serialize_end:dmi.ContainerComponentAttributes) |
| 5396 | } |
| 5397 | |
| 5398 | ::google::protobuf::uint8* ContainerComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 5399 | ::google::protobuf::uint8* target) const { |
| 5400 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ContainerComponentAttributes) |
| 5401 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5402 | (void) cached_has_bits; |
| 5403 | |
| 5404 | // string physical_label = 1; |
| 5405 | if (this->physical_label().size() > 0) { |
| 5406 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5407 | this->physical_label().data(), static_cast<int>(this->physical_label().length()), |
| 5408 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5409 | "dmi.ContainerComponentAttributes.physical_label"); |
| 5410 | target = |
| 5411 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5412 | 1, this->physical_label(), target); |
| 5413 | } |
| 5414 | |
| 5415 | if (_internal_metadata_.have_unknown_fields()) { |
| 5416 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5417 | _internal_metadata_.unknown_fields(), target); |
| 5418 | } |
| 5419 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ContainerComponentAttributes) |
| 5420 | return target; |
| 5421 | } |
| 5422 | |
| 5423 | size_t ContainerComponentAttributes::ByteSizeLong() const { |
| 5424 | // @@protoc_insertion_point(message_byte_size_start:dmi.ContainerComponentAttributes) |
| 5425 | size_t total_size = 0; |
| 5426 | |
| 5427 | if (_internal_metadata_.have_unknown_fields()) { |
| 5428 | total_size += |
| 5429 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5430 | _internal_metadata_.unknown_fields()); |
| 5431 | } |
| 5432 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5433 | // Prevent compiler warnings about cached_has_bits being unused |
| 5434 | (void) cached_has_bits; |
| 5435 | |
| 5436 | // string physical_label = 1; |
| 5437 | if (this->physical_label().size() > 0) { |
| 5438 | total_size += 1 + |
| 5439 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5440 | this->physical_label()); |
| 5441 | } |
| 5442 | |
| 5443 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5444 | SetCachedSize(cached_size); |
| 5445 | return total_size; |
| 5446 | } |
| 5447 | |
| 5448 | void ContainerComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 5449 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ContainerComponentAttributes) |
| 5450 | GOOGLE_DCHECK_NE(&from, this); |
| 5451 | const ContainerComponentAttributes* source = |
| 5452 | ::google::protobuf::DynamicCastToGenerated<ContainerComponentAttributes>( |
| 5453 | &from); |
| 5454 | if (source == nullptr) { |
| 5455 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ContainerComponentAttributes) |
| 5456 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5457 | } else { |
| 5458 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ContainerComponentAttributes) |
| 5459 | MergeFrom(*source); |
| 5460 | } |
| 5461 | } |
| 5462 | |
| 5463 | void ContainerComponentAttributes::MergeFrom(const ContainerComponentAttributes& from) { |
| 5464 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ContainerComponentAttributes) |
| 5465 | GOOGLE_DCHECK_NE(&from, this); |
| 5466 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5467 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5468 | (void) cached_has_bits; |
| 5469 | |
| 5470 | if (from.physical_label().size() > 0) { |
| 5471 | |
| 5472 | physical_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.physical_label_); |
| 5473 | } |
| 5474 | } |
| 5475 | |
| 5476 | void ContainerComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 5477 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ContainerComponentAttributes) |
| 5478 | if (&from == this) return; |
| 5479 | Clear(); |
| 5480 | MergeFrom(from); |
| 5481 | } |
| 5482 | |
| 5483 | void ContainerComponentAttributes::CopyFrom(const ContainerComponentAttributes& from) { |
| 5484 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ContainerComponentAttributes) |
| 5485 | if (&from == this) return; |
| 5486 | Clear(); |
| 5487 | MergeFrom(from); |
| 5488 | } |
| 5489 | |
| 5490 | bool ContainerComponentAttributes::IsInitialized() const { |
| 5491 | return true; |
| 5492 | } |
| 5493 | |
| 5494 | void ContainerComponentAttributes::Swap(ContainerComponentAttributes* other) { |
| 5495 | if (other == this) return; |
| 5496 | InternalSwap(other); |
| 5497 | } |
| 5498 | void ContainerComponentAttributes::InternalSwap(ContainerComponentAttributes* other) { |
| 5499 | using std::swap; |
| 5500 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5501 | physical_label_.Swap(&other->physical_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5502 | GetArenaNoVirtual()); |
| 5503 | } |
| 5504 | |
| 5505 | ::google::protobuf::Metadata ContainerComponentAttributes::GetMetadata() const { |
| 5506 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5507 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5508 | } |
| 5509 | |
| 5510 | |
| 5511 | // =================================================================== |
| 5512 | |
| 5513 | void PsuComponentAttributes::InitAsDefaultInstance() { |
| 5514 | } |
| 5515 | class PsuComponentAttributes::HasBitSetters { |
| 5516 | public: |
| 5517 | }; |
| 5518 | |
| 5519 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5520 | const int PsuComponentAttributes::kSupportedVoltageFieldNumber; |
| 5521 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5522 | |
| 5523 | PsuComponentAttributes::PsuComponentAttributes() |
| 5524 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5525 | SharedCtor(); |
| 5526 | // @@protoc_insertion_point(constructor:dmi.PsuComponentAttributes) |
| 5527 | } |
| 5528 | PsuComponentAttributes::PsuComponentAttributes(const PsuComponentAttributes& from) |
| 5529 | : ::google::protobuf::Message(), |
| 5530 | _internal_metadata_(nullptr) { |
| 5531 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5532 | supported_voltage_ = from.supported_voltage_; |
| 5533 | // @@protoc_insertion_point(copy_constructor:dmi.PsuComponentAttributes) |
| 5534 | } |
| 5535 | |
| 5536 | void PsuComponentAttributes::SharedCtor() { |
| 5537 | supported_voltage_ = 0; |
| 5538 | } |
| 5539 | |
| 5540 | PsuComponentAttributes::~PsuComponentAttributes() { |
| 5541 | // @@protoc_insertion_point(destructor:dmi.PsuComponentAttributes) |
| 5542 | SharedDtor(); |
| 5543 | } |
| 5544 | |
| 5545 | void PsuComponentAttributes::SharedDtor() { |
| 5546 | } |
| 5547 | |
| 5548 | void PsuComponentAttributes::SetCachedSize(int size) const { |
| 5549 | _cached_size_.Set(size); |
| 5550 | } |
| 5551 | const PsuComponentAttributes& PsuComponentAttributes::default_instance() { |
| 5552 | ::google::protobuf::internal::InitSCC(&::scc_info_PsuComponentAttributes_dmi_2fhw_2eproto.base); |
| 5553 | return *internal_default_instance(); |
| 5554 | } |
| 5555 | |
| 5556 | |
| 5557 | void PsuComponentAttributes::Clear() { |
| 5558 | // @@protoc_insertion_point(message_clear_start:dmi.PsuComponentAttributes) |
| 5559 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5560 | // Prevent compiler warnings about cached_has_bits being unused |
| 5561 | (void) cached_has_bits; |
| 5562 | |
| 5563 | supported_voltage_ = 0; |
| 5564 | _internal_metadata_.Clear(); |
| 5565 | } |
| 5566 | |
| 5567 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5568 | const char* PsuComponentAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 5569 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5570 | auto msg = static_cast<PsuComponentAttributes*>(object); |
| 5571 | ::google::protobuf::int32 size; (void)size; |
| 5572 | int depth; (void)depth; |
| 5573 | ::google::protobuf::uint32 tag; |
| 5574 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5575 | auto ptr = begin; |
| 5576 | while (ptr < end) { |
| 5577 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5578 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5579 | switch (tag >> 3) { |
| 5580 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5581 | case 1: { |
| 5582 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5583 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5584 | msg->set_supported_voltage(static_cast<::dmi::PsuComponentAttributes_SupportedVoltage>(val)); |
| 5585 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5586 | break; |
| 5587 | } |
| 5588 | default: { |
| 5589 | handle_unusual: |
| 5590 | if ((tag & 7) == 4 || tag == 0) { |
| 5591 | ctx->EndGroup(tag); |
| 5592 | return ptr; |
| 5593 | } |
| 5594 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5595 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5596 | ptr = res.first; |
| 5597 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5598 | if (res.second) return ptr; |
| 5599 | } |
| 5600 | } // switch |
| 5601 | } // while |
| 5602 | return ptr; |
| 5603 | } |
| 5604 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5605 | bool PsuComponentAttributes::MergePartialFromCodedStream( |
| 5606 | ::google::protobuf::io::CodedInputStream* input) { |
| 5607 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5608 | ::google::protobuf::uint32 tag; |
| 5609 | // @@protoc_insertion_point(parse_start:dmi.PsuComponentAttributes) |
| 5610 | for (;;) { |
| 5611 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5612 | tag = p.first; |
| 5613 | if (!p.second) goto handle_unusual; |
| 5614 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5615 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5616 | case 1: { |
| 5617 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5618 | int value = 0; |
| 5619 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5620 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5621 | input, &value))); |
| 5622 | set_supported_voltage(static_cast< ::dmi::PsuComponentAttributes_SupportedVoltage >(value)); |
| 5623 | } else { |
| 5624 | goto handle_unusual; |
| 5625 | } |
| 5626 | break; |
| 5627 | } |
| 5628 | |
| 5629 | default: { |
| 5630 | handle_unusual: |
| 5631 | if (tag == 0) { |
| 5632 | goto success; |
| 5633 | } |
| 5634 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5635 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5636 | break; |
| 5637 | } |
| 5638 | } |
| 5639 | } |
| 5640 | success: |
| 5641 | // @@protoc_insertion_point(parse_success:dmi.PsuComponentAttributes) |
| 5642 | return true; |
| 5643 | failure: |
| 5644 | // @@protoc_insertion_point(parse_failure:dmi.PsuComponentAttributes) |
| 5645 | return false; |
| 5646 | #undef DO_ |
| 5647 | } |
| 5648 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5649 | |
| 5650 | void PsuComponentAttributes::SerializeWithCachedSizes( |
| 5651 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5652 | // @@protoc_insertion_point(serialize_start:dmi.PsuComponentAttributes) |
| 5653 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5654 | (void) cached_has_bits; |
| 5655 | |
| 5656 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5657 | if (this->supported_voltage() != 0) { |
| 5658 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5659 | 1, this->supported_voltage(), output); |
| 5660 | } |
| 5661 | |
| 5662 | if (_internal_metadata_.have_unknown_fields()) { |
| 5663 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5664 | _internal_metadata_.unknown_fields(), output); |
| 5665 | } |
| 5666 | // @@protoc_insertion_point(serialize_end:dmi.PsuComponentAttributes) |
| 5667 | } |
| 5668 | |
| 5669 | ::google::protobuf::uint8* PsuComponentAttributes::InternalSerializeWithCachedSizesToArray( |
| 5670 | ::google::protobuf::uint8* target) const { |
| 5671 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PsuComponentAttributes) |
| 5672 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5673 | (void) cached_has_bits; |
| 5674 | |
| 5675 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5676 | if (this->supported_voltage() != 0) { |
| 5677 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5678 | 1, this->supported_voltage(), target); |
| 5679 | } |
| 5680 | |
| 5681 | if (_internal_metadata_.have_unknown_fields()) { |
| 5682 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5683 | _internal_metadata_.unknown_fields(), target); |
| 5684 | } |
| 5685 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PsuComponentAttributes) |
| 5686 | return target; |
| 5687 | } |
| 5688 | |
| 5689 | size_t PsuComponentAttributes::ByteSizeLong() const { |
| 5690 | // @@protoc_insertion_point(message_byte_size_start:dmi.PsuComponentAttributes) |
| 5691 | size_t total_size = 0; |
| 5692 | |
| 5693 | if (_internal_metadata_.have_unknown_fields()) { |
| 5694 | total_size += |
| 5695 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5696 | _internal_metadata_.unknown_fields()); |
| 5697 | } |
| 5698 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5699 | // Prevent compiler warnings about cached_has_bits being unused |
| 5700 | (void) cached_has_bits; |
| 5701 | |
| 5702 | // .dmi.PsuComponentAttributes.SupportedVoltage supported_voltage = 1; |
| 5703 | if (this->supported_voltage() != 0) { |
| 5704 | total_size += 1 + |
| 5705 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->supported_voltage()); |
| 5706 | } |
| 5707 | |
| 5708 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5709 | SetCachedSize(cached_size); |
| 5710 | return total_size; |
| 5711 | } |
| 5712 | |
| 5713 | void PsuComponentAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 5714 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PsuComponentAttributes) |
| 5715 | GOOGLE_DCHECK_NE(&from, this); |
| 5716 | const PsuComponentAttributes* source = |
| 5717 | ::google::protobuf::DynamicCastToGenerated<PsuComponentAttributes>( |
| 5718 | &from); |
| 5719 | if (source == nullptr) { |
| 5720 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PsuComponentAttributes) |
| 5721 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5722 | } else { |
| 5723 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PsuComponentAttributes) |
| 5724 | MergeFrom(*source); |
| 5725 | } |
| 5726 | } |
| 5727 | |
| 5728 | void PsuComponentAttributes::MergeFrom(const PsuComponentAttributes& from) { |
| 5729 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PsuComponentAttributes) |
| 5730 | GOOGLE_DCHECK_NE(&from, this); |
| 5731 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5732 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5733 | (void) cached_has_bits; |
| 5734 | |
| 5735 | if (from.supported_voltage() != 0) { |
| 5736 | set_supported_voltage(from.supported_voltage()); |
| 5737 | } |
| 5738 | } |
| 5739 | |
| 5740 | void PsuComponentAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 5741 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PsuComponentAttributes) |
| 5742 | if (&from == this) return; |
| 5743 | Clear(); |
| 5744 | MergeFrom(from); |
| 5745 | } |
| 5746 | |
| 5747 | void PsuComponentAttributes::CopyFrom(const PsuComponentAttributes& from) { |
| 5748 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PsuComponentAttributes) |
| 5749 | if (&from == this) return; |
| 5750 | Clear(); |
| 5751 | MergeFrom(from); |
| 5752 | } |
| 5753 | |
| 5754 | bool PsuComponentAttributes::IsInitialized() const { |
| 5755 | return true; |
| 5756 | } |
| 5757 | |
| 5758 | void PsuComponentAttributes::Swap(PsuComponentAttributes* other) { |
| 5759 | if (other == this) return; |
| 5760 | InternalSwap(other); |
| 5761 | } |
| 5762 | void PsuComponentAttributes::InternalSwap(PsuComponentAttributes* other) { |
| 5763 | using std::swap; |
| 5764 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5765 | swap(supported_voltage_, other->supported_voltage_); |
| 5766 | } |
| 5767 | |
| 5768 | ::google::protobuf::Metadata PsuComponentAttributes::GetMetadata() const { |
| 5769 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 5770 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 5771 | } |
| 5772 | |
| 5773 | |
| 5774 | // =================================================================== |
| 5775 | |
| 5776 | void TransceiverComponentsAttributes::InitAsDefaultInstance() { |
| 5777 | } |
| 5778 | class TransceiverComponentsAttributes::HasBitSetters { |
| 5779 | public: |
| 5780 | }; |
| 5781 | |
| 5782 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5783 | const int TransceiverComponentsAttributes::kFormFactorFieldNumber; |
| 5784 | const int TransceiverComponentsAttributes::kTransTypeFieldNumber; |
| 5785 | const int TransceiverComponentsAttributes::kMaxDistanceFieldNumber; |
| 5786 | const int TransceiverComponentsAttributes::kMaxDistanceScaleFieldNumber; |
| 5787 | const int TransceiverComponentsAttributes::kRxWavelengthFieldNumber; |
| 5788 | const int TransceiverComponentsAttributes::kTxWavelengthFieldNumber; |
| 5789 | const int TransceiverComponentsAttributes::kWavelengthScaleFieldNumber; |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5790 | const int TransceiverComponentsAttributes::kTxPowerFieldNumber; |
| 5791 | const int TransceiverComponentsAttributes::kTxPowerScaleFieldNumber; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5792 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5793 | |
| 5794 | TransceiverComponentsAttributes::TransceiverComponentsAttributes() |
| 5795 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5796 | SharedCtor(); |
| 5797 | // @@protoc_insertion_point(constructor:dmi.TransceiverComponentsAttributes) |
| 5798 | } |
| 5799 | TransceiverComponentsAttributes::TransceiverComponentsAttributes(const TransceiverComponentsAttributes& from) |
| 5800 | : ::google::protobuf::Message(), |
| 5801 | _internal_metadata_(nullptr), |
| 5802 | rx_wavelength_(from.rx_wavelength_), |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5803 | tx_wavelength_(from.tx_wavelength_), |
| 5804 | tx_power_(from.tx_power_) { |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5805 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5806 | ::memcpy(&form_factor_, &from.form_factor_, |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5807 | static_cast<size_t>(reinterpret_cast<char*>(&tx_power_scale_) - |
| 5808 | reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5809 | // @@protoc_insertion_point(copy_constructor:dmi.TransceiverComponentsAttributes) |
| 5810 | } |
| 5811 | |
| 5812 | void TransceiverComponentsAttributes::SharedCtor() { |
| 5813 | ::memset(&form_factor_, 0, static_cast<size_t>( |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5814 | reinterpret_cast<char*>(&tx_power_scale_) - |
| 5815 | reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5816 | } |
| 5817 | |
| 5818 | TransceiverComponentsAttributes::~TransceiverComponentsAttributes() { |
| 5819 | // @@protoc_insertion_point(destructor:dmi.TransceiverComponentsAttributes) |
| 5820 | SharedDtor(); |
| 5821 | } |
| 5822 | |
| 5823 | void TransceiverComponentsAttributes::SharedDtor() { |
| 5824 | } |
| 5825 | |
| 5826 | void TransceiverComponentsAttributes::SetCachedSize(int size) const { |
| 5827 | _cached_size_.Set(size); |
| 5828 | } |
| 5829 | const TransceiverComponentsAttributes& TransceiverComponentsAttributes::default_instance() { |
| 5830 | ::google::protobuf::internal::InitSCC(&::scc_info_TransceiverComponentsAttributes_dmi_2fhw_2eproto.base); |
| 5831 | return *internal_default_instance(); |
| 5832 | } |
| 5833 | |
| 5834 | |
| 5835 | void TransceiverComponentsAttributes::Clear() { |
| 5836 | // @@protoc_insertion_point(message_clear_start:dmi.TransceiverComponentsAttributes) |
| 5837 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5838 | // Prevent compiler warnings about cached_has_bits being unused |
| 5839 | (void) cached_has_bits; |
| 5840 | |
| 5841 | rx_wavelength_.Clear(); |
| 5842 | tx_wavelength_.Clear(); |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5843 | tx_power_.Clear(); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5844 | ::memset(&form_factor_, 0, static_cast<size_t>( |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5845 | reinterpret_cast<char*>(&tx_power_scale_) - |
| 5846 | reinterpret_cast<char*>(&form_factor_)) + sizeof(tx_power_scale_)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5847 | _internal_metadata_.Clear(); |
| 5848 | } |
| 5849 | |
| 5850 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5851 | const char* TransceiverComponentsAttributes::_InternalParse(const char* begin, const char* end, void* object, |
| 5852 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5853 | auto msg = static_cast<TransceiverComponentsAttributes*>(object); |
| 5854 | ::google::protobuf::int32 size; (void)size; |
| 5855 | int depth; (void)depth; |
| 5856 | ::google::protobuf::uint32 tag; |
| 5857 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5858 | auto ptr = begin; |
| 5859 | while (ptr < end) { |
| 5860 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5861 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5862 | switch (tag >> 3) { |
| 5863 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 5864 | case 1: { |
| 5865 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5866 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5867 | msg->set_form_factor(static_cast<::dmi::TransceiverComponentsAttributes_FormFactor>(val)); |
| 5868 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5869 | break; |
| 5870 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5871 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5872 | case 2: { |
| 5873 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5874 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 5875 | msg->set_trans_type(static_cast<::dmi::TransceiverType>(val)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5876 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5877 | break; |
| 5878 | } |
| 5879 | // uint32 max_distance = 3; |
| 5880 | case 3: { |
| 5881 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 5882 | msg->set_max_distance(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5883 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5884 | break; |
| 5885 | } |
| 5886 | // .dmi.ValueScale max_distance_scale = 4; |
| 5887 | case 4: { |
| 5888 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 5889 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5890 | msg->set_max_distance_scale(static_cast<::dmi::ValueScale>(val)); |
| 5891 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5892 | break; |
| 5893 | } |
| 5894 | // repeated uint32 rx_wavelength = 5; |
| 5895 | case 5: { |
| 5896 | if (static_cast<::google::protobuf::uint8>(tag) == 42) { |
| 5897 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5898 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5899 | parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; |
| 5900 | object = msg->mutable_rx_wavelength(); |
| 5901 | if (size > end - ptr) goto len_delim_till_end; |
| 5902 | auto newend = ptr + size; |
| 5903 | if (size) ptr = parser_till_end(ptr, newend, object, ctx); |
| 5904 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); |
| 5905 | break; |
| 5906 | } else if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 5907 | do { |
| 5908 | msg->add_rx_wavelength(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5909 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5910 | if (ptr >= end) break; |
| 5911 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 40 && (ptr += 1)); |
| 5912 | break; |
| 5913 | } |
| 5914 | // repeated uint32 tx_wavelength = 6; |
| 5915 | case 6: { |
| 5916 | if (static_cast<::google::protobuf::uint8>(tag) == 50) { |
| 5917 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5918 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5919 | parser_till_end = ::google::protobuf::internal::PackedUInt32Parser; |
| 5920 | object = msg->mutable_tx_wavelength(); |
| 5921 | if (size > end - ptr) goto len_delim_till_end; |
| 5922 | auto newend = ptr + size; |
| 5923 | if (size) ptr = parser_till_end(ptr, newend, object, ctx); |
| 5924 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); |
| 5925 | break; |
| 5926 | } else if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; |
| 5927 | do { |
| 5928 | msg->add_tx_wavelength(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5929 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5930 | if (ptr >= end) break; |
| 5931 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 48 && (ptr += 1)); |
| 5932 | break; |
| 5933 | } |
| 5934 | // .dmi.ValueScale wavelength_scale = 7; |
| 5935 | case 7: { |
| 5936 | if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; |
| 5937 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5938 | msg->set_wavelength_scale(static_cast<::dmi::ValueScale>(val)); |
| 5939 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5940 | break; |
| 5941 | } |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 5942 | // repeated int32 tx_power = 8; |
| 5943 | case 8: { |
| 5944 | if (static_cast<::google::protobuf::uint8>(tag) == 66) { |
| 5945 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5946 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5947 | parser_till_end = ::google::protobuf::internal::PackedInt32Parser; |
| 5948 | object = msg->mutable_tx_power(); |
| 5949 | if (size > end - ptr) goto len_delim_till_end; |
| 5950 | auto newend = ptr + size; |
| 5951 | if (size) ptr = parser_till_end(ptr, newend, object, ctx); |
| 5952 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); |
| 5953 | break; |
| 5954 | } else if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; |
| 5955 | do { |
| 5956 | msg->add_tx_power(::google::protobuf::internal::ReadVarint(&ptr)); |
| 5957 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5958 | if (ptr >= end) break; |
| 5959 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 64 && (ptr += 1)); |
| 5960 | break; |
| 5961 | } |
| 5962 | // .dmi.ValueScale tx_power_scale = 9; |
| 5963 | case 9: { |
| 5964 | if (static_cast<::google::protobuf::uint8>(tag) != 72) goto handle_unusual; |
| 5965 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5966 | msg->set_tx_power_scale(static_cast<::dmi::ValueScale>(val)); |
| 5967 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5968 | break; |
| 5969 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 5970 | default: { |
| 5971 | handle_unusual: |
| 5972 | if ((tag & 7) == 4 || tag == 0) { |
| 5973 | ctx->EndGroup(tag); |
| 5974 | return ptr; |
| 5975 | } |
| 5976 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5977 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5978 | ptr = res.first; |
| 5979 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5980 | if (res.second) return ptr; |
| 5981 | } |
| 5982 | } // switch |
| 5983 | } // while |
| 5984 | return ptr; |
| 5985 | len_delim_till_end: |
| 5986 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5987 | {parser_till_end, object}, size); |
| 5988 | } |
| 5989 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5990 | bool TransceiverComponentsAttributes::MergePartialFromCodedStream( |
| 5991 | ::google::protobuf::io::CodedInputStream* input) { |
| 5992 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5993 | ::google::protobuf::uint32 tag; |
| 5994 | // @@protoc_insertion_point(parse_start:dmi.TransceiverComponentsAttributes) |
| 5995 | for (;;) { |
| 5996 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5997 | tag = p.first; |
| 5998 | if (!p.second) goto handle_unusual; |
| 5999 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6000 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 6001 | case 1: { |
| 6002 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6003 | int value = 0; |
| 6004 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6005 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6006 | input, &value))); |
| 6007 | set_form_factor(static_cast< ::dmi::TransceiverComponentsAttributes_FormFactor >(value)); |
| 6008 | } else { |
| 6009 | goto handle_unusual; |
| 6010 | } |
| 6011 | break; |
| 6012 | } |
| 6013 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 6014 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6015 | case 2: { |
| 6016 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6017 | int value = 0; |
| 6018 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6019 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6020 | input, &value))); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 6021 | set_trans_type(static_cast< ::dmi::TransceiverType >(value)); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6022 | } else { |
| 6023 | goto handle_unusual; |
| 6024 | } |
| 6025 | break; |
| 6026 | } |
| 6027 | |
| 6028 | // uint32 max_distance = 3; |
| 6029 | case 3: { |
| 6030 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 6031 | |
| 6032 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6033 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 6034 | input, &max_distance_))); |
| 6035 | } else { |
| 6036 | goto handle_unusual; |
| 6037 | } |
| 6038 | break; |
| 6039 | } |
| 6040 | |
| 6041 | // .dmi.ValueScale max_distance_scale = 4; |
| 6042 | case 4: { |
| 6043 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 6044 | int value = 0; |
| 6045 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6046 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6047 | input, &value))); |
| 6048 | set_max_distance_scale(static_cast< ::dmi::ValueScale >(value)); |
| 6049 | } else { |
| 6050 | goto handle_unusual; |
| 6051 | } |
| 6052 | break; |
| 6053 | } |
| 6054 | |
| 6055 | // repeated uint32 rx_wavelength = 5; |
| 6056 | case 5: { |
| 6057 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 6058 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 6059 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 6060 | input, this->mutable_rx_wavelength()))); |
| 6061 | } else if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 6062 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 6063 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 6064 | 1, 42u, input, this->mutable_rx_wavelength()))); |
| 6065 | } else { |
| 6066 | goto handle_unusual; |
| 6067 | } |
| 6068 | break; |
| 6069 | } |
| 6070 | |
| 6071 | // repeated uint32 tx_wavelength = 6; |
| 6072 | case 6: { |
| 6073 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 6074 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 6075 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 6076 | input, this->mutable_tx_wavelength()))); |
| 6077 | } else if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { |
| 6078 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 6079 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
| 6080 | 1, 50u, input, this->mutable_tx_wavelength()))); |
| 6081 | } else { |
| 6082 | goto handle_unusual; |
| 6083 | } |
| 6084 | break; |
| 6085 | } |
| 6086 | |
| 6087 | // .dmi.ValueScale wavelength_scale = 7; |
| 6088 | case 7: { |
| 6089 | if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { |
| 6090 | int value = 0; |
| 6091 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6092 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6093 | input, &value))); |
| 6094 | set_wavelength_scale(static_cast< ::dmi::ValueScale >(value)); |
| 6095 | } else { |
| 6096 | goto handle_unusual; |
| 6097 | } |
| 6098 | break; |
| 6099 | } |
| 6100 | |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6101 | // repeated int32 tx_power = 8; |
| 6102 | case 8: { |
| 6103 | if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { |
| 6104 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
| 6105 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 6106 | input, this->mutable_tx_power()))); |
| 6107 | } else if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { |
| 6108 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
| 6109 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 6110 | 1, 66u, input, this->mutable_tx_power()))); |
| 6111 | } else { |
| 6112 | goto handle_unusual; |
| 6113 | } |
| 6114 | break; |
| 6115 | } |
| 6116 | |
| 6117 | // .dmi.ValueScale tx_power_scale = 9; |
| 6118 | case 9: { |
| 6119 | if (static_cast< ::google::protobuf::uint8>(tag) == (72 & 0xFF)) { |
| 6120 | int value = 0; |
| 6121 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6122 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6123 | input, &value))); |
| 6124 | set_tx_power_scale(static_cast< ::dmi::ValueScale >(value)); |
| 6125 | } else { |
| 6126 | goto handle_unusual; |
| 6127 | } |
| 6128 | break; |
| 6129 | } |
| 6130 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6131 | default: { |
| 6132 | handle_unusual: |
| 6133 | if (tag == 0) { |
| 6134 | goto success; |
| 6135 | } |
| 6136 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6137 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6138 | break; |
| 6139 | } |
| 6140 | } |
| 6141 | } |
| 6142 | success: |
| 6143 | // @@protoc_insertion_point(parse_success:dmi.TransceiverComponentsAttributes) |
| 6144 | return true; |
| 6145 | failure: |
| 6146 | // @@protoc_insertion_point(parse_failure:dmi.TransceiverComponentsAttributes) |
| 6147 | return false; |
| 6148 | #undef DO_ |
| 6149 | } |
| 6150 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6151 | |
| 6152 | void TransceiverComponentsAttributes::SerializeWithCachedSizes( |
| 6153 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6154 | // @@protoc_insertion_point(serialize_start:dmi.TransceiverComponentsAttributes) |
| 6155 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6156 | (void) cached_has_bits; |
| 6157 | |
| 6158 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 6159 | if (this->form_factor() != 0) { |
| 6160 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6161 | 1, this->form_factor(), output); |
| 6162 | } |
| 6163 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 6164 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6165 | if (this->trans_type() != 0) { |
| 6166 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6167 | 2, this->trans_type(), output); |
| 6168 | } |
| 6169 | |
| 6170 | // uint32 max_distance = 3; |
| 6171 | if (this->max_distance() != 0) { |
| 6172 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->max_distance(), output); |
| 6173 | } |
| 6174 | |
| 6175 | // .dmi.ValueScale max_distance_scale = 4; |
| 6176 | if (this->max_distance_scale() != 0) { |
| 6177 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6178 | 4, this->max_distance_scale(), output); |
| 6179 | } |
| 6180 | |
| 6181 | // repeated uint32 rx_wavelength = 5; |
| 6182 | if (this->rx_wavelength_size() > 0) { |
| 6183 | ::google::protobuf::internal::WireFormatLite::WriteTag(5, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 6184 | output->WriteVarint32(_rx_wavelength_cached_byte_size_.load( |
| 6185 | std::memory_order_relaxed)); |
| 6186 | } |
| 6187 | for (int i = 0, n = this->rx_wavelength_size(); i < n; i++) { |
| 6188 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| 6189 | this->rx_wavelength(i), output); |
| 6190 | } |
| 6191 | |
| 6192 | // repeated uint32 tx_wavelength = 6; |
| 6193 | if (this->tx_wavelength_size() > 0) { |
| 6194 | ::google::protobuf::internal::WireFormatLite::WriteTag(6, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 6195 | output->WriteVarint32(_tx_wavelength_cached_byte_size_.load( |
| 6196 | std::memory_order_relaxed)); |
| 6197 | } |
| 6198 | for (int i = 0, n = this->tx_wavelength_size(); i < n; i++) { |
| 6199 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
| 6200 | this->tx_wavelength(i), output); |
| 6201 | } |
| 6202 | |
| 6203 | // .dmi.ValueScale wavelength_scale = 7; |
| 6204 | if (this->wavelength_scale() != 0) { |
| 6205 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6206 | 7, this->wavelength_scale(), output); |
| 6207 | } |
| 6208 | |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6209 | // repeated int32 tx_power = 8; |
| 6210 | if (this->tx_power_size() > 0) { |
| 6211 | ::google::protobuf::internal::WireFormatLite::WriteTag(8, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
| 6212 | output->WriteVarint32(_tx_power_cached_byte_size_.load( |
| 6213 | std::memory_order_relaxed)); |
| 6214 | } |
| 6215 | for (int i = 0, n = this->tx_power_size(); i < n; i++) { |
| 6216 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
| 6217 | this->tx_power(i), output); |
| 6218 | } |
| 6219 | |
| 6220 | // .dmi.ValueScale tx_power_scale = 9; |
| 6221 | if (this->tx_power_scale() != 0) { |
| 6222 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6223 | 9, this->tx_power_scale(), output); |
| 6224 | } |
| 6225 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6226 | if (_internal_metadata_.have_unknown_fields()) { |
| 6227 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6228 | _internal_metadata_.unknown_fields(), output); |
| 6229 | } |
| 6230 | // @@protoc_insertion_point(serialize_end:dmi.TransceiverComponentsAttributes) |
| 6231 | } |
| 6232 | |
| 6233 | ::google::protobuf::uint8* TransceiverComponentsAttributes::InternalSerializeWithCachedSizesToArray( |
| 6234 | ::google::protobuf::uint8* target) const { |
| 6235 | // @@protoc_insertion_point(serialize_to_array_start:dmi.TransceiverComponentsAttributes) |
| 6236 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6237 | (void) cached_has_bits; |
| 6238 | |
| 6239 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 6240 | if (this->form_factor() != 0) { |
| 6241 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6242 | 1, this->form_factor(), target); |
| 6243 | } |
| 6244 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 6245 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6246 | if (this->trans_type() != 0) { |
| 6247 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6248 | 2, this->trans_type(), target); |
| 6249 | } |
| 6250 | |
| 6251 | // uint32 max_distance = 3; |
| 6252 | if (this->max_distance() != 0) { |
| 6253 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->max_distance(), target); |
| 6254 | } |
| 6255 | |
| 6256 | // .dmi.ValueScale max_distance_scale = 4; |
| 6257 | if (this->max_distance_scale() != 0) { |
| 6258 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6259 | 4, this->max_distance_scale(), target); |
| 6260 | } |
| 6261 | |
| 6262 | // repeated uint32 rx_wavelength = 5; |
| 6263 | if (this->rx_wavelength_size() > 0) { |
| 6264 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6265 | 5, |
| 6266 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 6267 | target); |
| 6268 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 6269 | _rx_wavelength_cached_byte_size_.load(std::memory_order_relaxed), |
| 6270 | target); |
| 6271 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6272 | WriteUInt32NoTagToArray(this->rx_wavelength_, target); |
| 6273 | } |
| 6274 | |
| 6275 | // repeated uint32 tx_wavelength = 6; |
| 6276 | if (this->tx_wavelength_size() > 0) { |
| 6277 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6278 | 6, |
| 6279 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 6280 | target); |
| 6281 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 6282 | _tx_wavelength_cached_byte_size_.load(std::memory_order_relaxed), |
| 6283 | target); |
| 6284 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6285 | WriteUInt32NoTagToArray(this->tx_wavelength_, target); |
| 6286 | } |
| 6287 | |
| 6288 | // .dmi.ValueScale wavelength_scale = 7; |
| 6289 | if (this->wavelength_scale() != 0) { |
| 6290 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6291 | 7, this->wavelength_scale(), target); |
| 6292 | } |
| 6293 | |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6294 | // repeated int32 tx_power = 8; |
| 6295 | if (this->tx_power_size() > 0) { |
| 6296 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
| 6297 | 8, |
| 6298 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
| 6299 | target); |
| 6300 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
| 6301 | _tx_power_cached_byte_size_.load(std::memory_order_relaxed), |
| 6302 | target); |
| 6303 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6304 | WriteInt32NoTagToArray(this->tx_power_, target); |
| 6305 | } |
| 6306 | |
| 6307 | // .dmi.ValueScale tx_power_scale = 9; |
| 6308 | if (this->tx_power_scale() != 0) { |
| 6309 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6310 | 9, this->tx_power_scale(), target); |
| 6311 | } |
| 6312 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6313 | if (_internal_metadata_.have_unknown_fields()) { |
| 6314 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6315 | _internal_metadata_.unknown_fields(), target); |
| 6316 | } |
| 6317 | // @@protoc_insertion_point(serialize_to_array_end:dmi.TransceiverComponentsAttributes) |
| 6318 | return target; |
| 6319 | } |
| 6320 | |
| 6321 | size_t TransceiverComponentsAttributes::ByteSizeLong() const { |
| 6322 | // @@protoc_insertion_point(message_byte_size_start:dmi.TransceiverComponentsAttributes) |
| 6323 | size_t total_size = 0; |
| 6324 | |
| 6325 | if (_internal_metadata_.have_unknown_fields()) { |
| 6326 | total_size += |
| 6327 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6328 | _internal_metadata_.unknown_fields()); |
| 6329 | } |
| 6330 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6331 | // Prevent compiler warnings about cached_has_bits being unused |
| 6332 | (void) cached_has_bits; |
| 6333 | |
| 6334 | // repeated uint32 rx_wavelength = 5; |
| 6335 | { |
| 6336 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
| 6337 | UInt32Size(this->rx_wavelength_); |
| 6338 | if (data_size > 0) { |
| 6339 | total_size += 1 + |
| 6340 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6341 | static_cast<::google::protobuf::int32>(data_size)); |
| 6342 | } |
| 6343 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 6344 | _rx_wavelength_cached_byte_size_.store(cached_size, |
| 6345 | std::memory_order_relaxed); |
| 6346 | total_size += data_size; |
| 6347 | } |
| 6348 | |
| 6349 | // repeated uint32 tx_wavelength = 6; |
| 6350 | { |
| 6351 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
| 6352 | UInt32Size(this->tx_wavelength_); |
| 6353 | if (data_size > 0) { |
| 6354 | total_size += 1 + |
| 6355 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6356 | static_cast<::google::protobuf::int32>(data_size)); |
| 6357 | } |
| 6358 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 6359 | _tx_wavelength_cached_byte_size_.store(cached_size, |
| 6360 | std::memory_order_relaxed); |
| 6361 | total_size += data_size; |
| 6362 | } |
| 6363 | |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6364 | // repeated int32 tx_power = 8; |
| 6365 | { |
| 6366 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
| 6367 | Int32Size(this->tx_power_); |
| 6368 | if (data_size > 0) { |
| 6369 | total_size += 1 + |
| 6370 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 6371 | static_cast<::google::protobuf::int32>(data_size)); |
| 6372 | } |
| 6373 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
| 6374 | _tx_power_cached_byte_size_.store(cached_size, |
| 6375 | std::memory_order_relaxed); |
| 6376 | total_size += data_size; |
| 6377 | } |
| 6378 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6379 | // .dmi.TransceiverComponentsAttributes.FormFactor form_factor = 1; |
| 6380 | if (this->form_factor() != 0) { |
| 6381 | total_size += 1 + |
| 6382 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->form_factor()); |
| 6383 | } |
| 6384 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 6385 | // .dmi.TransceiverType trans_type = 2; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6386 | if (this->trans_type() != 0) { |
| 6387 | total_size += 1 + |
| 6388 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->trans_type()); |
| 6389 | } |
| 6390 | |
| 6391 | // uint32 max_distance = 3; |
| 6392 | if (this->max_distance() != 0) { |
| 6393 | total_size += 1 + |
| 6394 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 6395 | this->max_distance()); |
| 6396 | } |
| 6397 | |
| 6398 | // .dmi.ValueScale max_distance_scale = 4; |
| 6399 | if (this->max_distance_scale() != 0) { |
| 6400 | total_size += 1 + |
| 6401 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->max_distance_scale()); |
| 6402 | } |
| 6403 | |
| 6404 | // .dmi.ValueScale wavelength_scale = 7; |
| 6405 | if (this->wavelength_scale() != 0) { |
| 6406 | total_size += 1 + |
| 6407 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->wavelength_scale()); |
| 6408 | } |
| 6409 | |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6410 | // .dmi.ValueScale tx_power_scale = 9; |
| 6411 | if (this->tx_power_scale() != 0) { |
| 6412 | total_size += 1 + |
| 6413 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->tx_power_scale()); |
| 6414 | } |
| 6415 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6416 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6417 | SetCachedSize(cached_size); |
| 6418 | return total_size; |
| 6419 | } |
| 6420 | |
| 6421 | void TransceiverComponentsAttributes::MergeFrom(const ::google::protobuf::Message& from) { |
| 6422 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.TransceiverComponentsAttributes) |
| 6423 | GOOGLE_DCHECK_NE(&from, this); |
| 6424 | const TransceiverComponentsAttributes* source = |
| 6425 | ::google::protobuf::DynamicCastToGenerated<TransceiverComponentsAttributes>( |
| 6426 | &from); |
| 6427 | if (source == nullptr) { |
| 6428 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.TransceiverComponentsAttributes) |
| 6429 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6430 | } else { |
| 6431 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.TransceiverComponentsAttributes) |
| 6432 | MergeFrom(*source); |
| 6433 | } |
| 6434 | } |
| 6435 | |
| 6436 | void TransceiverComponentsAttributes::MergeFrom(const TransceiverComponentsAttributes& from) { |
| 6437 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.TransceiverComponentsAttributes) |
| 6438 | GOOGLE_DCHECK_NE(&from, this); |
| 6439 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6441 | (void) cached_has_bits; |
| 6442 | |
| 6443 | rx_wavelength_.MergeFrom(from.rx_wavelength_); |
| 6444 | tx_wavelength_.MergeFrom(from.tx_wavelength_); |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6445 | tx_power_.MergeFrom(from.tx_power_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6446 | if (from.form_factor() != 0) { |
| 6447 | set_form_factor(from.form_factor()); |
| 6448 | } |
| 6449 | if (from.trans_type() != 0) { |
| 6450 | set_trans_type(from.trans_type()); |
| 6451 | } |
| 6452 | if (from.max_distance() != 0) { |
| 6453 | set_max_distance(from.max_distance()); |
| 6454 | } |
| 6455 | if (from.max_distance_scale() != 0) { |
| 6456 | set_max_distance_scale(from.max_distance_scale()); |
| 6457 | } |
| 6458 | if (from.wavelength_scale() != 0) { |
| 6459 | set_wavelength_scale(from.wavelength_scale()); |
| 6460 | } |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6461 | if (from.tx_power_scale() != 0) { |
| 6462 | set_tx_power_scale(from.tx_power_scale()); |
| 6463 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6464 | } |
| 6465 | |
| 6466 | void TransceiverComponentsAttributes::CopyFrom(const ::google::protobuf::Message& from) { |
| 6467 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.TransceiverComponentsAttributes) |
| 6468 | if (&from == this) return; |
| 6469 | Clear(); |
| 6470 | MergeFrom(from); |
| 6471 | } |
| 6472 | |
| 6473 | void TransceiverComponentsAttributes::CopyFrom(const TransceiverComponentsAttributes& from) { |
| 6474 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.TransceiverComponentsAttributes) |
| 6475 | if (&from == this) return; |
| 6476 | Clear(); |
| 6477 | MergeFrom(from); |
| 6478 | } |
| 6479 | |
| 6480 | bool TransceiverComponentsAttributes::IsInitialized() const { |
| 6481 | return true; |
| 6482 | } |
| 6483 | |
| 6484 | void TransceiverComponentsAttributes::Swap(TransceiverComponentsAttributes* other) { |
| 6485 | if (other == this) return; |
| 6486 | InternalSwap(other); |
| 6487 | } |
| 6488 | void TransceiverComponentsAttributes::InternalSwap(TransceiverComponentsAttributes* other) { |
| 6489 | using std::swap; |
| 6490 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6491 | rx_wavelength_.InternalSwap(&other->rx_wavelength_); |
| 6492 | tx_wavelength_.InternalSwap(&other->tx_wavelength_); |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6493 | tx_power_.InternalSwap(&other->tx_power_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6494 | swap(form_factor_, other->form_factor_); |
| 6495 | swap(trans_type_, other->trans_type_); |
| 6496 | swap(max_distance_, other->max_distance_); |
| 6497 | swap(max_distance_scale_, other->max_distance_scale_); |
| 6498 | swap(wavelength_scale_, other->wavelength_scale_); |
amit.ghosh | 52abaae | 2022-11-28 13:59:22 +0100 | [diff] [blame] | 6499 | swap(tx_power_scale_, other->tx_power_scale_); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 6500 | } |
| 6501 | |
| 6502 | ::google::protobuf::Metadata TransceiverComponentsAttributes::GetMetadata() const { |
| 6503 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 6504 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 6505 | } |
| 6506 | |
| 6507 | |
| 6508 | // =================================================================== |
| 6509 | |
| 6510 | void Component::InitAsDefaultInstance() { |
| 6511 | ::dmi::_Component_default_instance_._instance.get_mutable()->mfg_date_ = const_cast< ::google::protobuf::Timestamp*>( |
| 6512 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 6513 | ::dmi::_Component_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>( |
| 6514 | ::dmi::Uri::internal_default_instance()); |
| 6515 | ::dmi::_Component_default_instance_._instance.get_mutable()->uuid_ = const_cast< ::dmi::Uuid*>( |
| 6516 | ::dmi::Uuid::internal_default_instance()); |
| 6517 | ::dmi::_Component_default_instance_._instance.get_mutable()->state_ = const_cast< ::dmi::ComponentState*>( |
| 6518 | ::dmi::ComponentState::internal_default_instance()); |
| 6519 | ::dmi::_Component_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentAttributes*>( |
| 6520 | ::dmi::PortComponentAttributes::internal_default_instance()); |
| 6521 | ::dmi::_Component_default_instance_.container_attr_ = const_cast< ::dmi::ContainerComponentAttributes*>( |
| 6522 | ::dmi::ContainerComponentAttributes::internal_default_instance()); |
| 6523 | ::dmi::_Component_default_instance_.psu_attr_ = const_cast< ::dmi::PsuComponentAttributes*>( |
| 6524 | ::dmi::PsuComponentAttributes::internal_default_instance()); |
| 6525 | ::dmi::_Component_default_instance_.transceiver_attr_ = const_cast< ::dmi::TransceiverComponentsAttributes*>( |
| 6526 | ::dmi::TransceiverComponentsAttributes::internal_default_instance()); |
| 6527 | } |
| 6528 | class Component::HasBitSetters { |
| 6529 | public: |
| 6530 | static const ::google::protobuf::Timestamp& mfg_date(const Component* msg); |
| 6531 | static const ::dmi::Uri& uri(const Component* msg); |
| 6532 | static const ::dmi::Uuid& uuid(const Component* msg); |
| 6533 | static const ::dmi::ComponentState& state(const Component* msg); |
| 6534 | static const ::dmi::PortComponentAttributes& port_attr(const Component* msg); |
| 6535 | static const ::dmi::ContainerComponentAttributes& container_attr(const Component* msg); |
| 6536 | static const ::dmi::PsuComponentAttributes& psu_attr(const Component* msg); |
| 6537 | static const ::dmi::TransceiverComponentsAttributes& transceiver_attr(const Component* msg); |
| 6538 | }; |
| 6539 | |
| 6540 | const ::google::protobuf::Timestamp& |
| 6541 | Component::HasBitSetters::mfg_date(const Component* msg) { |
| 6542 | return *msg->mfg_date_; |
| 6543 | } |
| 6544 | const ::dmi::Uri& |
| 6545 | Component::HasBitSetters::uri(const Component* msg) { |
| 6546 | return *msg->uri_; |
| 6547 | } |
| 6548 | const ::dmi::Uuid& |
| 6549 | Component::HasBitSetters::uuid(const Component* msg) { |
| 6550 | return *msg->uuid_; |
| 6551 | } |
| 6552 | const ::dmi::ComponentState& |
| 6553 | Component::HasBitSetters::state(const Component* msg) { |
| 6554 | return *msg->state_; |
| 6555 | } |
| 6556 | const ::dmi::PortComponentAttributes& |
| 6557 | Component::HasBitSetters::port_attr(const Component* msg) { |
| 6558 | return *msg->specific_.port_attr_; |
| 6559 | } |
| 6560 | const ::dmi::ContainerComponentAttributes& |
| 6561 | Component::HasBitSetters::container_attr(const Component* msg) { |
| 6562 | return *msg->specific_.container_attr_; |
| 6563 | } |
| 6564 | const ::dmi::PsuComponentAttributes& |
| 6565 | Component::HasBitSetters::psu_attr(const Component* msg) { |
| 6566 | return *msg->specific_.psu_attr_; |
| 6567 | } |
| 6568 | const ::dmi::TransceiverComponentsAttributes& |
| 6569 | Component::HasBitSetters::transceiver_attr(const Component* msg) { |
| 6570 | return *msg->specific_.transceiver_attr_; |
| 6571 | } |
| 6572 | void Component::clear_mfg_date() { |
| 6573 | if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) { |
| 6574 | delete mfg_date_; |
| 6575 | } |
| 6576 | mfg_date_ = nullptr; |
| 6577 | } |
| 6578 | void Component::set_allocated_port_attr(::dmi::PortComponentAttributes* port_attr) { |
| 6579 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6580 | clear_specific(); |
| 6581 | if (port_attr) { |
| 6582 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6583 | if (message_arena != submessage_arena) { |
| 6584 | port_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6585 | message_arena, port_attr, submessage_arena); |
| 6586 | } |
| 6587 | set_has_port_attr(); |
| 6588 | specific_.port_attr_ = port_attr; |
| 6589 | } |
| 6590 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.port_attr) |
| 6591 | } |
| 6592 | void Component::set_allocated_container_attr(::dmi::ContainerComponentAttributes* container_attr) { |
| 6593 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6594 | clear_specific(); |
| 6595 | if (container_attr) { |
| 6596 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6597 | if (message_arena != submessage_arena) { |
| 6598 | container_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6599 | message_arena, container_attr, submessage_arena); |
| 6600 | } |
| 6601 | set_has_container_attr(); |
| 6602 | specific_.container_attr_ = container_attr; |
| 6603 | } |
| 6604 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.container_attr) |
| 6605 | } |
| 6606 | void Component::set_allocated_psu_attr(::dmi::PsuComponentAttributes* psu_attr) { |
| 6607 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6608 | clear_specific(); |
| 6609 | if (psu_attr) { |
| 6610 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6611 | if (message_arena != submessage_arena) { |
| 6612 | psu_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6613 | message_arena, psu_attr, submessage_arena); |
| 6614 | } |
| 6615 | set_has_psu_attr(); |
| 6616 | specific_.psu_attr_ = psu_attr; |
| 6617 | } |
| 6618 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.psu_attr) |
| 6619 | } |
| 6620 | void Component::set_allocated_transceiver_attr(::dmi::TransceiverComponentsAttributes* transceiver_attr) { |
| 6621 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 6622 | clear_specific(); |
| 6623 | if (transceiver_attr) { |
| 6624 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 6625 | if (message_arena != submessage_arena) { |
| 6626 | transceiver_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 6627 | message_arena, transceiver_attr, submessage_arena); |
| 6628 | } |
| 6629 | set_has_transceiver_attr(); |
| 6630 | specific_.transceiver_attr_ = transceiver_attr; |
| 6631 | } |
| 6632 | // @@protoc_insertion_point(field_set_allocated:dmi.Component.transceiver_attr) |
| 6633 | } |
| 6634 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6635 | const int Component::kNameFieldNumber; |
| 6636 | const int Component::kClassFieldNumber; |
| 6637 | const int Component::kDescriptionFieldNumber; |
| 6638 | const int Component::kParentFieldNumber; |
| 6639 | const int Component::kParentRelPosFieldNumber; |
| 6640 | const int Component::kChildrenFieldNumber; |
| 6641 | const int Component::kHardwareRevFieldNumber; |
| 6642 | const int Component::kFirmwareRevFieldNumber; |
| 6643 | const int Component::kSoftwareRevFieldNumber; |
| 6644 | const int Component::kSerialNumFieldNumber; |
| 6645 | const int Component::kMfgNameFieldNumber; |
| 6646 | const int Component::kModelNameFieldNumber; |
| 6647 | const int Component::kAliasFieldNumber; |
| 6648 | const int Component::kAssetIdFieldNumber; |
| 6649 | const int Component::kIsFruFieldNumber; |
| 6650 | const int Component::kMfgDateFieldNumber; |
| 6651 | const int Component::kUriFieldNumber; |
| 6652 | const int Component::kUuidFieldNumber; |
| 6653 | const int Component::kStateFieldNumber; |
| 6654 | const int Component::kSensorDataFieldNumber; |
| 6655 | const int Component::kPortAttrFieldNumber; |
| 6656 | const int Component::kContainerAttrFieldNumber; |
| 6657 | const int Component::kPsuAttrFieldNumber; |
| 6658 | const int Component::kTransceiverAttrFieldNumber; |
| 6659 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6660 | |
| 6661 | Component::Component() |
| 6662 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6663 | SharedCtor(); |
| 6664 | // @@protoc_insertion_point(constructor:dmi.Component) |
| 6665 | } |
| 6666 | Component::Component(const Component& from) |
| 6667 | : ::google::protobuf::Message(), |
| 6668 | _internal_metadata_(nullptr), |
| 6669 | children_(from.children_), |
| 6670 | sensor_data_(from.sensor_data_) { |
| 6671 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6672 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6673 | if (from.name().size() > 0) { |
| 6674 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 6675 | } |
| 6676 | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6677 | if (from.description().size() > 0) { |
| 6678 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
| 6679 | } |
| 6680 | parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6681 | if (from.parent().size() > 0) { |
| 6682 | parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); |
| 6683 | } |
| 6684 | hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6685 | if (from.hardware_rev().size() > 0) { |
| 6686 | hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_); |
| 6687 | } |
| 6688 | firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6689 | if (from.firmware_rev().size() > 0) { |
| 6690 | firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_); |
| 6691 | } |
| 6692 | software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6693 | if (from.software_rev().size() > 0) { |
| 6694 | software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_); |
| 6695 | } |
| 6696 | serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6697 | if (from.serial_num().size() > 0) { |
| 6698 | serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_); |
| 6699 | } |
| 6700 | mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6701 | if (from.mfg_name().size() > 0) { |
| 6702 | mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_); |
| 6703 | } |
| 6704 | model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6705 | if (from.model_name().size() > 0) { |
| 6706 | model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_); |
| 6707 | } |
| 6708 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6709 | if (from.alias().size() > 0) { |
| 6710 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 6711 | } |
| 6712 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6713 | if (from.asset_id().size() > 0) { |
| 6714 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 6715 | } |
| 6716 | if (from.has_mfg_date()) { |
| 6717 | mfg_date_ = new ::google::protobuf::Timestamp(*from.mfg_date_); |
| 6718 | } else { |
| 6719 | mfg_date_ = nullptr; |
| 6720 | } |
| 6721 | if (from.has_uri()) { |
| 6722 | uri_ = new ::dmi::Uri(*from.uri_); |
| 6723 | } else { |
| 6724 | uri_ = nullptr; |
| 6725 | } |
| 6726 | if (from.has_uuid()) { |
| 6727 | uuid_ = new ::dmi::Uuid(*from.uuid_); |
| 6728 | } else { |
| 6729 | uuid_ = nullptr; |
| 6730 | } |
| 6731 | if (from.has_state()) { |
| 6732 | state_ = new ::dmi::ComponentState(*from.state_); |
| 6733 | } else { |
| 6734 | state_ = nullptr; |
| 6735 | } |
| 6736 | ::memcpy(&class__, &from.class__, |
| 6737 | static_cast<size_t>(reinterpret_cast<char*>(&is_fru_) - |
| 6738 | reinterpret_cast<char*>(&class__)) + sizeof(is_fru_)); |
| 6739 | clear_has_specific(); |
| 6740 | switch (from.specific_case()) { |
| 6741 | case kPortAttr: { |
| 6742 | mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr()); |
| 6743 | break; |
| 6744 | } |
| 6745 | case kContainerAttr: { |
| 6746 | mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr()); |
| 6747 | break; |
| 6748 | } |
| 6749 | case kPsuAttr: { |
| 6750 | mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr()); |
| 6751 | break; |
| 6752 | } |
| 6753 | case kTransceiverAttr: { |
| 6754 | mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr()); |
| 6755 | break; |
| 6756 | } |
| 6757 | case SPECIFIC_NOT_SET: { |
| 6758 | break; |
| 6759 | } |
| 6760 | } |
| 6761 | // @@protoc_insertion_point(copy_constructor:dmi.Component) |
| 6762 | } |
| 6763 | |
| 6764 | void Component::SharedCtor() { |
| 6765 | ::google::protobuf::internal::InitSCC( |
| 6766 | &scc_info_Component_dmi_2fhw_2eproto.base); |
| 6767 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6768 | description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6769 | parent_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6770 | hardware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6771 | firmware_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6772 | software_rev_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6773 | serial_num_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6774 | mfg_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6775 | model_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6776 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6777 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6778 | ::memset(&mfg_date_, 0, static_cast<size_t>( |
| 6779 | reinterpret_cast<char*>(&is_fru_) - |
| 6780 | reinterpret_cast<char*>(&mfg_date_)) + sizeof(is_fru_)); |
| 6781 | clear_has_specific(); |
| 6782 | } |
| 6783 | |
| 6784 | Component::~Component() { |
| 6785 | // @@protoc_insertion_point(destructor:dmi.Component) |
| 6786 | SharedDtor(); |
| 6787 | } |
| 6788 | |
| 6789 | void Component::SharedDtor() { |
| 6790 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6791 | description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6792 | parent_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6793 | hardware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6794 | firmware_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6795 | software_rev_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6796 | serial_num_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6797 | mfg_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6798 | model_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6799 | alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6800 | asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6801 | if (this != internal_default_instance()) delete mfg_date_; |
| 6802 | if (this != internal_default_instance()) delete uri_; |
| 6803 | if (this != internal_default_instance()) delete uuid_; |
| 6804 | if (this != internal_default_instance()) delete state_; |
| 6805 | if (has_specific()) { |
| 6806 | clear_specific(); |
| 6807 | } |
| 6808 | } |
| 6809 | |
| 6810 | void Component::SetCachedSize(int size) const { |
| 6811 | _cached_size_.Set(size); |
| 6812 | } |
| 6813 | const Component& Component::default_instance() { |
| 6814 | ::google::protobuf::internal::InitSCC(&::scc_info_Component_dmi_2fhw_2eproto.base); |
| 6815 | return *internal_default_instance(); |
| 6816 | } |
| 6817 | |
| 6818 | |
| 6819 | void Component::clear_specific() { |
| 6820 | // @@protoc_insertion_point(one_of_clear_start:dmi.Component) |
| 6821 | switch (specific_case()) { |
| 6822 | case kPortAttr: { |
| 6823 | delete specific_.port_attr_; |
| 6824 | break; |
| 6825 | } |
| 6826 | case kContainerAttr: { |
| 6827 | delete specific_.container_attr_; |
| 6828 | break; |
| 6829 | } |
| 6830 | case kPsuAttr: { |
| 6831 | delete specific_.psu_attr_; |
| 6832 | break; |
| 6833 | } |
| 6834 | case kTransceiverAttr: { |
| 6835 | delete specific_.transceiver_attr_; |
| 6836 | break; |
| 6837 | } |
| 6838 | case SPECIFIC_NOT_SET: { |
| 6839 | break; |
| 6840 | } |
| 6841 | } |
| 6842 | _oneof_case_[0] = SPECIFIC_NOT_SET; |
| 6843 | } |
| 6844 | |
| 6845 | |
| 6846 | void Component::Clear() { |
| 6847 | // @@protoc_insertion_point(message_clear_start:dmi.Component) |
| 6848 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6849 | // Prevent compiler warnings about cached_has_bits being unused |
| 6850 | (void) cached_has_bits; |
| 6851 | |
| 6852 | children_.Clear(); |
| 6853 | sensor_data_.Clear(); |
| 6854 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6855 | description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6856 | parent_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6857 | hardware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6858 | firmware_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6859 | software_rev_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6860 | serial_num_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6861 | mfg_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6862 | model_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6863 | alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6864 | asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6865 | if (GetArenaNoVirtual() == nullptr && mfg_date_ != nullptr) { |
| 6866 | delete mfg_date_; |
| 6867 | } |
| 6868 | mfg_date_ = nullptr; |
| 6869 | if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) { |
| 6870 | delete uri_; |
| 6871 | } |
| 6872 | uri_ = nullptr; |
| 6873 | if (GetArenaNoVirtual() == nullptr && uuid_ != nullptr) { |
| 6874 | delete uuid_; |
| 6875 | } |
| 6876 | uuid_ = nullptr; |
| 6877 | if (GetArenaNoVirtual() == nullptr && state_ != nullptr) { |
| 6878 | delete state_; |
| 6879 | } |
| 6880 | state_ = nullptr; |
| 6881 | ::memset(&class__, 0, static_cast<size_t>( |
| 6882 | reinterpret_cast<char*>(&is_fru_) - |
| 6883 | reinterpret_cast<char*>(&class__)) + sizeof(is_fru_)); |
| 6884 | clear_specific(); |
| 6885 | _internal_metadata_.Clear(); |
| 6886 | } |
| 6887 | |
| 6888 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6889 | const char* Component::_InternalParse(const char* begin, const char* end, void* object, |
| 6890 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6891 | auto msg = static_cast<Component*>(object); |
| 6892 | ::google::protobuf::int32 size; (void)size; |
| 6893 | int depth; (void)depth; |
| 6894 | ::google::protobuf::uint32 tag; |
| 6895 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6896 | auto ptr = begin; |
| 6897 | while (ptr < end) { |
| 6898 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6899 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6900 | switch (tag >> 3) { |
| 6901 | // string name = 1; |
| 6902 | case 1: { |
| 6903 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 6904 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6905 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6906 | ctx->extra_parse_data().SetFieldName("dmi.Component.name"); |
| 6907 | object = msg->mutable_name(); |
| 6908 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6909 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6910 | goto string_till_end; |
| 6911 | } |
| 6912 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6913 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6914 | ptr += size; |
| 6915 | break; |
| 6916 | } |
| 6917 | // .dmi.ComponentType class = 2; |
| 6918 | case 2: { |
| 6919 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6920 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6921 | msg->set_class_(static_cast<::dmi::ComponentType>(val)); |
| 6922 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6923 | break; |
| 6924 | } |
| 6925 | // string description = 3; |
| 6926 | case 3: { |
| 6927 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6928 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6929 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6930 | ctx->extra_parse_data().SetFieldName("dmi.Component.description"); |
| 6931 | object = msg->mutable_description(); |
| 6932 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6933 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6934 | goto string_till_end; |
| 6935 | } |
| 6936 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6937 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6938 | ptr += size; |
| 6939 | break; |
| 6940 | } |
| 6941 | // string parent = 4; |
| 6942 | case 4: { |
| 6943 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6944 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6945 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6946 | ctx->extra_parse_data().SetFieldName("dmi.Component.parent"); |
| 6947 | object = msg->mutable_parent(); |
| 6948 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6949 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6950 | goto string_till_end; |
| 6951 | } |
| 6952 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6953 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6954 | ptr += size; |
| 6955 | break; |
| 6956 | } |
| 6957 | // int32 parent_rel_pos = 5; |
| 6958 | case 5: { |
| 6959 | if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; |
| 6960 | msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr)); |
| 6961 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6962 | break; |
| 6963 | } |
| 6964 | // repeated .dmi.Component children = 6; |
| 6965 | case 6: { |
| 6966 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 6967 | do { |
| 6968 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6969 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6970 | parser_till_end = ::dmi::Component::_InternalParse; |
| 6971 | object = msg->add_children(); |
| 6972 | if (size > end - ptr) goto len_delim_till_end; |
| 6973 | ptr += size; |
| 6974 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6975 | {parser_till_end, object}, ptr - size, ptr)); |
| 6976 | if (ptr >= end) break; |
| 6977 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); |
| 6978 | break; |
| 6979 | } |
| 6980 | // string hardware_rev = 7; |
| 6981 | case 7: { |
| 6982 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 6983 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6984 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6985 | ctx->extra_parse_data().SetFieldName("dmi.Component.hardware_rev"); |
| 6986 | object = msg->mutable_hardware_rev(); |
| 6987 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6988 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6989 | goto string_till_end; |
| 6990 | } |
| 6991 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6992 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6993 | ptr += size; |
| 6994 | break; |
| 6995 | } |
| 6996 | // string firmware_rev = 8; |
| 6997 | case 8: { |
| 6998 | if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; |
| 6999 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7000 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7001 | ctx->extra_parse_data().SetFieldName("dmi.Component.firmware_rev"); |
| 7002 | object = msg->mutable_firmware_rev(); |
| 7003 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7004 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7005 | goto string_till_end; |
| 7006 | } |
| 7007 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7008 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7009 | ptr += size; |
| 7010 | break; |
| 7011 | } |
| 7012 | // string software_rev = 9; |
| 7013 | case 9: { |
| 7014 | if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; |
| 7015 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7016 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7017 | ctx->extra_parse_data().SetFieldName("dmi.Component.software_rev"); |
| 7018 | object = msg->mutable_software_rev(); |
| 7019 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7020 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7021 | goto string_till_end; |
| 7022 | } |
| 7023 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7024 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7025 | ptr += size; |
| 7026 | break; |
| 7027 | } |
| 7028 | // string serial_num = 10; |
| 7029 | case 10: { |
| 7030 | if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; |
| 7031 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7032 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7033 | ctx->extra_parse_data().SetFieldName("dmi.Component.serial_num"); |
| 7034 | object = msg->mutable_serial_num(); |
| 7035 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7036 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7037 | goto string_till_end; |
| 7038 | } |
| 7039 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7040 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7041 | ptr += size; |
| 7042 | break; |
| 7043 | } |
| 7044 | // string mfg_name = 11; |
| 7045 | case 11: { |
| 7046 | if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; |
| 7047 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7048 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7049 | ctx->extra_parse_data().SetFieldName("dmi.Component.mfg_name"); |
| 7050 | object = msg->mutable_mfg_name(); |
| 7051 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7052 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7053 | goto string_till_end; |
| 7054 | } |
| 7055 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7056 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7057 | ptr += size; |
| 7058 | break; |
| 7059 | } |
| 7060 | // string model_name = 12; |
| 7061 | case 12: { |
| 7062 | if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; |
| 7063 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7064 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7065 | ctx->extra_parse_data().SetFieldName("dmi.Component.model_name"); |
| 7066 | object = msg->mutable_model_name(); |
| 7067 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7068 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7069 | goto string_till_end; |
| 7070 | } |
| 7071 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7072 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7073 | ptr += size; |
| 7074 | break; |
| 7075 | } |
| 7076 | // string alias = 13; |
| 7077 | case 13: { |
| 7078 | if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; |
| 7079 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7080 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7081 | ctx->extra_parse_data().SetFieldName("dmi.Component.alias"); |
| 7082 | object = msg->mutable_alias(); |
| 7083 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7084 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7085 | goto string_till_end; |
| 7086 | } |
| 7087 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7088 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7089 | ptr += size; |
| 7090 | break; |
| 7091 | } |
| 7092 | // string asset_id = 14; |
| 7093 | case 14: { |
| 7094 | if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; |
| 7095 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7096 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7097 | ctx->extra_parse_data().SetFieldName("dmi.Component.asset_id"); |
| 7098 | object = msg->mutable_asset_id(); |
| 7099 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7100 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7101 | goto string_till_end; |
| 7102 | } |
| 7103 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7104 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7105 | ptr += size; |
| 7106 | break; |
| 7107 | } |
| 7108 | // bool is_fru = 15; |
| 7109 | case 15: { |
| 7110 | if (static_cast<::google::protobuf::uint8>(tag) != 120) goto handle_unusual; |
| 7111 | msg->set_is_fru(::google::protobuf::internal::ReadVarint(&ptr)); |
| 7112 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7113 | break; |
| 7114 | } |
| 7115 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7116 | case 16: { |
| 7117 | if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; |
| 7118 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7119 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7120 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 7121 | object = msg->mutable_mfg_date(); |
| 7122 | if (size > end - ptr) goto len_delim_till_end; |
| 7123 | ptr += size; |
| 7124 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7125 | {parser_till_end, object}, ptr - size, ptr)); |
| 7126 | break; |
| 7127 | } |
| 7128 | // .dmi.Uri uri = 17; |
| 7129 | case 17: { |
| 7130 | if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; |
| 7131 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7132 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7133 | parser_till_end = ::dmi::Uri::_InternalParse; |
| 7134 | object = msg->mutable_uri(); |
| 7135 | if (size > end - ptr) goto len_delim_till_end; |
| 7136 | ptr += size; |
| 7137 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7138 | {parser_till_end, object}, ptr - size, ptr)); |
| 7139 | break; |
| 7140 | } |
| 7141 | // .dmi.Uuid uuid = 18; |
| 7142 | case 18: { |
| 7143 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 7144 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7145 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7146 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 7147 | object = msg->mutable_uuid(); |
| 7148 | if (size > end - ptr) goto len_delim_till_end; |
| 7149 | ptr += size; |
| 7150 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7151 | {parser_till_end, object}, ptr - size, ptr)); |
| 7152 | break; |
| 7153 | } |
| 7154 | // .dmi.ComponentState state = 19; |
| 7155 | case 19: { |
| 7156 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 7157 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7158 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7159 | parser_till_end = ::dmi::ComponentState::_InternalParse; |
| 7160 | object = msg->mutable_state(); |
| 7161 | if (size > end - ptr) goto len_delim_till_end; |
| 7162 | ptr += size; |
| 7163 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7164 | {parser_till_end, object}, ptr - size, ptr)); |
| 7165 | break; |
| 7166 | } |
| 7167 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7168 | case 20: { |
| 7169 | if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; |
| 7170 | do { |
| 7171 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7172 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7173 | parser_till_end = ::dmi::ComponentSensorData::_InternalParse; |
| 7174 | object = msg->add_sensor_data(); |
| 7175 | if (size > end - ptr) goto len_delim_till_end; |
| 7176 | ptr += size; |
| 7177 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7178 | {parser_till_end, object}, ptr - size, ptr)); |
| 7179 | if (ptr >= end) break; |
| 7180 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 418 && (ptr += 2)); |
| 7181 | break; |
| 7182 | } |
| 7183 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7184 | case 50: { |
| 7185 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 7186 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7187 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7188 | parser_till_end = ::dmi::PortComponentAttributes::_InternalParse; |
| 7189 | object = msg->mutable_port_attr(); |
| 7190 | if (size > end - ptr) goto len_delim_till_end; |
| 7191 | ptr += size; |
| 7192 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7193 | {parser_till_end, object}, ptr - size, ptr)); |
| 7194 | break; |
| 7195 | } |
| 7196 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7197 | case 51: { |
| 7198 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 7199 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7200 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7201 | parser_till_end = ::dmi::ContainerComponentAttributes::_InternalParse; |
| 7202 | object = msg->mutable_container_attr(); |
| 7203 | if (size > end - ptr) goto len_delim_till_end; |
| 7204 | ptr += size; |
| 7205 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7206 | {parser_till_end, object}, ptr - size, ptr)); |
| 7207 | break; |
| 7208 | } |
| 7209 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7210 | case 52: { |
| 7211 | if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; |
| 7212 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7213 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7214 | parser_till_end = ::dmi::PsuComponentAttributes::_InternalParse; |
| 7215 | object = msg->mutable_psu_attr(); |
| 7216 | if (size > end - ptr) goto len_delim_till_end; |
| 7217 | ptr += size; |
| 7218 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7219 | {parser_till_end, object}, ptr - size, ptr)); |
| 7220 | break; |
| 7221 | } |
| 7222 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7223 | case 53: { |
| 7224 | if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; |
| 7225 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7226 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7227 | parser_till_end = ::dmi::TransceiverComponentsAttributes::_InternalParse; |
| 7228 | object = msg->mutable_transceiver_attr(); |
| 7229 | if (size > end - ptr) goto len_delim_till_end; |
| 7230 | ptr += size; |
| 7231 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 7232 | {parser_till_end, object}, ptr - size, ptr)); |
| 7233 | break; |
| 7234 | } |
| 7235 | default: { |
| 7236 | handle_unusual: |
| 7237 | if ((tag & 7) == 4 || tag == 0) { |
| 7238 | ctx->EndGroup(tag); |
| 7239 | return ptr; |
| 7240 | } |
| 7241 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7242 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7243 | ptr = res.first; |
| 7244 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7245 | if (res.second) return ptr; |
| 7246 | } |
| 7247 | } // switch |
| 7248 | } // while |
| 7249 | return ptr; |
| 7250 | string_till_end: |
| 7251 | static_cast<::std::string*>(object)->clear(); |
| 7252 | static_cast<::std::string*>(object)->reserve(size); |
| 7253 | goto len_delim_till_end; |
| 7254 | len_delim_till_end: |
| 7255 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7256 | {parser_till_end, object}, size); |
| 7257 | } |
| 7258 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7259 | bool Component::MergePartialFromCodedStream( |
| 7260 | ::google::protobuf::io::CodedInputStream* input) { |
| 7261 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7262 | ::google::protobuf::uint32 tag; |
| 7263 | // @@protoc_insertion_point(parse_start:dmi.Component) |
| 7264 | for (;;) { |
| 7265 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
| 7266 | tag = p.first; |
| 7267 | if (!p.second) goto handle_unusual; |
| 7268 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7269 | // string name = 1; |
| 7270 | case 1: { |
| 7271 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7272 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7273 | input, this->mutable_name())); |
| 7274 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7275 | this->name().data(), static_cast<int>(this->name().length()), |
| 7276 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7277 | "dmi.Component.name")); |
| 7278 | } else { |
| 7279 | goto handle_unusual; |
| 7280 | } |
| 7281 | break; |
| 7282 | } |
| 7283 | |
| 7284 | // .dmi.ComponentType class = 2; |
| 7285 | case 2: { |
| 7286 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7287 | int value = 0; |
| 7288 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7289 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7290 | input, &value))); |
| 7291 | set_class_(static_cast< ::dmi::ComponentType >(value)); |
| 7292 | } else { |
| 7293 | goto handle_unusual; |
| 7294 | } |
| 7295 | break; |
| 7296 | } |
| 7297 | |
| 7298 | // string description = 3; |
| 7299 | case 3: { |
| 7300 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7301 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7302 | input, this->mutable_description())); |
| 7303 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7304 | this->description().data(), static_cast<int>(this->description().length()), |
| 7305 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7306 | "dmi.Component.description")); |
| 7307 | } else { |
| 7308 | goto handle_unusual; |
| 7309 | } |
| 7310 | break; |
| 7311 | } |
| 7312 | |
| 7313 | // string parent = 4; |
| 7314 | case 4: { |
| 7315 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7316 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7317 | input, this->mutable_parent())); |
| 7318 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7319 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 7320 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7321 | "dmi.Component.parent")); |
| 7322 | } else { |
| 7323 | goto handle_unusual; |
| 7324 | } |
| 7325 | break; |
| 7326 | } |
| 7327 | |
| 7328 | // int32 parent_rel_pos = 5; |
| 7329 | case 5: { |
| 7330 | if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { |
| 7331 | |
| 7332 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7333 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 7334 | input, &parent_rel_pos_))); |
| 7335 | } else { |
| 7336 | goto handle_unusual; |
| 7337 | } |
| 7338 | break; |
| 7339 | } |
| 7340 | |
| 7341 | // repeated .dmi.Component children = 6; |
| 7342 | case 6: { |
| 7343 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 7344 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7345 | input, add_children())); |
| 7346 | } else { |
| 7347 | goto handle_unusual; |
| 7348 | } |
| 7349 | break; |
| 7350 | } |
| 7351 | |
| 7352 | // string hardware_rev = 7; |
| 7353 | case 7: { |
| 7354 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 7355 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7356 | input, this->mutable_hardware_rev())); |
| 7357 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7358 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 7359 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7360 | "dmi.Component.hardware_rev")); |
| 7361 | } else { |
| 7362 | goto handle_unusual; |
| 7363 | } |
| 7364 | break; |
| 7365 | } |
| 7366 | |
| 7367 | // string firmware_rev = 8; |
| 7368 | case 8: { |
| 7369 | if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { |
| 7370 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7371 | input, this->mutable_firmware_rev())); |
| 7372 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7373 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 7374 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7375 | "dmi.Component.firmware_rev")); |
| 7376 | } else { |
| 7377 | goto handle_unusual; |
| 7378 | } |
| 7379 | break; |
| 7380 | } |
| 7381 | |
| 7382 | // string software_rev = 9; |
| 7383 | case 9: { |
| 7384 | if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { |
| 7385 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7386 | input, this->mutable_software_rev())); |
| 7387 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7388 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 7389 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7390 | "dmi.Component.software_rev")); |
| 7391 | } else { |
| 7392 | goto handle_unusual; |
| 7393 | } |
| 7394 | break; |
| 7395 | } |
| 7396 | |
| 7397 | // string serial_num = 10; |
| 7398 | case 10: { |
| 7399 | if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { |
| 7400 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7401 | input, this->mutable_serial_num())); |
| 7402 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7403 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 7404 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7405 | "dmi.Component.serial_num")); |
| 7406 | } else { |
| 7407 | goto handle_unusual; |
| 7408 | } |
| 7409 | break; |
| 7410 | } |
| 7411 | |
| 7412 | // string mfg_name = 11; |
| 7413 | case 11: { |
| 7414 | if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { |
| 7415 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7416 | input, this->mutable_mfg_name())); |
| 7417 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7418 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 7419 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7420 | "dmi.Component.mfg_name")); |
| 7421 | } else { |
| 7422 | goto handle_unusual; |
| 7423 | } |
| 7424 | break; |
| 7425 | } |
| 7426 | |
| 7427 | // string model_name = 12; |
| 7428 | case 12: { |
| 7429 | if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { |
| 7430 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7431 | input, this->mutable_model_name())); |
| 7432 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7433 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 7434 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7435 | "dmi.Component.model_name")); |
| 7436 | } else { |
| 7437 | goto handle_unusual; |
| 7438 | } |
| 7439 | break; |
| 7440 | } |
| 7441 | |
| 7442 | // string alias = 13; |
| 7443 | case 13: { |
| 7444 | if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { |
| 7445 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7446 | input, this->mutable_alias())); |
| 7447 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7448 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 7449 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7450 | "dmi.Component.alias")); |
| 7451 | } else { |
| 7452 | goto handle_unusual; |
| 7453 | } |
| 7454 | break; |
| 7455 | } |
| 7456 | |
| 7457 | // string asset_id = 14; |
| 7458 | case 14: { |
| 7459 | if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { |
| 7460 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7461 | input, this->mutable_asset_id())); |
| 7462 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7463 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 7464 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7465 | "dmi.Component.asset_id")); |
| 7466 | } else { |
| 7467 | goto handle_unusual; |
| 7468 | } |
| 7469 | break; |
| 7470 | } |
| 7471 | |
| 7472 | // bool is_fru = 15; |
| 7473 | case 15: { |
| 7474 | if (static_cast< ::google::protobuf::uint8>(tag) == (120 & 0xFF)) { |
| 7475 | |
| 7476 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7477 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 7478 | input, &is_fru_))); |
| 7479 | } else { |
| 7480 | goto handle_unusual; |
| 7481 | } |
| 7482 | break; |
| 7483 | } |
| 7484 | |
| 7485 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7486 | case 16: { |
| 7487 | if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { |
| 7488 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7489 | input, mutable_mfg_date())); |
| 7490 | } else { |
| 7491 | goto handle_unusual; |
| 7492 | } |
| 7493 | break; |
| 7494 | } |
| 7495 | |
| 7496 | // .dmi.Uri uri = 17; |
| 7497 | case 17: { |
| 7498 | if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { |
| 7499 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7500 | input, mutable_uri())); |
| 7501 | } else { |
| 7502 | goto handle_unusual; |
| 7503 | } |
| 7504 | break; |
| 7505 | } |
| 7506 | |
| 7507 | // .dmi.Uuid uuid = 18; |
| 7508 | case 18: { |
| 7509 | if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { |
| 7510 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7511 | input, mutable_uuid())); |
| 7512 | } else { |
| 7513 | goto handle_unusual; |
| 7514 | } |
| 7515 | break; |
| 7516 | } |
| 7517 | |
| 7518 | // .dmi.ComponentState state = 19; |
| 7519 | case 19: { |
| 7520 | if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { |
| 7521 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7522 | input, mutable_state())); |
| 7523 | } else { |
| 7524 | goto handle_unusual; |
| 7525 | } |
| 7526 | break; |
| 7527 | } |
| 7528 | |
| 7529 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7530 | case 20: { |
| 7531 | if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { |
| 7532 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7533 | input, add_sensor_data())); |
| 7534 | } else { |
| 7535 | goto handle_unusual; |
| 7536 | } |
| 7537 | break; |
| 7538 | } |
| 7539 | |
| 7540 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7541 | case 50: { |
| 7542 | if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { |
| 7543 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7544 | input, mutable_port_attr())); |
| 7545 | } else { |
| 7546 | goto handle_unusual; |
| 7547 | } |
| 7548 | break; |
| 7549 | } |
| 7550 | |
| 7551 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7552 | case 51: { |
| 7553 | if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { |
| 7554 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7555 | input, mutable_container_attr())); |
| 7556 | } else { |
| 7557 | goto handle_unusual; |
| 7558 | } |
| 7559 | break; |
| 7560 | } |
| 7561 | |
| 7562 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7563 | case 52: { |
| 7564 | if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) { |
| 7565 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7566 | input, mutable_psu_attr())); |
| 7567 | } else { |
| 7568 | goto handle_unusual; |
| 7569 | } |
| 7570 | break; |
| 7571 | } |
| 7572 | |
| 7573 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7574 | case 53: { |
| 7575 | if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) { |
| 7576 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 7577 | input, mutable_transceiver_attr())); |
| 7578 | } else { |
| 7579 | goto handle_unusual; |
| 7580 | } |
| 7581 | break; |
| 7582 | } |
| 7583 | |
| 7584 | default: { |
| 7585 | handle_unusual: |
| 7586 | if (tag == 0) { |
| 7587 | goto success; |
| 7588 | } |
| 7589 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7590 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7591 | break; |
| 7592 | } |
| 7593 | } |
| 7594 | } |
| 7595 | success: |
| 7596 | // @@protoc_insertion_point(parse_success:dmi.Component) |
| 7597 | return true; |
| 7598 | failure: |
| 7599 | // @@protoc_insertion_point(parse_failure:dmi.Component) |
| 7600 | return false; |
| 7601 | #undef DO_ |
| 7602 | } |
| 7603 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7604 | |
| 7605 | void Component::SerializeWithCachedSizes( |
| 7606 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7607 | // @@protoc_insertion_point(serialize_start:dmi.Component) |
| 7608 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7609 | (void) cached_has_bits; |
| 7610 | |
| 7611 | // string name = 1; |
| 7612 | if (this->name().size() > 0) { |
| 7613 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7614 | this->name().data(), static_cast<int>(this->name().length()), |
| 7615 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7616 | "dmi.Component.name"); |
| 7617 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7618 | 1, this->name(), output); |
| 7619 | } |
| 7620 | |
| 7621 | // .dmi.ComponentType class = 2; |
| 7622 | if (this->class_() != 0) { |
| 7623 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7624 | 2, this->class_(), output); |
| 7625 | } |
| 7626 | |
| 7627 | // string description = 3; |
| 7628 | if (this->description().size() > 0) { |
| 7629 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7630 | this->description().data(), static_cast<int>(this->description().length()), |
| 7631 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7632 | "dmi.Component.description"); |
| 7633 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7634 | 3, this->description(), output); |
| 7635 | } |
| 7636 | |
| 7637 | // string parent = 4; |
| 7638 | if (this->parent().size() > 0) { |
| 7639 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7640 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 7641 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7642 | "dmi.Component.parent"); |
| 7643 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7644 | 4, this->parent(), output); |
| 7645 | } |
| 7646 | |
| 7647 | // int32 parent_rel_pos = 5; |
| 7648 | if (this->parent_rel_pos() != 0) { |
| 7649 | ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parent_rel_pos(), output); |
| 7650 | } |
| 7651 | |
| 7652 | // repeated .dmi.Component children = 6; |
| 7653 | for (unsigned int i = 0, |
| 7654 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
| 7655 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7656 | 6, |
| 7657 | this->children(static_cast<int>(i)), |
| 7658 | output); |
| 7659 | } |
| 7660 | |
| 7661 | // string hardware_rev = 7; |
| 7662 | if (this->hardware_rev().size() > 0) { |
| 7663 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7664 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 7665 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7666 | "dmi.Component.hardware_rev"); |
| 7667 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7668 | 7, this->hardware_rev(), output); |
| 7669 | } |
| 7670 | |
| 7671 | // string firmware_rev = 8; |
| 7672 | if (this->firmware_rev().size() > 0) { |
| 7673 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7674 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 7675 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7676 | "dmi.Component.firmware_rev"); |
| 7677 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7678 | 8, this->firmware_rev(), output); |
| 7679 | } |
| 7680 | |
| 7681 | // string software_rev = 9; |
| 7682 | if (this->software_rev().size() > 0) { |
| 7683 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7684 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 7685 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7686 | "dmi.Component.software_rev"); |
| 7687 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7688 | 9, this->software_rev(), output); |
| 7689 | } |
| 7690 | |
| 7691 | // string serial_num = 10; |
| 7692 | if (this->serial_num().size() > 0) { |
| 7693 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7694 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 7695 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7696 | "dmi.Component.serial_num"); |
| 7697 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7698 | 10, this->serial_num(), output); |
| 7699 | } |
| 7700 | |
| 7701 | // string mfg_name = 11; |
| 7702 | if (this->mfg_name().size() > 0) { |
| 7703 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7704 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 7705 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7706 | "dmi.Component.mfg_name"); |
| 7707 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7708 | 11, this->mfg_name(), output); |
| 7709 | } |
| 7710 | |
| 7711 | // string model_name = 12; |
| 7712 | if (this->model_name().size() > 0) { |
| 7713 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7714 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 7715 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7716 | "dmi.Component.model_name"); |
| 7717 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7718 | 12, this->model_name(), output); |
| 7719 | } |
| 7720 | |
| 7721 | // string alias = 13; |
| 7722 | if (this->alias().size() > 0) { |
| 7723 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7724 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 7725 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7726 | "dmi.Component.alias"); |
| 7727 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7728 | 13, this->alias(), output); |
| 7729 | } |
| 7730 | |
| 7731 | // string asset_id = 14; |
| 7732 | if (this->asset_id().size() > 0) { |
| 7733 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7734 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 7735 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7736 | "dmi.Component.asset_id"); |
| 7737 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7738 | 14, this->asset_id(), output); |
| 7739 | } |
| 7740 | |
| 7741 | // bool is_fru = 15; |
| 7742 | if (this->is_fru() != 0) { |
| 7743 | ::google::protobuf::internal::WireFormatLite::WriteBool(15, this->is_fru(), output); |
| 7744 | } |
| 7745 | |
| 7746 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7747 | if (this->has_mfg_date()) { |
| 7748 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7749 | 16, HasBitSetters::mfg_date(this), output); |
| 7750 | } |
| 7751 | |
| 7752 | // .dmi.Uri uri = 17; |
| 7753 | if (this->has_uri()) { |
| 7754 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7755 | 17, HasBitSetters::uri(this), output); |
| 7756 | } |
| 7757 | |
| 7758 | // .dmi.Uuid uuid = 18; |
| 7759 | if (this->has_uuid()) { |
| 7760 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7761 | 18, HasBitSetters::uuid(this), output); |
| 7762 | } |
| 7763 | |
| 7764 | // .dmi.ComponentState state = 19; |
| 7765 | if (this->has_state()) { |
| 7766 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7767 | 19, HasBitSetters::state(this), output); |
| 7768 | } |
| 7769 | |
| 7770 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7771 | for (unsigned int i = 0, |
| 7772 | n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) { |
| 7773 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7774 | 20, |
| 7775 | this->sensor_data(static_cast<int>(i)), |
| 7776 | output); |
| 7777 | } |
| 7778 | |
| 7779 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7780 | if (has_port_attr()) { |
| 7781 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7782 | 50, HasBitSetters::port_attr(this), output); |
| 7783 | } |
| 7784 | |
| 7785 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 7786 | if (has_container_attr()) { |
| 7787 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7788 | 51, HasBitSetters::container_attr(this), output); |
| 7789 | } |
| 7790 | |
| 7791 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 7792 | if (has_psu_attr()) { |
| 7793 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7794 | 52, HasBitSetters::psu_attr(this), output); |
| 7795 | } |
| 7796 | |
| 7797 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 7798 | if (has_transceiver_attr()) { |
| 7799 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 7800 | 53, HasBitSetters::transceiver_attr(this), output); |
| 7801 | } |
| 7802 | |
| 7803 | if (_internal_metadata_.have_unknown_fields()) { |
| 7804 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7805 | _internal_metadata_.unknown_fields(), output); |
| 7806 | } |
| 7807 | // @@protoc_insertion_point(serialize_end:dmi.Component) |
| 7808 | } |
| 7809 | |
| 7810 | ::google::protobuf::uint8* Component::InternalSerializeWithCachedSizesToArray( |
| 7811 | ::google::protobuf::uint8* target) const { |
| 7812 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Component) |
| 7813 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7814 | (void) cached_has_bits; |
| 7815 | |
| 7816 | // string name = 1; |
| 7817 | if (this->name().size() > 0) { |
| 7818 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7819 | this->name().data(), static_cast<int>(this->name().length()), |
| 7820 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7821 | "dmi.Component.name"); |
| 7822 | target = |
| 7823 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7824 | 1, this->name(), target); |
| 7825 | } |
| 7826 | |
| 7827 | // .dmi.ComponentType class = 2; |
| 7828 | if (this->class_() != 0) { |
| 7829 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7830 | 2, this->class_(), target); |
| 7831 | } |
| 7832 | |
| 7833 | // string description = 3; |
| 7834 | if (this->description().size() > 0) { |
| 7835 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7836 | this->description().data(), static_cast<int>(this->description().length()), |
| 7837 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7838 | "dmi.Component.description"); |
| 7839 | target = |
| 7840 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7841 | 3, this->description(), target); |
| 7842 | } |
| 7843 | |
| 7844 | // string parent = 4; |
| 7845 | if (this->parent().size() > 0) { |
| 7846 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7847 | this->parent().data(), static_cast<int>(this->parent().length()), |
| 7848 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7849 | "dmi.Component.parent"); |
| 7850 | target = |
| 7851 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7852 | 4, this->parent(), target); |
| 7853 | } |
| 7854 | |
| 7855 | // int32 parent_rel_pos = 5; |
| 7856 | if (this->parent_rel_pos() != 0) { |
| 7857 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parent_rel_pos(), target); |
| 7858 | } |
| 7859 | |
| 7860 | // repeated .dmi.Component children = 6; |
| 7861 | for (unsigned int i = 0, |
| 7862 | n = static_cast<unsigned int>(this->children_size()); i < n; i++) { |
| 7863 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7864 | InternalWriteMessageToArray( |
| 7865 | 6, this->children(static_cast<int>(i)), target); |
| 7866 | } |
| 7867 | |
| 7868 | // string hardware_rev = 7; |
| 7869 | if (this->hardware_rev().size() > 0) { |
| 7870 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7871 | this->hardware_rev().data(), static_cast<int>(this->hardware_rev().length()), |
| 7872 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7873 | "dmi.Component.hardware_rev"); |
| 7874 | target = |
| 7875 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7876 | 7, this->hardware_rev(), target); |
| 7877 | } |
| 7878 | |
| 7879 | // string firmware_rev = 8; |
| 7880 | if (this->firmware_rev().size() > 0) { |
| 7881 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7882 | this->firmware_rev().data(), static_cast<int>(this->firmware_rev().length()), |
| 7883 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7884 | "dmi.Component.firmware_rev"); |
| 7885 | target = |
| 7886 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7887 | 8, this->firmware_rev(), target); |
| 7888 | } |
| 7889 | |
| 7890 | // string software_rev = 9; |
| 7891 | if (this->software_rev().size() > 0) { |
| 7892 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7893 | this->software_rev().data(), static_cast<int>(this->software_rev().length()), |
| 7894 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7895 | "dmi.Component.software_rev"); |
| 7896 | target = |
| 7897 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7898 | 9, this->software_rev(), target); |
| 7899 | } |
| 7900 | |
| 7901 | // string serial_num = 10; |
| 7902 | if (this->serial_num().size() > 0) { |
| 7903 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7904 | this->serial_num().data(), static_cast<int>(this->serial_num().length()), |
| 7905 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7906 | "dmi.Component.serial_num"); |
| 7907 | target = |
| 7908 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7909 | 10, this->serial_num(), target); |
| 7910 | } |
| 7911 | |
| 7912 | // string mfg_name = 11; |
| 7913 | if (this->mfg_name().size() > 0) { |
| 7914 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7915 | this->mfg_name().data(), static_cast<int>(this->mfg_name().length()), |
| 7916 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7917 | "dmi.Component.mfg_name"); |
| 7918 | target = |
| 7919 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7920 | 11, this->mfg_name(), target); |
| 7921 | } |
| 7922 | |
| 7923 | // string model_name = 12; |
| 7924 | if (this->model_name().size() > 0) { |
| 7925 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7926 | this->model_name().data(), static_cast<int>(this->model_name().length()), |
| 7927 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7928 | "dmi.Component.model_name"); |
| 7929 | target = |
| 7930 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7931 | 12, this->model_name(), target); |
| 7932 | } |
| 7933 | |
| 7934 | // string alias = 13; |
| 7935 | if (this->alias().size() > 0) { |
| 7936 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7937 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 7938 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7939 | "dmi.Component.alias"); |
| 7940 | target = |
| 7941 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7942 | 13, this->alias(), target); |
| 7943 | } |
| 7944 | |
| 7945 | // string asset_id = 14; |
| 7946 | if (this->asset_id().size() > 0) { |
| 7947 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7948 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 7949 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7950 | "dmi.Component.asset_id"); |
| 7951 | target = |
| 7952 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7953 | 14, this->asset_id(), target); |
| 7954 | } |
| 7955 | |
| 7956 | // bool is_fru = 15; |
| 7957 | if (this->is_fru() != 0) { |
| 7958 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(15, this->is_fru(), target); |
| 7959 | } |
| 7960 | |
| 7961 | // .google.protobuf.Timestamp mfg_date = 16; |
| 7962 | if (this->has_mfg_date()) { |
| 7963 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7964 | InternalWriteMessageToArray( |
| 7965 | 16, HasBitSetters::mfg_date(this), target); |
| 7966 | } |
| 7967 | |
| 7968 | // .dmi.Uri uri = 17; |
| 7969 | if (this->has_uri()) { |
| 7970 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7971 | InternalWriteMessageToArray( |
| 7972 | 17, HasBitSetters::uri(this), target); |
| 7973 | } |
| 7974 | |
| 7975 | // .dmi.Uuid uuid = 18; |
| 7976 | if (this->has_uuid()) { |
| 7977 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7978 | InternalWriteMessageToArray( |
| 7979 | 18, HasBitSetters::uuid(this), target); |
| 7980 | } |
| 7981 | |
| 7982 | // .dmi.ComponentState state = 19; |
| 7983 | if (this->has_state()) { |
| 7984 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7985 | InternalWriteMessageToArray( |
| 7986 | 19, HasBitSetters::state(this), target); |
| 7987 | } |
| 7988 | |
| 7989 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 7990 | for (unsigned int i = 0, |
| 7991 | n = static_cast<unsigned int>(this->sensor_data_size()); i < n; i++) { |
| 7992 | target = ::google::protobuf::internal::WireFormatLite:: |
| 7993 | InternalWriteMessageToArray( |
| 7994 | 20, this->sensor_data(static_cast<int>(i)), target); |
| 7995 | } |
| 7996 | |
| 7997 | // .dmi.PortComponentAttributes port_attr = 50; |
| 7998 | if (has_port_attr()) { |
| 7999 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8000 | InternalWriteMessageToArray( |
| 8001 | 50, HasBitSetters::port_attr(this), target); |
| 8002 | } |
| 8003 | |
| 8004 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 8005 | if (has_container_attr()) { |
| 8006 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8007 | InternalWriteMessageToArray( |
| 8008 | 51, HasBitSetters::container_attr(this), target); |
| 8009 | } |
| 8010 | |
| 8011 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 8012 | if (has_psu_attr()) { |
| 8013 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8014 | InternalWriteMessageToArray( |
| 8015 | 52, HasBitSetters::psu_attr(this), target); |
| 8016 | } |
| 8017 | |
| 8018 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 8019 | if (has_transceiver_attr()) { |
| 8020 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8021 | InternalWriteMessageToArray( |
| 8022 | 53, HasBitSetters::transceiver_attr(this), target); |
| 8023 | } |
| 8024 | |
| 8025 | if (_internal_metadata_.have_unknown_fields()) { |
| 8026 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8027 | _internal_metadata_.unknown_fields(), target); |
| 8028 | } |
| 8029 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Component) |
| 8030 | return target; |
| 8031 | } |
| 8032 | |
| 8033 | size_t Component::ByteSizeLong() const { |
| 8034 | // @@protoc_insertion_point(message_byte_size_start:dmi.Component) |
| 8035 | size_t total_size = 0; |
| 8036 | |
| 8037 | if (_internal_metadata_.have_unknown_fields()) { |
| 8038 | total_size += |
| 8039 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8040 | _internal_metadata_.unknown_fields()); |
| 8041 | } |
| 8042 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8043 | // Prevent compiler warnings about cached_has_bits being unused |
| 8044 | (void) cached_has_bits; |
| 8045 | |
| 8046 | // repeated .dmi.Component children = 6; |
| 8047 | { |
| 8048 | unsigned int count = static_cast<unsigned int>(this->children_size()); |
| 8049 | total_size += 1UL * count; |
| 8050 | for (unsigned int i = 0; i < count; i++) { |
| 8051 | total_size += |
| 8052 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8053 | this->children(static_cast<int>(i))); |
| 8054 | } |
| 8055 | } |
| 8056 | |
| 8057 | // repeated .dmi.ComponentSensorData sensor_data = 20; |
| 8058 | { |
| 8059 | unsigned int count = static_cast<unsigned int>(this->sensor_data_size()); |
| 8060 | total_size += 2UL * count; |
| 8061 | for (unsigned int i = 0; i < count; i++) { |
| 8062 | total_size += |
| 8063 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8064 | this->sensor_data(static_cast<int>(i))); |
| 8065 | } |
| 8066 | } |
| 8067 | |
| 8068 | // string name = 1; |
| 8069 | if (this->name().size() > 0) { |
| 8070 | total_size += 1 + |
| 8071 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8072 | this->name()); |
| 8073 | } |
| 8074 | |
| 8075 | // string description = 3; |
| 8076 | if (this->description().size() > 0) { |
| 8077 | total_size += 1 + |
| 8078 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8079 | this->description()); |
| 8080 | } |
| 8081 | |
| 8082 | // string parent = 4; |
| 8083 | if (this->parent().size() > 0) { |
| 8084 | total_size += 1 + |
| 8085 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8086 | this->parent()); |
| 8087 | } |
| 8088 | |
| 8089 | // string hardware_rev = 7; |
| 8090 | if (this->hardware_rev().size() > 0) { |
| 8091 | total_size += 1 + |
| 8092 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8093 | this->hardware_rev()); |
| 8094 | } |
| 8095 | |
| 8096 | // string firmware_rev = 8; |
| 8097 | if (this->firmware_rev().size() > 0) { |
| 8098 | total_size += 1 + |
| 8099 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8100 | this->firmware_rev()); |
| 8101 | } |
| 8102 | |
| 8103 | // string software_rev = 9; |
| 8104 | if (this->software_rev().size() > 0) { |
| 8105 | total_size += 1 + |
| 8106 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8107 | this->software_rev()); |
| 8108 | } |
| 8109 | |
| 8110 | // string serial_num = 10; |
| 8111 | if (this->serial_num().size() > 0) { |
| 8112 | total_size += 1 + |
| 8113 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8114 | this->serial_num()); |
| 8115 | } |
| 8116 | |
| 8117 | // string mfg_name = 11; |
| 8118 | if (this->mfg_name().size() > 0) { |
| 8119 | total_size += 1 + |
| 8120 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8121 | this->mfg_name()); |
| 8122 | } |
| 8123 | |
| 8124 | // string model_name = 12; |
| 8125 | if (this->model_name().size() > 0) { |
| 8126 | total_size += 1 + |
| 8127 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8128 | this->model_name()); |
| 8129 | } |
| 8130 | |
| 8131 | // string alias = 13; |
| 8132 | if (this->alias().size() > 0) { |
| 8133 | total_size += 1 + |
| 8134 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8135 | this->alias()); |
| 8136 | } |
| 8137 | |
| 8138 | // string asset_id = 14; |
| 8139 | if (this->asset_id().size() > 0) { |
| 8140 | total_size += 1 + |
| 8141 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8142 | this->asset_id()); |
| 8143 | } |
| 8144 | |
| 8145 | // .google.protobuf.Timestamp mfg_date = 16; |
| 8146 | if (this->has_mfg_date()) { |
| 8147 | total_size += 2 + |
| 8148 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8149 | *mfg_date_); |
| 8150 | } |
| 8151 | |
| 8152 | // .dmi.Uri uri = 17; |
| 8153 | if (this->has_uri()) { |
| 8154 | total_size += 2 + |
| 8155 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8156 | *uri_); |
| 8157 | } |
| 8158 | |
| 8159 | // .dmi.Uuid uuid = 18; |
| 8160 | if (this->has_uuid()) { |
| 8161 | total_size += 2 + |
| 8162 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8163 | *uuid_); |
| 8164 | } |
| 8165 | |
| 8166 | // .dmi.ComponentState state = 19; |
| 8167 | if (this->has_state()) { |
| 8168 | total_size += 2 + |
| 8169 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8170 | *state_); |
| 8171 | } |
| 8172 | |
| 8173 | // .dmi.ComponentType class = 2; |
| 8174 | if (this->class_() != 0) { |
| 8175 | total_size += 1 + |
| 8176 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_()); |
| 8177 | } |
| 8178 | |
| 8179 | // int32 parent_rel_pos = 5; |
| 8180 | if (this->parent_rel_pos() != 0) { |
| 8181 | total_size += 1 + |
| 8182 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 8183 | this->parent_rel_pos()); |
| 8184 | } |
| 8185 | |
| 8186 | // bool is_fru = 15; |
| 8187 | if (this->is_fru() != 0) { |
| 8188 | total_size += 1 + 1; |
| 8189 | } |
| 8190 | |
| 8191 | switch (specific_case()) { |
| 8192 | // .dmi.PortComponentAttributes port_attr = 50; |
| 8193 | case kPortAttr: { |
| 8194 | total_size += 2 + |
| 8195 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8196 | *specific_.port_attr_); |
| 8197 | break; |
| 8198 | } |
| 8199 | // .dmi.ContainerComponentAttributes container_attr = 51; |
| 8200 | case kContainerAttr: { |
| 8201 | total_size += 2 + |
| 8202 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8203 | *specific_.container_attr_); |
| 8204 | break; |
| 8205 | } |
| 8206 | // .dmi.PsuComponentAttributes psu_attr = 52; |
| 8207 | case kPsuAttr: { |
| 8208 | total_size += 2 + |
| 8209 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8210 | *specific_.psu_attr_); |
| 8211 | break; |
| 8212 | } |
| 8213 | // .dmi.TransceiverComponentsAttributes transceiver_attr = 53; |
| 8214 | case kTransceiverAttr: { |
| 8215 | total_size += 2 + |
| 8216 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8217 | *specific_.transceiver_attr_); |
| 8218 | break; |
| 8219 | } |
| 8220 | case SPECIFIC_NOT_SET: { |
| 8221 | break; |
| 8222 | } |
| 8223 | } |
| 8224 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8225 | SetCachedSize(cached_size); |
| 8226 | return total_size; |
| 8227 | } |
| 8228 | |
| 8229 | void Component::MergeFrom(const ::google::protobuf::Message& from) { |
| 8230 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Component) |
| 8231 | GOOGLE_DCHECK_NE(&from, this); |
| 8232 | const Component* source = |
| 8233 | ::google::protobuf::DynamicCastToGenerated<Component>( |
| 8234 | &from); |
| 8235 | if (source == nullptr) { |
| 8236 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Component) |
| 8237 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8238 | } else { |
| 8239 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Component) |
| 8240 | MergeFrom(*source); |
| 8241 | } |
| 8242 | } |
| 8243 | |
| 8244 | void Component::MergeFrom(const Component& from) { |
| 8245 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Component) |
| 8246 | GOOGLE_DCHECK_NE(&from, this); |
| 8247 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8248 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8249 | (void) cached_has_bits; |
| 8250 | |
| 8251 | children_.MergeFrom(from.children_); |
| 8252 | sensor_data_.MergeFrom(from.sensor_data_); |
| 8253 | if (from.name().size() > 0) { |
| 8254 | |
| 8255 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 8256 | } |
| 8257 | if (from.description().size() > 0) { |
| 8258 | |
| 8259 | description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); |
| 8260 | } |
| 8261 | if (from.parent().size() > 0) { |
| 8262 | |
| 8263 | parent_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.parent_); |
| 8264 | } |
| 8265 | if (from.hardware_rev().size() > 0) { |
| 8266 | |
| 8267 | hardware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hardware_rev_); |
| 8268 | } |
| 8269 | if (from.firmware_rev().size() > 0) { |
| 8270 | |
| 8271 | firmware_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.firmware_rev_); |
| 8272 | } |
| 8273 | if (from.software_rev().size() > 0) { |
| 8274 | |
| 8275 | software_rev_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.software_rev_); |
| 8276 | } |
| 8277 | if (from.serial_num().size() > 0) { |
| 8278 | |
| 8279 | serial_num_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.serial_num_); |
| 8280 | } |
| 8281 | if (from.mfg_name().size() > 0) { |
| 8282 | |
| 8283 | mfg_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mfg_name_); |
| 8284 | } |
| 8285 | if (from.model_name().size() > 0) { |
| 8286 | |
| 8287 | model_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.model_name_); |
| 8288 | } |
| 8289 | if (from.alias().size() > 0) { |
| 8290 | |
| 8291 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 8292 | } |
| 8293 | if (from.asset_id().size() > 0) { |
| 8294 | |
| 8295 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 8296 | } |
| 8297 | if (from.has_mfg_date()) { |
| 8298 | mutable_mfg_date()->::google::protobuf::Timestamp::MergeFrom(from.mfg_date()); |
| 8299 | } |
| 8300 | if (from.has_uri()) { |
| 8301 | mutable_uri()->::dmi::Uri::MergeFrom(from.uri()); |
| 8302 | } |
| 8303 | if (from.has_uuid()) { |
| 8304 | mutable_uuid()->::dmi::Uuid::MergeFrom(from.uuid()); |
| 8305 | } |
| 8306 | if (from.has_state()) { |
| 8307 | mutable_state()->::dmi::ComponentState::MergeFrom(from.state()); |
| 8308 | } |
| 8309 | if (from.class_() != 0) { |
| 8310 | set_class_(from.class_()); |
| 8311 | } |
| 8312 | if (from.parent_rel_pos() != 0) { |
| 8313 | set_parent_rel_pos(from.parent_rel_pos()); |
| 8314 | } |
| 8315 | if (from.is_fru() != 0) { |
| 8316 | set_is_fru(from.is_fru()); |
| 8317 | } |
| 8318 | switch (from.specific_case()) { |
| 8319 | case kPortAttr: { |
| 8320 | mutable_port_attr()->::dmi::PortComponentAttributes::MergeFrom(from.port_attr()); |
| 8321 | break; |
| 8322 | } |
| 8323 | case kContainerAttr: { |
| 8324 | mutable_container_attr()->::dmi::ContainerComponentAttributes::MergeFrom(from.container_attr()); |
| 8325 | break; |
| 8326 | } |
| 8327 | case kPsuAttr: { |
| 8328 | mutable_psu_attr()->::dmi::PsuComponentAttributes::MergeFrom(from.psu_attr()); |
| 8329 | break; |
| 8330 | } |
| 8331 | case kTransceiverAttr: { |
| 8332 | mutable_transceiver_attr()->::dmi::TransceiverComponentsAttributes::MergeFrom(from.transceiver_attr()); |
| 8333 | break; |
| 8334 | } |
| 8335 | case SPECIFIC_NOT_SET: { |
| 8336 | break; |
| 8337 | } |
| 8338 | } |
| 8339 | } |
| 8340 | |
| 8341 | void Component::CopyFrom(const ::google::protobuf::Message& from) { |
| 8342 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Component) |
| 8343 | if (&from == this) return; |
| 8344 | Clear(); |
| 8345 | MergeFrom(from); |
| 8346 | } |
| 8347 | |
| 8348 | void Component::CopyFrom(const Component& from) { |
| 8349 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Component) |
| 8350 | if (&from == this) return; |
| 8351 | Clear(); |
| 8352 | MergeFrom(from); |
| 8353 | } |
| 8354 | |
| 8355 | bool Component::IsInitialized() const { |
| 8356 | return true; |
| 8357 | } |
| 8358 | |
| 8359 | void Component::Swap(Component* other) { |
| 8360 | if (other == this) return; |
| 8361 | InternalSwap(other); |
| 8362 | } |
| 8363 | void Component::InternalSwap(Component* other) { |
| 8364 | using std::swap; |
| 8365 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8366 | CastToBase(&children_)->InternalSwap(CastToBase(&other->children_)); |
| 8367 | CastToBase(&sensor_data_)->InternalSwap(CastToBase(&other->sensor_data_)); |
| 8368 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8369 | GetArenaNoVirtual()); |
| 8370 | description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8371 | GetArenaNoVirtual()); |
| 8372 | parent_.Swap(&other->parent_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8373 | GetArenaNoVirtual()); |
| 8374 | hardware_rev_.Swap(&other->hardware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8375 | GetArenaNoVirtual()); |
| 8376 | firmware_rev_.Swap(&other->firmware_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8377 | GetArenaNoVirtual()); |
| 8378 | software_rev_.Swap(&other->software_rev_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8379 | GetArenaNoVirtual()); |
| 8380 | serial_num_.Swap(&other->serial_num_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8381 | GetArenaNoVirtual()); |
| 8382 | mfg_name_.Swap(&other->mfg_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8383 | GetArenaNoVirtual()); |
| 8384 | model_name_.Swap(&other->model_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8385 | GetArenaNoVirtual()); |
| 8386 | alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8387 | GetArenaNoVirtual()); |
| 8388 | asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8389 | GetArenaNoVirtual()); |
| 8390 | swap(mfg_date_, other->mfg_date_); |
| 8391 | swap(uri_, other->uri_); |
| 8392 | swap(uuid_, other->uuid_); |
| 8393 | swap(state_, other->state_); |
| 8394 | swap(class__, other->class__); |
| 8395 | swap(parent_rel_pos_, other->parent_rel_pos_); |
| 8396 | swap(is_fru_, other->is_fru_); |
| 8397 | swap(specific_, other->specific_); |
| 8398 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 8399 | } |
| 8400 | |
| 8401 | ::google::protobuf::Metadata Component::GetMetadata() const { |
| 8402 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 8403 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 8404 | } |
| 8405 | |
| 8406 | |
| 8407 | // =================================================================== |
| 8408 | |
| 8409 | void Hardware::InitAsDefaultInstance() { |
| 8410 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_change_ = const_cast< ::google::protobuf::Timestamp*>( |
| 8411 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 8412 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->root_ = const_cast< ::dmi::Component*>( |
| 8413 | ::dmi::Component::internal_default_instance()); |
| 8414 | ::dmi::_Hardware_default_instance_._instance.get_mutable()->last_booted_ = const_cast< ::google::protobuf::Timestamp*>( |
| 8415 | ::google::protobuf::Timestamp::internal_default_instance()); |
| 8416 | } |
| 8417 | class Hardware::HasBitSetters { |
| 8418 | public: |
| 8419 | static const ::google::protobuf::Timestamp& last_change(const Hardware* msg); |
| 8420 | static const ::dmi::Component& root(const Hardware* msg); |
| 8421 | static const ::google::protobuf::Timestamp& last_booted(const Hardware* msg); |
| 8422 | }; |
| 8423 | |
| 8424 | const ::google::protobuf::Timestamp& |
| 8425 | Hardware::HasBitSetters::last_change(const Hardware* msg) { |
| 8426 | return *msg->last_change_; |
| 8427 | } |
| 8428 | const ::dmi::Component& |
| 8429 | Hardware::HasBitSetters::root(const Hardware* msg) { |
| 8430 | return *msg->root_; |
| 8431 | } |
| 8432 | const ::google::protobuf::Timestamp& |
| 8433 | Hardware::HasBitSetters::last_booted(const Hardware* msg) { |
| 8434 | return *msg->last_booted_; |
| 8435 | } |
| 8436 | void Hardware::clear_last_change() { |
| 8437 | if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) { |
| 8438 | delete last_change_; |
| 8439 | } |
| 8440 | last_change_ = nullptr; |
| 8441 | } |
| 8442 | void Hardware::clear_last_booted() { |
| 8443 | if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) { |
| 8444 | delete last_booted_; |
| 8445 | } |
| 8446 | last_booted_ = nullptr; |
| 8447 | } |
| 8448 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8449 | const int Hardware::kLastChangeFieldNumber; |
| 8450 | const int Hardware::kRootFieldNumber; |
| 8451 | const int Hardware::kLastBootedFieldNumber; |
| 8452 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8453 | |
| 8454 | Hardware::Hardware() |
| 8455 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8456 | SharedCtor(); |
| 8457 | // @@protoc_insertion_point(constructor:dmi.Hardware) |
| 8458 | } |
| 8459 | Hardware::Hardware(const Hardware& from) |
| 8460 | : ::google::protobuf::Message(), |
| 8461 | _internal_metadata_(nullptr) { |
| 8462 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8463 | if (from.has_last_change()) { |
| 8464 | last_change_ = new ::google::protobuf::Timestamp(*from.last_change_); |
| 8465 | } else { |
| 8466 | last_change_ = nullptr; |
| 8467 | } |
| 8468 | if (from.has_root()) { |
| 8469 | root_ = new ::dmi::Component(*from.root_); |
| 8470 | } else { |
| 8471 | root_ = nullptr; |
| 8472 | } |
| 8473 | if (from.has_last_booted()) { |
| 8474 | last_booted_ = new ::google::protobuf::Timestamp(*from.last_booted_); |
| 8475 | } else { |
| 8476 | last_booted_ = nullptr; |
| 8477 | } |
| 8478 | // @@protoc_insertion_point(copy_constructor:dmi.Hardware) |
| 8479 | } |
| 8480 | |
| 8481 | void Hardware::SharedCtor() { |
| 8482 | ::google::protobuf::internal::InitSCC( |
| 8483 | &scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 8484 | ::memset(&last_change_, 0, static_cast<size_t>( |
| 8485 | reinterpret_cast<char*>(&last_booted_) - |
| 8486 | reinterpret_cast<char*>(&last_change_)) + sizeof(last_booted_)); |
| 8487 | } |
| 8488 | |
| 8489 | Hardware::~Hardware() { |
| 8490 | // @@protoc_insertion_point(destructor:dmi.Hardware) |
| 8491 | SharedDtor(); |
| 8492 | } |
| 8493 | |
| 8494 | void Hardware::SharedDtor() { |
| 8495 | if (this != internal_default_instance()) delete last_change_; |
| 8496 | if (this != internal_default_instance()) delete root_; |
| 8497 | if (this != internal_default_instance()) delete last_booted_; |
| 8498 | } |
| 8499 | |
| 8500 | void Hardware::SetCachedSize(int size) const { |
| 8501 | _cached_size_.Set(size); |
| 8502 | } |
| 8503 | const Hardware& Hardware::default_instance() { |
| 8504 | ::google::protobuf::internal::InitSCC(&::scc_info_Hardware_dmi_2fhw_2eproto.base); |
| 8505 | return *internal_default_instance(); |
| 8506 | } |
| 8507 | |
| 8508 | |
| 8509 | void Hardware::Clear() { |
| 8510 | // @@protoc_insertion_point(message_clear_start:dmi.Hardware) |
| 8511 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8512 | // Prevent compiler warnings about cached_has_bits being unused |
| 8513 | (void) cached_has_bits; |
| 8514 | |
| 8515 | if (GetArenaNoVirtual() == nullptr && last_change_ != nullptr) { |
| 8516 | delete last_change_; |
| 8517 | } |
| 8518 | last_change_ = nullptr; |
| 8519 | if (GetArenaNoVirtual() == nullptr && root_ != nullptr) { |
| 8520 | delete root_; |
| 8521 | } |
| 8522 | root_ = nullptr; |
| 8523 | if (GetArenaNoVirtual() == nullptr && last_booted_ != nullptr) { |
| 8524 | delete last_booted_; |
| 8525 | } |
| 8526 | last_booted_ = nullptr; |
| 8527 | _internal_metadata_.Clear(); |
| 8528 | } |
| 8529 | |
| 8530 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8531 | const char* Hardware::_InternalParse(const char* begin, const char* end, void* object, |
| 8532 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8533 | auto msg = static_cast<Hardware*>(object); |
| 8534 | ::google::protobuf::int32 size; (void)size; |
| 8535 | int depth; (void)depth; |
| 8536 | ::google::protobuf::uint32 tag; |
| 8537 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8538 | auto ptr = begin; |
| 8539 | while (ptr < end) { |
| 8540 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8541 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8542 | switch (tag >> 3) { |
| 8543 | // .google.protobuf.Timestamp last_change = 1; |
| 8544 | case 1: { |
| 8545 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8546 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8547 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8548 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 8549 | object = msg->mutable_last_change(); |
| 8550 | if (size > end - ptr) goto len_delim_till_end; |
| 8551 | ptr += size; |
| 8552 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8553 | {parser_till_end, object}, ptr - size, ptr)); |
| 8554 | break; |
| 8555 | } |
| 8556 | // .dmi.Component root = 2; |
| 8557 | case 2: { |
| 8558 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8559 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8560 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8561 | parser_till_end = ::dmi::Component::_InternalParse; |
| 8562 | object = msg->mutable_root(); |
| 8563 | if (size > end - ptr) goto len_delim_till_end; |
| 8564 | ptr += size; |
| 8565 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8566 | {parser_till_end, object}, ptr - size, ptr)); |
| 8567 | break; |
| 8568 | } |
| 8569 | // .google.protobuf.Timestamp last_booted = 3; |
| 8570 | case 3: { |
| 8571 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 8572 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8573 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8574 | parser_till_end = ::google::protobuf::Timestamp::_InternalParse; |
| 8575 | object = msg->mutable_last_booted(); |
| 8576 | if (size > end - ptr) goto len_delim_till_end; |
| 8577 | ptr += size; |
| 8578 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8579 | {parser_till_end, object}, ptr - size, ptr)); |
| 8580 | break; |
| 8581 | } |
| 8582 | default: { |
| 8583 | handle_unusual: |
| 8584 | if ((tag & 7) == 4 || tag == 0) { |
| 8585 | ctx->EndGroup(tag); |
| 8586 | return ptr; |
| 8587 | } |
| 8588 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8589 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8590 | ptr = res.first; |
| 8591 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8592 | if (res.second) return ptr; |
| 8593 | } |
| 8594 | } // switch |
| 8595 | } // while |
| 8596 | return ptr; |
| 8597 | len_delim_till_end: |
| 8598 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8599 | {parser_till_end, object}, size); |
| 8600 | } |
| 8601 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8602 | bool Hardware::MergePartialFromCodedStream( |
| 8603 | ::google::protobuf::io::CodedInputStream* input) { |
| 8604 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8605 | ::google::protobuf::uint32 tag; |
| 8606 | // @@protoc_insertion_point(parse_start:dmi.Hardware) |
| 8607 | for (;;) { |
| 8608 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8609 | tag = p.first; |
| 8610 | if (!p.second) goto handle_unusual; |
| 8611 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8612 | // .google.protobuf.Timestamp last_change = 1; |
| 8613 | case 1: { |
| 8614 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8615 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8616 | input, mutable_last_change())); |
| 8617 | } else { |
| 8618 | goto handle_unusual; |
| 8619 | } |
| 8620 | break; |
| 8621 | } |
| 8622 | |
| 8623 | // .dmi.Component root = 2; |
| 8624 | case 2: { |
| 8625 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8626 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8627 | input, mutable_root())); |
| 8628 | } else { |
| 8629 | goto handle_unusual; |
| 8630 | } |
| 8631 | break; |
| 8632 | } |
| 8633 | |
| 8634 | // .google.protobuf.Timestamp last_booted = 3; |
| 8635 | case 3: { |
| 8636 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 8637 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8638 | input, mutable_last_booted())); |
| 8639 | } else { |
| 8640 | goto handle_unusual; |
| 8641 | } |
| 8642 | break; |
| 8643 | } |
| 8644 | |
| 8645 | default: { |
| 8646 | handle_unusual: |
| 8647 | if (tag == 0) { |
| 8648 | goto success; |
| 8649 | } |
| 8650 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8651 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8652 | break; |
| 8653 | } |
| 8654 | } |
| 8655 | } |
| 8656 | success: |
| 8657 | // @@protoc_insertion_point(parse_success:dmi.Hardware) |
| 8658 | return true; |
| 8659 | failure: |
| 8660 | // @@protoc_insertion_point(parse_failure:dmi.Hardware) |
| 8661 | return false; |
| 8662 | #undef DO_ |
| 8663 | } |
| 8664 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8665 | |
| 8666 | void Hardware::SerializeWithCachedSizes( |
| 8667 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8668 | // @@protoc_insertion_point(serialize_start:dmi.Hardware) |
| 8669 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8670 | (void) cached_has_bits; |
| 8671 | |
| 8672 | // .google.protobuf.Timestamp last_change = 1; |
| 8673 | if (this->has_last_change()) { |
| 8674 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8675 | 1, HasBitSetters::last_change(this), output); |
| 8676 | } |
| 8677 | |
| 8678 | // .dmi.Component root = 2; |
| 8679 | if (this->has_root()) { |
| 8680 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8681 | 2, HasBitSetters::root(this), output); |
| 8682 | } |
| 8683 | |
| 8684 | // .google.protobuf.Timestamp last_booted = 3; |
| 8685 | if (this->has_last_booted()) { |
| 8686 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8687 | 3, HasBitSetters::last_booted(this), output); |
| 8688 | } |
| 8689 | |
| 8690 | if (_internal_metadata_.have_unknown_fields()) { |
| 8691 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8692 | _internal_metadata_.unknown_fields(), output); |
| 8693 | } |
| 8694 | // @@protoc_insertion_point(serialize_end:dmi.Hardware) |
| 8695 | } |
| 8696 | |
| 8697 | ::google::protobuf::uint8* Hardware::InternalSerializeWithCachedSizesToArray( |
| 8698 | ::google::protobuf::uint8* target) const { |
| 8699 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Hardware) |
| 8700 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8701 | (void) cached_has_bits; |
| 8702 | |
| 8703 | // .google.protobuf.Timestamp last_change = 1; |
| 8704 | if (this->has_last_change()) { |
| 8705 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8706 | InternalWriteMessageToArray( |
| 8707 | 1, HasBitSetters::last_change(this), target); |
| 8708 | } |
| 8709 | |
| 8710 | // .dmi.Component root = 2; |
| 8711 | if (this->has_root()) { |
| 8712 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8713 | InternalWriteMessageToArray( |
| 8714 | 2, HasBitSetters::root(this), target); |
| 8715 | } |
| 8716 | |
| 8717 | // .google.protobuf.Timestamp last_booted = 3; |
| 8718 | if (this->has_last_booted()) { |
| 8719 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8720 | InternalWriteMessageToArray( |
| 8721 | 3, HasBitSetters::last_booted(this), target); |
| 8722 | } |
| 8723 | |
| 8724 | if (_internal_metadata_.have_unknown_fields()) { |
| 8725 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8726 | _internal_metadata_.unknown_fields(), target); |
| 8727 | } |
| 8728 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Hardware) |
| 8729 | return target; |
| 8730 | } |
| 8731 | |
| 8732 | size_t Hardware::ByteSizeLong() const { |
| 8733 | // @@protoc_insertion_point(message_byte_size_start:dmi.Hardware) |
| 8734 | size_t total_size = 0; |
| 8735 | |
| 8736 | if (_internal_metadata_.have_unknown_fields()) { |
| 8737 | total_size += |
| 8738 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8739 | _internal_metadata_.unknown_fields()); |
| 8740 | } |
| 8741 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8742 | // Prevent compiler warnings about cached_has_bits being unused |
| 8743 | (void) cached_has_bits; |
| 8744 | |
| 8745 | // .google.protobuf.Timestamp last_change = 1; |
| 8746 | if (this->has_last_change()) { |
| 8747 | total_size += 1 + |
| 8748 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8749 | *last_change_); |
| 8750 | } |
| 8751 | |
| 8752 | // .dmi.Component root = 2; |
| 8753 | if (this->has_root()) { |
| 8754 | total_size += 1 + |
| 8755 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8756 | *root_); |
| 8757 | } |
| 8758 | |
| 8759 | // .google.protobuf.Timestamp last_booted = 3; |
| 8760 | if (this->has_last_booted()) { |
| 8761 | total_size += 1 + |
| 8762 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8763 | *last_booted_); |
| 8764 | } |
| 8765 | |
| 8766 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8767 | SetCachedSize(cached_size); |
| 8768 | return total_size; |
| 8769 | } |
| 8770 | |
| 8771 | void Hardware::MergeFrom(const ::google::protobuf::Message& from) { |
| 8772 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Hardware) |
| 8773 | GOOGLE_DCHECK_NE(&from, this); |
| 8774 | const Hardware* source = |
| 8775 | ::google::protobuf::DynamicCastToGenerated<Hardware>( |
| 8776 | &from); |
| 8777 | if (source == nullptr) { |
| 8778 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Hardware) |
| 8779 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8780 | } else { |
| 8781 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Hardware) |
| 8782 | MergeFrom(*source); |
| 8783 | } |
| 8784 | } |
| 8785 | |
| 8786 | void Hardware::MergeFrom(const Hardware& from) { |
| 8787 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Hardware) |
| 8788 | GOOGLE_DCHECK_NE(&from, this); |
| 8789 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8790 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8791 | (void) cached_has_bits; |
| 8792 | |
| 8793 | if (from.has_last_change()) { |
| 8794 | mutable_last_change()->::google::protobuf::Timestamp::MergeFrom(from.last_change()); |
| 8795 | } |
| 8796 | if (from.has_root()) { |
| 8797 | mutable_root()->::dmi::Component::MergeFrom(from.root()); |
| 8798 | } |
| 8799 | if (from.has_last_booted()) { |
| 8800 | mutable_last_booted()->::google::protobuf::Timestamp::MergeFrom(from.last_booted()); |
| 8801 | } |
| 8802 | } |
| 8803 | |
| 8804 | void Hardware::CopyFrom(const ::google::protobuf::Message& from) { |
| 8805 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Hardware) |
| 8806 | if (&from == this) return; |
| 8807 | Clear(); |
| 8808 | MergeFrom(from); |
| 8809 | } |
| 8810 | |
| 8811 | void Hardware::CopyFrom(const Hardware& from) { |
| 8812 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Hardware) |
| 8813 | if (&from == this) return; |
| 8814 | Clear(); |
| 8815 | MergeFrom(from); |
| 8816 | } |
| 8817 | |
| 8818 | bool Hardware::IsInitialized() const { |
| 8819 | return true; |
| 8820 | } |
| 8821 | |
| 8822 | void Hardware::Swap(Hardware* other) { |
| 8823 | if (other == this) return; |
| 8824 | InternalSwap(other); |
| 8825 | } |
| 8826 | void Hardware::InternalSwap(Hardware* other) { |
| 8827 | using std::swap; |
| 8828 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8829 | swap(last_change_, other->last_change_); |
| 8830 | swap(root_, other->root_); |
| 8831 | swap(last_booted_, other->last_booted_); |
| 8832 | } |
| 8833 | |
| 8834 | ::google::protobuf::Metadata Hardware::GetMetadata() const { |
| 8835 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 8836 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 8837 | } |
| 8838 | |
| 8839 | |
| 8840 | // =================================================================== |
| 8841 | |
| 8842 | void ModifiableComponent::InitAsDefaultInstance() { |
| 8843 | ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->parent_ = const_cast< ::dmi::Component*>( |
| 8844 | ::dmi::Component::internal_default_instance()); |
| 8845 | ::dmi::_ModifiableComponent_default_instance_._instance.get_mutable()->uri_ = const_cast< ::dmi::Uri*>( |
| 8846 | ::dmi::Uri::internal_default_instance()); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8847 | ::dmi::_ModifiableComponent_default_instance_.port_attr_ = const_cast< ::dmi::PortComponentChangeAttributes*>( |
| 8848 | ::dmi::PortComponentChangeAttributes::internal_default_instance()); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8849 | ::dmi::_ModifiableComponent_default_instance_.trx_attr_ = const_cast< ::dmi::TransceiverComponentChangeAttributes*>( |
| 8850 | ::dmi::TransceiverComponentChangeAttributes::internal_default_instance()); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8851 | } |
| 8852 | class ModifiableComponent::HasBitSetters { |
| 8853 | public: |
| 8854 | static const ::dmi::Component& parent(const ModifiableComponent* msg); |
| 8855 | static const ::dmi::Uri& uri(const ModifiableComponent* msg); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8856 | static const ::dmi::PortComponentChangeAttributes& port_attr(const ModifiableComponent* msg); |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8857 | static const ::dmi::TransceiverComponentChangeAttributes& trx_attr(const ModifiableComponent* msg); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8858 | }; |
| 8859 | |
| 8860 | const ::dmi::Component& |
| 8861 | ModifiableComponent::HasBitSetters::parent(const ModifiableComponent* msg) { |
| 8862 | return *msg->parent_; |
| 8863 | } |
| 8864 | const ::dmi::Uri& |
| 8865 | ModifiableComponent::HasBitSetters::uri(const ModifiableComponent* msg) { |
| 8866 | return *msg->uri_; |
| 8867 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8868 | const ::dmi::PortComponentChangeAttributes& |
| 8869 | ModifiableComponent::HasBitSetters::port_attr(const ModifiableComponent* msg) { |
| 8870 | return *msg->specific_.port_attr_; |
| 8871 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8872 | const ::dmi::TransceiverComponentChangeAttributes& |
| 8873 | ModifiableComponent::HasBitSetters::trx_attr(const ModifiableComponent* msg) { |
| 8874 | return *msg->specific_.trx_attr_; |
| 8875 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8876 | void ModifiableComponent::set_allocated_port_attr(::dmi::PortComponentChangeAttributes* port_attr) { |
| 8877 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 8878 | clear_specific(); |
| 8879 | if (port_attr) { |
| 8880 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 8881 | if (message_arena != submessage_arena) { |
| 8882 | port_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 8883 | message_arena, port_attr, submessage_arena); |
| 8884 | } |
| 8885 | set_has_port_attr(); |
| 8886 | specific_.port_attr_ = port_attr; |
| 8887 | } |
| 8888 | // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.port_attr) |
| 8889 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8890 | void ModifiableComponent::set_allocated_trx_attr(::dmi::TransceiverComponentChangeAttributes* trx_attr) { |
| 8891 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
| 8892 | clear_specific(); |
| 8893 | if (trx_attr) { |
| 8894 | ::google::protobuf::Arena* submessage_arena = nullptr; |
| 8895 | if (message_arena != submessage_arena) { |
| 8896 | trx_attr = ::google::protobuf::internal::GetOwnedMessage( |
| 8897 | message_arena, trx_attr, submessage_arena); |
| 8898 | } |
| 8899 | set_has_trx_attr(); |
| 8900 | specific_.trx_attr_ = trx_attr; |
| 8901 | } |
| 8902 | // @@protoc_insertion_point(field_set_allocated:dmi.ModifiableComponent.trx_attr) |
| 8903 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8904 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8905 | const int ModifiableComponent::kNameFieldNumber; |
| 8906 | const int ModifiableComponent::kClassFieldNumber; |
| 8907 | const int ModifiableComponent::kParentFieldNumber; |
| 8908 | const int ModifiableComponent::kParentRelPosFieldNumber; |
| 8909 | const int ModifiableComponent::kAliasFieldNumber; |
| 8910 | const int ModifiableComponent::kAssetIdFieldNumber; |
| 8911 | const int ModifiableComponent::kUriFieldNumber; |
| 8912 | const int ModifiableComponent::kAdminStateFieldNumber; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8913 | const int ModifiableComponent::kPortAttrFieldNumber; |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8914 | const int ModifiableComponent::kTrxAttrFieldNumber; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8915 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8916 | |
| 8917 | ModifiableComponent::ModifiableComponent() |
| 8918 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8919 | SharedCtor(); |
| 8920 | // @@protoc_insertion_point(constructor:dmi.ModifiableComponent) |
| 8921 | } |
| 8922 | ModifiableComponent::ModifiableComponent(const ModifiableComponent& from) |
| 8923 | : ::google::protobuf::Message(), |
| 8924 | _internal_metadata_(nullptr) { |
| 8925 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8926 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8927 | if (from.name().size() > 0) { |
| 8928 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 8929 | } |
| 8930 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8931 | if (from.alias().size() > 0) { |
| 8932 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 8933 | } |
| 8934 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8935 | if (from.asset_id().size() > 0) { |
| 8936 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 8937 | } |
| 8938 | if (from.has_parent()) { |
| 8939 | parent_ = new ::dmi::Component(*from.parent_); |
| 8940 | } else { |
| 8941 | parent_ = nullptr; |
| 8942 | } |
| 8943 | if (from.has_uri()) { |
| 8944 | uri_ = new ::dmi::Uri(*from.uri_); |
| 8945 | } else { |
| 8946 | uri_ = nullptr; |
| 8947 | } |
| 8948 | ::memcpy(&class__, &from.class__, |
| 8949 | static_cast<size_t>(reinterpret_cast<char*>(&admin_state_) - |
| 8950 | reinterpret_cast<char*>(&class__)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8951 | clear_has_specific(); |
| 8952 | switch (from.specific_case()) { |
| 8953 | case kPortAttr: { |
| 8954 | mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr()); |
| 8955 | break; |
| 8956 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 8957 | case kTrxAttr: { |
| 8958 | mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr()); |
| 8959 | break; |
| 8960 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8961 | case SPECIFIC_NOT_SET: { |
| 8962 | break; |
| 8963 | } |
| 8964 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8965 | // @@protoc_insertion_point(copy_constructor:dmi.ModifiableComponent) |
| 8966 | } |
| 8967 | |
| 8968 | void ModifiableComponent::SharedCtor() { |
| 8969 | ::google::protobuf::internal::InitSCC( |
| 8970 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 8971 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8972 | alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8973 | asset_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8974 | ::memset(&parent_, 0, static_cast<size_t>( |
| 8975 | reinterpret_cast<char*>(&admin_state_) - |
| 8976 | reinterpret_cast<char*>(&parent_)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8977 | clear_has_specific(); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8978 | } |
| 8979 | |
| 8980 | ModifiableComponent::~ModifiableComponent() { |
| 8981 | // @@protoc_insertion_point(destructor:dmi.ModifiableComponent) |
| 8982 | SharedDtor(); |
| 8983 | } |
| 8984 | |
| 8985 | void ModifiableComponent::SharedDtor() { |
| 8986 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8987 | alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8988 | asset_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8989 | if (this != internal_default_instance()) delete parent_; |
| 8990 | if (this != internal_default_instance()) delete uri_; |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 8991 | if (has_specific()) { |
| 8992 | clear_specific(); |
| 8993 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 8994 | } |
| 8995 | |
| 8996 | void ModifiableComponent::SetCachedSize(int size) const { |
| 8997 | _cached_size_.Set(size); |
| 8998 | } |
| 8999 | const ModifiableComponent& ModifiableComponent::default_instance() { |
| 9000 | ::google::protobuf::internal::InitSCC(&::scc_info_ModifiableComponent_dmi_2fhw_2eproto.base); |
| 9001 | return *internal_default_instance(); |
| 9002 | } |
| 9003 | |
| 9004 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9005 | void ModifiableComponent::clear_specific() { |
| 9006 | // @@protoc_insertion_point(one_of_clear_start:dmi.ModifiableComponent) |
| 9007 | switch (specific_case()) { |
| 9008 | case kPortAttr: { |
| 9009 | delete specific_.port_attr_; |
| 9010 | break; |
| 9011 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9012 | case kTrxAttr: { |
| 9013 | delete specific_.trx_attr_; |
| 9014 | break; |
| 9015 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9016 | case SPECIFIC_NOT_SET: { |
| 9017 | break; |
| 9018 | } |
| 9019 | } |
| 9020 | _oneof_case_[0] = SPECIFIC_NOT_SET; |
| 9021 | } |
| 9022 | |
| 9023 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9024 | void ModifiableComponent::Clear() { |
| 9025 | // @@protoc_insertion_point(message_clear_start:dmi.ModifiableComponent) |
| 9026 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9027 | // Prevent compiler warnings about cached_has_bits being unused |
| 9028 | (void) cached_has_bits; |
| 9029 | |
| 9030 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9031 | alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9032 | asset_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9033 | if (GetArenaNoVirtual() == nullptr && parent_ != nullptr) { |
| 9034 | delete parent_; |
| 9035 | } |
| 9036 | parent_ = nullptr; |
| 9037 | if (GetArenaNoVirtual() == nullptr && uri_ != nullptr) { |
| 9038 | delete uri_; |
| 9039 | } |
| 9040 | uri_ = nullptr; |
| 9041 | ::memset(&class__, 0, static_cast<size_t>( |
| 9042 | reinterpret_cast<char*>(&admin_state_) - |
| 9043 | reinterpret_cast<char*>(&class__)) + sizeof(admin_state_)); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9044 | clear_specific(); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9045 | _internal_metadata_.Clear(); |
| 9046 | } |
| 9047 | |
| 9048 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9049 | const char* ModifiableComponent::_InternalParse(const char* begin, const char* end, void* object, |
| 9050 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9051 | auto msg = static_cast<ModifiableComponent*>(object); |
| 9052 | ::google::protobuf::int32 size; (void)size; |
| 9053 | int depth; (void)depth; |
| 9054 | ::google::protobuf::uint32 tag; |
| 9055 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9056 | auto ptr = begin; |
| 9057 | while (ptr < end) { |
| 9058 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9059 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9060 | switch (tag >> 3) { |
| 9061 | // string name = 1; |
| 9062 | case 1: { |
| 9063 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9064 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9065 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9066 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.name"); |
| 9067 | object = msg->mutable_name(); |
| 9068 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9069 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9070 | goto string_till_end; |
| 9071 | } |
| 9072 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9073 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9074 | ptr += size; |
| 9075 | break; |
| 9076 | } |
| 9077 | // .dmi.ComponentType class = 2; |
| 9078 | case 2: { |
| 9079 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 9080 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9081 | msg->set_class_(static_cast<::dmi::ComponentType>(val)); |
| 9082 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9083 | break; |
| 9084 | } |
| 9085 | // .dmi.Component parent = 3; |
| 9086 | case 3: { |
| 9087 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 9088 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9089 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9090 | parser_till_end = ::dmi::Component::_InternalParse; |
| 9091 | object = msg->mutable_parent(); |
| 9092 | if (size > end - ptr) goto len_delim_till_end; |
| 9093 | ptr += size; |
| 9094 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9095 | {parser_till_end, object}, ptr - size, ptr)); |
| 9096 | break; |
| 9097 | } |
| 9098 | // int32 parent_rel_pos = 4; |
| 9099 | case 4: { |
| 9100 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 9101 | msg->set_parent_rel_pos(::google::protobuf::internal::ReadVarint(&ptr)); |
| 9102 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9103 | break; |
| 9104 | } |
| 9105 | // string alias = 5; |
| 9106 | case 5: { |
| 9107 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 9108 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9109 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9110 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.alias"); |
| 9111 | object = msg->mutable_alias(); |
| 9112 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9113 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9114 | goto string_till_end; |
| 9115 | } |
| 9116 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9117 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9118 | ptr += size; |
| 9119 | break; |
| 9120 | } |
| 9121 | // string asset_id = 6; |
| 9122 | case 6: { |
| 9123 | if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; |
| 9124 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9125 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9126 | ctx->extra_parse_data().SetFieldName("dmi.ModifiableComponent.asset_id"); |
| 9127 | object = msg->mutable_asset_id(); |
| 9128 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9129 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9130 | goto string_till_end; |
| 9131 | } |
| 9132 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9133 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9134 | ptr += size; |
| 9135 | break; |
| 9136 | } |
| 9137 | // .dmi.Uri uri = 7; |
| 9138 | case 7: { |
| 9139 | if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; |
| 9140 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9141 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9142 | parser_till_end = ::dmi::Uri::_InternalParse; |
| 9143 | object = msg->mutable_uri(); |
| 9144 | if (size > end - ptr) goto len_delim_till_end; |
| 9145 | ptr += size; |
| 9146 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9147 | {parser_till_end, object}, ptr - size, ptr)); |
| 9148 | break; |
| 9149 | } |
| 9150 | // .dmi.ComponentAdminState admin_state = 8; |
| 9151 | case 8: { |
| 9152 | if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; |
| 9153 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9154 | msg->set_admin_state(static_cast<::dmi::ComponentAdminState>(val)); |
| 9155 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9156 | break; |
| 9157 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9158 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9159 | case 50: { |
| 9160 | if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; |
| 9161 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9162 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9163 | parser_till_end = ::dmi::PortComponentChangeAttributes::_InternalParse; |
| 9164 | object = msg->mutable_port_attr(); |
| 9165 | if (size > end - ptr) goto len_delim_till_end; |
| 9166 | ptr += size; |
| 9167 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9168 | {parser_till_end, object}, ptr - size, ptr)); |
| 9169 | break; |
| 9170 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9171 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9172 | case 51: { |
| 9173 | if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; |
| 9174 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9175 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9176 | parser_till_end = ::dmi::TransceiverComponentChangeAttributes::_InternalParse; |
| 9177 | object = msg->mutable_trx_attr(); |
| 9178 | if (size > end - ptr) goto len_delim_till_end; |
| 9179 | ptr += size; |
| 9180 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9181 | {parser_till_end, object}, ptr - size, ptr)); |
| 9182 | break; |
| 9183 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9184 | default: { |
| 9185 | handle_unusual: |
| 9186 | if ((tag & 7) == 4 || tag == 0) { |
| 9187 | ctx->EndGroup(tag); |
| 9188 | return ptr; |
| 9189 | } |
| 9190 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9191 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9192 | ptr = res.first; |
| 9193 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9194 | if (res.second) return ptr; |
| 9195 | } |
| 9196 | } // switch |
| 9197 | } // while |
| 9198 | return ptr; |
| 9199 | string_till_end: |
| 9200 | static_cast<::std::string*>(object)->clear(); |
| 9201 | static_cast<::std::string*>(object)->reserve(size); |
| 9202 | goto len_delim_till_end; |
| 9203 | len_delim_till_end: |
| 9204 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9205 | {parser_till_end, object}, size); |
| 9206 | } |
| 9207 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9208 | bool ModifiableComponent::MergePartialFromCodedStream( |
| 9209 | ::google::protobuf::io::CodedInputStream* input) { |
| 9210 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9211 | ::google::protobuf::uint32 tag; |
| 9212 | // @@protoc_insertion_point(parse_start:dmi.ModifiableComponent) |
| 9213 | for (;;) { |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9214 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9215 | tag = p.first; |
| 9216 | if (!p.second) goto handle_unusual; |
| 9217 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9218 | // string name = 1; |
| 9219 | case 1: { |
| 9220 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9221 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9222 | input, this->mutable_name())); |
| 9223 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9224 | this->name().data(), static_cast<int>(this->name().length()), |
| 9225 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9226 | "dmi.ModifiableComponent.name")); |
| 9227 | } else { |
| 9228 | goto handle_unusual; |
| 9229 | } |
| 9230 | break; |
| 9231 | } |
| 9232 | |
| 9233 | // .dmi.ComponentType class = 2; |
| 9234 | case 2: { |
| 9235 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 9236 | int value = 0; |
| 9237 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9238 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9239 | input, &value))); |
| 9240 | set_class_(static_cast< ::dmi::ComponentType >(value)); |
| 9241 | } else { |
| 9242 | goto handle_unusual; |
| 9243 | } |
| 9244 | break; |
| 9245 | } |
| 9246 | |
| 9247 | // .dmi.Component parent = 3; |
| 9248 | case 3: { |
| 9249 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 9250 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9251 | input, mutable_parent())); |
| 9252 | } else { |
| 9253 | goto handle_unusual; |
| 9254 | } |
| 9255 | break; |
| 9256 | } |
| 9257 | |
| 9258 | // int32 parent_rel_pos = 4; |
| 9259 | case 4: { |
| 9260 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 9261 | |
| 9262 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9263 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
| 9264 | input, &parent_rel_pos_))); |
| 9265 | } else { |
| 9266 | goto handle_unusual; |
| 9267 | } |
| 9268 | break; |
| 9269 | } |
| 9270 | |
| 9271 | // string alias = 5; |
| 9272 | case 5: { |
| 9273 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 9274 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9275 | input, this->mutable_alias())); |
| 9276 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9277 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 9278 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9279 | "dmi.ModifiableComponent.alias")); |
| 9280 | } else { |
| 9281 | goto handle_unusual; |
| 9282 | } |
| 9283 | break; |
| 9284 | } |
| 9285 | |
| 9286 | // string asset_id = 6; |
| 9287 | case 6: { |
| 9288 | if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { |
| 9289 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9290 | input, this->mutable_asset_id())); |
| 9291 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9292 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 9293 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9294 | "dmi.ModifiableComponent.asset_id")); |
| 9295 | } else { |
| 9296 | goto handle_unusual; |
| 9297 | } |
| 9298 | break; |
| 9299 | } |
| 9300 | |
| 9301 | // .dmi.Uri uri = 7; |
| 9302 | case 7: { |
| 9303 | if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { |
| 9304 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9305 | input, mutable_uri())); |
| 9306 | } else { |
| 9307 | goto handle_unusual; |
| 9308 | } |
| 9309 | break; |
| 9310 | } |
| 9311 | |
| 9312 | // .dmi.ComponentAdminState admin_state = 8; |
| 9313 | case 8: { |
| 9314 | if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { |
| 9315 | int value = 0; |
| 9316 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9317 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9318 | input, &value))); |
| 9319 | set_admin_state(static_cast< ::dmi::ComponentAdminState >(value)); |
| 9320 | } else { |
| 9321 | goto handle_unusual; |
| 9322 | } |
| 9323 | break; |
| 9324 | } |
| 9325 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9326 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9327 | case 50: { |
| 9328 | if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { |
| 9329 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9330 | input, mutable_port_attr())); |
| 9331 | } else { |
| 9332 | goto handle_unusual; |
| 9333 | } |
| 9334 | break; |
| 9335 | } |
| 9336 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9337 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9338 | case 51: { |
| 9339 | if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { |
| 9340 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9341 | input, mutable_trx_attr())); |
| 9342 | } else { |
| 9343 | goto handle_unusual; |
| 9344 | } |
| 9345 | break; |
| 9346 | } |
| 9347 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9348 | default: { |
| 9349 | handle_unusual: |
| 9350 | if (tag == 0) { |
| 9351 | goto success; |
| 9352 | } |
| 9353 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9354 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9355 | break; |
| 9356 | } |
| 9357 | } |
| 9358 | } |
| 9359 | success: |
| 9360 | // @@protoc_insertion_point(parse_success:dmi.ModifiableComponent) |
| 9361 | return true; |
| 9362 | failure: |
| 9363 | // @@protoc_insertion_point(parse_failure:dmi.ModifiableComponent) |
| 9364 | return false; |
| 9365 | #undef DO_ |
| 9366 | } |
| 9367 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9368 | |
| 9369 | void ModifiableComponent::SerializeWithCachedSizes( |
| 9370 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9371 | // @@protoc_insertion_point(serialize_start:dmi.ModifiableComponent) |
| 9372 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9373 | (void) cached_has_bits; |
| 9374 | |
| 9375 | // string name = 1; |
| 9376 | if (this->name().size() > 0) { |
| 9377 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9378 | this->name().data(), static_cast<int>(this->name().length()), |
| 9379 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9380 | "dmi.ModifiableComponent.name"); |
| 9381 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9382 | 1, this->name(), output); |
| 9383 | } |
| 9384 | |
| 9385 | // .dmi.ComponentType class = 2; |
| 9386 | if (this->class_() != 0) { |
| 9387 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9388 | 2, this->class_(), output); |
| 9389 | } |
| 9390 | |
| 9391 | // .dmi.Component parent = 3; |
| 9392 | if (this->has_parent()) { |
| 9393 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9394 | 3, HasBitSetters::parent(this), output); |
| 9395 | } |
| 9396 | |
| 9397 | // int32 parent_rel_pos = 4; |
| 9398 | if (this->parent_rel_pos() != 0) { |
| 9399 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->parent_rel_pos(), output); |
| 9400 | } |
| 9401 | |
| 9402 | // string alias = 5; |
| 9403 | if (this->alias().size() > 0) { |
| 9404 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9405 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 9406 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9407 | "dmi.ModifiableComponent.alias"); |
| 9408 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9409 | 5, this->alias(), output); |
| 9410 | } |
| 9411 | |
| 9412 | // string asset_id = 6; |
| 9413 | if (this->asset_id().size() > 0) { |
| 9414 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9415 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 9416 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9417 | "dmi.ModifiableComponent.asset_id"); |
| 9418 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9419 | 6, this->asset_id(), output); |
| 9420 | } |
| 9421 | |
| 9422 | // .dmi.Uri uri = 7; |
| 9423 | if (this->has_uri()) { |
| 9424 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9425 | 7, HasBitSetters::uri(this), output); |
| 9426 | } |
| 9427 | |
| 9428 | // .dmi.ComponentAdminState admin_state = 8; |
| 9429 | if (this->admin_state() != 0) { |
| 9430 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9431 | 8, this->admin_state(), output); |
| 9432 | } |
| 9433 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9434 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9435 | if (has_port_attr()) { |
| 9436 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9437 | 50, HasBitSetters::port_attr(this), output); |
| 9438 | } |
| 9439 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9440 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9441 | if (has_trx_attr()) { |
| 9442 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9443 | 51, HasBitSetters::trx_attr(this), output); |
| 9444 | } |
| 9445 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9446 | if (_internal_metadata_.have_unknown_fields()) { |
| 9447 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9448 | _internal_metadata_.unknown_fields(), output); |
| 9449 | } |
| 9450 | // @@protoc_insertion_point(serialize_end:dmi.ModifiableComponent) |
| 9451 | } |
| 9452 | |
| 9453 | ::google::protobuf::uint8* ModifiableComponent::InternalSerializeWithCachedSizesToArray( |
| 9454 | ::google::protobuf::uint8* target) const { |
| 9455 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ModifiableComponent) |
| 9456 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9457 | (void) cached_has_bits; |
| 9458 | |
| 9459 | // string name = 1; |
| 9460 | if (this->name().size() > 0) { |
| 9461 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9462 | this->name().data(), static_cast<int>(this->name().length()), |
| 9463 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9464 | "dmi.ModifiableComponent.name"); |
| 9465 | target = |
| 9466 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9467 | 1, this->name(), target); |
| 9468 | } |
| 9469 | |
| 9470 | // .dmi.ComponentType class = 2; |
| 9471 | if (this->class_() != 0) { |
| 9472 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9473 | 2, this->class_(), target); |
| 9474 | } |
| 9475 | |
| 9476 | // .dmi.Component parent = 3; |
| 9477 | if (this->has_parent()) { |
| 9478 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9479 | InternalWriteMessageToArray( |
| 9480 | 3, HasBitSetters::parent(this), target); |
| 9481 | } |
| 9482 | |
| 9483 | // int32 parent_rel_pos = 4; |
| 9484 | if (this->parent_rel_pos() != 0) { |
| 9485 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->parent_rel_pos(), target); |
| 9486 | } |
| 9487 | |
| 9488 | // string alias = 5; |
| 9489 | if (this->alias().size() > 0) { |
| 9490 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9491 | this->alias().data(), static_cast<int>(this->alias().length()), |
| 9492 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9493 | "dmi.ModifiableComponent.alias"); |
| 9494 | target = |
| 9495 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9496 | 5, this->alias(), target); |
| 9497 | } |
| 9498 | |
| 9499 | // string asset_id = 6; |
| 9500 | if (this->asset_id().size() > 0) { |
| 9501 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9502 | this->asset_id().data(), static_cast<int>(this->asset_id().length()), |
| 9503 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9504 | "dmi.ModifiableComponent.asset_id"); |
| 9505 | target = |
| 9506 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9507 | 6, this->asset_id(), target); |
| 9508 | } |
| 9509 | |
| 9510 | // .dmi.Uri uri = 7; |
| 9511 | if (this->has_uri()) { |
| 9512 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9513 | InternalWriteMessageToArray( |
| 9514 | 7, HasBitSetters::uri(this), target); |
| 9515 | } |
| 9516 | |
| 9517 | // .dmi.ComponentAdminState admin_state = 8; |
| 9518 | if (this->admin_state() != 0) { |
| 9519 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9520 | 8, this->admin_state(), target); |
| 9521 | } |
| 9522 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9523 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9524 | if (has_port_attr()) { |
| 9525 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9526 | InternalWriteMessageToArray( |
| 9527 | 50, HasBitSetters::port_attr(this), target); |
| 9528 | } |
| 9529 | |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9530 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9531 | if (has_trx_attr()) { |
| 9532 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9533 | InternalWriteMessageToArray( |
| 9534 | 51, HasBitSetters::trx_attr(this), target); |
| 9535 | } |
| 9536 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9537 | if (_internal_metadata_.have_unknown_fields()) { |
| 9538 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9539 | _internal_metadata_.unknown_fields(), target); |
| 9540 | } |
| 9541 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ModifiableComponent) |
| 9542 | return target; |
| 9543 | } |
| 9544 | |
| 9545 | size_t ModifiableComponent::ByteSizeLong() const { |
| 9546 | // @@protoc_insertion_point(message_byte_size_start:dmi.ModifiableComponent) |
| 9547 | size_t total_size = 0; |
| 9548 | |
| 9549 | if (_internal_metadata_.have_unknown_fields()) { |
| 9550 | total_size += |
| 9551 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9552 | _internal_metadata_.unknown_fields()); |
| 9553 | } |
| 9554 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9555 | // Prevent compiler warnings about cached_has_bits being unused |
| 9556 | (void) cached_has_bits; |
| 9557 | |
| 9558 | // string name = 1; |
| 9559 | if (this->name().size() > 0) { |
| 9560 | total_size += 1 + |
| 9561 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9562 | this->name()); |
| 9563 | } |
| 9564 | |
| 9565 | // string alias = 5; |
| 9566 | if (this->alias().size() > 0) { |
| 9567 | total_size += 1 + |
| 9568 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9569 | this->alias()); |
| 9570 | } |
| 9571 | |
| 9572 | // string asset_id = 6; |
| 9573 | if (this->asset_id().size() > 0) { |
| 9574 | total_size += 1 + |
| 9575 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9576 | this->asset_id()); |
| 9577 | } |
| 9578 | |
| 9579 | // .dmi.Component parent = 3; |
| 9580 | if (this->has_parent()) { |
| 9581 | total_size += 1 + |
| 9582 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9583 | *parent_); |
| 9584 | } |
| 9585 | |
| 9586 | // .dmi.Uri uri = 7; |
| 9587 | if (this->has_uri()) { |
| 9588 | total_size += 1 + |
| 9589 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9590 | *uri_); |
| 9591 | } |
| 9592 | |
| 9593 | // .dmi.ComponentType class = 2; |
| 9594 | if (this->class_() != 0) { |
| 9595 | total_size += 1 + |
| 9596 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->class_()); |
| 9597 | } |
| 9598 | |
| 9599 | // int32 parent_rel_pos = 4; |
| 9600 | if (this->parent_rel_pos() != 0) { |
| 9601 | total_size += 1 + |
| 9602 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 9603 | this->parent_rel_pos()); |
| 9604 | } |
| 9605 | |
| 9606 | // .dmi.ComponentAdminState admin_state = 8; |
| 9607 | if (this->admin_state() != 0) { |
| 9608 | total_size += 1 + |
| 9609 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->admin_state()); |
| 9610 | } |
| 9611 | |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9612 | switch (specific_case()) { |
| 9613 | // .dmi.PortComponentChangeAttributes port_attr = 50; |
| 9614 | case kPortAttr: { |
| 9615 | total_size += 2 + |
| 9616 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9617 | *specific_.port_attr_); |
| 9618 | break; |
| 9619 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9620 | // .dmi.TransceiverComponentChangeAttributes trx_attr = 51; |
| 9621 | case kTrxAttr: { |
| 9622 | total_size += 2 + |
| 9623 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9624 | *specific_.trx_attr_); |
| 9625 | break; |
| 9626 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9627 | case SPECIFIC_NOT_SET: { |
| 9628 | break; |
| 9629 | } |
| 9630 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9631 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9632 | SetCachedSize(cached_size); |
| 9633 | return total_size; |
| 9634 | } |
| 9635 | |
| 9636 | void ModifiableComponent::MergeFrom(const ::google::protobuf::Message& from) { |
| 9637 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ModifiableComponent) |
| 9638 | GOOGLE_DCHECK_NE(&from, this); |
| 9639 | const ModifiableComponent* source = |
| 9640 | ::google::protobuf::DynamicCastToGenerated<ModifiableComponent>( |
| 9641 | &from); |
| 9642 | if (source == nullptr) { |
| 9643 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ModifiableComponent) |
| 9644 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9645 | } else { |
| 9646 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ModifiableComponent) |
| 9647 | MergeFrom(*source); |
| 9648 | } |
| 9649 | } |
| 9650 | |
| 9651 | void ModifiableComponent::MergeFrom(const ModifiableComponent& from) { |
| 9652 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ModifiableComponent) |
| 9653 | GOOGLE_DCHECK_NE(&from, this); |
| 9654 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9655 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9656 | (void) cached_has_bits; |
| 9657 | |
| 9658 | if (from.name().size() > 0) { |
| 9659 | |
| 9660 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 9661 | } |
| 9662 | if (from.alias().size() > 0) { |
| 9663 | |
| 9664 | alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); |
| 9665 | } |
| 9666 | if (from.asset_id().size() > 0) { |
| 9667 | |
| 9668 | asset_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.asset_id_); |
| 9669 | } |
| 9670 | if (from.has_parent()) { |
| 9671 | mutable_parent()->::dmi::Component::MergeFrom(from.parent()); |
| 9672 | } |
| 9673 | if (from.has_uri()) { |
| 9674 | mutable_uri()->::dmi::Uri::MergeFrom(from.uri()); |
| 9675 | } |
| 9676 | if (from.class_() != 0) { |
| 9677 | set_class_(from.class_()); |
| 9678 | } |
| 9679 | if (from.parent_rel_pos() != 0) { |
| 9680 | set_parent_rel_pos(from.parent_rel_pos()); |
| 9681 | } |
| 9682 | if (from.admin_state() != 0) { |
| 9683 | set_admin_state(from.admin_state()); |
| 9684 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9685 | switch (from.specific_case()) { |
| 9686 | case kPortAttr: { |
| 9687 | mutable_port_attr()->::dmi::PortComponentChangeAttributes::MergeFrom(from.port_attr()); |
| 9688 | break; |
| 9689 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9690 | case kTrxAttr: { |
| 9691 | mutable_trx_attr()->::dmi::TransceiverComponentChangeAttributes::MergeFrom(from.trx_attr()); |
| 9692 | break; |
| 9693 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9694 | case SPECIFIC_NOT_SET: { |
| 9695 | break; |
| 9696 | } |
| 9697 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9698 | } |
| 9699 | |
| 9700 | void ModifiableComponent::CopyFrom(const ::google::protobuf::Message& from) { |
| 9701 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ModifiableComponent) |
| 9702 | if (&from == this) return; |
| 9703 | Clear(); |
| 9704 | MergeFrom(from); |
| 9705 | } |
| 9706 | |
| 9707 | void ModifiableComponent::CopyFrom(const ModifiableComponent& from) { |
| 9708 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ModifiableComponent) |
| 9709 | if (&from == this) return; |
| 9710 | Clear(); |
| 9711 | MergeFrom(from); |
| 9712 | } |
| 9713 | |
| 9714 | bool ModifiableComponent::IsInitialized() const { |
| 9715 | return true; |
| 9716 | } |
| 9717 | |
| 9718 | void ModifiableComponent::Swap(ModifiableComponent* other) { |
| 9719 | if (other == this) return; |
| 9720 | InternalSwap(other); |
| 9721 | } |
| 9722 | void ModifiableComponent::InternalSwap(ModifiableComponent* other) { |
| 9723 | using std::swap; |
| 9724 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9725 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9726 | GetArenaNoVirtual()); |
| 9727 | alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9728 | GetArenaNoVirtual()); |
| 9729 | asset_id_.Swap(&other->asset_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9730 | GetArenaNoVirtual()); |
| 9731 | swap(parent_, other->parent_); |
| 9732 | swap(uri_, other->uri_); |
| 9733 | swap(class__, other->class__); |
| 9734 | swap(parent_rel_pos_, other->parent_rel_pos_); |
| 9735 | swap(admin_state_, other->admin_state_); |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9736 | swap(specific_, other->specific_); |
| 9737 | swap(_oneof_case_[0], other->_oneof_case_[0]); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9738 | } |
| 9739 | |
| 9740 | ::google::protobuf::Metadata ModifiableComponent::GetMetadata() const { |
| 9741 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_2eproto); |
| 9742 | return ::file_level_metadata_dmi_2fhw_2eproto[kIndexInFileMessages]; |
| 9743 | } |
| 9744 | |
| 9745 | |
| 9746 | // @@protoc_insertion_point(namespace_scope) |
| 9747 | } // namespace dmi |
| 9748 | namespace google { |
| 9749 | namespace protobuf { |
| 9750 | template<> PROTOBUF_NOINLINE ::dmi::Uuid* Arena::CreateMaybeMessage< ::dmi::Uuid >(Arena* arena) { |
| 9751 | return Arena::CreateInternal< ::dmi::Uuid >(arena); |
| 9752 | } |
| 9753 | template<> PROTOBUF_NOINLINE ::dmi::HardwareID* Arena::CreateMaybeMessage< ::dmi::HardwareID >(Arena* arena) { |
| 9754 | return Arena::CreateInternal< ::dmi::HardwareID >(arena); |
| 9755 | } |
| 9756 | template<> PROTOBUF_NOINLINE ::dmi::Uri* Arena::CreateMaybeMessage< ::dmi::Uri >(Arena* arena) { |
| 9757 | return Arena::CreateInternal< ::dmi::Uri >(arena); |
| 9758 | } |
| 9759 | template<> PROTOBUF_NOINLINE ::dmi::ComponentState* Arena::CreateMaybeMessage< ::dmi::ComponentState >(Arena* arena) { |
| 9760 | return Arena::CreateInternal< ::dmi::ComponentState >(arena); |
| 9761 | } |
| 9762 | template<> PROTOBUF_NOINLINE ::dmi::ComponentSensorData* Arena::CreateMaybeMessage< ::dmi::ComponentSensorData >(Arena* arena) { |
| 9763 | return Arena::CreateInternal< ::dmi::ComponentSensorData >(arena); |
| 9764 | } |
| 9765 | template<> PROTOBUF_NOINLINE ::dmi::PortComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentAttributes >(Arena* arena) { |
| 9766 | return Arena::CreateInternal< ::dmi::PortComponentAttributes >(arena); |
| 9767 | } |
Abhilash laxmeshwar | d4a9fa3 | 2023-09-15 16:10:22 +0530 | [diff] [blame] | 9768 | template<> PROTOBUF_NOINLINE ::dmi::PonDistance* Arena::CreateMaybeMessage< ::dmi::PonDistance >(Arena* arena) { |
| 9769 | return Arena::CreateInternal< ::dmi::PonDistance >(arena); |
| 9770 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9771 | template<> PROTOBUF_NOINLINE ::dmi::PortComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::PortComponentChangeAttributes >(Arena* arena) { |
| 9772 | return Arena::CreateInternal< ::dmi::PortComponentChangeAttributes >(arena); |
| 9773 | } |
Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 9774 | template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentChangeAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentChangeAttributes >(Arena* arena) { |
| 9775 | return Arena::CreateInternal< ::dmi::TransceiverComponentChangeAttributes >(arena); |
| 9776 | } |
amit.ghosh | 98c5a6c | 2021-08-12 16:19:46 +0200 | [diff] [blame] | 9777 | template<> PROTOBUF_NOINLINE ::dmi::PonIdConfig* Arena::CreateMaybeMessage< ::dmi::PonIdConfig >(Arena* arena) { |
| 9778 | return Arena::CreateInternal< ::dmi::PonIdConfig >(arena); |
| 9779 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 9780 | template<> PROTOBUF_NOINLINE ::dmi::ContainerComponentAttributes* Arena::CreateMaybeMessage< ::dmi::ContainerComponentAttributes >(Arena* arena) { |
| 9781 | return Arena::CreateInternal< ::dmi::ContainerComponentAttributes >(arena); |
| 9782 | } |
| 9783 | template<> PROTOBUF_NOINLINE ::dmi::PsuComponentAttributes* Arena::CreateMaybeMessage< ::dmi::PsuComponentAttributes >(Arena* arena) { |
| 9784 | return Arena::CreateInternal< ::dmi::PsuComponentAttributes >(arena); |
| 9785 | } |
| 9786 | template<> PROTOBUF_NOINLINE ::dmi::TransceiverComponentsAttributes* Arena::CreateMaybeMessage< ::dmi::TransceiverComponentsAttributes >(Arena* arena) { |
| 9787 | return Arena::CreateInternal< ::dmi::TransceiverComponentsAttributes >(arena); |
| 9788 | } |
| 9789 | template<> PROTOBUF_NOINLINE ::dmi::Component* Arena::CreateMaybeMessage< ::dmi::Component >(Arena* arena) { |
| 9790 | return Arena::CreateInternal< ::dmi::Component >(arena); |
| 9791 | } |
| 9792 | template<> PROTOBUF_NOINLINE ::dmi::Hardware* Arena::CreateMaybeMessage< ::dmi::Hardware >(Arena* arena) { |
| 9793 | return Arena::CreateInternal< ::dmi::Hardware >(arena); |
| 9794 | } |
| 9795 | template<> PROTOBUF_NOINLINE ::dmi::ModifiableComponent* Arena::CreateMaybeMessage< ::dmi::ModifiableComponent >(Arena* arena) { |
| 9796 | return Arena::CreateInternal< ::dmi::ModifiableComponent >(arena); |
| 9797 | } |
| 9798 | } // namespace protobuf |
| 9799 | } // namespace google |
| 9800 | |
| 9801 | // @@protoc_insertion_point(global_scope) |
| 9802 | #include <google/protobuf/port_undef.inc> |