| 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_management_service.proto |
| 3 | |
| 4 | #include "dmi/hw_management_service.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_Uuid_dmi_2fhw_2eproto; |
| 20 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Hardware_dmi_2fhw_2eproto; |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_ModifiableComponent_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<9> scc_info_Component_dmi_2fhw_2eproto; |
| 23 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto; |
| 24 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_5fmanagement_5fservice_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto; |
| 25 | namespace dmi { |
| 26 | class PhysicalInventoryRequestDefaultTypeInternal { |
| 27 | public: |
| 28 | ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryRequest> _instance; |
| 29 | } _PhysicalInventoryRequest_default_instance_; |
| 30 | class PhysicalInventoryResponseDefaultTypeInternal { |
| 31 | public: |
| 32 | ::google::protobuf::internal::ExplicitlyConstructed<PhysicalInventoryResponse> _instance; |
| 33 | } _PhysicalInventoryResponse_default_instance_; |
| 34 | class HWComponentInfoGetRequestDefaultTypeInternal { |
| 35 | public: |
| 36 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetRequest> _instance; |
| 37 | } _HWComponentInfoGetRequest_default_instance_; |
| 38 | class HWComponentInfoGetResponseDefaultTypeInternal { |
| 39 | public: |
| 40 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoGetResponse> _instance; |
| 41 | } _HWComponentInfoGetResponse_default_instance_; |
| 42 | class HWComponentInfoSetRequestDefaultTypeInternal { |
| 43 | public: |
| 44 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetRequest> _instance; |
| 45 | } _HWComponentInfoSetRequest_default_instance_; |
| 46 | class HWComponentInfoSetResponseDefaultTypeInternal { |
| 47 | public: |
| 48 | ::google::protobuf::internal::ExplicitlyConstructed<HWComponentInfoSetResponse> _instance; |
| 49 | } _HWComponentInfoSetResponse_default_instance_; |
| 50 | class StartManagingDeviceResponseDefaultTypeInternal { |
| 51 | public: |
| 52 | ::google::protobuf::internal::ExplicitlyConstructed<StartManagingDeviceResponse> _instance; |
| 53 | } _StartManagingDeviceResponse_default_instance_; |
| 54 | class StopManagingDeviceRequestDefaultTypeInternal { |
| 55 | public: |
| 56 | ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceRequest> _instance; |
| 57 | } _StopManagingDeviceRequest_default_instance_; |
| 58 | class StopManagingDeviceResponseDefaultTypeInternal { |
| 59 | public: |
| 60 | ::google::protobuf::internal::ExplicitlyConstructed<StopManagingDeviceResponse> _instance; |
| 61 | } _StopManagingDeviceResponse_default_instance_; |
| 62 | class ManagedDeviceInfoDefaultTypeInternal { |
| 63 | public: |
| 64 | ::google::protobuf::internal::ExplicitlyConstructed<ManagedDeviceInfo> _instance; |
| 65 | } _ManagedDeviceInfo_default_instance_; |
| 66 | class ManagedDevicesResponseDefaultTypeInternal { |
| 67 | public: |
| 68 | ::google::protobuf::internal::ExplicitlyConstructed<ManagedDevicesResponse> _instance; |
| 69 | } _ManagedDevicesResponse_default_instance_; |
| 70 | class SetLoggingEndpointRequestDefaultTypeInternal { |
| 71 | public: |
| 72 | ::google::protobuf::internal::ExplicitlyConstructed<SetLoggingEndpointRequest> _instance; |
| 73 | } _SetLoggingEndpointRequest_default_instance_; |
| 74 | class SetRemoteEndpointResponseDefaultTypeInternal { |
| 75 | public: |
| 76 | ::google::protobuf::internal::ExplicitlyConstructed<SetRemoteEndpointResponse> _instance; |
| 77 | } _SetRemoteEndpointResponse_default_instance_; |
| 78 | class GetLoggingEndpointResponseDefaultTypeInternal { |
| 79 | public: |
| 80 | ::google::protobuf::internal::ExplicitlyConstructed<GetLoggingEndpointResponse> _instance; |
| 81 | } _GetLoggingEndpointResponse_default_instance_; |
| 82 | class SetMsgBusEndpointRequestDefaultTypeInternal { |
| 83 | public: |
| 84 | ::google::protobuf::internal::ExplicitlyConstructed<SetMsgBusEndpointRequest> _instance; |
| 85 | } _SetMsgBusEndpointRequest_default_instance_; |
| 86 | class GetMsgBusEndpointResponseDefaultTypeInternal { |
| 87 | public: |
| 88 | ::google::protobuf::internal::ExplicitlyConstructed<GetMsgBusEndpointResponse> _instance; |
| 89 | } _GetMsgBusEndpointResponse_default_instance_; |
| 90 | class EntitiesLogLevelDefaultTypeInternal { |
| 91 | public: |
| 92 | ::google::protobuf::internal::ExplicitlyConstructed<EntitiesLogLevel> _instance; |
| 93 | } _EntitiesLogLevel_default_instance_; |
| 94 | class SetLogLevelRequestDefaultTypeInternal { |
| 95 | public: |
| 96 | ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelRequest> _instance; |
| 97 | } _SetLogLevelRequest_default_instance_; |
| 98 | class SetLogLevelResponseDefaultTypeInternal { |
| 99 | public: |
| 100 | ::google::protobuf::internal::ExplicitlyConstructed<SetLogLevelResponse> _instance; |
| 101 | } _SetLogLevelResponse_default_instance_; |
| 102 | class GetLogLevelRequestDefaultTypeInternal { |
| 103 | public: |
| 104 | ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelRequest> _instance; |
| 105 | } _GetLogLevelRequest_default_instance_; |
| 106 | class GetLogLevelResponseDefaultTypeInternal { |
| 107 | public: |
| 108 | ::google::protobuf::internal::ExplicitlyConstructed<GetLogLevelResponse> _instance; |
| 109 | } _GetLogLevelResponse_default_instance_; |
| 110 | class GetLoggableEntitiesRequestDefaultTypeInternal { |
| 111 | public: |
| 112 | ::google::protobuf::internal::ExplicitlyConstructed<GetLoggableEntitiesRequest> _instance; |
| 113 | } _GetLoggableEntitiesRequest_default_instance_; |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 114 | class SetDmLogLevelRequestDefaultTypeInternal { |
| 115 | public: |
| 116 | ::google::protobuf::internal::ExplicitlyConstructed<SetDmLogLevelRequest> _instance; |
| 117 | } _SetDmLogLevelRequest_default_instance_; |
| 118 | class SetDmLogLevelResponseDefaultTypeInternal { |
| 119 | public: |
| 120 | ::google::protobuf::internal::ExplicitlyConstructed<SetDmLogLevelResponse> _instance; |
| 121 | } _SetDmLogLevelResponse_default_instance_; |
| 122 | class GetDmLogLevelRequestDefaultTypeInternal { |
| 123 | public: |
| 124 | ::google::protobuf::internal::ExplicitlyConstructed<GetDmLogLevelRequest> _instance; |
| 125 | } _GetDmLogLevelRequest_default_instance_; |
| 126 | class GetDmLogLevelResponseDefaultTypeInternal { |
| 127 | public: |
| 128 | ::google::protobuf::internal::ExplicitlyConstructed<GetDmLogLevelResponse> _instance; |
| 129 | } _GetDmLogLevelResponse_default_instance_; |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 130 | class HeartbeatDefaultTypeInternal { |
| 131 | public: |
| 132 | ::google::protobuf::internal::ExplicitlyConstructed<Heartbeat> _instance; |
| 133 | } _Heartbeat_default_instance_; |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 134 | class RebootDeviceRequestDefaultTypeInternal { |
| 135 | public: |
| 136 | ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceRequest> _instance; |
| 137 | } _RebootDeviceRequest_default_instance_; |
| 138 | class RebootDeviceResponseDefaultTypeInternal { |
| 139 | public: |
| 140 | ::google::protobuf::internal::ExplicitlyConstructed<RebootDeviceResponse> _instance; |
| 141 | } _RebootDeviceResponse_default_instance_; |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 142 | class DisableHWComponentRequestDefaultTypeInternal { |
| 143 | public: |
| 144 | ::google::protobuf::internal::ExplicitlyConstructed<DisableHWComponentRequest> _instance; |
| 145 | } _DisableHWComponentRequest_default_instance_; |
| 146 | class DisableHWComponentResponseDefaultTypeInternal { |
| 147 | public: |
| 148 | ::google::protobuf::internal::ExplicitlyConstructed<DisableHWComponentResponse> _instance; |
| 149 | } _DisableHWComponentResponse_default_instance_; |
| 150 | class ResetHWComponentRequestDefaultTypeInternal { |
| 151 | public: |
| 152 | ::google::protobuf::internal::ExplicitlyConstructed<ResetHWComponentRequest> _instance; |
| 153 | } _ResetHWComponentRequest_default_instance_; |
| 154 | class ResetHWComponentResponseDefaultTypeInternal { |
| 155 | public: |
| 156 | ::google::protobuf::internal::ExplicitlyConstructed<ResetHWComponentResponse> _instance; |
| 157 | } _ResetHWComponentResponse_default_instance_; |
| 158 | class EnableHWComponentRequestDefaultTypeInternal { |
| 159 | public: |
| 160 | ::google::protobuf::internal::ExplicitlyConstructed<EnableHWComponentRequest> _instance; |
| 161 | } _EnableHWComponentRequest_default_instance_; |
| 162 | class EnableHWComponentResponseDefaultTypeInternal { |
| 163 | public: |
| 164 | ::google::protobuf::internal::ExplicitlyConstructed<EnableHWComponentResponse> _instance; |
| 165 | } _EnableHWComponentResponse_default_instance_; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 166 | } // namespace dmi |
| 167 | static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 168 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 169 | |
| 170 | { |
| 171 | void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_; |
| 172 | new (ptr) ::dmi::PhysicalInventoryRequest(); |
| 173 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 174 | } |
| 175 | ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance(); |
| 176 | } |
| 177 | |
| 178 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 179 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 180 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 181 | |
| 182 | static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 183 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 184 | |
| 185 | { |
| 186 | void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_; |
| 187 | new (ptr) ::dmi::PhysicalInventoryResponse(); |
| 188 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 189 | } |
| 190 | ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance(); |
| 191 | } |
| 192 | |
| 193 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 194 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 195 | &scc_info_Hardware_dmi_2fhw_2eproto.base,}}; |
| 196 | |
| 197 | static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 198 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 199 | |
| 200 | { |
| 201 | void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_; |
| 202 | new (ptr) ::dmi::HWComponentInfoGetRequest(); |
| 203 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 204 | } |
| 205 | ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance(); |
| 206 | } |
| 207 | |
| 208 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 209 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 210 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 211 | |
| 212 | static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 213 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 214 | |
| 215 | { |
| 216 | void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_; |
| 217 | new (ptr) ::dmi::HWComponentInfoGetResponse(); |
| 218 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 219 | } |
| 220 | ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance(); |
| 221 | } |
| 222 | |
| 223 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 224 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 225 | &scc_info_Component_dmi_2fhw_2eproto.base,}}; |
| 226 | |
| 227 | static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 228 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 229 | |
| 230 | { |
| 231 | void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_; |
| 232 | new (ptr) ::dmi::HWComponentInfoSetRequest(); |
| 233 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 234 | } |
| 235 | ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance(); |
| 236 | } |
| 237 | |
| 238 | ::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 239 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 240 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 241 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}}; |
| 242 | |
| 243 | static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 244 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 245 | |
| 246 | { |
| 247 | void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_; |
| 248 | new (ptr) ::dmi::HWComponentInfoSetResponse(); |
| 249 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 250 | } |
| 251 | ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance(); |
| 252 | } |
| 253 | |
| 254 | ::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 255 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 256 | |
| 257 | static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 258 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 259 | |
| 260 | { |
| 261 | void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_; |
| 262 | new (ptr) ::dmi::StartManagingDeviceResponse(); |
| 263 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 264 | } |
| 265 | ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance(); |
| 266 | } |
| 267 | |
| 268 | ::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 269 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 270 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 271 | |
| 272 | static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 273 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 274 | |
| 275 | { |
| 276 | void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_; |
| 277 | new (ptr) ::dmi::StopManagingDeviceRequest(); |
| 278 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 279 | } |
| 280 | ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance(); |
| 281 | } |
| 282 | |
| 283 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 284 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 285 | |
| 286 | static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 287 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 288 | |
| 289 | { |
| 290 | void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_; |
| 291 | new (ptr) ::dmi::StopManagingDeviceResponse(); |
| 292 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 293 | } |
| 294 | ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance(); |
| 295 | } |
| 296 | |
| 297 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 298 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 299 | |
| 300 | static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 301 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 302 | |
| 303 | { |
| 304 | void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_; |
| 305 | new (ptr) ::dmi::ManagedDeviceInfo(); |
| 306 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 307 | } |
| 308 | ::dmi::ManagedDeviceInfo::InitAsDefaultInstance(); |
| 309 | } |
| 310 | |
| 311 | ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 312 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 313 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base, |
| 314 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 315 | |
| 316 | static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 317 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 318 | |
| 319 | { |
| 320 | void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_; |
| 321 | new (ptr) ::dmi::ManagedDevicesResponse(); |
| 322 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 323 | } |
| 324 | ::dmi::ManagedDevicesResponse::InitAsDefaultInstance(); |
| 325 | } |
| 326 | |
| 327 | ::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 328 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 329 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 330 | |
| 331 | static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 332 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 333 | |
| 334 | { |
| 335 | void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_; |
| 336 | new (ptr) ::dmi::SetLoggingEndpointRequest(); |
| 337 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 338 | } |
| 339 | ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance(); |
| 340 | } |
| 341 | |
| 342 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 343 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 344 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 345 | |
| 346 | static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 347 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 348 | |
| 349 | { |
| 350 | void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_; |
| 351 | new (ptr) ::dmi::SetRemoteEndpointResponse(); |
| 352 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 353 | } |
| 354 | ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance(); |
| 355 | } |
| 356 | |
| 357 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 358 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 359 | |
| 360 | static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 361 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 362 | |
| 363 | { |
| 364 | void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_; |
| 365 | new (ptr) ::dmi::GetLoggingEndpointResponse(); |
| 366 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 367 | } |
| 368 | ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance(); |
| 369 | } |
| 370 | |
| 371 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 372 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 373 | |
| 374 | static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 375 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 376 | |
| 377 | { |
| 378 | void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_; |
| 379 | new (ptr) ::dmi::SetMsgBusEndpointRequest(); |
| 380 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 381 | } |
| 382 | ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance(); |
| 383 | } |
| 384 | |
| 385 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 386 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 387 | |
| 388 | static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 389 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 390 | |
| 391 | { |
| 392 | void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_; |
| 393 | new (ptr) ::dmi::GetMsgBusEndpointResponse(); |
| 394 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 395 | } |
| 396 | ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance(); |
| 397 | } |
| 398 | |
| 399 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 400 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 401 | |
| 402 | static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 403 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 404 | |
| 405 | { |
| 406 | void* ptr = &::dmi::_EntitiesLogLevel_default_instance_; |
| 407 | new (ptr) ::dmi::EntitiesLogLevel(); |
| 408 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 409 | } |
| 410 | ::dmi::EntitiesLogLevel::InitAsDefaultInstance(); |
| 411 | } |
| 412 | |
| 413 | ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 414 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 415 | |
| 416 | static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 417 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 418 | |
| 419 | { |
| 420 | void* ptr = &::dmi::_SetLogLevelRequest_default_instance_; |
| 421 | new (ptr) ::dmi::SetLogLevelRequest(); |
| 422 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 423 | } |
| 424 | ::dmi::SetLogLevelRequest::InitAsDefaultInstance(); |
| 425 | } |
| 426 | |
| 427 | ::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 428 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 429 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 430 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 431 | |
| 432 | static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 433 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 434 | |
| 435 | { |
| 436 | void* ptr = &::dmi::_SetLogLevelResponse_default_instance_; |
| 437 | new (ptr) ::dmi::SetLogLevelResponse(); |
| 438 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 439 | } |
| 440 | ::dmi::SetLogLevelResponse::InitAsDefaultInstance(); |
| 441 | } |
| 442 | |
| 443 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 444 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 445 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 446 | |
| 447 | static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 448 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 449 | |
| 450 | { |
| 451 | void* ptr = &::dmi::_GetLogLevelRequest_default_instance_; |
| 452 | new (ptr) ::dmi::GetLogLevelRequest(); |
| 453 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 454 | } |
| 455 | ::dmi::GetLogLevelRequest::InitAsDefaultInstance(); |
| 456 | } |
| 457 | |
| 458 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 459 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 460 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 461 | |
| 462 | static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 463 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 464 | |
| 465 | { |
| 466 | void* ptr = &::dmi::_GetLogLevelResponse_default_instance_; |
| 467 | new (ptr) ::dmi::GetLogLevelResponse(); |
| 468 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 469 | } |
| 470 | ::dmi::GetLogLevelResponse::InitAsDefaultInstance(); |
| 471 | } |
| 472 | |
| 473 | ::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 474 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 475 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 476 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 477 | |
| 478 | static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 479 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 480 | |
| 481 | { |
| 482 | void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_; |
| 483 | new (ptr) ::dmi::GetLoggableEntitiesRequest(); |
| 484 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 485 | } |
| 486 | ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance(); |
| 487 | } |
| 488 | |
| 489 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 490 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 491 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 492 | |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 493 | static void InitDefaultsSetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 494 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 495 | |
| 496 | { |
| 497 | void* ptr = &::dmi::_SetDmLogLevelRequest_default_instance_; |
| 498 | new (ptr) ::dmi::SetDmLogLevelRequest(); |
| 499 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 500 | } |
| 501 | ::dmi::SetDmLogLevelRequest::InitAsDefaultInstance(); |
| 502 | } |
| 503 | |
| 504 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 505 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 506 | |
| 507 | static void InitDefaultsSetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 508 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 509 | |
| 510 | { |
| 511 | void* ptr = &::dmi::_SetDmLogLevelResponse_default_instance_; |
| 512 | new (ptr) ::dmi::SetDmLogLevelResponse(); |
| 513 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 514 | } |
| 515 | ::dmi::SetDmLogLevelResponse::InitAsDefaultInstance(); |
| 516 | } |
| 517 | |
| 518 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 519 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 520 | |
| 521 | static void InitDefaultsGetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 522 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 523 | |
| 524 | { |
| 525 | void* ptr = &::dmi::_GetDmLogLevelRequest_default_instance_; |
| 526 | new (ptr) ::dmi::GetDmLogLevelRequest(); |
| 527 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 528 | } |
| 529 | ::dmi::GetDmLogLevelRequest::InitAsDefaultInstance(); |
| 530 | } |
| 531 | |
| 532 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 533 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 534 | |
| 535 | static void InitDefaultsGetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 536 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 537 | |
| 538 | { |
| 539 | void* ptr = &::dmi::_GetDmLogLevelResponse_default_instance_; |
| 540 | new (ptr) ::dmi::GetDmLogLevelResponse(); |
| 541 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 542 | } |
| 543 | ::dmi::GetDmLogLevelResponse::InitAsDefaultInstance(); |
| 544 | } |
| 545 | |
| 546 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 547 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 548 | |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 549 | static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 550 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 551 | |
| 552 | { |
| 553 | void* ptr = &::dmi::_Heartbeat_default_instance_; |
| 554 | new (ptr) ::dmi::Heartbeat(); |
| 555 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 556 | } |
| 557 | ::dmi::Heartbeat::InitAsDefaultInstance(); |
| 558 | } |
| 559 | |
| 560 | ::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 561 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 562 | |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 563 | static void InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 564 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 565 | |
| 566 | { |
| 567 | void* ptr = &::dmi::_RebootDeviceRequest_default_instance_; |
| 568 | new (ptr) ::dmi::RebootDeviceRequest(); |
| 569 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 570 | } |
| 571 | ::dmi::RebootDeviceRequest::InitAsDefaultInstance(); |
| 572 | } |
| 573 | |
| 574 | ::google::protobuf::internal::SCCInfo<1> scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 575 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 576 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 577 | |
| 578 | static void InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 579 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 580 | |
| 581 | { |
| 582 | void* ptr = &::dmi::_RebootDeviceResponse_default_instance_; |
| 583 | new (ptr) ::dmi::RebootDeviceResponse(); |
| 584 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 585 | } |
| 586 | ::dmi::RebootDeviceResponse::InitAsDefaultInstance(); |
| 587 | } |
| 588 | |
| 589 | ::google::protobuf::internal::SCCInfo<0> scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 590 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 591 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 592 | static void InitDefaultsDisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 593 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 594 | |
| 595 | { |
| 596 | void* ptr = &::dmi::_DisableHWComponentRequest_default_instance_; |
| 597 | new (ptr) ::dmi::DisableHWComponentRequest(); |
| 598 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 599 | } |
| 600 | ::dmi::DisableHWComponentRequest::InitAsDefaultInstance(); |
| 601 | } |
| 602 | |
| 603 | ::google::protobuf::internal::SCCInfo<1> scc_info_DisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 604 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 605 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 606 | |
| 607 | static void InitDefaultsDisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 608 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 609 | |
| 610 | { |
| 611 | void* ptr = &::dmi::_DisableHWComponentResponse_default_instance_; |
| 612 | new (ptr) ::dmi::DisableHWComponentResponse(); |
| 613 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 614 | } |
| 615 | ::dmi::DisableHWComponentResponse::InitAsDefaultInstance(); |
| 616 | } |
| 617 | |
| 618 | ::google::protobuf::internal::SCCInfo<0> scc_info_DisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 619 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 620 | |
| 621 | static void InitDefaultsResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 622 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 623 | |
| 624 | { |
| 625 | void* ptr = &::dmi::_ResetHWComponentRequest_default_instance_; |
| 626 | new (ptr) ::dmi::ResetHWComponentRequest(); |
| 627 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 628 | } |
| 629 | ::dmi::ResetHWComponentRequest::InitAsDefaultInstance(); |
| 630 | } |
| 631 | |
| 632 | ::google::protobuf::internal::SCCInfo<1> scc_info_ResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 633 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 634 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 635 | |
| 636 | static void InitDefaultsResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 637 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 638 | |
| 639 | { |
| 640 | void* ptr = &::dmi::_ResetHWComponentResponse_default_instance_; |
| 641 | new (ptr) ::dmi::ResetHWComponentResponse(); |
| 642 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 643 | } |
| 644 | ::dmi::ResetHWComponentResponse::InitAsDefaultInstance(); |
| 645 | } |
| 646 | |
| 647 | ::google::protobuf::internal::SCCInfo<0> scc_info_ResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 648 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 649 | |
| 650 | static void InitDefaultsEnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 651 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 652 | |
| 653 | { |
| 654 | void* ptr = &::dmi::_EnableHWComponentRequest_default_instance_; |
| 655 | new (ptr) ::dmi::EnableHWComponentRequest(); |
| 656 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 657 | } |
| 658 | ::dmi::EnableHWComponentRequest::InitAsDefaultInstance(); |
| 659 | } |
| 660 | |
| 661 | ::google::protobuf::internal::SCCInfo<1> scc_info_EnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 662 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 663 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 664 | |
| 665 | static void InitDefaultsEnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 666 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 667 | |
| 668 | { |
| 669 | void* ptr = &::dmi::_EnableHWComponentResponse_default_instance_; |
| 670 | new (ptr) ::dmi::EnableHWComponentResponse(); |
| 671 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 672 | } |
| 673 | ::dmi::EnableHWComponentResponse::InitAsDefaultInstance(); |
| 674 | } |
| 675 | |
| 676 | ::google::protobuf::internal::SCCInfo<0> scc_info_EnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 677 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 678 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 679 | void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 680 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 681 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 682 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 683 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 684 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 685 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 686 | ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 687 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 688 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 689 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 690 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 691 | ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 692 | ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 693 | ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 694 | ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 695 | ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 696 | ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 697 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 698 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 699 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 700 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 701 | ::google::protobuf::internal::InitSCC(&scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 702 | ::google::protobuf::internal::InitSCC(&scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 703 | ::google::protobuf::internal::InitSCC(&scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 704 | ::google::protobuf::internal::InitSCC(&scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 705 | ::google::protobuf::internal::InitSCC(&scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 706 | ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 707 | ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 708 | ::google::protobuf::internal::InitSCC(&scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 709 | ::google::protobuf::internal::InitSCC(&scc_info_DisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 710 | ::google::protobuf::internal::InitSCC(&scc_info_DisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 711 | ::google::protobuf::internal::InitSCC(&scc_info_ResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 712 | ::google::protobuf::internal::InitSCC(&scc_info_ResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 713 | ::google::protobuf::internal::InitSCC(&scc_info_EnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 714 | ::google::protobuf::internal::InitSCC(&scc_info_EnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 715 | } |
| 716 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 717 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[35]; |
| 718 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[17]; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 719 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr; |
| 720 | |
| 721 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 722 | ~0u, // no _has_bits_ |
| 723 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_), |
| 724 | ~0u, // no _extensions_ |
| 725 | ~0u, // no _oneof_case_ |
| 726 | ~0u, // no _weak_field_map_ |
| 727 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_), |
| 728 | ~0u, // no _has_bits_ |
| 729 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_), |
| 730 | ~0u, // no _extensions_ |
| 731 | ~0u, // no _oneof_case_ |
| 732 | ~0u, // no _weak_field_map_ |
| 733 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_), |
| 734 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_), |
| 735 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_), |
| 736 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_), |
| 737 | ~0u, // no _has_bits_ |
| 738 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_), |
| 739 | ~0u, // no _extensions_ |
| 740 | ~0u, // no _oneof_case_ |
| 741 | ~0u, // no _weak_field_map_ |
| 742 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_), |
| 743 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_), |
| 744 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_), |
| 745 | ~0u, // no _has_bits_ |
| 746 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_), |
| 747 | ~0u, // no _extensions_ |
| 748 | ~0u, // no _oneof_case_ |
| 749 | ~0u, // no _weak_field_map_ |
| 750 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_), |
| 751 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_), |
| 752 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_), |
| 753 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_), |
| 754 | ~0u, // no _has_bits_ |
| 755 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_), |
| 756 | ~0u, // no _extensions_ |
| 757 | ~0u, // no _oneof_case_ |
| 758 | ~0u, // no _weak_field_map_ |
| 759 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_), |
| 760 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_), |
| 761 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_), |
| 762 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_), |
| 763 | ~0u, // no _has_bits_ |
| 764 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_), |
| 765 | ~0u, // no _extensions_ |
| 766 | ~0u, // no _oneof_case_ |
| 767 | ~0u, // no _weak_field_map_ |
| 768 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_), |
| 769 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_), |
| 770 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_), |
| 771 | ~0u, // no _has_bits_ |
| 772 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_), |
| 773 | ~0u, // no _extensions_ |
| 774 | ~0u, // no _oneof_case_ |
| 775 | ~0u, // no _weak_field_map_ |
| 776 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_), |
| 777 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_), |
| 778 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_), |
| 779 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_), |
| 780 | ~0u, // no _has_bits_ |
| 781 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_), |
| 782 | ~0u, // no _extensions_ |
| 783 | ~0u, // no _oneof_case_ |
| 784 | ~0u, // no _weak_field_map_ |
| 785 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_), |
| 786 | ~0u, // no _has_bits_ |
| 787 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_), |
| 788 | ~0u, // no _extensions_ |
| 789 | ~0u, // no _oneof_case_ |
| 790 | ~0u, // no _weak_field_map_ |
| 791 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_), |
| 792 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_), |
| 793 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_), |
| 794 | ~0u, // no _has_bits_ |
| 795 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_), |
| 796 | ~0u, // no _extensions_ |
| 797 | ~0u, // no _oneof_case_ |
| 798 | ~0u, // no _weak_field_map_ |
| 799 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_), |
| 800 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_), |
| 801 | ~0u, // no _has_bits_ |
| 802 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_), |
| 803 | ~0u, // no _extensions_ |
| 804 | ~0u, // no _oneof_case_ |
| 805 | ~0u, // no _weak_field_map_ |
| 806 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_), |
| 807 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_), |
| 808 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_), |
| 809 | ~0u, // no _has_bits_ |
| 810 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_), |
| 811 | ~0u, // no _extensions_ |
| 812 | ~0u, // no _oneof_case_ |
| 813 | ~0u, // no _weak_field_map_ |
| 814 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_), |
| 815 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_), |
| 816 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_), |
| 817 | ~0u, // no _has_bits_ |
| 818 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_), |
| 819 | ~0u, // no _extensions_ |
| 820 | ~0u, // no _oneof_case_ |
| 821 | ~0u, // no _weak_field_map_ |
| 822 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_), |
| 823 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_), |
| 824 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_), |
| 825 | ~0u, // no _has_bits_ |
| 826 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_), |
| 827 | ~0u, // no _extensions_ |
| 828 | ~0u, // no _oneof_case_ |
| 829 | ~0u, // no _weak_field_map_ |
| 830 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_), |
| 831 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_), |
| 832 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_), |
| 833 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_), |
| 834 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_), |
| 835 | ~0u, // no _has_bits_ |
| 836 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_), |
| 837 | ~0u, // no _extensions_ |
| 838 | ~0u, // no _oneof_case_ |
| 839 | ~0u, // no _weak_field_map_ |
| 840 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_), |
| 841 | ~0u, // no _has_bits_ |
| 842 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_), |
| 843 | ~0u, // no _extensions_ |
| 844 | ~0u, // no _oneof_case_ |
| 845 | ~0u, // no _weak_field_map_ |
| 846 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_), |
| 847 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_), |
| 848 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_), |
| 849 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_), |
| 850 | ~0u, // no _has_bits_ |
| 851 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_), |
| 852 | ~0u, // no _extensions_ |
| 853 | ~0u, // no _oneof_case_ |
| 854 | ~0u, // no _weak_field_map_ |
| 855 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_), |
| 856 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_), |
| 857 | ~0u, // no _has_bits_ |
| 858 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_), |
| 859 | ~0u, // no _extensions_ |
| 860 | ~0u, // no _oneof_case_ |
| 861 | ~0u, // no _weak_field_map_ |
| 862 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_), |
| 863 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_), |
| 864 | ~0u, // no _has_bits_ |
| 865 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_), |
| 866 | ~0u, // no _extensions_ |
| 867 | ~0u, // no _oneof_case_ |
| 868 | ~0u, // no _weak_field_map_ |
| 869 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_), |
| 870 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_), |
| 871 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_), |
| 872 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_), |
| 873 | ~0u, // no _has_bits_ |
| 874 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_), |
| 875 | ~0u, // no _extensions_ |
| 876 | ~0u, // no _oneof_case_ |
| 877 | ~0u, // no _weak_field_map_ |
| 878 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_), |
| 879 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_), |
| 880 | ~0u, // no _has_bits_ |
| 881 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_), |
| 882 | ~0u, // no _extensions_ |
| 883 | ~0u, // no _oneof_case_ |
| 884 | ~0u, // no _weak_field_map_ |
| 885 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_), |
| 886 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_), |
| 887 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_), |
| 888 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_), |
| 889 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_), |
| 890 | ~0u, // no _has_bits_ |
| 891 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_), |
| 892 | ~0u, // no _extensions_ |
| 893 | ~0u, // no _oneof_case_ |
| 894 | ~0u, // no _weak_field_map_ |
| 895 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_), |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 896 | ~0u, // no _has_bits_ |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 897 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelRequest, _internal_metadata_), |
| 898 | ~0u, // no _extensions_ |
| 899 | ~0u, // no _oneof_case_ |
| 900 | ~0u, // no _weak_field_map_ |
| 901 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelRequest, level_), |
| 902 | ~0u, // no _has_bits_ |
| 903 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, _internal_metadata_), |
| 904 | ~0u, // no _extensions_ |
| 905 | ~0u, // no _oneof_case_ |
| 906 | ~0u, // no _weak_field_map_ |
| 907 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, status_), |
| 908 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, reason_), |
| 909 | PROTOBUF_FIELD_OFFSET(::dmi::SetDmLogLevelResponse, reason_detail_), |
| 910 | ~0u, // no _has_bits_ |
| 911 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelRequest, _internal_metadata_), |
| 912 | ~0u, // no _extensions_ |
| 913 | ~0u, // no _oneof_case_ |
| 914 | ~0u, // no _weak_field_map_ |
| 915 | ~0u, // no _has_bits_ |
| 916 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, _internal_metadata_), |
| 917 | ~0u, // no _extensions_ |
| 918 | ~0u, // no _oneof_case_ |
| 919 | ~0u, // no _weak_field_map_ |
| 920 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, level_), |
| 921 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, status_), |
| 922 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, reason_), |
| 923 | PROTOBUF_FIELD_OFFSET(::dmi::GetDmLogLevelResponse, reason_detail_), |
| 924 | ~0u, // no _has_bits_ |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 925 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_), |
| 926 | ~0u, // no _extensions_ |
| 927 | ~0u, // no _oneof_case_ |
| 928 | ~0u, // no _weak_field_map_ |
| 929 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_), |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 930 | ~0u, // no _has_bits_ |
| 931 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, _internal_metadata_), |
| 932 | ~0u, // no _extensions_ |
| 933 | ~0u, // no _oneof_case_ |
| 934 | ~0u, // no _weak_field_map_ |
| 935 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceRequest, device_uuid_), |
| 936 | ~0u, // no _has_bits_ |
| 937 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, _internal_metadata_), |
| 938 | ~0u, // no _extensions_ |
| 939 | ~0u, // no _oneof_case_ |
| 940 | ~0u, // no _weak_field_map_ |
| 941 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, status_), |
| 942 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_), |
| 943 | PROTOBUF_FIELD_OFFSET(::dmi::RebootDeviceResponse, reason_detail_), |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 944 | ~0u, // no _has_bits_ |
| 945 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentRequest, _internal_metadata_), |
| 946 | ~0u, // no _extensions_ |
| 947 | ~0u, // no _oneof_case_ |
| 948 | ~0u, // no _weak_field_map_ |
| 949 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentRequest, device_uuid_), |
| 950 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentRequest, component_uuid_), |
| 951 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentRequest, component_name_), |
| 952 | ~0u, // no _has_bits_ |
| 953 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentResponse, _internal_metadata_), |
| 954 | ~0u, // no _extensions_ |
| 955 | ~0u, // no _oneof_case_ |
| 956 | ~0u, // no _weak_field_map_ |
| 957 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentResponse, status_), |
| 958 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentResponse, reason_), |
| 959 | PROTOBUF_FIELD_OFFSET(::dmi::DisableHWComponentResponse, reason_detail_), |
| 960 | ~0u, // no _has_bits_ |
| 961 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentRequest, _internal_metadata_), |
| 962 | ~0u, // no _extensions_ |
| 963 | ~0u, // no _oneof_case_ |
| 964 | ~0u, // no _weak_field_map_ |
| 965 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentRequest, device_uuid_), |
| 966 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentRequest, component_uuid_), |
| 967 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentRequest, component_name_), |
| 968 | ~0u, // no _has_bits_ |
| 969 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentResponse, _internal_metadata_), |
| 970 | ~0u, // no _extensions_ |
| 971 | ~0u, // no _oneof_case_ |
| 972 | ~0u, // no _weak_field_map_ |
| 973 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentResponse, status_), |
| 974 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentResponse, reason_), |
| 975 | PROTOBUF_FIELD_OFFSET(::dmi::ResetHWComponentResponse, reason_detail_), |
| 976 | ~0u, // no _has_bits_ |
| 977 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentRequest, _internal_metadata_), |
| 978 | ~0u, // no _extensions_ |
| 979 | ~0u, // no _oneof_case_ |
| 980 | ~0u, // no _weak_field_map_ |
| 981 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentRequest, device_uuid_), |
| 982 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentRequest, component_uuid_), |
| 983 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentRequest, component_name_), |
| 984 | ~0u, // no _has_bits_ |
| 985 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentResponse, _internal_metadata_), |
| 986 | ~0u, // no _extensions_ |
| 987 | ~0u, // no _oneof_case_ |
| 988 | ~0u, // no _weak_field_map_ |
| 989 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentResponse, status_), |
| 990 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentResponse, reason_), |
| 991 | PROTOBUF_FIELD_OFFSET(::dmi::EnableHWComponentResponse, reason_detail_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 992 | }; |
| 993 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 994 | { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)}, |
| 995 | { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)}, |
| 996 | { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)}, |
| 997 | { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)}, |
| 998 | { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)}, |
| 999 | { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)}, |
| 1000 | { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)}, |
| 1001 | { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)}, |
| 1002 | { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)}, |
| 1003 | { 72, -1, sizeof(::dmi::ManagedDeviceInfo)}, |
| 1004 | { 79, -1, sizeof(::dmi::ManagedDevicesResponse)}, |
| 1005 | { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)}, |
| 1006 | { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)}, |
| 1007 | { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)}, |
| 1008 | { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)}, |
| 1009 | { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)}, |
| 1010 | { 128, -1, sizeof(::dmi::EntitiesLogLevel)}, |
| 1011 | { 135, -1, sizeof(::dmi::SetLogLevelRequest)}, |
| 1012 | { 142, -1, sizeof(::dmi::SetLogLevelResponse)}, |
| 1013 | { 151, -1, sizeof(::dmi::GetLogLevelRequest)}, |
| 1014 | { 158, -1, sizeof(::dmi::GetLogLevelResponse)}, |
| 1015 | { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)}, |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 1016 | { 174, -1, sizeof(::dmi::SetDmLogLevelRequest)}, |
| 1017 | { 180, -1, sizeof(::dmi::SetDmLogLevelResponse)}, |
| 1018 | { 188, -1, sizeof(::dmi::GetDmLogLevelRequest)}, |
| 1019 | { 193, -1, sizeof(::dmi::GetDmLogLevelResponse)}, |
| 1020 | { 202, -1, sizeof(::dmi::Heartbeat)}, |
| 1021 | { 208, -1, sizeof(::dmi::RebootDeviceRequest)}, |
| 1022 | { 214, -1, sizeof(::dmi::RebootDeviceResponse)}, |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1023 | { 222, -1, sizeof(::dmi::DisableHWComponentRequest)}, |
| 1024 | { 230, -1, sizeof(::dmi::DisableHWComponentResponse)}, |
| 1025 | { 238, -1, sizeof(::dmi::ResetHWComponentRequest)}, |
| 1026 | { 246, -1, sizeof(::dmi::ResetHWComponentResponse)}, |
| 1027 | { 254, -1, sizeof(::dmi::EnableHWComponentRequest)}, |
| 1028 | { 262, -1, sizeof(::dmi::EnableHWComponentResponse)}, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1029 | }; |
| 1030 | |
| 1031 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 1032 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_), |
| 1033 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_), |
| 1034 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_), |
| 1035 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_), |
| 1036 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_), |
| 1037 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_), |
| 1038 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_), |
| 1039 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_), |
| 1040 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_), |
| 1041 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_), |
| 1042 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_), |
| 1043 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_), |
| 1044 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_), |
| 1045 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_), |
| 1046 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_), |
| 1047 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_), |
| 1048 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_), |
| 1049 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_), |
| 1050 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_), |
| 1051 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_), |
| 1052 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_), |
| 1053 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_), |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 1054 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetDmLogLevelRequest_default_instance_), |
| 1055 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetDmLogLevelResponse_default_instance_), |
| 1056 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetDmLogLevelRequest_default_instance_), |
| 1057 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetDmLogLevelResponse_default_instance_), |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 1058 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_), |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1059 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceRequest_default_instance_), |
| 1060 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_RebootDeviceResponse_default_instance_), |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1061 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_DisableHWComponentRequest_default_instance_), |
| 1062 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_DisableHWComponentResponse_default_instance_), |
| 1063 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ResetHWComponentRequest_default_instance_), |
| 1064 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ResetHWComponentResponse_default_instance_), |
| 1065 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EnableHWComponentRequest_default_instance_), |
| 1066 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EnableHWComponentResponse_default_instance_), |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1067 | }; |
| 1068 | |
| 1069 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 1070 | {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas, |
| 1071 | file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets, |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1072 | file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 35, file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1073 | }; |
| 1074 | |
| 1075 | const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] = |
| 1076 | "\n\037dmi/hw_management_service.proto\022\003dmi\032\021" |
| 1077 | "dmi/commons.proto\032\014dmi/hw.proto\032\033google/" |
| 1078 | "protobuf/empty.proto\":\n\030PhysicalInventor" |
| 1079 | "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 1080 | "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status" |
| 1081 | "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm" |
| 1082 | "i.PhysicalInventoryResponse.Reason\022 \n\tin" |
| 1083 | "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d" |
| 1084 | "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO" |
| 1085 | "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO" |
| 1086 | "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone" |
| 1087 | "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t." |
| 1088 | "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U" |
| 1089 | "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon" |
| 1090 | "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi" |
| 1091 | ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen" |
| 1092 | "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001" |
| 1093 | "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001(" |
| 1094 | "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK" |
| 1095 | "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016" |
| 1096 | "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004" |
| 1097 | "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device" |
| 1098 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid" |
| 1099 | "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001(" |
| 1100 | "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo" |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1101 | "nent\"\251\002\n\032HWComponentInfoSetResponse\022\033\n\006s" |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1102 | "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016" |
| 1103 | "2&.dmi.HWComponentInfoSetResponse.Reason" |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1104 | "\022\025\n\rreason_detail\030\003 \001(\t\"\236\001\n\006Reason\022\024\n\020UN" |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1105 | "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021" |
| 1106 | "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022" |
| 1107 | "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL" |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1108 | "E\020\005\022\023\n\017SET_UNSUPPORTED\020\006\"\347\002\n\033StartManagi" |
| 1109 | "ngDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.S" |
| 1110 | "tatus\0227\n\006reason\030\002 \001(\0162\'.dmi.StartManagin" |
| 1111 | "gDeviceResponse.Reason\022\036\n\013device_uuid\030\003 " |
| 1112 | "\001(\0132\t.dmi.Uuid\022\025\n\rreason_detail\030\004 \001(\t\"\272\001" |
| 1113 | "\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\032\n\026DEVICE" |
| 1114 | "_ALREADY_MANAGED\020\001\022!\n\035OPERATION_ALREADY_" |
| 1115 | "IN_PROGRESS\020\002\022\022\n\016INVALID_PARAMS\020\003\022\022\n\016INT" |
| 1116 | "ERNAL_ERROR\020\004\022\032\n\026AUTHENTICATION_FAILURE\020" |
| 1117 | "\005\022\027\n\023INCOMPATIBLE_DEVICE\020\006\")\n\031StopManagi" |
| amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame] | 1118 | "ngDeviceRequest\022\014\n\004name\030\001 \001(\t\"\324\001\n\032StopMa" |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1119 | "nagingDeviceResponse\022\033\n\006status\030\001 \001(\0162\013.d" |
| 1120 | "mi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.StopMana" |
| 1121 | "gingDeviceResponse.Reason\022\025\n\rreason_deta" |
| amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame] | 1122 | "il\030\003 \001(\t\"J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000" |
| 1123 | "\022\022\n\016UNKNOWN_DEVICE\020\001\022\026\n\022DEVICE_UNREACHAB" |
| 1124 | "LE\020\002\"[\n\021ManagedDeviceInfo\022&\n\004info\030\001 \001(\0132" |
| 1125 | "\030.dmi.ModifiableComponent\022\036\n\013device_uuid" |
| 1126 | "\030\002 \001(\0132\t.dmi.Uuid\"\306\001\n\026ManagedDevicesResp" |
| 1127 | "onse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0222\n\006rea" |
| 1128 | "son\030\002 \001(\0162\".dmi.ManagedDevicesResponse.R" |
| 1129 | "eason\022\'\n\007devices\030\003 \003(\0132\026.dmi.ManagedDevi" |
| 1130 | "ceInfo\"2\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022" |
| 1131 | "\n\016INTERNAL_ERROR\020\001\"o\n\031SetLoggingEndpoint" |
| 1132 | "Request\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022" |
| 1133 | "\030\n\020logging_endpoint\030\002 \001(\t\022\030\n\020logging_pro" |
| 1134 | "tocol\030\003 \001(\t\"\303\002\n\031SetRemoteEndpointRespons" |
| 1135 | "e\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reason" |
| 1136 | "\030\002 \001(\0162%.dmi.SetRemoteEndpointResponse.R" |
| 1137 | "eason\022\025\n\rreason_detail\030\003 \001(\t\"\272\001\n\006Reason\022" |
| 1138 | "\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020" |
| 1139 | "\001\022\022\n\016INTERNAL_ERROR\020\002\022\032\n\026LOGGING_ENDPOIN" |
| 1140 | "T_ERROR\020\003\022#\n\037LOGGING_ENDPOINT_PROTOCOL_E" |
| 1141 | "RROR\020\004\022\031\n\025MSGBUS_ENDPOINT_ERROR\020\005\022\026\n\022DEV" |
| 1142 | "ICE_UNREACHABLE\020\006\"\234\002\n\032GetLoggingEndpoint" |
| 1143 | "Response\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n" |
| 1144 | "\006reason\030\002 \001(\0162&.dmi.GetLoggingEndpointRe" |
| 1145 | "sponse.Reason\022\030\n\020logging_endpoint\030\003 \001(\t\022" |
| 1146 | "\030\n\020logging_protocol\030\004 \001(\t\022\025\n\rreason_deta" |
| 1147 | "il\030\005 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000" |
| 1148 | "\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002" |
| 1149 | "\022\026\n\022DEVICE_UNREACHABLE\020\003\"3\n\030SetMsgBusEnd" |
| 1150 | "pointRequest\022\027\n\017msgbus_endpoint\030\001 \001(\t\"\353\001" |
| 1151 | "\n\031GetMsgBusEndpointResponse\022\033\n\006status\030\001 " |
| 1152 | "\001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.G" |
| 1153 | "etMsgBusEndpointResponse.Reason\022\027\n\017msgbu" |
| 1154 | "s_endpoint\030\003 \001(\t\022\025\n\rreason_detail\030\004 \001(\t\"" |
| 1155 | "J\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTER" |
| 1156 | "NAL_ERROR\020\001\022\026\n\022DEVICE_UNREACHABLE\020\002\"E\n\020E" |
| 1157 | "ntitiesLogLevel\022\037\n\010logLevel\030\001 \001(\0162\r.dmi." |
| 1158 | "LogLevel\022\020\n\010entities\030\002 \003(\t\"^\n\022SetLogLeve" |
| 1159 | "lRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 1160 | "\022(\n\tloglevels\030\002 \003(\0132\025.dmi.EntitiesLogLev" |
| 1161 | "el\"\222\002\n\023SetLogLevelResponse\022\036\n\013device_uui" |
| 1162 | "d\030\001 \001(\0132\t.dmi.Uuid\022\033\n\006status\030\002 \001(\0162\013.dmi" |
| 1163 | ".Status\022/\n\006reason\030\003 \001(\0162\037.dmi.SetLogLeve" |
| 1164 | "lResponse.Reason\022\025\n\rreason_detail\030\004 \001(\t\"" |
| 1165 | "v\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNO" |
| 1166 | "WN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNO" |
| 1167 | "WN_LOG_ENTITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"" |
| 1168 | "F\n\022GetLogLevelRequest\022\036\n\013device_uuid\030\001 \001" |
| 1169 | "(\0132\t.dmi.Uuid\022\020\n\010entities\030\002 \003(\t\"\274\002\n\023GetL" |
| 1170 | "ogLevelResponse\022\036\n\013device_uuid\030\001 \001(\0132\t.d" |
| 1171 | "mi.Uuid\022(\n\tlogLevels\030\002 \003(\0132\025.dmi.Entitie" |
| 1172 | "sLogLevel\022\033\n\006status\030\003 \001(\0162\013.dmi.Status\022/" |
| 1173 | "\n\006reason\030\004 \001(\0162\037.dmi.GetLogLevelResponse" |
| 1174 | ".Reason\022\025\n\rreason_detail\030\005 \001(\t\"v\n\006Reason" |
| 1175 | "\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE" |
| 1176 | "\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_EN" |
| 1177 | "TITY\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\"<\n\032GetLog" |
| 1178 | "gableEntitiesRequest\022\036\n\013device_uuid\030\001 \001(" |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 1179 | "\0132\t.dmi.Uuid\"4\n\024SetDmLogLevelRequest\022\034\n\005" |
| 1180 | "level\030\001 \001(\0162\r.dmi.LogLevel\"\311\001\n\025SetDmLogL" |
| 1181 | "evelResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Statu" |
| 1182 | "s\0221\n\006reason\030\002 \001(\0162!.dmi.SetDmLogLevelRes" |
| 1183 | "ponse.Reason\022\025\n\rreason_detail\030\003 \001(\t\"I\n\006R" |
| 1184 | "eason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016INTERNAL_" |
| 1185 | "ERROR\020\001\022\025\n\021UNKNOWN_LOG_LEVEL\020\002\"\026\n\024GetDmL" |
| 1186 | "ogLevelRequest\"\320\001\n\025GetDmLogLevelResponse" |
| 1187 | "\022\034\n\005level\030\001 \001(\0162\r.dmi.LogLevel\022\033\n\006status" |
| 1188 | "\030\002 \001(\0162\013.dmi.Status\0221\n\006reason\030\003 \001(\0162!.dm" |
| 1189 | "i.GetDmLogLevelResponse.Reason\022\025\n\rreason" |
| 1190 | "_detail\030\004 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_REA" |
| 1191 | "SON\020\000\022\022\n\016INTERNAL_ERROR\020\001\"(\n\tHeartbeat\022\033" |
| 1192 | "\n\023heartbeat_signature\030\001 \001(\007\"5\n\023RebootDev" |
| 1193 | "iceRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uu" |
| 1194 | "id\"\367\001\n\024RebootDeviceResponse\022\033\n\006status\030\003 " |
| 1195 | "\001(\0162\013.dmi.Status\0220\n\006reason\030\004 \001(\0162 .dmi.R" |
| 1196 | "ebootDeviceResponse.Reason\022\025\n\rreason_det" |
| 1197 | "ail\030\005 \001(\t\"y\n\006Reason\022\024\n\020UNDEFINED_REASON\020" |
| 1198 | "\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERROR\020" |
| 1199 | "\002\022\026\n\022DEVICE_UNREACHABLE\020\003\022\031\n\025DEVICE_IN_W" |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1200 | "RONG_STATE\020\004\"v\n\031DisableHWComponentReques" |
| 1201 | "t\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016com" |
| 1202 | "ponent_uuid\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016componen" |
| 1203 | "t_name\030\003 \001(\t\"\255\002\n\032DisableHWComponentRespo" |
| 1204 | "nse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0226\n\006reas" |
| 1205 | "on\030\002 \001(\0162&.dmi.DisableHWComponentRespons" |
| 1206 | "e.Reason\022\025\n\rreason_detail\030\003 \001(\t\"\242\001\n\006Reas" |
| 1207 | "on\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVI" |
| 1208 | "CE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016INTERNAL_" |
| 1209 | "ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\022\027\n\023DISAB" |
| 1210 | "LE_UNSUPPORTED\020\005\022\022\n\016INVALID_PARAMS\020\006\"t\n\027" |
| 1211 | "ResetHWComponentRequest\022\036\n\013device_uuid\030\001" |
| 1212 | " \001(\0132\t.dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132" |
| 1213 | "\t.dmi.Uuid\022\026\n\016component_name\030\003 \001(\t\"\247\002\n\030R" |
| 1214 | "esetHWComponentResponse\022\033\n\006status\030\001 \001(\0162" |
| 1215 | "\013.dmi.Status\0224\n\006reason\030\002 \001(\0162$.dmi.Reset" |
| 1216 | "HWComponentResponse.Reason\022\025\n\rreason_det" |
| 1217 | "ail\030\003 \001(\t\"\240\001\n\006Reason\022\024\n\020UNDEFINED_REASON" |
| 1218 | "\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPON" |
| 1219 | "ENT\020\002\022\022\n\016INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNRE" |
| 1220 | "ACHABLE\020\004\022\025\n\021RESET_UNSUPPORTED\020\005\022\022\n\016INVA" |
| 1221 | "LID_PARAMS\020\006\"u\n\030EnableHWComponentRequest" |
| 1222 | "\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016comp" |
| 1223 | "onent_uuid\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component" |
| 1224 | "_name\030\003 \001(\t\"\252\002\n\031EnableHWComponentRespons" |
| 1225 | "e\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225\n\006reason" |
| 1226 | "\030\002 \001(\0162%.dmi.EnableHWComponentResponse.R" |
| 1227 | "eason\022\025\n\rreason_detail\030\003 \001(\t\"\241\001\n\006Reason\022" |
| 1228 | "\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020" |
| 1229 | "\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016INTERNAL_ERR" |
| 1230 | "OR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004\022\026\n\022ENABLE_U" |
| 1231 | "NSUPPORTED\020\005\022\022\n\016INVALID_PARAMS\020\0062\272\014\n\031Nat" |
| 1232 | "iveHWManagementService\022S\n\023StartManagingD" |
| 1233 | "evice\022\030.dmi.ModifiableComponent\032 .dmi.St" |
| 1234 | "artManagingDeviceResponse0\001\022U\n\022StopManag" |
| 1235 | "ingDevice\022\036.dmi.StopManagingDeviceReques" |
| 1236 | "t\032\037.dmi.StopManagingDeviceResponse\022H\n\021Ge" |
| 1237 | "tManagedDevices\022\026.google.protobuf.Empty\032" |
| 1238 | "\033.dmi.ManagedDevicesResponse\022W\n\024GetPhysi" |
| 1239 | "calInventory\022\035.dmi.PhysicalInventoryRequ" |
| 1240 | "est\032\036.dmi.PhysicalInventoryResponse0\001\022W\n" |
| 1241 | "\022GetHWComponentInfo\022\036.dmi.HWComponentInf" |
| 1242 | "oGetRequest\032\037.dmi.HWComponentInfoGetResp" |
| 1243 | "onse0\001\022U\n\022SetHWComponentInfo\022\036.dmi.HWCom" |
| 1244 | "ponentInfoSetRequest\032\037.dmi.HWComponentIn" |
| 1245 | "foSetResponse\022T\n\022SetLoggingEndpoint\022\036.dm" |
| 1246 | "i.SetLoggingEndpointRequest\032\036.dmi.SetRem" |
| 1247 | "oteEndpointResponse\022F\n\022GetLoggingEndpoin" |
| 1248 | "t\022\017.dmi.HardwareID\032\037.dmi.GetLoggingEndpo" |
| 1249 | "intResponse\022R\n\021SetMsgBusEndpoint\022\035.dmi.S" |
| 1250 | "etMsgBusEndpointRequest\032\036.dmi.SetRemoteE" |
| 1251 | "ndpointResponse\022K\n\021GetMsgBusEndpoint\022\026.g" |
| 1252 | "oogle.protobuf.Empty\032\036.dmi.GetMsgBusEndp" |
| 1253 | "ointResponse\022P\n\023GetLoggableEntities\022\037.dm" |
| 1254 | "i.GetLoggableEntitiesRequest\032\030.dmi.GetLo" |
| 1255 | "gLevelResponse\022@\n\013SetLogLevel\022\027.dmi.SetL" |
| 1256 | "ogLevelRequest\032\030.dmi.SetLogLevelResponse" |
| 1257 | "\022@\n\013GetLogLevel\022\027.dmi.GetLogLevelRequest" |
| 1258 | "\032\030.dmi.GetLogLevelResponse\0228\n\016HeartbeatC" |
| 1259 | "heck\022\026.google.protobuf.Empty\032\016.dmi.Heart" |
| 1260 | "beat\022C\n\014RebootDevice\022\030.dmi.RebootDeviceR" |
| 1261 | "equest\032\031.dmi.RebootDeviceResponse\022F\n\rSet" |
| 1262 | "DmLogLevel\022\031.dmi.SetDmLogLevelRequest\032\032." |
| 1263 | "dmi.SetDmLogLevelResponse\022F\n\rGetDmLogLev" |
| 1264 | "el\022\031.dmi.GetDmLogLevelRequest\032\032.dmi.GetD" |
| 1265 | "mLogLevelResponse\022U\n\022DisableHWComponent\022" |
| 1266 | "\036.dmi.DisableHWComponentRequest\032\037.dmi.Di" |
| 1267 | "sableHWComponentResponse\022O\n\020ResetHWCompo" |
| 1268 | "nent\022\034.dmi.ResetHWComponentRequest\032\035.dmi" |
| 1269 | ".ResetHWComponentResponse\022R\n\021EnableHWCom" |
| 1270 | "ponent\022\035.dmi.EnableHWComponentRequest\032\036." |
| 1271 | "dmi.EnableHWComponentResponseB;Z9github." |
| 1272 | "com/opencord/device-management-interface" |
| 1273 | "/v3/go/dmib\006proto3" |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1274 | ; |
| 1275 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 1276 | false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| 1277 | descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1278 | "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 7898, |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1279 | }; |
| 1280 | |
| 1281 | void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 1282 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 1283 | { |
| 1284 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 1285 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 1286 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
| 1287 | }; |
| 1288 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3); |
| 1289 | } |
| 1290 | |
| 1291 | // Force running AddDescriptors() at dynamic initialization time. |
| 1292 | static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 1293 | namespace dmi { |
| 1294 | const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() { |
| 1295 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1296 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0]; |
| 1297 | } |
| 1298 | bool PhysicalInventoryResponse_Reason_IsValid(int value) { |
| 1299 | switch (value) { |
| 1300 | case 0: |
| 1301 | case 1: |
| 1302 | case 2: |
| 1303 | case 3: |
| 1304 | return true; |
| 1305 | default: |
| 1306 | return false; |
| 1307 | } |
| 1308 | } |
| 1309 | |
| 1310 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1311 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON; |
| 1312 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE; |
| 1313 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR; |
| 1314 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE; |
| 1315 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN; |
| 1316 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX; |
| 1317 | const int PhysicalInventoryResponse::Reason_ARRAYSIZE; |
| 1318 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1319 | const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() { |
| 1320 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1321 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1]; |
| 1322 | } |
| 1323 | bool HWComponentInfoGetResponse_Reason_IsValid(int value) { |
| 1324 | switch (value) { |
| 1325 | case 0: |
| 1326 | case 1: |
| 1327 | case 2: |
| 1328 | case 3: |
| 1329 | case 4: |
| 1330 | return true; |
| 1331 | default: |
| 1332 | return false; |
| 1333 | } |
| 1334 | } |
| 1335 | |
| 1336 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1337 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON; |
| 1338 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE; |
| 1339 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT; |
| 1340 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR; |
| 1341 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE; |
| 1342 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN; |
| 1343 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX; |
| 1344 | const int HWComponentInfoGetResponse::Reason_ARRAYSIZE; |
| 1345 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1346 | const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() { |
| 1347 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1348 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2]; |
| 1349 | } |
| 1350 | bool HWComponentInfoSetResponse_Reason_IsValid(int value) { |
| 1351 | switch (value) { |
| 1352 | case 0: |
| 1353 | case 1: |
| 1354 | case 2: |
| 1355 | case 3: |
| 1356 | case 4: |
| 1357 | case 5: |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1358 | case 6: |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1359 | return true; |
| 1360 | default: |
| 1361 | return false; |
| 1362 | } |
| 1363 | } |
| 1364 | |
| 1365 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1366 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON; |
| 1367 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE; |
| 1368 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT; |
| 1369 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS; |
| 1370 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR; |
| 1371 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE; |
| Girish Gowdra | 997432d | 2022-03-10 15:59:33 -0800 | [diff] [blame] | 1372 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::SET_UNSUPPORTED; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1373 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN; |
| 1374 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX; |
| 1375 | const int HWComponentInfoSetResponse::Reason_ARRAYSIZE; |
| 1376 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1377 | const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() { |
| 1378 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1379 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3]; |
| 1380 | } |
| 1381 | bool StartManagingDeviceResponse_Reason_IsValid(int value) { |
| 1382 | switch (value) { |
| 1383 | case 0: |
| 1384 | case 1: |
| 1385 | case 2: |
| 1386 | case 3: |
| 1387 | case 4: |
| amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1388 | case 5: |
| 1389 | case 6: |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1390 | return true; |
| 1391 | default: |
| 1392 | return false; |
| 1393 | } |
| 1394 | } |
| 1395 | |
| 1396 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1397 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON; |
| 1398 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED; |
| 1399 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 1400 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS; |
| 1401 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR; |
| amit.ghosh | 6bdb0f7 | 2021-06-02 14:42:29 +0200 | [diff] [blame] | 1402 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::AUTHENTICATION_FAILURE; |
| 1403 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INCOMPATIBLE_DEVICE; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1404 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN; |
| 1405 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX; |
| 1406 | const int StartManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1407 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1408 | const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() { |
| 1409 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1410 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4]; |
| 1411 | } |
| 1412 | bool StopManagingDeviceResponse_Reason_IsValid(int value) { |
| 1413 | switch (value) { |
| 1414 | case 0: |
| 1415 | case 1: |
| amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame] | 1416 | case 2: |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1417 | return true; |
| 1418 | default: |
| 1419 | return false; |
| 1420 | } |
| 1421 | } |
| 1422 | |
| 1423 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1424 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON; |
| 1425 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE; |
| amit.ghosh | dd12d88 | 2022-07-01 12:32:36 +0200 | [diff] [blame] | 1426 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::DEVICE_UNREACHABLE; |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1427 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN; |
| 1428 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX; |
| 1429 | const int StopManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1430 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1431 | const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() { |
| 1432 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1433 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5]; |
| 1434 | } |
| 1435 | bool ManagedDevicesResponse_Reason_IsValid(int value) { |
| 1436 | switch (value) { |
| 1437 | case 0: |
| 1438 | case 1: |
| 1439 | return true; |
| 1440 | default: |
| 1441 | return false; |
| 1442 | } |
| 1443 | } |
| 1444 | |
| 1445 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1446 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON; |
| 1447 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR; |
| 1448 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN; |
| 1449 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX; |
| 1450 | const int ManagedDevicesResponse::Reason_ARRAYSIZE; |
| 1451 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1452 | const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() { |
| 1453 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1454 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6]; |
| 1455 | } |
| 1456 | bool SetRemoteEndpointResponse_Reason_IsValid(int value) { |
| 1457 | switch (value) { |
| 1458 | case 0: |
| 1459 | case 1: |
| 1460 | case 2: |
| 1461 | case 3: |
| 1462 | case 4: |
| 1463 | case 5: |
| 1464 | case 6: |
| 1465 | return true; |
| 1466 | default: |
| 1467 | return false; |
| 1468 | } |
| 1469 | } |
| 1470 | |
| 1471 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1472 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON; |
| 1473 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE; |
| 1474 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR; |
| 1475 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR; |
| 1476 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR; |
| 1477 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR; |
| 1478 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE; |
| 1479 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN; |
| 1480 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX; |
| 1481 | const int SetRemoteEndpointResponse::Reason_ARRAYSIZE; |
| 1482 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1483 | const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() { |
| 1484 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1485 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7]; |
| 1486 | } |
| 1487 | bool GetLoggingEndpointResponse_Reason_IsValid(int value) { |
| 1488 | switch (value) { |
| 1489 | case 0: |
| 1490 | case 1: |
| 1491 | case 2: |
| 1492 | case 3: |
| 1493 | return true; |
| 1494 | default: |
| 1495 | return false; |
| 1496 | } |
| 1497 | } |
| 1498 | |
| 1499 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1500 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON; |
| 1501 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE; |
| 1502 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR; |
| 1503 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE; |
| 1504 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN; |
| 1505 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX; |
| 1506 | const int GetLoggingEndpointResponse::Reason_ARRAYSIZE; |
| 1507 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1508 | const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() { |
| 1509 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1510 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8]; |
| 1511 | } |
| 1512 | bool GetMsgBusEndpointResponse_Reason_IsValid(int value) { |
| 1513 | switch (value) { |
| 1514 | case 0: |
| 1515 | case 1: |
| 1516 | case 2: |
| 1517 | return true; |
| 1518 | default: |
| 1519 | return false; |
| 1520 | } |
| 1521 | } |
| 1522 | |
| 1523 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1524 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON; |
| 1525 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR; |
| 1526 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE; |
| 1527 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN; |
| 1528 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX; |
| 1529 | const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE; |
| 1530 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1531 | const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() { |
| 1532 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1533 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9]; |
| 1534 | } |
| 1535 | bool SetLogLevelResponse_Reason_IsValid(int value) { |
| 1536 | switch (value) { |
| 1537 | case 0: |
| 1538 | case 1: |
| 1539 | case 2: |
| 1540 | case 3: |
| 1541 | case 4: |
| 1542 | return true; |
| 1543 | default: |
| 1544 | return false; |
| 1545 | } |
| 1546 | } |
| 1547 | |
| 1548 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1549 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON; |
| 1550 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE; |
| 1551 | const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR; |
| 1552 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1553 | const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1554 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN; |
| 1555 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX; |
| 1556 | const int SetLogLevelResponse::Reason_ARRAYSIZE; |
| 1557 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1558 | const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() { |
| 1559 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1560 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10]; |
| 1561 | } |
| 1562 | bool GetLogLevelResponse_Reason_IsValid(int value) { |
| 1563 | switch (value) { |
| 1564 | case 0: |
| 1565 | case 1: |
| 1566 | case 2: |
| 1567 | case 3: |
| 1568 | case 4: |
| 1569 | return true; |
| 1570 | default: |
| 1571 | return false; |
| 1572 | } |
| 1573 | } |
| 1574 | |
| 1575 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1576 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON; |
| 1577 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE; |
| 1578 | const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR; |
| 1579 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1580 | const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1581 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN; |
| 1582 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX; |
| 1583 | const int GetLogLevelResponse::Reason_ARRAYSIZE; |
| 1584 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 1585 | const ::google::protobuf::EnumDescriptor* SetDmLogLevelResponse_Reason_descriptor() { |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1586 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1587 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11]; |
| 1588 | } |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 1589 | bool SetDmLogLevelResponse_Reason_IsValid(int value) { |
| 1590 | switch (value) { |
| 1591 | case 0: |
| 1592 | case 1: |
| 1593 | case 2: |
| 1594 | return true; |
| 1595 | default: |
| 1596 | return false; |
| 1597 | } |
| 1598 | } |
| 1599 | |
| 1600 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1601 | const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::UNDEFINED_REASON; |
| 1602 | const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::INTERNAL_ERROR; |
| 1603 | const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::UNKNOWN_LOG_LEVEL; |
| 1604 | const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::Reason_MIN; |
| 1605 | const SetDmLogLevelResponse_Reason SetDmLogLevelResponse::Reason_MAX; |
| 1606 | const int SetDmLogLevelResponse::Reason_ARRAYSIZE; |
| 1607 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1608 | const ::google::protobuf::EnumDescriptor* GetDmLogLevelResponse_Reason_descriptor() { |
| 1609 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1610 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[12]; |
| 1611 | } |
| 1612 | bool GetDmLogLevelResponse_Reason_IsValid(int value) { |
| 1613 | switch (value) { |
| 1614 | case 0: |
| 1615 | case 1: |
| 1616 | return true; |
| 1617 | default: |
| 1618 | return false; |
| 1619 | } |
| 1620 | } |
| 1621 | |
| 1622 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1623 | const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::UNDEFINED_REASON; |
| 1624 | const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::INTERNAL_ERROR; |
| 1625 | const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::Reason_MIN; |
| 1626 | const GetDmLogLevelResponse_Reason GetDmLogLevelResponse::Reason_MAX; |
| 1627 | const int GetDmLogLevelResponse::Reason_ARRAYSIZE; |
| 1628 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1629 | const ::google::protobuf::EnumDescriptor* RebootDeviceResponse_Reason_descriptor() { |
| 1630 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1631 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[13]; |
| 1632 | } |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1633 | bool RebootDeviceResponse_Reason_IsValid(int value) { |
| 1634 | switch (value) { |
| 1635 | case 0: |
| 1636 | case 1: |
| 1637 | case 2: |
| 1638 | case 3: |
| amit.ghosh | 840cb60 | 2022-04-08 16:10:50 +0200 | [diff] [blame] | 1639 | case 4: |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1640 | return true; |
| 1641 | default: |
| 1642 | return false; |
| 1643 | } |
| 1644 | } |
| 1645 | |
| 1646 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1647 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNDEFINED_REASON; |
| 1648 | const RebootDeviceResponse_Reason RebootDeviceResponse::UNKNOWN_DEVICE; |
| 1649 | const RebootDeviceResponse_Reason RebootDeviceResponse::INTERNAL_ERROR; |
| 1650 | const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_UNREACHABLE; |
| amit.ghosh | 840cb60 | 2022-04-08 16:10:50 +0200 | [diff] [blame] | 1651 | const RebootDeviceResponse_Reason RebootDeviceResponse::DEVICE_IN_WRONG_STATE; |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 1652 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MIN; |
| 1653 | const RebootDeviceResponse_Reason RebootDeviceResponse::Reason_MAX; |
| 1654 | const int RebootDeviceResponse::Reason_ARRAYSIZE; |
| 1655 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 1656 | const ::google::protobuf::EnumDescriptor* DisableHWComponentResponse_Reason_descriptor() { |
| 1657 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1658 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[14]; |
| 1659 | } |
| 1660 | bool DisableHWComponentResponse_Reason_IsValid(int value) { |
| 1661 | switch (value) { |
| 1662 | case 0: |
| 1663 | case 1: |
| 1664 | case 2: |
| 1665 | case 3: |
| 1666 | case 4: |
| 1667 | case 5: |
| 1668 | case 6: |
| 1669 | return true; |
| 1670 | default: |
| 1671 | return false; |
| 1672 | } |
| 1673 | } |
| 1674 | |
| 1675 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1676 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::UNDEFINED_REASON; |
| 1677 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::UNKNOWN_DEVICE; |
| 1678 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::UNKNOWN_COMPONENT; |
| 1679 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::INTERNAL_ERROR; |
| 1680 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::DEVICE_UNREACHABLE; |
| 1681 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::DISABLE_UNSUPPORTED; |
| 1682 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::INVALID_PARAMS; |
| 1683 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::Reason_MIN; |
| 1684 | const DisableHWComponentResponse_Reason DisableHWComponentResponse::Reason_MAX; |
| 1685 | const int DisableHWComponentResponse::Reason_ARRAYSIZE; |
| 1686 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1687 | const ::google::protobuf::EnumDescriptor* ResetHWComponentResponse_Reason_descriptor() { |
| 1688 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1689 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[15]; |
| 1690 | } |
| 1691 | bool ResetHWComponentResponse_Reason_IsValid(int value) { |
| 1692 | switch (value) { |
| 1693 | case 0: |
| 1694 | case 1: |
| 1695 | case 2: |
| 1696 | case 3: |
| 1697 | case 4: |
| 1698 | case 5: |
| 1699 | case 6: |
| 1700 | return true; |
| 1701 | default: |
| 1702 | return false; |
| 1703 | } |
| 1704 | } |
| 1705 | |
| 1706 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1707 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::UNDEFINED_REASON; |
| 1708 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::UNKNOWN_DEVICE; |
| 1709 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::UNKNOWN_COMPONENT; |
| 1710 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::INTERNAL_ERROR; |
| 1711 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::DEVICE_UNREACHABLE; |
| 1712 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::RESET_UNSUPPORTED; |
| 1713 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::INVALID_PARAMS; |
| 1714 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::Reason_MIN; |
| 1715 | const ResetHWComponentResponse_Reason ResetHWComponentResponse::Reason_MAX; |
| 1716 | const int ResetHWComponentResponse::Reason_ARRAYSIZE; |
| 1717 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1718 | const ::google::protobuf::EnumDescriptor* EnableHWComponentResponse_Reason_descriptor() { |
| 1719 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1720 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[16]; |
| 1721 | } |
| 1722 | bool EnableHWComponentResponse_Reason_IsValid(int value) { |
| 1723 | switch (value) { |
| 1724 | case 0: |
| 1725 | case 1: |
| 1726 | case 2: |
| 1727 | case 3: |
| 1728 | case 4: |
| 1729 | case 5: |
| 1730 | case 6: |
| 1731 | return true; |
| 1732 | default: |
| 1733 | return false; |
| 1734 | } |
| 1735 | } |
| 1736 | |
| 1737 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1738 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::UNDEFINED_REASON; |
| 1739 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::UNKNOWN_DEVICE; |
| 1740 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::UNKNOWN_COMPONENT; |
| 1741 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::INTERNAL_ERROR; |
| 1742 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::DEVICE_UNREACHABLE; |
| 1743 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::ENABLE_UNSUPPORTED; |
| 1744 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::INVALID_PARAMS; |
| 1745 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::Reason_MIN; |
| 1746 | const EnableHWComponentResponse_Reason EnableHWComponentResponse::Reason_MAX; |
| 1747 | const int EnableHWComponentResponse::Reason_ARRAYSIZE; |
| 1748 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 1749 | |
| 1750 | // =================================================================== |
| 1751 | |
| 1752 | void PhysicalInventoryRequest::InitAsDefaultInstance() { |
| 1753 | ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1754 | ::dmi::Uuid::internal_default_instance()); |
| 1755 | } |
| 1756 | class PhysicalInventoryRequest::HasBitSetters { |
| 1757 | public: |
| 1758 | static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg); |
| 1759 | }; |
| 1760 | |
| 1761 | const ::dmi::Uuid& |
| 1762 | PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) { |
| 1763 | return *msg->device_uuid_; |
| 1764 | } |
| 1765 | void PhysicalInventoryRequest::clear_device_uuid() { |
| 1766 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1767 | delete device_uuid_; |
| 1768 | } |
| 1769 | device_uuid_ = nullptr; |
| 1770 | } |
| 1771 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1772 | const int PhysicalInventoryRequest::kDeviceUuidFieldNumber; |
| 1773 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1774 | |
| 1775 | PhysicalInventoryRequest::PhysicalInventoryRequest() |
| 1776 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1777 | SharedCtor(); |
| 1778 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest) |
| 1779 | } |
| 1780 | PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from) |
| 1781 | : ::google::protobuf::Message(), |
| 1782 | _internal_metadata_(nullptr) { |
| 1783 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1784 | if (from.has_device_uuid()) { |
| 1785 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1786 | } else { |
| 1787 | device_uuid_ = nullptr; |
| 1788 | } |
| 1789 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest) |
| 1790 | } |
| 1791 | |
| 1792 | void PhysicalInventoryRequest::SharedCtor() { |
| 1793 | ::google::protobuf::internal::InitSCC( |
| 1794 | &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1795 | device_uuid_ = nullptr; |
| 1796 | } |
| 1797 | |
| 1798 | PhysicalInventoryRequest::~PhysicalInventoryRequest() { |
| 1799 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest) |
| 1800 | SharedDtor(); |
| 1801 | } |
| 1802 | |
| 1803 | void PhysicalInventoryRequest::SharedDtor() { |
| 1804 | if (this != internal_default_instance()) delete device_uuid_; |
| 1805 | } |
| 1806 | |
| 1807 | void PhysicalInventoryRequest::SetCachedSize(int size) const { |
| 1808 | _cached_size_.Set(size); |
| 1809 | } |
| 1810 | const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() { |
| 1811 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1812 | return *internal_default_instance(); |
| 1813 | } |
| 1814 | |
| 1815 | |
| 1816 | void PhysicalInventoryRequest::Clear() { |
| 1817 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest) |
| 1818 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1819 | // Prevent compiler warnings about cached_has_bits being unused |
| 1820 | (void) cached_has_bits; |
| 1821 | |
| 1822 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1823 | delete device_uuid_; |
| 1824 | } |
| 1825 | device_uuid_ = nullptr; |
| 1826 | _internal_metadata_.Clear(); |
| 1827 | } |
| 1828 | |
| 1829 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1830 | const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1831 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1832 | auto msg = static_cast<PhysicalInventoryRequest*>(object); |
| 1833 | ::google::protobuf::int32 size; (void)size; |
| 1834 | int depth; (void)depth; |
| 1835 | ::google::protobuf::uint32 tag; |
| 1836 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1837 | auto ptr = begin; |
| 1838 | while (ptr < end) { |
| 1839 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1840 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1841 | switch (tag >> 3) { |
| 1842 | // .dmi.Uuid device_uuid = 1; |
| 1843 | case 1: { |
| 1844 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1845 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1846 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1847 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1848 | object = msg->mutable_device_uuid(); |
| 1849 | if (size > end - ptr) goto len_delim_till_end; |
| 1850 | ptr += size; |
| 1851 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1852 | {parser_till_end, object}, ptr - size, ptr)); |
| 1853 | break; |
| 1854 | } |
| 1855 | default: { |
| 1856 | handle_unusual: |
| 1857 | if ((tag & 7) == 4 || tag == 0) { |
| 1858 | ctx->EndGroup(tag); |
| 1859 | return ptr; |
| 1860 | } |
| 1861 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1862 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1863 | ptr = res.first; |
| 1864 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1865 | if (res.second) return ptr; |
| 1866 | } |
| 1867 | } // switch |
| 1868 | } // while |
| 1869 | return ptr; |
| 1870 | len_delim_till_end: |
| 1871 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1872 | {parser_till_end, object}, size); |
| 1873 | } |
| 1874 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1875 | bool PhysicalInventoryRequest::MergePartialFromCodedStream( |
| 1876 | ::google::protobuf::io::CodedInputStream* input) { |
| 1877 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1878 | ::google::protobuf::uint32 tag; |
| 1879 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest) |
| 1880 | for (;;) { |
| 1881 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1882 | tag = p.first; |
| 1883 | if (!p.second) goto handle_unusual; |
| 1884 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1885 | // .dmi.Uuid device_uuid = 1; |
| 1886 | case 1: { |
| 1887 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1888 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1889 | input, mutable_device_uuid())); |
| 1890 | } else { |
| 1891 | goto handle_unusual; |
| 1892 | } |
| 1893 | break; |
| 1894 | } |
| 1895 | |
| 1896 | default: { |
| 1897 | handle_unusual: |
| 1898 | if (tag == 0) { |
| 1899 | goto success; |
| 1900 | } |
| 1901 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1902 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1903 | break; |
| 1904 | } |
| 1905 | } |
| 1906 | } |
| 1907 | success: |
| 1908 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest) |
| 1909 | return true; |
| 1910 | failure: |
| 1911 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest) |
| 1912 | return false; |
| 1913 | #undef DO_ |
| 1914 | } |
| 1915 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1916 | |
| 1917 | void PhysicalInventoryRequest::SerializeWithCachedSizes( |
| 1918 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1919 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest) |
| 1920 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1921 | (void) cached_has_bits; |
| 1922 | |
| 1923 | // .dmi.Uuid device_uuid = 1; |
| 1924 | if (this->has_device_uuid()) { |
| 1925 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1926 | 1, HasBitSetters::device_uuid(this), output); |
| 1927 | } |
| 1928 | |
| 1929 | if (_internal_metadata_.have_unknown_fields()) { |
| 1930 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1931 | _internal_metadata_.unknown_fields(), output); |
| 1932 | } |
| 1933 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest) |
| 1934 | } |
| 1935 | |
| 1936 | ::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray( |
| 1937 | ::google::protobuf::uint8* target) const { |
| 1938 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest) |
| 1939 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1940 | (void) cached_has_bits; |
| 1941 | |
| 1942 | // .dmi.Uuid device_uuid = 1; |
| 1943 | if (this->has_device_uuid()) { |
| 1944 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1945 | InternalWriteMessageToArray( |
| 1946 | 1, HasBitSetters::device_uuid(this), target); |
| 1947 | } |
| 1948 | |
| 1949 | if (_internal_metadata_.have_unknown_fields()) { |
| 1950 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1951 | _internal_metadata_.unknown_fields(), target); |
| 1952 | } |
| 1953 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest) |
| 1954 | return target; |
| 1955 | } |
| 1956 | |
| 1957 | size_t PhysicalInventoryRequest::ByteSizeLong() const { |
| 1958 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest) |
| 1959 | size_t total_size = 0; |
| 1960 | |
| 1961 | if (_internal_metadata_.have_unknown_fields()) { |
| 1962 | total_size += |
| 1963 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1964 | _internal_metadata_.unknown_fields()); |
| 1965 | } |
| 1966 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1967 | // Prevent compiler warnings about cached_has_bits being unused |
| 1968 | (void) cached_has_bits; |
| 1969 | |
| 1970 | // .dmi.Uuid device_uuid = 1; |
| 1971 | if (this->has_device_uuid()) { |
| 1972 | total_size += 1 + |
| 1973 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1974 | *device_uuid_); |
| 1975 | } |
| 1976 | |
| 1977 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1978 | SetCachedSize(cached_size); |
| 1979 | return total_size; |
| 1980 | } |
| 1981 | |
| 1982 | void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1983 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1984 | GOOGLE_DCHECK_NE(&from, this); |
| 1985 | const PhysicalInventoryRequest* source = |
| 1986 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>( |
| 1987 | &from); |
| 1988 | if (source == nullptr) { |
| 1989 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest) |
| 1990 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1991 | } else { |
| 1992 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest) |
| 1993 | MergeFrom(*source); |
| 1994 | } |
| 1995 | } |
| 1996 | |
| 1997 | void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) { |
| 1998 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1999 | GOOGLE_DCHECK_NE(&from, this); |
| 2000 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2001 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2002 | (void) cached_has_bits; |
| 2003 | |
| 2004 | if (from.has_device_uuid()) { |
| 2005 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2006 | } |
| 2007 | } |
| 2008 | |
| 2009 | void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2010 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest) |
| 2011 | if (&from == this) return; |
| 2012 | Clear(); |
| 2013 | MergeFrom(from); |
| 2014 | } |
| 2015 | |
| 2016 | void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) { |
| 2017 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest) |
| 2018 | if (&from == this) return; |
| 2019 | Clear(); |
| 2020 | MergeFrom(from); |
| 2021 | } |
| 2022 | |
| 2023 | bool PhysicalInventoryRequest::IsInitialized() const { |
| 2024 | return true; |
| 2025 | } |
| 2026 | |
| 2027 | void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) { |
| 2028 | if (other == this) return; |
| 2029 | InternalSwap(other); |
| 2030 | } |
| 2031 | void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) { |
| 2032 | using std::swap; |
| 2033 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2034 | swap(device_uuid_, other->device_uuid_); |
| 2035 | } |
| 2036 | |
| 2037 | ::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const { |
| 2038 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2039 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2040 | } |
| 2041 | |
| 2042 | |
| 2043 | // =================================================================== |
| 2044 | |
| 2045 | void PhysicalInventoryResponse::InitAsDefaultInstance() { |
| 2046 | ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>( |
| 2047 | ::dmi::Hardware::internal_default_instance()); |
| 2048 | } |
| 2049 | class PhysicalInventoryResponse::HasBitSetters { |
| 2050 | public: |
| 2051 | static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg); |
| 2052 | }; |
| 2053 | |
| 2054 | const ::dmi::Hardware& |
| 2055 | PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) { |
| 2056 | return *msg->inventory_; |
| 2057 | } |
| 2058 | void PhysicalInventoryResponse::clear_inventory() { |
| 2059 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 2060 | delete inventory_; |
| 2061 | } |
| 2062 | inventory_ = nullptr; |
| 2063 | } |
| 2064 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2065 | const int PhysicalInventoryResponse::kStatusFieldNumber; |
| 2066 | const int PhysicalInventoryResponse::kReasonFieldNumber; |
| 2067 | const int PhysicalInventoryResponse::kInventoryFieldNumber; |
| 2068 | const int PhysicalInventoryResponse::kReasonDetailFieldNumber; |
| 2069 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2070 | |
| 2071 | PhysicalInventoryResponse::PhysicalInventoryResponse() |
| 2072 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2073 | SharedCtor(); |
| 2074 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse) |
| 2075 | } |
| 2076 | PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from) |
| 2077 | : ::google::protobuf::Message(), |
| 2078 | _internal_metadata_(nullptr) { |
| 2079 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2080 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2081 | if (from.reason_detail().size() > 0) { |
| 2082 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2083 | } |
| 2084 | if (from.has_inventory()) { |
| 2085 | inventory_ = new ::dmi::Hardware(*from.inventory_); |
| 2086 | } else { |
| 2087 | inventory_ = nullptr; |
| 2088 | } |
| 2089 | ::memcpy(&status_, &from.status_, |
| 2090 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2091 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2092 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse) |
| 2093 | } |
| 2094 | |
| 2095 | void PhysicalInventoryResponse::SharedCtor() { |
| 2096 | ::google::protobuf::internal::InitSCC( |
| 2097 | &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2098 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2099 | ::memset(&inventory_, 0, static_cast<size_t>( |
| 2100 | reinterpret_cast<char*>(&reason_) - |
| 2101 | reinterpret_cast<char*>(&inventory_)) + sizeof(reason_)); |
| 2102 | } |
| 2103 | |
| 2104 | PhysicalInventoryResponse::~PhysicalInventoryResponse() { |
| 2105 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse) |
| 2106 | SharedDtor(); |
| 2107 | } |
| 2108 | |
| 2109 | void PhysicalInventoryResponse::SharedDtor() { |
| 2110 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2111 | if (this != internal_default_instance()) delete inventory_; |
| 2112 | } |
| 2113 | |
| 2114 | void PhysicalInventoryResponse::SetCachedSize(int size) const { |
| 2115 | _cached_size_.Set(size); |
| 2116 | } |
| 2117 | const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() { |
| 2118 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2119 | return *internal_default_instance(); |
| 2120 | } |
| 2121 | |
| 2122 | |
| 2123 | void PhysicalInventoryResponse::Clear() { |
| 2124 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse) |
| 2125 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2126 | // Prevent compiler warnings about cached_has_bits being unused |
| 2127 | (void) cached_has_bits; |
| 2128 | |
| 2129 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2130 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 2131 | delete inventory_; |
| 2132 | } |
| 2133 | inventory_ = nullptr; |
| 2134 | ::memset(&status_, 0, static_cast<size_t>( |
| 2135 | reinterpret_cast<char*>(&reason_) - |
| 2136 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2137 | _internal_metadata_.Clear(); |
| 2138 | } |
| 2139 | |
| 2140 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2141 | const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2142 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2143 | auto msg = static_cast<PhysicalInventoryResponse*>(object); |
| 2144 | ::google::protobuf::int32 size; (void)size; |
| 2145 | int depth; (void)depth; |
| 2146 | ::google::protobuf::uint32 tag; |
| 2147 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2148 | auto ptr = begin; |
| 2149 | while (ptr < end) { |
| 2150 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2151 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2152 | switch (tag >> 3) { |
| 2153 | // .dmi.Status status = 1; |
| 2154 | case 1: { |
| 2155 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2156 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2157 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2158 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2159 | break; |
| 2160 | } |
| 2161 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 2162 | case 2: { |
| 2163 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2164 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2165 | msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val)); |
| 2166 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2167 | break; |
| 2168 | } |
| 2169 | // .dmi.Hardware inventory = 3; |
| 2170 | case 3: { |
| 2171 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2172 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2173 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2174 | parser_till_end = ::dmi::Hardware::_InternalParse; |
| 2175 | object = msg->mutable_inventory(); |
| 2176 | if (size > end - ptr) goto len_delim_till_end; |
| 2177 | ptr += size; |
| 2178 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2179 | {parser_till_end, object}, ptr - size, ptr)); |
| 2180 | break; |
| 2181 | } |
| 2182 | // string reason_detail = 4; |
| 2183 | case 4: { |
| 2184 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2185 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2186 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2187 | ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail"); |
| 2188 | object = msg->mutable_reason_detail(); |
| 2189 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2190 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2191 | goto string_till_end; |
| 2192 | } |
| 2193 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2194 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2195 | ptr += size; |
| 2196 | break; |
| 2197 | } |
| 2198 | default: { |
| 2199 | handle_unusual: |
| 2200 | if ((tag & 7) == 4 || tag == 0) { |
| 2201 | ctx->EndGroup(tag); |
| 2202 | return ptr; |
| 2203 | } |
| 2204 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2205 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2206 | ptr = res.first; |
| 2207 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2208 | if (res.second) return ptr; |
| 2209 | } |
| 2210 | } // switch |
| 2211 | } // while |
| 2212 | return ptr; |
| 2213 | string_till_end: |
| 2214 | static_cast<::std::string*>(object)->clear(); |
| 2215 | static_cast<::std::string*>(object)->reserve(size); |
| 2216 | goto len_delim_till_end; |
| 2217 | len_delim_till_end: |
| 2218 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2219 | {parser_till_end, object}, size); |
| 2220 | } |
| 2221 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2222 | bool PhysicalInventoryResponse::MergePartialFromCodedStream( |
| 2223 | ::google::protobuf::io::CodedInputStream* input) { |
| 2224 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2225 | ::google::protobuf::uint32 tag; |
| 2226 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse) |
| 2227 | for (;;) { |
| 2228 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2229 | tag = p.first; |
| 2230 | if (!p.second) goto handle_unusual; |
| 2231 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2232 | // .dmi.Status status = 1; |
| 2233 | case 1: { |
| 2234 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2235 | int value = 0; |
| 2236 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2237 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2238 | input, &value))); |
| 2239 | set_status(static_cast< ::dmi::Status >(value)); |
| 2240 | } else { |
| 2241 | goto handle_unusual; |
| 2242 | } |
| 2243 | break; |
| 2244 | } |
| 2245 | |
| 2246 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 2247 | case 2: { |
| 2248 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2249 | int value = 0; |
| 2250 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2251 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2252 | input, &value))); |
| 2253 | set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value)); |
| 2254 | } else { |
| 2255 | goto handle_unusual; |
| 2256 | } |
| 2257 | break; |
| 2258 | } |
| 2259 | |
| 2260 | // .dmi.Hardware inventory = 3; |
| 2261 | case 3: { |
| 2262 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2263 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2264 | input, mutable_inventory())); |
| 2265 | } else { |
| 2266 | goto handle_unusual; |
| 2267 | } |
| 2268 | break; |
| 2269 | } |
| 2270 | |
| 2271 | // string reason_detail = 4; |
| 2272 | case 4: { |
| 2273 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2274 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2275 | input, this->mutable_reason_detail())); |
| 2276 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2277 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2278 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2279 | "dmi.PhysicalInventoryResponse.reason_detail")); |
| 2280 | } else { |
| 2281 | goto handle_unusual; |
| 2282 | } |
| 2283 | break; |
| 2284 | } |
| 2285 | |
| 2286 | default: { |
| 2287 | handle_unusual: |
| 2288 | if (tag == 0) { |
| 2289 | goto success; |
| 2290 | } |
| 2291 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2292 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2293 | break; |
| 2294 | } |
| 2295 | } |
| 2296 | } |
| 2297 | success: |
| 2298 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse) |
| 2299 | return true; |
| 2300 | failure: |
| 2301 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse) |
| 2302 | return false; |
| 2303 | #undef DO_ |
| 2304 | } |
| 2305 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2306 | |
| 2307 | void PhysicalInventoryResponse::SerializeWithCachedSizes( |
| 2308 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2309 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse) |
| 2310 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2311 | (void) cached_has_bits; |
| 2312 | |
| 2313 | // .dmi.Status status = 1; |
| 2314 | if (this->status() != 0) { |
| 2315 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2316 | 1, this->status(), output); |
| 2317 | } |
| 2318 | |
| 2319 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 2320 | if (this->reason() != 0) { |
| 2321 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2322 | 2, this->reason(), output); |
| 2323 | } |
| 2324 | |
| 2325 | // .dmi.Hardware inventory = 3; |
| 2326 | if (this->has_inventory()) { |
| 2327 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2328 | 3, HasBitSetters::inventory(this), output); |
| 2329 | } |
| 2330 | |
| 2331 | // string reason_detail = 4; |
| 2332 | if (this->reason_detail().size() > 0) { |
| 2333 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2334 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2335 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2336 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 2337 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2338 | 4, this->reason_detail(), output); |
| 2339 | } |
| 2340 | |
| 2341 | if (_internal_metadata_.have_unknown_fields()) { |
| 2342 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2343 | _internal_metadata_.unknown_fields(), output); |
| 2344 | } |
| 2345 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse) |
| 2346 | } |
| 2347 | |
| 2348 | ::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray( |
| 2349 | ::google::protobuf::uint8* target) const { |
| 2350 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse) |
| 2351 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2352 | (void) cached_has_bits; |
| 2353 | |
| 2354 | // .dmi.Status status = 1; |
| 2355 | if (this->status() != 0) { |
| 2356 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2357 | 1, this->status(), target); |
| 2358 | } |
| 2359 | |
| 2360 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 2361 | if (this->reason() != 0) { |
| 2362 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2363 | 2, this->reason(), target); |
| 2364 | } |
| 2365 | |
| 2366 | // .dmi.Hardware inventory = 3; |
| 2367 | if (this->has_inventory()) { |
| 2368 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2369 | InternalWriteMessageToArray( |
| 2370 | 3, HasBitSetters::inventory(this), target); |
| 2371 | } |
| 2372 | |
| 2373 | // string reason_detail = 4; |
| 2374 | if (this->reason_detail().size() > 0) { |
| 2375 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2376 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2377 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2378 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 2379 | target = |
| 2380 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2381 | 4, this->reason_detail(), target); |
| 2382 | } |
| 2383 | |
| 2384 | if (_internal_metadata_.have_unknown_fields()) { |
| 2385 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2386 | _internal_metadata_.unknown_fields(), target); |
| 2387 | } |
| 2388 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse) |
| 2389 | return target; |
| 2390 | } |
| 2391 | |
| 2392 | size_t PhysicalInventoryResponse::ByteSizeLong() const { |
| 2393 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse) |
| 2394 | size_t total_size = 0; |
| 2395 | |
| 2396 | if (_internal_metadata_.have_unknown_fields()) { |
| 2397 | total_size += |
| 2398 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2399 | _internal_metadata_.unknown_fields()); |
| 2400 | } |
| 2401 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2402 | // Prevent compiler warnings about cached_has_bits being unused |
| 2403 | (void) cached_has_bits; |
| 2404 | |
| 2405 | // string reason_detail = 4; |
| 2406 | if (this->reason_detail().size() > 0) { |
| 2407 | total_size += 1 + |
| 2408 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2409 | this->reason_detail()); |
| 2410 | } |
| 2411 | |
| 2412 | // .dmi.Hardware inventory = 3; |
| 2413 | if (this->has_inventory()) { |
| 2414 | total_size += 1 + |
| 2415 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2416 | *inventory_); |
| 2417 | } |
| 2418 | |
| 2419 | // .dmi.Status status = 1; |
| 2420 | if (this->status() != 0) { |
| 2421 | total_size += 1 + |
| 2422 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2423 | } |
| 2424 | |
| 2425 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 2426 | if (this->reason() != 0) { |
| 2427 | total_size += 1 + |
| 2428 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2429 | } |
| 2430 | |
| 2431 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2432 | SetCachedSize(cached_size); |
| 2433 | return total_size; |
| 2434 | } |
| 2435 | |
| 2436 | void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2437 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse) |
| 2438 | GOOGLE_DCHECK_NE(&from, this); |
| 2439 | const PhysicalInventoryResponse* source = |
| 2440 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>( |
| 2441 | &from); |
| 2442 | if (source == nullptr) { |
| 2443 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse) |
| 2444 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2445 | } else { |
| 2446 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse) |
| 2447 | MergeFrom(*source); |
| 2448 | } |
| 2449 | } |
| 2450 | |
| 2451 | void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) { |
| 2452 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse) |
| 2453 | GOOGLE_DCHECK_NE(&from, this); |
| 2454 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2455 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2456 | (void) cached_has_bits; |
| 2457 | |
| 2458 | if (from.reason_detail().size() > 0) { |
| 2459 | |
| 2460 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2461 | } |
| 2462 | if (from.has_inventory()) { |
| 2463 | mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory()); |
| 2464 | } |
| 2465 | if (from.status() != 0) { |
| 2466 | set_status(from.status()); |
| 2467 | } |
| 2468 | if (from.reason() != 0) { |
| 2469 | set_reason(from.reason()); |
| 2470 | } |
| 2471 | } |
| 2472 | |
| 2473 | void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2474 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse) |
| 2475 | if (&from == this) return; |
| 2476 | Clear(); |
| 2477 | MergeFrom(from); |
| 2478 | } |
| 2479 | |
| 2480 | void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) { |
| 2481 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse) |
| 2482 | if (&from == this) return; |
| 2483 | Clear(); |
| 2484 | MergeFrom(from); |
| 2485 | } |
| 2486 | |
| 2487 | bool PhysicalInventoryResponse::IsInitialized() const { |
| 2488 | return true; |
| 2489 | } |
| 2490 | |
| 2491 | void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) { |
| 2492 | if (other == this) return; |
| 2493 | InternalSwap(other); |
| 2494 | } |
| 2495 | void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) { |
| 2496 | using std::swap; |
| 2497 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2498 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2499 | GetArenaNoVirtual()); |
| 2500 | swap(inventory_, other->inventory_); |
| 2501 | swap(status_, other->status_); |
| 2502 | swap(reason_, other->reason_); |
| 2503 | } |
| 2504 | |
| 2505 | ::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const { |
| 2506 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2507 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2508 | } |
| 2509 | |
| 2510 | |
| 2511 | // =================================================================== |
| 2512 | |
| 2513 | void HWComponentInfoGetRequest::InitAsDefaultInstance() { |
| 2514 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2515 | ::dmi::Uuid::internal_default_instance()); |
| 2516 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2517 | ::dmi::Uuid::internal_default_instance()); |
| 2518 | } |
| 2519 | class HWComponentInfoGetRequest::HasBitSetters { |
| 2520 | public: |
| 2521 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg); |
| 2522 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg); |
| 2523 | }; |
| 2524 | |
| 2525 | const ::dmi::Uuid& |
| 2526 | HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) { |
| 2527 | return *msg->device_uuid_; |
| 2528 | } |
| 2529 | const ::dmi::Uuid& |
| 2530 | HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) { |
| 2531 | return *msg->component_uuid_; |
| 2532 | } |
| 2533 | void HWComponentInfoGetRequest::clear_device_uuid() { |
| 2534 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2535 | delete device_uuid_; |
| 2536 | } |
| 2537 | device_uuid_ = nullptr; |
| 2538 | } |
| 2539 | void HWComponentInfoGetRequest::clear_component_uuid() { |
| 2540 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2541 | delete component_uuid_; |
| 2542 | } |
| 2543 | component_uuid_ = nullptr; |
| 2544 | } |
| 2545 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2546 | const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber; |
| 2547 | const int HWComponentInfoGetRequest::kComponentUuidFieldNumber; |
| 2548 | const int HWComponentInfoGetRequest::kComponentNameFieldNumber; |
| 2549 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2550 | |
| 2551 | HWComponentInfoGetRequest::HWComponentInfoGetRequest() |
| 2552 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2553 | SharedCtor(); |
| 2554 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest) |
| 2555 | } |
| 2556 | HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from) |
| 2557 | : ::google::protobuf::Message(), |
| 2558 | _internal_metadata_(nullptr) { |
| 2559 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2560 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2561 | if (from.component_name().size() > 0) { |
| 2562 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2563 | } |
| 2564 | if (from.has_device_uuid()) { |
| 2565 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2566 | } else { |
| 2567 | device_uuid_ = nullptr; |
| 2568 | } |
| 2569 | if (from.has_component_uuid()) { |
| 2570 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 2571 | } else { |
| 2572 | component_uuid_ = nullptr; |
| 2573 | } |
| 2574 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest) |
| 2575 | } |
| 2576 | |
| 2577 | void HWComponentInfoGetRequest::SharedCtor() { |
| 2578 | ::google::protobuf::internal::InitSCC( |
| 2579 | &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2580 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2581 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 2582 | reinterpret_cast<char*>(&component_uuid_) - |
| 2583 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 2584 | } |
| 2585 | |
| 2586 | HWComponentInfoGetRequest::~HWComponentInfoGetRequest() { |
| 2587 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest) |
| 2588 | SharedDtor(); |
| 2589 | } |
| 2590 | |
| 2591 | void HWComponentInfoGetRequest::SharedDtor() { |
| 2592 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2593 | if (this != internal_default_instance()) delete device_uuid_; |
| 2594 | if (this != internal_default_instance()) delete component_uuid_; |
| 2595 | } |
| 2596 | |
| 2597 | void HWComponentInfoGetRequest::SetCachedSize(int size) const { |
| 2598 | _cached_size_.Set(size); |
| 2599 | } |
| 2600 | const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() { |
| 2601 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2602 | return *internal_default_instance(); |
| 2603 | } |
| 2604 | |
| 2605 | |
| 2606 | void HWComponentInfoGetRequest::Clear() { |
| 2607 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest) |
| 2608 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2609 | // Prevent compiler warnings about cached_has_bits being unused |
| 2610 | (void) cached_has_bits; |
| 2611 | |
| 2612 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2613 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2614 | delete device_uuid_; |
| 2615 | } |
| 2616 | device_uuid_ = nullptr; |
| 2617 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2618 | delete component_uuid_; |
| 2619 | } |
| 2620 | component_uuid_ = nullptr; |
| 2621 | _internal_metadata_.Clear(); |
| 2622 | } |
| 2623 | |
| 2624 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2625 | const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2626 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2627 | auto msg = static_cast<HWComponentInfoGetRequest*>(object); |
| 2628 | ::google::protobuf::int32 size; (void)size; |
| 2629 | int depth; (void)depth; |
| 2630 | ::google::protobuf::uint32 tag; |
| 2631 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2632 | auto ptr = begin; |
| 2633 | while (ptr < end) { |
| 2634 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2635 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2636 | switch (tag >> 3) { |
| 2637 | // .dmi.Uuid device_uuid = 1; |
| 2638 | case 1: { |
| 2639 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2640 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2641 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2642 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2643 | object = msg->mutable_device_uuid(); |
| 2644 | if (size > end - ptr) goto len_delim_till_end; |
| 2645 | ptr += size; |
| 2646 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2647 | {parser_till_end, object}, ptr - size, ptr)); |
| 2648 | break; |
| 2649 | } |
| 2650 | // .dmi.Uuid component_uuid = 2; |
| 2651 | case 2: { |
| 2652 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 2653 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2654 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2655 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2656 | object = msg->mutable_component_uuid(); |
| 2657 | if (size > end - ptr) goto len_delim_till_end; |
| 2658 | ptr += size; |
| 2659 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2660 | {parser_till_end, object}, ptr - size, ptr)); |
| 2661 | break; |
| 2662 | } |
| 2663 | // string component_name = 3; |
| 2664 | case 3: { |
| 2665 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2666 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2667 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2668 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name"); |
| 2669 | object = msg->mutable_component_name(); |
| 2670 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2671 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2672 | goto string_till_end; |
| 2673 | } |
| 2674 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2675 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2676 | ptr += size; |
| 2677 | break; |
| 2678 | } |
| 2679 | default: { |
| 2680 | handle_unusual: |
| 2681 | if ((tag & 7) == 4 || tag == 0) { |
| 2682 | ctx->EndGroup(tag); |
| 2683 | return ptr; |
| 2684 | } |
| 2685 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2686 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2687 | ptr = res.first; |
| 2688 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2689 | if (res.second) return ptr; |
| 2690 | } |
| 2691 | } // switch |
| 2692 | } // while |
| 2693 | return ptr; |
| 2694 | string_till_end: |
| 2695 | static_cast<::std::string*>(object)->clear(); |
| 2696 | static_cast<::std::string*>(object)->reserve(size); |
| 2697 | goto len_delim_till_end; |
| 2698 | len_delim_till_end: |
| 2699 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2700 | {parser_till_end, object}, size); |
| 2701 | } |
| 2702 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2703 | bool HWComponentInfoGetRequest::MergePartialFromCodedStream( |
| 2704 | ::google::protobuf::io::CodedInputStream* input) { |
| 2705 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2706 | ::google::protobuf::uint32 tag; |
| 2707 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest) |
| 2708 | for (;;) { |
| 2709 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2710 | tag = p.first; |
| 2711 | if (!p.second) goto handle_unusual; |
| 2712 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2713 | // .dmi.Uuid device_uuid = 1; |
| 2714 | case 1: { |
| 2715 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2716 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2717 | input, mutable_device_uuid())); |
| 2718 | } else { |
| 2719 | goto handle_unusual; |
| 2720 | } |
| 2721 | break; |
| 2722 | } |
| 2723 | |
| 2724 | // .dmi.Uuid component_uuid = 2; |
| 2725 | case 2: { |
| 2726 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 2727 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2728 | input, mutable_component_uuid())); |
| 2729 | } else { |
| 2730 | goto handle_unusual; |
| 2731 | } |
| 2732 | break; |
| 2733 | } |
| 2734 | |
| 2735 | // string component_name = 3; |
| 2736 | case 3: { |
| 2737 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2738 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2739 | input, this->mutable_component_name())); |
| 2740 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2741 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2742 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2743 | "dmi.HWComponentInfoGetRequest.component_name")); |
| 2744 | } else { |
| 2745 | goto handle_unusual; |
| 2746 | } |
| 2747 | break; |
| 2748 | } |
| 2749 | |
| 2750 | default: { |
| 2751 | handle_unusual: |
| 2752 | if (tag == 0) { |
| 2753 | goto success; |
| 2754 | } |
| 2755 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2756 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2757 | break; |
| 2758 | } |
| 2759 | } |
| 2760 | } |
| 2761 | success: |
| 2762 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest) |
| 2763 | return true; |
| 2764 | failure: |
| 2765 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest) |
| 2766 | return false; |
| 2767 | #undef DO_ |
| 2768 | } |
| 2769 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2770 | |
| 2771 | void HWComponentInfoGetRequest::SerializeWithCachedSizes( |
| 2772 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2773 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest) |
| 2774 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2775 | (void) cached_has_bits; |
| 2776 | |
| 2777 | // .dmi.Uuid device_uuid = 1; |
| 2778 | if (this->has_device_uuid()) { |
| 2779 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2780 | 1, HasBitSetters::device_uuid(this), output); |
| 2781 | } |
| 2782 | |
| 2783 | // .dmi.Uuid component_uuid = 2; |
| 2784 | if (this->has_component_uuid()) { |
| 2785 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2786 | 2, HasBitSetters::component_uuid(this), output); |
| 2787 | } |
| 2788 | |
| 2789 | // string component_name = 3; |
| 2790 | if (this->component_name().size() > 0) { |
| 2791 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2792 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2793 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2794 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2795 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2796 | 3, this->component_name(), output); |
| 2797 | } |
| 2798 | |
| 2799 | if (_internal_metadata_.have_unknown_fields()) { |
| 2800 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2801 | _internal_metadata_.unknown_fields(), output); |
| 2802 | } |
| 2803 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest) |
| 2804 | } |
| 2805 | |
| 2806 | ::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray( |
| 2807 | ::google::protobuf::uint8* target) const { |
| 2808 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest) |
| 2809 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2810 | (void) cached_has_bits; |
| 2811 | |
| 2812 | // .dmi.Uuid device_uuid = 1; |
| 2813 | if (this->has_device_uuid()) { |
| 2814 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2815 | InternalWriteMessageToArray( |
| 2816 | 1, HasBitSetters::device_uuid(this), target); |
| 2817 | } |
| 2818 | |
| 2819 | // .dmi.Uuid component_uuid = 2; |
| 2820 | if (this->has_component_uuid()) { |
| 2821 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2822 | InternalWriteMessageToArray( |
| 2823 | 2, HasBitSetters::component_uuid(this), target); |
| 2824 | } |
| 2825 | |
| 2826 | // string component_name = 3; |
| 2827 | if (this->component_name().size() > 0) { |
| 2828 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2829 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2830 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2831 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2832 | target = |
| 2833 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2834 | 3, this->component_name(), target); |
| 2835 | } |
| 2836 | |
| 2837 | if (_internal_metadata_.have_unknown_fields()) { |
| 2838 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2839 | _internal_metadata_.unknown_fields(), target); |
| 2840 | } |
| 2841 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest) |
| 2842 | return target; |
| 2843 | } |
| 2844 | |
| 2845 | size_t HWComponentInfoGetRequest::ByteSizeLong() const { |
| 2846 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest) |
| 2847 | size_t total_size = 0; |
| 2848 | |
| 2849 | if (_internal_metadata_.have_unknown_fields()) { |
| 2850 | total_size += |
| 2851 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2852 | _internal_metadata_.unknown_fields()); |
| 2853 | } |
| 2854 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2855 | // Prevent compiler warnings about cached_has_bits being unused |
| 2856 | (void) cached_has_bits; |
| 2857 | |
| 2858 | // string component_name = 3; |
| 2859 | if (this->component_name().size() > 0) { |
| 2860 | total_size += 1 + |
| 2861 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2862 | this->component_name()); |
| 2863 | } |
| 2864 | |
| 2865 | // .dmi.Uuid device_uuid = 1; |
| 2866 | if (this->has_device_uuid()) { |
| 2867 | total_size += 1 + |
| 2868 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2869 | *device_uuid_); |
| 2870 | } |
| 2871 | |
| 2872 | // .dmi.Uuid component_uuid = 2; |
| 2873 | if (this->has_component_uuid()) { |
| 2874 | total_size += 1 + |
| 2875 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2876 | *component_uuid_); |
| 2877 | } |
| 2878 | |
| 2879 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2880 | SetCachedSize(cached_size); |
| 2881 | return total_size; |
| 2882 | } |
| 2883 | |
| 2884 | void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2885 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2886 | GOOGLE_DCHECK_NE(&from, this); |
| 2887 | const HWComponentInfoGetRequest* source = |
| 2888 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>( |
| 2889 | &from); |
| 2890 | if (source == nullptr) { |
| 2891 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest) |
| 2892 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2893 | } else { |
| 2894 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest) |
| 2895 | MergeFrom(*source); |
| 2896 | } |
| 2897 | } |
| 2898 | |
| 2899 | void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) { |
| 2900 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2901 | GOOGLE_DCHECK_NE(&from, this); |
| 2902 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2903 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2904 | (void) cached_has_bits; |
| 2905 | |
| 2906 | if (from.component_name().size() > 0) { |
| 2907 | |
| 2908 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2909 | } |
| 2910 | if (from.has_device_uuid()) { |
| 2911 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2912 | } |
| 2913 | if (from.has_component_uuid()) { |
| 2914 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 2915 | } |
| 2916 | } |
| 2917 | |
| 2918 | void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2919 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2920 | if (&from == this) return; |
| 2921 | Clear(); |
| 2922 | MergeFrom(from); |
| 2923 | } |
| 2924 | |
| 2925 | void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) { |
| 2926 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2927 | if (&from == this) return; |
| 2928 | Clear(); |
| 2929 | MergeFrom(from); |
| 2930 | } |
| 2931 | |
| 2932 | bool HWComponentInfoGetRequest::IsInitialized() const { |
| 2933 | return true; |
| 2934 | } |
| 2935 | |
| 2936 | void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) { |
| 2937 | if (other == this) return; |
| 2938 | InternalSwap(other); |
| 2939 | } |
| 2940 | void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) { |
| 2941 | using std::swap; |
| 2942 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2943 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2944 | GetArenaNoVirtual()); |
| 2945 | swap(device_uuid_, other->device_uuid_); |
| 2946 | swap(component_uuid_, other->component_uuid_); |
| 2947 | } |
| 2948 | |
| 2949 | ::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const { |
| 2950 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2951 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2952 | } |
| 2953 | |
| 2954 | |
| 2955 | // =================================================================== |
| 2956 | |
| 2957 | void HWComponentInfoGetResponse::InitAsDefaultInstance() { |
| 2958 | ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>( |
| 2959 | ::dmi::Component::internal_default_instance()); |
| 2960 | } |
| 2961 | class HWComponentInfoGetResponse::HasBitSetters { |
| 2962 | public: |
| 2963 | static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg); |
| 2964 | }; |
| 2965 | |
| 2966 | const ::dmi::Component& |
| 2967 | HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) { |
| 2968 | return *msg->component_; |
| 2969 | } |
| 2970 | void HWComponentInfoGetResponse::clear_component() { |
| 2971 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2972 | delete component_; |
| 2973 | } |
| 2974 | component_ = nullptr; |
| 2975 | } |
| 2976 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2977 | const int HWComponentInfoGetResponse::kStatusFieldNumber; |
| 2978 | const int HWComponentInfoGetResponse::kReasonFieldNumber; |
| 2979 | const int HWComponentInfoGetResponse::kComponentFieldNumber; |
| 2980 | const int HWComponentInfoGetResponse::kReasonDetailFieldNumber; |
| 2981 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2982 | |
| 2983 | HWComponentInfoGetResponse::HWComponentInfoGetResponse() |
| 2984 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2985 | SharedCtor(); |
| 2986 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse) |
| 2987 | } |
| 2988 | HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from) |
| 2989 | : ::google::protobuf::Message(), |
| 2990 | _internal_metadata_(nullptr) { |
| 2991 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2992 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2993 | if (from.reason_detail().size() > 0) { |
| 2994 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2995 | } |
| 2996 | if (from.has_component()) { |
| 2997 | component_ = new ::dmi::Component(*from.component_); |
| 2998 | } else { |
| 2999 | component_ = nullptr; |
| 3000 | } |
| 3001 | ::memcpy(&status_, &from.status_, |
| 3002 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3003 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3004 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse) |
| 3005 | } |
| 3006 | |
| 3007 | void HWComponentInfoGetResponse::SharedCtor() { |
| 3008 | ::google::protobuf::internal::InitSCC( |
| 3009 | &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3010 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3011 | ::memset(&component_, 0, static_cast<size_t>( |
| 3012 | reinterpret_cast<char*>(&reason_) - |
| 3013 | reinterpret_cast<char*>(&component_)) + sizeof(reason_)); |
| 3014 | } |
| 3015 | |
| 3016 | HWComponentInfoGetResponse::~HWComponentInfoGetResponse() { |
| 3017 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse) |
| 3018 | SharedDtor(); |
| 3019 | } |
| 3020 | |
| 3021 | void HWComponentInfoGetResponse::SharedDtor() { |
| 3022 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3023 | if (this != internal_default_instance()) delete component_; |
| 3024 | } |
| 3025 | |
| 3026 | void HWComponentInfoGetResponse::SetCachedSize(int size) const { |
| 3027 | _cached_size_.Set(size); |
| 3028 | } |
| 3029 | const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() { |
| 3030 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3031 | return *internal_default_instance(); |
| 3032 | } |
| 3033 | |
| 3034 | |
| 3035 | void HWComponentInfoGetResponse::Clear() { |
| 3036 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse) |
| 3037 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3038 | // Prevent compiler warnings about cached_has_bits being unused |
| 3039 | (void) cached_has_bits; |
| 3040 | |
| 3041 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3042 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 3043 | delete component_; |
| 3044 | } |
| 3045 | component_ = nullptr; |
| 3046 | ::memset(&status_, 0, static_cast<size_t>( |
| 3047 | reinterpret_cast<char*>(&reason_) - |
| 3048 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3049 | _internal_metadata_.Clear(); |
| 3050 | } |
| 3051 | |
| 3052 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3053 | const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3054 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3055 | auto msg = static_cast<HWComponentInfoGetResponse*>(object); |
| 3056 | ::google::protobuf::int32 size; (void)size; |
| 3057 | int depth; (void)depth; |
| 3058 | ::google::protobuf::uint32 tag; |
| 3059 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3060 | auto ptr = begin; |
| 3061 | while (ptr < end) { |
| 3062 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3063 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3064 | switch (tag >> 3) { |
| 3065 | // .dmi.Status status = 1; |
| 3066 | case 1: { |
| 3067 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3068 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3069 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3070 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3071 | break; |
| 3072 | } |
| 3073 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 3074 | case 2: { |
| 3075 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3076 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3077 | msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val)); |
| 3078 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3079 | break; |
| 3080 | } |
| 3081 | // .dmi.Component component = 3; |
| 3082 | case 3: { |
| 3083 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3084 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3085 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3086 | parser_till_end = ::dmi::Component::_InternalParse; |
| 3087 | object = msg->mutable_component(); |
| 3088 | if (size > end - ptr) goto len_delim_till_end; |
| 3089 | ptr += size; |
| 3090 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3091 | {parser_till_end, object}, ptr - size, ptr)); |
| 3092 | break; |
| 3093 | } |
| 3094 | // string reason_detail = 4; |
| 3095 | case 4: { |
| 3096 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3097 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3098 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3099 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail"); |
| 3100 | object = msg->mutable_reason_detail(); |
| 3101 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3102 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3103 | goto string_till_end; |
| 3104 | } |
| 3105 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3106 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3107 | ptr += size; |
| 3108 | break; |
| 3109 | } |
| 3110 | default: { |
| 3111 | handle_unusual: |
| 3112 | if ((tag & 7) == 4 || tag == 0) { |
| 3113 | ctx->EndGroup(tag); |
| 3114 | return ptr; |
| 3115 | } |
| 3116 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3117 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3118 | ptr = res.first; |
| 3119 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3120 | if (res.second) return ptr; |
| 3121 | } |
| 3122 | } // switch |
| 3123 | } // while |
| 3124 | return ptr; |
| 3125 | string_till_end: |
| 3126 | static_cast<::std::string*>(object)->clear(); |
| 3127 | static_cast<::std::string*>(object)->reserve(size); |
| 3128 | goto len_delim_till_end; |
| 3129 | len_delim_till_end: |
| 3130 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3131 | {parser_till_end, object}, size); |
| 3132 | } |
| 3133 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3134 | bool HWComponentInfoGetResponse::MergePartialFromCodedStream( |
| 3135 | ::google::protobuf::io::CodedInputStream* input) { |
| 3136 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3137 | ::google::protobuf::uint32 tag; |
| 3138 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse) |
| 3139 | for (;;) { |
| 3140 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3141 | tag = p.first; |
| 3142 | if (!p.second) goto handle_unusual; |
| 3143 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3144 | // .dmi.Status status = 1; |
| 3145 | case 1: { |
| 3146 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3147 | int value = 0; |
| 3148 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3149 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3150 | input, &value))); |
| 3151 | set_status(static_cast< ::dmi::Status >(value)); |
| 3152 | } else { |
| 3153 | goto handle_unusual; |
| 3154 | } |
| 3155 | break; |
| 3156 | } |
| 3157 | |
| 3158 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 3159 | case 2: { |
| 3160 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3161 | int value = 0; |
| 3162 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3163 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3164 | input, &value))); |
| 3165 | set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value)); |
| 3166 | } else { |
| 3167 | goto handle_unusual; |
| 3168 | } |
| 3169 | break; |
| 3170 | } |
| 3171 | |
| 3172 | // .dmi.Component component = 3; |
| 3173 | case 3: { |
| 3174 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3175 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3176 | input, mutable_component())); |
| 3177 | } else { |
| 3178 | goto handle_unusual; |
| 3179 | } |
| 3180 | break; |
| 3181 | } |
| 3182 | |
| 3183 | // string reason_detail = 4; |
| 3184 | case 4: { |
| 3185 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3186 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3187 | input, this->mutable_reason_detail())); |
| 3188 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3189 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3190 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3191 | "dmi.HWComponentInfoGetResponse.reason_detail")); |
| 3192 | } else { |
| 3193 | goto handle_unusual; |
| 3194 | } |
| 3195 | break; |
| 3196 | } |
| 3197 | |
| 3198 | default: { |
| 3199 | handle_unusual: |
| 3200 | if (tag == 0) { |
| 3201 | goto success; |
| 3202 | } |
| 3203 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3204 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3205 | break; |
| 3206 | } |
| 3207 | } |
| 3208 | } |
| 3209 | success: |
| 3210 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse) |
| 3211 | return true; |
| 3212 | failure: |
| 3213 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse) |
| 3214 | return false; |
| 3215 | #undef DO_ |
| 3216 | } |
| 3217 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3218 | |
| 3219 | void HWComponentInfoGetResponse::SerializeWithCachedSizes( |
| 3220 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3221 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse) |
| 3222 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3223 | (void) cached_has_bits; |
| 3224 | |
| 3225 | // .dmi.Status status = 1; |
| 3226 | if (this->status() != 0) { |
| 3227 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3228 | 1, this->status(), output); |
| 3229 | } |
| 3230 | |
| 3231 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 3232 | if (this->reason() != 0) { |
| 3233 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3234 | 2, this->reason(), output); |
| 3235 | } |
| 3236 | |
| 3237 | // .dmi.Component component = 3; |
| 3238 | if (this->has_component()) { |
| 3239 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3240 | 3, HasBitSetters::component(this), output); |
| 3241 | } |
| 3242 | |
| 3243 | // string reason_detail = 4; |
| 3244 | if (this->reason_detail().size() > 0) { |
| 3245 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3246 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3247 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3248 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 3249 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3250 | 4, this->reason_detail(), output); |
| 3251 | } |
| 3252 | |
| 3253 | if (_internal_metadata_.have_unknown_fields()) { |
| 3254 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3255 | _internal_metadata_.unknown_fields(), output); |
| 3256 | } |
| 3257 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse) |
| 3258 | } |
| 3259 | |
| 3260 | ::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray( |
| 3261 | ::google::protobuf::uint8* target) const { |
| 3262 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse) |
| 3263 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3264 | (void) cached_has_bits; |
| 3265 | |
| 3266 | // .dmi.Status status = 1; |
| 3267 | if (this->status() != 0) { |
| 3268 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3269 | 1, this->status(), target); |
| 3270 | } |
| 3271 | |
| 3272 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 3273 | if (this->reason() != 0) { |
| 3274 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3275 | 2, this->reason(), target); |
| 3276 | } |
| 3277 | |
| 3278 | // .dmi.Component component = 3; |
| 3279 | if (this->has_component()) { |
| 3280 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3281 | InternalWriteMessageToArray( |
| 3282 | 3, HasBitSetters::component(this), target); |
| 3283 | } |
| 3284 | |
| 3285 | // string reason_detail = 4; |
| 3286 | if (this->reason_detail().size() > 0) { |
| 3287 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3288 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3289 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3290 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 3291 | target = |
| 3292 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3293 | 4, this->reason_detail(), target); |
| 3294 | } |
| 3295 | |
| 3296 | if (_internal_metadata_.have_unknown_fields()) { |
| 3297 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3298 | _internal_metadata_.unknown_fields(), target); |
| 3299 | } |
| 3300 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse) |
| 3301 | return target; |
| 3302 | } |
| 3303 | |
| 3304 | size_t HWComponentInfoGetResponse::ByteSizeLong() const { |
| 3305 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse) |
| 3306 | size_t total_size = 0; |
| 3307 | |
| 3308 | if (_internal_metadata_.have_unknown_fields()) { |
| 3309 | total_size += |
| 3310 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3311 | _internal_metadata_.unknown_fields()); |
| 3312 | } |
| 3313 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3314 | // Prevent compiler warnings about cached_has_bits being unused |
| 3315 | (void) cached_has_bits; |
| 3316 | |
| 3317 | // string reason_detail = 4; |
| 3318 | if (this->reason_detail().size() > 0) { |
| 3319 | total_size += 1 + |
| 3320 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3321 | this->reason_detail()); |
| 3322 | } |
| 3323 | |
| 3324 | // .dmi.Component component = 3; |
| 3325 | if (this->has_component()) { |
| 3326 | total_size += 1 + |
| 3327 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3328 | *component_); |
| 3329 | } |
| 3330 | |
| 3331 | // .dmi.Status status = 1; |
| 3332 | if (this->status() != 0) { |
| 3333 | total_size += 1 + |
| 3334 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3335 | } |
| 3336 | |
| 3337 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 3338 | if (this->reason() != 0) { |
| 3339 | total_size += 1 + |
| 3340 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3341 | } |
| 3342 | |
| 3343 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3344 | SetCachedSize(cached_size); |
| 3345 | return total_size; |
| 3346 | } |
| 3347 | |
| 3348 | void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3349 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 3350 | GOOGLE_DCHECK_NE(&from, this); |
| 3351 | const HWComponentInfoGetResponse* source = |
| 3352 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>( |
| 3353 | &from); |
| 3354 | if (source == nullptr) { |
| 3355 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse) |
| 3356 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3357 | } else { |
| 3358 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse) |
| 3359 | MergeFrom(*source); |
| 3360 | } |
| 3361 | } |
| 3362 | |
| 3363 | void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) { |
| 3364 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 3365 | GOOGLE_DCHECK_NE(&from, this); |
| 3366 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3367 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3368 | (void) cached_has_bits; |
| 3369 | |
| 3370 | if (from.reason_detail().size() > 0) { |
| 3371 | |
| 3372 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3373 | } |
| 3374 | if (from.has_component()) { |
| 3375 | mutable_component()->::dmi::Component::MergeFrom(from.component()); |
| 3376 | } |
| 3377 | if (from.status() != 0) { |
| 3378 | set_status(from.status()); |
| 3379 | } |
| 3380 | if (from.reason() != 0) { |
| 3381 | set_reason(from.reason()); |
| 3382 | } |
| 3383 | } |
| 3384 | |
| 3385 | void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3386 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 3387 | if (&from == this) return; |
| 3388 | Clear(); |
| 3389 | MergeFrom(from); |
| 3390 | } |
| 3391 | |
| 3392 | void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) { |
| 3393 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 3394 | if (&from == this) return; |
| 3395 | Clear(); |
| 3396 | MergeFrom(from); |
| 3397 | } |
| 3398 | |
| 3399 | bool HWComponentInfoGetResponse::IsInitialized() const { |
| 3400 | return true; |
| 3401 | } |
| 3402 | |
| 3403 | void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) { |
| 3404 | if (other == this) return; |
| 3405 | InternalSwap(other); |
| 3406 | } |
| 3407 | void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) { |
| 3408 | using std::swap; |
| 3409 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3410 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3411 | GetArenaNoVirtual()); |
| 3412 | swap(component_, other->component_); |
| 3413 | swap(status_, other->status_); |
| 3414 | swap(reason_, other->reason_); |
| 3415 | } |
| 3416 | |
| 3417 | ::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const { |
| 3418 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3419 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3420 | } |
| 3421 | |
| 3422 | |
| 3423 | // =================================================================== |
| 3424 | |
| 3425 | void HWComponentInfoSetRequest::InitAsDefaultInstance() { |
| 3426 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3427 | ::dmi::Uuid::internal_default_instance()); |
| 3428 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3429 | ::dmi::Uuid::internal_default_instance()); |
| 3430 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>( |
| 3431 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 3432 | } |
| 3433 | class HWComponentInfoSetRequest::HasBitSetters { |
| 3434 | public: |
| 3435 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg); |
| 3436 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg); |
| 3437 | static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg); |
| 3438 | }; |
| 3439 | |
| 3440 | const ::dmi::Uuid& |
| 3441 | HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) { |
| 3442 | return *msg->device_uuid_; |
| 3443 | } |
| 3444 | const ::dmi::Uuid& |
| 3445 | HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) { |
| 3446 | return *msg->component_uuid_; |
| 3447 | } |
| 3448 | const ::dmi::ModifiableComponent& |
| 3449 | HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) { |
| 3450 | return *msg->changes_; |
| 3451 | } |
| 3452 | void HWComponentInfoSetRequest::clear_device_uuid() { |
| 3453 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3454 | delete device_uuid_; |
| 3455 | } |
| 3456 | device_uuid_ = nullptr; |
| 3457 | } |
| 3458 | void HWComponentInfoSetRequest::clear_component_uuid() { |
| 3459 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 3460 | delete component_uuid_; |
| 3461 | } |
| 3462 | component_uuid_ = nullptr; |
| 3463 | } |
| 3464 | void HWComponentInfoSetRequest::clear_changes() { |
| 3465 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 3466 | delete changes_; |
| 3467 | } |
| 3468 | changes_ = nullptr; |
| 3469 | } |
| 3470 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3471 | const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber; |
| 3472 | const int HWComponentInfoSetRequest::kComponentUuidFieldNumber; |
| 3473 | const int HWComponentInfoSetRequest::kComponentNameFieldNumber; |
| 3474 | const int HWComponentInfoSetRequest::kChangesFieldNumber; |
| 3475 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3476 | |
| 3477 | HWComponentInfoSetRequest::HWComponentInfoSetRequest() |
| 3478 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3479 | SharedCtor(); |
| 3480 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest) |
| 3481 | } |
| 3482 | HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from) |
| 3483 | : ::google::protobuf::Message(), |
| 3484 | _internal_metadata_(nullptr) { |
| 3485 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3486 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3487 | if (from.component_name().size() > 0) { |
| 3488 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3489 | } |
| 3490 | if (from.has_device_uuid()) { |
| 3491 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3492 | } else { |
| 3493 | device_uuid_ = nullptr; |
| 3494 | } |
| 3495 | if (from.has_component_uuid()) { |
| 3496 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 3497 | } else { |
| 3498 | component_uuid_ = nullptr; |
| 3499 | } |
| 3500 | if (from.has_changes()) { |
| 3501 | changes_ = new ::dmi::ModifiableComponent(*from.changes_); |
| 3502 | } else { |
| 3503 | changes_ = nullptr; |
| 3504 | } |
| 3505 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest) |
| 3506 | } |
| 3507 | |
| 3508 | void HWComponentInfoSetRequest::SharedCtor() { |
| 3509 | ::google::protobuf::internal::InitSCC( |
| 3510 | &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3511 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3512 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3513 | reinterpret_cast<char*>(&changes_) - |
| 3514 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_)); |
| 3515 | } |
| 3516 | |
| 3517 | HWComponentInfoSetRequest::~HWComponentInfoSetRequest() { |
| 3518 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest) |
| 3519 | SharedDtor(); |
| 3520 | } |
| 3521 | |
| 3522 | void HWComponentInfoSetRequest::SharedDtor() { |
| 3523 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3524 | if (this != internal_default_instance()) delete device_uuid_; |
| 3525 | if (this != internal_default_instance()) delete component_uuid_; |
| 3526 | if (this != internal_default_instance()) delete changes_; |
| 3527 | } |
| 3528 | |
| 3529 | void HWComponentInfoSetRequest::SetCachedSize(int size) const { |
| 3530 | _cached_size_.Set(size); |
| 3531 | } |
| 3532 | const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() { |
| 3533 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3534 | return *internal_default_instance(); |
| 3535 | } |
| 3536 | |
| 3537 | |
| 3538 | void HWComponentInfoSetRequest::Clear() { |
| 3539 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest) |
| 3540 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3541 | // Prevent compiler warnings about cached_has_bits being unused |
| 3542 | (void) cached_has_bits; |
| 3543 | |
| 3544 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3545 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3546 | delete device_uuid_; |
| 3547 | } |
| 3548 | device_uuid_ = nullptr; |
| 3549 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 3550 | delete component_uuid_; |
| 3551 | } |
| 3552 | component_uuid_ = nullptr; |
| 3553 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 3554 | delete changes_; |
| 3555 | } |
| 3556 | changes_ = nullptr; |
| 3557 | _internal_metadata_.Clear(); |
| 3558 | } |
| 3559 | |
| 3560 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3561 | const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 3562 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3563 | auto msg = static_cast<HWComponentInfoSetRequest*>(object); |
| 3564 | ::google::protobuf::int32 size; (void)size; |
| 3565 | int depth; (void)depth; |
| 3566 | ::google::protobuf::uint32 tag; |
| 3567 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3568 | auto ptr = begin; |
| 3569 | while (ptr < end) { |
| 3570 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3571 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3572 | switch (tag >> 3) { |
| 3573 | // .dmi.Uuid device_uuid = 1; |
| 3574 | case 1: { |
| 3575 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 3576 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3577 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3578 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3579 | object = msg->mutable_device_uuid(); |
| 3580 | if (size > end - ptr) goto len_delim_till_end; |
| 3581 | ptr += size; |
| 3582 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3583 | {parser_till_end, object}, ptr - size, ptr)); |
| 3584 | break; |
| 3585 | } |
| 3586 | // .dmi.Uuid component_uuid = 2; |
| 3587 | case 2: { |
| 3588 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3589 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3590 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3591 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3592 | object = msg->mutable_component_uuid(); |
| 3593 | if (size > end - ptr) goto len_delim_till_end; |
| 3594 | ptr += size; |
| 3595 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3596 | {parser_till_end, object}, ptr - size, ptr)); |
| 3597 | break; |
| 3598 | } |
| 3599 | // string component_name = 3; |
| 3600 | case 3: { |
| 3601 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3602 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3603 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3604 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name"); |
| 3605 | object = msg->mutable_component_name(); |
| 3606 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3607 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3608 | goto string_till_end; |
| 3609 | } |
| 3610 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3611 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3612 | ptr += size; |
| 3613 | break; |
| 3614 | } |
| 3615 | // .dmi.ModifiableComponent changes = 4; |
| 3616 | case 4: { |
| 3617 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3618 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3619 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3620 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 3621 | object = msg->mutable_changes(); |
| 3622 | if (size > end - ptr) goto len_delim_till_end; |
| 3623 | ptr += size; |
| 3624 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3625 | {parser_till_end, object}, ptr - size, ptr)); |
| 3626 | break; |
| 3627 | } |
| 3628 | default: { |
| 3629 | handle_unusual: |
| 3630 | if ((tag & 7) == 4 || tag == 0) { |
| 3631 | ctx->EndGroup(tag); |
| 3632 | return ptr; |
| 3633 | } |
| 3634 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3635 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3636 | ptr = res.first; |
| 3637 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3638 | if (res.second) return ptr; |
| 3639 | } |
| 3640 | } // switch |
| 3641 | } // while |
| 3642 | return ptr; |
| 3643 | string_till_end: |
| 3644 | static_cast<::std::string*>(object)->clear(); |
| 3645 | static_cast<::std::string*>(object)->reserve(size); |
| 3646 | goto len_delim_till_end; |
| 3647 | len_delim_till_end: |
| 3648 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3649 | {parser_till_end, object}, size); |
| 3650 | } |
| 3651 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3652 | bool HWComponentInfoSetRequest::MergePartialFromCodedStream( |
| 3653 | ::google::protobuf::io::CodedInputStream* input) { |
| 3654 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3655 | ::google::protobuf::uint32 tag; |
| 3656 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest) |
| 3657 | for (;;) { |
| 3658 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3659 | tag = p.first; |
| 3660 | if (!p.second) goto handle_unusual; |
| 3661 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3662 | // .dmi.Uuid device_uuid = 1; |
| 3663 | case 1: { |
| 3664 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3665 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3666 | input, mutable_device_uuid())); |
| 3667 | } else { |
| 3668 | goto handle_unusual; |
| 3669 | } |
| 3670 | break; |
| 3671 | } |
| 3672 | |
| 3673 | // .dmi.Uuid component_uuid = 2; |
| 3674 | case 2: { |
| 3675 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3676 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3677 | input, mutable_component_uuid())); |
| 3678 | } else { |
| 3679 | goto handle_unusual; |
| 3680 | } |
| 3681 | break; |
| 3682 | } |
| 3683 | |
| 3684 | // string component_name = 3; |
| 3685 | case 3: { |
| 3686 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3687 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3688 | input, this->mutable_component_name())); |
| 3689 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3690 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3691 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3692 | "dmi.HWComponentInfoSetRequest.component_name")); |
| 3693 | } else { |
| 3694 | goto handle_unusual; |
| 3695 | } |
| 3696 | break; |
| 3697 | } |
| 3698 | |
| 3699 | // .dmi.ModifiableComponent changes = 4; |
| 3700 | case 4: { |
| 3701 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3702 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3703 | input, mutable_changes())); |
| 3704 | } else { |
| 3705 | goto handle_unusual; |
| 3706 | } |
| 3707 | break; |
| 3708 | } |
| 3709 | |
| 3710 | default: { |
| 3711 | handle_unusual: |
| 3712 | if (tag == 0) { |
| 3713 | goto success; |
| 3714 | } |
| 3715 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3716 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3717 | break; |
| 3718 | } |
| 3719 | } |
| 3720 | } |
| 3721 | success: |
| 3722 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest) |
| 3723 | return true; |
| 3724 | failure: |
| 3725 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest) |
| 3726 | return false; |
| 3727 | #undef DO_ |
| 3728 | } |
| 3729 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3730 | |
| 3731 | void HWComponentInfoSetRequest::SerializeWithCachedSizes( |
| 3732 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3733 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest) |
| 3734 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3735 | (void) cached_has_bits; |
| 3736 | |
| 3737 | // .dmi.Uuid device_uuid = 1; |
| 3738 | if (this->has_device_uuid()) { |
| 3739 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3740 | 1, HasBitSetters::device_uuid(this), output); |
| 3741 | } |
| 3742 | |
| 3743 | // .dmi.Uuid component_uuid = 2; |
| 3744 | if (this->has_component_uuid()) { |
| 3745 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3746 | 2, HasBitSetters::component_uuid(this), output); |
| 3747 | } |
| 3748 | |
| 3749 | // string component_name = 3; |
| 3750 | if (this->component_name().size() > 0) { |
| 3751 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3752 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3753 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3754 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3755 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3756 | 3, this->component_name(), output); |
| 3757 | } |
| 3758 | |
| 3759 | // .dmi.ModifiableComponent changes = 4; |
| 3760 | if (this->has_changes()) { |
| 3761 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3762 | 4, HasBitSetters::changes(this), output); |
| 3763 | } |
| 3764 | |
| 3765 | if (_internal_metadata_.have_unknown_fields()) { |
| 3766 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3767 | _internal_metadata_.unknown_fields(), output); |
| 3768 | } |
| 3769 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest) |
| 3770 | } |
| 3771 | |
| 3772 | ::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray( |
| 3773 | ::google::protobuf::uint8* target) const { |
| 3774 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest) |
| 3775 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3776 | (void) cached_has_bits; |
| 3777 | |
| 3778 | // .dmi.Uuid device_uuid = 1; |
| 3779 | if (this->has_device_uuid()) { |
| 3780 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3781 | InternalWriteMessageToArray( |
| 3782 | 1, HasBitSetters::device_uuid(this), target); |
| 3783 | } |
| 3784 | |
| 3785 | // .dmi.Uuid component_uuid = 2; |
| 3786 | if (this->has_component_uuid()) { |
| 3787 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3788 | InternalWriteMessageToArray( |
| 3789 | 2, HasBitSetters::component_uuid(this), target); |
| 3790 | } |
| 3791 | |
| 3792 | // string component_name = 3; |
| 3793 | if (this->component_name().size() > 0) { |
| 3794 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3795 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3796 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3797 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3798 | target = |
| 3799 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3800 | 3, this->component_name(), target); |
| 3801 | } |
| 3802 | |
| 3803 | // .dmi.ModifiableComponent changes = 4; |
| 3804 | if (this->has_changes()) { |
| 3805 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3806 | InternalWriteMessageToArray( |
| 3807 | 4, HasBitSetters::changes(this), target); |
| 3808 | } |
| 3809 | |
| 3810 | if (_internal_metadata_.have_unknown_fields()) { |
| 3811 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3812 | _internal_metadata_.unknown_fields(), target); |
| 3813 | } |
| 3814 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest) |
| 3815 | return target; |
| 3816 | } |
| 3817 | |
| 3818 | size_t HWComponentInfoSetRequest::ByteSizeLong() const { |
| 3819 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest) |
| 3820 | size_t total_size = 0; |
| 3821 | |
| 3822 | if (_internal_metadata_.have_unknown_fields()) { |
| 3823 | total_size += |
| 3824 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3825 | _internal_metadata_.unknown_fields()); |
| 3826 | } |
| 3827 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3828 | // Prevent compiler warnings about cached_has_bits being unused |
| 3829 | (void) cached_has_bits; |
| 3830 | |
| 3831 | // string component_name = 3; |
| 3832 | if (this->component_name().size() > 0) { |
| 3833 | total_size += 1 + |
| 3834 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3835 | this->component_name()); |
| 3836 | } |
| 3837 | |
| 3838 | // .dmi.Uuid device_uuid = 1; |
| 3839 | if (this->has_device_uuid()) { |
| 3840 | total_size += 1 + |
| 3841 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3842 | *device_uuid_); |
| 3843 | } |
| 3844 | |
| 3845 | // .dmi.Uuid component_uuid = 2; |
| 3846 | if (this->has_component_uuid()) { |
| 3847 | total_size += 1 + |
| 3848 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3849 | *component_uuid_); |
| 3850 | } |
| 3851 | |
| 3852 | // .dmi.ModifiableComponent changes = 4; |
| 3853 | if (this->has_changes()) { |
| 3854 | total_size += 1 + |
| 3855 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3856 | *changes_); |
| 3857 | } |
| 3858 | |
| 3859 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3860 | SetCachedSize(cached_size); |
| 3861 | return total_size; |
| 3862 | } |
| 3863 | |
| 3864 | void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3865 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3866 | GOOGLE_DCHECK_NE(&from, this); |
| 3867 | const HWComponentInfoSetRequest* source = |
| 3868 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>( |
| 3869 | &from); |
| 3870 | if (source == nullptr) { |
| 3871 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest) |
| 3872 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3873 | } else { |
| 3874 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest) |
| 3875 | MergeFrom(*source); |
| 3876 | } |
| 3877 | } |
| 3878 | |
| 3879 | void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) { |
| 3880 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3881 | GOOGLE_DCHECK_NE(&from, this); |
| 3882 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3883 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3884 | (void) cached_has_bits; |
| 3885 | |
| 3886 | if (from.component_name().size() > 0) { |
| 3887 | |
| 3888 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3889 | } |
| 3890 | if (from.has_device_uuid()) { |
| 3891 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3892 | } |
| 3893 | if (from.has_component_uuid()) { |
| 3894 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 3895 | } |
| 3896 | if (from.has_changes()) { |
| 3897 | mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes()); |
| 3898 | } |
| 3899 | } |
| 3900 | |
| 3901 | void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3902 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3903 | if (&from == this) return; |
| 3904 | Clear(); |
| 3905 | MergeFrom(from); |
| 3906 | } |
| 3907 | |
| 3908 | void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) { |
| 3909 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3910 | if (&from == this) return; |
| 3911 | Clear(); |
| 3912 | MergeFrom(from); |
| 3913 | } |
| 3914 | |
| 3915 | bool HWComponentInfoSetRequest::IsInitialized() const { |
| 3916 | return true; |
| 3917 | } |
| 3918 | |
| 3919 | void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) { |
| 3920 | if (other == this) return; |
| 3921 | InternalSwap(other); |
| 3922 | } |
| 3923 | void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) { |
| 3924 | using std::swap; |
| 3925 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3926 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3927 | GetArenaNoVirtual()); |
| 3928 | swap(device_uuid_, other->device_uuid_); |
| 3929 | swap(component_uuid_, other->component_uuid_); |
| 3930 | swap(changes_, other->changes_); |
| 3931 | } |
| 3932 | |
| 3933 | ::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const { |
| 3934 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3935 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3936 | } |
| 3937 | |
| 3938 | |
| 3939 | // =================================================================== |
| 3940 | |
| 3941 | void HWComponentInfoSetResponse::InitAsDefaultInstance() { |
| 3942 | } |
| 3943 | class HWComponentInfoSetResponse::HasBitSetters { |
| 3944 | public: |
| 3945 | }; |
| 3946 | |
| 3947 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3948 | const int HWComponentInfoSetResponse::kStatusFieldNumber; |
| 3949 | const int HWComponentInfoSetResponse::kReasonFieldNumber; |
| 3950 | const int HWComponentInfoSetResponse::kReasonDetailFieldNumber; |
| 3951 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3952 | |
| 3953 | HWComponentInfoSetResponse::HWComponentInfoSetResponse() |
| 3954 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3955 | SharedCtor(); |
| 3956 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse) |
| 3957 | } |
| 3958 | HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from) |
| 3959 | : ::google::protobuf::Message(), |
| 3960 | _internal_metadata_(nullptr) { |
| 3961 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3962 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3963 | if (from.reason_detail().size() > 0) { |
| 3964 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3965 | } |
| 3966 | ::memcpy(&status_, &from.status_, |
| 3967 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3968 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3969 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse) |
| 3970 | } |
| 3971 | |
| 3972 | void HWComponentInfoSetResponse::SharedCtor() { |
| 3973 | ::google::protobuf::internal::InitSCC( |
| 3974 | &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3975 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3976 | ::memset(&status_, 0, static_cast<size_t>( |
| 3977 | reinterpret_cast<char*>(&reason_) - |
| 3978 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3979 | } |
| 3980 | |
| 3981 | HWComponentInfoSetResponse::~HWComponentInfoSetResponse() { |
| 3982 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse) |
| 3983 | SharedDtor(); |
| 3984 | } |
| 3985 | |
| 3986 | void HWComponentInfoSetResponse::SharedDtor() { |
| 3987 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3988 | } |
| 3989 | |
| 3990 | void HWComponentInfoSetResponse::SetCachedSize(int size) const { |
| 3991 | _cached_size_.Set(size); |
| 3992 | } |
| 3993 | const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() { |
| 3994 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3995 | return *internal_default_instance(); |
| 3996 | } |
| 3997 | |
| 3998 | |
| 3999 | void HWComponentInfoSetResponse::Clear() { |
| 4000 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse) |
| 4001 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4002 | // Prevent compiler warnings about cached_has_bits being unused |
| 4003 | (void) cached_has_bits; |
| 4004 | |
| 4005 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4006 | ::memset(&status_, 0, static_cast<size_t>( |
| 4007 | reinterpret_cast<char*>(&reason_) - |
| 4008 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4009 | _internal_metadata_.Clear(); |
| 4010 | } |
| 4011 | |
| 4012 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4013 | const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4014 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4015 | auto msg = static_cast<HWComponentInfoSetResponse*>(object); |
| 4016 | ::google::protobuf::int32 size; (void)size; |
| 4017 | int depth; (void)depth; |
| 4018 | ::google::protobuf::uint32 tag; |
| 4019 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4020 | auto ptr = begin; |
| 4021 | while (ptr < end) { |
| 4022 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4023 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4024 | switch (tag >> 3) { |
| 4025 | // .dmi.Status status = 1; |
| 4026 | case 1: { |
| 4027 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4028 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4029 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4030 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4031 | break; |
| 4032 | } |
| 4033 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 4034 | case 2: { |
| 4035 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4036 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4037 | msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val)); |
| 4038 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4039 | break; |
| 4040 | } |
| 4041 | // string reason_detail = 3; |
| 4042 | case 3: { |
| 4043 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4044 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4045 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4046 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail"); |
| 4047 | object = msg->mutable_reason_detail(); |
| 4048 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4049 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4050 | goto string_till_end; |
| 4051 | } |
| 4052 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4053 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4054 | ptr += size; |
| 4055 | break; |
| 4056 | } |
| 4057 | default: { |
| 4058 | handle_unusual: |
| 4059 | if ((tag & 7) == 4 || tag == 0) { |
| 4060 | ctx->EndGroup(tag); |
| 4061 | return ptr; |
| 4062 | } |
| 4063 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4064 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4065 | ptr = res.first; |
| 4066 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4067 | if (res.second) return ptr; |
| 4068 | } |
| 4069 | } // switch |
| 4070 | } // while |
| 4071 | return ptr; |
| 4072 | string_till_end: |
| 4073 | static_cast<::std::string*>(object)->clear(); |
| 4074 | static_cast<::std::string*>(object)->reserve(size); |
| 4075 | goto len_delim_till_end; |
| 4076 | len_delim_till_end: |
| 4077 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4078 | {parser_till_end, object}, size); |
| 4079 | } |
| 4080 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4081 | bool HWComponentInfoSetResponse::MergePartialFromCodedStream( |
| 4082 | ::google::protobuf::io::CodedInputStream* input) { |
| 4083 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4084 | ::google::protobuf::uint32 tag; |
| 4085 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse) |
| 4086 | for (;;) { |
| 4087 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4088 | tag = p.first; |
| 4089 | if (!p.second) goto handle_unusual; |
| 4090 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4091 | // .dmi.Status status = 1; |
| 4092 | case 1: { |
| 4093 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4094 | int value = 0; |
| 4095 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4096 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4097 | input, &value))); |
| 4098 | set_status(static_cast< ::dmi::Status >(value)); |
| 4099 | } else { |
| 4100 | goto handle_unusual; |
| 4101 | } |
| 4102 | break; |
| 4103 | } |
| 4104 | |
| 4105 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 4106 | case 2: { |
| 4107 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4108 | int value = 0; |
| 4109 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4110 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4111 | input, &value))); |
| 4112 | set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value)); |
| 4113 | } else { |
| 4114 | goto handle_unusual; |
| 4115 | } |
| 4116 | break; |
| 4117 | } |
| 4118 | |
| 4119 | // string reason_detail = 3; |
| 4120 | case 3: { |
| 4121 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4122 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4123 | input, this->mutable_reason_detail())); |
| 4124 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4125 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4126 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4127 | "dmi.HWComponentInfoSetResponse.reason_detail")); |
| 4128 | } else { |
| 4129 | goto handle_unusual; |
| 4130 | } |
| 4131 | break; |
| 4132 | } |
| 4133 | |
| 4134 | default: { |
| 4135 | handle_unusual: |
| 4136 | if (tag == 0) { |
| 4137 | goto success; |
| 4138 | } |
| 4139 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4140 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4141 | break; |
| 4142 | } |
| 4143 | } |
| 4144 | } |
| 4145 | success: |
| 4146 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse) |
| 4147 | return true; |
| 4148 | failure: |
| 4149 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse) |
| 4150 | return false; |
| 4151 | #undef DO_ |
| 4152 | } |
| 4153 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4154 | |
| 4155 | void HWComponentInfoSetResponse::SerializeWithCachedSizes( |
| 4156 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4157 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse) |
| 4158 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4159 | (void) cached_has_bits; |
| 4160 | |
| 4161 | // .dmi.Status status = 1; |
| 4162 | if (this->status() != 0) { |
| 4163 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4164 | 1, this->status(), output); |
| 4165 | } |
| 4166 | |
| 4167 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 4168 | if (this->reason() != 0) { |
| 4169 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4170 | 2, this->reason(), output); |
| 4171 | } |
| 4172 | |
| 4173 | // string reason_detail = 3; |
| 4174 | if (this->reason_detail().size() > 0) { |
| 4175 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4176 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4177 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4178 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 4179 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4180 | 3, this->reason_detail(), output); |
| 4181 | } |
| 4182 | |
| 4183 | if (_internal_metadata_.have_unknown_fields()) { |
| 4184 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4185 | _internal_metadata_.unknown_fields(), output); |
| 4186 | } |
| 4187 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse) |
| 4188 | } |
| 4189 | |
| 4190 | ::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray( |
| 4191 | ::google::protobuf::uint8* target) const { |
| 4192 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse) |
| 4193 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4194 | (void) cached_has_bits; |
| 4195 | |
| 4196 | // .dmi.Status status = 1; |
| 4197 | if (this->status() != 0) { |
| 4198 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4199 | 1, this->status(), target); |
| 4200 | } |
| 4201 | |
| 4202 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 4203 | if (this->reason() != 0) { |
| 4204 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4205 | 2, this->reason(), target); |
| 4206 | } |
| 4207 | |
| 4208 | // string reason_detail = 3; |
| 4209 | if (this->reason_detail().size() > 0) { |
| 4210 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4211 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4212 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4213 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 4214 | target = |
| 4215 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4216 | 3, this->reason_detail(), target); |
| 4217 | } |
| 4218 | |
| 4219 | if (_internal_metadata_.have_unknown_fields()) { |
| 4220 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4221 | _internal_metadata_.unknown_fields(), target); |
| 4222 | } |
| 4223 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse) |
| 4224 | return target; |
| 4225 | } |
| 4226 | |
| 4227 | size_t HWComponentInfoSetResponse::ByteSizeLong() const { |
| 4228 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse) |
| 4229 | size_t total_size = 0; |
| 4230 | |
| 4231 | if (_internal_metadata_.have_unknown_fields()) { |
| 4232 | total_size += |
| 4233 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4234 | _internal_metadata_.unknown_fields()); |
| 4235 | } |
| 4236 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4237 | // Prevent compiler warnings about cached_has_bits being unused |
| 4238 | (void) cached_has_bits; |
| 4239 | |
| 4240 | // string reason_detail = 3; |
| 4241 | if (this->reason_detail().size() > 0) { |
| 4242 | total_size += 1 + |
| 4243 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4244 | this->reason_detail()); |
| 4245 | } |
| 4246 | |
| 4247 | // .dmi.Status status = 1; |
| 4248 | if (this->status() != 0) { |
| 4249 | total_size += 1 + |
| 4250 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4251 | } |
| 4252 | |
| 4253 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 4254 | if (this->reason() != 0) { |
| 4255 | total_size += 1 + |
| 4256 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4257 | } |
| 4258 | |
| 4259 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4260 | SetCachedSize(cached_size); |
| 4261 | return total_size; |
| 4262 | } |
| 4263 | |
| 4264 | void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4265 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 4266 | GOOGLE_DCHECK_NE(&from, this); |
| 4267 | const HWComponentInfoSetResponse* source = |
| 4268 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>( |
| 4269 | &from); |
| 4270 | if (source == nullptr) { |
| 4271 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse) |
| 4272 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4273 | } else { |
| 4274 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse) |
| 4275 | MergeFrom(*source); |
| 4276 | } |
| 4277 | } |
| 4278 | |
| 4279 | void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) { |
| 4280 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 4281 | GOOGLE_DCHECK_NE(&from, this); |
| 4282 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4283 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4284 | (void) cached_has_bits; |
| 4285 | |
| 4286 | if (from.reason_detail().size() > 0) { |
| 4287 | |
| 4288 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4289 | } |
| 4290 | if (from.status() != 0) { |
| 4291 | set_status(from.status()); |
| 4292 | } |
| 4293 | if (from.reason() != 0) { |
| 4294 | set_reason(from.reason()); |
| 4295 | } |
| 4296 | } |
| 4297 | |
| 4298 | void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4299 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 4300 | if (&from == this) return; |
| 4301 | Clear(); |
| 4302 | MergeFrom(from); |
| 4303 | } |
| 4304 | |
| 4305 | void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) { |
| 4306 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 4307 | if (&from == this) return; |
| 4308 | Clear(); |
| 4309 | MergeFrom(from); |
| 4310 | } |
| 4311 | |
| 4312 | bool HWComponentInfoSetResponse::IsInitialized() const { |
| 4313 | return true; |
| 4314 | } |
| 4315 | |
| 4316 | void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) { |
| 4317 | if (other == this) return; |
| 4318 | InternalSwap(other); |
| 4319 | } |
| 4320 | void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) { |
| 4321 | using std::swap; |
| 4322 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4323 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4324 | GetArenaNoVirtual()); |
| 4325 | swap(status_, other->status_); |
| 4326 | swap(reason_, other->reason_); |
| 4327 | } |
| 4328 | |
| 4329 | ::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const { |
| 4330 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4331 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4332 | } |
| 4333 | |
| 4334 | |
| 4335 | // =================================================================== |
| 4336 | |
| 4337 | void StartManagingDeviceResponse::InitAsDefaultInstance() { |
| 4338 | ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4339 | ::dmi::Uuid::internal_default_instance()); |
| 4340 | } |
| 4341 | class StartManagingDeviceResponse::HasBitSetters { |
| 4342 | public: |
| 4343 | static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg); |
| 4344 | }; |
| 4345 | |
| 4346 | const ::dmi::Uuid& |
| 4347 | StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) { |
| 4348 | return *msg->device_uuid_; |
| 4349 | } |
| 4350 | void StartManagingDeviceResponse::clear_device_uuid() { |
| 4351 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4352 | delete device_uuid_; |
| 4353 | } |
| 4354 | device_uuid_ = nullptr; |
| 4355 | } |
| 4356 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4357 | const int StartManagingDeviceResponse::kStatusFieldNumber; |
| 4358 | const int StartManagingDeviceResponse::kReasonFieldNumber; |
| 4359 | const int StartManagingDeviceResponse::kDeviceUuidFieldNumber; |
| 4360 | const int StartManagingDeviceResponse::kReasonDetailFieldNumber; |
| 4361 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4362 | |
| 4363 | StartManagingDeviceResponse::StartManagingDeviceResponse() |
| 4364 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4365 | SharedCtor(); |
| 4366 | // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse) |
| 4367 | } |
| 4368 | StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from) |
| 4369 | : ::google::protobuf::Message(), |
| 4370 | _internal_metadata_(nullptr) { |
| 4371 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4372 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4373 | if (from.reason_detail().size() > 0) { |
| 4374 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4375 | } |
| 4376 | if (from.has_device_uuid()) { |
| 4377 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 4378 | } else { |
| 4379 | device_uuid_ = nullptr; |
| 4380 | } |
| 4381 | ::memcpy(&status_, &from.status_, |
| 4382 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 4383 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4384 | // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse) |
| 4385 | } |
| 4386 | |
| 4387 | void StartManagingDeviceResponse::SharedCtor() { |
| 4388 | ::google::protobuf::internal::InitSCC( |
| 4389 | &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4390 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4391 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 4392 | reinterpret_cast<char*>(&reason_) - |
| 4393 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 4394 | } |
| 4395 | |
| 4396 | StartManagingDeviceResponse::~StartManagingDeviceResponse() { |
| 4397 | // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse) |
| 4398 | SharedDtor(); |
| 4399 | } |
| 4400 | |
| 4401 | void StartManagingDeviceResponse::SharedDtor() { |
| 4402 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4403 | if (this != internal_default_instance()) delete device_uuid_; |
| 4404 | } |
| 4405 | |
| 4406 | void StartManagingDeviceResponse::SetCachedSize(int size) const { |
| 4407 | _cached_size_.Set(size); |
| 4408 | } |
| 4409 | const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() { |
| 4410 | ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4411 | return *internal_default_instance(); |
| 4412 | } |
| 4413 | |
| 4414 | |
| 4415 | void StartManagingDeviceResponse::Clear() { |
| 4416 | // @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse) |
| 4417 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4418 | // Prevent compiler warnings about cached_has_bits being unused |
| 4419 | (void) cached_has_bits; |
| 4420 | |
| 4421 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4422 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4423 | delete device_uuid_; |
| 4424 | } |
| 4425 | device_uuid_ = nullptr; |
| 4426 | ::memset(&status_, 0, static_cast<size_t>( |
| 4427 | reinterpret_cast<char*>(&reason_) - |
| 4428 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4429 | _internal_metadata_.Clear(); |
| 4430 | } |
| 4431 | |
| 4432 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4433 | const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4434 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4435 | auto msg = static_cast<StartManagingDeviceResponse*>(object); |
| 4436 | ::google::protobuf::int32 size; (void)size; |
| 4437 | int depth; (void)depth; |
| 4438 | ::google::protobuf::uint32 tag; |
| 4439 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4440 | auto ptr = begin; |
| 4441 | while (ptr < end) { |
| 4442 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4443 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4444 | switch (tag >> 3) { |
| 4445 | // .dmi.Status status = 1; |
| 4446 | case 1: { |
| 4447 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4448 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4449 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4450 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4451 | break; |
| 4452 | } |
| 4453 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4454 | case 2: { |
| 4455 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4456 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4457 | msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val)); |
| 4458 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4459 | break; |
| 4460 | } |
| 4461 | // .dmi.Uuid device_uuid = 3; |
| 4462 | case 3: { |
| 4463 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4464 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4465 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4466 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 4467 | object = msg->mutable_device_uuid(); |
| 4468 | if (size > end - ptr) goto len_delim_till_end; |
| 4469 | ptr += size; |
| 4470 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 4471 | {parser_till_end, object}, ptr - size, ptr)); |
| 4472 | break; |
| 4473 | } |
| 4474 | // string reason_detail = 4; |
| 4475 | case 4: { |
| 4476 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 4477 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4478 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4479 | ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail"); |
| 4480 | object = msg->mutable_reason_detail(); |
| 4481 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4482 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4483 | goto string_till_end; |
| 4484 | } |
| 4485 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4486 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4487 | ptr += size; |
| 4488 | break; |
| 4489 | } |
| 4490 | default: { |
| 4491 | handle_unusual: |
| 4492 | if ((tag & 7) == 4 || tag == 0) { |
| 4493 | ctx->EndGroup(tag); |
| 4494 | return ptr; |
| 4495 | } |
| 4496 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4497 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4498 | ptr = res.first; |
| 4499 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4500 | if (res.second) return ptr; |
| 4501 | } |
| 4502 | } // switch |
| 4503 | } // while |
| 4504 | return ptr; |
| 4505 | string_till_end: |
| 4506 | static_cast<::std::string*>(object)->clear(); |
| 4507 | static_cast<::std::string*>(object)->reserve(size); |
| 4508 | goto len_delim_till_end; |
| 4509 | len_delim_till_end: |
| 4510 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4511 | {parser_till_end, object}, size); |
| 4512 | } |
| 4513 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4514 | bool StartManagingDeviceResponse::MergePartialFromCodedStream( |
| 4515 | ::google::protobuf::io::CodedInputStream* input) { |
| 4516 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4517 | ::google::protobuf::uint32 tag; |
| 4518 | // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse) |
| 4519 | for (;;) { |
| 4520 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4521 | tag = p.first; |
| 4522 | if (!p.second) goto handle_unusual; |
| 4523 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4524 | // .dmi.Status status = 1; |
| 4525 | case 1: { |
| 4526 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4527 | int value = 0; |
| 4528 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4529 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4530 | input, &value))); |
| 4531 | set_status(static_cast< ::dmi::Status >(value)); |
| 4532 | } else { |
| 4533 | goto handle_unusual; |
| 4534 | } |
| 4535 | break; |
| 4536 | } |
| 4537 | |
| 4538 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4539 | case 2: { |
| 4540 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4541 | int value = 0; |
| 4542 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4543 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4544 | input, &value))); |
| 4545 | set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value)); |
| 4546 | } else { |
| 4547 | goto handle_unusual; |
| 4548 | } |
| 4549 | break; |
| 4550 | } |
| 4551 | |
| 4552 | // .dmi.Uuid device_uuid = 3; |
| 4553 | case 3: { |
| 4554 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4555 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 4556 | input, mutable_device_uuid())); |
| 4557 | } else { |
| 4558 | goto handle_unusual; |
| 4559 | } |
| 4560 | break; |
| 4561 | } |
| 4562 | |
| 4563 | // string reason_detail = 4; |
| 4564 | case 4: { |
| 4565 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 4566 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4567 | input, this->mutable_reason_detail())); |
| 4568 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4569 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4570 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4571 | "dmi.StartManagingDeviceResponse.reason_detail")); |
| 4572 | } else { |
| 4573 | goto handle_unusual; |
| 4574 | } |
| 4575 | break; |
| 4576 | } |
| 4577 | |
| 4578 | default: { |
| 4579 | handle_unusual: |
| 4580 | if (tag == 0) { |
| 4581 | goto success; |
| 4582 | } |
| 4583 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4584 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4585 | break; |
| 4586 | } |
| 4587 | } |
| 4588 | } |
| 4589 | success: |
| 4590 | // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse) |
| 4591 | return true; |
| 4592 | failure: |
| 4593 | // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse) |
| 4594 | return false; |
| 4595 | #undef DO_ |
| 4596 | } |
| 4597 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4598 | |
| 4599 | void StartManagingDeviceResponse::SerializeWithCachedSizes( |
| 4600 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4601 | // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse) |
| 4602 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4603 | (void) cached_has_bits; |
| 4604 | |
| 4605 | // .dmi.Status status = 1; |
| 4606 | if (this->status() != 0) { |
| 4607 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4608 | 1, this->status(), output); |
| 4609 | } |
| 4610 | |
| 4611 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4612 | if (this->reason() != 0) { |
| 4613 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4614 | 2, this->reason(), output); |
| 4615 | } |
| 4616 | |
| 4617 | // .dmi.Uuid device_uuid = 3; |
| 4618 | if (this->has_device_uuid()) { |
| 4619 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4620 | 3, HasBitSetters::device_uuid(this), output); |
| 4621 | } |
| 4622 | |
| 4623 | // string reason_detail = 4; |
| 4624 | if (this->reason_detail().size() > 0) { |
| 4625 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4626 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4627 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4628 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4629 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4630 | 4, this->reason_detail(), output); |
| 4631 | } |
| 4632 | |
| 4633 | if (_internal_metadata_.have_unknown_fields()) { |
| 4634 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4635 | _internal_metadata_.unknown_fields(), output); |
| 4636 | } |
| 4637 | // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse) |
| 4638 | } |
| 4639 | |
| 4640 | ::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4641 | ::google::protobuf::uint8* target) const { |
| 4642 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse) |
| 4643 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4644 | (void) cached_has_bits; |
| 4645 | |
| 4646 | // .dmi.Status status = 1; |
| 4647 | if (this->status() != 0) { |
| 4648 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4649 | 1, this->status(), target); |
| 4650 | } |
| 4651 | |
| 4652 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4653 | if (this->reason() != 0) { |
| 4654 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4655 | 2, this->reason(), target); |
| 4656 | } |
| 4657 | |
| 4658 | // .dmi.Uuid device_uuid = 3; |
| 4659 | if (this->has_device_uuid()) { |
| 4660 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4661 | InternalWriteMessageToArray( |
| 4662 | 3, HasBitSetters::device_uuid(this), target); |
| 4663 | } |
| 4664 | |
| 4665 | // string reason_detail = 4; |
| 4666 | if (this->reason_detail().size() > 0) { |
| 4667 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4668 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4669 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4670 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4671 | target = |
| 4672 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4673 | 4, this->reason_detail(), target); |
| 4674 | } |
| 4675 | |
| 4676 | if (_internal_metadata_.have_unknown_fields()) { |
| 4677 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4678 | _internal_metadata_.unknown_fields(), target); |
| 4679 | } |
| 4680 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse) |
| 4681 | return target; |
| 4682 | } |
| 4683 | |
| 4684 | size_t StartManagingDeviceResponse::ByteSizeLong() const { |
| 4685 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse) |
| 4686 | size_t total_size = 0; |
| 4687 | |
| 4688 | if (_internal_metadata_.have_unknown_fields()) { |
| 4689 | total_size += |
| 4690 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4691 | _internal_metadata_.unknown_fields()); |
| 4692 | } |
| 4693 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4694 | // Prevent compiler warnings about cached_has_bits being unused |
| 4695 | (void) cached_has_bits; |
| 4696 | |
| 4697 | // string reason_detail = 4; |
| 4698 | if (this->reason_detail().size() > 0) { |
| 4699 | total_size += 1 + |
| 4700 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4701 | this->reason_detail()); |
| 4702 | } |
| 4703 | |
| 4704 | // .dmi.Uuid device_uuid = 3; |
| 4705 | if (this->has_device_uuid()) { |
| 4706 | total_size += 1 + |
| 4707 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4708 | *device_uuid_); |
| 4709 | } |
| 4710 | |
| 4711 | // .dmi.Status status = 1; |
| 4712 | if (this->status() != 0) { |
| 4713 | total_size += 1 + |
| 4714 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4715 | } |
| 4716 | |
| 4717 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4718 | if (this->reason() != 0) { |
| 4719 | total_size += 1 + |
| 4720 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4721 | } |
| 4722 | |
| 4723 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4724 | SetCachedSize(cached_size); |
| 4725 | return total_size; |
| 4726 | } |
| 4727 | |
| 4728 | void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4729 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4730 | GOOGLE_DCHECK_NE(&from, this); |
| 4731 | const StartManagingDeviceResponse* source = |
| 4732 | ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>( |
| 4733 | &from); |
| 4734 | if (source == nullptr) { |
| 4735 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse) |
| 4736 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4737 | } else { |
| 4738 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse) |
| 4739 | MergeFrom(*source); |
| 4740 | } |
| 4741 | } |
| 4742 | |
| 4743 | void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) { |
| 4744 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4745 | GOOGLE_DCHECK_NE(&from, this); |
| 4746 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4747 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4748 | (void) cached_has_bits; |
| 4749 | |
| 4750 | if (from.reason_detail().size() > 0) { |
| 4751 | |
| 4752 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4753 | } |
| 4754 | if (from.has_device_uuid()) { |
| 4755 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4756 | } |
| 4757 | if (from.status() != 0) { |
| 4758 | set_status(from.status()); |
| 4759 | } |
| 4760 | if (from.reason() != 0) { |
| 4761 | set_reason(from.reason()); |
| 4762 | } |
| 4763 | } |
| 4764 | |
| 4765 | void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4766 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4767 | if (&from == this) return; |
| 4768 | Clear(); |
| 4769 | MergeFrom(from); |
| 4770 | } |
| 4771 | |
| 4772 | void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) { |
| 4773 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4774 | if (&from == this) return; |
| 4775 | Clear(); |
| 4776 | MergeFrom(from); |
| 4777 | } |
| 4778 | |
| 4779 | bool StartManagingDeviceResponse::IsInitialized() const { |
| 4780 | return true; |
| 4781 | } |
| 4782 | |
| 4783 | void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) { |
| 4784 | if (other == this) return; |
| 4785 | InternalSwap(other); |
| 4786 | } |
| 4787 | void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) { |
| 4788 | using std::swap; |
| 4789 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4790 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4791 | GetArenaNoVirtual()); |
| 4792 | swap(device_uuid_, other->device_uuid_); |
| 4793 | swap(status_, other->status_); |
| 4794 | swap(reason_, other->reason_); |
| 4795 | } |
| 4796 | |
| 4797 | ::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const { |
| 4798 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4799 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4800 | } |
| 4801 | |
| 4802 | |
| 4803 | // =================================================================== |
| 4804 | |
| 4805 | void StopManagingDeviceRequest::InitAsDefaultInstance() { |
| 4806 | } |
| 4807 | class StopManagingDeviceRequest::HasBitSetters { |
| 4808 | public: |
| 4809 | }; |
| 4810 | |
| 4811 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4812 | const int StopManagingDeviceRequest::kNameFieldNumber; |
| 4813 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4814 | |
| 4815 | StopManagingDeviceRequest::StopManagingDeviceRequest() |
| 4816 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4817 | SharedCtor(); |
| 4818 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest) |
| 4819 | } |
| 4820 | StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from) |
| 4821 | : ::google::protobuf::Message(), |
| 4822 | _internal_metadata_(nullptr) { |
| 4823 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4824 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4825 | if (from.name().size() > 0) { |
| 4826 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4827 | } |
| 4828 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest) |
| 4829 | } |
| 4830 | |
| 4831 | void StopManagingDeviceRequest::SharedCtor() { |
| 4832 | ::google::protobuf::internal::InitSCC( |
| 4833 | &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4834 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4835 | } |
| 4836 | |
| 4837 | StopManagingDeviceRequest::~StopManagingDeviceRequest() { |
| 4838 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest) |
| 4839 | SharedDtor(); |
| 4840 | } |
| 4841 | |
| 4842 | void StopManagingDeviceRequest::SharedDtor() { |
| 4843 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4844 | } |
| 4845 | |
| 4846 | void StopManagingDeviceRequest::SetCachedSize(int size) const { |
| 4847 | _cached_size_.Set(size); |
| 4848 | } |
| 4849 | const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() { |
| 4850 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4851 | return *internal_default_instance(); |
| 4852 | } |
| 4853 | |
| 4854 | |
| 4855 | void StopManagingDeviceRequest::Clear() { |
| 4856 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest) |
| 4857 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4858 | // Prevent compiler warnings about cached_has_bits being unused |
| 4859 | (void) cached_has_bits; |
| 4860 | |
| 4861 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4862 | _internal_metadata_.Clear(); |
| 4863 | } |
| 4864 | |
| 4865 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4866 | const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 4867 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4868 | auto msg = static_cast<StopManagingDeviceRequest*>(object); |
| 4869 | ::google::protobuf::int32 size; (void)size; |
| 4870 | int depth; (void)depth; |
| 4871 | ::google::protobuf::uint32 tag; |
| 4872 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4873 | auto ptr = begin; |
| 4874 | while (ptr < end) { |
| 4875 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4876 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4877 | switch (tag >> 3) { |
| 4878 | // string name = 1; |
| 4879 | case 1: { |
| 4880 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4881 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4882 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4883 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name"); |
| 4884 | object = msg->mutable_name(); |
| 4885 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4886 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4887 | goto string_till_end; |
| 4888 | } |
| 4889 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4890 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4891 | ptr += size; |
| 4892 | break; |
| 4893 | } |
| 4894 | default: { |
| 4895 | handle_unusual: |
| 4896 | if ((tag & 7) == 4 || tag == 0) { |
| 4897 | ctx->EndGroup(tag); |
| 4898 | return ptr; |
| 4899 | } |
| 4900 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4901 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4902 | ptr = res.first; |
| 4903 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4904 | if (res.second) return ptr; |
| 4905 | } |
| 4906 | } // switch |
| 4907 | } // while |
| 4908 | return ptr; |
| 4909 | string_till_end: |
| 4910 | static_cast<::std::string*>(object)->clear(); |
| 4911 | static_cast<::std::string*>(object)->reserve(size); |
| 4912 | goto len_delim_till_end; |
| 4913 | len_delim_till_end: |
| 4914 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4915 | {parser_till_end, object}, size); |
| 4916 | } |
| 4917 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4918 | bool StopManagingDeviceRequest::MergePartialFromCodedStream( |
| 4919 | ::google::protobuf::io::CodedInputStream* input) { |
| 4920 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4921 | ::google::protobuf::uint32 tag; |
| 4922 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest) |
| 4923 | for (;;) { |
| 4924 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4925 | tag = p.first; |
| 4926 | if (!p.second) goto handle_unusual; |
| 4927 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4928 | // string name = 1; |
| 4929 | case 1: { |
| 4930 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4931 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4932 | input, this->mutable_name())); |
| 4933 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4934 | this->name().data(), static_cast<int>(this->name().length()), |
| 4935 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4936 | "dmi.StopManagingDeviceRequest.name")); |
| 4937 | } else { |
| 4938 | goto handle_unusual; |
| 4939 | } |
| 4940 | break; |
| 4941 | } |
| 4942 | |
| 4943 | default: { |
| 4944 | handle_unusual: |
| 4945 | if (tag == 0) { |
| 4946 | goto success; |
| 4947 | } |
| 4948 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4949 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4950 | break; |
| 4951 | } |
| 4952 | } |
| 4953 | } |
| 4954 | success: |
| 4955 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest) |
| 4956 | return true; |
| 4957 | failure: |
| 4958 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest) |
| 4959 | return false; |
| 4960 | #undef DO_ |
| 4961 | } |
| 4962 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4963 | |
| 4964 | void StopManagingDeviceRequest::SerializeWithCachedSizes( |
| 4965 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4966 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest) |
| 4967 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4968 | (void) cached_has_bits; |
| 4969 | |
| 4970 | // string name = 1; |
| 4971 | if (this->name().size() > 0) { |
| 4972 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4973 | this->name().data(), static_cast<int>(this->name().length()), |
| 4974 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4975 | "dmi.StopManagingDeviceRequest.name"); |
| 4976 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4977 | 1, this->name(), output); |
| 4978 | } |
| 4979 | |
| 4980 | if (_internal_metadata_.have_unknown_fields()) { |
| 4981 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4982 | _internal_metadata_.unknown_fields(), output); |
| 4983 | } |
| 4984 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest) |
| 4985 | } |
| 4986 | |
| 4987 | ::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 4988 | ::google::protobuf::uint8* target) const { |
| 4989 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest) |
| 4990 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4991 | (void) cached_has_bits; |
| 4992 | |
| 4993 | // string name = 1; |
| 4994 | if (this->name().size() > 0) { |
| 4995 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4996 | this->name().data(), static_cast<int>(this->name().length()), |
| 4997 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4998 | "dmi.StopManagingDeviceRequest.name"); |
| 4999 | target = |
| 5000 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5001 | 1, this->name(), target); |
| 5002 | } |
| 5003 | |
| 5004 | if (_internal_metadata_.have_unknown_fields()) { |
| 5005 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5006 | _internal_metadata_.unknown_fields(), target); |
| 5007 | } |
| 5008 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest) |
| 5009 | return target; |
| 5010 | } |
| 5011 | |
| 5012 | size_t StopManagingDeviceRequest::ByteSizeLong() const { |
| 5013 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest) |
| 5014 | size_t total_size = 0; |
| 5015 | |
| 5016 | if (_internal_metadata_.have_unknown_fields()) { |
| 5017 | total_size += |
| 5018 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5019 | _internal_metadata_.unknown_fields()); |
| 5020 | } |
| 5021 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5022 | // Prevent compiler warnings about cached_has_bits being unused |
| 5023 | (void) cached_has_bits; |
| 5024 | |
| 5025 | // string name = 1; |
| 5026 | if (this->name().size() > 0) { |
| 5027 | total_size += 1 + |
| 5028 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5029 | this->name()); |
| 5030 | } |
| 5031 | |
| 5032 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5033 | SetCachedSize(cached_size); |
| 5034 | return total_size; |
| 5035 | } |
| 5036 | |
| 5037 | void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 5038 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest) |
| 5039 | GOOGLE_DCHECK_NE(&from, this); |
| 5040 | const StopManagingDeviceRequest* source = |
| 5041 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>( |
| 5042 | &from); |
| 5043 | if (source == nullptr) { |
| 5044 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest) |
| 5045 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5046 | } else { |
| 5047 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest) |
| 5048 | MergeFrom(*source); |
| 5049 | } |
| 5050 | } |
| 5051 | |
| 5052 | void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) { |
| 5053 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest) |
| 5054 | GOOGLE_DCHECK_NE(&from, this); |
| 5055 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5056 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5057 | (void) cached_has_bits; |
| 5058 | |
| 5059 | if (from.name().size() > 0) { |
| 5060 | |
| 5061 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 5062 | } |
| 5063 | } |
| 5064 | |
| 5065 | void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 5066 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest) |
| 5067 | if (&from == this) return; |
| 5068 | Clear(); |
| 5069 | MergeFrom(from); |
| 5070 | } |
| 5071 | |
| 5072 | void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) { |
| 5073 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest) |
| 5074 | if (&from == this) return; |
| 5075 | Clear(); |
| 5076 | MergeFrom(from); |
| 5077 | } |
| 5078 | |
| 5079 | bool StopManagingDeviceRequest::IsInitialized() const { |
| 5080 | return true; |
| 5081 | } |
| 5082 | |
| 5083 | void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) { |
| 5084 | if (other == this) return; |
| 5085 | InternalSwap(other); |
| 5086 | } |
| 5087 | void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) { |
| 5088 | using std::swap; |
| 5089 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5090 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5091 | GetArenaNoVirtual()); |
| 5092 | } |
| 5093 | |
| 5094 | ::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const { |
| 5095 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5096 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5097 | } |
| 5098 | |
| 5099 | |
| 5100 | // =================================================================== |
| 5101 | |
| 5102 | void StopManagingDeviceResponse::InitAsDefaultInstance() { |
| 5103 | } |
| 5104 | class StopManagingDeviceResponse::HasBitSetters { |
| 5105 | public: |
| 5106 | }; |
| 5107 | |
| 5108 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5109 | const int StopManagingDeviceResponse::kStatusFieldNumber; |
| 5110 | const int StopManagingDeviceResponse::kReasonFieldNumber; |
| 5111 | const int StopManagingDeviceResponse::kReasonDetailFieldNumber; |
| 5112 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5113 | |
| 5114 | StopManagingDeviceResponse::StopManagingDeviceResponse() |
| 5115 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5116 | SharedCtor(); |
| 5117 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse) |
| 5118 | } |
| 5119 | StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from) |
| 5120 | : ::google::protobuf::Message(), |
| 5121 | _internal_metadata_(nullptr) { |
| 5122 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5123 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5124 | if (from.reason_detail().size() > 0) { |
| 5125 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 5126 | } |
| 5127 | ::memcpy(&status_, &from.status_, |
| 5128 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 5129 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5130 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse) |
| 5131 | } |
| 5132 | |
| 5133 | void StopManagingDeviceResponse::SharedCtor() { |
| 5134 | ::google::protobuf::internal::InitSCC( |
| 5135 | &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5136 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5137 | ::memset(&status_, 0, static_cast<size_t>( |
| 5138 | reinterpret_cast<char*>(&reason_) - |
| 5139 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5140 | } |
| 5141 | |
| 5142 | StopManagingDeviceResponse::~StopManagingDeviceResponse() { |
| 5143 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse) |
| 5144 | SharedDtor(); |
| 5145 | } |
| 5146 | |
| 5147 | void StopManagingDeviceResponse::SharedDtor() { |
| 5148 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5149 | } |
| 5150 | |
| 5151 | void StopManagingDeviceResponse::SetCachedSize(int size) const { |
| 5152 | _cached_size_.Set(size); |
| 5153 | } |
| 5154 | const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() { |
| 5155 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5156 | return *internal_default_instance(); |
| 5157 | } |
| 5158 | |
| 5159 | |
| 5160 | void StopManagingDeviceResponse::Clear() { |
| 5161 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse) |
| 5162 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5163 | // Prevent compiler warnings about cached_has_bits being unused |
| 5164 | (void) cached_has_bits; |
| 5165 | |
| 5166 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5167 | ::memset(&status_, 0, static_cast<size_t>( |
| 5168 | reinterpret_cast<char*>(&reason_) - |
| 5169 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5170 | _internal_metadata_.Clear(); |
| 5171 | } |
| 5172 | |
| 5173 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5174 | const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 5175 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5176 | auto msg = static_cast<StopManagingDeviceResponse*>(object); |
| 5177 | ::google::protobuf::int32 size; (void)size; |
| 5178 | int depth; (void)depth; |
| 5179 | ::google::protobuf::uint32 tag; |
| 5180 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5181 | auto ptr = begin; |
| 5182 | while (ptr < end) { |
| 5183 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5184 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5185 | switch (tag >> 3) { |
| 5186 | // .dmi.Status status = 1; |
| 5187 | case 1: { |
| 5188 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5189 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5190 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 5191 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5192 | break; |
| 5193 | } |
| 5194 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 5195 | case 2: { |
| 5196 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5197 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5198 | msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val)); |
| 5199 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5200 | break; |
| 5201 | } |
| 5202 | // string reason_detail = 3; |
| 5203 | case 3: { |
| 5204 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5205 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5206 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5207 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail"); |
| 5208 | object = msg->mutable_reason_detail(); |
| 5209 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5210 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5211 | goto string_till_end; |
| 5212 | } |
| 5213 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5214 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5215 | ptr += size; |
| 5216 | break; |
| 5217 | } |
| 5218 | default: { |
| 5219 | handle_unusual: |
| 5220 | if ((tag & 7) == 4 || tag == 0) { |
| 5221 | ctx->EndGroup(tag); |
| 5222 | return ptr; |
| 5223 | } |
| 5224 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5225 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5226 | ptr = res.first; |
| 5227 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5228 | if (res.second) return ptr; |
| 5229 | } |
| 5230 | } // switch |
| 5231 | } // while |
| 5232 | return ptr; |
| 5233 | string_till_end: |
| 5234 | static_cast<::std::string*>(object)->clear(); |
| 5235 | static_cast<::std::string*>(object)->reserve(size); |
| 5236 | goto len_delim_till_end; |
| 5237 | len_delim_till_end: |
| 5238 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5239 | {parser_till_end, object}, size); |
| 5240 | } |
| 5241 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5242 | bool StopManagingDeviceResponse::MergePartialFromCodedStream( |
| 5243 | ::google::protobuf::io::CodedInputStream* input) { |
| 5244 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5245 | ::google::protobuf::uint32 tag; |
| 5246 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse) |
| 5247 | for (;;) { |
| 5248 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5249 | tag = p.first; |
| 5250 | if (!p.second) goto handle_unusual; |
| 5251 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5252 | // .dmi.Status status = 1; |
| 5253 | case 1: { |
| 5254 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5255 | int value = 0; |
| 5256 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5257 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5258 | input, &value))); |
| 5259 | set_status(static_cast< ::dmi::Status >(value)); |
| 5260 | } else { |
| 5261 | goto handle_unusual; |
| 5262 | } |
| 5263 | break; |
| 5264 | } |
| 5265 | |
| 5266 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 5267 | case 2: { |
| 5268 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5269 | int value = 0; |
| 5270 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5271 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5272 | input, &value))); |
| 5273 | set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value)); |
| 5274 | } else { |
| 5275 | goto handle_unusual; |
| 5276 | } |
| 5277 | break; |
| 5278 | } |
| 5279 | |
| 5280 | // string reason_detail = 3; |
| 5281 | case 3: { |
| 5282 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5283 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5284 | input, this->mutable_reason_detail())); |
| 5285 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5286 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 5287 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5288 | "dmi.StopManagingDeviceResponse.reason_detail")); |
| 5289 | } else { |
| 5290 | goto handle_unusual; |
| 5291 | } |
| 5292 | break; |
| 5293 | } |
| 5294 | |
| 5295 | default: { |
| 5296 | handle_unusual: |
| 5297 | if (tag == 0) { |
| 5298 | goto success; |
| 5299 | } |
| 5300 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5301 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5302 | break; |
| 5303 | } |
| 5304 | } |
| 5305 | } |
| 5306 | success: |
| 5307 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse) |
| 5308 | return true; |
| 5309 | failure: |
| 5310 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse) |
| 5311 | return false; |
| 5312 | #undef DO_ |
| 5313 | } |
| 5314 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5315 | |
| 5316 | void StopManagingDeviceResponse::SerializeWithCachedSizes( |
| 5317 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5318 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse) |
| 5319 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5320 | (void) cached_has_bits; |
| 5321 | |
| 5322 | // .dmi.Status status = 1; |
| 5323 | if (this->status() != 0) { |
| 5324 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5325 | 1, this->status(), output); |
| 5326 | } |
| 5327 | |
| 5328 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 5329 | if (this->reason() != 0) { |
| 5330 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5331 | 2, this->reason(), output); |
| 5332 | } |
| 5333 | |
| 5334 | // string reason_detail = 3; |
| 5335 | if (this->reason_detail().size() > 0) { |
| 5336 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5337 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 5338 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5339 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 5340 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5341 | 3, this->reason_detail(), output); |
| 5342 | } |
| 5343 | |
| 5344 | if (_internal_metadata_.have_unknown_fields()) { |
| 5345 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5346 | _internal_metadata_.unknown_fields(), output); |
| 5347 | } |
| 5348 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse) |
| 5349 | } |
| 5350 | |
| 5351 | ::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 5352 | ::google::protobuf::uint8* target) const { |
| 5353 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse) |
| 5354 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5355 | (void) cached_has_bits; |
| 5356 | |
| 5357 | // .dmi.Status status = 1; |
| 5358 | if (this->status() != 0) { |
| 5359 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5360 | 1, this->status(), target); |
| 5361 | } |
| 5362 | |
| 5363 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 5364 | if (this->reason() != 0) { |
| 5365 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5366 | 2, this->reason(), target); |
| 5367 | } |
| 5368 | |
| 5369 | // string reason_detail = 3; |
| 5370 | if (this->reason_detail().size() > 0) { |
| 5371 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5372 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 5373 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5374 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 5375 | target = |
| 5376 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5377 | 3, this->reason_detail(), target); |
| 5378 | } |
| 5379 | |
| 5380 | if (_internal_metadata_.have_unknown_fields()) { |
| 5381 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5382 | _internal_metadata_.unknown_fields(), target); |
| 5383 | } |
| 5384 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse) |
| 5385 | return target; |
| 5386 | } |
| 5387 | |
| 5388 | size_t StopManagingDeviceResponse::ByteSizeLong() const { |
| 5389 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse) |
| 5390 | size_t total_size = 0; |
| 5391 | |
| 5392 | if (_internal_metadata_.have_unknown_fields()) { |
| 5393 | total_size += |
| 5394 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5395 | _internal_metadata_.unknown_fields()); |
| 5396 | } |
| 5397 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5398 | // Prevent compiler warnings about cached_has_bits being unused |
| 5399 | (void) cached_has_bits; |
| 5400 | |
| 5401 | // string reason_detail = 3; |
| 5402 | if (this->reason_detail().size() > 0) { |
| 5403 | total_size += 1 + |
| 5404 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 5405 | this->reason_detail()); |
| 5406 | } |
| 5407 | |
| 5408 | // .dmi.Status status = 1; |
| 5409 | if (this->status() != 0) { |
| 5410 | total_size += 1 + |
| 5411 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 5412 | } |
| 5413 | |
| 5414 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 5415 | if (this->reason() != 0) { |
| 5416 | total_size += 1 + |
| 5417 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 5418 | } |
| 5419 | |
| 5420 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5421 | SetCachedSize(cached_size); |
| 5422 | return total_size; |
| 5423 | } |
| 5424 | |
| 5425 | void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 5426 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse) |
| 5427 | GOOGLE_DCHECK_NE(&from, this); |
| 5428 | const StopManagingDeviceResponse* source = |
| 5429 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>( |
| 5430 | &from); |
| 5431 | if (source == nullptr) { |
| 5432 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse) |
| 5433 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5434 | } else { |
| 5435 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse) |
| 5436 | MergeFrom(*source); |
| 5437 | } |
| 5438 | } |
| 5439 | |
| 5440 | void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) { |
| 5441 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse) |
| 5442 | GOOGLE_DCHECK_NE(&from, this); |
| 5443 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5444 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5445 | (void) cached_has_bits; |
| 5446 | |
| 5447 | if (from.reason_detail().size() > 0) { |
| 5448 | |
| 5449 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 5450 | } |
| 5451 | if (from.status() != 0) { |
| 5452 | set_status(from.status()); |
| 5453 | } |
| 5454 | if (from.reason() != 0) { |
| 5455 | set_reason(from.reason()); |
| 5456 | } |
| 5457 | } |
| 5458 | |
| 5459 | void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 5460 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse) |
| 5461 | if (&from == this) return; |
| 5462 | Clear(); |
| 5463 | MergeFrom(from); |
| 5464 | } |
| 5465 | |
| 5466 | void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) { |
| 5467 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse) |
| 5468 | if (&from == this) return; |
| 5469 | Clear(); |
| 5470 | MergeFrom(from); |
| 5471 | } |
| 5472 | |
| 5473 | bool StopManagingDeviceResponse::IsInitialized() const { |
| 5474 | return true; |
| 5475 | } |
| 5476 | |
| 5477 | void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) { |
| 5478 | if (other == this) return; |
| 5479 | InternalSwap(other); |
| 5480 | } |
| 5481 | void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) { |
| 5482 | using std::swap; |
| 5483 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5484 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 5485 | GetArenaNoVirtual()); |
| 5486 | swap(status_, other->status_); |
| 5487 | swap(reason_, other->reason_); |
| 5488 | } |
| 5489 | |
| 5490 | ::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const { |
| 5491 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5492 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5493 | } |
| 5494 | |
| 5495 | |
| 5496 | // =================================================================== |
| 5497 | |
| 5498 | void ManagedDeviceInfo::InitAsDefaultInstance() { |
| 5499 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>( |
| 5500 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 5501 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5502 | ::dmi::Uuid::internal_default_instance()); |
| 5503 | } |
| 5504 | class ManagedDeviceInfo::HasBitSetters { |
| 5505 | public: |
| 5506 | static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg); |
| 5507 | static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg); |
| 5508 | }; |
| 5509 | |
| 5510 | const ::dmi::ModifiableComponent& |
| 5511 | ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) { |
| 5512 | return *msg->info_; |
| 5513 | } |
| 5514 | const ::dmi::Uuid& |
| 5515 | ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) { |
| 5516 | return *msg->device_uuid_; |
| 5517 | } |
| 5518 | void ManagedDeviceInfo::clear_info() { |
| 5519 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5520 | delete info_; |
| 5521 | } |
| 5522 | info_ = nullptr; |
| 5523 | } |
| 5524 | void ManagedDeviceInfo::clear_device_uuid() { |
| 5525 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5526 | delete device_uuid_; |
| 5527 | } |
| 5528 | device_uuid_ = nullptr; |
| 5529 | } |
| 5530 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5531 | const int ManagedDeviceInfo::kInfoFieldNumber; |
| 5532 | const int ManagedDeviceInfo::kDeviceUuidFieldNumber; |
| 5533 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5534 | |
| 5535 | ManagedDeviceInfo::ManagedDeviceInfo() |
| 5536 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5537 | SharedCtor(); |
| 5538 | // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo) |
| 5539 | } |
| 5540 | ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from) |
| 5541 | : ::google::protobuf::Message(), |
| 5542 | _internal_metadata_(nullptr) { |
| 5543 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5544 | if (from.has_info()) { |
| 5545 | info_ = new ::dmi::ModifiableComponent(*from.info_); |
| 5546 | } else { |
| 5547 | info_ = nullptr; |
| 5548 | } |
| 5549 | if (from.has_device_uuid()) { |
| 5550 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5551 | } else { |
| 5552 | device_uuid_ = nullptr; |
| 5553 | } |
| 5554 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo) |
| 5555 | } |
| 5556 | |
| 5557 | void ManagedDeviceInfo::SharedCtor() { |
| 5558 | ::google::protobuf::internal::InitSCC( |
| 5559 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5560 | ::memset(&info_, 0, static_cast<size_t>( |
| 5561 | reinterpret_cast<char*>(&device_uuid_) - |
| 5562 | reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_)); |
| 5563 | } |
| 5564 | |
| 5565 | ManagedDeviceInfo::~ManagedDeviceInfo() { |
| 5566 | // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo) |
| 5567 | SharedDtor(); |
| 5568 | } |
| 5569 | |
| 5570 | void ManagedDeviceInfo::SharedDtor() { |
| 5571 | if (this != internal_default_instance()) delete info_; |
| 5572 | if (this != internal_default_instance()) delete device_uuid_; |
| 5573 | } |
| 5574 | |
| 5575 | void ManagedDeviceInfo::SetCachedSize(int size) const { |
| 5576 | _cached_size_.Set(size); |
| 5577 | } |
| 5578 | const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() { |
| 5579 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5580 | return *internal_default_instance(); |
| 5581 | } |
| 5582 | |
| 5583 | |
| 5584 | void ManagedDeviceInfo::Clear() { |
| 5585 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo) |
| 5586 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5587 | // Prevent compiler warnings about cached_has_bits being unused |
| 5588 | (void) cached_has_bits; |
| 5589 | |
| 5590 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5591 | delete info_; |
| 5592 | } |
| 5593 | info_ = nullptr; |
| 5594 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5595 | delete device_uuid_; |
| 5596 | } |
| 5597 | device_uuid_ = nullptr; |
| 5598 | _internal_metadata_.Clear(); |
| 5599 | } |
| 5600 | |
| 5601 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5602 | const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 5603 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5604 | auto msg = static_cast<ManagedDeviceInfo*>(object); |
| 5605 | ::google::protobuf::int32 size; (void)size; |
| 5606 | int depth; (void)depth; |
| 5607 | ::google::protobuf::uint32 tag; |
| 5608 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5609 | auto ptr = begin; |
| 5610 | while (ptr < end) { |
| 5611 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5612 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5613 | switch (tag >> 3) { |
| 5614 | // .dmi.ModifiableComponent info = 1; |
| 5615 | case 1: { |
| 5616 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5617 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5618 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5619 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 5620 | object = msg->mutable_info(); |
| 5621 | if (size > end - ptr) goto len_delim_till_end; |
| 5622 | ptr += size; |
| 5623 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5624 | {parser_till_end, object}, ptr - size, ptr)); |
| 5625 | break; |
| 5626 | } |
| 5627 | // .dmi.Uuid device_uuid = 2; |
| 5628 | case 2: { |
| 5629 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5630 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5631 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5632 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5633 | object = msg->mutable_device_uuid(); |
| 5634 | if (size > end - ptr) goto len_delim_till_end; |
| 5635 | ptr += size; |
| 5636 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5637 | {parser_till_end, object}, ptr - size, ptr)); |
| 5638 | break; |
| 5639 | } |
| 5640 | default: { |
| 5641 | handle_unusual: |
| 5642 | if ((tag & 7) == 4 || tag == 0) { |
| 5643 | ctx->EndGroup(tag); |
| 5644 | return ptr; |
| 5645 | } |
| 5646 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5647 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5648 | ptr = res.first; |
| 5649 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5650 | if (res.second) return ptr; |
| 5651 | } |
| 5652 | } // switch |
| 5653 | } // while |
| 5654 | return ptr; |
| 5655 | len_delim_till_end: |
| 5656 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5657 | {parser_till_end, object}, size); |
| 5658 | } |
| 5659 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5660 | bool ManagedDeviceInfo::MergePartialFromCodedStream( |
| 5661 | ::google::protobuf::io::CodedInputStream* input) { |
| 5662 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5663 | ::google::protobuf::uint32 tag; |
| 5664 | // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo) |
| 5665 | for (;;) { |
| 5666 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5667 | tag = p.first; |
| 5668 | if (!p.second) goto handle_unusual; |
| 5669 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5670 | // .dmi.ModifiableComponent info = 1; |
| 5671 | case 1: { |
| 5672 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5673 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5674 | input, mutable_info())); |
| 5675 | } else { |
| 5676 | goto handle_unusual; |
| 5677 | } |
| 5678 | break; |
| 5679 | } |
| 5680 | |
| 5681 | // .dmi.Uuid device_uuid = 2; |
| 5682 | case 2: { |
| 5683 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5684 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5685 | input, mutable_device_uuid())); |
| 5686 | } else { |
| 5687 | goto handle_unusual; |
| 5688 | } |
| 5689 | break; |
| 5690 | } |
| 5691 | |
| 5692 | default: { |
| 5693 | handle_unusual: |
| 5694 | if (tag == 0) { |
| 5695 | goto success; |
| 5696 | } |
| 5697 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5698 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5699 | break; |
| 5700 | } |
| 5701 | } |
| 5702 | } |
| 5703 | success: |
| 5704 | // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo) |
| 5705 | return true; |
| 5706 | failure: |
| 5707 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo) |
| 5708 | return false; |
| 5709 | #undef DO_ |
| 5710 | } |
| 5711 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5712 | |
| 5713 | void ManagedDeviceInfo::SerializeWithCachedSizes( |
| 5714 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5715 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo) |
| 5716 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5717 | (void) cached_has_bits; |
| 5718 | |
| 5719 | // .dmi.ModifiableComponent info = 1; |
| 5720 | if (this->has_info()) { |
| 5721 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5722 | 1, HasBitSetters::info(this), output); |
| 5723 | } |
| 5724 | |
| 5725 | // .dmi.Uuid device_uuid = 2; |
| 5726 | if (this->has_device_uuid()) { |
| 5727 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5728 | 2, HasBitSetters::device_uuid(this), output); |
| 5729 | } |
| 5730 | |
| 5731 | if (_internal_metadata_.have_unknown_fields()) { |
| 5732 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5733 | _internal_metadata_.unknown_fields(), output); |
| 5734 | } |
| 5735 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo) |
| 5736 | } |
| 5737 | |
| 5738 | ::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray( |
| 5739 | ::google::protobuf::uint8* target) const { |
| 5740 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo) |
| 5741 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5742 | (void) cached_has_bits; |
| 5743 | |
| 5744 | // .dmi.ModifiableComponent info = 1; |
| 5745 | if (this->has_info()) { |
| 5746 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5747 | InternalWriteMessageToArray( |
| 5748 | 1, HasBitSetters::info(this), target); |
| 5749 | } |
| 5750 | |
| 5751 | // .dmi.Uuid device_uuid = 2; |
| 5752 | if (this->has_device_uuid()) { |
| 5753 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5754 | InternalWriteMessageToArray( |
| 5755 | 2, HasBitSetters::device_uuid(this), target); |
| 5756 | } |
| 5757 | |
| 5758 | if (_internal_metadata_.have_unknown_fields()) { |
| 5759 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5760 | _internal_metadata_.unknown_fields(), target); |
| 5761 | } |
| 5762 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo) |
| 5763 | return target; |
| 5764 | } |
| 5765 | |
| 5766 | size_t ManagedDeviceInfo::ByteSizeLong() const { |
| 5767 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo) |
| 5768 | size_t total_size = 0; |
| 5769 | |
| 5770 | if (_internal_metadata_.have_unknown_fields()) { |
| 5771 | total_size += |
| 5772 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5773 | _internal_metadata_.unknown_fields()); |
| 5774 | } |
| 5775 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5776 | // Prevent compiler warnings about cached_has_bits being unused |
| 5777 | (void) cached_has_bits; |
| 5778 | |
| 5779 | // .dmi.ModifiableComponent info = 1; |
| 5780 | if (this->has_info()) { |
| 5781 | total_size += 1 + |
| 5782 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5783 | *info_); |
| 5784 | } |
| 5785 | |
| 5786 | // .dmi.Uuid device_uuid = 2; |
| 5787 | if (this->has_device_uuid()) { |
| 5788 | total_size += 1 + |
| 5789 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5790 | *device_uuid_); |
| 5791 | } |
| 5792 | |
| 5793 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5794 | SetCachedSize(cached_size); |
| 5795 | return total_size; |
| 5796 | } |
| 5797 | |
| 5798 | void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 5799 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo) |
| 5800 | GOOGLE_DCHECK_NE(&from, this); |
| 5801 | const ManagedDeviceInfo* source = |
| 5802 | ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>( |
| 5803 | &from); |
| 5804 | if (source == nullptr) { |
| 5805 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo) |
| 5806 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5807 | } else { |
| 5808 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo) |
| 5809 | MergeFrom(*source); |
| 5810 | } |
| 5811 | } |
| 5812 | |
| 5813 | void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) { |
| 5814 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo) |
| 5815 | GOOGLE_DCHECK_NE(&from, this); |
| 5816 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5817 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5818 | (void) cached_has_bits; |
| 5819 | |
| 5820 | if (from.has_info()) { |
| 5821 | mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info()); |
| 5822 | } |
| 5823 | if (from.has_device_uuid()) { |
| 5824 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 5825 | } |
| 5826 | } |
| 5827 | |
| 5828 | void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 5829 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo) |
| 5830 | if (&from == this) return; |
| 5831 | Clear(); |
| 5832 | MergeFrom(from); |
| 5833 | } |
| 5834 | |
| 5835 | void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) { |
| 5836 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo) |
| 5837 | if (&from == this) return; |
| 5838 | Clear(); |
| 5839 | MergeFrom(from); |
| 5840 | } |
| 5841 | |
| 5842 | bool ManagedDeviceInfo::IsInitialized() const { |
| 5843 | return true; |
| 5844 | } |
| 5845 | |
| 5846 | void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) { |
| 5847 | if (other == this) return; |
| 5848 | InternalSwap(other); |
| 5849 | } |
| 5850 | void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) { |
| 5851 | using std::swap; |
| 5852 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5853 | swap(info_, other->info_); |
| 5854 | swap(device_uuid_, other->device_uuid_); |
| 5855 | } |
| 5856 | |
| 5857 | ::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const { |
| 5858 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5859 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5860 | } |
| 5861 | |
| 5862 | |
| 5863 | // =================================================================== |
| 5864 | |
| 5865 | void ManagedDevicesResponse::InitAsDefaultInstance() { |
| 5866 | } |
| 5867 | class ManagedDevicesResponse::HasBitSetters { |
| 5868 | public: |
| 5869 | }; |
| 5870 | |
| 5871 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5872 | const int ManagedDevicesResponse::kStatusFieldNumber; |
| 5873 | const int ManagedDevicesResponse::kReasonFieldNumber; |
| 5874 | const int ManagedDevicesResponse::kDevicesFieldNumber; |
| 5875 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5876 | |
| 5877 | ManagedDevicesResponse::ManagedDevicesResponse() |
| 5878 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5879 | SharedCtor(); |
| 5880 | // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse) |
| 5881 | } |
| 5882 | ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from) |
| 5883 | : ::google::protobuf::Message(), |
| 5884 | _internal_metadata_(nullptr), |
| 5885 | devices_(from.devices_) { |
| 5886 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5887 | ::memcpy(&status_, &from.status_, |
| 5888 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 5889 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5890 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse) |
| 5891 | } |
| 5892 | |
| 5893 | void ManagedDevicesResponse::SharedCtor() { |
| 5894 | ::google::protobuf::internal::InitSCC( |
| 5895 | &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5896 | ::memset(&status_, 0, static_cast<size_t>( |
| 5897 | reinterpret_cast<char*>(&reason_) - |
| 5898 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5899 | } |
| 5900 | |
| 5901 | ManagedDevicesResponse::~ManagedDevicesResponse() { |
| 5902 | // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse) |
| 5903 | SharedDtor(); |
| 5904 | } |
| 5905 | |
| 5906 | void ManagedDevicesResponse::SharedDtor() { |
| 5907 | } |
| 5908 | |
| 5909 | void ManagedDevicesResponse::SetCachedSize(int size) const { |
| 5910 | _cached_size_.Set(size); |
| 5911 | } |
| 5912 | const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() { |
| 5913 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5914 | return *internal_default_instance(); |
| 5915 | } |
| 5916 | |
| 5917 | |
| 5918 | void ManagedDevicesResponse::Clear() { |
| 5919 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse) |
| 5920 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5921 | // Prevent compiler warnings about cached_has_bits being unused |
| 5922 | (void) cached_has_bits; |
| 5923 | |
| 5924 | devices_.Clear(); |
| 5925 | ::memset(&status_, 0, static_cast<size_t>( |
| 5926 | reinterpret_cast<char*>(&reason_) - |
| 5927 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5928 | _internal_metadata_.Clear(); |
| 5929 | } |
| 5930 | |
| 5931 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5932 | const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 5933 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5934 | auto msg = static_cast<ManagedDevicesResponse*>(object); |
| 5935 | ::google::protobuf::int32 size; (void)size; |
| 5936 | int depth; (void)depth; |
| 5937 | ::google::protobuf::uint32 tag; |
| 5938 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5939 | auto ptr = begin; |
| 5940 | while (ptr < end) { |
| 5941 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5942 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5943 | switch (tag >> 3) { |
| 5944 | // .dmi.Status status = 1; |
| 5945 | case 1: { |
| 5946 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5947 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5948 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 5949 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5950 | break; |
| 5951 | } |
| 5952 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5953 | case 2: { |
| 5954 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5955 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5956 | msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val)); |
| 5957 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5958 | break; |
| 5959 | } |
| 5960 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5961 | case 3: { |
| 5962 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5963 | do { |
| 5964 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5965 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5966 | parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse; |
| 5967 | object = msg->add_devices(); |
| 5968 | if (size > end - ptr) goto len_delim_till_end; |
| 5969 | ptr += size; |
| 5970 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5971 | {parser_till_end, object}, ptr - size, ptr)); |
| 5972 | if (ptr >= end) break; |
| 5973 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); |
| 5974 | break; |
| 5975 | } |
| 5976 | default: { |
| 5977 | handle_unusual: |
| 5978 | if ((tag & 7) == 4 || tag == 0) { |
| 5979 | ctx->EndGroup(tag); |
| 5980 | return ptr; |
| 5981 | } |
| 5982 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5983 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5984 | ptr = res.first; |
| 5985 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5986 | if (res.second) return ptr; |
| 5987 | } |
| 5988 | } // switch |
| 5989 | } // while |
| 5990 | return ptr; |
| 5991 | len_delim_till_end: |
| 5992 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5993 | {parser_till_end, object}, size); |
| 5994 | } |
| 5995 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5996 | bool ManagedDevicesResponse::MergePartialFromCodedStream( |
| 5997 | ::google::protobuf::io::CodedInputStream* input) { |
| 5998 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5999 | ::google::protobuf::uint32 tag; |
| 6000 | // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse) |
| 6001 | for (;;) { |
| 6002 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6003 | tag = p.first; |
| 6004 | if (!p.second) goto handle_unusual; |
| 6005 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6006 | // .dmi.Status status = 1; |
| 6007 | case 1: { |
| 6008 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6009 | int value = 0; |
| 6010 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6011 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6012 | input, &value))); |
| 6013 | set_status(static_cast< ::dmi::Status >(value)); |
| 6014 | } else { |
| 6015 | goto handle_unusual; |
| 6016 | } |
| 6017 | break; |
| 6018 | } |
| 6019 | |
| 6020 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 6021 | case 2: { |
| 6022 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6023 | int value = 0; |
| 6024 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6025 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6026 | input, &value))); |
| 6027 | set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value)); |
| 6028 | } else { |
| 6029 | goto handle_unusual; |
| 6030 | } |
| 6031 | break; |
| 6032 | } |
| 6033 | |
| 6034 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 6035 | case 3: { |
| 6036 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6037 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6038 | input, add_devices())); |
| 6039 | } else { |
| 6040 | goto handle_unusual; |
| 6041 | } |
| 6042 | break; |
| 6043 | } |
| 6044 | |
| 6045 | default: { |
| 6046 | handle_unusual: |
| 6047 | if (tag == 0) { |
| 6048 | goto success; |
| 6049 | } |
| 6050 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6051 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6052 | break; |
| 6053 | } |
| 6054 | } |
| 6055 | } |
| 6056 | success: |
| 6057 | // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse) |
| 6058 | return true; |
| 6059 | failure: |
| 6060 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse) |
| 6061 | return false; |
| 6062 | #undef DO_ |
| 6063 | } |
| 6064 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6065 | |
| 6066 | void ManagedDevicesResponse::SerializeWithCachedSizes( |
| 6067 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6068 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse) |
| 6069 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6070 | (void) cached_has_bits; |
| 6071 | |
| 6072 | // .dmi.Status status = 1; |
| 6073 | if (this->status() != 0) { |
| 6074 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6075 | 1, this->status(), output); |
| 6076 | } |
| 6077 | |
| 6078 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 6079 | if (this->reason() != 0) { |
| 6080 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6081 | 2, this->reason(), output); |
| 6082 | } |
| 6083 | |
| 6084 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 6085 | for (unsigned int i = 0, |
| 6086 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 6087 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6088 | 3, |
| 6089 | this->devices(static_cast<int>(i)), |
| 6090 | output); |
| 6091 | } |
| 6092 | |
| 6093 | if (_internal_metadata_.have_unknown_fields()) { |
| 6094 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6095 | _internal_metadata_.unknown_fields(), output); |
| 6096 | } |
| 6097 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse) |
| 6098 | } |
| 6099 | |
| 6100 | ::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray( |
| 6101 | ::google::protobuf::uint8* target) const { |
| 6102 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse) |
| 6103 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6104 | (void) cached_has_bits; |
| 6105 | |
| 6106 | // .dmi.Status status = 1; |
| 6107 | if (this->status() != 0) { |
| 6108 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6109 | 1, this->status(), target); |
| 6110 | } |
| 6111 | |
| 6112 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 6113 | if (this->reason() != 0) { |
| 6114 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6115 | 2, this->reason(), target); |
| 6116 | } |
| 6117 | |
| 6118 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 6119 | for (unsigned int i = 0, |
| 6120 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 6121 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6122 | InternalWriteMessageToArray( |
| 6123 | 3, this->devices(static_cast<int>(i)), target); |
| 6124 | } |
| 6125 | |
| 6126 | if (_internal_metadata_.have_unknown_fields()) { |
| 6127 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6128 | _internal_metadata_.unknown_fields(), target); |
| 6129 | } |
| 6130 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse) |
| 6131 | return target; |
| 6132 | } |
| 6133 | |
| 6134 | size_t ManagedDevicesResponse::ByteSizeLong() const { |
| 6135 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse) |
| 6136 | size_t total_size = 0; |
| 6137 | |
| 6138 | if (_internal_metadata_.have_unknown_fields()) { |
| 6139 | total_size += |
| 6140 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6141 | _internal_metadata_.unknown_fields()); |
| 6142 | } |
| 6143 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6144 | // Prevent compiler warnings about cached_has_bits being unused |
| 6145 | (void) cached_has_bits; |
| 6146 | |
| 6147 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 6148 | { |
| 6149 | unsigned int count = static_cast<unsigned int>(this->devices_size()); |
| 6150 | total_size += 1UL * count; |
| 6151 | for (unsigned int i = 0; i < count; i++) { |
| 6152 | total_size += |
| 6153 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 6154 | this->devices(static_cast<int>(i))); |
| 6155 | } |
| 6156 | } |
| 6157 | |
| 6158 | // .dmi.Status status = 1; |
| 6159 | if (this->status() != 0) { |
| 6160 | total_size += 1 + |
| 6161 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6162 | } |
| 6163 | |
| 6164 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 6165 | if (this->reason() != 0) { |
| 6166 | total_size += 1 + |
| 6167 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 6168 | } |
| 6169 | |
| 6170 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6171 | SetCachedSize(cached_size); |
| 6172 | return total_size; |
| 6173 | } |
| 6174 | |
| 6175 | void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 6176 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse) |
| 6177 | GOOGLE_DCHECK_NE(&from, this); |
| 6178 | const ManagedDevicesResponse* source = |
| 6179 | ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>( |
| 6180 | &from); |
| 6181 | if (source == nullptr) { |
| 6182 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse) |
| 6183 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6184 | } else { |
| 6185 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse) |
| 6186 | MergeFrom(*source); |
| 6187 | } |
| 6188 | } |
| 6189 | |
| 6190 | void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) { |
| 6191 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse) |
| 6192 | GOOGLE_DCHECK_NE(&from, this); |
| 6193 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6194 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6195 | (void) cached_has_bits; |
| 6196 | |
| 6197 | devices_.MergeFrom(from.devices_); |
| 6198 | if (from.status() != 0) { |
| 6199 | set_status(from.status()); |
| 6200 | } |
| 6201 | if (from.reason() != 0) { |
| 6202 | set_reason(from.reason()); |
| 6203 | } |
| 6204 | } |
| 6205 | |
| 6206 | void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 6207 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse) |
| 6208 | if (&from == this) return; |
| 6209 | Clear(); |
| 6210 | MergeFrom(from); |
| 6211 | } |
| 6212 | |
| 6213 | void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) { |
| 6214 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse) |
| 6215 | if (&from == this) return; |
| 6216 | Clear(); |
| 6217 | MergeFrom(from); |
| 6218 | } |
| 6219 | |
| 6220 | bool ManagedDevicesResponse::IsInitialized() const { |
| 6221 | return true; |
| 6222 | } |
| 6223 | |
| 6224 | void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) { |
| 6225 | if (other == this) return; |
| 6226 | InternalSwap(other); |
| 6227 | } |
| 6228 | void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) { |
| 6229 | using std::swap; |
| 6230 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6231 | CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_)); |
| 6232 | swap(status_, other->status_); |
| 6233 | swap(reason_, other->reason_); |
| 6234 | } |
| 6235 | |
| 6236 | ::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const { |
| 6237 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6238 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6239 | } |
| 6240 | |
| 6241 | |
| 6242 | // =================================================================== |
| 6243 | |
| 6244 | void SetLoggingEndpointRequest::InitAsDefaultInstance() { |
| 6245 | ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 6246 | ::dmi::Uuid::internal_default_instance()); |
| 6247 | } |
| 6248 | class SetLoggingEndpointRequest::HasBitSetters { |
| 6249 | public: |
| 6250 | static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg); |
| 6251 | }; |
| 6252 | |
| 6253 | const ::dmi::Uuid& |
| 6254 | SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) { |
| 6255 | return *msg->device_uuid_; |
| 6256 | } |
| 6257 | void SetLoggingEndpointRequest::clear_device_uuid() { |
| 6258 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 6259 | delete device_uuid_; |
| 6260 | } |
| 6261 | device_uuid_ = nullptr; |
| 6262 | } |
| 6263 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6264 | const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber; |
| 6265 | const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber; |
| 6266 | const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber; |
| 6267 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6268 | |
| 6269 | SetLoggingEndpointRequest::SetLoggingEndpointRequest() |
| 6270 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6271 | SharedCtor(); |
| 6272 | // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest) |
| 6273 | } |
| 6274 | SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from) |
| 6275 | : ::google::protobuf::Message(), |
| 6276 | _internal_metadata_(nullptr) { |
| 6277 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6278 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6279 | if (from.logging_endpoint().size() > 0) { |
| 6280 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6281 | } |
| 6282 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6283 | if (from.logging_protocol().size() > 0) { |
| 6284 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6285 | } |
| 6286 | if (from.has_device_uuid()) { |
| 6287 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 6288 | } else { |
| 6289 | device_uuid_ = nullptr; |
| 6290 | } |
| 6291 | // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest) |
| 6292 | } |
| 6293 | |
| 6294 | void SetLoggingEndpointRequest::SharedCtor() { |
| 6295 | ::google::protobuf::internal::InitSCC( |
| 6296 | &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6297 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6298 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6299 | device_uuid_ = nullptr; |
| 6300 | } |
| 6301 | |
| 6302 | SetLoggingEndpointRequest::~SetLoggingEndpointRequest() { |
| 6303 | // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest) |
| 6304 | SharedDtor(); |
| 6305 | } |
| 6306 | |
| 6307 | void SetLoggingEndpointRequest::SharedDtor() { |
| 6308 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6309 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6310 | if (this != internal_default_instance()) delete device_uuid_; |
| 6311 | } |
| 6312 | |
| 6313 | void SetLoggingEndpointRequest::SetCachedSize(int size) const { |
| 6314 | _cached_size_.Set(size); |
| 6315 | } |
| 6316 | const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() { |
| 6317 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6318 | return *internal_default_instance(); |
| 6319 | } |
| 6320 | |
| 6321 | |
| 6322 | void SetLoggingEndpointRequest::Clear() { |
| 6323 | // @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest) |
| 6324 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6325 | // Prevent compiler warnings about cached_has_bits being unused |
| 6326 | (void) cached_has_bits; |
| 6327 | |
| 6328 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6329 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6330 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 6331 | delete device_uuid_; |
| 6332 | } |
| 6333 | device_uuid_ = nullptr; |
| 6334 | _internal_metadata_.Clear(); |
| 6335 | } |
| 6336 | |
| 6337 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6338 | const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 6339 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6340 | auto msg = static_cast<SetLoggingEndpointRequest*>(object); |
| 6341 | ::google::protobuf::int32 size; (void)size; |
| 6342 | int depth; (void)depth; |
| 6343 | ::google::protobuf::uint32 tag; |
| 6344 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6345 | auto ptr = begin; |
| 6346 | while (ptr < end) { |
| 6347 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6348 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6349 | switch (tag >> 3) { |
| 6350 | // .dmi.Uuid device_uuid = 1; |
| 6351 | case 1: { |
| 6352 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 6353 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6354 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6355 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 6356 | object = msg->mutable_device_uuid(); |
| 6357 | if (size > end - ptr) goto len_delim_till_end; |
| 6358 | ptr += size; |
| 6359 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 6360 | {parser_till_end, object}, ptr - size, ptr)); |
| 6361 | break; |
| 6362 | } |
| 6363 | // string logging_endpoint = 2; |
| 6364 | case 2: { |
| 6365 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 6366 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6367 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6368 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6369 | object = msg->mutable_logging_endpoint(); |
| 6370 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6371 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6372 | goto string_till_end; |
| 6373 | } |
| 6374 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6375 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6376 | ptr += size; |
| 6377 | break; |
| 6378 | } |
| 6379 | // string logging_protocol = 3; |
| 6380 | case 3: { |
| 6381 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6382 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6383 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6384 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6385 | object = msg->mutable_logging_protocol(); |
| 6386 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6387 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6388 | goto string_till_end; |
| 6389 | } |
| 6390 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6391 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6392 | ptr += size; |
| 6393 | break; |
| 6394 | } |
| 6395 | default: { |
| 6396 | handle_unusual: |
| 6397 | if ((tag & 7) == 4 || tag == 0) { |
| 6398 | ctx->EndGroup(tag); |
| 6399 | return ptr; |
| 6400 | } |
| 6401 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6402 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6403 | ptr = res.first; |
| 6404 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6405 | if (res.second) return ptr; |
| 6406 | } |
| 6407 | } // switch |
| 6408 | } // while |
| 6409 | return ptr; |
| 6410 | string_till_end: |
| 6411 | static_cast<::std::string*>(object)->clear(); |
| 6412 | static_cast<::std::string*>(object)->reserve(size); |
| 6413 | goto len_delim_till_end; |
| 6414 | len_delim_till_end: |
| 6415 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6416 | {parser_till_end, object}, size); |
| 6417 | } |
| 6418 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6419 | bool SetLoggingEndpointRequest::MergePartialFromCodedStream( |
| 6420 | ::google::protobuf::io::CodedInputStream* input) { |
| 6421 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6422 | ::google::protobuf::uint32 tag; |
| 6423 | // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest) |
| 6424 | for (;;) { |
| 6425 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6426 | tag = p.first; |
| 6427 | if (!p.second) goto handle_unusual; |
| 6428 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6429 | // .dmi.Uuid device_uuid = 1; |
| 6430 | case 1: { |
| 6431 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 6432 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 6433 | input, mutable_device_uuid())); |
| 6434 | } else { |
| 6435 | goto handle_unusual; |
| 6436 | } |
| 6437 | break; |
| 6438 | } |
| 6439 | |
| 6440 | // string logging_endpoint = 2; |
| 6441 | case 2: { |
| 6442 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 6443 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6444 | input, this->mutable_logging_endpoint())); |
| 6445 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6446 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6447 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6448 | "dmi.SetLoggingEndpointRequest.logging_endpoint")); |
| 6449 | } else { |
| 6450 | goto handle_unusual; |
| 6451 | } |
| 6452 | break; |
| 6453 | } |
| 6454 | |
| 6455 | // string logging_protocol = 3; |
| 6456 | case 3: { |
| 6457 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6458 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6459 | input, this->mutable_logging_protocol())); |
| 6460 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6461 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6462 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6463 | "dmi.SetLoggingEndpointRequest.logging_protocol")); |
| 6464 | } else { |
| 6465 | goto handle_unusual; |
| 6466 | } |
| 6467 | break; |
| 6468 | } |
| 6469 | |
| 6470 | default: { |
| 6471 | handle_unusual: |
| 6472 | if (tag == 0) { |
| 6473 | goto success; |
| 6474 | } |
| 6475 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6476 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6477 | break; |
| 6478 | } |
| 6479 | } |
| 6480 | } |
| 6481 | success: |
| 6482 | // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest) |
| 6483 | return true; |
| 6484 | failure: |
| 6485 | // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest) |
| 6486 | return false; |
| 6487 | #undef DO_ |
| 6488 | } |
| 6489 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6490 | |
| 6491 | void SetLoggingEndpointRequest::SerializeWithCachedSizes( |
| 6492 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6493 | // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest) |
| 6494 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6495 | (void) cached_has_bits; |
| 6496 | |
| 6497 | // .dmi.Uuid device_uuid = 1; |
| 6498 | if (this->has_device_uuid()) { |
| 6499 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 6500 | 1, HasBitSetters::device_uuid(this), output); |
| 6501 | } |
| 6502 | |
| 6503 | // string logging_endpoint = 2; |
| 6504 | if (this->logging_endpoint().size() > 0) { |
| 6505 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6506 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6507 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6508 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6509 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6510 | 2, this->logging_endpoint(), output); |
| 6511 | } |
| 6512 | |
| 6513 | // string logging_protocol = 3; |
| 6514 | if (this->logging_protocol().size() > 0) { |
| 6515 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6516 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6517 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6518 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6519 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6520 | 3, this->logging_protocol(), output); |
| 6521 | } |
| 6522 | |
| 6523 | if (_internal_metadata_.have_unknown_fields()) { |
| 6524 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6525 | _internal_metadata_.unknown_fields(), output); |
| 6526 | } |
| 6527 | // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest) |
| 6528 | } |
| 6529 | |
| 6530 | ::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 6531 | ::google::protobuf::uint8* target) const { |
| 6532 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest) |
| 6533 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6534 | (void) cached_has_bits; |
| 6535 | |
| 6536 | // .dmi.Uuid device_uuid = 1; |
| 6537 | if (this->has_device_uuid()) { |
| 6538 | target = ::google::protobuf::internal::WireFormatLite:: |
| 6539 | InternalWriteMessageToArray( |
| 6540 | 1, HasBitSetters::device_uuid(this), target); |
| 6541 | } |
| 6542 | |
| 6543 | // string logging_endpoint = 2; |
| 6544 | if (this->logging_endpoint().size() > 0) { |
| 6545 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6546 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6547 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6548 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 6549 | target = |
| 6550 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6551 | 2, this->logging_endpoint(), target); |
| 6552 | } |
| 6553 | |
| 6554 | // string logging_protocol = 3; |
| 6555 | if (this->logging_protocol().size() > 0) { |
| 6556 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6557 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6558 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6559 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 6560 | target = |
| 6561 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6562 | 3, this->logging_protocol(), target); |
| 6563 | } |
| 6564 | |
| 6565 | if (_internal_metadata_.have_unknown_fields()) { |
| 6566 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6567 | _internal_metadata_.unknown_fields(), target); |
| 6568 | } |
| 6569 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest) |
| 6570 | return target; |
| 6571 | } |
| 6572 | |
| 6573 | size_t SetLoggingEndpointRequest::ByteSizeLong() const { |
| 6574 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest) |
| 6575 | size_t total_size = 0; |
| 6576 | |
| 6577 | if (_internal_metadata_.have_unknown_fields()) { |
| 6578 | total_size += |
| 6579 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6580 | _internal_metadata_.unknown_fields()); |
| 6581 | } |
| 6582 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6583 | // Prevent compiler warnings about cached_has_bits being unused |
| 6584 | (void) cached_has_bits; |
| 6585 | |
| 6586 | // string logging_endpoint = 2; |
| 6587 | if (this->logging_endpoint().size() > 0) { |
| 6588 | total_size += 1 + |
| 6589 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6590 | this->logging_endpoint()); |
| 6591 | } |
| 6592 | |
| 6593 | // string logging_protocol = 3; |
| 6594 | if (this->logging_protocol().size() > 0) { |
| 6595 | total_size += 1 + |
| 6596 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6597 | this->logging_protocol()); |
| 6598 | } |
| 6599 | |
| 6600 | // .dmi.Uuid device_uuid = 1; |
| 6601 | if (this->has_device_uuid()) { |
| 6602 | total_size += 1 + |
| 6603 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 6604 | *device_uuid_); |
| 6605 | } |
| 6606 | |
| 6607 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6608 | SetCachedSize(cached_size); |
| 6609 | return total_size; |
| 6610 | } |
| 6611 | |
| 6612 | void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 6613 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6614 | GOOGLE_DCHECK_NE(&from, this); |
| 6615 | const SetLoggingEndpointRequest* source = |
| 6616 | ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>( |
| 6617 | &from); |
| 6618 | if (source == nullptr) { |
| 6619 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest) |
| 6620 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6621 | } else { |
| 6622 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest) |
| 6623 | MergeFrom(*source); |
| 6624 | } |
| 6625 | } |
| 6626 | |
| 6627 | void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) { |
| 6628 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6629 | GOOGLE_DCHECK_NE(&from, this); |
| 6630 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6631 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6632 | (void) cached_has_bits; |
| 6633 | |
| 6634 | if (from.logging_endpoint().size() > 0) { |
| 6635 | |
| 6636 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6637 | } |
| 6638 | if (from.logging_protocol().size() > 0) { |
| 6639 | |
| 6640 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6641 | } |
| 6642 | if (from.has_device_uuid()) { |
| 6643 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 6644 | } |
| 6645 | } |
| 6646 | |
| 6647 | void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 6648 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6649 | if (&from == this) return; |
| 6650 | Clear(); |
| 6651 | MergeFrom(from); |
| 6652 | } |
| 6653 | |
| 6654 | void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) { |
| 6655 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6656 | if (&from == this) return; |
| 6657 | Clear(); |
| 6658 | MergeFrom(from); |
| 6659 | } |
| 6660 | |
| 6661 | bool SetLoggingEndpointRequest::IsInitialized() const { |
| 6662 | return true; |
| 6663 | } |
| 6664 | |
| 6665 | void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) { |
| 6666 | if (other == this) return; |
| 6667 | InternalSwap(other); |
| 6668 | } |
| 6669 | void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) { |
| 6670 | using std::swap; |
| 6671 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6672 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6673 | GetArenaNoVirtual()); |
| 6674 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6675 | GetArenaNoVirtual()); |
| 6676 | swap(device_uuid_, other->device_uuid_); |
| 6677 | } |
| 6678 | |
| 6679 | ::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const { |
| 6680 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6681 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6682 | } |
| 6683 | |
| 6684 | |
| 6685 | // =================================================================== |
| 6686 | |
| 6687 | void SetRemoteEndpointResponse::InitAsDefaultInstance() { |
| 6688 | } |
| 6689 | class SetRemoteEndpointResponse::HasBitSetters { |
| 6690 | public: |
| 6691 | }; |
| 6692 | |
| 6693 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6694 | const int SetRemoteEndpointResponse::kStatusFieldNumber; |
| 6695 | const int SetRemoteEndpointResponse::kReasonFieldNumber; |
| 6696 | const int SetRemoteEndpointResponse::kReasonDetailFieldNumber; |
| 6697 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6698 | |
| 6699 | SetRemoteEndpointResponse::SetRemoteEndpointResponse() |
| 6700 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6701 | SharedCtor(); |
| 6702 | // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse) |
| 6703 | } |
| 6704 | SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from) |
| 6705 | : ::google::protobuf::Message(), |
| 6706 | _internal_metadata_(nullptr) { |
| 6707 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6708 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6709 | if (from.reason_detail().size() > 0) { |
| 6710 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6711 | } |
| 6712 | ::memcpy(&status_, &from.status_, |
| 6713 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6714 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6715 | // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse) |
| 6716 | } |
| 6717 | |
| 6718 | void SetRemoteEndpointResponse::SharedCtor() { |
| 6719 | ::google::protobuf::internal::InitSCC( |
| 6720 | &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6721 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6722 | ::memset(&status_, 0, static_cast<size_t>( |
| 6723 | reinterpret_cast<char*>(&reason_) - |
| 6724 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6725 | } |
| 6726 | |
| 6727 | SetRemoteEndpointResponse::~SetRemoteEndpointResponse() { |
| 6728 | // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse) |
| 6729 | SharedDtor(); |
| 6730 | } |
| 6731 | |
| 6732 | void SetRemoteEndpointResponse::SharedDtor() { |
| 6733 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6734 | } |
| 6735 | |
| 6736 | void SetRemoteEndpointResponse::SetCachedSize(int size) const { |
| 6737 | _cached_size_.Set(size); |
| 6738 | } |
| 6739 | const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() { |
| 6740 | ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6741 | return *internal_default_instance(); |
| 6742 | } |
| 6743 | |
| 6744 | |
| 6745 | void SetRemoteEndpointResponse::Clear() { |
| 6746 | // @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse) |
| 6747 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6748 | // Prevent compiler warnings about cached_has_bits being unused |
| 6749 | (void) cached_has_bits; |
| 6750 | |
| 6751 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6752 | ::memset(&status_, 0, static_cast<size_t>( |
| 6753 | reinterpret_cast<char*>(&reason_) - |
| 6754 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6755 | _internal_metadata_.Clear(); |
| 6756 | } |
| 6757 | |
| 6758 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6759 | const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6760 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6761 | auto msg = static_cast<SetRemoteEndpointResponse*>(object); |
| 6762 | ::google::protobuf::int32 size; (void)size; |
| 6763 | int depth; (void)depth; |
| 6764 | ::google::protobuf::uint32 tag; |
| 6765 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6766 | auto ptr = begin; |
| 6767 | while (ptr < end) { |
| 6768 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6769 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6770 | switch (tag >> 3) { |
| 6771 | // .dmi.Status status = 1; |
| 6772 | case 1: { |
| 6773 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6774 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6775 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6776 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6777 | break; |
| 6778 | } |
| 6779 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6780 | case 2: { |
| 6781 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6782 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6783 | msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val)); |
| 6784 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6785 | break; |
| 6786 | } |
| 6787 | // string reason_detail = 3; |
| 6788 | case 3: { |
| 6789 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6790 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6791 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6792 | ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6793 | object = msg->mutable_reason_detail(); |
| 6794 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6795 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6796 | goto string_till_end; |
| 6797 | } |
| 6798 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6799 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6800 | ptr += size; |
| 6801 | break; |
| 6802 | } |
| 6803 | default: { |
| 6804 | handle_unusual: |
| 6805 | if ((tag & 7) == 4 || tag == 0) { |
| 6806 | ctx->EndGroup(tag); |
| 6807 | return ptr; |
| 6808 | } |
| 6809 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6810 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6811 | ptr = res.first; |
| 6812 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6813 | if (res.second) return ptr; |
| 6814 | } |
| 6815 | } // switch |
| 6816 | } // while |
| 6817 | return ptr; |
| 6818 | string_till_end: |
| 6819 | static_cast<::std::string*>(object)->clear(); |
| 6820 | static_cast<::std::string*>(object)->reserve(size); |
| 6821 | goto len_delim_till_end; |
| 6822 | len_delim_till_end: |
| 6823 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6824 | {parser_till_end, object}, size); |
| 6825 | } |
| 6826 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6827 | bool SetRemoteEndpointResponse::MergePartialFromCodedStream( |
| 6828 | ::google::protobuf::io::CodedInputStream* input) { |
| 6829 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6830 | ::google::protobuf::uint32 tag; |
| 6831 | // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse) |
| 6832 | for (;;) { |
| 6833 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6834 | tag = p.first; |
| 6835 | if (!p.second) goto handle_unusual; |
| 6836 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6837 | // .dmi.Status status = 1; |
| 6838 | case 1: { |
| 6839 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6840 | int value = 0; |
| 6841 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6842 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6843 | input, &value))); |
| 6844 | set_status(static_cast< ::dmi::Status >(value)); |
| 6845 | } else { |
| 6846 | goto handle_unusual; |
| 6847 | } |
| 6848 | break; |
| 6849 | } |
| 6850 | |
| 6851 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6852 | case 2: { |
| 6853 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6854 | int value = 0; |
| 6855 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6856 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6857 | input, &value))); |
| 6858 | set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value)); |
| 6859 | } else { |
| 6860 | goto handle_unusual; |
| 6861 | } |
| 6862 | break; |
| 6863 | } |
| 6864 | |
| 6865 | // string reason_detail = 3; |
| 6866 | case 3: { |
| 6867 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6868 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6869 | input, this->mutable_reason_detail())); |
| 6870 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6871 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6872 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6873 | "dmi.SetRemoteEndpointResponse.reason_detail")); |
| 6874 | } else { |
| 6875 | goto handle_unusual; |
| 6876 | } |
| 6877 | break; |
| 6878 | } |
| 6879 | |
| 6880 | default: { |
| 6881 | handle_unusual: |
| 6882 | if (tag == 0) { |
| 6883 | goto success; |
| 6884 | } |
| 6885 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6886 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6887 | break; |
| 6888 | } |
| 6889 | } |
| 6890 | } |
| 6891 | success: |
| 6892 | // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse) |
| 6893 | return true; |
| 6894 | failure: |
| 6895 | // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse) |
| 6896 | return false; |
| 6897 | #undef DO_ |
| 6898 | } |
| 6899 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6900 | |
| 6901 | void SetRemoteEndpointResponse::SerializeWithCachedSizes( |
| 6902 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6903 | // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse) |
| 6904 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6905 | (void) cached_has_bits; |
| 6906 | |
| 6907 | // .dmi.Status status = 1; |
| 6908 | if (this->status() != 0) { |
| 6909 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6910 | 1, this->status(), output); |
| 6911 | } |
| 6912 | |
| 6913 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6914 | if (this->reason() != 0) { |
| 6915 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6916 | 2, this->reason(), output); |
| 6917 | } |
| 6918 | |
| 6919 | // string reason_detail = 3; |
| 6920 | if (this->reason_detail().size() > 0) { |
| 6921 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6922 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6923 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6924 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6925 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6926 | 3, this->reason_detail(), output); |
| 6927 | } |
| 6928 | |
| 6929 | if (_internal_metadata_.have_unknown_fields()) { |
| 6930 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6931 | _internal_metadata_.unknown_fields(), output); |
| 6932 | } |
| 6933 | // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse) |
| 6934 | } |
| 6935 | |
| 6936 | ::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6937 | ::google::protobuf::uint8* target) const { |
| 6938 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse) |
| 6939 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6940 | (void) cached_has_bits; |
| 6941 | |
| 6942 | // .dmi.Status status = 1; |
| 6943 | if (this->status() != 0) { |
| 6944 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6945 | 1, this->status(), target); |
| 6946 | } |
| 6947 | |
| 6948 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6949 | if (this->reason() != 0) { |
| 6950 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6951 | 2, this->reason(), target); |
| 6952 | } |
| 6953 | |
| 6954 | // string reason_detail = 3; |
| 6955 | if (this->reason_detail().size() > 0) { |
| 6956 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6957 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6958 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6959 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6960 | target = |
| 6961 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6962 | 3, this->reason_detail(), target); |
| 6963 | } |
| 6964 | |
| 6965 | if (_internal_metadata_.have_unknown_fields()) { |
| 6966 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6967 | _internal_metadata_.unknown_fields(), target); |
| 6968 | } |
| 6969 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse) |
| 6970 | return target; |
| 6971 | } |
| 6972 | |
| 6973 | size_t SetRemoteEndpointResponse::ByteSizeLong() const { |
| 6974 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse) |
| 6975 | size_t total_size = 0; |
| 6976 | |
| 6977 | if (_internal_metadata_.have_unknown_fields()) { |
| 6978 | total_size += |
| 6979 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6980 | _internal_metadata_.unknown_fields()); |
| 6981 | } |
| 6982 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6983 | // Prevent compiler warnings about cached_has_bits being unused |
| 6984 | (void) cached_has_bits; |
| 6985 | |
| 6986 | // string reason_detail = 3; |
| 6987 | if (this->reason_detail().size() > 0) { |
| 6988 | total_size += 1 + |
| 6989 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6990 | this->reason_detail()); |
| 6991 | } |
| 6992 | |
| 6993 | // .dmi.Status status = 1; |
| 6994 | if (this->status() != 0) { |
| 6995 | total_size += 1 + |
| 6996 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6997 | } |
| 6998 | |
| 6999 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 7000 | if (this->reason() != 0) { |
| 7001 | total_size += 1 + |
| 7002 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7003 | } |
| 7004 | |
| 7005 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7006 | SetCachedSize(cached_size); |
| 7007 | return total_size; |
| 7008 | } |
| 7009 | |
| 7010 | void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7011 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 7012 | GOOGLE_DCHECK_NE(&from, this); |
| 7013 | const SetRemoteEndpointResponse* source = |
| 7014 | ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>( |
| 7015 | &from); |
| 7016 | if (source == nullptr) { |
| 7017 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse) |
| 7018 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7019 | } else { |
| 7020 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse) |
| 7021 | MergeFrom(*source); |
| 7022 | } |
| 7023 | } |
| 7024 | |
| 7025 | void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) { |
| 7026 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 7027 | GOOGLE_DCHECK_NE(&from, this); |
| 7028 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7029 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7030 | (void) cached_has_bits; |
| 7031 | |
| 7032 | if (from.reason_detail().size() > 0) { |
| 7033 | |
| 7034 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7035 | } |
| 7036 | if (from.status() != 0) { |
| 7037 | set_status(from.status()); |
| 7038 | } |
| 7039 | if (from.reason() != 0) { |
| 7040 | set_reason(from.reason()); |
| 7041 | } |
| 7042 | } |
| 7043 | |
| 7044 | void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7045 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 7046 | if (&from == this) return; |
| 7047 | Clear(); |
| 7048 | MergeFrom(from); |
| 7049 | } |
| 7050 | |
| 7051 | void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) { |
| 7052 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 7053 | if (&from == this) return; |
| 7054 | Clear(); |
| 7055 | MergeFrom(from); |
| 7056 | } |
| 7057 | |
| 7058 | bool SetRemoteEndpointResponse::IsInitialized() const { |
| 7059 | return true; |
| 7060 | } |
| 7061 | |
| 7062 | void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) { |
| 7063 | if (other == this) return; |
| 7064 | InternalSwap(other); |
| 7065 | } |
| 7066 | void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) { |
| 7067 | using std::swap; |
| 7068 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7069 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7070 | GetArenaNoVirtual()); |
| 7071 | swap(status_, other->status_); |
| 7072 | swap(reason_, other->reason_); |
| 7073 | } |
| 7074 | |
| 7075 | ::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const { |
| 7076 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7077 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7078 | } |
| 7079 | |
| 7080 | |
| 7081 | // =================================================================== |
| 7082 | |
| 7083 | void GetLoggingEndpointResponse::InitAsDefaultInstance() { |
| 7084 | } |
| 7085 | class GetLoggingEndpointResponse::HasBitSetters { |
| 7086 | public: |
| 7087 | }; |
| 7088 | |
| 7089 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7090 | const int GetLoggingEndpointResponse::kStatusFieldNumber; |
| 7091 | const int GetLoggingEndpointResponse::kReasonFieldNumber; |
| 7092 | const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber; |
| 7093 | const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber; |
| 7094 | const int GetLoggingEndpointResponse::kReasonDetailFieldNumber; |
| 7095 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7096 | |
| 7097 | GetLoggingEndpointResponse::GetLoggingEndpointResponse() |
| 7098 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7099 | SharedCtor(); |
| 7100 | // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse) |
| 7101 | } |
| 7102 | GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from) |
| 7103 | : ::google::protobuf::Message(), |
| 7104 | _internal_metadata_(nullptr) { |
| 7105 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7106 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7107 | if (from.logging_endpoint().size() > 0) { |
| 7108 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 7109 | } |
| 7110 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7111 | if (from.logging_protocol().size() > 0) { |
| 7112 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 7113 | } |
| 7114 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7115 | if (from.reason_detail().size() > 0) { |
| 7116 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7117 | } |
| 7118 | ::memcpy(&status_, &from.status_, |
| 7119 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 7120 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7121 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse) |
| 7122 | } |
| 7123 | |
| 7124 | void GetLoggingEndpointResponse::SharedCtor() { |
| 7125 | ::google::protobuf::internal::InitSCC( |
| 7126 | &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7127 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7128 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7129 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7130 | ::memset(&status_, 0, static_cast<size_t>( |
| 7131 | reinterpret_cast<char*>(&reason_) - |
| 7132 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7133 | } |
| 7134 | |
| 7135 | GetLoggingEndpointResponse::~GetLoggingEndpointResponse() { |
| 7136 | // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse) |
| 7137 | SharedDtor(); |
| 7138 | } |
| 7139 | |
| 7140 | void GetLoggingEndpointResponse::SharedDtor() { |
| 7141 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7142 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7143 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7144 | } |
| 7145 | |
| 7146 | void GetLoggingEndpointResponse::SetCachedSize(int size) const { |
| 7147 | _cached_size_.Set(size); |
| 7148 | } |
| 7149 | const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() { |
| 7150 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7151 | return *internal_default_instance(); |
| 7152 | } |
| 7153 | |
| 7154 | |
| 7155 | void GetLoggingEndpointResponse::Clear() { |
| 7156 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse) |
| 7157 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7158 | // Prevent compiler warnings about cached_has_bits being unused |
| 7159 | (void) cached_has_bits; |
| 7160 | |
| 7161 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7162 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7163 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7164 | ::memset(&status_, 0, static_cast<size_t>( |
| 7165 | reinterpret_cast<char*>(&reason_) - |
| 7166 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7167 | _internal_metadata_.Clear(); |
| 7168 | } |
| 7169 | |
| 7170 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7171 | const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 7172 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7173 | auto msg = static_cast<GetLoggingEndpointResponse*>(object); |
| 7174 | ::google::protobuf::int32 size; (void)size; |
| 7175 | int depth; (void)depth; |
| 7176 | ::google::protobuf::uint32 tag; |
| 7177 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7178 | auto ptr = begin; |
| 7179 | while (ptr < end) { |
| 7180 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7181 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7182 | switch (tag >> 3) { |
| 7183 | // .dmi.Status status = 1; |
| 7184 | case 1: { |
| 7185 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7186 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7187 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 7188 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7189 | break; |
| 7190 | } |
| 7191 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7192 | case 2: { |
| 7193 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 7194 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7195 | msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val)); |
| 7196 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7197 | break; |
| 7198 | } |
| 7199 | // string logging_endpoint = 3; |
| 7200 | case 3: { |
| 7201 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7202 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7203 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7204 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 7205 | object = msg->mutable_logging_endpoint(); |
| 7206 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7207 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7208 | goto string_till_end; |
| 7209 | } |
| 7210 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7211 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7212 | ptr += size; |
| 7213 | break; |
| 7214 | } |
| 7215 | // string logging_protocol = 4; |
| 7216 | case 4: { |
| 7217 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 7218 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7219 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7220 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 7221 | object = msg->mutable_logging_protocol(); |
| 7222 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7223 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7224 | goto string_till_end; |
| 7225 | } |
| 7226 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7227 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7228 | ptr += size; |
| 7229 | break; |
| 7230 | } |
| 7231 | // string reason_detail = 5; |
| 7232 | case 5: { |
| 7233 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 7234 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7235 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7236 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail"); |
| 7237 | object = msg->mutable_reason_detail(); |
| 7238 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7239 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7240 | goto string_till_end; |
| 7241 | } |
| 7242 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7243 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7244 | ptr += size; |
| 7245 | break; |
| 7246 | } |
| 7247 | default: { |
| 7248 | handle_unusual: |
| 7249 | if ((tag & 7) == 4 || tag == 0) { |
| 7250 | ctx->EndGroup(tag); |
| 7251 | return ptr; |
| 7252 | } |
| 7253 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7254 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7255 | ptr = res.first; |
| 7256 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7257 | if (res.second) return ptr; |
| 7258 | } |
| 7259 | } // switch |
| 7260 | } // while |
| 7261 | return ptr; |
| 7262 | string_till_end: |
| 7263 | static_cast<::std::string*>(object)->clear(); |
| 7264 | static_cast<::std::string*>(object)->reserve(size); |
| 7265 | goto len_delim_till_end; |
| 7266 | len_delim_till_end: |
| 7267 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7268 | {parser_till_end, object}, size); |
| 7269 | } |
| 7270 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7271 | bool GetLoggingEndpointResponse::MergePartialFromCodedStream( |
| 7272 | ::google::protobuf::io::CodedInputStream* input) { |
| 7273 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7274 | ::google::protobuf::uint32 tag; |
| 7275 | // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse) |
| 7276 | for (;;) { |
| 7277 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7278 | tag = p.first; |
| 7279 | if (!p.second) goto handle_unusual; |
| 7280 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7281 | // .dmi.Status status = 1; |
| 7282 | case 1: { |
| 7283 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 7284 | int value = 0; |
| 7285 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7286 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7287 | input, &value))); |
| 7288 | set_status(static_cast< ::dmi::Status >(value)); |
| 7289 | } else { |
| 7290 | goto handle_unusual; |
| 7291 | } |
| 7292 | break; |
| 7293 | } |
| 7294 | |
| 7295 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7296 | case 2: { |
| 7297 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7298 | int value = 0; |
| 7299 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7300 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7301 | input, &value))); |
| 7302 | set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value)); |
| 7303 | } else { |
| 7304 | goto handle_unusual; |
| 7305 | } |
| 7306 | break; |
| 7307 | } |
| 7308 | |
| 7309 | // string logging_endpoint = 3; |
| 7310 | case 3: { |
| 7311 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7312 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7313 | input, this->mutable_logging_endpoint())); |
| 7314 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7315 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 7316 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7317 | "dmi.GetLoggingEndpointResponse.logging_endpoint")); |
| 7318 | } else { |
| 7319 | goto handle_unusual; |
| 7320 | } |
| 7321 | break; |
| 7322 | } |
| 7323 | |
| 7324 | // string logging_protocol = 4; |
| 7325 | case 4: { |
| 7326 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7327 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7328 | input, this->mutable_logging_protocol())); |
| 7329 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7330 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 7331 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7332 | "dmi.GetLoggingEndpointResponse.logging_protocol")); |
| 7333 | } else { |
| 7334 | goto handle_unusual; |
| 7335 | } |
| 7336 | break; |
| 7337 | } |
| 7338 | |
| 7339 | // string reason_detail = 5; |
| 7340 | case 5: { |
| 7341 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 7342 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7343 | input, this->mutable_reason_detail())); |
| 7344 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7345 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7346 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7347 | "dmi.GetLoggingEndpointResponse.reason_detail")); |
| 7348 | } else { |
| 7349 | goto handle_unusual; |
| 7350 | } |
| 7351 | break; |
| 7352 | } |
| 7353 | |
| 7354 | default: { |
| 7355 | handle_unusual: |
| 7356 | if (tag == 0) { |
| 7357 | goto success; |
| 7358 | } |
| 7359 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7360 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7361 | break; |
| 7362 | } |
| 7363 | } |
| 7364 | } |
| 7365 | success: |
| 7366 | // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse) |
| 7367 | return true; |
| 7368 | failure: |
| 7369 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse) |
| 7370 | return false; |
| 7371 | #undef DO_ |
| 7372 | } |
| 7373 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7374 | |
| 7375 | void GetLoggingEndpointResponse::SerializeWithCachedSizes( |
| 7376 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7377 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse) |
| 7378 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7379 | (void) cached_has_bits; |
| 7380 | |
| 7381 | // .dmi.Status status = 1; |
| 7382 | if (this->status() != 0) { |
| 7383 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7384 | 1, this->status(), output); |
| 7385 | } |
| 7386 | |
| 7387 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7388 | if (this->reason() != 0) { |
| 7389 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7390 | 2, this->reason(), output); |
| 7391 | } |
| 7392 | |
| 7393 | // string logging_endpoint = 3; |
| 7394 | if (this->logging_endpoint().size() > 0) { |
| 7395 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7396 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 7397 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7398 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 7399 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7400 | 3, this->logging_endpoint(), output); |
| 7401 | } |
| 7402 | |
| 7403 | // string logging_protocol = 4; |
| 7404 | if (this->logging_protocol().size() > 0) { |
| 7405 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7406 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 7407 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7408 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 7409 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7410 | 4, this->logging_protocol(), output); |
| 7411 | } |
| 7412 | |
| 7413 | // string reason_detail = 5; |
| 7414 | if (this->reason_detail().size() > 0) { |
| 7415 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7416 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7417 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7418 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 7419 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7420 | 5, this->reason_detail(), output); |
| 7421 | } |
| 7422 | |
| 7423 | if (_internal_metadata_.have_unknown_fields()) { |
| 7424 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7425 | _internal_metadata_.unknown_fields(), output); |
| 7426 | } |
| 7427 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse) |
| 7428 | } |
| 7429 | |
| 7430 | ::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 7431 | ::google::protobuf::uint8* target) const { |
| 7432 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse) |
| 7433 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7434 | (void) cached_has_bits; |
| 7435 | |
| 7436 | // .dmi.Status status = 1; |
| 7437 | if (this->status() != 0) { |
| 7438 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7439 | 1, this->status(), target); |
| 7440 | } |
| 7441 | |
| 7442 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7443 | if (this->reason() != 0) { |
| 7444 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7445 | 2, this->reason(), target); |
| 7446 | } |
| 7447 | |
| 7448 | // string logging_endpoint = 3; |
| 7449 | if (this->logging_endpoint().size() > 0) { |
| 7450 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7451 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 7452 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7453 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 7454 | target = |
| 7455 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7456 | 3, this->logging_endpoint(), target); |
| 7457 | } |
| 7458 | |
| 7459 | // string logging_protocol = 4; |
| 7460 | if (this->logging_protocol().size() > 0) { |
| 7461 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7462 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 7463 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7464 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 7465 | target = |
| 7466 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7467 | 4, this->logging_protocol(), target); |
| 7468 | } |
| 7469 | |
| 7470 | // string reason_detail = 5; |
| 7471 | if (this->reason_detail().size() > 0) { |
| 7472 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7473 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7474 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7475 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 7476 | target = |
| 7477 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7478 | 5, this->reason_detail(), target); |
| 7479 | } |
| 7480 | |
| 7481 | if (_internal_metadata_.have_unknown_fields()) { |
| 7482 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7483 | _internal_metadata_.unknown_fields(), target); |
| 7484 | } |
| 7485 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse) |
| 7486 | return target; |
| 7487 | } |
| 7488 | |
| 7489 | size_t GetLoggingEndpointResponse::ByteSizeLong() const { |
| 7490 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse) |
| 7491 | size_t total_size = 0; |
| 7492 | |
| 7493 | if (_internal_metadata_.have_unknown_fields()) { |
| 7494 | total_size += |
| 7495 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7496 | _internal_metadata_.unknown_fields()); |
| 7497 | } |
| 7498 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7499 | // Prevent compiler warnings about cached_has_bits being unused |
| 7500 | (void) cached_has_bits; |
| 7501 | |
| 7502 | // string logging_endpoint = 3; |
| 7503 | if (this->logging_endpoint().size() > 0) { |
| 7504 | total_size += 1 + |
| 7505 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7506 | this->logging_endpoint()); |
| 7507 | } |
| 7508 | |
| 7509 | // string logging_protocol = 4; |
| 7510 | if (this->logging_protocol().size() > 0) { |
| 7511 | total_size += 1 + |
| 7512 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7513 | this->logging_protocol()); |
| 7514 | } |
| 7515 | |
| 7516 | // string reason_detail = 5; |
| 7517 | if (this->reason_detail().size() > 0) { |
| 7518 | total_size += 1 + |
| 7519 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7520 | this->reason_detail()); |
| 7521 | } |
| 7522 | |
| 7523 | // .dmi.Status status = 1; |
| 7524 | if (this->status() != 0) { |
| 7525 | total_size += 1 + |
| 7526 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7527 | } |
| 7528 | |
| 7529 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 7530 | if (this->reason() != 0) { |
| 7531 | total_size += 1 + |
| 7532 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7533 | } |
| 7534 | |
| 7535 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7536 | SetCachedSize(cached_size); |
| 7537 | return total_size; |
| 7538 | } |
| 7539 | |
| 7540 | void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7541 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7542 | GOOGLE_DCHECK_NE(&from, this); |
| 7543 | const GetLoggingEndpointResponse* source = |
| 7544 | ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>( |
| 7545 | &from); |
| 7546 | if (source == nullptr) { |
| 7547 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse) |
| 7548 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7549 | } else { |
| 7550 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse) |
| 7551 | MergeFrom(*source); |
| 7552 | } |
| 7553 | } |
| 7554 | |
| 7555 | void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) { |
| 7556 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 7557 | GOOGLE_DCHECK_NE(&from, this); |
| 7558 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7559 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7560 | (void) cached_has_bits; |
| 7561 | |
| 7562 | if (from.logging_endpoint().size() > 0) { |
| 7563 | |
| 7564 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 7565 | } |
| 7566 | if (from.logging_protocol().size() > 0) { |
| 7567 | |
| 7568 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 7569 | } |
| 7570 | if (from.reason_detail().size() > 0) { |
| 7571 | |
| 7572 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7573 | } |
| 7574 | if (from.status() != 0) { |
| 7575 | set_status(from.status()); |
| 7576 | } |
| 7577 | if (from.reason() != 0) { |
| 7578 | set_reason(from.reason()); |
| 7579 | } |
| 7580 | } |
| 7581 | |
| 7582 | void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7583 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7584 | if (&from == this) return; |
| 7585 | Clear(); |
| 7586 | MergeFrom(from); |
| 7587 | } |
| 7588 | |
| 7589 | void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) { |
| 7590 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7591 | if (&from == this) return; |
| 7592 | Clear(); |
| 7593 | MergeFrom(from); |
| 7594 | } |
| 7595 | |
| 7596 | bool GetLoggingEndpointResponse::IsInitialized() const { |
| 7597 | return true; |
| 7598 | } |
| 7599 | |
| 7600 | void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) { |
| 7601 | if (other == this) return; |
| 7602 | InternalSwap(other); |
| 7603 | } |
| 7604 | void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) { |
| 7605 | using std::swap; |
| 7606 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7607 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7608 | GetArenaNoVirtual()); |
| 7609 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7610 | GetArenaNoVirtual()); |
| 7611 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7612 | GetArenaNoVirtual()); |
| 7613 | swap(status_, other->status_); |
| 7614 | swap(reason_, other->reason_); |
| 7615 | } |
| 7616 | |
| 7617 | ::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const { |
| 7618 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7619 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7620 | } |
| 7621 | |
| 7622 | |
| 7623 | // =================================================================== |
| 7624 | |
| 7625 | void SetMsgBusEndpointRequest::InitAsDefaultInstance() { |
| 7626 | } |
| 7627 | class SetMsgBusEndpointRequest::HasBitSetters { |
| 7628 | public: |
| 7629 | }; |
| 7630 | |
| 7631 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7632 | const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber; |
| 7633 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7634 | |
| 7635 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest() |
| 7636 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7637 | SharedCtor(); |
| 7638 | // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest) |
| 7639 | } |
| 7640 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from) |
| 7641 | : ::google::protobuf::Message(), |
| 7642 | _internal_metadata_(nullptr) { |
| 7643 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7644 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7645 | if (from.msgbus_endpoint().size() > 0) { |
| 7646 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7647 | } |
| 7648 | // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest) |
| 7649 | } |
| 7650 | |
| 7651 | void SetMsgBusEndpointRequest::SharedCtor() { |
| 7652 | ::google::protobuf::internal::InitSCC( |
| 7653 | &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7654 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7655 | } |
| 7656 | |
| 7657 | SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() { |
| 7658 | // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest) |
| 7659 | SharedDtor(); |
| 7660 | } |
| 7661 | |
| 7662 | void SetMsgBusEndpointRequest::SharedDtor() { |
| 7663 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7664 | } |
| 7665 | |
| 7666 | void SetMsgBusEndpointRequest::SetCachedSize(int size) const { |
| 7667 | _cached_size_.Set(size); |
| 7668 | } |
| 7669 | const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() { |
| 7670 | ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7671 | return *internal_default_instance(); |
| 7672 | } |
| 7673 | |
| 7674 | |
| 7675 | void SetMsgBusEndpointRequest::Clear() { |
| 7676 | // @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest) |
| 7677 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7678 | // Prevent compiler warnings about cached_has_bits being unused |
| 7679 | (void) cached_has_bits; |
| 7680 | |
| 7681 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7682 | _internal_metadata_.Clear(); |
| 7683 | } |
| 7684 | |
| 7685 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7686 | const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 7687 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7688 | auto msg = static_cast<SetMsgBusEndpointRequest*>(object); |
| 7689 | ::google::protobuf::int32 size; (void)size; |
| 7690 | int depth; (void)depth; |
| 7691 | ::google::protobuf::uint32 tag; |
| 7692 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7693 | auto ptr = begin; |
| 7694 | while (ptr < end) { |
| 7695 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7696 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7697 | switch (tag >> 3) { |
| 7698 | // string msgbus_endpoint = 1; |
| 7699 | case 1: { |
| 7700 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7701 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7702 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7703 | ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7704 | object = msg->mutable_msgbus_endpoint(); |
| 7705 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7706 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7707 | goto string_till_end; |
| 7708 | } |
| 7709 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7710 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7711 | ptr += size; |
| 7712 | break; |
| 7713 | } |
| 7714 | default: { |
| 7715 | handle_unusual: |
| 7716 | if ((tag & 7) == 4 || tag == 0) { |
| 7717 | ctx->EndGroup(tag); |
| 7718 | return ptr; |
| 7719 | } |
| 7720 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7721 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7722 | ptr = res.first; |
| 7723 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7724 | if (res.second) return ptr; |
| 7725 | } |
| 7726 | } // switch |
| 7727 | } // while |
| 7728 | return ptr; |
| 7729 | string_till_end: |
| 7730 | static_cast<::std::string*>(object)->clear(); |
| 7731 | static_cast<::std::string*>(object)->reserve(size); |
| 7732 | goto len_delim_till_end; |
| 7733 | len_delim_till_end: |
| 7734 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7735 | {parser_till_end, object}, size); |
| 7736 | } |
| 7737 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7738 | bool SetMsgBusEndpointRequest::MergePartialFromCodedStream( |
| 7739 | ::google::protobuf::io::CodedInputStream* input) { |
| 7740 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7741 | ::google::protobuf::uint32 tag; |
| 7742 | // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest) |
| 7743 | for (;;) { |
| 7744 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7745 | tag = p.first; |
| 7746 | if (!p.second) goto handle_unusual; |
| 7747 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7748 | // string msgbus_endpoint = 1; |
| 7749 | case 1: { |
| 7750 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7751 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7752 | input, this->mutable_msgbus_endpoint())); |
| 7753 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7754 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7755 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7756 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint")); |
| 7757 | } else { |
| 7758 | goto handle_unusual; |
| 7759 | } |
| 7760 | break; |
| 7761 | } |
| 7762 | |
| 7763 | default: { |
| 7764 | handle_unusual: |
| 7765 | if (tag == 0) { |
| 7766 | goto success; |
| 7767 | } |
| 7768 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7769 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7770 | break; |
| 7771 | } |
| 7772 | } |
| 7773 | } |
| 7774 | success: |
| 7775 | // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest) |
| 7776 | return true; |
| 7777 | failure: |
| 7778 | // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest) |
| 7779 | return false; |
| 7780 | #undef DO_ |
| 7781 | } |
| 7782 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7783 | |
| 7784 | void SetMsgBusEndpointRequest::SerializeWithCachedSizes( |
| 7785 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7786 | // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest) |
| 7787 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7788 | (void) cached_has_bits; |
| 7789 | |
| 7790 | // string msgbus_endpoint = 1; |
| 7791 | if (this->msgbus_endpoint().size() > 0) { |
| 7792 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7793 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7794 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7795 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7796 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7797 | 1, this->msgbus_endpoint(), output); |
| 7798 | } |
| 7799 | |
| 7800 | if (_internal_metadata_.have_unknown_fields()) { |
| 7801 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7802 | _internal_metadata_.unknown_fields(), output); |
| 7803 | } |
| 7804 | // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest) |
| 7805 | } |
| 7806 | |
| 7807 | ::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 7808 | ::google::protobuf::uint8* target) const { |
| 7809 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest) |
| 7810 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7811 | (void) cached_has_bits; |
| 7812 | |
| 7813 | // string msgbus_endpoint = 1; |
| 7814 | if (this->msgbus_endpoint().size() > 0) { |
| 7815 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7816 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7817 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7818 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7819 | target = |
| 7820 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7821 | 1, this->msgbus_endpoint(), target); |
| 7822 | } |
| 7823 | |
| 7824 | if (_internal_metadata_.have_unknown_fields()) { |
| 7825 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7826 | _internal_metadata_.unknown_fields(), target); |
| 7827 | } |
| 7828 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest) |
| 7829 | return target; |
| 7830 | } |
| 7831 | |
| 7832 | size_t SetMsgBusEndpointRequest::ByteSizeLong() const { |
| 7833 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest) |
| 7834 | size_t total_size = 0; |
| 7835 | |
| 7836 | if (_internal_metadata_.have_unknown_fields()) { |
| 7837 | total_size += |
| 7838 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7839 | _internal_metadata_.unknown_fields()); |
| 7840 | } |
| 7841 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7842 | // Prevent compiler warnings about cached_has_bits being unused |
| 7843 | (void) cached_has_bits; |
| 7844 | |
| 7845 | // string msgbus_endpoint = 1; |
| 7846 | if (this->msgbus_endpoint().size() > 0) { |
| 7847 | total_size += 1 + |
| 7848 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7849 | this->msgbus_endpoint()); |
| 7850 | } |
| 7851 | |
| 7852 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7853 | SetCachedSize(cached_size); |
| 7854 | return total_size; |
| 7855 | } |
| 7856 | |
| 7857 | void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 7858 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7859 | GOOGLE_DCHECK_NE(&from, this); |
| 7860 | const SetMsgBusEndpointRequest* source = |
| 7861 | ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>( |
| 7862 | &from); |
| 7863 | if (source == nullptr) { |
| 7864 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest) |
| 7865 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7866 | } else { |
| 7867 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest) |
| 7868 | MergeFrom(*source); |
| 7869 | } |
| 7870 | } |
| 7871 | |
| 7872 | void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) { |
| 7873 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7874 | GOOGLE_DCHECK_NE(&from, this); |
| 7875 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7876 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7877 | (void) cached_has_bits; |
| 7878 | |
| 7879 | if (from.msgbus_endpoint().size() > 0) { |
| 7880 | |
| 7881 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7882 | } |
| 7883 | } |
| 7884 | |
| 7885 | void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 7886 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7887 | if (&from == this) return; |
| 7888 | Clear(); |
| 7889 | MergeFrom(from); |
| 7890 | } |
| 7891 | |
| 7892 | void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) { |
| 7893 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7894 | if (&from == this) return; |
| 7895 | Clear(); |
| 7896 | MergeFrom(from); |
| 7897 | } |
| 7898 | |
| 7899 | bool SetMsgBusEndpointRequest::IsInitialized() const { |
| 7900 | return true; |
| 7901 | } |
| 7902 | |
| 7903 | void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) { |
| 7904 | if (other == this) return; |
| 7905 | InternalSwap(other); |
| 7906 | } |
| 7907 | void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) { |
| 7908 | using std::swap; |
| 7909 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7910 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7911 | GetArenaNoVirtual()); |
| 7912 | } |
| 7913 | |
| 7914 | ::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const { |
| 7915 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7916 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7917 | } |
| 7918 | |
| 7919 | |
| 7920 | // =================================================================== |
| 7921 | |
| 7922 | void GetMsgBusEndpointResponse::InitAsDefaultInstance() { |
| 7923 | } |
| 7924 | class GetMsgBusEndpointResponse::HasBitSetters { |
| 7925 | public: |
| 7926 | }; |
| 7927 | |
| 7928 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7929 | const int GetMsgBusEndpointResponse::kStatusFieldNumber; |
| 7930 | const int GetMsgBusEndpointResponse::kReasonFieldNumber; |
| 7931 | const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber; |
| 7932 | const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber; |
| 7933 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7934 | |
| 7935 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse() |
| 7936 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7937 | SharedCtor(); |
| 7938 | // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse) |
| 7939 | } |
| 7940 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from) |
| 7941 | : ::google::protobuf::Message(), |
| 7942 | _internal_metadata_(nullptr) { |
| 7943 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7944 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7945 | if (from.msgbus_endpoint().size() > 0) { |
| 7946 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7947 | } |
| 7948 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7949 | if (from.reason_detail().size() > 0) { |
| 7950 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7951 | } |
| 7952 | ::memcpy(&status_, &from.status_, |
| 7953 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 7954 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7955 | // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse) |
| 7956 | } |
| 7957 | |
| 7958 | void GetMsgBusEndpointResponse::SharedCtor() { |
| 7959 | ::google::protobuf::internal::InitSCC( |
| 7960 | &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7961 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7962 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7963 | ::memset(&status_, 0, static_cast<size_t>( |
| 7964 | reinterpret_cast<char*>(&reason_) - |
| 7965 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7966 | } |
| 7967 | |
| 7968 | GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() { |
| 7969 | // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse) |
| 7970 | SharedDtor(); |
| 7971 | } |
| 7972 | |
| 7973 | void GetMsgBusEndpointResponse::SharedDtor() { |
| 7974 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7975 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7976 | } |
| 7977 | |
| 7978 | void GetMsgBusEndpointResponse::SetCachedSize(int size) const { |
| 7979 | _cached_size_.Set(size); |
| 7980 | } |
| 7981 | const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() { |
| 7982 | ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7983 | return *internal_default_instance(); |
| 7984 | } |
| 7985 | |
| 7986 | |
| 7987 | void GetMsgBusEndpointResponse::Clear() { |
| 7988 | // @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse) |
| 7989 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7990 | // Prevent compiler warnings about cached_has_bits being unused |
| 7991 | (void) cached_has_bits; |
| 7992 | |
| 7993 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7994 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7995 | ::memset(&status_, 0, static_cast<size_t>( |
| 7996 | reinterpret_cast<char*>(&reason_) - |
| 7997 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7998 | _internal_metadata_.Clear(); |
| 7999 | } |
| 8000 | |
| 8001 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8002 | const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 8003 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8004 | auto msg = static_cast<GetMsgBusEndpointResponse*>(object); |
| 8005 | ::google::protobuf::int32 size; (void)size; |
| 8006 | int depth; (void)depth; |
| 8007 | ::google::protobuf::uint32 tag; |
| 8008 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8009 | auto ptr = begin; |
| 8010 | while (ptr < end) { |
| 8011 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8012 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8013 | switch (tag >> 3) { |
| 8014 | // .dmi.Status status = 1; |
| 8015 | case 1: { |
| 8016 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 8017 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8018 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 8019 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8020 | break; |
| 8021 | } |
| 8022 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 8023 | case 2: { |
| 8024 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 8025 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8026 | msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val)); |
| 8027 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8028 | break; |
| 8029 | } |
| 8030 | // string msgbus_endpoint = 3; |
| 8031 | case 3: { |
| 8032 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 8033 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8034 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8035 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 8036 | object = msg->mutable_msgbus_endpoint(); |
| 8037 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8038 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8039 | goto string_till_end; |
| 8040 | } |
| 8041 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8042 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8043 | ptr += size; |
| 8044 | break; |
| 8045 | } |
| 8046 | // string reason_detail = 4; |
| 8047 | case 4: { |
| 8048 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 8049 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8050 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8051 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 8052 | object = msg->mutable_reason_detail(); |
| 8053 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8054 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8055 | goto string_till_end; |
| 8056 | } |
| 8057 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8058 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8059 | ptr += size; |
| 8060 | break; |
| 8061 | } |
| 8062 | default: { |
| 8063 | handle_unusual: |
| 8064 | if ((tag & 7) == 4 || tag == 0) { |
| 8065 | ctx->EndGroup(tag); |
| 8066 | return ptr; |
| 8067 | } |
| 8068 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8069 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8070 | ptr = res.first; |
| 8071 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8072 | if (res.second) return ptr; |
| 8073 | } |
| 8074 | } // switch |
| 8075 | } // while |
| 8076 | return ptr; |
| 8077 | string_till_end: |
| 8078 | static_cast<::std::string*>(object)->clear(); |
| 8079 | static_cast<::std::string*>(object)->reserve(size); |
| 8080 | goto len_delim_till_end; |
| 8081 | len_delim_till_end: |
| 8082 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8083 | {parser_till_end, object}, size); |
| 8084 | } |
| 8085 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8086 | bool GetMsgBusEndpointResponse::MergePartialFromCodedStream( |
| 8087 | ::google::protobuf::io::CodedInputStream* input) { |
| 8088 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8089 | ::google::protobuf::uint32 tag; |
| 8090 | // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse) |
| 8091 | for (;;) { |
| 8092 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8093 | tag = p.first; |
| 8094 | if (!p.second) goto handle_unusual; |
| 8095 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8096 | // .dmi.Status status = 1; |
| 8097 | case 1: { |
| 8098 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 8099 | int value = 0; |
| 8100 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8101 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8102 | input, &value))); |
| 8103 | set_status(static_cast< ::dmi::Status >(value)); |
| 8104 | } else { |
| 8105 | goto handle_unusual; |
| 8106 | } |
| 8107 | break; |
| 8108 | } |
| 8109 | |
| 8110 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 8111 | case 2: { |
| 8112 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 8113 | int value = 0; |
| 8114 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8115 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8116 | input, &value))); |
| 8117 | set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value)); |
| 8118 | } else { |
| 8119 | goto handle_unusual; |
| 8120 | } |
| 8121 | break; |
| 8122 | } |
| 8123 | |
| 8124 | // string msgbus_endpoint = 3; |
| 8125 | case 3: { |
| 8126 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 8127 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8128 | input, this->mutable_msgbus_endpoint())); |
| 8129 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8130 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 8131 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8132 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint")); |
| 8133 | } else { |
| 8134 | goto handle_unusual; |
| 8135 | } |
| 8136 | break; |
| 8137 | } |
| 8138 | |
| 8139 | // string reason_detail = 4; |
| 8140 | case 4: { |
| 8141 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 8142 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8143 | input, this->mutable_reason_detail())); |
| 8144 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8145 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8146 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8147 | "dmi.GetMsgBusEndpointResponse.reason_detail")); |
| 8148 | } else { |
| 8149 | goto handle_unusual; |
| 8150 | } |
| 8151 | break; |
| 8152 | } |
| 8153 | |
| 8154 | default: { |
| 8155 | handle_unusual: |
| 8156 | if (tag == 0) { |
| 8157 | goto success; |
| 8158 | } |
| 8159 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8160 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8161 | break; |
| 8162 | } |
| 8163 | } |
| 8164 | } |
| 8165 | success: |
| 8166 | // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse) |
| 8167 | return true; |
| 8168 | failure: |
| 8169 | // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse) |
| 8170 | return false; |
| 8171 | #undef DO_ |
| 8172 | } |
| 8173 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8174 | |
| 8175 | void GetMsgBusEndpointResponse::SerializeWithCachedSizes( |
| 8176 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8177 | // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse) |
| 8178 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8179 | (void) cached_has_bits; |
| 8180 | |
| 8181 | // .dmi.Status status = 1; |
| 8182 | if (this->status() != 0) { |
| 8183 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8184 | 1, this->status(), output); |
| 8185 | } |
| 8186 | |
| 8187 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 8188 | if (this->reason() != 0) { |
| 8189 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8190 | 2, this->reason(), output); |
| 8191 | } |
| 8192 | |
| 8193 | // string msgbus_endpoint = 3; |
| 8194 | if (this->msgbus_endpoint().size() > 0) { |
| 8195 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8196 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 8197 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8198 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 8199 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8200 | 3, this->msgbus_endpoint(), output); |
| 8201 | } |
| 8202 | |
| 8203 | // string reason_detail = 4; |
| 8204 | if (this->reason_detail().size() > 0) { |
| 8205 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8206 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8207 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8208 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 8209 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8210 | 4, this->reason_detail(), output); |
| 8211 | } |
| 8212 | |
| 8213 | if (_internal_metadata_.have_unknown_fields()) { |
| 8214 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8215 | _internal_metadata_.unknown_fields(), output); |
| 8216 | } |
| 8217 | // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse) |
| 8218 | } |
| 8219 | |
| 8220 | ::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 8221 | ::google::protobuf::uint8* target) const { |
| 8222 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse) |
| 8223 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8224 | (void) cached_has_bits; |
| 8225 | |
| 8226 | // .dmi.Status status = 1; |
| 8227 | if (this->status() != 0) { |
| 8228 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8229 | 1, this->status(), target); |
| 8230 | } |
| 8231 | |
| 8232 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 8233 | if (this->reason() != 0) { |
| 8234 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8235 | 2, this->reason(), target); |
| 8236 | } |
| 8237 | |
| 8238 | // string msgbus_endpoint = 3; |
| 8239 | if (this->msgbus_endpoint().size() > 0) { |
| 8240 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8241 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 8242 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8243 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 8244 | target = |
| 8245 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8246 | 3, this->msgbus_endpoint(), target); |
| 8247 | } |
| 8248 | |
| 8249 | // string reason_detail = 4; |
| 8250 | if (this->reason_detail().size() > 0) { |
| 8251 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8252 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8253 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8254 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 8255 | target = |
| 8256 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8257 | 4, this->reason_detail(), target); |
| 8258 | } |
| 8259 | |
| 8260 | if (_internal_metadata_.have_unknown_fields()) { |
| 8261 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8262 | _internal_metadata_.unknown_fields(), target); |
| 8263 | } |
| 8264 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse) |
| 8265 | return target; |
| 8266 | } |
| 8267 | |
| 8268 | size_t GetMsgBusEndpointResponse::ByteSizeLong() const { |
| 8269 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse) |
| 8270 | size_t total_size = 0; |
| 8271 | |
| 8272 | if (_internal_metadata_.have_unknown_fields()) { |
| 8273 | total_size += |
| 8274 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8275 | _internal_metadata_.unknown_fields()); |
| 8276 | } |
| 8277 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8278 | // Prevent compiler warnings about cached_has_bits being unused |
| 8279 | (void) cached_has_bits; |
| 8280 | |
| 8281 | // string msgbus_endpoint = 3; |
| 8282 | if (this->msgbus_endpoint().size() > 0) { |
| 8283 | total_size += 1 + |
| 8284 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8285 | this->msgbus_endpoint()); |
| 8286 | } |
| 8287 | |
| 8288 | // string reason_detail = 4; |
| 8289 | if (this->reason_detail().size() > 0) { |
| 8290 | total_size += 1 + |
| 8291 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8292 | this->reason_detail()); |
| 8293 | } |
| 8294 | |
| 8295 | // .dmi.Status status = 1; |
| 8296 | if (this->status() != 0) { |
| 8297 | total_size += 1 + |
| 8298 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 8299 | } |
| 8300 | |
| 8301 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 8302 | if (this->reason() != 0) { |
| 8303 | total_size += 1 + |
| 8304 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 8305 | } |
| 8306 | |
| 8307 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8308 | SetCachedSize(cached_size); |
| 8309 | return total_size; |
| 8310 | } |
| 8311 | |
| 8312 | void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 8313 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 8314 | GOOGLE_DCHECK_NE(&from, this); |
| 8315 | const GetMsgBusEndpointResponse* source = |
| 8316 | ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>( |
| 8317 | &from); |
| 8318 | if (source == nullptr) { |
| 8319 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse) |
| 8320 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8321 | } else { |
| 8322 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse) |
| 8323 | MergeFrom(*source); |
| 8324 | } |
| 8325 | } |
| 8326 | |
| 8327 | void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) { |
| 8328 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 8329 | GOOGLE_DCHECK_NE(&from, this); |
| 8330 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8331 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8332 | (void) cached_has_bits; |
| 8333 | |
| 8334 | if (from.msgbus_endpoint().size() > 0) { |
| 8335 | |
| 8336 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 8337 | } |
| 8338 | if (from.reason_detail().size() > 0) { |
| 8339 | |
| 8340 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 8341 | } |
| 8342 | if (from.status() != 0) { |
| 8343 | set_status(from.status()); |
| 8344 | } |
| 8345 | if (from.reason() != 0) { |
| 8346 | set_reason(from.reason()); |
| 8347 | } |
| 8348 | } |
| 8349 | |
| 8350 | void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 8351 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 8352 | if (&from == this) return; |
| 8353 | Clear(); |
| 8354 | MergeFrom(from); |
| 8355 | } |
| 8356 | |
| 8357 | void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) { |
| 8358 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 8359 | if (&from == this) return; |
| 8360 | Clear(); |
| 8361 | MergeFrom(from); |
| 8362 | } |
| 8363 | |
| 8364 | bool GetMsgBusEndpointResponse::IsInitialized() const { |
| 8365 | return true; |
| 8366 | } |
| 8367 | |
| 8368 | void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) { |
| 8369 | if (other == this) return; |
| 8370 | InternalSwap(other); |
| 8371 | } |
| 8372 | void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) { |
| 8373 | using std::swap; |
| 8374 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8375 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8376 | GetArenaNoVirtual()); |
| 8377 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8378 | GetArenaNoVirtual()); |
| 8379 | swap(status_, other->status_); |
| 8380 | swap(reason_, other->reason_); |
| 8381 | } |
| 8382 | |
| 8383 | ::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const { |
| 8384 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8385 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8386 | } |
| 8387 | |
| 8388 | |
| 8389 | // =================================================================== |
| 8390 | |
| 8391 | void EntitiesLogLevel::InitAsDefaultInstance() { |
| 8392 | } |
| 8393 | class EntitiesLogLevel::HasBitSetters { |
| 8394 | public: |
| 8395 | }; |
| 8396 | |
| 8397 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8398 | const int EntitiesLogLevel::kLogLevelFieldNumber; |
| 8399 | const int EntitiesLogLevel::kEntitiesFieldNumber; |
| 8400 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8401 | |
| 8402 | EntitiesLogLevel::EntitiesLogLevel() |
| 8403 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8404 | SharedCtor(); |
| 8405 | // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel) |
| 8406 | } |
| 8407 | EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from) |
| 8408 | : ::google::protobuf::Message(), |
| 8409 | _internal_metadata_(nullptr), |
| 8410 | entities_(from.entities_) { |
| 8411 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8412 | loglevel_ = from.loglevel_; |
| 8413 | // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel) |
| 8414 | } |
| 8415 | |
| 8416 | void EntitiesLogLevel::SharedCtor() { |
| 8417 | ::google::protobuf::internal::InitSCC( |
| 8418 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8419 | loglevel_ = 0; |
| 8420 | } |
| 8421 | |
| 8422 | EntitiesLogLevel::~EntitiesLogLevel() { |
| 8423 | // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel) |
| 8424 | SharedDtor(); |
| 8425 | } |
| 8426 | |
| 8427 | void EntitiesLogLevel::SharedDtor() { |
| 8428 | } |
| 8429 | |
| 8430 | void EntitiesLogLevel::SetCachedSize(int size) const { |
| 8431 | _cached_size_.Set(size); |
| 8432 | } |
| 8433 | const EntitiesLogLevel& EntitiesLogLevel::default_instance() { |
| 8434 | ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8435 | return *internal_default_instance(); |
| 8436 | } |
| 8437 | |
| 8438 | |
| 8439 | void EntitiesLogLevel::Clear() { |
| 8440 | // @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel) |
| 8441 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8442 | // Prevent compiler warnings about cached_has_bits being unused |
| 8443 | (void) cached_has_bits; |
| 8444 | |
| 8445 | entities_.Clear(); |
| 8446 | loglevel_ = 0; |
| 8447 | _internal_metadata_.Clear(); |
| 8448 | } |
| 8449 | |
| 8450 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8451 | const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object, |
| 8452 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8453 | auto msg = static_cast<EntitiesLogLevel*>(object); |
| 8454 | ::google::protobuf::int32 size; (void)size; |
| 8455 | int depth; (void)depth; |
| 8456 | ::google::protobuf::uint32 tag; |
| 8457 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8458 | auto ptr = begin; |
| 8459 | while (ptr < end) { |
| 8460 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8461 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8462 | switch (tag >> 3) { |
| 8463 | // .dmi.LogLevel logLevel = 1; |
| 8464 | case 1: { |
| 8465 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 8466 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8467 | msg->set_loglevel(static_cast<::dmi::LogLevel>(val)); |
| 8468 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8469 | break; |
| 8470 | } |
| 8471 | // repeated string entities = 2; |
| 8472 | case 2: { |
| 8473 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8474 | do { |
| 8475 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8476 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8477 | ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities"); |
| 8478 | object = msg->add_entities(); |
| 8479 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8480 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8481 | goto string_till_end; |
| 8482 | } |
| 8483 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8484 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8485 | ptr += size; |
| 8486 | if (ptr >= end) break; |
| 8487 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8488 | break; |
| 8489 | } |
| 8490 | default: { |
| 8491 | handle_unusual: |
| 8492 | if ((tag & 7) == 4 || tag == 0) { |
| 8493 | ctx->EndGroup(tag); |
| 8494 | return ptr; |
| 8495 | } |
| 8496 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8497 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8498 | ptr = res.first; |
| 8499 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8500 | if (res.second) return ptr; |
| 8501 | } |
| 8502 | } // switch |
| 8503 | } // while |
| 8504 | return ptr; |
| 8505 | string_till_end: |
| 8506 | static_cast<::std::string*>(object)->clear(); |
| 8507 | static_cast<::std::string*>(object)->reserve(size); |
| 8508 | goto len_delim_till_end; |
| 8509 | len_delim_till_end: |
| 8510 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8511 | {parser_till_end, object}, size); |
| 8512 | } |
| 8513 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8514 | bool EntitiesLogLevel::MergePartialFromCodedStream( |
| 8515 | ::google::protobuf::io::CodedInputStream* input) { |
| 8516 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8517 | ::google::protobuf::uint32 tag; |
| 8518 | // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel) |
| 8519 | for (;;) { |
| 8520 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8521 | tag = p.first; |
| 8522 | if (!p.second) goto handle_unusual; |
| 8523 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8524 | // .dmi.LogLevel logLevel = 1; |
| 8525 | case 1: { |
| 8526 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 8527 | int value = 0; |
| 8528 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8529 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8530 | input, &value))); |
| 8531 | set_loglevel(static_cast< ::dmi::LogLevel >(value)); |
| 8532 | } else { |
| 8533 | goto handle_unusual; |
| 8534 | } |
| 8535 | break; |
| 8536 | } |
| 8537 | |
| 8538 | // repeated string entities = 2; |
| 8539 | case 2: { |
| 8540 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8541 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8542 | input, this->add_entities())); |
| 8543 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8544 | this->entities(this->entities_size() - 1).data(), |
| 8545 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 8546 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8547 | "dmi.EntitiesLogLevel.entities")); |
| 8548 | } else { |
| 8549 | goto handle_unusual; |
| 8550 | } |
| 8551 | break; |
| 8552 | } |
| 8553 | |
| 8554 | default: { |
| 8555 | handle_unusual: |
| 8556 | if (tag == 0) { |
| 8557 | goto success; |
| 8558 | } |
| 8559 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8560 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8561 | break; |
| 8562 | } |
| 8563 | } |
| 8564 | } |
| 8565 | success: |
| 8566 | // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel) |
| 8567 | return true; |
| 8568 | failure: |
| 8569 | // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel) |
| 8570 | return false; |
| 8571 | #undef DO_ |
| 8572 | } |
| 8573 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8574 | |
| 8575 | void EntitiesLogLevel::SerializeWithCachedSizes( |
| 8576 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8577 | // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel) |
| 8578 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8579 | (void) cached_has_bits; |
| 8580 | |
| 8581 | // .dmi.LogLevel logLevel = 1; |
| 8582 | if (this->loglevel() != 0) { |
| 8583 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8584 | 1, this->loglevel(), output); |
| 8585 | } |
| 8586 | |
| 8587 | // repeated string entities = 2; |
| 8588 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8589 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8590 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8591 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8592 | "dmi.EntitiesLogLevel.entities"); |
| 8593 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 8594 | 2, this->entities(i), output); |
| 8595 | } |
| 8596 | |
| 8597 | if (_internal_metadata_.have_unknown_fields()) { |
| 8598 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8599 | _internal_metadata_.unknown_fields(), output); |
| 8600 | } |
| 8601 | // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel) |
| 8602 | } |
| 8603 | |
| 8604 | ::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray( |
| 8605 | ::google::protobuf::uint8* target) const { |
| 8606 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel) |
| 8607 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8608 | (void) cached_has_bits; |
| 8609 | |
| 8610 | // .dmi.LogLevel logLevel = 1; |
| 8611 | if (this->loglevel() != 0) { |
| 8612 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8613 | 1, this->loglevel(), target); |
| 8614 | } |
| 8615 | |
| 8616 | // repeated string entities = 2; |
| 8617 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8618 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8619 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8620 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8621 | "dmi.EntitiesLogLevel.entities"); |
| 8622 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8623 | WriteStringToArray(2, this->entities(i), target); |
| 8624 | } |
| 8625 | |
| 8626 | if (_internal_metadata_.have_unknown_fields()) { |
| 8627 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8628 | _internal_metadata_.unknown_fields(), target); |
| 8629 | } |
| 8630 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel) |
| 8631 | return target; |
| 8632 | } |
| 8633 | |
| 8634 | size_t EntitiesLogLevel::ByteSizeLong() const { |
| 8635 | // @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel) |
| 8636 | size_t total_size = 0; |
| 8637 | |
| 8638 | if (_internal_metadata_.have_unknown_fields()) { |
| 8639 | total_size += |
| 8640 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8641 | _internal_metadata_.unknown_fields()); |
| 8642 | } |
| 8643 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8644 | // Prevent compiler warnings about cached_has_bits being unused |
| 8645 | (void) cached_has_bits; |
| 8646 | |
| 8647 | // repeated string entities = 2; |
| 8648 | total_size += 1 * |
| 8649 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 8650 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8651 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8652 | this->entities(i)); |
| 8653 | } |
| 8654 | |
| 8655 | // .dmi.LogLevel logLevel = 1; |
| 8656 | if (this->loglevel() != 0) { |
| 8657 | total_size += 1 + |
| 8658 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel()); |
| 8659 | } |
| 8660 | |
| 8661 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8662 | SetCachedSize(cached_size); |
| 8663 | return total_size; |
| 8664 | } |
| 8665 | |
| 8666 | void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) { |
| 8667 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel) |
| 8668 | GOOGLE_DCHECK_NE(&from, this); |
| 8669 | const EntitiesLogLevel* source = |
| 8670 | ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>( |
| 8671 | &from); |
| 8672 | if (source == nullptr) { |
| 8673 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel) |
| 8674 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8675 | } else { |
| 8676 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel) |
| 8677 | MergeFrom(*source); |
| 8678 | } |
| 8679 | } |
| 8680 | |
| 8681 | void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) { |
| 8682 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel) |
| 8683 | GOOGLE_DCHECK_NE(&from, this); |
| 8684 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8685 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8686 | (void) cached_has_bits; |
| 8687 | |
| 8688 | entities_.MergeFrom(from.entities_); |
| 8689 | if (from.loglevel() != 0) { |
| 8690 | set_loglevel(from.loglevel()); |
| 8691 | } |
| 8692 | } |
| 8693 | |
| 8694 | void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) { |
| 8695 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel) |
| 8696 | if (&from == this) return; |
| 8697 | Clear(); |
| 8698 | MergeFrom(from); |
| 8699 | } |
| 8700 | |
| 8701 | void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) { |
| 8702 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel) |
| 8703 | if (&from == this) return; |
| 8704 | Clear(); |
| 8705 | MergeFrom(from); |
| 8706 | } |
| 8707 | |
| 8708 | bool EntitiesLogLevel::IsInitialized() const { |
| 8709 | return true; |
| 8710 | } |
| 8711 | |
| 8712 | void EntitiesLogLevel::Swap(EntitiesLogLevel* other) { |
| 8713 | if (other == this) return; |
| 8714 | InternalSwap(other); |
| 8715 | } |
| 8716 | void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) { |
| 8717 | using std::swap; |
| 8718 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8719 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 8720 | swap(loglevel_, other->loglevel_); |
| 8721 | } |
| 8722 | |
| 8723 | ::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const { |
| 8724 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8725 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8726 | } |
| 8727 | |
| 8728 | |
| 8729 | // =================================================================== |
| 8730 | |
| 8731 | void SetLogLevelRequest::InitAsDefaultInstance() { |
| 8732 | ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8733 | ::dmi::Uuid::internal_default_instance()); |
| 8734 | } |
| 8735 | class SetLogLevelRequest::HasBitSetters { |
| 8736 | public: |
| 8737 | static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg); |
| 8738 | }; |
| 8739 | |
| 8740 | const ::dmi::Uuid& |
| 8741 | SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) { |
| 8742 | return *msg->device_uuid_; |
| 8743 | } |
| 8744 | void SetLogLevelRequest::clear_device_uuid() { |
| 8745 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8746 | delete device_uuid_; |
| 8747 | } |
| 8748 | device_uuid_ = nullptr; |
| 8749 | } |
| 8750 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8751 | const int SetLogLevelRequest::kDeviceUuidFieldNumber; |
| 8752 | const int SetLogLevelRequest::kLoglevelsFieldNumber; |
| 8753 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8754 | |
| 8755 | SetLogLevelRequest::SetLogLevelRequest() |
| 8756 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8757 | SharedCtor(); |
| 8758 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest) |
| 8759 | } |
| 8760 | SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from) |
| 8761 | : ::google::protobuf::Message(), |
| 8762 | _internal_metadata_(nullptr), |
| 8763 | loglevels_(from.loglevels_) { |
| 8764 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8765 | if (from.has_device_uuid()) { |
| 8766 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8767 | } else { |
| 8768 | device_uuid_ = nullptr; |
| 8769 | } |
| 8770 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest) |
| 8771 | } |
| 8772 | |
| 8773 | void SetLogLevelRequest::SharedCtor() { |
| 8774 | ::google::protobuf::internal::InitSCC( |
| 8775 | &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8776 | device_uuid_ = nullptr; |
| 8777 | } |
| 8778 | |
| 8779 | SetLogLevelRequest::~SetLogLevelRequest() { |
| 8780 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest) |
| 8781 | SharedDtor(); |
| 8782 | } |
| 8783 | |
| 8784 | void SetLogLevelRequest::SharedDtor() { |
| 8785 | if (this != internal_default_instance()) delete device_uuid_; |
| 8786 | } |
| 8787 | |
| 8788 | void SetLogLevelRequest::SetCachedSize(int size) const { |
| 8789 | _cached_size_.Set(size); |
| 8790 | } |
| 8791 | const SetLogLevelRequest& SetLogLevelRequest::default_instance() { |
| 8792 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8793 | return *internal_default_instance(); |
| 8794 | } |
| 8795 | |
| 8796 | |
| 8797 | void SetLogLevelRequest::Clear() { |
| 8798 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest) |
| 8799 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8800 | // Prevent compiler warnings about cached_has_bits being unused |
| 8801 | (void) cached_has_bits; |
| 8802 | |
| 8803 | loglevels_.Clear(); |
| 8804 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8805 | delete device_uuid_; |
| 8806 | } |
| 8807 | device_uuid_ = nullptr; |
| 8808 | _internal_metadata_.Clear(); |
| 8809 | } |
| 8810 | |
| 8811 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8812 | const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 8813 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8814 | auto msg = static_cast<SetLogLevelRequest*>(object); |
| 8815 | ::google::protobuf::int32 size; (void)size; |
| 8816 | int depth; (void)depth; |
| 8817 | ::google::protobuf::uint32 tag; |
| 8818 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8819 | auto ptr = begin; |
| 8820 | while (ptr < end) { |
| 8821 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8822 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8823 | switch (tag >> 3) { |
| 8824 | // .dmi.Uuid device_uuid = 1; |
| 8825 | case 1: { |
| 8826 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8827 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8828 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8829 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8830 | object = msg->mutable_device_uuid(); |
| 8831 | if (size > end - ptr) goto len_delim_till_end; |
| 8832 | ptr += size; |
| 8833 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8834 | {parser_till_end, object}, ptr - size, ptr)); |
| 8835 | break; |
| 8836 | } |
| 8837 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8838 | case 2: { |
| 8839 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8840 | do { |
| 8841 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8842 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8843 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 8844 | object = msg->add_loglevels(); |
| 8845 | if (size > end - ptr) goto len_delim_till_end; |
| 8846 | ptr += size; |
| 8847 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8848 | {parser_till_end, object}, ptr - size, ptr)); |
| 8849 | if (ptr >= end) break; |
| 8850 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8851 | break; |
| 8852 | } |
| 8853 | default: { |
| 8854 | handle_unusual: |
| 8855 | if ((tag & 7) == 4 || tag == 0) { |
| 8856 | ctx->EndGroup(tag); |
| 8857 | return ptr; |
| 8858 | } |
| 8859 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8860 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8861 | ptr = res.first; |
| 8862 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8863 | if (res.second) return ptr; |
| 8864 | } |
| 8865 | } // switch |
| 8866 | } // while |
| 8867 | return ptr; |
| 8868 | len_delim_till_end: |
| 8869 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8870 | {parser_till_end, object}, size); |
| 8871 | } |
| 8872 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8873 | bool SetLogLevelRequest::MergePartialFromCodedStream( |
| 8874 | ::google::protobuf::io::CodedInputStream* input) { |
| 8875 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8876 | ::google::protobuf::uint32 tag; |
| 8877 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest) |
| 8878 | for (;;) { |
| 8879 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8880 | tag = p.first; |
| 8881 | if (!p.second) goto handle_unusual; |
| 8882 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8883 | // .dmi.Uuid device_uuid = 1; |
| 8884 | case 1: { |
| 8885 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8886 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8887 | input, mutable_device_uuid())); |
| 8888 | } else { |
| 8889 | goto handle_unusual; |
| 8890 | } |
| 8891 | break; |
| 8892 | } |
| 8893 | |
| 8894 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8895 | case 2: { |
| 8896 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8897 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8898 | input, add_loglevels())); |
| 8899 | } else { |
| 8900 | goto handle_unusual; |
| 8901 | } |
| 8902 | break; |
| 8903 | } |
| 8904 | |
| 8905 | default: { |
| 8906 | handle_unusual: |
| 8907 | if (tag == 0) { |
| 8908 | goto success; |
| 8909 | } |
| 8910 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8911 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8912 | break; |
| 8913 | } |
| 8914 | } |
| 8915 | } |
| 8916 | success: |
| 8917 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest) |
| 8918 | return true; |
| 8919 | failure: |
| 8920 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest) |
| 8921 | return false; |
| 8922 | #undef DO_ |
| 8923 | } |
| 8924 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8925 | |
| 8926 | void SetLogLevelRequest::SerializeWithCachedSizes( |
| 8927 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8928 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest) |
| 8929 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8930 | (void) cached_has_bits; |
| 8931 | |
| 8932 | // .dmi.Uuid device_uuid = 1; |
| 8933 | if (this->has_device_uuid()) { |
| 8934 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8935 | 1, HasBitSetters::device_uuid(this), output); |
| 8936 | } |
| 8937 | |
| 8938 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8939 | for (unsigned int i = 0, |
| 8940 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8941 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8942 | 2, |
| 8943 | this->loglevels(static_cast<int>(i)), |
| 8944 | output); |
| 8945 | } |
| 8946 | |
| 8947 | if (_internal_metadata_.have_unknown_fields()) { |
| 8948 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8949 | _internal_metadata_.unknown_fields(), output); |
| 8950 | } |
| 8951 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest) |
| 8952 | } |
| 8953 | |
| 8954 | ::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 8955 | ::google::protobuf::uint8* target) const { |
| 8956 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest) |
| 8957 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8958 | (void) cached_has_bits; |
| 8959 | |
| 8960 | // .dmi.Uuid device_uuid = 1; |
| 8961 | if (this->has_device_uuid()) { |
| 8962 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8963 | InternalWriteMessageToArray( |
| 8964 | 1, HasBitSetters::device_uuid(this), target); |
| 8965 | } |
| 8966 | |
| 8967 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8968 | for (unsigned int i = 0, |
| 8969 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8970 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8971 | InternalWriteMessageToArray( |
| 8972 | 2, this->loglevels(static_cast<int>(i)), target); |
| 8973 | } |
| 8974 | |
| 8975 | if (_internal_metadata_.have_unknown_fields()) { |
| 8976 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8977 | _internal_metadata_.unknown_fields(), target); |
| 8978 | } |
| 8979 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest) |
| 8980 | return target; |
| 8981 | } |
| 8982 | |
| 8983 | size_t SetLogLevelRequest::ByteSizeLong() const { |
| 8984 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest) |
| 8985 | size_t total_size = 0; |
| 8986 | |
| 8987 | if (_internal_metadata_.have_unknown_fields()) { |
| 8988 | total_size += |
| 8989 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8990 | _internal_metadata_.unknown_fields()); |
| 8991 | } |
| 8992 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8993 | // Prevent compiler warnings about cached_has_bits being unused |
| 8994 | (void) cached_has_bits; |
| 8995 | |
| 8996 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8997 | { |
| 8998 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 8999 | total_size += 1UL * count; |
| 9000 | for (unsigned int i = 0; i < count; i++) { |
| 9001 | total_size += |
| 9002 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9003 | this->loglevels(static_cast<int>(i))); |
| 9004 | } |
| 9005 | } |
| 9006 | |
| 9007 | // .dmi.Uuid device_uuid = 1; |
| 9008 | if (this->has_device_uuid()) { |
| 9009 | total_size += 1 + |
| 9010 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9011 | *device_uuid_); |
| 9012 | } |
| 9013 | |
| 9014 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9015 | SetCachedSize(cached_size); |
| 9016 | return total_size; |
| 9017 | } |
| 9018 | |
| 9019 | void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 9020 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest) |
| 9021 | GOOGLE_DCHECK_NE(&from, this); |
| 9022 | const SetLogLevelRequest* source = |
| 9023 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>( |
| 9024 | &from); |
| 9025 | if (source == nullptr) { |
| 9026 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest) |
| 9027 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9028 | } else { |
| 9029 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest) |
| 9030 | MergeFrom(*source); |
| 9031 | } |
| 9032 | } |
| 9033 | |
| 9034 | void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) { |
| 9035 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest) |
| 9036 | GOOGLE_DCHECK_NE(&from, this); |
| 9037 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9038 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9039 | (void) cached_has_bits; |
| 9040 | |
| 9041 | loglevels_.MergeFrom(from.loglevels_); |
| 9042 | if (from.has_device_uuid()) { |
| 9043 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9044 | } |
| 9045 | } |
| 9046 | |
| 9047 | void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 9048 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest) |
| 9049 | if (&from == this) return; |
| 9050 | Clear(); |
| 9051 | MergeFrom(from); |
| 9052 | } |
| 9053 | |
| 9054 | void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) { |
| 9055 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest) |
| 9056 | if (&from == this) return; |
| 9057 | Clear(); |
| 9058 | MergeFrom(from); |
| 9059 | } |
| 9060 | |
| 9061 | bool SetLogLevelRequest::IsInitialized() const { |
| 9062 | return true; |
| 9063 | } |
| 9064 | |
| 9065 | void SetLogLevelRequest::Swap(SetLogLevelRequest* other) { |
| 9066 | if (other == this) return; |
| 9067 | InternalSwap(other); |
| 9068 | } |
| 9069 | void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) { |
| 9070 | using std::swap; |
| 9071 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9072 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 9073 | swap(device_uuid_, other->device_uuid_); |
| 9074 | } |
| 9075 | |
| 9076 | ::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const { |
| 9077 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9078 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9079 | } |
| 9080 | |
| 9081 | |
| 9082 | // =================================================================== |
| 9083 | |
| 9084 | void SetLogLevelResponse::InitAsDefaultInstance() { |
| 9085 | ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9086 | ::dmi::Uuid::internal_default_instance()); |
| 9087 | } |
| 9088 | class SetLogLevelResponse::HasBitSetters { |
| 9089 | public: |
| 9090 | static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg); |
| 9091 | }; |
| 9092 | |
| 9093 | const ::dmi::Uuid& |
| 9094 | SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) { |
| 9095 | return *msg->device_uuid_; |
| 9096 | } |
| 9097 | void SetLogLevelResponse::clear_device_uuid() { |
| 9098 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9099 | delete device_uuid_; |
| 9100 | } |
| 9101 | device_uuid_ = nullptr; |
| 9102 | } |
| 9103 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9104 | const int SetLogLevelResponse::kDeviceUuidFieldNumber; |
| 9105 | const int SetLogLevelResponse::kStatusFieldNumber; |
| 9106 | const int SetLogLevelResponse::kReasonFieldNumber; |
| 9107 | const int SetLogLevelResponse::kReasonDetailFieldNumber; |
| 9108 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9109 | |
| 9110 | SetLogLevelResponse::SetLogLevelResponse() |
| 9111 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9112 | SharedCtor(); |
| 9113 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse) |
| 9114 | } |
| 9115 | SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from) |
| 9116 | : ::google::protobuf::Message(), |
| 9117 | _internal_metadata_(nullptr) { |
| 9118 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9119 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9120 | if (from.reason_detail().size() > 0) { |
| 9121 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9122 | } |
| 9123 | if (from.has_device_uuid()) { |
| 9124 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9125 | } else { |
| 9126 | device_uuid_ = nullptr; |
| 9127 | } |
| 9128 | ::memcpy(&status_, &from.status_, |
| 9129 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 9130 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9131 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse) |
| 9132 | } |
| 9133 | |
| 9134 | void SetLogLevelResponse::SharedCtor() { |
| 9135 | ::google::protobuf::internal::InitSCC( |
| 9136 | &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9137 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9138 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 9139 | reinterpret_cast<char*>(&reason_) - |
| 9140 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 9141 | } |
| 9142 | |
| 9143 | SetLogLevelResponse::~SetLogLevelResponse() { |
| 9144 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse) |
| 9145 | SharedDtor(); |
| 9146 | } |
| 9147 | |
| 9148 | void SetLogLevelResponse::SharedDtor() { |
| 9149 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9150 | if (this != internal_default_instance()) delete device_uuid_; |
| 9151 | } |
| 9152 | |
| 9153 | void SetLogLevelResponse::SetCachedSize(int size) const { |
| 9154 | _cached_size_.Set(size); |
| 9155 | } |
| 9156 | const SetLogLevelResponse& SetLogLevelResponse::default_instance() { |
| 9157 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9158 | return *internal_default_instance(); |
| 9159 | } |
| 9160 | |
| 9161 | |
| 9162 | void SetLogLevelResponse::Clear() { |
| 9163 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse) |
| 9164 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9165 | // Prevent compiler warnings about cached_has_bits being unused |
| 9166 | (void) cached_has_bits; |
| 9167 | |
| 9168 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9169 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9170 | delete device_uuid_; |
| 9171 | } |
| 9172 | device_uuid_ = nullptr; |
| 9173 | ::memset(&status_, 0, static_cast<size_t>( |
| 9174 | reinterpret_cast<char*>(&reason_) - |
| 9175 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9176 | _internal_metadata_.Clear(); |
| 9177 | } |
| 9178 | |
| 9179 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9180 | const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 9181 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9182 | auto msg = static_cast<SetLogLevelResponse*>(object); |
| 9183 | ::google::protobuf::int32 size; (void)size; |
| 9184 | int depth; (void)depth; |
| 9185 | ::google::protobuf::uint32 tag; |
| 9186 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9187 | auto ptr = begin; |
| 9188 | while (ptr < end) { |
| 9189 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9190 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9191 | switch (tag >> 3) { |
| 9192 | // .dmi.Uuid device_uuid = 1; |
| 9193 | case 1: { |
| 9194 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9195 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9196 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9197 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9198 | object = msg->mutable_device_uuid(); |
| 9199 | if (size > end - ptr) goto len_delim_till_end; |
| 9200 | ptr += size; |
| 9201 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9202 | {parser_till_end, object}, ptr - size, ptr)); |
| 9203 | break; |
| 9204 | } |
| 9205 | // .dmi.Status status = 2; |
| 9206 | case 2: { |
| 9207 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 9208 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9209 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 9210 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9211 | break; |
| 9212 | } |
| 9213 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 9214 | case 3: { |
| 9215 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 9216 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9217 | msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val)); |
| 9218 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9219 | break; |
| 9220 | } |
| 9221 | // string reason_detail = 4; |
| 9222 | case 4: { |
| 9223 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 9224 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9225 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9226 | ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail"); |
| 9227 | object = msg->mutable_reason_detail(); |
| 9228 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9229 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9230 | goto string_till_end; |
| 9231 | } |
| 9232 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9233 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9234 | ptr += size; |
| 9235 | break; |
| 9236 | } |
| 9237 | default: { |
| 9238 | handle_unusual: |
| 9239 | if ((tag & 7) == 4 || tag == 0) { |
| 9240 | ctx->EndGroup(tag); |
| 9241 | return ptr; |
| 9242 | } |
| 9243 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9244 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9245 | ptr = res.first; |
| 9246 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9247 | if (res.second) return ptr; |
| 9248 | } |
| 9249 | } // switch |
| 9250 | } // while |
| 9251 | return ptr; |
| 9252 | string_till_end: |
| 9253 | static_cast<::std::string*>(object)->clear(); |
| 9254 | static_cast<::std::string*>(object)->reserve(size); |
| 9255 | goto len_delim_till_end; |
| 9256 | len_delim_till_end: |
| 9257 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9258 | {parser_till_end, object}, size); |
| 9259 | } |
| 9260 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9261 | bool SetLogLevelResponse::MergePartialFromCodedStream( |
| 9262 | ::google::protobuf::io::CodedInputStream* input) { |
| 9263 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9264 | ::google::protobuf::uint32 tag; |
| 9265 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse) |
| 9266 | for (;;) { |
| 9267 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9268 | tag = p.first; |
| 9269 | if (!p.second) goto handle_unusual; |
| 9270 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9271 | // .dmi.Uuid device_uuid = 1; |
| 9272 | case 1: { |
| 9273 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9274 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9275 | input, mutable_device_uuid())); |
| 9276 | } else { |
| 9277 | goto handle_unusual; |
| 9278 | } |
| 9279 | break; |
| 9280 | } |
| 9281 | |
| 9282 | // .dmi.Status status = 2; |
| 9283 | case 2: { |
| 9284 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 9285 | int value = 0; |
| 9286 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9287 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9288 | input, &value))); |
| 9289 | set_status(static_cast< ::dmi::Status >(value)); |
| 9290 | } else { |
| 9291 | goto handle_unusual; |
| 9292 | } |
| 9293 | break; |
| 9294 | } |
| 9295 | |
| 9296 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 9297 | case 3: { |
| 9298 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 9299 | int value = 0; |
| 9300 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9301 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9302 | input, &value))); |
| 9303 | set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value)); |
| 9304 | } else { |
| 9305 | goto handle_unusual; |
| 9306 | } |
| 9307 | break; |
| 9308 | } |
| 9309 | |
| 9310 | // string reason_detail = 4; |
| 9311 | case 4: { |
| 9312 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 9313 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9314 | input, this->mutable_reason_detail())); |
| 9315 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9316 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9317 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9318 | "dmi.SetLogLevelResponse.reason_detail")); |
| 9319 | } else { |
| 9320 | goto handle_unusual; |
| 9321 | } |
| 9322 | break; |
| 9323 | } |
| 9324 | |
| 9325 | default: { |
| 9326 | handle_unusual: |
| 9327 | if (tag == 0) { |
| 9328 | goto success; |
| 9329 | } |
| 9330 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9331 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9332 | break; |
| 9333 | } |
| 9334 | } |
| 9335 | } |
| 9336 | success: |
| 9337 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse) |
| 9338 | return true; |
| 9339 | failure: |
| 9340 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse) |
| 9341 | return false; |
| 9342 | #undef DO_ |
| 9343 | } |
| 9344 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9345 | |
| 9346 | void SetLogLevelResponse::SerializeWithCachedSizes( |
| 9347 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9348 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse) |
| 9349 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9350 | (void) cached_has_bits; |
| 9351 | |
| 9352 | // .dmi.Uuid device_uuid = 1; |
| 9353 | if (this->has_device_uuid()) { |
| 9354 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9355 | 1, HasBitSetters::device_uuid(this), output); |
| 9356 | } |
| 9357 | |
| 9358 | // .dmi.Status status = 2; |
| 9359 | if (this->status() != 0) { |
| 9360 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9361 | 2, this->status(), output); |
| 9362 | } |
| 9363 | |
| 9364 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 9365 | if (this->reason() != 0) { |
| 9366 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9367 | 3, this->reason(), output); |
| 9368 | } |
| 9369 | |
| 9370 | // string reason_detail = 4; |
| 9371 | if (this->reason_detail().size() > 0) { |
| 9372 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9373 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9374 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9375 | "dmi.SetLogLevelResponse.reason_detail"); |
| 9376 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9377 | 4, this->reason_detail(), output); |
| 9378 | } |
| 9379 | |
| 9380 | if (_internal_metadata_.have_unknown_fields()) { |
| 9381 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9382 | _internal_metadata_.unknown_fields(), output); |
| 9383 | } |
| 9384 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse) |
| 9385 | } |
| 9386 | |
| 9387 | ::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 9388 | ::google::protobuf::uint8* target) const { |
| 9389 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse) |
| 9390 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9391 | (void) cached_has_bits; |
| 9392 | |
| 9393 | // .dmi.Uuid device_uuid = 1; |
| 9394 | if (this->has_device_uuid()) { |
| 9395 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9396 | InternalWriteMessageToArray( |
| 9397 | 1, HasBitSetters::device_uuid(this), target); |
| 9398 | } |
| 9399 | |
| 9400 | // .dmi.Status status = 2; |
| 9401 | if (this->status() != 0) { |
| 9402 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9403 | 2, this->status(), target); |
| 9404 | } |
| 9405 | |
| 9406 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 9407 | if (this->reason() != 0) { |
| 9408 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9409 | 3, this->reason(), target); |
| 9410 | } |
| 9411 | |
| 9412 | // string reason_detail = 4; |
| 9413 | if (this->reason_detail().size() > 0) { |
| 9414 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9415 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9416 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9417 | "dmi.SetLogLevelResponse.reason_detail"); |
| 9418 | target = |
| 9419 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9420 | 4, this->reason_detail(), target); |
| 9421 | } |
| 9422 | |
| 9423 | if (_internal_metadata_.have_unknown_fields()) { |
| 9424 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9425 | _internal_metadata_.unknown_fields(), target); |
| 9426 | } |
| 9427 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse) |
| 9428 | return target; |
| 9429 | } |
| 9430 | |
| 9431 | size_t SetLogLevelResponse::ByteSizeLong() const { |
| 9432 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse) |
| 9433 | size_t total_size = 0; |
| 9434 | |
| 9435 | if (_internal_metadata_.have_unknown_fields()) { |
| 9436 | total_size += |
| 9437 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9438 | _internal_metadata_.unknown_fields()); |
| 9439 | } |
| 9440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9441 | // Prevent compiler warnings about cached_has_bits being unused |
| 9442 | (void) cached_has_bits; |
| 9443 | |
| 9444 | // string reason_detail = 4; |
| 9445 | if (this->reason_detail().size() > 0) { |
| 9446 | total_size += 1 + |
| 9447 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9448 | this->reason_detail()); |
| 9449 | } |
| 9450 | |
| 9451 | // .dmi.Uuid device_uuid = 1; |
| 9452 | if (this->has_device_uuid()) { |
| 9453 | total_size += 1 + |
| 9454 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9455 | *device_uuid_); |
| 9456 | } |
| 9457 | |
| 9458 | // .dmi.Status status = 2; |
| 9459 | if (this->status() != 0) { |
| 9460 | total_size += 1 + |
| 9461 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 9462 | } |
| 9463 | |
| 9464 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 9465 | if (this->reason() != 0) { |
| 9466 | total_size += 1 + |
| 9467 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 9468 | } |
| 9469 | |
| 9470 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9471 | SetCachedSize(cached_size); |
| 9472 | return total_size; |
| 9473 | } |
| 9474 | |
| 9475 | void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 9476 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse) |
| 9477 | GOOGLE_DCHECK_NE(&from, this); |
| 9478 | const SetLogLevelResponse* source = |
| 9479 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>( |
| 9480 | &from); |
| 9481 | if (source == nullptr) { |
| 9482 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse) |
| 9483 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9484 | } else { |
| 9485 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse) |
| 9486 | MergeFrom(*source); |
| 9487 | } |
| 9488 | } |
| 9489 | |
| 9490 | void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) { |
| 9491 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse) |
| 9492 | GOOGLE_DCHECK_NE(&from, this); |
| 9493 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9494 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9495 | (void) cached_has_bits; |
| 9496 | |
| 9497 | if (from.reason_detail().size() > 0) { |
| 9498 | |
| 9499 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9500 | } |
| 9501 | if (from.has_device_uuid()) { |
| 9502 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9503 | } |
| 9504 | if (from.status() != 0) { |
| 9505 | set_status(from.status()); |
| 9506 | } |
| 9507 | if (from.reason() != 0) { |
| 9508 | set_reason(from.reason()); |
| 9509 | } |
| 9510 | } |
| 9511 | |
| 9512 | void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9513 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse) |
| 9514 | if (&from == this) return; |
| 9515 | Clear(); |
| 9516 | MergeFrom(from); |
| 9517 | } |
| 9518 | |
| 9519 | void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) { |
| 9520 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse) |
| 9521 | if (&from == this) return; |
| 9522 | Clear(); |
| 9523 | MergeFrom(from); |
| 9524 | } |
| 9525 | |
| 9526 | bool SetLogLevelResponse::IsInitialized() const { |
| 9527 | return true; |
| 9528 | } |
| 9529 | |
| 9530 | void SetLogLevelResponse::Swap(SetLogLevelResponse* other) { |
| 9531 | if (other == this) return; |
| 9532 | InternalSwap(other); |
| 9533 | } |
| 9534 | void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) { |
| 9535 | using std::swap; |
| 9536 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9537 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9538 | GetArenaNoVirtual()); |
| 9539 | swap(device_uuid_, other->device_uuid_); |
| 9540 | swap(status_, other->status_); |
| 9541 | swap(reason_, other->reason_); |
| 9542 | } |
| 9543 | |
| 9544 | ::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const { |
| 9545 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9546 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9547 | } |
| 9548 | |
| 9549 | |
| 9550 | // =================================================================== |
| 9551 | |
| 9552 | void GetLogLevelRequest::InitAsDefaultInstance() { |
| 9553 | ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9554 | ::dmi::Uuid::internal_default_instance()); |
| 9555 | } |
| 9556 | class GetLogLevelRequest::HasBitSetters { |
| 9557 | public: |
| 9558 | static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg); |
| 9559 | }; |
| 9560 | |
| 9561 | const ::dmi::Uuid& |
| 9562 | GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) { |
| 9563 | return *msg->device_uuid_; |
| 9564 | } |
| 9565 | void GetLogLevelRequest::clear_device_uuid() { |
| 9566 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9567 | delete device_uuid_; |
| 9568 | } |
| 9569 | device_uuid_ = nullptr; |
| 9570 | } |
| 9571 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9572 | const int GetLogLevelRequest::kDeviceUuidFieldNumber; |
| 9573 | const int GetLogLevelRequest::kEntitiesFieldNumber; |
| 9574 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9575 | |
| 9576 | GetLogLevelRequest::GetLogLevelRequest() |
| 9577 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9578 | SharedCtor(); |
| 9579 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest) |
| 9580 | } |
| 9581 | GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from) |
| 9582 | : ::google::protobuf::Message(), |
| 9583 | _internal_metadata_(nullptr), |
| 9584 | entities_(from.entities_) { |
| 9585 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9586 | if (from.has_device_uuid()) { |
| 9587 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9588 | } else { |
| 9589 | device_uuid_ = nullptr; |
| 9590 | } |
| 9591 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest) |
| 9592 | } |
| 9593 | |
| 9594 | void GetLogLevelRequest::SharedCtor() { |
| 9595 | ::google::protobuf::internal::InitSCC( |
| 9596 | &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9597 | device_uuid_ = nullptr; |
| 9598 | } |
| 9599 | |
| 9600 | GetLogLevelRequest::~GetLogLevelRequest() { |
| 9601 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest) |
| 9602 | SharedDtor(); |
| 9603 | } |
| 9604 | |
| 9605 | void GetLogLevelRequest::SharedDtor() { |
| 9606 | if (this != internal_default_instance()) delete device_uuid_; |
| 9607 | } |
| 9608 | |
| 9609 | void GetLogLevelRequest::SetCachedSize(int size) const { |
| 9610 | _cached_size_.Set(size); |
| 9611 | } |
| 9612 | const GetLogLevelRequest& GetLogLevelRequest::default_instance() { |
| 9613 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9614 | return *internal_default_instance(); |
| 9615 | } |
| 9616 | |
| 9617 | |
| 9618 | void GetLogLevelRequest::Clear() { |
| 9619 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest) |
| 9620 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9621 | // Prevent compiler warnings about cached_has_bits being unused |
| 9622 | (void) cached_has_bits; |
| 9623 | |
| 9624 | entities_.Clear(); |
| 9625 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9626 | delete device_uuid_; |
| 9627 | } |
| 9628 | device_uuid_ = nullptr; |
| 9629 | _internal_metadata_.Clear(); |
| 9630 | } |
| 9631 | |
| 9632 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9633 | const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 9634 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9635 | auto msg = static_cast<GetLogLevelRequest*>(object); |
| 9636 | ::google::protobuf::int32 size; (void)size; |
| 9637 | int depth; (void)depth; |
| 9638 | ::google::protobuf::uint32 tag; |
| 9639 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9640 | auto ptr = begin; |
| 9641 | while (ptr < end) { |
| 9642 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9643 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9644 | switch (tag >> 3) { |
| 9645 | // .dmi.Uuid device_uuid = 1; |
| 9646 | case 1: { |
| 9647 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9648 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9649 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9650 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9651 | object = msg->mutable_device_uuid(); |
| 9652 | if (size > end - ptr) goto len_delim_till_end; |
| 9653 | ptr += size; |
| 9654 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9655 | {parser_till_end, object}, ptr - size, ptr)); |
| 9656 | break; |
| 9657 | } |
| 9658 | // repeated string entities = 2; |
| 9659 | case 2: { |
| 9660 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9661 | do { |
| 9662 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9663 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9664 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities"); |
| 9665 | object = msg->add_entities(); |
| 9666 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9667 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9668 | goto string_till_end; |
| 9669 | } |
| 9670 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9671 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9672 | ptr += size; |
| 9673 | if (ptr >= end) break; |
| 9674 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9675 | break; |
| 9676 | } |
| 9677 | default: { |
| 9678 | handle_unusual: |
| 9679 | if ((tag & 7) == 4 || tag == 0) { |
| 9680 | ctx->EndGroup(tag); |
| 9681 | return ptr; |
| 9682 | } |
| 9683 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9684 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9685 | ptr = res.first; |
| 9686 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9687 | if (res.second) return ptr; |
| 9688 | } |
| 9689 | } // switch |
| 9690 | } // while |
| 9691 | return ptr; |
| 9692 | string_till_end: |
| 9693 | static_cast<::std::string*>(object)->clear(); |
| 9694 | static_cast<::std::string*>(object)->reserve(size); |
| 9695 | goto len_delim_till_end; |
| 9696 | len_delim_till_end: |
| 9697 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9698 | {parser_till_end, object}, size); |
| 9699 | } |
| 9700 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9701 | bool GetLogLevelRequest::MergePartialFromCodedStream( |
| 9702 | ::google::protobuf::io::CodedInputStream* input) { |
| 9703 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9704 | ::google::protobuf::uint32 tag; |
| 9705 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest) |
| 9706 | for (;;) { |
| 9707 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9708 | tag = p.first; |
| 9709 | if (!p.second) goto handle_unusual; |
| 9710 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9711 | // .dmi.Uuid device_uuid = 1; |
| 9712 | case 1: { |
| 9713 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9714 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9715 | input, mutable_device_uuid())); |
| 9716 | } else { |
| 9717 | goto handle_unusual; |
| 9718 | } |
| 9719 | break; |
| 9720 | } |
| 9721 | |
| 9722 | // repeated string entities = 2; |
| 9723 | case 2: { |
| 9724 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9725 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9726 | input, this->add_entities())); |
| 9727 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9728 | this->entities(this->entities_size() - 1).data(), |
| 9729 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 9730 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9731 | "dmi.GetLogLevelRequest.entities")); |
| 9732 | } else { |
| 9733 | goto handle_unusual; |
| 9734 | } |
| 9735 | break; |
| 9736 | } |
| 9737 | |
| 9738 | default: { |
| 9739 | handle_unusual: |
| 9740 | if (tag == 0) { |
| 9741 | goto success; |
| 9742 | } |
| 9743 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9744 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9745 | break; |
| 9746 | } |
| 9747 | } |
| 9748 | } |
| 9749 | success: |
| 9750 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest) |
| 9751 | return true; |
| 9752 | failure: |
| 9753 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest) |
| 9754 | return false; |
| 9755 | #undef DO_ |
| 9756 | } |
| 9757 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9758 | |
| 9759 | void GetLogLevelRequest::SerializeWithCachedSizes( |
| 9760 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9761 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest) |
| 9762 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9763 | (void) cached_has_bits; |
| 9764 | |
| 9765 | // .dmi.Uuid device_uuid = 1; |
| 9766 | if (this->has_device_uuid()) { |
| 9767 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9768 | 1, HasBitSetters::device_uuid(this), output); |
| 9769 | } |
| 9770 | |
| 9771 | // repeated string entities = 2; |
| 9772 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9773 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9774 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9775 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9776 | "dmi.GetLogLevelRequest.entities"); |
| 9777 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 9778 | 2, this->entities(i), output); |
| 9779 | } |
| 9780 | |
| 9781 | if (_internal_metadata_.have_unknown_fields()) { |
| 9782 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9783 | _internal_metadata_.unknown_fields(), output); |
| 9784 | } |
| 9785 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest) |
| 9786 | } |
| 9787 | |
| 9788 | ::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 9789 | ::google::protobuf::uint8* target) const { |
| 9790 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest) |
| 9791 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9792 | (void) cached_has_bits; |
| 9793 | |
| 9794 | // .dmi.Uuid device_uuid = 1; |
| 9795 | if (this->has_device_uuid()) { |
| 9796 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9797 | InternalWriteMessageToArray( |
| 9798 | 1, HasBitSetters::device_uuid(this), target); |
| 9799 | } |
| 9800 | |
| 9801 | // repeated string entities = 2; |
| 9802 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9803 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9804 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9805 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9806 | "dmi.GetLogLevelRequest.entities"); |
| 9807 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9808 | WriteStringToArray(2, this->entities(i), target); |
| 9809 | } |
| 9810 | |
| 9811 | if (_internal_metadata_.have_unknown_fields()) { |
| 9812 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9813 | _internal_metadata_.unknown_fields(), target); |
| 9814 | } |
| 9815 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest) |
| 9816 | return target; |
| 9817 | } |
| 9818 | |
| 9819 | size_t GetLogLevelRequest::ByteSizeLong() const { |
| 9820 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest) |
| 9821 | size_t total_size = 0; |
| 9822 | |
| 9823 | if (_internal_metadata_.have_unknown_fields()) { |
| 9824 | total_size += |
| 9825 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9826 | _internal_metadata_.unknown_fields()); |
| 9827 | } |
| 9828 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9829 | // Prevent compiler warnings about cached_has_bits being unused |
| 9830 | (void) cached_has_bits; |
| 9831 | |
| 9832 | // repeated string entities = 2; |
| 9833 | total_size += 1 * |
| 9834 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 9835 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9836 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9837 | this->entities(i)); |
| 9838 | } |
| 9839 | |
| 9840 | // .dmi.Uuid device_uuid = 1; |
| 9841 | if (this->has_device_uuid()) { |
| 9842 | total_size += 1 + |
| 9843 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9844 | *device_uuid_); |
| 9845 | } |
| 9846 | |
| 9847 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9848 | SetCachedSize(cached_size); |
| 9849 | return total_size; |
| 9850 | } |
| 9851 | |
| 9852 | void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 9853 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest) |
| 9854 | GOOGLE_DCHECK_NE(&from, this); |
| 9855 | const GetLogLevelRequest* source = |
| 9856 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>( |
| 9857 | &from); |
| 9858 | if (source == nullptr) { |
| 9859 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest) |
| 9860 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9861 | } else { |
| 9862 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest) |
| 9863 | MergeFrom(*source); |
| 9864 | } |
| 9865 | } |
| 9866 | |
| 9867 | void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) { |
| 9868 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest) |
| 9869 | GOOGLE_DCHECK_NE(&from, this); |
| 9870 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9871 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9872 | (void) cached_has_bits; |
| 9873 | |
| 9874 | entities_.MergeFrom(from.entities_); |
| 9875 | if (from.has_device_uuid()) { |
| 9876 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9877 | } |
| 9878 | } |
| 9879 | |
| 9880 | void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 9881 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest) |
| 9882 | if (&from == this) return; |
| 9883 | Clear(); |
| 9884 | MergeFrom(from); |
| 9885 | } |
| 9886 | |
| 9887 | void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) { |
| 9888 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest) |
| 9889 | if (&from == this) return; |
| 9890 | Clear(); |
| 9891 | MergeFrom(from); |
| 9892 | } |
| 9893 | |
| 9894 | bool GetLogLevelRequest::IsInitialized() const { |
| 9895 | return true; |
| 9896 | } |
| 9897 | |
| 9898 | void GetLogLevelRequest::Swap(GetLogLevelRequest* other) { |
| 9899 | if (other == this) return; |
| 9900 | InternalSwap(other); |
| 9901 | } |
| 9902 | void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) { |
| 9903 | using std::swap; |
| 9904 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9905 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 9906 | swap(device_uuid_, other->device_uuid_); |
| 9907 | } |
| 9908 | |
| 9909 | ::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const { |
| 9910 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9911 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9912 | } |
| 9913 | |
| 9914 | |
| 9915 | // =================================================================== |
| 9916 | |
| 9917 | void GetLogLevelResponse::InitAsDefaultInstance() { |
| 9918 | ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9919 | ::dmi::Uuid::internal_default_instance()); |
| 9920 | } |
| 9921 | class GetLogLevelResponse::HasBitSetters { |
| 9922 | public: |
| 9923 | static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg); |
| 9924 | }; |
| 9925 | |
| 9926 | const ::dmi::Uuid& |
| 9927 | GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) { |
| 9928 | return *msg->device_uuid_; |
| 9929 | } |
| 9930 | void GetLogLevelResponse::clear_device_uuid() { |
| 9931 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9932 | delete device_uuid_; |
| 9933 | } |
| 9934 | device_uuid_ = nullptr; |
| 9935 | } |
| 9936 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9937 | const int GetLogLevelResponse::kDeviceUuidFieldNumber; |
| 9938 | const int GetLogLevelResponse::kLogLevelsFieldNumber; |
| 9939 | const int GetLogLevelResponse::kStatusFieldNumber; |
| 9940 | const int GetLogLevelResponse::kReasonFieldNumber; |
| 9941 | const int GetLogLevelResponse::kReasonDetailFieldNumber; |
| 9942 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9943 | |
| 9944 | GetLogLevelResponse::GetLogLevelResponse() |
| 9945 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9946 | SharedCtor(); |
| 9947 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse) |
| 9948 | } |
| 9949 | GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from) |
| 9950 | : ::google::protobuf::Message(), |
| 9951 | _internal_metadata_(nullptr), |
| 9952 | loglevels_(from.loglevels_) { |
| 9953 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9954 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9955 | if (from.reason_detail().size() > 0) { |
| 9956 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9957 | } |
| 9958 | if (from.has_device_uuid()) { |
| 9959 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9960 | } else { |
| 9961 | device_uuid_ = nullptr; |
| 9962 | } |
| 9963 | ::memcpy(&status_, &from.status_, |
| 9964 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 9965 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9966 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse) |
| 9967 | } |
| 9968 | |
| 9969 | void GetLogLevelResponse::SharedCtor() { |
| 9970 | ::google::protobuf::internal::InitSCC( |
| 9971 | &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9972 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9973 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 9974 | reinterpret_cast<char*>(&reason_) - |
| 9975 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 9976 | } |
| 9977 | |
| 9978 | GetLogLevelResponse::~GetLogLevelResponse() { |
| 9979 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse) |
| 9980 | SharedDtor(); |
| 9981 | } |
| 9982 | |
| 9983 | void GetLogLevelResponse::SharedDtor() { |
| 9984 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9985 | if (this != internal_default_instance()) delete device_uuid_; |
| 9986 | } |
| 9987 | |
| 9988 | void GetLogLevelResponse::SetCachedSize(int size) const { |
| 9989 | _cached_size_.Set(size); |
| 9990 | } |
| 9991 | const GetLogLevelResponse& GetLogLevelResponse::default_instance() { |
| 9992 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9993 | return *internal_default_instance(); |
| 9994 | } |
| 9995 | |
| 9996 | |
| 9997 | void GetLogLevelResponse::Clear() { |
| 9998 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse) |
| 9999 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10000 | // Prevent compiler warnings about cached_has_bits being unused |
| 10001 | (void) cached_has_bits; |
| 10002 | |
| 10003 | loglevels_.Clear(); |
| 10004 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 10005 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10006 | delete device_uuid_; |
| 10007 | } |
| 10008 | device_uuid_ = nullptr; |
| 10009 | ::memset(&status_, 0, static_cast<size_t>( |
| 10010 | reinterpret_cast<char*>(&reason_) - |
| 10011 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 10012 | _internal_metadata_.Clear(); |
| 10013 | } |
| 10014 | |
| 10015 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10016 | const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 10017 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10018 | auto msg = static_cast<GetLogLevelResponse*>(object); |
| 10019 | ::google::protobuf::int32 size; (void)size; |
| 10020 | int depth; (void)depth; |
| 10021 | ::google::protobuf::uint32 tag; |
| 10022 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10023 | auto ptr = begin; |
| 10024 | while (ptr < end) { |
| 10025 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10026 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10027 | switch (tag >> 3) { |
| 10028 | // .dmi.Uuid device_uuid = 1; |
| 10029 | case 1: { |
| 10030 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10031 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10032 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10033 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10034 | object = msg->mutable_device_uuid(); |
| 10035 | if (size > end - ptr) goto len_delim_till_end; |
| 10036 | ptr += size; |
| 10037 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10038 | {parser_till_end, object}, ptr - size, ptr)); |
| 10039 | break; |
| 10040 | } |
| 10041 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 10042 | case 2: { |
| 10043 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 10044 | do { |
| 10045 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10046 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10047 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 10048 | object = msg->add_loglevels(); |
| 10049 | if (size > end - ptr) goto len_delim_till_end; |
| 10050 | ptr += size; |
| 10051 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10052 | {parser_till_end, object}, ptr - size, ptr)); |
| 10053 | if (ptr >= end) break; |
| 10054 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 10055 | break; |
| 10056 | } |
| 10057 | // .dmi.Status status = 3; |
| 10058 | case 3: { |
| 10059 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 10060 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10061 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 10062 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10063 | break; |
| 10064 | } |
| 10065 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 10066 | case 4: { |
| 10067 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 10068 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10069 | msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val)); |
| 10070 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10071 | break; |
| 10072 | } |
| 10073 | // string reason_detail = 5; |
| 10074 | case 5: { |
| 10075 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 10076 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10077 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10078 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail"); |
| 10079 | object = msg->mutable_reason_detail(); |
| 10080 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 10081 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 10082 | goto string_till_end; |
| 10083 | } |
| 10084 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 10085 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 10086 | ptr += size; |
| 10087 | break; |
| 10088 | } |
| 10089 | default: { |
| 10090 | handle_unusual: |
| 10091 | if ((tag & 7) == 4 || tag == 0) { |
| 10092 | ctx->EndGroup(tag); |
| 10093 | return ptr; |
| 10094 | } |
| 10095 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10096 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10097 | ptr = res.first; |
| 10098 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10099 | if (res.second) return ptr; |
| 10100 | } |
| 10101 | } // switch |
| 10102 | } // while |
| 10103 | return ptr; |
| 10104 | string_till_end: |
| 10105 | static_cast<::std::string*>(object)->clear(); |
| 10106 | static_cast<::std::string*>(object)->reserve(size); |
| 10107 | goto len_delim_till_end; |
| 10108 | len_delim_till_end: |
| 10109 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10110 | {parser_till_end, object}, size); |
| 10111 | } |
| 10112 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10113 | bool GetLogLevelResponse::MergePartialFromCodedStream( |
| 10114 | ::google::protobuf::io::CodedInputStream* input) { |
| 10115 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10116 | ::google::protobuf::uint32 tag; |
| 10117 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse) |
| 10118 | for (;;) { |
| 10119 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10120 | tag = p.first; |
| 10121 | if (!p.second) goto handle_unusual; |
| 10122 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10123 | // .dmi.Uuid device_uuid = 1; |
| 10124 | case 1: { |
| 10125 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10126 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10127 | input, mutable_device_uuid())); |
| 10128 | } else { |
| 10129 | goto handle_unusual; |
| 10130 | } |
| 10131 | break; |
| 10132 | } |
| 10133 | |
| 10134 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 10135 | case 2: { |
| 10136 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 10137 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10138 | input, add_loglevels())); |
| 10139 | } else { |
| 10140 | goto handle_unusual; |
| 10141 | } |
| 10142 | break; |
| 10143 | } |
| 10144 | |
| 10145 | // .dmi.Status status = 3; |
| 10146 | case 3: { |
| 10147 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 10148 | int value = 0; |
| 10149 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10150 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10151 | input, &value))); |
| 10152 | set_status(static_cast< ::dmi::Status >(value)); |
| 10153 | } else { |
| 10154 | goto handle_unusual; |
| 10155 | } |
| 10156 | break; |
| 10157 | } |
| 10158 | |
| 10159 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 10160 | case 4: { |
| 10161 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 10162 | int value = 0; |
| 10163 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10164 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10165 | input, &value))); |
| 10166 | set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value)); |
| 10167 | } else { |
| 10168 | goto handle_unusual; |
| 10169 | } |
| 10170 | break; |
| 10171 | } |
| 10172 | |
| 10173 | // string reason_detail = 5; |
| 10174 | case 5: { |
| 10175 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 10176 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 10177 | input, this->mutable_reason_detail())); |
| 10178 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 10179 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 10180 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 10181 | "dmi.GetLogLevelResponse.reason_detail")); |
| 10182 | } else { |
| 10183 | goto handle_unusual; |
| 10184 | } |
| 10185 | break; |
| 10186 | } |
| 10187 | |
| 10188 | default: { |
| 10189 | handle_unusual: |
| 10190 | if (tag == 0) { |
| 10191 | goto success; |
| 10192 | } |
| 10193 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10194 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10195 | break; |
| 10196 | } |
| 10197 | } |
| 10198 | } |
| 10199 | success: |
| 10200 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse) |
| 10201 | return true; |
| 10202 | failure: |
| 10203 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse) |
| 10204 | return false; |
| 10205 | #undef DO_ |
| 10206 | } |
| 10207 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10208 | |
| 10209 | void GetLogLevelResponse::SerializeWithCachedSizes( |
| 10210 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10211 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse) |
| 10212 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10213 | (void) cached_has_bits; |
| 10214 | |
| 10215 | // .dmi.Uuid device_uuid = 1; |
| 10216 | if (this->has_device_uuid()) { |
| 10217 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10218 | 1, HasBitSetters::device_uuid(this), output); |
| 10219 | } |
| 10220 | |
| 10221 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 10222 | for (unsigned int i = 0, |
| 10223 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 10224 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10225 | 2, |
| 10226 | this->loglevels(static_cast<int>(i)), |
| 10227 | output); |
| 10228 | } |
| 10229 | |
| 10230 | // .dmi.Status status = 3; |
| 10231 | if (this->status() != 0) { |
| 10232 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10233 | 3, this->status(), output); |
| 10234 | } |
| 10235 | |
| 10236 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 10237 | if (this->reason() != 0) { |
| 10238 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10239 | 4, this->reason(), output); |
| 10240 | } |
| 10241 | |
| 10242 | // string reason_detail = 5; |
| 10243 | if (this->reason_detail().size() > 0) { |
| 10244 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 10245 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 10246 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 10247 | "dmi.GetLogLevelResponse.reason_detail"); |
| 10248 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 10249 | 5, this->reason_detail(), output); |
| 10250 | } |
| 10251 | |
| 10252 | if (_internal_metadata_.have_unknown_fields()) { |
| 10253 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10254 | _internal_metadata_.unknown_fields(), output); |
| 10255 | } |
| 10256 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse) |
| 10257 | } |
| 10258 | |
| 10259 | ::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 10260 | ::google::protobuf::uint8* target) const { |
| 10261 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse) |
| 10262 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10263 | (void) cached_has_bits; |
| 10264 | |
| 10265 | // .dmi.Uuid device_uuid = 1; |
| 10266 | if (this->has_device_uuid()) { |
| 10267 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10268 | InternalWriteMessageToArray( |
| 10269 | 1, HasBitSetters::device_uuid(this), target); |
| 10270 | } |
| 10271 | |
| 10272 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 10273 | for (unsigned int i = 0, |
| 10274 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 10275 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10276 | InternalWriteMessageToArray( |
| 10277 | 2, this->loglevels(static_cast<int>(i)), target); |
| 10278 | } |
| 10279 | |
| 10280 | // .dmi.Status status = 3; |
| 10281 | if (this->status() != 0) { |
| 10282 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10283 | 3, this->status(), target); |
| 10284 | } |
| 10285 | |
| 10286 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 10287 | if (this->reason() != 0) { |
| 10288 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10289 | 4, this->reason(), target); |
| 10290 | } |
| 10291 | |
| 10292 | // string reason_detail = 5; |
| 10293 | if (this->reason_detail().size() > 0) { |
| 10294 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 10295 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 10296 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 10297 | "dmi.GetLogLevelResponse.reason_detail"); |
| 10298 | target = |
| 10299 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 10300 | 5, this->reason_detail(), target); |
| 10301 | } |
| 10302 | |
| 10303 | if (_internal_metadata_.have_unknown_fields()) { |
| 10304 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10305 | _internal_metadata_.unknown_fields(), target); |
| 10306 | } |
| 10307 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse) |
| 10308 | return target; |
| 10309 | } |
| 10310 | |
| 10311 | size_t GetLogLevelResponse::ByteSizeLong() const { |
| 10312 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse) |
| 10313 | size_t total_size = 0; |
| 10314 | |
| 10315 | if (_internal_metadata_.have_unknown_fields()) { |
| 10316 | total_size += |
| 10317 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10318 | _internal_metadata_.unknown_fields()); |
| 10319 | } |
| 10320 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10321 | // Prevent compiler warnings about cached_has_bits being unused |
| 10322 | (void) cached_has_bits; |
| 10323 | |
| 10324 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 10325 | { |
| 10326 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 10327 | total_size += 1UL * count; |
| 10328 | for (unsigned int i = 0; i < count; i++) { |
| 10329 | total_size += |
| 10330 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10331 | this->loglevels(static_cast<int>(i))); |
| 10332 | } |
| 10333 | } |
| 10334 | |
| 10335 | // string reason_detail = 5; |
| 10336 | if (this->reason_detail().size() > 0) { |
| 10337 | total_size += 1 + |
| 10338 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 10339 | this->reason_detail()); |
| 10340 | } |
| 10341 | |
| 10342 | // .dmi.Uuid device_uuid = 1; |
| 10343 | if (this->has_device_uuid()) { |
| 10344 | total_size += 1 + |
| 10345 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10346 | *device_uuid_); |
| 10347 | } |
| 10348 | |
| 10349 | // .dmi.Status status = 3; |
| 10350 | if (this->status() != 0) { |
| 10351 | total_size += 1 + |
| 10352 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 10353 | } |
| 10354 | |
| 10355 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 10356 | if (this->reason() != 0) { |
| 10357 | total_size += 1 + |
| 10358 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 10359 | } |
| 10360 | |
| 10361 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10362 | SetCachedSize(cached_size); |
| 10363 | return total_size; |
| 10364 | } |
| 10365 | |
| 10366 | void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 10367 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse) |
| 10368 | GOOGLE_DCHECK_NE(&from, this); |
| 10369 | const GetLogLevelResponse* source = |
| 10370 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>( |
| 10371 | &from); |
| 10372 | if (source == nullptr) { |
| 10373 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse) |
| 10374 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10375 | } else { |
| 10376 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse) |
| 10377 | MergeFrom(*source); |
| 10378 | } |
| 10379 | } |
| 10380 | |
| 10381 | void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) { |
| 10382 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse) |
| 10383 | GOOGLE_DCHECK_NE(&from, this); |
| 10384 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10385 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10386 | (void) cached_has_bits; |
| 10387 | |
| 10388 | loglevels_.MergeFrom(from.loglevels_); |
| 10389 | if (from.reason_detail().size() > 0) { |
| 10390 | |
| 10391 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 10392 | } |
| 10393 | if (from.has_device_uuid()) { |
| 10394 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10395 | } |
| 10396 | if (from.status() != 0) { |
| 10397 | set_status(from.status()); |
| 10398 | } |
| 10399 | if (from.reason() != 0) { |
| 10400 | set_reason(from.reason()); |
| 10401 | } |
| 10402 | } |
| 10403 | |
| 10404 | void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 10405 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse) |
| 10406 | if (&from == this) return; |
| 10407 | Clear(); |
| 10408 | MergeFrom(from); |
| 10409 | } |
| 10410 | |
| 10411 | void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) { |
| 10412 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse) |
| 10413 | if (&from == this) return; |
| 10414 | Clear(); |
| 10415 | MergeFrom(from); |
| 10416 | } |
| 10417 | |
| 10418 | bool GetLogLevelResponse::IsInitialized() const { |
| 10419 | return true; |
| 10420 | } |
| 10421 | |
| 10422 | void GetLogLevelResponse::Swap(GetLogLevelResponse* other) { |
| 10423 | if (other == this) return; |
| 10424 | InternalSwap(other); |
| 10425 | } |
| 10426 | void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) { |
| 10427 | using std::swap; |
| 10428 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10429 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 10430 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 10431 | GetArenaNoVirtual()); |
| 10432 | swap(device_uuid_, other->device_uuid_); |
| 10433 | swap(status_, other->status_); |
| 10434 | swap(reason_, other->reason_); |
| 10435 | } |
| 10436 | |
| 10437 | ::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const { |
| 10438 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10439 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10440 | } |
| 10441 | |
| 10442 | |
| 10443 | // =================================================================== |
| 10444 | |
| 10445 | void GetLoggableEntitiesRequest::InitAsDefaultInstance() { |
| 10446 | ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 10447 | ::dmi::Uuid::internal_default_instance()); |
| 10448 | } |
| 10449 | class GetLoggableEntitiesRequest::HasBitSetters { |
| 10450 | public: |
| 10451 | static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg); |
| 10452 | }; |
| 10453 | |
| 10454 | const ::dmi::Uuid& |
| 10455 | GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) { |
| 10456 | return *msg->device_uuid_; |
| 10457 | } |
| 10458 | void GetLoggableEntitiesRequest::clear_device_uuid() { |
| 10459 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10460 | delete device_uuid_; |
| 10461 | } |
| 10462 | device_uuid_ = nullptr; |
| 10463 | } |
| 10464 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10465 | const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber; |
| 10466 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10467 | |
| 10468 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest() |
| 10469 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10470 | SharedCtor(); |
| 10471 | // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest) |
| 10472 | } |
| 10473 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from) |
| 10474 | : ::google::protobuf::Message(), |
| 10475 | _internal_metadata_(nullptr) { |
| 10476 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10477 | if (from.has_device_uuid()) { |
| 10478 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 10479 | } else { |
| 10480 | device_uuid_ = nullptr; |
| 10481 | } |
| 10482 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest) |
| 10483 | } |
| 10484 | |
| 10485 | void GetLoggableEntitiesRequest::SharedCtor() { |
| 10486 | ::google::protobuf::internal::InitSCC( |
| 10487 | &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10488 | device_uuid_ = nullptr; |
| 10489 | } |
| 10490 | |
| 10491 | GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() { |
| 10492 | // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest) |
| 10493 | SharedDtor(); |
| 10494 | } |
| 10495 | |
| 10496 | void GetLoggableEntitiesRequest::SharedDtor() { |
| 10497 | if (this != internal_default_instance()) delete device_uuid_; |
| 10498 | } |
| 10499 | |
| 10500 | void GetLoggableEntitiesRequest::SetCachedSize(int size) const { |
| 10501 | _cached_size_.Set(size); |
| 10502 | } |
| 10503 | const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() { |
| 10504 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10505 | return *internal_default_instance(); |
| 10506 | } |
| 10507 | |
| 10508 | |
| 10509 | void GetLoggableEntitiesRequest::Clear() { |
| 10510 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest) |
| 10511 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10512 | // Prevent compiler warnings about cached_has_bits being unused |
| 10513 | (void) cached_has_bits; |
| 10514 | |
| 10515 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 10516 | delete device_uuid_; |
| 10517 | } |
| 10518 | device_uuid_ = nullptr; |
| 10519 | _internal_metadata_.Clear(); |
| 10520 | } |
| 10521 | |
| 10522 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10523 | const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10524 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10525 | auto msg = static_cast<GetLoggableEntitiesRequest*>(object); |
| 10526 | ::google::protobuf::int32 size; (void)size; |
| 10527 | int depth; (void)depth; |
| 10528 | ::google::protobuf::uint32 tag; |
| 10529 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10530 | auto ptr = begin; |
| 10531 | while (ptr < end) { |
| 10532 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10533 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10534 | switch (tag >> 3) { |
| 10535 | // .dmi.Uuid device_uuid = 1; |
| 10536 | case 1: { |
| 10537 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 10538 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 10539 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10540 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 10541 | object = msg->mutable_device_uuid(); |
| 10542 | if (size > end - ptr) goto len_delim_till_end; |
| 10543 | ptr += size; |
| 10544 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 10545 | {parser_till_end, object}, ptr - size, ptr)); |
| 10546 | break; |
| 10547 | } |
| 10548 | default: { |
| 10549 | handle_unusual: |
| 10550 | if ((tag & 7) == 4 || tag == 0) { |
| 10551 | ctx->EndGroup(tag); |
| 10552 | return ptr; |
| 10553 | } |
| 10554 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10555 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10556 | ptr = res.first; |
| 10557 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10558 | if (res.second) return ptr; |
| 10559 | } |
| 10560 | } // switch |
| 10561 | } // while |
| 10562 | return ptr; |
| 10563 | len_delim_till_end: |
| 10564 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 10565 | {parser_till_end, object}, size); |
| 10566 | } |
| 10567 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10568 | bool GetLoggableEntitiesRequest::MergePartialFromCodedStream( |
| 10569 | ::google::protobuf::io::CodedInputStream* input) { |
| 10570 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10571 | ::google::protobuf::uint32 tag; |
| 10572 | // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest) |
| 10573 | for (;;) { |
| 10574 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10575 | tag = p.first; |
| 10576 | if (!p.second) goto handle_unusual; |
| 10577 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10578 | // .dmi.Uuid device_uuid = 1; |
| 10579 | case 1: { |
| 10580 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 10581 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 10582 | input, mutable_device_uuid())); |
| 10583 | } else { |
| 10584 | goto handle_unusual; |
| 10585 | } |
| 10586 | break; |
| 10587 | } |
| 10588 | |
| 10589 | default: { |
| 10590 | handle_unusual: |
| 10591 | if (tag == 0) { |
| 10592 | goto success; |
| 10593 | } |
| 10594 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10595 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10596 | break; |
| 10597 | } |
| 10598 | } |
| 10599 | } |
| 10600 | success: |
| 10601 | // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest) |
| 10602 | return true; |
| 10603 | failure: |
| 10604 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest) |
| 10605 | return false; |
| 10606 | #undef DO_ |
| 10607 | } |
| 10608 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10609 | |
| 10610 | void GetLoggableEntitiesRequest::SerializeWithCachedSizes( |
| 10611 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10612 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest) |
| 10613 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10614 | (void) cached_has_bits; |
| 10615 | |
| 10616 | // .dmi.Uuid device_uuid = 1; |
| 10617 | if (this->has_device_uuid()) { |
| 10618 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10619 | 1, HasBitSetters::device_uuid(this), output); |
| 10620 | } |
| 10621 | |
| 10622 | if (_internal_metadata_.have_unknown_fields()) { |
| 10623 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10624 | _internal_metadata_.unknown_fields(), output); |
| 10625 | } |
| 10626 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest) |
| 10627 | } |
| 10628 | |
| 10629 | ::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray( |
| 10630 | ::google::protobuf::uint8* target) const { |
| 10631 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest) |
| 10632 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10633 | (void) cached_has_bits; |
| 10634 | |
| 10635 | // .dmi.Uuid device_uuid = 1; |
| 10636 | if (this->has_device_uuid()) { |
| 10637 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10638 | InternalWriteMessageToArray( |
| 10639 | 1, HasBitSetters::device_uuid(this), target); |
| 10640 | } |
| 10641 | |
| 10642 | if (_internal_metadata_.have_unknown_fields()) { |
| 10643 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10644 | _internal_metadata_.unknown_fields(), target); |
| 10645 | } |
| 10646 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest) |
| 10647 | return target; |
| 10648 | } |
| 10649 | |
| 10650 | size_t GetLoggableEntitiesRequest::ByteSizeLong() const { |
| 10651 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest) |
| 10652 | size_t total_size = 0; |
| 10653 | |
| 10654 | if (_internal_metadata_.have_unknown_fields()) { |
| 10655 | total_size += |
| 10656 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10657 | _internal_metadata_.unknown_fields()); |
| 10658 | } |
| 10659 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10660 | // Prevent compiler warnings about cached_has_bits being unused |
| 10661 | (void) cached_has_bits; |
| 10662 | |
| 10663 | // .dmi.Uuid device_uuid = 1; |
| 10664 | if (this->has_device_uuid()) { |
| 10665 | total_size += 1 + |
| 10666 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10667 | *device_uuid_); |
| 10668 | } |
| 10669 | |
| 10670 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10671 | SetCachedSize(cached_size); |
| 10672 | return total_size; |
| 10673 | } |
| 10674 | |
| 10675 | void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10676 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10677 | GOOGLE_DCHECK_NE(&from, this); |
| 10678 | const GetLoggableEntitiesRequest* source = |
| 10679 | ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>( |
| 10680 | &from); |
| 10681 | if (source == nullptr) { |
| 10682 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest) |
| 10683 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10684 | } else { |
| 10685 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest) |
| 10686 | MergeFrom(*source); |
| 10687 | } |
| 10688 | } |
| 10689 | |
| 10690 | void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) { |
| 10691 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10692 | GOOGLE_DCHECK_NE(&from, this); |
| 10693 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10694 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10695 | (void) cached_has_bits; |
| 10696 | |
| 10697 | if (from.has_device_uuid()) { |
| 10698 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10699 | } |
| 10700 | } |
| 10701 | |
| 10702 | void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10703 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10704 | if (&from == this) return; |
| 10705 | Clear(); |
| 10706 | MergeFrom(from); |
| 10707 | } |
| 10708 | |
| 10709 | void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) { |
| 10710 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10711 | if (&from == this) return; |
| 10712 | Clear(); |
| 10713 | MergeFrom(from); |
| 10714 | } |
| 10715 | |
| 10716 | bool GetLoggableEntitiesRequest::IsInitialized() const { |
| 10717 | return true; |
| 10718 | } |
| 10719 | |
| 10720 | void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) { |
| 10721 | if (other == this) return; |
| 10722 | InternalSwap(other); |
| 10723 | } |
| 10724 | void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) { |
| 10725 | using std::swap; |
| 10726 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10727 | swap(device_uuid_, other->device_uuid_); |
| 10728 | } |
| 10729 | |
| 10730 | ::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const { |
| 10731 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10732 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10733 | } |
| 10734 | |
| 10735 | |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 10736 | // =================================================================== |
| 10737 | |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 10738 | void SetDmLogLevelRequest::InitAsDefaultInstance() { |
| 10739 | } |
| 10740 | class SetDmLogLevelRequest::HasBitSetters { |
| 10741 | public: |
| 10742 | }; |
| 10743 | |
| 10744 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10745 | const int SetDmLogLevelRequest::kLevelFieldNumber; |
| 10746 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10747 | |
| 10748 | SetDmLogLevelRequest::SetDmLogLevelRequest() |
| 10749 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10750 | SharedCtor(); |
| 10751 | // @@protoc_insertion_point(constructor:dmi.SetDmLogLevelRequest) |
| 10752 | } |
| 10753 | SetDmLogLevelRequest::SetDmLogLevelRequest(const SetDmLogLevelRequest& from) |
| 10754 | : ::google::protobuf::Message(), |
| 10755 | _internal_metadata_(nullptr) { |
| 10756 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10757 | level_ = from.level_; |
| 10758 | // @@protoc_insertion_point(copy_constructor:dmi.SetDmLogLevelRequest) |
| 10759 | } |
| 10760 | |
| 10761 | void SetDmLogLevelRequest::SharedCtor() { |
| 10762 | level_ = 0; |
| 10763 | } |
| 10764 | |
| 10765 | SetDmLogLevelRequest::~SetDmLogLevelRequest() { |
| 10766 | // @@protoc_insertion_point(destructor:dmi.SetDmLogLevelRequest) |
| 10767 | SharedDtor(); |
| 10768 | } |
| 10769 | |
| 10770 | void SetDmLogLevelRequest::SharedDtor() { |
| 10771 | } |
| 10772 | |
| 10773 | void SetDmLogLevelRequest::SetCachedSize(int size) const { |
| 10774 | _cached_size_.Set(size); |
| 10775 | } |
| 10776 | const SetDmLogLevelRequest& SetDmLogLevelRequest::default_instance() { |
| 10777 | ::google::protobuf::internal::InitSCC(&::scc_info_SetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10778 | return *internal_default_instance(); |
| 10779 | } |
| 10780 | |
| 10781 | |
| 10782 | void SetDmLogLevelRequest::Clear() { |
| 10783 | // @@protoc_insertion_point(message_clear_start:dmi.SetDmLogLevelRequest) |
| 10784 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10785 | // Prevent compiler warnings about cached_has_bits being unused |
| 10786 | (void) cached_has_bits; |
| 10787 | |
| 10788 | level_ = 0; |
| 10789 | _internal_metadata_.Clear(); |
| 10790 | } |
| 10791 | |
| 10792 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10793 | const char* SetDmLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 10794 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10795 | auto msg = static_cast<SetDmLogLevelRequest*>(object); |
| 10796 | ::google::protobuf::int32 size; (void)size; |
| 10797 | int depth; (void)depth; |
| 10798 | ::google::protobuf::uint32 tag; |
| 10799 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10800 | auto ptr = begin; |
| 10801 | while (ptr < end) { |
| 10802 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10803 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10804 | switch (tag >> 3) { |
| 10805 | // .dmi.LogLevel level = 1; |
| 10806 | case 1: { |
| 10807 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 10808 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 10809 | msg->set_level(static_cast<::dmi::LogLevel>(val)); |
| 10810 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10811 | break; |
| 10812 | } |
| 10813 | default: { |
| 10814 | handle_unusual: |
| 10815 | if ((tag & 7) == 4 || tag == 0) { |
| 10816 | ctx->EndGroup(tag); |
| 10817 | return ptr; |
| 10818 | } |
| 10819 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10820 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10821 | ptr = res.first; |
| 10822 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10823 | if (res.second) return ptr; |
| 10824 | } |
| 10825 | } // switch |
| 10826 | } // while |
| 10827 | return ptr; |
| 10828 | } |
| 10829 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10830 | bool SetDmLogLevelRequest::MergePartialFromCodedStream( |
| 10831 | ::google::protobuf::io::CodedInputStream* input) { |
| 10832 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10833 | ::google::protobuf::uint32 tag; |
| 10834 | // @@protoc_insertion_point(parse_start:dmi.SetDmLogLevelRequest) |
| 10835 | for (;;) { |
| 10836 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10837 | tag = p.first; |
| 10838 | if (!p.second) goto handle_unusual; |
| 10839 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10840 | // .dmi.LogLevel level = 1; |
| 10841 | case 1: { |
| 10842 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 10843 | int value = 0; |
| 10844 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10845 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 10846 | input, &value))); |
| 10847 | set_level(static_cast< ::dmi::LogLevel >(value)); |
| 10848 | } else { |
| 10849 | goto handle_unusual; |
| 10850 | } |
| 10851 | break; |
| 10852 | } |
| 10853 | |
| 10854 | default: { |
| 10855 | handle_unusual: |
| 10856 | if (tag == 0) { |
| 10857 | goto success; |
| 10858 | } |
| 10859 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10860 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10861 | break; |
| 10862 | } |
| 10863 | } |
| 10864 | } |
| 10865 | success: |
| 10866 | // @@protoc_insertion_point(parse_success:dmi.SetDmLogLevelRequest) |
| 10867 | return true; |
| 10868 | failure: |
| 10869 | // @@protoc_insertion_point(parse_failure:dmi.SetDmLogLevelRequest) |
| 10870 | return false; |
| 10871 | #undef DO_ |
| 10872 | } |
| 10873 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10874 | |
| 10875 | void SetDmLogLevelRequest::SerializeWithCachedSizes( |
| 10876 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10877 | // @@protoc_insertion_point(serialize_start:dmi.SetDmLogLevelRequest) |
| 10878 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10879 | (void) cached_has_bits; |
| 10880 | |
| 10881 | // .dmi.LogLevel level = 1; |
| 10882 | if (this->level() != 0) { |
| 10883 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 10884 | 1, this->level(), output); |
| 10885 | } |
| 10886 | |
| 10887 | if (_internal_metadata_.have_unknown_fields()) { |
| 10888 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10889 | _internal_metadata_.unknown_fields(), output); |
| 10890 | } |
| 10891 | // @@protoc_insertion_point(serialize_end:dmi.SetDmLogLevelRequest) |
| 10892 | } |
| 10893 | |
| 10894 | ::google::protobuf::uint8* SetDmLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 10895 | ::google::protobuf::uint8* target) const { |
| 10896 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetDmLogLevelRequest) |
| 10897 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10898 | (void) cached_has_bits; |
| 10899 | |
| 10900 | // .dmi.LogLevel level = 1; |
| 10901 | if (this->level() != 0) { |
| 10902 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 10903 | 1, this->level(), target); |
| 10904 | } |
| 10905 | |
| 10906 | if (_internal_metadata_.have_unknown_fields()) { |
| 10907 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10908 | _internal_metadata_.unknown_fields(), target); |
| 10909 | } |
| 10910 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetDmLogLevelRequest) |
| 10911 | return target; |
| 10912 | } |
| 10913 | |
| 10914 | size_t SetDmLogLevelRequest::ByteSizeLong() const { |
| 10915 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetDmLogLevelRequest) |
| 10916 | size_t total_size = 0; |
| 10917 | |
| 10918 | if (_internal_metadata_.have_unknown_fields()) { |
| 10919 | total_size += |
| 10920 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10921 | _internal_metadata_.unknown_fields()); |
| 10922 | } |
| 10923 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10924 | // Prevent compiler warnings about cached_has_bits being unused |
| 10925 | (void) cached_has_bits; |
| 10926 | |
| 10927 | // .dmi.LogLevel level = 1; |
| 10928 | if (this->level() != 0) { |
| 10929 | total_size += 1 + |
| 10930 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->level()); |
| 10931 | } |
| 10932 | |
| 10933 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10934 | SetCachedSize(cached_size); |
| 10935 | return total_size; |
| 10936 | } |
| 10937 | |
| 10938 | void SetDmLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10939 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetDmLogLevelRequest) |
| 10940 | GOOGLE_DCHECK_NE(&from, this); |
| 10941 | const SetDmLogLevelRequest* source = |
| 10942 | ::google::protobuf::DynamicCastToGenerated<SetDmLogLevelRequest>( |
| 10943 | &from); |
| 10944 | if (source == nullptr) { |
| 10945 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetDmLogLevelRequest) |
| 10946 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10947 | } else { |
| 10948 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetDmLogLevelRequest) |
| 10949 | MergeFrom(*source); |
| 10950 | } |
| 10951 | } |
| 10952 | |
| 10953 | void SetDmLogLevelRequest::MergeFrom(const SetDmLogLevelRequest& from) { |
| 10954 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetDmLogLevelRequest) |
| 10955 | GOOGLE_DCHECK_NE(&from, this); |
| 10956 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10957 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10958 | (void) cached_has_bits; |
| 10959 | |
| 10960 | if (from.level() != 0) { |
| 10961 | set_level(from.level()); |
| 10962 | } |
| 10963 | } |
| 10964 | |
| 10965 | void SetDmLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10966 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetDmLogLevelRequest) |
| 10967 | if (&from == this) return; |
| 10968 | Clear(); |
| 10969 | MergeFrom(from); |
| 10970 | } |
| 10971 | |
| 10972 | void SetDmLogLevelRequest::CopyFrom(const SetDmLogLevelRequest& from) { |
| 10973 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetDmLogLevelRequest) |
| 10974 | if (&from == this) return; |
| 10975 | Clear(); |
| 10976 | MergeFrom(from); |
| 10977 | } |
| 10978 | |
| 10979 | bool SetDmLogLevelRequest::IsInitialized() const { |
| 10980 | return true; |
| 10981 | } |
| 10982 | |
| 10983 | void SetDmLogLevelRequest::Swap(SetDmLogLevelRequest* other) { |
| 10984 | if (other == this) return; |
| 10985 | InternalSwap(other); |
| 10986 | } |
| 10987 | void SetDmLogLevelRequest::InternalSwap(SetDmLogLevelRequest* other) { |
| 10988 | using std::swap; |
| 10989 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10990 | swap(level_, other->level_); |
| 10991 | } |
| 10992 | |
| 10993 | ::google::protobuf::Metadata SetDmLogLevelRequest::GetMetadata() const { |
| 10994 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10995 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10996 | } |
| 10997 | |
| 10998 | |
| 10999 | // =================================================================== |
| 11000 | |
| 11001 | void SetDmLogLevelResponse::InitAsDefaultInstance() { |
| 11002 | } |
| 11003 | class SetDmLogLevelResponse::HasBitSetters { |
| 11004 | public: |
| 11005 | }; |
| 11006 | |
| 11007 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11008 | const int SetDmLogLevelResponse::kStatusFieldNumber; |
| 11009 | const int SetDmLogLevelResponse::kReasonFieldNumber; |
| 11010 | const int SetDmLogLevelResponse::kReasonDetailFieldNumber; |
| 11011 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11012 | |
| 11013 | SetDmLogLevelResponse::SetDmLogLevelResponse() |
| 11014 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 11015 | SharedCtor(); |
| 11016 | // @@protoc_insertion_point(constructor:dmi.SetDmLogLevelResponse) |
| 11017 | } |
| 11018 | SetDmLogLevelResponse::SetDmLogLevelResponse(const SetDmLogLevelResponse& from) |
| 11019 | : ::google::protobuf::Message(), |
| 11020 | _internal_metadata_(nullptr) { |
| 11021 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11022 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11023 | if (from.reason_detail().size() > 0) { |
| 11024 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11025 | } |
| 11026 | ::memcpy(&status_, &from.status_, |
| 11027 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 11028 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 11029 | // @@protoc_insertion_point(copy_constructor:dmi.SetDmLogLevelResponse) |
| 11030 | } |
| 11031 | |
| 11032 | void SetDmLogLevelResponse::SharedCtor() { |
| 11033 | ::google::protobuf::internal::InitSCC( |
| 11034 | &scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 11035 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11036 | ::memset(&status_, 0, static_cast<size_t>( |
| 11037 | reinterpret_cast<char*>(&reason_) - |
| 11038 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 11039 | } |
| 11040 | |
| 11041 | SetDmLogLevelResponse::~SetDmLogLevelResponse() { |
| 11042 | // @@protoc_insertion_point(destructor:dmi.SetDmLogLevelResponse) |
| 11043 | SharedDtor(); |
| 11044 | } |
| 11045 | |
| 11046 | void SetDmLogLevelResponse::SharedDtor() { |
| 11047 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11048 | } |
| 11049 | |
| 11050 | void SetDmLogLevelResponse::SetCachedSize(int size) const { |
| 11051 | _cached_size_.Set(size); |
| 11052 | } |
| 11053 | const SetDmLogLevelResponse& SetDmLogLevelResponse::default_instance() { |
| 11054 | ::google::protobuf::internal::InitSCC(&::scc_info_SetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 11055 | return *internal_default_instance(); |
| 11056 | } |
| 11057 | |
| 11058 | |
| 11059 | void SetDmLogLevelResponse::Clear() { |
| 11060 | // @@protoc_insertion_point(message_clear_start:dmi.SetDmLogLevelResponse) |
| 11061 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11062 | // Prevent compiler warnings about cached_has_bits being unused |
| 11063 | (void) cached_has_bits; |
| 11064 | |
| 11065 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11066 | ::memset(&status_, 0, static_cast<size_t>( |
| 11067 | reinterpret_cast<char*>(&reason_) - |
| 11068 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 11069 | _internal_metadata_.Clear(); |
| 11070 | } |
| 11071 | |
| 11072 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11073 | const char* SetDmLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 11074 | ::google::protobuf::internal::ParseContext* ctx) { |
| 11075 | auto msg = static_cast<SetDmLogLevelResponse*>(object); |
| 11076 | ::google::protobuf::int32 size; (void)size; |
| 11077 | int depth; (void)depth; |
| 11078 | ::google::protobuf::uint32 tag; |
| 11079 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 11080 | auto ptr = begin; |
| 11081 | while (ptr < end) { |
| 11082 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 11083 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11084 | switch (tag >> 3) { |
| 11085 | // .dmi.Status status = 1; |
| 11086 | case 1: { |
| 11087 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 11088 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 11089 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 11090 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11091 | break; |
| 11092 | } |
| 11093 | // .dmi.SetDmLogLevelResponse.Reason reason = 2; |
| 11094 | case 2: { |
| 11095 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 11096 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 11097 | msg->set_reason(static_cast<::dmi::SetDmLogLevelResponse_Reason>(val)); |
| 11098 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11099 | break; |
| 11100 | } |
| 11101 | // string reason_detail = 3; |
| 11102 | case 3: { |
| 11103 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 11104 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 11105 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11106 | ctx->extra_parse_data().SetFieldName("dmi.SetDmLogLevelResponse.reason_detail"); |
| 11107 | object = msg->mutable_reason_detail(); |
| 11108 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 11109 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 11110 | goto string_till_end; |
| 11111 | } |
| 11112 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 11113 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 11114 | ptr += size; |
| 11115 | break; |
| 11116 | } |
| 11117 | default: { |
| 11118 | handle_unusual: |
| 11119 | if ((tag & 7) == 4 || tag == 0) { |
| 11120 | ctx->EndGroup(tag); |
| 11121 | return ptr; |
| 11122 | } |
| 11123 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 11124 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 11125 | ptr = res.first; |
| 11126 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 11127 | if (res.second) return ptr; |
| 11128 | } |
| 11129 | } // switch |
| 11130 | } // while |
| 11131 | return ptr; |
| 11132 | string_till_end: |
| 11133 | static_cast<::std::string*>(object)->clear(); |
| 11134 | static_cast<::std::string*>(object)->reserve(size); |
| 11135 | goto len_delim_till_end; |
| 11136 | len_delim_till_end: |
| 11137 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 11138 | {parser_till_end, object}, size); |
| 11139 | } |
| 11140 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11141 | bool SetDmLogLevelResponse::MergePartialFromCodedStream( |
| 11142 | ::google::protobuf::io::CodedInputStream* input) { |
| 11143 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11144 | ::google::protobuf::uint32 tag; |
| 11145 | // @@protoc_insertion_point(parse_start:dmi.SetDmLogLevelResponse) |
| 11146 | for (;;) { |
| 11147 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 11148 | tag = p.first; |
| 11149 | if (!p.second) goto handle_unusual; |
| 11150 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11151 | // .dmi.Status status = 1; |
| 11152 | case 1: { |
| 11153 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 11154 | int value = 0; |
| 11155 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11156 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 11157 | input, &value))); |
| 11158 | set_status(static_cast< ::dmi::Status >(value)); |
| 11159 | } else { |
| 11160 | goto handle_unusual; |
| 11161 | } |
| 11162 | break; |
| 11163 | } |
| 11164 | |
| 11165 | // .dmi.SetDmLogLevelResponse.Reason reason = 2; |
| 11166 | case 2: { |
| 11167 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 11168 | int value = 0; |
| 11169 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11170 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 11171 | input, &value))); |
| 11172 | set_reason(static_cast< ::dmi::SetDmLogLevelResponse_Reason >(value)); |
| 11173 | } else { |
| 11174 | goto handle_unusual; |
| 11175 | } |
| 11176 | break; |
| 11177 | } |
| 11178 | |
| 11179 | // string reason_detail = 3; |
| 11180 | case 3: { |
| 11181 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 11182 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 11183 | input, this->mutable_reason_detail())); |
| 11184 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11185 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11186 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 11187 | "dmi.SetDmLogLevelResponse.reason_detail")); |
| 11188 | } else { |
| 11189 | goto handle_unusual; |
| 11190 | } |
| 11191 | break; |
| 11192 | } |
| 11193 | |
| 11194 | default: { |
| 11195 | handle_unusual: |
| 11196 | if (tag == 0) { |
| 11197 | goto success; |
| 11198 | } |
| 11199 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11200 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 11201 | break; |
| 11202 | } |
| 11203 | } |
| 11204 | } |
| 11205 | success: |
| 11206 | // @@protoc_insertion_point(parse_success:dmi.SetDmLogLevelResponse) |
| 11207 | return true; |
| 11208 | failure: |
| 11209 | // @@protoc_insertion_point(parse_failure:dmi.SetDmLogLevelResponse) |
| 11210 | return false; |
| 11211 | #undef DO_ |
| 11212 | } |
| 11213 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11214 | |
| 11215 | void SetDmLogLevelResponse::SerializeWithCachedSizes( |
| 11216 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11217 | // @@protoc_insertion_point(serialize_start:dmi.SetDmLogLevelResponse) |
| 11218 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11219 | (void) cached_has_bits; |
| 11220 | |
| 11221 | // .dmi.Status status = 1; |
| 11222 | if (this->status() != 0) { |
| 11223 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11224 | 1, this->status(), output); |
| 11225 | } |
| 11226 | |
| 11227 | // .dmi.SetDmLogLevelResponse.Reason reason = 2; |
| 11228 | if (this->reason() != 0) { |
| 11229 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11230 | 2, this->reason(), output); |
| 11231 | } |
| 11232 | |
| 11233 | // string reason_detail = 3; |
| 11234 | if (this->reason_detail().size() > 0) { |
| 11235 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11236 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11237 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11238 | "dmi.SetDmLogLevelResponse.reason_detail"); |
| 11239 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 11240 | 3, this->reason_detail(), output); |
| 11241 | } |
| 11242 | |
| 11243 | if (_internal_metadata_.have_unknown_fields()) { |
| 11244 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11245 | _internal_metadata_.unknown_fields(), output); |
| 11246 | } |
| 11247 | // @@protoc_insertion_point(serialize_end:dmi.SetDmLogLevelResponse) |
| 11248 | } |
| 11249 | |
| 11250 | ::google::protobuf::uint8* SetDmLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 11251 | ::google::protobuf::uint8* target) const { |
| 11252 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetDmLogLevelResponse) |
| 11253 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11254 | (void) cached_has_bits; |
| 11255 | |
| 11256 | // .dmi.Status status = 1; |
| 11257 | if (this->status() != 0) { |
| 11258 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11259 | 1, this->status(), target); |
| 11260 | } |
| 11261 | |
| 11262 | // .dmi.SetDmLogLevelResponse.Reason reason = 2; |
| 11263 | if (this->reason() != 0) { |
| 11264 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11265 | 2, this->reason(), target); |
| 11266 | } |
| 11267 | |
| 11268 | // string reason_detail = 3; |
| 11269 | if (this->reason_detail().size() > 0) { |
| 11270 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11271 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11272 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11273 | "dmi.SetDmLogLevelResponse.reason_detail"); |
| 11274 | target = |
| 11275 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 11276 | 3, this->reason_detail(), target); |
| 11277 | } |
| 11278 | |
| 11279 | if (_internal_metadata_.have_unknown_fields()) { |
| 11280 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11281 | _internal_metadata_.unknown_fields(), target); |
| 11282 | } |
| 11283 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetDmLogLevelResponse) |
| 11284 | return target; |
| 11285 | } |
| 11286 | |
| 11287 | size_t SetDmLogLevelResponse::ByteSizeLong() const { |
| 11288 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetDmLogLevelResponse) |
| 11289 | size_t total_size = 0; |
| 11290 | |
| 11291 | if (_internal_metadata_.have_unknown_fields()) { |
| 11292 | total_size += |
| 11293 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11294 | _internal_metadata_.unknown_fields()); |
| 11295 | } |
| 11296 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11297 | // Prevent compiler warnings about cached_has_bits being unused |
| 11298 | (void) cached_has_bits; |
| 11299 | |
| 11300 | // string reason_detail = 3; |
| 11301 | if (this->reason_detail().size() > 0) { |
| 11302 | total_size += 1 + |
| 11303 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 11304 | this->reason_detail()); |
| 11305 | } |
| 11306 | |
| 11307 | // .dmi.Status status = 1; |
| 11308 | if (this->status() != 0) { |
| 11309 | total_size += 1 + |
| 11310 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 11311 | } |
| 11312 | |
| 11313 | // .dmi.SetDmLogLevelResponse.Reason reason = 2; |
| 11314 | if (this->reason() != 0) { |
| 11315 | total_size += 1 + |
| 11316 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 11317 | } |
| 11318 | |
| 11319 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11320 | SetCachedSize(cached_size); |
| 11321 | return total_size; |
| 11322 | } |
| 11323 | |
| 11324 | void SetDmLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 11325 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetDmLogLevelResponse) |
| 11326 | GOOGLE_DCHECK_NE(&from, this); |
| 11327 | const SetDmLogLevelResponse* source = |
| 11328 | ::google::protobuf::DynamicCastToGenerated<SetDmLogLevelResponse>( |
| 11329 | &from); |
| 11330 | if (source == nullptr) { |
| 11331 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetDmLogLevelResponse) |
| 11332 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11333 | } else { |
| 11334 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetDmLogLevelResponse) |
| 11335 | MergeFrom(*source); |
| 11336 | } |
| 11337 | } |
| 11338 | |
| 11339 | void SetDmLogLevelResponse::MergeFrom(const SetDmLogLevelResponse& from) { |
| 11340 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetDmLogLevelResponse) |
| 11341 | GOOGLE_DCHECK_NE(&from, this); |
| 11342 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11343 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11344 | (void) cached_has_bits; |
| 11345 | |
| 11346 | if (from.reason_detail().size() > 0) { |
| 11347 | |
| 11348 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11349 | } |
| 11350 | if (from.status() != 0) { |
| 11351 | set_status(from.status()); |
| 11352 | } |
| 11353 | if (from.reason() != 0) { |
| 11354 | set_reason(from.reason()); |
| 11355 | } |
| 11356 | } |
| 11357 | |
| 11358 | void SetDmLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 11359 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetDmLogLevelResponse) |
| 11360 | if (&from == this) return; |
| 11361 | Clear(); |
| 11362 | MergeFrom(from); |
| 11363 | } |
| 11364 | |
| 11365 | void SetDmLogLevelResponse::CopyFrom(const SetDmLogLevelResponse& from) { |
| 11366 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetDmLogLevelResponse) |
| 11367 | if (&from == this) return; |
| 11368 | Clear(); |
| 11369 | MergeFrom(from); |
| 11370 | } |
| 11371 | |
| 11372 | bool SetDmLogLevelResponse::IsInitialized() const { |
| 11373 | return true; |
| 11374 | } |
| 11375 | |
| 11376 | void SetDmLogLevelResponse::Swap(SetDmLogLevelResponse* other) { |
| 11377 | if (other == this) return; |
| 11378 | InternalSwap(other); |
| 11379 | } |
| 11380 | void SetDmLogLevelResponse::InternalSwap(SetDmLogLevelResponse* other) { |
| 11381 | using std::swap; |
| 11382 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11383 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 11384 | GetArenaNoVirtual()); |
| 11385 | swap(status_, other->status_); |
| 11386 | swap(reason_, other->reason_); |
| 11387 | } |
| 11388 | |
| 11389 | ::google::protobuf::Metadata SetDmLogLevelResponse::GetMetadata() const { |
| 11390 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 11391 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 11392 | } |
| 11393 | |
| 11394 | |
| 11395 | // =================================================================== |
| 11396 | |
| 11397 | void GetDmLogLevelRequest::InitAsDefaultInstance() { |
| 11398 | } |
| 11399 | class GetDmLogLevelRequest::HasBitSetters { |
| 11400 | public: |
| 11401 | }; |
| 11402 | |
| 11403 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11404 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11405 | |
| 11406 | GetDmLogLevelRequest::GetDmLogLevelRequest() |
| 11407 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 11408 | SharedCtor(); |
| 11409 | // @@protoc_insertion_point(constructor:dmi.GetDmLogLevelRequest) |
| 11410 | } |
| 11411 | GetDmLogLevelRequest::GetDmLogLevelRequest(const GetDmLogLevelRequest& from) |
| 11412 | : ::google::protobuf::Message(), |
| 11413 | _internal_metadata_(nullptr) { |
| 11414 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11415 | // @@protoc_insertion_point(copy_constructor:dmi.GetDmLogLevelRequest) |
| 11416 | } |
| 11417 | |
| 11418 | void GetDmLogLevelRequest::SharedCtor() { |
| 11419 | } |
| 11420 | |
| 11421 | GetDmLogLevelRequest::~GetDmLogLevelRequest() { |
| 11422 | // @@protoc_insertion_point(destructor:dmi.GetDmLogLevelRequest) |
| 11423 | SharedDtor(); |
| 11424 | } |
| 11425 | |
| 11426 | void GetDmLogLevelRequest::SharedDtor() { |
| 11427 | } |
| 11428 | |
| 11429 | void GetDmLogLevelRequest::SetCachedSize(int size) const { |
| 11430 | _cached_size_.Set(size); |
| 11431 | } |
| 11432 | const GetDmLogLevelRequest& GetDmLogLevelRequest::default_instance() { |
| 11433 | ::google::protobuf::internal::InitSCC(&::scc_info_GetDmLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 11434 | return *internal_default_instance(); |
| 11435 | } |
| 11436 | |
| 11437 | |
| 11438 | void GetDmLogLevelRequest::Clear() { |
| 11439 | // @@protoc_insertion_point(message_clear_start:dmi.GetDmLogLevelRequest) |
| 11440 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11441 | // Prevent compiler warnings about cached_has_bits being unused |
| 11442 | (void) cached_has_bits; |
| 11443 | |
| 11444 | _internal_metadata_.Clear(); |
| 11445 | } |
| 11446 | |
| 11447 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11448 | const char* GetDmLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 11449 | ::google::protobuf::internal::ParseContext* ctx) { |
| 11450 | auto msg = static_cast<GetDmLogLevelRequest*>(object); |
| 11451 | ::google::protobuf::int32 size; (void)size; |
| 11452 | int depth; (void)depth; |
| 11453 | ::google::protobuf::uint32 tag; |
| 11454 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 11455 | auto ptr = begin; |
| 11456 | while (ptr < end) { |
| 11457 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 11458 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11459 | switch (tag >> 3) { |
| 11460 | default: { |
| 11461 | if ((tag & 7) == 4 || tag == 0) { |
| 11462 | ctx->EndGroup(tag); |
| 11463 | return ptr; |
| 11464 | } |
| 11465 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 11466 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 11467 | ptr = res.first; |
| 11468 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 11469 | if (res.second) return ptr; |
| 11470 | } |
| 11471 | } // switch |
| 11472 | } // while |
| 11473 | return ptr; |
| 11474 | } |
| 11475 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11476 | bool GetDmLogLevelRequest::MergePartialFromCodedStream( |
| 11477 | ::google::protobuf::io::CodedInputStream* input) { |
| 11478 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11479 | ::google::protobuf::uint32 tag; |
| 11480 | // @@protoc_insertion_point(parse_start:dmi.GetDmLogLevelRequest) |
| 11481 | for (;;) { |
| 11482 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 11483 | tag = p.first; |
| 11484 | if (!p.second) goto handle_unusual; |
| 11485 | handle_unusual: |
| 11486 | if (tag == 0) { |
| 11487 | goto success; |
| 11488 | } |
| 11489 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11490 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 11491 | } |
| 11492 | success: |
| 11493 | // @@protoc_insertion_point(parse_success:dmi.GetDmLogLevelRequest) |
| 11494 | return true; |
| 11495 | failure: |
| 11496 | // @@protoc_insertion_point(parse_failure:dmi.GetDmLogLevelRequest) |
| 11497 | return false; |
| 11498 | #undef DO_ |
| 11499 | } |
| 11500 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11501 | |
| 11502 | void GetDmLogLevelRequest::SerializeWithCachedSizes( |
| 11503 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11504 | // @@protoc_insertion_point(serialize_start:dmi.GetDmLogLevelRequest) |
| 11505 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11506 | (void) cached_has_bits; |
| 11507 | |
| 11508 | if (_internal_metadata_.have_unknown_fields()) { |
| 11509 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11510 | _internal_metadata_.unknown_fields(), output); |
| 11511 | } |
| 11512 | // @@protoc_insertion_point(serialize_end:dmi.GetDmLogLevelRequest) |
| 11513 | } |
| 11514 | |
| 11515 | ::google::protobuf::uint8* GetDmLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 11516 | ::google::protobuf::uint8* target) const { |
| 11517 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetDmLogLevelRequest) |
| 11518 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11519 | (void) cached_has_bits; |
| 11520 | |
| 11521 | if (_internal_metadata_.have_unknown_fields()) { |
| 11522 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11523 | _internal_metadata_.unknown_fields(), target); |
| 11524 | } |
| 11525 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetDmLogLevelRequest) |
| 11526 | return target; |
| 11527 | } |
| 11528 | |
| 11529 | size_t GetDmLogLevelRequest::ByteSizeLong() const { |
| 11530 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetDmLogLevelRequest) |
| 11531 | size_t total_size = 0; |
| 11532 | |
| 11533 | if (_internal_metadata_.have_unknown_fields()) { |
| 11534 | total_size += |
| 11535 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11536 | _internal_metadata_.unknown_fields()); |
| 11537 | } |
| 11538 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11539 | // Prevent compiler warnings about cached_has_bits being unused |
| 11540 | (void) cached_has_bits; |
| 11541 | |
| 11542 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11543 | SetCachedSize(cached_size); |
| 11544 | return total_size; |
| 11545 | } |
| 11546 | |
| 11547 | void GetDmLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 11548 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetDmLogLevelRequest) |
| 11549 | GOOGLE_DCHECK_NE(&from, this); |
| 11550 | const GetDmLogLevelRequest* source = |
| 11551 | ::google::protobuf::DynamicCastToGenerated<GetDmLogLevelRequest>( |
| 11552 | &from); |
| 11553 | if (source == nullptr) { |
| 11554 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetDmLogLevelRequest) |
| 11555 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11556 | } else { |
| 11557 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetDmLogLevelRequest) |
| 11558 | MergeFrom(*source); |
| 11559 | } |
| 11560 | } |
| 11561 | |
| 11562 | void GetDmLogLevelRequest::MergeFrom(const GetDmLogLevelRequest& from) { |
| 11563 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetDmLogLevelRequest) |
| 11564 | GOOGLE_DCHECK_NE(&from, this); |
| 11565 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11566 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11567 | (void) cached_has_bits; |
| 11568 | |
| 11569 | } |
| 11570 | |
| 11571 | void GetDmLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 11572 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetDmLogLevelRequest) |
| 11573 | if (&from == this) return; |
| 11574 | Clear(); |
| 11575 | MergeFrom(from); |
| 11576 | } |
| 11577 | |
| 11578 | void GetDmLogLevelRequest::CopyFrom(const GetDmLogLevelRequest& from) { |
| 11579 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetDmLogLevelRequest) |
| 11580 | if (&from == this) return; |
| 11581 | Clear(); |
| 11582 | MergeFrom(from); |
| 11583 | } |
| 11584 | |
| 11585 | bool GetDmLogLevelRequest::IsInitialized() const { |
| 11586 | return true; |
| 11587 | } |
| 11588 | |
| 11589 | void GetDmLogLevelRequest::Swap(GetDmLogLevelRequest* other) { |
| 11590 | if (other == this) return; |
| 11591 | InternalSwap(other); |
| 11592 | } |
| 11593 | void GetDmLogLevelRequest::InternalSwap(GetDmLogLevelRequest* other) { |
| 11594 | using std::swap; |
| 11595 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 11596 | } |
| 11597 | |
| 11598 | ::google::protobuf::Metadata GetDmLogLevelRequest::GetMetadata() const { |
| 11599 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 11600 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 11601 | } |
| 11602 | |
| 11603 | |
| 11604 | // =================================================================== |
| 11605 | |
| 11606 | void GetDmLogLevelResponse::InitAsDefaultInstance() { |
| 11607 | } |
| 11608 | class GetDmLogLevelResponse::HasBitSetters { |
| 11609 | public: |
| 11610 | }; |
| 11611 | |
| 11612 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11613 | const int GetDmLogLevelResponse::kLevelFieldNumber; |
| 11614 | const int GetDmLogLevelResponse::kStatusFieldNumber; |
| 11615 | const int GetDmLogLevelResponse::kReasonFieldNumber; |
| 11616 | const int GetDmLogLevelResponse::kReasonDetailFieldNumber; |
| 11617 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 11618 | |
| 11619 | GetDmLogLevelResponse::GetDmLogLevelResponse() |
| 11620 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 11621 | SharedCtor(); |
| 11622 | // @@protoc_insertion_point(constructor:dmi.GetDmLogLevelResponse) |
| 11623 | } |
| 11624 | GetDmLogLevelResponse::GetDmLogLevelResponse(const GetDmLogLevelResponse& from) |
| 11625 | : ::google::protobuf::Message(), |
| 11626 | _internal_metadata_(nullptr) { |
| 11627 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11628 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11629 | if (from.reason_detail().size() > 0) { |
| 11630 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11631 | } |
| 11632 | ::memcpy(&level_, &from.level_, |
| 11633 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 11634 | reinterpret_cast<char*>(&level_)) + sizeof(reason_)); |
| 11635 | // @@protoc_insertion_point(copy_constructor:dmi.GetDmLogLevelResponse) |
| 11636 | } |
| 11637 | |
| 11638 | void GetDmLogLevelResponse::SharedCtor() { |
| 11639 | ::google::protobuf::internal::InitSCC( |
| 11640 | &scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 11641 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11642 | ::memset(&level_, 0, static_cast<size_t>( |
| 11643 | reinterpret_cast<char*>(&reason_) - |
| 11644 | reinterpret_cast<char*>(&level_)) + sizeof(reason_)); |
| 11645 | } |
| 11646 | |
| 11647 | GetDmLogLevelResponse::~GetDmLogLevelResponse() { |
| 11648 | // @@protoc_insertion_point(destructor:dmi.GetDmLogLevelResponse) |
| 11649 | SharedDtor(); |
| 11650 | } |
| 11651 | |
| 11652 | void GetDmLogLevelResponse::SharedDtor() { |
| 11653 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11654 | } |
| 11655 | |
| 11656 | void GetDmLogLevelResponse::SetCachedSize(int size) const { |
| 11657 | _cached_size_.Set(size); |
| 11658 | } |
| 11659 | const GetDmLogLevelResponse& GetDmLogLevelResponse::default_instance() { |
| 11660 | ::google::protobuf::internal::InitSCC(&::scc_info_GetDmLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 11661 | return *internal_default_instance(); |
| 11662 | } |
| 11663 | |
| 11664 | |
| 11665 | void GetDmLogLevelResponse::Clear() { |
| 11666 | // @@protoc_insertion_point(message_clear_start:dmi.GetDmLogLevelResponse) |
| 11667 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11668 | // Prevent compiler warnings about cached_has_bits being unused |
| 11669 | (void) cached_has_bits; |
| 11670 | |
| 11671 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 11672 | ::memset(&level_, 0, static_cast<size_t>( |
| 11673 | reinterpret_cast<char*>(&reason_) - |
| 11674 | reinterpret_cast<char*>(&level_)) + sizeof(reason_)); |
| 11675 | _internal_metadata_.Clear(); |
| 11676 | } |
| 11677 | |
| 11678 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11679 | const char* GetDmLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 11680 | ::google::protobuf::internal::ParseContext* ctx) { |
| 11681 | auto msg = static_cast<GetDmLogLevelResponse*>(object); |
| 11682 | ::google::protobuf::int32 size; (void)size; |
| 11683 | int depth; (void)depth; |
| 11684 | ::google::protobuf::uint32 tag; |
| 11685 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 11686 | auto ptr = begin; |
| 11687 | while (ptr < end) { |
| 11688 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 11689 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11690 | switch (tag >> 3) { |
| 11691 | // .dmi.LogLevel level = 1; |
| 11692 | case 1: { |
| 11693 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 11694 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 11695 | msg->set_level(static_cast<::dmi::LogLevel>(val)); |
| 11696 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11697 | break; |
| 11698 | } |
| 11699 | // .dmi.Status status = 2; |
| 11700 | case 2: { |
| 11701 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 11702 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 11703 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 11704 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11705 | break; |
| 11706 | } |
| 11707 | // .dmi.GetDmLogLevelResponse.Reason reason = 3; |
| 11708 | case 3: { |
| 11709 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 11710 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 11711 | msg->set_reason(static_cast<::dmi::GetDmLogLevelResponse_Reason>(val)); |
| 11712 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11713 | break; |
| 11714 | } |
| 11715 | // string reason_detail = 4; |
| 11716 | case 4: { |
| 11717 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 11718 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 11719 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 11720 | ctx->extra_parse_data().SetFieldName("dmi.GetDmLogLevelResponse.reason_detail"); |
| 11721 | object = msg->mutable_reason_detail(); |
| 11722 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 11723 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 11724 | goto string_till_end; |
| 11725 | } |
| 11726 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 11727 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 11728 | ptr += size; |
| 11729 | break; |
| 11730 | } |
| 11731 | default: { |
| 11732 | handle_unusual: |
| 11733 | if ((tag & 7) == 4 || tag == 0) { |
| 11734 | ctx->EndGroup(tag); |
| 11735 | return ptr; |
| 11736 | } |
| 11737 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 11738 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 11739 | ptr = res.first; |
| 11740 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 11741 | if (res.second) return ptr; |
| 11742 | } |
| 11743 | } // switch |
| 11744 | } // while |
| 11745 | return ptr; |
| 11746 | string_till_end: |
| 11747 | static_cast<::std::string*>(object)->clear(); |
| 11748 | static_cast<::std::string*>(object)->reserve(size); |
| 11749 | goto len_delim_till_end; |
| 11750 | len_delim_till_end: |
| 11751 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 11752 | {parser_till_end, object}, size); |
| 11753 | } |
| 11754 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11755 | bool GetDmLogLevelResponse::MergePartialFromCodedStream( |
| 11756 | ::google::protobuf::io::CodedInputStream* input) { |
| 11757 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 11758 | ::google::protobuf::uint32 tag; |
| 11759 | // @@protoc_insertion_point(parse_start:dmi.GetDmLogLevelResponse) |
| 11760 | for (;;) { |
| 11761 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 11762 | tag = p.first; |
| 11763 | if (!p.second) goto handle_unusual; |
| 11764 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 11765 | // .dmi.LogLevel level = 1; |
| 11766 | case 1: { |
| 11767 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 11768 | int value = 0; |
| 11769 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11770 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 11771 | input, &value))); |
| 11772 | set_level(static_cast< ::dmi::LogLevel >(value)); |
| 11773 | } else { |
| 11774 | goto handle_unusual; |
| 11775 | } |
| 11776 | break; |
| 11777 | } |
| 11778 | |
| 11779 | // .dmi.Status status = 2; |
| 11780 | case 2: { |
| 11781 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 11782 | int value = 0; |
| 11783 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11784 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 11785 | input, &value))); |
| 11786 | set_status(static_cast< ::dmi::Status >(value)); |
| 11787 | } else { |
| 11788 | goto handle_unusual; |
| 11789 | } |
| 11790 | break; |
| 11791 | } |
| 11792 | |
| 11793 | // .dmi.GetDmLogLevelResponse.Reason reason = 3; |
| 11794 | case 3: { |
| 11795 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 11796 | int value = 0; |
| 11797 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 11798 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 11799 | input, &value))); |
| 11800 | set_reason(static_cast< ::dmi::GetDmLogLevelResponse_Reason >(value)); |
| 11801 | } else { |
| 11802 | goto handle_unusual; |
| 11803 | } |
| 11804 | break; |
| 11805 | } |
| 11806 | |
| 11807 | // string reason_detail = 4; |
| 11808 | case 4: { |
| 11809 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 11810 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 11811 | input, this->mutable_reason_detail())); |
| 11812 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11813 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11814 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 11815 | "dmi.GetDmLogLevelResponse.reason_detail")); |
| 11816 | } else { |
| 11817 | goto handle_unusual; |
| 11818 | } |
| 11819 | break; |
| 11820 | } |
| 11821 | |
| 11822 | default: { |
| 11823 | handle_unusual: |
| 11824 | if (tag == 0) { |
| 11825 | goto success; |
| 11826 | } |
| 11827 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 11828 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 11829 | break; |
| 11830 | } |
| 11831 | } |
| 11832 | } |
| 11833 | success: |
| 11834 | // @@protoc_insertion_point(parse_success:dmi.GetDmLogLevelResponse) |
| 11835 | return true; |
| 11836 | failure: |
| 11837 | // @@protoc_insertion_point(parse_failure:dmi.GetDmLogLevelResponse) |
| 11838 | return false; |
| 11839 | #undef DO_ |
| 11840 | } |
| 11841 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 11842 | |
| 11843 | void GetDmLogLevelResponse::SerializeWithCachedSizes( |
| 11844 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 11845 | // @@protoc_insertion_point(serialize_start:dmi.GetDmLogLevelResponse) |
| 11846 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11847 | (void) cached_has_bits; |
| 11848 | |
| 11849 | // .dmi.LogLevel level = 1; |
| 11850 | if (this->level() != 0) { |
| 11851 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11852 | 1, this->level(), output); |
| 11853 | } |
| 11854 | |
| 11855 | // .dmi.Status status = 2; |
| 11856 | if (this->status() != 0) { |
| 11857 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11858 | 2, this->status(), output); |
| 11859 | } |
| 11860 | |
| 11861 | // .dmi.GetDmLogLevelResponse.Reason reason = 3; |
| 11862 | if (this->reason() != 0) { |
| 11863 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 11864 | 3, this->reason(), output); |
| 11865 | } |
| 11866 | |
| 11867 | // string reason_detail = 4; |
| 11868 | if (this->reason_detail().size() > 0) { |
| 11869 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11870 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11871 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11872 | "dmi.GetDmLogLevelResponse.reason_detail"); |
| 11873 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 11874 | 4, this->reason_detail(), output); |
| 11875 | } |
| 11876 | |
| 11877 | if (_internal_metadata_.have_unknown_fields()) { |
| 11878 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 11879 | _internal_metadata_.unknown_fields(), output); |
| 11880 | } |
| 11881 | // @@protoc_insertion_point(serialize_end:dmi.GetDmLogLevelResponse) |
| 11882 | } |
| 11883 | |
| 11884 | ::google::protobuf::uint8* GetDmLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 11885 | ::google::protobuf::uint8* target) const { |
| 11886 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetDmLogLevelResponse) |
| 11887 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11888 | (void) cached_has_bits; |
| 11889 | |
| 11890 | // .dmi.LogLevel level = 1; |
| 11891 | if (this->level() != 0) { |
| 11892 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11893 | 1, this->level(), target); |
| 11894 | } |
| 11895 | |
| 11896 | // .dmi.Status status = 2; |
| 11897 | if (this->status() != 0) { |
| 11898 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11899 | 2, this->status(), target); |
| 11900 | } |
| 11901 | |
| 11902 | // .dmi.GetDmLogLevelResponse.Reason reason = 3; |
| 11903 | if (this->reason() != 0) { |
| 11904 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 11905 | 3, this->reason(), target); |
| 11906 | } |
| 11907 | |
| 11908 | // string reason_detail = 4; |
| 11909 | if (this->reason_detail().size() > 0) { |
| 11910 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 11911 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 11912 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 11913 | "dmi.GetDmLogLevelResponse.reason_detail"); |
| 11914 | target = |
| 11915 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 11916 | 4, this->reason_detail(), target); |
| 11917 | } |
| 11918 | |
| 11919 | if (_internal_metadata_.have_unknown_fields()) { |
| 11920 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 11921 | _internal_metadata_.unknown_fields(), target); |
| 11922 | } |
| 11923 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetDmLogLevelResponse) |
| 11924 | return target; |
| 11925 | } |
| 11926 | |
| 11927 | size_t GetDmLogLevelResponse::ByteSizeLong() const { |
| 11928 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetDmLogLevelResponse) |
| 11929 | size_t total_size = 0; |
| 11930 | |
| 11931 | if (_internal_metadata_.have_unknown_fields()) { |
| 11932 | total_size += |
| 11933 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 11934 | _internal_metadata_.unknown_fields()); |
| 11935 | } |
| 11936 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11937 | // Prevent compiler warnings about cached_has_bits being unused |
| 11938 | (void) cached_has_bits; |
| 11939 | |
| 11940 | // string reason_detail = 4; |
| 11941 | if (this->reason_detail().size() > 0) { |
| 11942 | total_size += 1 + |
| 11943 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 11944 | this->reason_detail()); |
| 11945 | } |
| 11946 | |
| 11947 | // .dmi.LogLevel level = 1; |
| 11948 | if (this->level() != 0) { |
| 11949 | total_size += 1 + |
| 11950 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->level()); |
| 11951 | } |
| 11952 | |
| 11953 | // .dmi.Status status = 2; |
| 11954 | if (this->status() != 0) { |
| 11955 | total_size += 1 + |
| 11956 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 11957 | } |
| 11958 | |
| 11959 | // .dmi.GetDmLogLevelResponse.Reason reason = 3; |
| 11960 | if (this->reason() != 0) { |
| 11961 | total_size += 1 + |
| 11962 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 11963 | } |
| 11964 | |
| 11965 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 11966 | SetCachedSize(cached_size); |
| 11967 | return total_size; |
| 11968 | } |
| 11969 | |
| 11970 | void GetDmLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 11971 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetDmLogLevelResponse) |
| 11972 | GOOGLE_DCHECK_NE(&from, this); |
| 11973 | const GetDmLogLevelResponse* source = |
| 11974 | ::google::protobuf::DynamicCastToGenerated<GetDmLogLevelResponse>( |
| 11975 | &from); |
| 11976 | if (source == nullptr) { |
| 11977 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetDmLogLevelResponse) |
| 11978 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 11979 | } else { |
| 11980 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetDmLogLevelResponse) |
| 11981 | MergeFrom(*source); |
| 11982 | } |
| 11983 | } |
| 11984 | |
| 11985 | void GetDmLogLevelResponse::MergeFrom(const GetDmLogLevelResponse& from) { |
| 11986 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetDmLogLevelResponse) |
| 11987 | GOOGLE_DCHECK_NE(&from, this); |
| 11988 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 11989 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 11990 | (void) cached_has_bits; |
| 11991 | |
| 11992 | if (from.reason_detail().size() > 0) { |
| 11993 | |
| 11994 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 11995 | } |
| 11996 | if (from.level() != 0) { |
| 11997 | set_level(from.level()); |
| 11998 | } |
| 11999 | if (from.status() != 0) { |
| 12000 | set_status(from.status()); |
| 12001 | } |
| 12002 | if (from.reason() != 0) { |
| 12003 | set_reason(from.reason()); |
| 12004 | } |
| 12005 | } |
| 12006 | |
| 12007 | void GetDmLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 12008 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetDmLogLevelResponse) |
| 12009 | if (&from == this) return; |
| 12010 | Clear(); |
| 12011 | MergeFrom(from); |
| 12012 | } |
| 12013 | |
| 12014 | void GetDmLogLevelResponse::CopyFrom(const GetDmLogLevelResponse& from) { |
| 12015 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetDmLogLevelResponse) |
| 12016 | if (&from == this) return; |
| 12017 | Clear(); |
| 12018 | MergeFrom(from); |
| 12019 | } |
| 12020 | |
| 12021 | bool GetDmLogLevelResponse::IsInitialized() const { |
| 12022 | return true; |
| 12023 | } |
| 12024 | |
| 12025 | void GetDmLogLevelResponse::Swap(GetDmLogLevelResponse* other) { |
| 12026 | if (other == this) return; |
| 12027 | InternalSwap(other); |
| 12028 | } |
| 12029 | void GetDmLogLevelResponse::InternalSwap(GetDmLogLevelResponse* other) { |
| 12030 | using std::swap; |
| 12031 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12032 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12033 | GetArenaNoVirtual()); |
| 12034 | swap(level_, other->level_); |
| 12035 | swap(status_, other->status_); |
| 12036 | swap(reason_, other->reason_); |
| 12037 | } |
| 12038 | |
| 12039 | ::google::protobuf::Metadata GetDmLogLevelResponse::GetMetadata() const { |
| 12040 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 12041 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 12042 | } |
| 12043 | |
| 12044 | |
| 12045 | // =================================================================== |
| 12046 | |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 12047 | void Heartbeat::InitAsDefaultInstance() { |
| 12048 | } |
| 12049 | class Heartbeat::HasBitSetters { |
| 12050 | public: |
| 12051 | }; |
| 12052 | |
| 12053 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12054 | const int Heartbeat::kHeartbeatSignatureFieldNumber; |
| 12055 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12056 | |
| 12057 | Heartbeat::Heartbeat() |
| 12058 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 12059 | SharedCtor(); |
| 12060 | // @@protoc_insertion_point(constructor:dmi.Heartbeat) |
| 12061 | } |
| 12062 | Heartbeat::Heartbeat(const Heartbeat& from) |
| 12063 | : ::google::protobuf::Message(), |
| 12064 | _internal_metadata_(nullptr) { |
| 12065 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12066 | heartbeat_signature_ = from.heartbeat_signature_; |
| 12067 | // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat) |
| 12068 | } |
| 12069 | |
| 12070 | void Heartbeat::SharedCtor() { |
| 12071 | heartbeat_signature_ = 0u; |
| 12072 | } |
| 12073 | |
| 12074 | Heartbeat::~Heartbeat() { |
| 12075 | // @@protoc_insertion_point(destructor:dmi.Heartbeat) |
| 12076 | SharedDtor(); |
| 12077 | } |
| 12078 | |
| 12079 | void Heartbeat::SharedDtor() { |
| 12080 | } |
| 12081 | |
| 12082 | void Heartbeat::SetCachedSize(int size) const { |
| 12083 | _cached_size_.Set(size); |
| 12084 | } |
| 12085 | const Heartbeat& Heartbeat::default_instance() { |
| 12086 | ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 12087 | return *internal_default_instance(); |
| 12088 | } |
| 12089 | |
| 12090 | |
| 12091 | void Heartbeat::Clear() { |
| 12092 | // @@protoc_insertion_point(message_clear_start:dmi.Heartbeat) |
| 12093 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12094 | // Prevent compiler warnings about cached_has_bits being unused |
| 12095 | (void) cached_has_bits; |
| 12096 | |
| 12097 | heartbeat_signature_ = 0u; |
| 12098 | _internal_metadata_.Clear(); |
| 12099 | } |
| 12100 | |
| 12101 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12102 | const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object, |
| 12103 | ::google::protobuf::internal::ParseContext* ctx) { |
| 12104 | auto msg = static_cast<Heartbeat*>(object); |
| 12105 | ::google::protobuf::int32 size; (void)size; |
| 12106 | int depth; (void)depth; |
| 12107 | ::google::protobuf::uint32 tag; |
| 12108 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 12109 | auto ptr = begin; |
| 12110 | while (ptr < end) { |
| 12111 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 12112 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12113 | switch (tag >> 3) { |
| 12114 | // fixed32 heartbeat_signature = 1; |
| 12115 | case 1: { |
| 12116 | if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; |
| 12117 | msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr)); |
| 12118 | ptr += sizeof(::google::protobuf::uint32); |
| 12119 | break; |
| 12120 | } |
| 12121 | default: { |
| 12122 | handle_unusual: |
| 12123 | if ((tag & 7) == 4 || tag == 0) { |
| 12124 | ctx->EndGroup(tag); |
| 12125 | return ptr; |
| 12126 | } |
| 12127 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 12128 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 12129 | ptr = res.first; |
| 12130 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 12131 | if (res.second) return ptr; |
| 12132 | } |
| 12133 | } // switch |
| 12134 | } // while |
| 12135 | return ptr; |
| 12136 | } |
| 12137 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12138 | bool Heartbeat::MergePartialFromCodedStream( |
| 12139 | ::google::protobuf::io::CodedInputStream* input) { |
| 12140 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12141 | ::google::protobuf::uint32 tag; |
| 12142 | // @@protoc_insertion_point(parse_start:dmi.Heartbeat) |
| 12143 | for (;;) { |
| 12144 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 12145 | tag = p.first; |
| 12146 | if (!p.second) goto handle_unusual; |
| 12147 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12148 | // fixed32 heartbeat_signature = 1; |
| 12149 | case 1: { |
| 12150 | if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { |
| 12151 | |
| 12152 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12153 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
| 12154 | input, &heartbeat_signature_))); |
| 12155 | } else { |
| 12156 | goto handle_unusual; |
| 12157 | } |
| 12158 | break; |
| 12159 | } |
| 12160 | |
| 12161 | default: { |
| 12162 | handle_unusual: |
| 12163 | if (tag == 0) { |
| 12164 | goto success; |
| 12165 | } |
| 12166 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12167 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 12168 | break; |
| 12169 | } |
| 12170 | } |
| 12171 | } |
| 12172 | success: |
| 12173 | // @@protoc_insertion_point(parse_success:dmi.Heartbeat) |
| 12174 | return true; |
| 12175 | failure: |
| 12176 | // @@protoc_insertion_point(parse_failure:dmi.Heartbeat) |
| 12177 | return false; |
| 12178 | #undef DO_ |
| 12179 | } |
| 12180 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12181 | |
| 12182 | void Heartbeat::SerializeWithCachedSizes( |
| 12183 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12184 | // @@protoc_insertion_point(serialize_start:dmi.Heartbeat) |
| 12185 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12186 | (void) cached_has_bits; |
| 12187 | |
| 12188 | // fixed32 heartbeat_signature = 1; |
| 12189 | if (this->heartbeat_signature() != 0) { |
| 12190 | ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output); |
| 12191 | } |
| 12192 | |
| 12193 | if (_internal_metadata_.have_unknown_fields()) { |
| 12194 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12195 | _internal_metadata_.unknown_fields(), output); |
| 12196 | } |
| 12197 | // @@protoc_insertion_point(serialize_end:dmi.Heartbeat) |
| 12198 | } |
| 12199 | |
| 12200 | ::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray( |
| 12201 | ::google::protobuf::uint8* target) const { |
| 12202 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat) |
| 12203 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12204 | (void) cached_has_bits; |
| 12205 | |
| 12206 | // fixed32 heartbeat_signature = 1; |
| 12207 | if (this->heartbeat_signature() != 0) { |
| 12208 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target); |
| 12209 | } |
| 12210 | |
| 12211 | if (_internal_metadata_.have_unknown_fields()) { |
| 12212 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12213 | _internal_metadata_.unknown_fields(), target); |
| 12214 | } |
| 12215 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat) |
| 12216 | return target; |
| 12217 | } |
| 12218 | |
| 12219 | size_t Heartbeat::ByteSizeLong() const { |
| 12220 | // @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat) |
| 12221 | size_t total_size = 0; |
| 12222 | |
| 12223 | if (_internal_metadata_.have_unknown_fields()) { |
| 12224 | total_size += |
| 12225 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12226 | _internal_metadata_.unknown_fields()); |
| 12227 | } |
| 12228 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12229 | // Prevent compiler warnings about cached_has_bits being unused |
| 12230 | (void) cached_has_bits; |
| 12231 | |
| 12232 | // fixed32 heartbeat_signature = 1; |
| 12233 | if (this->heartbeat_signature() != 0) { |
| 12234 | total_size += 1 + 4; |
| 12235 | } |
| 12236 | |
| 12237 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12238 | SetCachedSize(cached_size); |
| 12239 | return total_size; |
| 12240 | } |
| 12241 | |
| 12242 | void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) { |
| 12243 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat) |
| 12244 | GOOGLE_DCHECK_NE(&from, this); |
| 12245 | const Heartbeat* source = |
| 12246 | ::google::protobuf::DynamicCastToGenerated<Heartbeat>( |
| 12247 | &from); |
| 12248 | if (source == nullptr) { |
| 12249 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat) |
| 12250 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12251 | } else { |
| 12252 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat) |
| 12253 | MergeFrom(*source); |
| 12254 | } |
| 12255 | } |
| 12256 | |
| 12257 | void Heartbeat::MergeFrom(const Heartbeat& from) { |
| 12258 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat) |
| 12259 | GOOGLE_DCHECK_NE(&from, this); |
| 12260 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12261 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12262 | (void) cached_has_bits; |
| 12263 | |
| 12264 | if (from.heartbeat_signature() != 0) { |
| 12265 | set_heartbeat_signature(from.heartbeat_signature()); |
| 12266 | } |
| 12267 | } |
| 12268 | |
| 12269 | void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) { |
| 12270 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat) |
| 12271 | if (&from == this) return; |
| 12272 | Clear(); |
| 12273 | MergeFrom(from); |
| 12274 | } |
| 12275 | |
| 12276 | void Heartbeat::CopyFrom(const Heartbeat& from) { |
| 12277 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat) |
| 12278 | if (&from == this) return; |
| 12279 | Clear(); |
| 12280 | MergeFrom(from); |
| 12281 | } |
| 12282 | |
| 12283 | bool Heartbeat::IsInitialized() const { |
| 12284 | return true; |
| 12285 | } |
| 12286 | |
| 12287 | void Heartbeat::Swap(Heartbeat* other) { |
| 12288 | if (other == this) return; |
| 12289 | InternalSwap(other); |
| 12290 | } |
| 12291 | void Heartbeat::InternalSwap(Heartbeat* other) { |
| 12292 | using std::swap; |
| 12293 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12294 | swap(heartbeat_signature_, other->heartbeat_signature_); |
| 12295 | } |
| 12296 | |
| 12297 | ::google::protobuf::Metadata Heartbeat::GetMetadata() const { |
| 12298 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 12299 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 12300 | } |
| 12301 | |
| 12302 | |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 12303 | // =================================================================== |
| 12304 | |
| 12305 | void RebootDeviceRequest::InitAsDefaultInstance() { |
| 12306 | ::dmi::_RebootDeviceRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 12307 | ::dmi::Uuid::internal_default_instance()); |
| 12308 | } |
| 12309 | class RebootDeviceRequest::HasBitSetters { |
| 12310 | public: |
| 12311 | static const ::dmi::Uuid& device_uuid(const RebootDeviceRequest* msg); |
| 12312 | }; |
| 12313 | |
| 12314 | const ::dmi::Uuid& |
| 12315 | RebootDeviceRequest::HasBitSetters::device_uuid(const RebootDeviceRequest* msg) { |
| 12316 | return *msg->device_uuid_; |
| 12317 | } |
| 12318 | void RebootDeviceRequest::clear_device_uuid() { |
| 12319 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 12320 | delete device_uuid_; |
| 12321 | } |
| 12322 | device_uuid_ = nullptr; |
| 12323 | } |
| 12324 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12325 | const int RebootDeviceRequest::kDeviceUuidFieldNumber; |
| 12326 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12327 | |
| 12328 | RebootDeviceRequest::RebootDeviceRequest() |
| 12329 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 12330 | SharedCtor(); |
| 12331 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceRequest) |
| 12332 | } |
| 12333 | RebootDeviceRequest::RebootDeviceRequest(const RebootDeviceRequest& from) |
| 12334 | : ::google::protobuf::Message(), |
| 12335 | _internal_metadata_(nullptr) { |
| 12336 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12337 | if (from.has_device_uuid()) { |
| 12338 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 12339 | } else { |
| 12340 | device_uuid_ = nullptr; |
| 12341 | } |
| 12342 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceRequest) |
| 12343 | } |
| 12344 | |
| 12345 | void RebootDeviceRequest::SharedCtor() { |
| 12346 | ::google::protobuf::internal::InitSCC( |
| 12347 | &scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 12348 | device_uuid_ = nullptr; |
| 12349 | } |
| 12350 | |
| 12351 | RebootDeviceRequest::~RebootDeviceRequest() { |
| 12352 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceRequest) |
| 12353 | SharedDtor(); |
| 12354 | } |
| 12355 | |
| 12356 | void RebootDeviceRequest::SharedDtor() { |
| 12357 | if (this != internal_default_instance()) delete device_uuid_; |
| 12358 | } |
| 12359 | |
| 12360 | void RebootDeviceRequest::SetCachedSize(int size) const { |
| 12361 | _cached_size_.Set(size); |
| 12362 | } |
| 12363 | const RebootDeviceRequest& RebootDeviceRequest::default_instance() { |
| 12364 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 12365 | return *internal_default_instance(); |
| 12366 | } |
| 12367 | |
| 12368 | |
| 12369 | void RebootDeviceRequest::Clear() { |
| 12370 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceRequest) |
| 12371 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12372 | // Prevent compiler warnings about cached_has_bits being unused |
| 12373 | (void) cached_has_bits; |
| 12374 | |
| 12375 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 12376 | delete device_uuid_; |
| 12377 | } |
| 12378 | device_uuid_ = nullptr; |
| 12379 | _internal_metadata_.Clear(); |
| 12380 | } |
| 12381 | |
| 12382 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12383 | const char* RebootDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 12384 | ::google::protobuf::internal::ParseContext* ctx) { |
| 12385 | auto msg = static_cast<RebootDeviceRequest*>(object); |
| 12386 | ::google::protobuf::int32 size; (void)size; |
| 12387 | int depth; (void)depth; |
| 12388 | ::google::protobuf::uint32 tag; |
| 12389 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 12390 | auto ptr = begin; |
| 12391 | while (ptr < end) { |
| 12392 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 12393 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12394 | switch (tag >> 3) { |
| 12395 | // .dmi.Uuid device_uuid = 1; |
| 12396 | case 1: { |
| 12397 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 12398 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 12399 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12400 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 12401 | object = msg->mutable_device_uuid(); |
| 12402 | if (size > end - ptr) goto len_delim_till_end; |
| 12403 | ptr += size; |
| 12404 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 12405 | {parser_till_end, object}, ptr - size, ptr)); |
| 12406 | break; |
| 12407 | } |
| 12408 | default: { |
| 12409 | handle_unusual: |
| 12410 | if ((tag & 7) == 4 || tag == 0) { |
| 12411 | ctx->EndGroup(tag); |
| 12412 | return ptr; |
| 12413 | } |
| 12414 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 12415 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 12416 | ptr = res.first; |
| 12417 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 12418 | if (res.second) return ptr; |
| 12419 | } |
| 12420 | } // switch |
| 12421 | } // while |
| 12422 | return ptr; |
| 12423 | len_delim_till_end: |
| 12424 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 12425 | {parser_till_end, object}, size); |
| 12426 | } |
| 12427 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12428 | bool RebootDeviceRequest::MergePartialFromCodedStream( |
| 12429 | ::google::protobuf::io::CodedInputStream* input) { |
| 12430 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12431 | ::google::protobuf::uint32 tag; |
| 12432 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceRequest) |
| 12433 | for (;;) { |
| 12434 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 12435 | tag = p.first; |
| 12436 | if (!p.second) goto handle_unusual; |
| 12437 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12438 | // .dmi.Uuid device_uuid = 1; |
| 12439 | case 1: { |
| 12440 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 12441 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 12442 | input, mutable_device_uuid())); |
| 12443 | } else { |
| 12444 | goto handle_unusual; |
| 12445 | } |
| 12446 | break; |
| 12447 | } |
| 12448 | |
| 12449 | default: { |
| 12450 | handle_unusual: |
| 12451 | if (tag == 0) { |
| 12452 | goto success; |
| 12453 | } |
| 12454 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12455 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 12456 | break; |
| 12457 | } |
| 12458 | } |
| 12459 | } |
| 12460 | success: |
| 12461 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceRequest) |
| 12462 | return true; |
| 12463 | failure: |
| 12464 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceRequest) |
| 12465 | return false; |
| 12466 | #undef DO_ |
| 12467 | } |
| 12468 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12469 | |
| 12470 | void RebootDeviceRequest::SerializeWithCachedSizes( |
| 12471 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12472 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceRequest) |
| 12473 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12474 | (void) cached_has_bits; |
| 12475 | |
| 12476 | // .dmi.Uuid device_uuid = 1; |
| 12477 | if (this->has_device_uuid()) { |
| 12478 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 12479 | 1, HasBitSetters::device_uuid(this), output); |
| 12480 | } |
| 12481 | |
| 12482 | if (_internal_metadata_.have_unknown_fields()) { |
| 12483 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12484 | _internal_metadata_.unknown_fields(), output); |
| 12485 | } |
| 12486 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceRequest) |
| 12487 | } |
| 12488 | |
| 12489 | ::google::protobuf::uint8* RebootDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 12490 | ::google::protobuf::uint8* target) const { |
| 12491 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceRequest) |
| 12492 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12493 | (void) cached_has_bits; |
| 12494 | |
| 12495 | // .dmi.Uuid device_uuid = 1; |
| 12496 | if (this->has_device_uuid()) { |
| 12497 | target = ::google::protobuf::internal::WireFormatLite:: |
| 12498 | InternalWriteMessageToArray( |
| 12499 | 1, HasBitSetters::device_uuid(this), target); |
| 12500 | } |
| 12501 | |
| 12502 | if (_internal_metadata_.have_unknown_fields()) { |
| 12503 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12504 | _internal_metadata_.unknown_fields(), target); |
| 12505 | } |
| 12506 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceRequest) |
| 12507 | return target; |
| 12508 | } |
| 12509 | |
| 12510 | size_t RebootDeviceRequest::ByteSizeLong() const { |
| 12511 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceRequest) |
| 12512 | size_t total_size = 0; |
| 12513 | |
| 12514 | if (_internal_metadata_.have_unknown_fields()) { |
| 12515 | total_size += |
| 12516 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12517 | _internal_metadata_.unknown_fields()); |
| 12518 | } |
| 12519 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12520 | // Prevent compiler warnings about cached_has_bits being unused |
| 12521 | (void) cached_has_bits; |
| 12522 | |
| 12523 | // .dmi.Uuid device_uuid = 1; |
| 12524 | if (this->has_device_uuid()) { |
| 12525 | total_size += 1 + |
| 12526 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 12527 | *device_uuid_); |
| 12528 | } |
| 12529 | |
| 12530 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12531 | SetCachedSize(cached_size); |
| 12532 | return total_size; |
| 12533 | } |
| 12534 | |
| 12535 | void RebootDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 12536 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceRequest) |
| 12537 | GOOGLE_DCHECK_NE(&from, this); |
| 12538 | const RebootDeviceRequest* source = |
| 12539 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceRequest>( |
| 12540 | &from); |
| 12541 | if (source == nullptr) { |
| 12542 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceRequest) |
| 12543 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12544 | } else { |
| 12545 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceRequest) |
| 12546 | MergeFrom(*source); |
| 12547 | } |
| 12548 | } |
| 12549 | |
| 12550 | void RebootDeviceRequest::MergeFrom(const RebootDeviceRequest& from) { |
| 12551 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceRequest) |
| 12552 | GOOGLE_DCHECK_NE(&from, this); |
| 12553 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12554 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12555 | (void) cached_has_bits; |
| 12556 | |
| 12557 | if (from.has_device_uuid()) { |
| 12558 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 12559 | } |
| 12560 | } |
| 12561 | |
| 12562 | void RebootDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 12563 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceRequest) |
| 12564 | if (&from == this) return; |
| 12565 | Clear(); |
| 12566 | MergeFrom(from); |
| 12567 | } |
| 12568 | |
| 12569 | void RebootDeviceRequest::CopyFrom(const RebootDeviceRequest& from) { |
| 12570 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceRequest) |
| 12571 | if (&from == this) return; |
| 12572 | Clear(); |
| 12573 | MergeFrom(from); |
| 12574 | } |
| 12575 | |
| 12576 | bool RebootDeviceRequest::IsInitialized() const { |
| 12577 | return true; |
| 12578 | } |
| 12579 | |
| 12580 | void RebootDeviceRequest::Swap(RebootDeviceRequest* other) { |
| 12581 | if (other == this) return; |
| 12582 | InternalSwap(other); |
| 12583 | } |
| 12584 | void RebootDeviceRequest::InternalSwap(RebootDeviceRequest* other) { |
| 12585 | using std::swap; |
| 12586 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12587 | swap(device_uuid_, other->device_uuid_); |
| 12588 | } |
| 12589 | |
| 12590 | ::google::protobuf::Metadata RebootDeviceRequest::GetMetadata() const { |
| 12591 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 12592 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 12593 | } |
| 12594 | |
| 12595 | |
| 12596 | // =================================================================== |
| 12597 | |
| 12598 | void RebootDeviceResponse::InitAsDefaultInstance() { |
| 12599 | } |
| 12600 | class RebootDeviceResponse::HasBitSetters { |
| 12601 | public: |
| 12602 | }; |
| 12603 | |
| 12604 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12605 | const int RebootDeviceResponse::kStatusFieldNumber; |
| 12606 | const int RebootDeviceResponse::kReasonFieldNumber; |
| 12607 | const int RebootDeviceResponse::kReasonDetailFieldNumber; |
| 12608 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 12609 | |
| 12610 | RebootDeviceResponse::RebootDeviceResponse() |
| 12611 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 12612 | SharedCtor(); |
| 12613 | // @@protoc_insertion_point(constructor:dmi.RebootDeviceResponse) |
| 12614 | } |
| 12615 | RebootDeviceResponse::RebootDeviceResponse(const RebootDeviceResponse& from) |
| 12616 | : ::google::protobuf::Message(), |
| 12617 | _internal_metadata_(nullptr) { |
| 12618 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12619 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12620 | if (from.reason_detail().size() > 0) { |
| 12621 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 12622 | } |
| 12623 | ::memcpy(&status_, &from.status_, |
| 12624 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 12625 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 12626 | // @@protoc_insertion_point(copy_constructor:dmi.RebootDeviceResponse) |
| 12627 | } |
| 12628 | |
| 12629 | void RebootDeviceResponse::SharedCtor() { |
| 12630 | ::google::protobuf::internal::InitSCC( |
| 12631 | &scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 12632 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12633 | ::memset(&status_, 0, static_cast<size_t>( |
| 12634 | reinterpret_cast<char*>(&reason_) - |
| 12635 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 12636 | } |
| 12637 | |
| 12638 | RebootDeviceResponse::~RebootDeviceResponse() { |
| 12639 | // @@protoc_insertion_point(destructor:dmi.RebootDeviceResponse) |
| 12640 | SharedDtor(); |
| 12641 | } |
| 12642 | |
| 12643 | void RebootDeviceResponse::SharedDtor() { |
| 12644 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12645 | } |
| 12646 | |
| 12647 | void RebootDeviceResponse::SetCachedSize(int size) const { |
| 12648 | _cached_size_.Set(size); |
| 12649 | } |
| 12650 | const RebootDeviceResponse& RebootDeviceResponse::default_instance() { |
| 12651 | ::google::protobuf::internal::InitSCC(&::scc_info_RebootDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 12652 | return *internal_default_instance(); |
| 12653 | } |
| 12654 | |
| 12655 | |
| 12656 | void RebootDeviceResponse::Clear() { |
| 12657 | // @@protoc_insertion_point(message_clear_start:dmi.RebootDeviceResponse) |
| 12658 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12659 | // Prevent compiler warnings about cached_has_bits being unused |
| 12660 | (void) cached_has_bits; |
| 12661 | |
| 12662 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 12663 | ::memset(&status_, 0, static_cast<size_t>( |
| 12664 | reinterpret_cast<char*>(&reason_) - |
| 12665 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 12666 | _internal_metadata_.Clear(); |
| 12667 | } |
| 12668 | |
| 12669 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12670 | const char* RebootDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 12671 | ::google::protobuf::internal::ParseContext* ctx) { |
| 12672 | auto msg = static_cast<RebootDeviceResponse*>(object); |
| 12673 | ::google::protobuf::int32 size; (void)size; |
| 12674 | int depth; (void)depth; |
| 12675 | ::google::protobuf::uint32 tag; |
| 12676 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 12677 | auto ptr = begin; |
| 12678 | while (ptr < end) { |
| 12679 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 12680 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12681 | switch (tag >> 3) { |
| 12682 | // .dmi.Status status = 3; |
| 12683 | case 3: { |
| 12684 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 12685 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 12686 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 12687 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12688 | break; |
| 12689 | } |
| 12690 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 12691 | case 4: { |
| 12692 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 12693 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 12694 | msg->set_reason(static_cast<::dmi::RebootDeviceResponse_Reason>(val)); |
| 12695 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12696 | break; |
| 12697 | } |
| 12698 | // string reason_detail = 5; |
| 12699 | case 5: { |
| 12700 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 12701 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 12702 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 12703 | ctx->extra_parse_data().SetFieldName("dmi.RebootDeviceResponse.reason_detail"); |
| 12704 | object = msg->mutable_reason_detail(); |
| 12705 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 12706 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 12707 | goto string_till_end; |
| 12708 | } |
| 12709 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 12710 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 12711 | ptr += size; |
| 12712 | break; |
| 12713 | } |
| 12714 | default: { |
| 12715 | handle_unusual: |
| 12716 | if ((tag & 7) == 4 || tag == 0) { |
| 12717 | ctx->EndGroup(tag); |
| 12718 | return ptr; |
| 12719 | } |
| 12720 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 12721 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 12722 | ptr = res.first; |
| 12723 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 12724 | if (res.second) return ptr; |
| 12725 | } |
| 12726 | } // switch |
| 12727 | } // while |
| 12728 | return ptr; |
| 12729 | string_till_end: |
| 12730 | static_cast<::std::string*>(object)->clear(); |
| 12731 | static_cast<::std::string*>(object)->reserve(size); |
| 12732 | goto len_delim_till_end; |
| 12733 | len_delim_till_end: |
| 12734 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 12735 | {parser_till_end, object}, size); |
| 12736 | } |
| 12737 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12738 | bool RebootDeviceResponse::MergePartialFromCodedStream( |
| 12739 | ::google::protobuf::io::CodedInputStream* input) { |
| 12740 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 12741 | ::google::protobuf::uint32 tag; |
| 12742 | // @@protoc_insertion_point(parse_start:dmi.RebootDeviceResponse) |
| 12743 | for (;;) { |
| 12744 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 12745 | tag = p.first; |
| 12746 | if (!p.second) goto handle_unusual; |
| 12747 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 12748 | // .dmi.Status status = 3; |
| 12749 | case 3: { |
| 12750 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 12751 | int value = 0; |
| 12752 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12753 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 12754 | input, &value))); |
| 12755 | set_status(static_cast< ::dmi::Status >(value)); |
| 12756 | } else { |
| 12757 | goto handle_unusual; |
| 12758 | } |
| 12759 | break; |
| 12760 | } |
| 12761 | |
| 12762 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 12763 | case 4: { |
| 12764 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 12765 | int value = 0; |
| 12766 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 12767 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 12768 | input, &value))); |
| 12769 | set_reason(static_cast< ::dmi::RebootDeviceResponse_Reason >(value)); |
| 12770 | } else { |
| 12771 | goto handle_unusual; |
| 12772 | } |
| 12773 | break; |
| 12774 | } |
| 12775 | |
| 12776 | // string reason_detail = 5; |
| 12777 | case 5: { |
| 12778 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 12779 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 12780 | input, this->mutable_reason_detail())); |
| 12781 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 12782 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 12783 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 12784 | "dmi.RebootDeviceResponse.reason_detail")); |
| 12785 | } else { |
| 12786 | goto handle_unusual; |
| 12787 | } |
| 12788 | break; |
| 12789 | } |
| 12790 | |
| 12791 | default: { |
| 12792 | handle_unusual: |
| 12793 | if (tag == 0) { |
| 12794 | goto success; |
| 12795 | } |
| 12796 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 12797 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 12798 | break; |
| 12799 | } |
| 12800 | } |
| 12801 | } |
| 12802 | success: |
| 12803 | // @@protoc_insertion_point(parse_success:dmi.RebootDeviceResponse) |
| 12804 | return true; |
| 12805 | failure: |
| 12806 | // @@protoc_insertion_point(parse_failure:dmi.RebootDeviceResponse) |
| 12807 | return false; |
| 12808 | #undef DO_ |
| 12809 | } |
| 12810 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 12811 | |
| 12812 | void RebootDeviceResponse::SerializeWithCachedSizes( |
| 12813 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 12814 | // @@protoc_insertion_point(serialize_start:dmi.RebootDeviceResponse) |
| 12815 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12816 | (void) cached_has_bits; |
| 12817 | |
| 12818 | // .dmi.Status status = 3; |
| 12819 | if (this->status() != 0) { |
| 12820 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 12821 | 3, this->status(), output); |
| 12822 | } |
| 12823 | |
| 12824 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 12825 | if (this->reason() != 0) { |
| 12826 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 12827 | 4, this->reason(), output); |
| 12828 | } |
| 12829 | |
| 12830 | // string reason_detail = 5; |
| 12831 | if (this->reason_detail().size() > 0) { |
| 12832 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 12833 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 12834 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 12835 | "dmi.RebootDeviceResponse.reason_detail"); |
| 12836 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 12837 | 5, this->reason_detail(), output); |
| 12838 | } |
| 12839 | |
| 12840 | if (_internal_metadata_.have_unknown_fields()) { |
| 12841 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 12842 | _internal_metadata_.unknown_fields(), output); |
| 12843 | } |
| 12844 | // @@protoc_insertion_point(serialize_end:dmi.RebootDeviceResponse) |
| 12845 | } |
| 12846 | |
| 12847 | ::google::protobuf::uint8* RebootDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 12848 | ::google::protobuf::uint8* target) const { |
| 12849 | // @@protoc_insertion_point(serialize_to_array_start:dmi.RebootDeviceResponse) |
| 12850 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12851 | (void) cached_has_bits; |
| 12852 | |
| 12853 | // .dmi.Status status = 3; |
| 12854 | if (this->status() != 0) { |
| 12855 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 12856 | 3, this->status(), target); |
| 12857 | } |
| 12858 | |
| 12859 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 12860 | if (this->reason() != 0) { |
| 12861 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 12862 | 4, this->reason(), target); |
| 12863 | } |
| 12864 | |
| 12865 | // string reason_detail = 5; |
| 12866 | if (this->reason_detail().size() > 0) { |
| 12867 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 12868 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 12869 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 12870 | "dmi.RebootDeviceResponse.reason_detail"); |
| 12871 | target = |
| 12872 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 12873 | 5, this->reason_detail(), target); |
| 12874 | } |
| 12875 | |
| 12876 | if (_internal_metadata_.have_unknown_fields()) { |
| 12877 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 12878 | _internal_metadata_.unknown_fields(), target); |
| 12879 | } |
| 12880 | // @@protoc_insertion_point(serialize_to_array_end:dmi.RebootDeviceResponse) |
| 12881 | return target; |
| 12882 | } |
| 12883 | |
| 12884 | size_t RebootDeviceResponse::ByteSizeLong() const { |
| 12885 | // @@protoc_insertion_point(message_byte_size_start:dmi.RebootDeviceResponse) |
| 12886 | size_t total_size = 0; |
| 12887 | |
| 12888 | if (_internal_metadata_.have_unknown_fields()) { |
| 12889 | total_size += |
| 12890 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 12891 | _internal_metadata_.unknown_fields()); |
| 12892 | } |
| 12893 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12894 | // Prevent compiler warnings about cached_has_bits being unused |
| 12895 | (void) cached_has_bits; |
| 12896 | |
| 12897 | // string reason_detail = 5; |
| 12898 | if (this->reason_detail().size() > 0) { |
| 12899 | total_size += 1 + |
| 12900 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 12901 | this->reason_detail()); |
| 12902 | } |
| 12903 | |
| 12904 | // .dmi.Status status = 3; |
| 12905 | if (this->status() != 0) { |
| 12906 | total_size += 1 + |
| 12907 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 12908 | } |
| 12909 | |
| 12910 | // .dmi.RebootDeviceResponse.Reason reason = 4; |
| 12911 | if (this->reason() != 0) { |
| 12912 | total_size += 1 + |
| 12913 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 12914 | } |
| 12915 | |
| 12916 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 12917 | SetCachedSize(cached_size); |
| 12918 | return total_size; |
| 12919 | } |
| 12920 | |
| 12921 | void RebootDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 12922 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.RebootDeviceResponse) |
| 12923 | GOOGLE_DCHECK_NE(&from, this); |
| 12924 | const RebootDeviceResponse* source = |
| 12925 | ::google::protobuf::DynamicCastToGenerated<RebootDeviceResponse>( |
| 12926 | &from); |
| 12927 | if (source == nullptr) { |
| 12928 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.RebootDeviceResponse) |
| 12929 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 12930 | } else { |
| 12931 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.RebootDeviceResponse) |
| 12932 | MergeFrom(*source); |
| 12933 | } |
| 12934 | } |
| 12935 | |
| 12936 | void RebootDeviceResponse::MergeFrom(const RebootDeviceResponse& from) { |
| 12937 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.RebootDeviceResponse) |
| 12938 | GOOGLE_DCHECK_NE(&from, this); |
| 12939 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 12940 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 12941 | (void) cached_has_bits; |
| 12942 | |
| 12943 | if (from.reason_detail().size() > 0) { |
| 12944 | |
| 12945 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 12946 | } |
| 12947 | if (from.status() != 0) { |
| 12948 | set_status(from.status()); |
| 12949 | } |
| 12950 | if (from.reason() != 0) { |
| 12951 | set_reason(from.reason()); |
| 12952 | } |
| 12953 | } |
| 12954 | |
| 12955 | void RebootDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 12956 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.RebootDeviceResponse) |
| 12957 | if (&from == this) return; |
| 12958 | Clear(); |
| 12959 | MergeFrom(from); |
| 12960 | } |
| 12961 | |
| 12962 | void RebootDeviceResponse::CopyFrom(const RebootDeviceResponse& from) { |
| 12963 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.RebootDeviceResponse) |
| 12964 | if (&from == this) return; |
| 12965 | Clear(); |
| 12966 | MergeFrom(from); |
| 12967 | } |
| 12968 | |
| 12969 | bool RebootDeviceResponse::IsInitialized() const { |
| 12970 | return true; |
| 12971 | } |
| 12972 | |
| 12973 | void RebootDeviceResponse::Swap(RebootDeviceResponse* other) { |
| 12974 | if (other == this) return; |
| 12975 | InternalSwap(other); |
| 12976 | } |
| 12977 | void RebootDeviceResponse::InternalSwap(RebootDeviceResponse* other) { |
| 12978 | using std::swap; |
| 12979 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 12980 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 12981 | GetArenaNoVirtual()); |
| 12982 | swap(status_, other->status_); |
| 12983 | swap(reason_, other->reason_); |
| 12984 | } |
| 12985 | |
| 12986 | ::google::protobuf::Metadata RebootDeviceResponse::GetMetadata() const { |
| 12987 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 12988 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 12989 | } |
| 12990 | |
| 12991 | |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 12992 | // =================================================================== |
| 12993 | |
| 12994 | void DisableHWComponentRequest::InitAsDefaultInstance() { |
| 12995 | ::dmi::_DisableHWComponentRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 12996 | ::dmi::Uuid::internal_default_instance()); |
| 12997 | ::dmi::_DisableHWComponentRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 12998 | ::dmi::Uuid::internal_default_instance()); |
| 12999 | } |
| 13000 | class DisableHWComponentRequest::HasBitSetters { |
| 13001 | public: |
| 13002 | static const ::dmi::Uuid& device_uuid(const DisableHWComponentRequest* msg); |
| 13003 | static const ::dmi::Uuid& component_uuid(const DisableHWComponentRequest* msg); |
| 13004 | }; |
| 13005 | |
| 13006 | const ::dmi::Uuid& |
| 13007 | DisableHWComponentRequest::HasBitSetters::device_uuid(const DisableHWComponentRequest* msg) { |
| 13008 | return *msg->device_uuid_; |
| 13009 | } |
| 13010 | const ::dmi::Uuid& |
| 13011 | DisableHWComponentRequest::HasBitSetters::component_uuid(const DisableHWComponentRequest* msg) { |
| 13012 | return *msg->component_uuid_; |
| 13013 | } |
| 13014 | void DisableHWComponentRequest::clear_device_uuid() { |
| 13015 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 13016 | delete device_uuid_; |
| 13017 | } |
| 13018 | device_uuid_ = nullptr; |
| 13019 | } |
| 13020 | void DisableHWComponentRequest::clear_component_uuid() { |
| 13021 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 13022 | delete component_uuid_; |
| 13023 | } |
| 13024 | component_uuid_ = nullptr; |
| 13025 | } |
| 13026 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13027 | const int DisableHWComponentRequest::kDeviceUuidFieldNumber; |
| 13028 | const int DisableHWComponentRequest::kComponentUuidFieldNumber; |
| 13029 | const int DisableHWComponentRequest::kComponentNameFieldNumber; |
| 13030 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13031 | |
| 13032 | DisableHWComponentRequest::DisableHWComponentRequest() |
| 13033 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 13034 | SharedCtor(); |
| 13035 | // @@protoc_insertion_point(constructor:dmi.DisableHWComponentRequest) |
| 13036 | } |
| 13037 | DisableHWComponentRequest::DisableHWComponentRequest(const DisableHWComponentRequest& from) |
| 13038 | : ::google::protobuf::Message(), |
| 13039 | _internal_metadata_(nullptr) { |
| 13040 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13041 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13042 | if (from.component_name().size() > 0) { |
| 13043 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 13044 | } |
| 13045 | if (from.has_device_uuid()) { |
| 13046 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 13047 | } else { |
| 13048 | device_uuid_ = nullptr; |
| 13049 | } |
| 13050 | if (from.has_component_uuid()) { |
| 13051 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 13052 | } else { |
| 13053 | component_uuid_ = nullptr; |
| 13054 | } |
| 13055 | // @@protoc_insertion_point(copy_constructor:dmi.DisableHWComponentRequest) |
| 13056 | } |
| 13057 | |
| 13058 | void DisableHWComponentRequest::SharedCtor() { |
| 13059 | ::google::protobuf::internal::InitSCC( |
| 13060 | &scc_info_DisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13061 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13062 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 13063 | reinterpret_cast<char*>(&component_uuid_) - |
| 13064 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 13065 | } |
| 13066 | |
| 13067 | DisableHWComponentRequest::~DisableHWComponentRequest() { |
| 13068 | // @@protoc_insertion_point(destructor:dmi.DisableHWComponentRequest) |
| 13069 | SharedDtor(); |
| 13070 | } |
| 13071 | |
| 13072 | void DisableHWComponentRequest::SharedDtor() { |
| 13073 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13074 | if (this != internal_default_instance()) delete device_uuid_; |
| 13075 | if (this != internal_default_instance()) delete component_uuid_; |
| 13076 | } |
| 13077 | |
| 13078 | void DisableHWComponentRequest::SetCachedSize(int size) const { |
| 13079 | _cached_size_.Set(size); |
| 13080 | } |
| 13081 | const DisableHWComponentRequest& DisableHWComponentRequest::default_instance() { |
| 13082 | ::google::protobuf::internal::InitSCC(&::scc_info_DisableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13083 | return *internal_default_instance(); |
| 13084 | } |
| 13085 | |
| 13086 | |
| 13087 | void DisableHWComponentRequest::Clear() { |
| 13088 | // @@protoc_insertion_point(message_clear_start:dmi.DisableHWComponentRequest) |
| 13089 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13090 | // Prevent compiler warnings about cached_has_bits being unused |
| 13091 | (void) cached_has_bits; |
| 13092 | |
| 13093 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13094 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 13095 | delete device_uuid_; |
| 13096 | } |
| 13097 | device_uuid_ = nullptr; |
| 13098 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 13099 | delete component_uuid_; |
| 13100 | } |
| 13101 | component_uuid_ = nullptr; |
| 13102 | _internal_metadata_.Clear(); |
| 13103 | } |
| 13104 | |
| 13105 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13106 | const char* DisableHWComponentRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 13107 | ::google::protobuf::internal::ParseContext* ctx) { |
| 13108 | auto msg = static_cast<DisableHWComponentRequest*>(object); |
| 13109 | ::google::protobuf::int32 size; (void)size; |
| 13110 | int depth; (void)depth; |
| 13111 | ::google::protobuf::uint32 tag; |
| 13112 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 13113 | auto ptr = begin; |
| 13114 | while (ptr < end) { |
| 13115 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 13116 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13117 | switch (tag >> 3) { |
| 13118 | // .dmi.Uuid device_uuid = 1; |
| 13119 | case 1: { |
| 13120 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 13121 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13122 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13123 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 13124 | object = msg->mutable_device_uuid(); |
| 13125 | if (size > end - ptr) goto len_delim_till_end; |
| 13126 | ptr += size; |
| 13127 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 13128 | {parser_till_end, object}, ptr - size, ptr)); |
| 13129 | break; |
| 13130 | } |
| 13131 | // .dmi.Uuid component_uuid = 2; |
| 13132 | case 2: { |
| 13133 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 13134 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13135 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13136 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 13137 | object = msg->mutable_component_uuid(); |
| 13138 | if (size > end - ptr) goto len_delim_till_end; |
| 13139 | ptr += size; |
| 13140 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 13141 | {parser_till_end, object}, ptr - size, ptr)); |
| 13142 | break; |
| 13143 | } |
| 13144 | // string component_name = 3; |
| 13145 | case 3: { |
| 13146 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 13147 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13148 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13149 | ctx->extra_parse_data().SetFieldName("dmi.DisableHWComponentRequest.component_name"); |
| 13150 | object = msg->mutable_component_name(); |
| 13151 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 13152 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 13153 | goto string_till_end; |
| 13154 | } |
| 13155 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 13156 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 13157 | ptr += size; |
| 13158 | break; |
| 13159 | } |
| 13160 | default: { |
| 13161 | handle_unusual: |
| 13162 | if ((tag & 7) == 4 || tag == 0) { |
| 13163 | ctx->EndGroup(tag); |
| 13164 | return ptr; |
| 13165 | } |
| 13166 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 13167 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 13168 | ptr = res.first; |
| 13169 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 13170 | if (res.second) return ptr; |
| 13171 | } |
| 13172 | } // switch |
| 13173 | } // while |
| 13174 | return ptr; |
| 13175 | string_till_end: |
| 13176 | static_cast<::std::string*>(object)->clear(); |
| 13177 | static_cast<::std::string*>(object)->reserve(size); |
| 13178 | goto len_delim_till_end; |
| 13179 | len_delim_till_end: |
| 13180 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 13181 | {parser_till_end, object}, size); |
| 13182 | } |
| 13183 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13184 | bool DisableHWComponentRequest::MergePartialFromCodedStream( |
| 13185 | ::google::protobuf::io::CodedInputStream* input) { |
| 13186 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13187 | ::google::protobuf::uint32 tag; |
| 13188 | // @@protoc_insertion_point(parse_start:dmi.DisableHWComponentRequest) |
| 13189 | for (;;) { |
| 13190 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 13191 | tag = p.first; |
| 13192 | if (!p.second) goto handle_unusual; |
| 13193 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13194 | // .dmi.Uuid device_uuid = 1; |
| 13195 | case 1: { |
| 13196 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 13197 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 13198 | input, mutable_device_uuid())); |
| 13199 | } else { |
| 13200 | goto handle_unusual; |
| 13201 | } |
| 13202 | break; |
| 13203 | } |
| 13204 | |
| 13205 | // .dmi.Uuid component_uuid = 2; |
| 13206 | case 2: { |
| 13207 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 13208 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 13209 | input, mutable_component_uuid())); |
| 13210 | } else { |
| 13211 | goto handle_unusual; |
| 13212 | } |
| 13213 | break; |
| 13214 | } |
| 13215 | |
| 13216 | // string component_name = 3; |
| 13217 | case 3: { |
| 13218 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 13219 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13220 | input, this->mutable_component_name())); |
| 13221 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13222 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 13223 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 13224 | "dmi.DisableHWComponentRequest.component_name")); |
| 13225 | } else { |
| 13226 | goto handle_unusual; |
| 13227 | } |
| 13228 | break; |
| 13229 | } |
| 13230 | |
| 13231 | default: { |
| 13232 | handle_unusual: |
| 13233 | if (tag == 0) { |
| 13234 | goto success; |
| 13235 | } |
| 13236 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13237 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 13238 | break; |
| 13239 | } |
| 13240 | } |
| 13241 | } |
| 13242 | success: |
| 13243 | // @@protoc_insertion_point(parse_success:dmi.DisableHWComponentRequest) |
| 13244 | return true; |
| 13245 | failure: |
| 13246 | // @@protoc_insertion_point(parse_failure:dmi.DisableHWComponentRequest) |
| 13247 | return false; |
| 13248 | #undef DO_ |
| 13249 | } |
| 13250 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13251 | |
| 13252 | void DisableHWComponentRequest::SerializeWithCachedSizes( |
| 13253 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13254 | // @@protoc_insertion_point(serialize_start:dmi.DisableHWComponentRequest) |
| 13255 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13256 | (void) cached_has_bits; |
| 13257 | |
| 13258 | // .dmi.Uuid device_uuid = 1; |
| 13259 | if (this->has_device_uuid()) { |
| 13260 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 13261 | 1, HasBitSetters::device_uuid(this), output); |
| 13262 | } |
| 13263 | |
| 13264 | // .dmi.Uuid component_uuid = 2; |
| 13265 | if (this->has_component_uuid()) { |
| 13266 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 13267 | 2, HasBitSetters::component_uuid(this), output); |
| 13268 | } |
| 13269 | |
| 13270 | // string component_name = 3; |
| 13271 | if (this->component_name().size() > 0) { |
| 13272 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13273 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 13274 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 13275 | "dmi.DisableHWComponentRequest.component_name"); |
| 13276 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13277 | 3, this->component_name(), output); |
| 13278 | } |
| 13279 | |
| 13280 | if (_internal_metadata_.have_unknown_fields()) { |
| 13281 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13282 | _internal_metadata_.unknown_fields(), output); |
| 13283 | } |
| 13284 | // @@protoc_insertion_point(serialize_end:dmi.DisableHWComponentRequest) |
| 13285 | } |
| 13286 | |
| 13287 | ::google::protobuf::uint8* DisableHWComponentRequest::InternalSerializeWithCachedSizesToArray( |
| 13288 | ::google::protobuf::uint8* target) const { |
| 13289 | // @@protoc_insertion_point(serialize_to_array_start:dmi.DisableHWComponentRequest) |
| 13290 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13291 | (void) cached_has_bits; |
| 13292 | |
| 13293 | // .dmi.Uuid device_uuid = 1; |
| 13294 | if (this->has_device_uuid()) { |
| 13295 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13296 | InternalWriteMessageToArray( |
| 13297 | 1, HasBitSetters::device_uuid(this), target); |
| 13298 | } |
| 13299 | |
| 13300 | // .dmi.Uuid component_uuid = 2; |
| 13301 | if (this->has_component_uuid()) { |
| 13302 | target = ::google::protobuf::internal::WireFormatLite:: |
| 13303 | InternalWriteMessageToArray( |
| 13304 | 2, HasBitSetters::component_uuid(this), target); |
| 13305 | } |
| 13306 | |
| 13307 | // string component_name = 3; |
| 13308 | if (this->component_name().size() > 0) { |
| 13309 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13310 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 13311 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 13312 | "dmi.DisableHWComponentRequest.component_name"); |
| 13313 | target = |
| 13314 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13315 | 3, this->component_name(), target); |
| 13316 | } |
| 13317 | |
| 13318 | if (_internal_metadata_.have_unknown_fields()) { |
| 13319 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 13320 | _internal_metadata_.unknown_fields(), target); |
| 13321 | } |
| 13322 | // @@protoc_insertion_point(serialize_to_array_end:dmi.DisableHWComponentRequest) |
| 13323 | return target; |
| 13324 | } |
| 13325 | |
| 13326 | size_t DisableHWComponentRequest::ByteSizeLong() const { |
| 13327 | // @@protoc_insertion_point(message_byte_size_start:dmi.DisableHWComponentRequest) |
| 13328 | size_t total_size = 0; |
| 13329 | |
| 13330 | if (_internal_metadata_.have_unknown_fields()) { |
| 13331 | total_size += |
| 13332 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13333 | _internal_metadata_.unknown_fields()); |
| 13334 | } |
| 13335 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13336 | // Prevent compiler warnings about cached_has_bits being unused |
| 13337 | (void) cached_has_bits; |
| 13338 | |
| 13339 | // string component_name = 3; |
| 13340 | if (this->component_name().size() > 0) { |
| 13341 | total_size += 1 + |
| 13342 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13343 | this->component_name()); |
| 13344 | } |
| 13345 | |
| 13346 | // .dmi.Uuid device_uuid = 1; |
| 13347 | if (this->has_device_uuid()) { |
| 13348 | total_size += 1 + |
| 13349 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 13350 | *device_uuid_); |
| 13351 | } |
| 13352 | |
| 13353 | // .dmi.Uuid component_uuid = 2; |
| 13354 | if (this->has_component_uuid()) { |
| 13355 | total_size += 1 + |
| 13356 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 13357 | *component_uuid_); |
| 13358 | } |
| 13359 | |
| 13360 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 13361 | SetCachedSize(cached_size); |
| 13362 | return total_size; |
| 13363 | } |
| 13364 | |
| 13365 | void DisableHWComponentRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 13366 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.DisableHWComponentRequest) |
| 13367 | GOOGLE_DCHECK_NE(&from, this); |
| 13368 | const DisableHWComponentRequest* source = |
| 13369 | ::google::protobuf::DynamicCastToGenerated<DisableHWComponentRequest>( |
| 13370 | &from); |
| 13371 | if (source == nullptr) { |
| 13372 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.DisableHWComponentRequest) |
| 13373 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13374 | } else { |
| 13375 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.DisableHWComponentRequest) |
| 13376 | MergeFrom(*source); |
| 13377 | } |
| 13378 | } |
| 13379 | |
| 13380 | void DisableHWComponentRequest::MergeFrom(const DisableHWComponentRequest& from) { |
| 13381 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.DisableHWComponentRequest) |
| 13382 | GOOGLE_DCHECK_NE(&from, this); |
| 13383 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13384 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13385 | (void) cached_has_bits; |
| 13386 | |
| 13387 | if (from.component_name().size() > 0) { |
| 13388 | |
| 13389 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 13390 | } |
| 13391 | if (from.has_device_uuid()) { |
| 13392 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 13393 | } |
| 13394 | if (from.has_component_uuid()) { |
| 13395 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 13396 | } |
| 13397 | } |
| 13398 | |
| 13399 | void DisableHWComponentRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 13400 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.DisableHWComponentRequest) |
| 13401 | if (&from == this) return; |
| 13402 | Clear(); |
| 13403 | MergeFrom(from); |
| 13404 | } |
| 13405 | |
| 13406 | void DisableHWComponentRequest::CopyFrom(const DisableHWComponentRequest& from) { |
| 13407 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.DisableHWComponentRequest) |
| 13408 | if (&from == this) return; |
| 13409 | Clear(); |
| 13410 | MergeFrom(from); |
| 13411 | } |
| 13412 | |
| 13413 | bool DisableHWComponentRequest::IsInitialized() const { |
| 13414 | return true; |
| 13415 | } |
| 13416 | |
| 13417 | void DisableHWComponentRequest::Swap(DisableHWComponentRequest* other) { |
| 13418 | if (other == this) return; |
| 13419 | InternalSwap(other); |
| 13420 | } |
| 13421 | void DisableHWComponentRequest::InternalSwap(DisableHWComponentRequest* other) { |
| 13422 | using std::swap; |
| 13423 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13424 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13425 | GetArenaNoVirtual()); |
| 13426 | swap(device_uuid_, other->device_uuid_); |
| 13427 | swap(component_uuid_, other->component_uuid_); |
| 13428 | } |
| 13429 | |
| 13430 | ::google::protobuf::Metadata DisableHWComponentRequest::GetMetadata() const { |
| 13431 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 13432 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 13433 | } |
| 13434 | |
| 13435 | |
| 13436 | // =================================================================== |
| 13437 | |
| 13438 | void DisableHWComponentResponse::InitAsDefaultInstance() { |
| 13439 | } |
| 13440 | class DisableHWComponentResponse::HasBitSetters { |
| 13441 | public: |
| 13442 | }; |
| 13443 | |
| 13444 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13445 | const int DisableHWComponentResponse::kStatusFieldNumber; |
| 13446 | const int DisableHWComponentResponse::kReasonFieldNumber; |
| 13447 | const int DisableHWComponentResponse::kReasonDetailFieldNumber; |
| 13448 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13449 | |
| 13450 | DisableHWComponentResponse::DisableHWComponentResponse() |
| 13451 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 13452 | SharedCtor(); |
| 13453 | // @@protoc_insertion_point(constructor:dmi.DisableHWComponentResponse) |
| 13454 | } |
| 13455 | DisableHWComponentResponse::DisableHWComponentResponse(const DisableHWComponentResponse& from) |
| 13456 | : ::google::protobuf::Message(), |
| 13457 | _internal_metadata_(nullptr) { |
| 13458 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13459 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13460 | if (from.reason_detail().size() > 0) { |
| 13461 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 13462 | } |
| 13463 | ::memcpy(&status_, &from.status_, |
| 13464 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 13465 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 13466 | // @@protoc_insertion_point(copy_constructor:dmi.DisableHWComponentResponse) |
| 13467 | } |
| 13468 | |
| 13469 | void DisableHWComponentResponse::SharedCtor() { |
| 13470 | ::google::protobuf::internal::InitSCC( |
| 13471 | &scc_info_DisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13472 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13473 | ::memset(&status_, 0, static_cast<size_t>( |
| 13474 | reinterpret_cast<char*>(&reason_) - |
| 13475 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 13476 | } |
| 13477 | |
| 13478 | DisableHWComponentResponse::~DisableHWComponentResponse() { |
| 13479 | // @@protoc_insertion_point(destructor:dmi.DisableHWComponentResponse) |
| 13480 | SharedDtor(); |
| 13481 | } |
| 13482 | |
| 13483 | void DisableHWComponentResponse::SharedDtor() { |
| 13484 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13485 | } |
| 13486 | |
| 13487 | void DisableHWComponentResponse::SetCachedSize(int size) const { |
| 13488 | _cached_size_.Set(size); |
| 13489 | } |
| 13490 | const DisableHWComponentResponse& DisableHWComponentResponse::default_instance() { |
| 13491 | ::google::protobuf::internal::InitSCC(&::scc_info_DisableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13492 | return *internal_default_instance(); |
| 13493 | } |
| 13494 | |
| 13495 | |
| 13496 | void DisableHWComponentResponse::Clear() { |
| 13497 | // @@protoc_insertion_point(message_clear_start:dmi.DisableHWComponentResponse) |
| 13498 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13499 | // Prevent compiler warnings about cached_has_bits being unused |
| 13500 | (void) cached_has_bits; |
| 13501 | |
| 13502 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13503 | ::memset(&status_, 0, static_cast<size_t>( |
| 13504 | reinterpret_cast<char*>(&reason_) - |
| 13505 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 13506 | _internal_metadata_.Clear(); |
| 13507 | } |
| 13508 | |
| 13509 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13510 | const char* DisableHWComponentResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 13511 | ::google::protobuf::internal::ParseContext* ctx) { |
| 13512 | auto msg = static_cast<DisableHWComponentResponse*>(object); |
| 13513 | ::google::protobuf::int32 size; (void)size; |
| 13514 | int depth; (void)depth; |
| 13515 | ::google::protobuf::uint32 tag; |
| 13516 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 13517 | auto ptr = begin; |
| 13518 | while (ptr < end) { |
| 13519 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 13520 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13521 | switch (tag >> 3) { |
| 13522 | // .dmi.Status status = 1; |
| 13523 | case 1: { |
| 13524 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 13525 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 13526 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 13527 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13528 | break; |
| 13529 | } |
| 13530 | // .dmi.DisableHWComponentResponse.Reason reason = 2; |
| 13531 | case 2: { |
| 13532 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 13533 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 13534 | msg->set_reason(static_cast<::dmi::DisableHWComponentResponse_Reason>(val)); |
| 13535 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13536 | break; |
| 13537 | } |
| 13538 | // string reason_detail = 3; |
| 13539 | case 3: { |
| 13540 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 13541 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13542 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13543 | ctx->extra_parse_data().SetFieldName("dmi.DisableHWComponentResponse.reason_detail"); |
| 13544 | object = msg->mutable_reason_detail(); |
| 13545 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 13546 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 13547 | goto string_till_end; |
| 13548 | } |
| 13549 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 13550 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 13551 | ptr += size; |
| 13552 | break; |
| 13553 | } |
| 13554 | default: { |
| 13555 | handle_unusual: |
| 13556 | if ((tag & 7) == 4 || tag == 0) { |
| 13557 | ctx->EndGroup(tag); |
| 13558 | return ptr; |
| 13559 | } |
| 13560 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 13561 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 13562 | ptr = res.first; |
| 13563 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 13564 | if (res.second) return ptr; |
| 13565 | } |
| 13566 | } // switch |
| 13567 | } // while |
| 13568 | return ptr; |
| 13569 | string_till_end: |
| 13570 | static_cast<::std::string*>(object)->clear(); |
| 13571 | static_cast<::std::string*>(object)->reserve(size); |
| 13572 | goto len_delim_till_end; |
| 13573 | len_delim_till_end: |
| 13574 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 13575 | {parser_till_end, object}, size); |
| 13576 | } |
| 13577 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13578 | bool DisableHWComponentResponse::MergePartialFromCodedStream( |
| 13579 | ::google::protobuf::io::CodedInputStream* input) { |
| 13580 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 13581 | ::google::protobuf::uint32 tag; |
| 13582 | // @@protoc_insertion_point(parse_start:dmi.DisableHWComponentResponse) |
| 13583 | for (;;) { |
| 13584 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 13585 | tag = p.first; |
| 13586 | if (!p.second) goto handle_unusual; |
| 13587 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 13588 | // .dmi.Status status = 1; |
| 13589 | case 1: { |
| 13590 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 13591 | int value = 0; |
| 13592 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 13593 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 13594 | input, &value))); |
| 13595 | set_status(static_cast< ::dmi::Status >(value)); |
| 13596 | } else { |
| 13597 | goto handle_unusual; |
| 13598 | } |
| 13599 | break; |
| 13600 | } |
| 13601 | |
| 13602 | // .dmi.DisableHWComponentResponse.Reason reason = 2; |
| 13603 | case 2: { |
| 13604 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 13605 | int value = 0; |
| 13606 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 13607 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 13608 | input, &value))); |
| 13609 | set_reason(static_cast< ::dmi::DisableHWComponentResponse_Reason >(value)); |
| 13610 | } else { |
| 13611 | goto handle_unusual; |
| 13612 | } |
| 13613 | break; |
| 13614 | } |
| 13615 | |
| 13616 | // string reason_detail = 3; |
| 13617 | case 3: { |
| 13618 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 13619 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 13620 | input, this->mutable_reason_detail())); |
| 13621 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13622 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 13623 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 13624 | "dmi.DisableHWComponentResponse.reason_detail")); |
| 13625 | } else { |
| 13626 | goto handle_unusual; |
| 13627 | } |
| 13628 | break; |
| 13629 | } |
| 13630 | |
| 13631 | default: { |
| 13632 | handle_unusual: |
| 13633 | if (tag == 0) { |
| 13634 | goto success; |
| 13635 | } |
| 13636 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 13637 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 13638 | break; |
| 13639 | } |
| 13640 | } |
| 13641 | } |
| 13642 | success: |
| 13643 | // @@protoc_insertion_point(parse_success:dmi.DisableHWComponentResponse) |
| 13644 | return true; |
| 13645 | failure: |
| 13646 | // @@protoc_insertion_point(parse_failure:dmi.DisableHWComponentResponse) |
| 13647 | return false; |
| 13648 | #undef DO_ |
| 13649 | } |
| 13650 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13651 | |
| 13652 | void DisableHWComponentResponse::SerializeWithCachedSizes( |
| 13653 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 13654 | // @@protoc_insertion_point(serialize_start:dmi.DisableHWComponentResponse) |
| 13655 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13656 | (void) cached_has_bits; |
| 13657 | |
| 13658 | // .dmi.Status status = 1; |
| 13659 | if (this->status() != 0) { |
| 13660 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 13661 | 1, this->status(), output); |
| 13662 | } |
| 13663 | |
| 13664 | // .dmi.DisableHWComponentResponse.Reason reason = 2; |
| 13665 | if (this->reason() != 0) { |
| 13666 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 13667 | 2, this->reason(), output); |
| 13668 | } |
| 13669 | |
| 13670 | // string reason_detail = 3; |
| 13671 | if (this->reason_detail().size() > 0) { |
| 13672 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13673 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 13674 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 13675 | "dmi.DisableHWComponentResponse.reason_detail"); |
| 13676 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 13677 | 3, this->reason_detail(), output); |
| 13678 | } |
| 13679 | |
| 13680 | if (_internal_metadata_.have_unknown_fields()) { |
| 13681 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 13682 | _internal_metadata_.unknown_fields(), output); |
| 13683 | } |
| 13684 | // @@protoc_insertion_point(serialize_end:dmi.DisableHWComponentResponse) |
| 13685 | } |
| 13686 | |
| 13687 | ::google::protobuf::uint8* DisableHWComponentResponse::InternalSerializeWithCachedSizesToArray( |
| 13688 | ::google::protobuf::uint8* target) const { |
| 13689 | // @@protoc_insertion_point(serialize_to_array_start:dmi.DisableHWComponentResponse) |
| 13690 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13691 | (void) cached_has_bits; |
| 13692 | |
| 13693 | // .dmi.Status status = 1; |
| 13694 | if (this->status() != 0) { |
| 13695 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 13696 | 1, this->status(), target); |
| 13697 | } |
| 13698 | |
| 13699 | // .dmi.DisableHWComponentResponse.Reason reason = 2; |
| 13700 | if (this->reason() != 0) { |
| 13701 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 13702 | 2, this->reason(), target); |
| 13703 | } |
| 13704 | |
| 13705 | // string reason_detail = 3; |
| 13706 | if (this->reason_detail().size() > 0) { |
| 13707 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 13708 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 13709 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 13710 | "dmi.DisableHWComponentResponse.reason_detail"); |
| 13711 | target = |
| 13712 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 13713 | 3, this->reason_detail(), target); |
| 13714 | } |
| 13715 | |
| 13716 | if (_internal_metadata_.have_unknown_fields()) { |
| 13717 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 13718 | _internal_metadata_.unknown_fields(), target); |
| 13719 | } |
| 13720 | // @@protoc_insertion_point(serialize_to_array_end:dmi.DisableHWComponentResponse) |
| 13721 | return target; |
| 13722 | } |
| 13723 | |
| 13724 | size_t DisableHWComponentResponse::ByteSizeLong() const { |
| 13725 | // @@protoc_insertion_point(message_byte_size_start:dmi.DisableHWComponentResponse) |
| 13726 | size_t total_size = 0; |
| 13727 | |
| 13728 | if (_internal_metadata_.have_unknown_fields()) { |
| 13729 | total_size += |
| 13730 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 13731 | _internal_metadata_.unknown_fields()); |
| 13732 | } |
| 13733 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13734 | // Prevent compiler warnings about cached_has_bits being unused |
| 13735 | (void) cached_has_bits; |
| 13736 | |
| 13737 | // string reason_detail = 3; |
| 13738 | if (this->reason_detail().size() > 0) { |
| 13739 | total_size += 1 + |
| 13740 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 13741 | this->reason_detail()); |
| 13742 | } |
| 13743 | |
| 13744 | // .dmi.Status status = 1; |
| 13745 | if (this->status() != 0) { |
| 13746 | total_size += 1 + |
| 13747 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 13748 | } |
| 13749 | |
| 13750 | // .dmi.DisableHWComponentResponse.Reason reason = 2; |
| 13751 | if (this->reason() != 0) { |
| 13752 | total_size += 1 + |
| 13753 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 13754 | } |
| 13755 | |
| 13756 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 13757 | SetCachedSize(cached_size); |
| 13758 | return total_size; |
| 13759 | } |
| 13760 | |
| 13761 | void DisableHWComponentResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 13762 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.DisableHWComponentResponse) |
| 13763 | GOOGLE_DCHECK_NE(&from, this); |
| 13764 | const DisableHWComponentResponse* source = |
| 13765 | ::google::protobuf::DynamicCastToGenerated<DisableHWComponentResponse>( |
| 13766 | &from); |
| 13767 | if (source == nullptr) { |
| 13768 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.DisableHWComponentResponse) |
| 13769 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 13770 | } else { |
| 13771 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.DisableHWComponentResponse) |
| 13772 | MergeFrom(*source); |
| 13773 | } |
| 13774 | } |
| 13775 | |
| 13776 | void DisableHWComponentResponse::MergeFrom(const DisableHWComponentResponse& from) { |
| 13777 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.DisableHWComponentResponse) |
| 13778 | GOOGLE_DCHECK_NE(&from, this); |
| 13779 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13780 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13781 | (void) cached_has_bits; |
| 13782 | |
| 13783 | if (from.reason_detail().size() > 0) { |
| 13784 | |
| 13785 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 13786 | } |
| 13787 | if (from.status() != 0) { |
| 13788 | set_status(from.status()); |
| 13789 | } |
| 13790 | if (from.reason() != 0) { |
| 13791 | set_reason(from.reason()); |
| 13792 | } |
| 13793 | } |
| 13794 | |
| 13795 | void DisableHWComponentResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 13796 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.DisableHWComponentResponse) |
| 13797 | if (&from == this) return; |
| 13798 | Clear(); |
| 13799 | MergeFrom(from); |
| 13800 | } |
| 13801 | |
| 13802 | void DisableHWComponentResponse::CopyFrom(const DisableHWComponentResponse& from) { |
| 13803 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.DisableHWComponentResponse) |
| 13804 | if (&from == this) return; |
| 13805 | Clear(); |
| 13806 | MergeFrom(from); |
| 13807 | } |
| 13808 | |
| 13809 | bool DisableHWComponentResponse::IsInitialized() const { |
| 13810 | return true; |
| 13811 | } |
| 13812 | |
| 13813 | void DisableHWComponentResponse::Swap(DisableHWComponentResponse* other) { |
| 13814 | if (other == this) return; |
| 13815 | InternalSwap(other); |
| 13816 | } |
| 13817 | void DisableHWComponentResponse::InternalSwap(DisableHWComponentResponse* other) { |
| 13818 | using std::swap; |
| 13819 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 13820 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 13821 | GetArenaNoVirtual()); |
| 13822 | swap(status_, other->status_); |
| 13823 | swap(reason_, other->reason_); |
| 13824 | } |
| 13825 | |
| 13826 | ::google::protobuf::Metadata DisableHWComponentResponse::GetMetadata() const { |
| 13827 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 13828 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 13829 | } |
| 13830 | |
| 13831 | |
| 13832 | // =================================================================== |
| 13833 | |
| 13834 | void ResetHWComponentRequest::InitAsDefaultInstance() { |
| 13835 | ::dmi::_ResetHWComponentRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 13836 | ::dmi::Uuid::internal_default_instance()); |
| 13837 | ::dmi::_ResetHWComponentRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 13838 | ::dmi::Uuid::internal_default_instance()); |
| 13839 | } |
| 13840 | class ResetHWComponentRequest::HasBitSetters { |
| 13841 | public: |
| 13842 | static const ::dmi::Uuid& device_uuid(const ResetHWComponentRequest* msg); |
| 13843 | static const ::dmi::Uuid& component_uuid(const ResetHWComponentRequest* msg); |
| 13844 | }; |
| 13845 | |
| 13846 | const ::dmi::Uuid& |
| 13847 | ResetHWComponentRequest::HasBitSetters::device_uuid(const ResetHWComponentRequest* msg) { |
| 13848 | return *msg->device_uuid_; |
| 13849 | } |
| 13850 | const ::dmi::Uuid& |
| 13851 | ResetHWComponentRequest::HasBitSetters::component_uuid(const ResetHWComponentRequest* msg) { |
| 13852 | return *msg->component_uuid_; |
| 13853 | } |
| 13854 | void ResetHWComponentRequest::clear_device_uuid() { |
| 13855 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 13856 | delete device_uuid_; |
| 13857 | } |
| 13858 | device_uuid_ = nullptr; |
| 13859 | } |
| 13860 | void ResetHWComponentRequest::clear_component_uuid() { |
| 13861 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 13862 | delete component_uuid_; |
| 13863 | } |
| 13864 | component_uuid_ = nullptr; |
| 13865 | } |
| 13866 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13867 | const int ResetHWComponentRequest::kDeviceUuidFieldNumber; |
| 13868 | const int ResetHWComponentRequest::kComponentUuidFieldNumber; |
| 13869 | const int ResetHWComponentRequest::kComponentNameFieldNumber; |
| 13870 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 13871 | |
| 13872 | ResetHWComponentRequest::ResetHWComponentRequest() |
| 13873 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 13874 | SharedCtor(); |
| 13875 | // @@protoc_insertion_point(constructor:dmi.ResetHWComponentRequest) |
| 13876 | } |
| 13877 | ResetHWComponentRequest::ResetHWComponentRequest(const ResetHWComponentRequest& from) |
| 13878 | : ::google::protobuf::Message(), |
| 13879 | _internal_metadata_(nullptr) { |
| 13880 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 13881 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13882 | if (from.component_name().size() > 0) { |
| 13883 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 13884 | } |
| 13885 | if (from.has_device_uuid()) { |
| 13886 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 13887 | } else { |
| 13888 | device_uuid_ = nullptr; |
| 13889 | } |
| 13890 | if (from.has_component_uuid()) { |
| 13891 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 13892 | } else { |
| 13893 | component_uuid_ = nullptr; |
| 13894 | } |
| 13895 | // @@protoc_insertion_point(copy_constructor:dmi.ResetHWComponentRequest) |
| 13896 | } |
| 13897 | |
| 13898 | void ResetHWComponentRequest::SharedCtor() { |
| 13899 | ::google::protobuf::internal::InitSCC( |
| 13900 | &scc_info_ResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13901 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13902 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 13903 | reinterpret_cast<char*>(&component_uuid_) - |
| 13904 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 13905 | } |
| 13906 | |
| 13907 | ResetHWComponentRequest::~ResetHWComponentRequest() { |
| 13908 | // @@protoc_insertion_point(destructor:dmi.ResetHWComponentRequest) |
| 13909 | SharedDtor(); |
| 13910 | } |
| 13911 | |
| 13912 | void ResetHWComponentRequest::SharedDtor() { |
| 13913 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13914 | if (this != internal_default_instance()) delete device_uuid_; |
| 13915 | if (this != internal_default_instance()) delete component_uuid_; |
| 13916 | } |
| 13917 | |
| 13918 | void ResetHWComponentRequest::SetCachedSize(int size) const { |
| 13919 | _cached_size_.Set(size); |
| 13920 | } |
| 13921 | const ResetHWComponentRequest& ResetHWComponentRequest::default_instance() { |
| 13922 | ::google::protobuf::internal::InitSCC(&::scc_info_ResetHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 13923 | return *internal_default_instance(); |
| 13924 | } |
| 13925 | |
| 13926 | |
| 13927 | void ResetHWComponentRequest::Clear() { |
| 13928 | // @@protoc_insertion_point(message_clear_start:dmi.ResetHWComponentRequest) |
| 13929 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 13930 | // Prevent compiler warnings about cached_has_bits being unused |
| 13931 | (void) cached_has_bits; |
| 13932 | |
| 13933 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 13934 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 13935 | delete device_uuid_; |
| 13936 | } |
| 13937 | device_uuid_ = nullptr; |
| 13938 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 13939 | delete component_uuid_; |
| 13940 | } |
| 13941 | component_uuid_ = nullptr; |
| 13942 | _internal_metadata_.Clear(); |
| 13943 | } |
| 13944 | |
| 13945 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 13946 | const char* ResetHWComponentRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 13947 | ::google::protobuf::internal::ParseContext* ctx) { |
| 13948 | auto msg = static_cast<ResetHWComponentRequest*>(object); |
| 13949 | ::google::protobuf::int32 size; (void)size; |
| 13950 | int depth; (void)depth; |
| 13951 | ::google::protobuf::uint32 tag; |
| 13952 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 13953 | auto ptr = begin; |
| 13954 | while (ptr < end) { |
| 13955 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 13956 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13957 | switch (tag >> 3) { |
| 13958 | // .dmi.Uuid device_uuid = 1; |
| 13959 | case 1: { |
| 13960 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 13961 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13962 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13963 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 13964 | object = msg->mutable_device_uuid(); |
| 13965 | if (size > end - ptr) goto len_delim_till_end; |
| 13966 | ptr += size; |
| 13967 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 13968 | {parser_till_end, object}, ptr - size, ptr)); |
| 13969 | break; |
| 13970 | } |
| 13971 | // .dmi.Uuid component_uuid = 2; |
| 13972 | case 2: { |
| 13973 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 13974 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13975 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13976 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 13977 | object = msg->mutable_component_uuid(); |
| 13978 | if (size > end - ptr) goto len_delim_till_end; |
| 13979 | ptr += size; |
| 13980 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 13981 | {parser_till_end, object}, ptr - size, ptr)); |
| 13982 | break; |
| 13983 | } |
| 13984 | // string component_name = 3; |
| 13985 | case 3: { |
| 13986 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 13987 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 13988 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 13989 | ctx->extra_parse_data().SetFieldName("dmi.ResetHWComponentRequest.component_name"); |
| 13990 | object = msg->mutable_component_name(); |
| 13991 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 13992 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 13993 | goto string_till_end; |
| 13994 | } |
| 13995 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 13996 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 13997 | ptr += size; |
| 13998 | break; |
| 13999 | } |
| 14000 | default: { |
| 14001 | handle_unusual: |
| 14002 | if ((tag & 7) == 4 || tag == 0) { |
| 14003 | ctx->EndGroup(tag); |
| 14004 | return ptr; |
| 14005 | } |
| 14006 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 14007 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 14008 | ptr = res.first; |
| 14009 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 14010 | if (res.second) return ptr; |
| 14011 | } |
| 14012 | } // switch |
| 14013 | } // while |
| 14014 | return ptr; |
| 14015 | string_till_end: |
| 14016 | static_cast<::std::string*>(object)->clear(); |
| 14017 | static_cast<::std::string*>(object)->reserve(size); |
| 14018 | goto len_delim_till_end; |
| 14019 | len_delim_till_end: |
| 14020 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 14021 | {parser_till_end, object}, size); |
| 14022 | } |
| 14023 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14024 | bool ResetHWComponentRequest::MergePartialFromCodedStream( |
| 14025 | ::google::protobuf::io::CodedInputStream* input) { |
| 14026 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14027 | ::google::protobuf::uint32 tag; |
| 14028 | // @@protoc_insertion_point(parse_start:dmi.ResetHWComponentRequest) |
| 14029 | for (;;) { |
| 14030 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 14031 | tag = p.first; |
| 14032 | if (!p.second) goto handle_unusual; |
| 14033 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14034 | // .dmi.Uuid device_uuid = 1; |
| 14035 | case 1: { |
| 14036 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 14037 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 14038 | input, mutable_device_uuid())); |
| 14039 | } else { |
| 14040 | goto handle_unusual; |
| 14041 | } |
| 14042 | break; |
| 14043 | } |
| 14044 | |
| 14045 | // .dmi.Uuid component_uuid = 2; |
| 14046 | case 2: { |
| 14047 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 14048 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 14049 | input, mutable_component_uuid())); |
| 14050 | } else { |
| 14051 | goto handle_unusual; |
| 14052 | } |
| 14053 | break; |
| 14054 | } |
| 14055 | |
| 14056 | // string component_name = 3; |
| 14057 | case 3: { |
| 14058 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 14059 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14060 | input, this->mutable_component_name())); |
| 14061 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14062 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14063 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 14064 | "dmi.ResetHWComponentRequest.component_name")); |
| 14065 | } else { |
| 14066 | goto handle_unusual; |
| 14067 | } |
| 14068 | break; |
| 14069 | } |
| 14070 | |
| 14071 | default: { |
| 14072 | handle_unusual: |
| 14073 | if (tag == 0) { |
| 14074 | goto success; |
| 14075 | } |
| 14076 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14077 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 14078 | break; |
| 14079 | } |
| 14080 | } |
| 14081 | } |
| 14082 | success: |
| 14083 | // @@protoc_insertion_point(parse_success:dmi.ResetHWComponentRequest) |
| 14084 | return true; |
| 14085 | failure: |
| 14086 | // @@protoc_insertion_point(parse_failure:dmi.ResetHWComponentRequest) |
| 14087 | return false; |
| 14088 | #undef DO_ |
| 14089 | } |
| 14090 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14091 | |
| 14092 | void ResetHWComponentRequest::SerializeWithCachedSizes( |
| 14093 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14094 | // @@protoc_insertion_point(serialize_start:dmi.ResetHWComponentRequest) |
| 14095 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14096 | (void) cached_has_bits; |
| 14097 | |
| 14098 | // .dmi.Uuid device_uuid = 1; |
| 14099 | if (this->has_device_uuid()) { |
| 14100 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14101 | 1, HasBitSetters::device_uuid(this), output); |
| 14102 | } |
| 14103 | |
| 14104 | // .dmi.Uuid component_uuid = 2; |
| 14105 | if (this->has_component_uuid()) { |
| 14106 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14107 | 2, HasBitSetters::component_uuid(this), output); |
| 14108 | } |
| 14109 | |
| 14110 | // string component_name = 3; |
| 14111 | if (this->component_name().size() > 0) { |
| 14112 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14113 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14114 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14115 | "dmi.ResetHWComponentRequest.component_name"); |
| 14116 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14117 | 3, this->component_name(), output); |
| 14118 | } |
| 14119 | |
| 14120 | if (_internal_metadata_.have_unknown_fields()) { |
| 14121 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14122 | _internal_metadata_.unknown_fields(), output); |
| 14123 | } |
| 14124 | // @@protoc_insertion_point(serialize_end:dmi.ResetHWComponentRequest) |
| 14125 | } |
| 14126 | |
| 14127 | ::google::protobuf::uint8* ResetHWComponentRequest::InternalSerializeWithCachedSizesToArray( |
| 14128 | ::google::protobuf::uint8* target) const { |
| 14129 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ResetHWComponentRequest) |
| 14130 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14131 | (void) cached_has_bits; |
| 14132 | |
| 14133 | // .dmi.Uuid device_uuid = 1; |
| 14134 | if (this->has_device_uuid()) { |
| 14135 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14136 | InternalWriteMessageToArray( |
| 14137 | 1, HasBitSetters::device_uuid(this), target); |
| 14138 | } |
| 14139 | |
| 14140 | // .dmi.Uuid component_uuid = 2; |
| 14141 | if (this->has_component_uuid()) { |
| 14142 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14143 | InternalWriteMessageToArray( |
| 14144 | 2, HasBitSetters::component_uuid(this), target); |
| 14145 | } |
| 14146 | |
| 14147 | // string component_name = 3; |
| 14148 | if (this->component_name().size() > 0) { |
| 14149 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14150 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14151 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14152 | "dmi.ResetHWComponentRequest.component_name"); |
| 14153 | target = |
| 14154 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14155 | 3, this->component_name(), target); |
| 14156 | } |
| 14157 | |
| 14158 | if (_internal_metadata_.have_unknown_fields()) { |
| 14159 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14160 | _internal_metadata_.unknown_fields(), target); |
| 14161 | } |
| 14162 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ResetHWComponentRequest) |
| 14163 | return target; |
| 14164 | } |
| 14165 | |
| 14166 | size_t ResetHWComponentRequest::ByteSizeLong() const { |
| 14167 | // @@protoc_insertion_point(message_byte_size_start:dmi.ResetHWComponentRequest) |
| 14168 | size_t total_size = 0; |
| 14169 | |
| 14170 | if (_internal_metadata_.have_unknown_fields()) { |
| 14171 | total_size += |
| 14172 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14173 | _internal_metadata_.unknown_fields()); |
| 14174 | } |
| 14175 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14176 | // Prevent compiler warnings about cached_has_bits being unused |
| 14177 | (void) cached_has_bits; |
| 14178 | |
| 14179 | // string component_name = 3; |
| 14180 | if (this->component_name().size() > 0) { |
| 14181 | total_size += 1 + |
| 14182 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14183 | this->component_name()); |
| 14184 | } |
| 14185 | |
| 14186 | // .dmi.Uuid device_uuid = 1; |
| 14187 | if (this->has_device_uuid()) { |
| 14188 | total_size += 1 + |
| 14189 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 14190 | *device_uuid_); |
| 14191 | } |
| 14192 | |
| 14193 | // .dmi.Uuid component_uuid = 2; |
| 14194 | if (this->has_component_uuid()) { |
| 14195 | total_size += 1 + |
| 14196 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 14197 | *component_uuid_); |
| 14198 | } |
| 14199 | |
| 14200 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 14201 | SetCachedSize(cached_size); |
| 14202 | return total_size; |
| 14203 | } |
| 14204 | |
| 14205 | void ResetHWComponentRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 14206 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ResetHWComponentRequest) |
| 14207 | GOOGLE_DCHECK_NE(&from, this); |
| 14208 | const ResetHWComponentRequest* source = |
| 14209 | ::google::protobuf::DynamicCastToGenerated<ResetHWComponentRequest>( |
| 14210 | &from); |
| 14211 | if (source == nullptr) { |
| 14212 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ResetHWComponentRequest) |
| 14213 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14214 | } else { |
| 14215 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ResetHWComponentRequest) |
| 14216 | MergeFrom(*source); |
| 14217 | } |
| 14218 | } |
| 14219 | |
| 14220 | void ResetHWComponentRequest::MergeFrom(const ResetHWComponentRequest& from) { |
| 14221 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ResetHWComponentRequest) |
| 14222 | GOOGLE_DCHECK_NE(&from, this); |
| 14223 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14224 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14225 | (void) cached_has_bits; |
| 14226 | |
| 14227 | if (from.component_name().size() > 0) { |
| 14228 | |
| 14229 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 14230 | } |
| 14231 | if (from.has_device_uuid()) { |
| 14232 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 14233 | } |
| 14234 | if (from.has_component_uuid()) { |
| 14235 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 14236 | } |
| 14237 | } |
| 14238 | |
| 14239 | void ResetHWComponentRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 14240 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ResetHWComponentRequest) |
| 14241 | if (&from == this) return; |
| 14242 | Clear(); |
| 14243 | MergeFrom(from); |
| 14244 | } |
| 14245 | |
| 14246 | void ResetHWComponentRequest::CopyFrom(const ResetHWComponentRequest& from) { |
| 14247 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ResetHWComponentRequest) |
| 14248 | if (&from == this) return; |
| 14249 | Clear(); |
| 14250 | MergeFrom(from); |
| 14251 | } |
| 14252 | |
| 14253 | bool ResetHWComponentRequest::IsInitialized() const { |
| 14254 | return true; |
| 14255 | } |
| 14256 | |
| 14257 | void ResetHWComponentRequest::Swap(ResetHWComponentRequest* other) { |
| 14258 | if (other == this) return; |
| 14259 | InternalSwap(other); |
| 14260 | } |
| 14261 | void ResetHWComponentRequest::InternalSwap(ResetHWComponentRequest* other) { |
| 14262 | using std::swap; |
| 14263 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14264 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14265 | GetArenaNoVirtual()); |
| 14266 | swap(device_uuid_, other->device_uuid_); |
| 14267 | swap(component_uuid_, other->component_uuid_); |
| 14268 | } |
| 14269 | |
| 14270 | ::google::protobuf::Metadata ResetHWComponentRequest::GetMetadata() const { |
| 14271 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 14272 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 14273 | } |
| 14274 | |
| 14275 | |
| 14276 | // =================================================================== |
| 14277 | |
| 14278 | void ResetHWComponentResponse::InitAsDefaultInstance() { |
| 14279 | } |
| 14280 | class ResetHWComponentResponse::HasBitSetters { |
| 14281 | public: |
| 14282 | }; |
| 14283 | |
| 14284 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14285 | const int ResetHWComponentResponse::kStatusFieldNumber; |
| 14286 | const int ResetHWComponentResponse::kReasonFieldNumber; |
| 14287 | const int ResetHWComponentResponse::kReasonDetailFieldNumber; |
| 14288 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14289 | |
| 14290 | ResetHWComponentResponse::ResetHWComponentResponse() |
| 14291 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 14292 | SharedCtor(); |
| 14293 | // @@protoc_insertion_point(constructor:dmi.ResetHWComponentResponse) |
| 14294 | } |
| 14295 | ResetHWComponentResponse::ResetHWComponentResponse(const ResetHWComponentResponse& from) |
| 14296 | : ::google::protobuf::Message(), |
| 14297 | _internal_metadata_(nullptr) { |
| 14298 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14299 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14300 | if (from.reason_detail().size() > 0) { |
| 14301 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 14302 | } |
| 14303 | ::memcpy(&status_, &from.status_, |
| 14304 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 14305 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 14306 | // @@protoc_insertion_point(copy_constructor:dmi.ResetHWComponentResponse) |
| 14307 | } |
| 14308 | |
| 14309 | void ResetHWComponentResponse::SharedCtor() { |
| 14310 | ::google::protobuf::internal::InitSCC( |
| 14311 | &scc_info_ResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 14312 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14313 | ::memset(&status_, 0, static_cast<size_t>( |
| 14314 | reinterpret_cast<char*>(&reason_) - |
| 14315 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 14316 | } |
| 14317 | |
| 14318 | ResetHWComponentResponse::~ResetHWComponentResponse() { |
| 14319 | // @@protoc_insertion_point(destructor:dmi.ResetHWComponentResponse) |
| 14320 | SharedDtor(); |
| 14321 | } |
| 14322 | |
| 14323 | void ResetHWComponentResponse::SharedDtor() { |
| 14324 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14325 | } |
| 14326 | |
| 14327 | void ResetHWComponentResponse::SetCachedSize(int size) const { |
| 14328 | _cached_size_.Set(size); |
| 14329 | } |
| 14330 | const ResetHWComponentResponse& ResetHWComponentResponse::default_instance() { |
| 14331 | ::google::protobuf::internal::InitSCC(&::scc_info_ResetHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 14332 | return *internal_default_instance(); |
| 14333 | } |
| 14334 | |
| 14335 | |
| 14336 | void ResetHWComponentResponse::Clear() { |
| 14337 | // @@protoc_insertion_point(message_clear_start:dmi.ResetHWComponentResponse) |
| 14338 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14339 | // Prevent compiler warnings about cached_has_bits being unused |
| 14340 | (void) cached_has_bits; |
| 14341 | |
| 14342 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14343 | ::memset(&status_, 0, static_cast<size_t>( |
| 14344 | reinterpret_cast<char*>(&reason_) - |
| 14345 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 14346 | _internal_metadata_.Clear(); |
| 14347 | } |
| 14348 | |
| 14349 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14350 | const char* ResetHWComponentResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 14351 | ::google::protobuf::internal::ParseContext* ctx) { |
| 14352 | auto msg = static_cast<ResetHWComponentResponse*>(object); |
| 14353 | ::google::protobuf::int32 size; (void)size; |
| 14354 | int depth; (void)depth; |
| 14355 | ::google::protobuf::uint32 tag; |
| 14356 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 14357 | auto ptr = begin; |
| 14358 | while (ptr < end) { |
| 14359 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 14360 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14361 | switch (tag >> 3) { |
| 14362 | // .dmi.Status status = 1; |
| 14363 | case 1: { |
| 14364 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 14365 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 14366 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 14367 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14368 | break; |
| 14369 | } |
| 14370 | // .dmi.ResetHWComponentResponse.Reason reason = 2; |
| 14371 | case 2: { |
| 14372 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 14373 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 14374 | msg->set_reason(static_cast<::dmi::ResetHWComponentResponse_Reason>(val)); |
| 14375 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14376 | break; |
| 14377 | } |
| 14378 | // string reason_detail = 3; |
| 14379 | case 3: { |
| 14380 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 14381 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 14382 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14383 | ctx->extra_parse_data().SetFieldName("dmi.ResetHWComponentResponse.reason_detail"); |
| 14384 | object = msg->mutable_reason_detail(); |
| 14385 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 14386 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 14387 | goto string_till_end; |
| 14388 | } |
| 14389 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 14390 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 14391 | ptr += size; |
| 14392 | break; |
| 14393 | } |
| 14394 | default: { |
| 14395 | handle_unusual: |
| 14396 | if ((tag & 7) == 4 || tag == 0) { |
| 14397 | ctx->EndGroup(tag); |
| 14398 | return ptr; |
| 14399 | } |
| 14400 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 14401 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 14402 | ptr = res.first; |
| 14403 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 14404 | if (res.second) return ptr; |
| 14405 | } |
| 14406 | } // switch |
| 14407 | } // while |
| 14408 | return ptr; |
| 14409 | string_till_end: |
| 14410 | static_cast<::std::string*>(object)->clear(); |
| 14411 | static_cast<::std::string*>(object)->reserve(size); |
| 14412 | goto len_delim_till_end; |
| 14413 | len_delim_till_end: |
| 14414 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 14415 | {parser_till_end, object}, size); |
| 14416 | } |
| 14417 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14418 | bool ResetHWComponentResponse::MergePartialFromCodedStream( |
| 14419 | ::google::protobuf::io::CodedInputStream* input) { |
| 14420 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14421 | ::google::protobuf::uint32 tag; |
| 14422 | // @@protoc_insertion_point(parse_start:dmi.ResetHWComponentResponse) |
| 14423 | for (;;) { |
| 14424 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 14425 | tag = p.first; |
| 14426 | if (!p.second) goto handle_unusual; |
| 14427 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14428 | // .dmi.Status status = 1; |
| 14429 | case 1: { |
| 14430 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 14431 | int value = 0; |
| 14432 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14433 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 14434 | input, &value))); |
| 14435 | set_status(static_cast< ::dmi::Status >(value)); |
| 14436 | } else { |
| 14437 | goto handle_unusual; |
| 14438 | } |
| 14439 | break; |
| 14440 | } |
| 14441 | |
| 14442 | // .dmi.ResetHWComponentResponse.Reason reason = 2; |
| 14443 | case 2: { |
| 14444 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 14445 | int value = 0; |
| 14446 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 14447 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 14448 | input, &value))); |
| 14449 | set_reason(static_cast< ::dmi::ResetHWComponentResponse_Reason >(value)); |
| 14450 | } else { |
| 14451 | goto handle_unusual; |
| 14452 | } |
| 14453 | break; |
| 14454 | } |
| 14455 | |
| 14456 | // string reason_detail = 3; |
| 14457 | case 3: { |
| 14458 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 14459 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14460 | input, this->mutable_reason_detail())); |
| 14461 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14462 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 14463 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 14464 | "dmi.ResetHWComponentResponse.reason_detail")); |
| 14465 | } else { |
| 14466 | goto handle_unusual; |
| 14467 | } |
| 14468 | break; |
| 14469 | } |
| 14470 | |
| 14471 | default: { |
| 14472 | handle_unusual: |
| 14473 | if (tag == 0) { |
| 14474 | goto success; |
| 14475 | } |
| 14476 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14477 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 14478 | break; |
| 14479 | } |
| 14480 | } |
| 14481 | } |
| 14482 | success: |
| 14483 | // @@protoc_insertion_point(parse_success:dmi.ResetHWComponentResponse) |
| 14484 | return true; |
| 14485 | failure: |
| 14486 | // @@protoc_insertion_point(parse_failure:dmi.ResetHWComponentResponse) |
| 14487 | return false; |
| 14488 | #undef DO_ |
| 14489 | } |
| 14490 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14491 | |
| 14492 | void ResetHWComponentResponse::SerializeWithCachedSizes( |
| 14493 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14494 | // @@protoc_insertion_point(serialize_start:dmi.ResetHWComponentResponse) |
| 14495 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14496 | (void) cached_has_bits; |
| 14497 | |
| 14498 | // .dmi.Status status = 1; |
| 14499 | if (this->status() != 0) { |
| 14500 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 14501 | 1, this->status(), output); |
| 14502 | } |
| 14503 | |
| 14504 | // .dmi.ResetHWComponentResponse.Reason reason = 2; |
| 14505 | if (this->reason() != 0) { |
| 14506 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 14507 | 2, this->reason(), output); |
| 14508 | } |
| 14509 | |
| 14510 | // string reason_detail = 3; |
| 14511 | if (this->reason_detail().size() > 0) { |
| 14512 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14513 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 14514 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14515 | "dmi.ResetHWComponentResponse.reason_detail"); |
| 14516 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14517 | 3, this->reason_detail(), output); |
| 14518 | } |
| 14519 | |
| 14520 | if (_internal_metadata_.have_unknown_fields()) { |
| 14521 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14522 | _internal_metadata_.unknown_fields(), output); |
| 14523 | } |
| 14524 | // @@protoc_insertion_point(serialize_end:dmi.ResetHWComponentResponse) |
| 14525 | } |
| 14526 | |
| 14527 | ::google::protobuf::uint8* ResetHWComponentResponse::InternalSerializeWithCachedSizesToArray( |
| 14528 | ::google::protobuf::uint8* target) const { |
| 14529 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ResetHWComponentResponse) |
| 14530 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14531 | (void) cached_has_bits; |
| 14532 | |
| 14533 | // .dmi.Status status = 1; |
| 14534 | if (this->status() != 0) { |
| 14535 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 14536 | 1, this->status(), target); |
| 14537 | } |
| 14538 | |
| 14539 | // .dmi.ResetHWComponentResponse.Reason reason = 2; |
| 14540 | if (this->reason() != 0) { |
| 14541 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 14542 | 2, this->reason(), target); |
| 14543 | } |
| 14544 | |
| 14545 | // string reason_detail = 3; |
| 14546 | if (this->reason_detail().size() > 0) { |
| 14547 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14548 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 14549 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14550 | "dmi.ResetHWComponentResponse.reason_detail"); |
| 14551 | target = |
| 14552 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14553 | 3, this->reason_detail(), target); |
| 14554 | } |
| 14555 | |
| 14556 | if (_internal_metadata_.have_unknown_fields()) { |
| 14557 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 14558 | _internal_metadata_.unknown_fields(), target); |
| 14559 | } |
| 14560 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ResetHWComponentResponse) |
| 14561 | return target; |
| 14562 | } |
| 14563 | |
| 14564 | size_t ResetHWComponentResponse::ByteSizeLong() const { |
| 14565 | // @@protoc_insertion_point(message_byte_size_start:dmi.ResetHWComponentResponse) |
| 14566 | size_t total_size = 0; |
| 14567 | |
| 14568 | if (_internal_metadata_.have_unknown_fields()) { |
| 14569 | total_size += |
| 14570 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 14571 | _internal_metadata_.unknown_fields()); |
| 14572 | } |
| 14573 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14574 | // Prevent compiler warnings about cached_has_bits being unused |
| 14575 | (void) cached_has_bits; |
| 14576 | |
| 14577 | // string reason_detail = 3; |
| 14578 | if (this->reason_detail().size() > 0) { |
| 14579 | total_size += 1 + |
| 14580 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 14581 | this->reason_detail()); |
| 14582 | } |
| 14583 | |
| 14584 | // .dmi.Status status = 1; |
| 14585 | if (this->status() != 0) { |
| 14586 | total_size += 1 + |
| 14587 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 14588 | } |
| 14589 | |
| 14590 | // .dmi.ResetHWComponentResponse.Reason reason = 2; |
| 14591 | if (this->reason() != 0) { |
| 14592 | total_size += 1 + |
| 14593 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 14594 | } |
| 14595 | |
| 14596 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 14597 | SetCachedSize(cached_size); |
| 14598 | return total_size; |
| 14599 | } |
| 14600 | |
| 14601 | void ResetHWComponentResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 14602 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ResetHWComponentResponse) |
| 14603 | GOOGLE_DCHECK_NE(&from, this); |
| 14604 | const ResetHWComponentResponse* source = |
| 14605 | ::google::protobuf::DynamicCastToGenerated<ResetHWComponentResponse>( |
| 14606 | &from); |
| 14607 | if (source == nullptr) { |
| 14608 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ResetHWComponentResponse) |
| 14609 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 14610 | } else { |
| 14611 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ResetHWComponentResponse) |
| 14612 | MergeFrom(*source); |
| 14613 | } |
| 14614 | } |
| 14615 | |
| 14616 | void ResetHWComponentResponse::MergeFrom(const ResetHWComponentResponse& from) { |
| 14617 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ResetHWComponentResponse) |
| 14618 | GOOGLE_DCHECK_NE(&from, this); |
| 14619 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14620 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14621 | (void) cached_has_bits; |
| 14622 | |
| 14623 | if (from.reason_detail().size() > 0) { |
| 14624 | |
| 14625 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 14626 | } |
| 14627 | if (from.status() != 0) { |
| 14628 | set_status(from.status()); |
| 14629 | } |
| 14630 | if (from.reason() != 0) { |
| 14631 | set_reason(from.reason()); |
| 14632 | } |
| 14633 | } |
| 14634 | |
| 14635 | void ResetHWComponentResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 14636 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ResetHWComponentResponse) |
| 14637 | if (&from == this) return; |
| 14638 | Clear(); |
| 14639 | MergeFrom(from); |
| 14640 | } |
| 14641 | |
| 14642 | void ResetHWComponentResponse::CopyFrom(const ResetHWComponentResponse& from) { |
| 14643 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ResetHWComponentResponse) |
| 14644 | if (&from == this) return; |
| 14645 | Clear(); |
| 14646 | MergeFrom(from); |
| 14647 | } |
| 14648 | |
| 14649 | bool ResetHWComponentResponse::IsInitialized() const { |
| 14650 | return true; |
| 14651 | } |
| 14652 | |
| 14653 | void ResetHWComponentResponse::Swap(ResetHWComponentResponse* other) { |
| 14654 | if (other == this) return; |
| 14655 | InternalSwap(other); |
| 14656 | } |
| 14657 | void ResetHWComponentResponse::InternalSwap(ResetHWComponentResponse* other) { |
| 14658 | using std::swap; |
| 14659 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 14660 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 14661 | GetArenaNoVirtual()); |
| 14662 | swap(status_, other->status_); |
| 14663 | swap(reason_, other->reason_); |
| 14664 | } |
| 14665 | |
| 14666 | ::google::protobuf::Metadata ResetHWComponentResponse::GetMetadata() const { |
| 14667 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 14668 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 14669 | } |
| 14670 | |
| 14671 | |
| 14672 | // =================================================================== |
| 14673 | |
| 14674 | void EnableHWComponentRequest::InitAsDefaultInstance() { |
| 14675 | ::dmi::_EnableHWComponentRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 14676 | ::dmi::Uuid::internal_default_instance()); |
| 14677 | ::dmi::_EnableHWComponentRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 14678 | ::dmi::Uuid::internal_default_instance()); |
| 14679 | } |
| 14680 | class EnableHWComponentRequest::HasBitSetters { |
| 14681 | public: |
| 14682 | static const ::dmi::Uuid& device_uuid(const EnableHWComponentRequest* msg); |
| 14683 | static const ::dmi::Uuid& component_uuid(const EnableHWComponentRequest* msg); |
| 14684 | }; |
| 14685 | |
| 14686 | const ::dmi::Uuid& |
| 14687 | EnableHWComponentRequest::HasBitSetters::device_uuid(const EnableHWComponentRequest* msg) { |
| 14688 | return *msg->device_uuid_; |
| 14689 | } |
| 14690 | const ::dmi::Uuid& |
| 14691 | EnableHWComponentRequest::HasBitSetters::component_uuid(const EnableHWComponentRequest* msg) { |
| 14692 | return *msg->component_uuid_; |
| 14693 | } |
| 14694 | void EnableHWComponentRequest::clear_device_uuid() { |
| 14695 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 14696 | delete device_uuid_; |
| 14697 | } |
| 14698 | device_uuid_ = nullptr; |
| 14699 | } |
| 14700 | void EnableHWComponentRequest::clear_component_uuid() { |
| 14701 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 14702 | delete component_uuid_; |
| 14703 | } |
| 14704 | component_uuid_ = nullptr; |
| 14705 | } |
| 14706 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14707 | const int EnableHWComponentRequest::kDeviceUuidFieldNumber; |
| 14708 | const int EnableHWComponentRequest::kComponentUuidFieldNumber; |
| 14709 | const int EnableHWComponentRequest::kComponentNameFieldNumber; |
| 14710 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 14711 | |
| 14712 | EnableHWComponentRequest::EnableHWComponentRequest() |
| 14713 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 14714 | SharedCtor(); |
| 14715 | // @@protoc_insertion_point(constructor:dmi.EnableHWComponentRequest) |
| 14716 | } |
| 14717 | EnableHWComponentRequest::EnableHWComponentRequest(const EnableHWComponentRequest& from) |
| 14718 | : ::google::protobuf::Message(), |
| 14719 | _internal_metadata_(nullptr) { |
| 14720 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 14721 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14722 | if (from.component_name().size() > 0) { |
| 14723 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 14724 | } |
| 14725 | if (from.has_device_uuid()) { |
| 14726 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 14727 | } else { |
| 14728 | device_uuid_ = nullptr; |
| 14729 | } |
| 14730 | if (from.has_component_uuid()) { |
| 14731 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 14732 | } else { |
| 14733 | component_uuid_ = nullptr; |
| 14734 | } |
| 14735 | // @@protoc_insertion_point(copy_constructor:dmi.EnableHWComponentRequest) |
| 14736 | } |
| 14737 | |
| 14738 | void EnableHWComponentRequest::SharedCtor() { |
| 14739 | ::google::protobuf::internal::InitSCC( |
| 14740 | &scc_info_EnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 14741 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14742 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 14743 | reinterpret_cast<char*>(&component_uuid_) - |
| 14744 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 14745 | } |
| 14746 | |
| 14747 | EnableHWComponentRequest::~EnableHWComponentRequest() { |
| 14748 | // @@protoc_insertion_point(destructor:dmi.EnableHWComponentRequest) |
| 14749 | SharedDtor(); |
| 14750 | } |
| 14751 | |
| 14752 | void EnableHWComponentRequest::SharedDtor() { |
| 14753 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14754 | if (this != internal_default_instance()) delete device_uuid_; |
| 14755 | if (this != internal_default_instance()) delete component_uuid_; |
| 14756 | } |
| 14757 | |
| 14758 | void EnableHWComponentRequest::SetCachedSize(int size) const { |
| 14759 | _cached_size_.Set(size); |
| 14760 | } |
| 14761 | const EnableHWComponentRequest& EnableHWComponentRequest::default_instance() { |
| 14762 | ::google::protobuf::internal::InitSCC(&::scc_info_EnableHWComponentRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 14763 | return *internal_default_instance(); |
| 14764 | } |
| 14765 | |
| 14766 | |
| 14767 | void EnableHWComponentRequest::Clear() { |
| 14768 | // @@protoc_insertion_point(message_clear_start:dmi.EnableHWComponentRequest) |
| 14769 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14770 | // Prevent compiler warnings about cached_has_bits being unused |
| 14771 | (void) cached_has_bits; |
| 14772 | |
| 14773 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 14774 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 14775 | delete device_uuid_; |
| 14776 | } |
| 14777 | device_uuid_ = nullptr; |
| 14778 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 14779 | delete component_uuid_; |
| 14780 | } |
| 14781 | component_uuid_ = nullptr; |
| 14782 | _internal_metadata_.Clear(); |
| 14783 | } |
| 14784 | |
| 14785 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14786 | const char* EnableHWComponentRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 14787 | ::google::protobuf::internal::ParseContext* ctx) { |
| 14788 | auto msg = static_cast<EnableHWComponentRequest*>(object); |
| 14789 | ::google::protobuf::int32 size; (void)size; |
| 14790 | int depth; (void)depth; |
| 14791 | ::google::protobuf::uint32 tag; |
| 14792 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 14793 | auto ptr = begin; |
| 14794 | while (ptr < end) { |
| 14795 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 14796 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14797 | switch (tag >> 3) { |
| 14798 | // .dmi.Uuid device_uuid = 1; |
| 14799 | case 1: { |
| 14800 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 14801 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 14802 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14803 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 14804 | object = msg->mutable_device_uuid(); |
| 14805 | if (size > end - ptr) goto len_delim_till_end; |
| 14806 | ptr += size; |
| 14807 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 14808 | {parser_till_end, object}, ptr - size, ptr)); |
| 14809 | break; |
| 14810 | } |
| 14811 | // .dmi.Uuid component_uuid = 2; |
| 14812 | case 2: { |
| 14813 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 14814 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 14815 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14816 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 14817 | object = msg->mutable_component_uuid(); |
| 14818 | if (size > end - ptr) goto len_delim_till_end; |
| 14819 | ptr += size; |
| 14820 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 14821 | {parser_till_end, object}, ptr - size, ptr)); |
| 14822 | break; |
| 14823 | } |
| 14824 | // string component_name = 3; |
| 14825 | case 3: { |
| 14826 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 14827 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 14828 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 14829 | ctx->extra_parse_data().SetFieldName("dmi.EnableHWComponentRequest.component_name"); |
| 14830 | object = msg->mutable_component_name(); |
| 14831 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 14832 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 14833 | goto string_till_end; |
| 14834 | } |
| 14835 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 14836 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 14837 | ptr += size; |
| 14838 | break; |
| 14839 | } |
| 14840 | default: { |
| 14841 | handle_unusual: |
| 14842 | if ((tag & 7) == 4 || tag == 0) { |
| 14843 | ctx->EndGroup(tag); |
| 14844 | return ptr; |
| 14845 | } |
| 14846 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 14847 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 14848 | ptr = res.first; |
| 14849 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 14850 | if (res.second) return ptr; |
| 14851 | } |
| 14852 | } // switch |
| 14853 | } // while |
| 14854 | return ptr; |
| 14855 | string_till_end: |
| 14856 | static_cast<::std::string*>(object)->clear(); |
| 14857 | static_cast<::std::string*>(object)->reserve(size); |
| 14858 | goto len_delim_till_end; |
| 14859 | len_delim_till_end: |
| 14860 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 14861 | {parser_till_end, object}, size); |
| 14862 | } |
| 14863 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14864 | bool EnableHWComponentRequest::MergePartialFromCodedStream( |
| 14865 | ::google::protobuf::io::CodedInputStream* input) { |
| 14866 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 14867 | ::google::protobuf::uint32 tag; |
| 14868 | // @@protoc_insertion_point(parse_start:dmi.EnableHWComponentRequest) |
| 14869 | for (;;) { |
| 14870 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 14871 | tag = p.first; |
| 14872 | if (!p.second) goto handle_unusual; |
| 14873 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 14874 | // .dmi.Uuid device_uuid = 1; |
| 14875 | case 1: { |
| 14876 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 14877 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 14878 | input, mutable_device_uuid())); |
| 14879 | } else { |
| 14880 | goto handle_unusual; |
| 14881 | } |
| 14882 | break; |
| 14883 | } |
| 14884 | |
| 14885 | // .dmi.Uuid component_uuid = 2; |
| 14886 | case 2: { |
| 14887 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 14888 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 14889 | input, mutable_component_uuid())); |
| 14890 | } else { |
| 14891 | goto handle_unusual; |
| 14892 | } |
| 14893 | break; |
| 14894 | } |
| 14895 | |
| 14896 | // string component_name = 3; |
| 14897 | case 3: { |
| 14898 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 14899 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 14900 | input, this->mutable_component_name())); |
| 14901 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14902 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14903 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 14904 | "dmi.EnableHWComponentRequest.component_name")); |
| 14905 | } else { |
| 14906 | goto handle_unusual; |
| 14907 | } |
| 14908 | break; |
| 14909 | } |
| 14910 | |
| 14911 | default: { |
| 14912 | handle_unusual: |
| 14913 | if (tag == 0) { |
| 14914 | goto success; |
| 14915 | } |
| 14916 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 14917 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 14918 | break; |
| 14919 | } |
| 14920 | } |
| 14921 | } |
| 14922 | success: |
| 14923 | // @@protoc_insertion_point(parse_success:dmi.EnableHWComponentRequest) |
| 14924 | return true; |
| 14925 | failure: |
| 14926 | // @@protoc_insertion_point(parse_failure:dmi.EnableHWComponentRequest) |
| 14927 | return false; |
| 14928 | #undef DO_ |
| 14929 | } |
| 14930 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 14931 | |
| 14932 | void EnableHWComponentRequest::SerializeWithCachedSizes( |
| 14933 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 14934 | // @@protoc_insertion_point(serialize_start:dmi.EnableHWComponentRequest) |
| 14935 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14936 | (void) cached_has_bits; |
| 14937 | |
| 14938 | // .dmi.Uuid device_uuid = 1; |
| 14939 | if (this->has_device_uuid()) { |
| 14940 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14941 | 1, HasBitSetters::device_uuid(this), output); |
| 14942 | } |
| 14943 | |
| 14944 | // .dmi.Uuid component_uuid = 2; |
| 14945 | if (this->has_component_uuid()) { |
| 14946 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 14947 | 2, HasBitSetters::component_uuid(this), output); |
| 14948 | } |
| 14949 | |
| 14950 | // string component_name = 3; |
| 14951 | if (this->component_name().size() > 0) { |
| 14952 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14953 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14954 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14955 | "dmi.EnableHWComponentRequest.component_name"); |
| 14956 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 14957 | 3, this->component_name(), output); |
| 14958 | } |
| 14959 | |
| 14960 | if (_internal_metadata_.have_unknown_fields()) { |
| 14961 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 14962 | _internal_metadata_.unknown_fields(), output); |
| 14963 | } |
| 14964 | // @@protoc_insertion_point(serialize_end:dmi.EnableHWComponentRequest) |
| 14965 | } |
| 14966 | |
| 14967 | ::google::protobuf::uint8* EnableHWComponentRequest::InternalSerializeWithCachedSizesToArray( |
| 14968 | ::google::protobuf::uint8* target) const { |
| 14969 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EnableHWComponentRequest) |
| 14970 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 14971 | (void) cached_has_bits; |
| 14972 | |
| 14973 | // .dmi.Uuid device_uuid = 1; |
| 14974 | if (this->has_device_uuid()) { |
| 14975 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14976 | InternalWriteMessageToArray( |
| 14977 | 1, HasBitSetters::device_uuid(this), target); |
| 14978 | } |
| 14979 | |
| 14980 | // .dmi.Uuid component_uuid = 2; |
| 14981 | if (this->has_component_uuid()) { |
| 14982 | target = ::google::protobuf::internal::WireFormatLite:: |
| 14983 | InternalWriteMessageToArray( |
| 14984 | 2, HasBitSetters::component_uuid(this), target); |
| 14985 | } |
| 14986 | |
| 14987 | // string component_name = 3; |
| 14988 | if (this->component_name().size() > 0) { |
| 14989 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 14990 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 14991 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 14992 | "dmi.EnableHWComponentRequest.component_name"); |
| 14993 | target = |
| 14994 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 14995 | 3, this->component_name(), target); |
| 14996 | } |
| 14997 | |
| 14998 | if (_internal_metadata_.have_unknown_fields()) { |
| 14999 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 15000 | _internal_metadata_.unknown_fields(), target); |
| 15001 | } |
| 15002 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EnableHWComponentRequest) |
| 15003 | return target; |
| 15004 | } |
| 15005 | |
| 15006 | size_t EnableHWComponentRequest::ByteSizeLong() const { |
| 15007 | // @@protoc_insertion_point(message_byte_size_start:dmi.EnableHWComponentRequest) |
| 15008 | size_t total_size = 0; |
| 15009 | |
| 15010 | if (_internal_metadata_.have_unknown_fields()) { |
| 15011 | total_size += |
| 15012 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 15013 | _internal_metadata_.unknown_fields()); |
| 15014 | } |
| 15015 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15016 | // Prevent compiler warnings about cached_has_bits being unused |
| 15017 | (void) cached_has_bits; |
| 15018 | |
| 15019 | // string component_name = 3; |
| 15020 | if (this->component_name().size() > 0) { |
| 15021 | total_size += 1 + |
| 15022 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 15023 | this->component_name()); |
| 15024 | } |
| 15025 | |
| 15026 | // .dmi.Uuid device_uuid = 1; |
| 15027 | if (this->has_device_uuid()) { |
| 15028 | total_size += 1 + |
| 15029 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 15030 | *device_uuid_); |
| 15031 | } |
| 15032 | |
| 15033 | // .dmi.Uuid component_uuid = 2; |
| 15034 | if (this->has_component_uuid()) { |
| 15035 | total_size += 1 + |
| 15036 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 15037 | *component_uuid_); |
| 15038 | } |
| 15039 | |
| 15040 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 15041 | SetCachedSize(cached_size); |
| 15042 | return total_size; |
| 15043 | } |
| 15044 | |
| 15045 | void EnableHWComponentRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 15046 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EnableHWComponentRequest) |
| 15047 | GOOGLE_DCHECK_NE(&from, this); |
| 15048 | const EnableHWComponentRequest* source = |
| 15049 | ::google::protobuf::DynamicCastToGenerated<EnableHWComponentRequest>( |
| 15050 | &from); |
| 15051 | if (source == nullptr) { |
| 15052 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EnableHWComponentRequest) |
| 15053 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 15054 | } else { |
| 15055 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EnableHWComponentRequest) |
| 15056 | MergeFrom(*source); |
| 15057 | } |
| 15058 | } |
| 15059 | |
| 15060 | void EnableHWComponentRequest::MergeFrom(const EnableHWComponentRequest& from) { |
| 15061 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EnableHWComponentRequest) |
| 15062 | GOOGLE_DCHECK_NE(&from, this); |
| 15063 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15064 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15065 | (void) cached_has_bits; |
| 15066 | |
| 15067 | if (from.component_name().size() > 0) { |
| 15068 | |
| 15069 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 15070 | } |
| 15071 | if (from.has_device_uuid()) { |
| 15072 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 15073 | } |
| 15074 | if (from.has_component_uuid()) { |
| 15075 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 15076 | } |
| 15077 | } |
| 15078 | |
| 15079 | void EnableHWComponentRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 15080 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EnableHWComponentRequest) |
| 15081 | if (&from == this) return; |
| 15082 | Clear(); |
| 15083 | MergeFrom(from); |
| 15084 | } |
| 15085 | |
| 15086 | void EnableHWComponentRequest::CopyFrom(const EnableHWComponentRequest& from) { |
| 15087 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EnableHWComponentRequest) |
| 15088 | if (&from == this) return; |
| 15089 | Clear(); |
| 15090 | MergeFrom(from); |
| 15091 | } |
| 15092 | |
| 15093 | bool EnableHWComponentRequest::IsInitialized() const { |
| 15094 | return true; |
| 15095 | } |
| 15096 | |
| 15097 | void EnableHWComponentRequest::Swap(EnableHWComponentRequest* other) { |
| 15098 | if (other == this) return; |
| 15099 | InternalSwap(other); |
| 15100 | } |
| 15101 | void EnableHWComponentRequest::InternalSwap(EnableHWComponentRequest* other) { |
| 15102 | using std::swap; |
| 15103 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 15104 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15105 | GetArenaNoVirtual()); |
| 15106 | swap(device_uuid_, other->device_uuid_); |
| 15107 | swap(component_uuid_, other->component_uuid_); |
| 15108 | } |
| 15109 | |
| 15110 | ::google::protobuf::Metadata EnableHWComponentRequest::GetMetadata() const { |
| 15111 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 15112 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 15113 | } |
| 15114 | |
| 15115 | |
| 15116 | // =================================================================== |
| 15117 | |
| 15118 | void EnableHWComponentResponse::InitAsDefaultInstance() { |
| 15119 | } |
| 15120 | class EnableHWComponentResponse::HasBitSetters { |
| 15121 | public: |
| 15122 | }; |
| 15123 | |
| 15124 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15125 | const int EnableHWComponentResponse::kStatusFieldNumber; |
| 15126 | const int EnableHWComponentResponse::kReasonFieldNumber; |
| 15127 | const int EnableHWComponentResponse::kReasonDetailFieldNumber; |
| 15128 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 15129 | |
| 15130 | EnableHWComponentResponse::EnableHWComponentResponse() |
| 15131 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 15132 | SharedCtor(); |
| 15133 | // @@protoc_insertion_point(constructor:dmi.EnableHWComponentResponse) |
| 15134 | } |
| 15135 | EnableHWComponentResponse::EnableHWComponentResponse(const EnableHWComponentResponse& from) |
| 15136 | : ::google::protobuf::Message(), |
| 15137 | _internal_metadata_(nullptr) { |
| 15138 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15139 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15140 | if (from.reason_detail().size() > 0) { |
| 15141 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 15142 | } |
| 15143 | ::memcpy(&status_, &from.status_, |
| 15144 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 15145 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 15146 | // @@protoc_insertion_point(copy_constructor:dmi.EnableHWComponentResponse) |
| 15147 | } |
| 15148 | |
| 15149 | void EnableHWComponentResponse::SharedCtor() { |
| 15150 | ::google::protobuf::internal::InitSCC( |
| 15151 | &scc_info_EnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 15152 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15153 | ::memset(&status_, 0, static_cast<size_t>( |
| 15154 | reinterpret_cast<char*>(&reason_) - |
| 15155 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 15156 | } |
| 15157 | |
| 15158 | EnableHWComponentResponse::~EnableHWComponentResponse() { |
| 15159 | // @@protoc_insertion_point(destructor:dmi.EnableHWComponentResponse) |
| 15160 | SharedDtor(); |
| 15161 | } |
| 15162 | |
| 15163 | void EnableHWComponentResponse::SharedDtor() { |
| 15164 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15165 | } |
| 15166 | |
| 15167 | void EnableHWComponentResponse::SetCachedSize(int size) const { |
| 15168 | _cached_size_.Set(size); |
| 15169 | } |
| 15170 | const EnableHWComponentResponse& EnableHWComponentResponse::default_instance() { |
| 15171 | ::google::protobuf::internal::InitSCC(&::scc_info_EnableHWComponentResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 15172 | return *internal_default_instance(); |
| 15173 | } |
| 15174 | |
| 15175 | |
| 15176 | void EnableHWComponentResponse::Clear() { |
| 15177 | // @@protoc_insertion_point(message_clear_start:dmi.EnableHWComponentResponse) |
| 15178 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15179 | // Prevent compiler warnings about cached_has_bits being unused |
| 15180 | (void) cached_has_bits; |
| 15181 | |
| 15182 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 15183 | ::memset(&status_, 0, static_cast<size_t>( |
| 15184 | reinterpret_cast<char*>(&reason_) - |
| 15185 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 15186 | _internal_metadata_.Clear(); |
| 15187 | } |
| 15188 | |
| 15189 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 15190 | const char* EnableHWComponentResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 15191 | ::google::protobuf::internal::ParseContext* ctx) { |
| 15192 | auto msg = static_cast<EnableHWComponentResponse*>(object); |
| 15193 | ::google::protobuf::int32 size; (void)size; |
| 15194 | int depth; (void)depth; |
| 15195 | ::google::protobuf::uint32 tag; |
| 15196 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 15197 | auto ptr = begin; |
| 15198 | while (ptr < end) { |
| 15199 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 15200 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 15201 | switch (tag >> 3) { |
| 15202 | // .dmi.Status status = 1; |
| 15203 | case 1: { |
| 15204 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 15205 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 15206 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 15207 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 15208 | break; |
| 15209 | } |
| 15210 | // .dmi.EnableHWComponentResponse.Reason reason = 2; |
| 15211 | case 2: { |
| 15212 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 15213 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 15214 | msg->set_reason(static_cast<::dmi::EnableHWComponentResponse_Reason>(val)); |
| 15215 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 15216 | break; |
| 15217 | } |
| 15218 | // string reason_detail = 3; |
| 15219 | case 3: { |
| 15220 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 15221 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 15222 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 15223 | ctx->extra_parse_data().SetFieldName("dmi.EnableHWComponentResponse.reason_detail"); |
| 15224 | object = msg->mutable_reason_detail(); |
| 15225 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 15226 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 15227 | goto string_till_end; |
| 15228 | } |
| 15229 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 15230 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 15231 | ptr += size; |
| 15232 | break; |
| 15233 | } |
| 15234 | default: { |
| 15235 | handle_unusual: |
| 15236 | if ((tag & 7) == 4 || tag == 0) { |
| 15237 | ctx->EndGroup(tag); |
| 15238 | return ptr; |
| 15239 | } |
| 15240 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 15241 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 15242 | ptr = res.first; |
| 15243 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 15244 | if (res.second) return ptr; |
| 15245 | } |
| 15246 | } // switch |
| 15247 | } // while |
| 15248 | return ptr; |
| 15249 | string_till_end: |
| 15250 | static_cast<::std::string*>(object)->clear(); |
| 15251 | static_cast<::std::string*>(object)->reserve(size); |
| 15252 | goto len_delim_till_end; |
| 15253 | len_delim_till_end: |
| 15254 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 15255 | {parser_till_end, object}, size); |
| 15256 | } |
| 15257 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 15258 | bool EnableHWComponentResponse::MergePartialFromCodedStream( |
| 15259 | ::google::protobuf::io::CodedInputStream* input) { |
| 15260 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 15261 | ::google::protobuf::uint32 tag; |
| 15262 | // @@protoc_insertion_point(parse_start:dmi.EnableHWComponentResponse) |
| 15263 | for (;;) { |
| 15264 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 15265 | tag = p.first; |
| 15266 | if (!p.second) goto handle_unusual; |
| 15267 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 15268 | // .dmi.Status status = 1; |
| 15269 | case 1: { |
| 15270 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 15271 | int value = 0; |
| 15272 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 15273 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 15274 | input, &value))); |
| 15275 | set_status(static_cast< ::dmi::Status >(value)); |
| 15276 | } else { |
| 15277 | goto handle_unusual; |
| 15278 | } |
| 15279 | break; |
| 15280 | } |
| 15281 | |
| 15282 | // .dmi.EnableHWComponentResponse.Reason reason = 2; |
| 15283 | case 2: { |
| 15284 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 15285 | int value = 0; |
| 15286 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 15287 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 15288 | input, &value))); |
| 15289 | set_reason(static_cast< ::dmi::EnableHWComponentResponse_Reason >(value)); |
| 15290 | } else { |
| 15291 | goto handle_unusual; |
| 15292 | } |
| 15293 | break; |
| 15294 | } |
| 15295 | |
| 15296 | // string reason_detail = 3; |
| 15297 | case 3: { |
| 15298 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 15299 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 15300 | input, this->mutable_reason_detail())); |
| 15301 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 15302 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 15303 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 15304 | "dmi.EnableHWComponentResponse.reason_detail")); |
| 15305 | } else { |
| 15306 | goto handle_unusual; |
| 15307 | } |
| 15308 | break; |
| 15309 | } |
| 15310 | |
| 15311 | default: { |
| 15312 | handle_unusual: |
| 15313 | if (tag == 0) { |
| 15314 | goto success; |
| 15315 | } |
| 15316 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 15317 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 15318 | break; |
| 15319 | } |
| 15320 | } |
| 15321 | } |
| 15322 | success: |
| 15323 | // @@protoc_insertion_point(parse_success:dmi.EnableHWComponentResponse) |
| 15324 | return true; |
| 15325 | failure: |
| 15326 | // @@protoc_insertion_point(parse_failure:dmi.EnableHWComponentResponse) |
| 15327 | return false; |
| 15328 | #undef DO_ |
| 15329 | } |
| 15330 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 15331 | |
| 15332 | void EnableHWComponentResponse::SerializeWithCachedSizes( |
| 15333 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 15334 | // @@protoc_insertion_point(serialize_start:dmi.EnableHWComponentResponse) |
| 15335 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15336 | (void) cached_has_bits; |
| 15337 | |
| 15338 | // .dmi.Status status = 1; |
| 15339 | if (this->status() != 0) { |
| 15340 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 15341 | 1, this->status(), output); |
| 15342 | } |
| 15343 | |
| 15344 | // .dmi.EnableHWComponentResponse.Reason reason = 2; |
| 15345 | if (this->reason() != 0) { |
| 15346 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 15347 | 2, this->reason(), output); |
| 15348 | } |
| 15349 | |
| 15350 | // string reason_detail = 3; |
| 15351 | if (this->reason_detail().size() > 0) { |
| 15352 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 15353 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 15354 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 15355 | "dmi.EnableHWComponentResponse.reason_detail"); |
| 15356 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 15357 | 3, this->reason_detail(), output); |
| 15358 | } |
| 15359 | |
| 15360 | if (_internal_metadata_.have_unknown_fields()) { |
| 15361 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 15362 | _internal_metadata_.unknown_fields(), output); |
| 15363 | } |
| 15364 | // @@protoc_insertion_point(serialize_end:dmi.EnableHWComponentResponse) |
| 15365 | } |
| 15366 | |
| 15367 | ::google::protobuf::uint8* EnableHWComponentResponse::InternalSerializeWithCachedSizesToArray( |
| 15368 | ::google::protobuf::uint8* target) const { |
| 15369 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EnableHWComponentResponse) |
| 15370 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15371 | (void) cached_has_bits; |
| 15372 | |
| 15373 | // .dmi.Status status = 1; |
| 15374 | if (this->status() != 0) { |
| 15375 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 15376 | 1, this->status(), target); |
| 15377 | } |
| 15378 | |
| 15379 | // .dmi.EnableHWComponentResponse.Reason reason = 2; |
| 15380 | if (this->reason() != 0) { |
| 15381 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 15382 | 2, this->reason(), target); |
| 15383 | } |
| 15384 | |
| 15385 | // string reason_detail = 3; |
| 15386 | if (this->reason_detail().size() > 0) { |
| 15387 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 15388 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 15389 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 15390 | "dmi.EnableHWComponentResponse.reason_detail"); |
| 15391 | target = |
| 15392 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 15393 | 3, this->reason_detail(), target); |
| 15394 | } |
| 15395 | |
| 15396 | if (_internal_metadata_.have_unknown_fields()) { |
| 15397 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 15398 | _internal_metadata_.unknown_fields(), target); |
| 15399 | } |
| 15400 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EnableHWComponentResponse) |
| 15401 | return target; |
| 15402 | } |
| 15403 | |
| 15404 | size_t EnableHWComponentResponse::ByteSizeLong() const { |
| 15405 | // @@protoc_insertion_point(message_byte_size_start:dmi.EnableHWComponentResponse) |
| 15406 | size_t total_size = 0; |
| 15407 | |
| 15408 | if (_internal_metadata_.have_unknown_fields()) { |
| 15409 | total_size += |
| 15410 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 15411 | _internal_metadata_.unknown_fields()); |
| 15412 | } |
| 15413 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15414 | // Prevent compiler warnings about cached_has_bits being unused |
| 15415 | (void) cached_has_bits; |
| 15416 | |
| 15417 | // string reason_detail = 3; |
| 15418 | if (this->reason_detail().size() > 0) { |
| 15419 | total_size += 1 + |
| 15420 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 15421 | this->reason_detail()); |
| 15422 | } |
| 15423 | |
| 15424 | // .dmi.Status status = 1; |
| 15425 | if (this->status() != 0) { |
| 15426 | total_size += 1 + |
| 15427 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 15428 | } |
| 15429 | |
| 15430 | // .dmi.EnableHWComponentResponse.Reason reason = 2; |
| 15431 | if (this->reason() != 0) { |
| 15432 | total_size += 1 + |
| 15433 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 15434 | } |
| 15435 | |
| 15436 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 15437 | SetCachedSize(cached_size); |
| 15438 | return total_size; |
| 15439 | } |
| 15440 | |
| 15441 | void EnableHWComponentResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 15442 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EnableHWComponentResponse) |
| 15443 | GOOGLE_DCHECK_NE(&from, this); |
| 15444 | const EnableHWComponentResponse* source = |
| 15445 | ::google::protobuf::DynamicCastToGenerated<EnableHWComponentResponse>( |
| 15446 | &from); |
| 15447 | if (source == nullptr) { |
| 15448 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EnableHWComponentResponse) |
| 15449 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 15450 | } else { |
| 15451 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EnableHWComponentResponse) |
| 15452 | MergeFrom(*source); |
| 15453 | } |
| 15454 | } |
| 15455 | |
| 15456 | void EnableHWComponentResponse::MergeFrom(const EnableHWComponentResponse& from) { |
| 15457 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EnableHWComponentResponse) |
| 15458 | GOOGLE_DCHECK_NE(&from, this); |
| 15459 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 15460 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 15461 | (void) cached_has_bits; |
| 15462 | |
| 15463 | if (from.reason_detail().size() > 0) { |
| 15464 | |
| 15465 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 15466 | } |
| 15467 | if (from.status() != 0) { |
| 15468 | set_status(from.status()); |
| 15469 | } |
| 15470 | if (from.reason() != 0) { |
| 15471 | set_reason(from.reason()); |
| 15472 | } |
| 15473 | } |
| 15474 | |
| 15475 | void EnableHWComponentResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 15476 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EnableHWComponentResponse) |
| 15477 | if (&from == this) return; |
| 15478 | Clear(); |
| 15479 | MergeFrom(from); |
| 15480 | } |
| 15481 | |
| 15482 | void EnableHWComponentResponse::CopyFrom(const EnableHWComponentResponse& from) { |
| 15483 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EnableHWComponentResponse) |
| 15484 | if (&from == this) return; |
| 15485 | Clear(); |
| 15486 | MergeFrom(from); |
| 15487 | } |
| 15488 | |
| 15489 | bool EnableHWComponentResponse::IsInitialized() const { |
| 15490 | return true; |
| 15491 | } |
| 15492 | |
| 15493 | void EnableHWComponentResponse::Swap(EnableHWComponentResponse* other) { |
| 15494 | if (other == this) return; |
| 15495 | InternalSwap(other); |
| 15496 | } |
| 15497 | void EnableHWComponentResponse::InternalSwap(EnableHWComponentResponse* other) { |
| 15498 | using std::swap; |
| 15499 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 15500 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 15501 | GetArenaNoVirtual()); |
| 15502 | swap(status_, other->status_); |
| 15503 | swap(reason_, other->reason_); |
| 15504 | } |
| 15505 | |
| 15506 | ::google::protobuf::Metadata EnableHWComponentResponse::GetMetadata() const { |
| 15507 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 15508 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 15509 | } |
| 15510 | |
| 15511 | |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 15512 | // @@protoc_insertion_point(namespace_scope) |
| 15513 | } // namespace dmi |
| 15514 | namespace google { |
| 15515 | namespace protobuf { |
| 15516 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) { |
| 15517 | return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena); |
| 15518 | } |
| 15519 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) { |
| 15520 | return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena); |
| 15521 | } |
| 15522 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) { |
| 15523 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena); |
| 15524 | } |
| 15525 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) { |
| 15526 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena); |
| 15527 | } |
| 15528 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) { |
| 15529 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena); |
| 15530 | } |
| 15531 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) { |
| 15532 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena); |
| 15533 | } |
| 15534 | template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) { |
| 15535 | return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena); |
| 15536 | } |
| 15537 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) { |
| 15538 | return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena); |
| 15539 | } |
| 15540 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) { |
| 15541 | return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena); |
| 15542 | } |
| 15543 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) { |
| 15544 | return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena); |
| 15545 | } |
| 15546 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) { |
| 15547 | return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena); |
| 15548 | } |
| 15549 | template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) { |
| 15550 | return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena); |
| 15551 | } |
| 15552 | template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) { |
| 15553 | return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena); |
| 15554 | } |
| 15555 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) { |
| 15556 | return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena); |
| 15557 | } |
| 15558 | template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) { |
| 15559 | return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena); |
| 15560 | } |
| 15561 | template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) { |
| 15562 | return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena); |
| 15563 | } |
| 15564 | template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) { |
| 15565 | return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena); |
| 15566 | } |
| 15567 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) { |
| 15568 | return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena); |
| 15569 | } |
| 15570 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) { |
| 15571 | return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena); |
| 15572 | } |
| 15573 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) { |
| 15574 | return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena); |
| 15575 | } |
| 15576 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) { |
| 15577 | return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena); |
| 15578 | } |
| 15579 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) { |
| 15580 | return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena); |
| 15581 | } |
| amit.ghosh | 9318351 | 2024-05-28 22:37:27 +0200 | [diff] [blame] | 15582 | template<> PROTOBUF_NOINLINE ::dmi::SetDmLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetDmLogLevelRequest >(Arena* arena) { |
| 15583 | return Arena::CreateInternal< ::dmi::SetDmLogLevelRequest >(arena); |
| 15584 | } |
| 15585 | template<> PROTOBUF_NOINLINE ::dmi::SetDmLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetDmLogLevelResponse >(Arena* arena) { |
| 15586 | return Arena::CreateInternal< ::dmi::SetDmLogLevelResponse >(arena); |
| 15587 | } |
| 15588 | template<> PROTOBUF_NOINLINE ::dmi::GetDmLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetDmLogLevelRequest >(Arena* arena) { |
| 15589 | return Arena::CreateInternal< ::dmi::GetDmLogLevelRequest >(arena); |
| 15590 | } |
| 15591 | template<> PROTOBUF_NOINLINE ::dmi::GetDmLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetDmLogLevelResponse >(Arena* arena) { |
| 15592 | return Arena::CreateInternal< ::dmi::GetDmLogLevelResponse >(arena); |
| 15593 | } |
| Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 15594 | template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) { |
| 15595 | return Arena::CreateInternal< ::dmi::Heartbeat >(arena); |
| 15596 | } |
| Chandrakanth Nalkudre Gowda | 2f6066c | 2021-05-13 12:36:32 +0530 | [diff] [blame] | 15597 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceRequest* Arena::CreateMaybeMessage< ::dmi::RebootDeviceRequest >(Arena* arena) { |
| 15598 | return Arena::CreateInternal< ::dmi::RebootDeviceRequest >(arena); |
| 15599 | } |
| 15600 | template<> PROTOBUF_NOINLINE ::dmi::RebootDeviceResponse* Arena::CreateMaybeMessage< ::dmi::RebootDeviceResponse >(Arena* arena) { |
| 15601 | return Arena::CreateInternal< ::dmi::RebootDeviceResponse >(arena); |
| 15602 | } |
| Amit Ghosh | e45d997 | 2025-06-26 14:52:48 +0200 | [diff] [blame] | 15603 | template<> PROTOBUF_NOINLINE ::dmi::DisableHWComponentRequest* Arena::CreateMaybeMessage< ::dmi::DisableHWComponentRequest >(Arena* arena) { |
| 15604 | return Arena::CreateInternal< ::dmi::DisableHWComponentRequest >(arena); |
| 15605 | } |
| 15606 | template<> PROTOBUF_NOINLINE ::dmi::DisableHWComponentResponse* Arena::CreateMaybeMessage< ::dmi::DisableHWComponentResponse >(Arena* arena) { |
| 15607 | return Arena::CreateInternal< ::dmi::DisableHWComponentResponse >(arena); |
| 15608 | } |
| 15609 | template<> PROTOBUF_NOINLINE ::dmi::ResetHWComponentRequest* Arena::CreateMaybeMessage< ::dmi::ResetHWComponentRequest >(Arena* arena) { |
| 15610 | return Arena::CreateInternal< ::dmi::ResetHWComponentRequest >(arena); |
| 15611 | } |
| 15612 | template<> PROTOBUF_NOINLINE ::dmi::ResetHWComponentResponse* Arena::CreateMaybeMessage< ::dmi::ResetHWComponentResponse >(Arena* arena) { |
| 15613 | return Arena::CreateInternal< ::dmi::ResetHWComponentResponse >(arena); |
| 15614 | } |
| 15615 | template<> PROTOBUF_NOINLINE ::dmi::EnableHWComponentRequest* Arena::CreateMaybeMessage< ::dmi::EnableHWComponentRequest >(Arena* arena) { |
| 15616 | return Arena::CreateInternal< ::dmi::EnableHWComponentRequest >(arena); |
| 15617 | } |
| 15618 | template<> PROTOBUF_NOINLINE ::dmi::EnableHWComponentResponse* Arena::CreateMaybeMessage< ::dmi::EnableHWComponentResponse >(Arena* arena) { |
| 15619 | return Arena::CreateInternal< ::dmi::EnableHWComponentResponse >(arena); |
| 15620 | } |
| Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 15621 | } // namespace protobuf |
| 15622 | } // namespace google |
| 15623 | |
| 15624 | // @@protoc_insertion_point(global_scope) |
| 15625 | #include <google/protobuf/port_undef.inc> |