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; |
| 21 | extern PROTOBUF_INTERNAL_EXPORT_dmi_2fhw_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ModifiableComponent_dmi_2fhw_2eproto; |
| 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_; |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 114 | class HeartbeatDefaultTypeInternal { |
| 115 | public: |
| 116 | ::google::protobuf::internal::ExplicitlyConstructed<Heartbeat> _instance; |
| 117 | } _Heartbeat_default_instance_; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 118 | } // namespace dmi |
| 119 | static void InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 120 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 121 | |
| 122 | { |
| 123 | void* ptr = &::dmi::_PhysicalInventoryRequest_default_instance_; |
| 124 | new (ptr) ::dmi::PhysicalInventoryRequest(); |
| 125 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 126 | } |
| 127 | ::dmi::PhysicalInventoryRequest::InitAsDefaultInstance(); |
| 128 | } |
| 129 | |
| 130 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 131 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 132 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 133 | |
| 134 | static void InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 135 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 136 | |
| 137 | { |
| 138 | void* ptr = &::dmi::_PhysicalInventoryResponse_default_instance_; |
| 139 | new (ptr) ::dmi::PhysicalInventoryResponse(); |
| 140 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 141 | } |
| 142 | ::dmi::PhysicalInventoryResponse::InitAsDefaultInstance(); |
| 143 | } |
| 144 | |
| 145 | ::google::protobuf::internal::SCCInfo<1> scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 146 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 147 | &scc_info_Hardware_dmi_2fhw_2eproto.base,}}; |
| 148 | |
| 149 | static void InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 150 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 151 | |
| 152 | { |
| 153 | void* ptr = &::dmi::_HWComponentInfoGetRequest_default_instance_; |
| 154 | new (ptr) ::dmi::HWComponentInfoGetRequest(); |
| 155 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 156 | } |
| 157 | ::dmi::HWComponentInfoGetRequest::InitAsDefaultInstance(); |
| 158 | } |
| 159 | |
| 160 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 161 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 162 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 163 | |
| 164 | static void InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 165 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 166 | |
| 167 | { |
| 168 | void* ptr = &::dmi::_HWComponentInfoGetResponse_default_instance_; |
| 169 | new (ptr) ::dmi::HWComponentInfoGetResponse(); |
| 170 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 171 | } |
| 172 | ::dmi::HWComponentInfoGetResponse::InitAsDefaultInstance(); |
| 173 | } |
| 174 | |
| 175 | ::google::protobuf::internal::SCCInfo<1> scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 176 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 177 | &scc_info_Component_dmi_2fhw_2eproto.base,}}; |
| 178 | |
| 179 | static void InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 180 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 181 | |
| 182 | { |
| 183 | void* ptr = &::dmi::_HWComponentInfoSetRequest_default_instance_; |
| 184 | new (ptr) ::dmi::HWComponentInfoSetRequest(); |
| 185 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 186 | } |
| 187 | ::dmi::HWComponentInfoSetRequest::InitAsDefaultInstance(); |
| 188 | } |
| 189 | |
| 190 | ::google::protobuf::internal::SCCInfo<2> scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 191 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsHWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 192 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 193 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base,}}; |
| 194 | |
| 195 | static void InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 196 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 197 | |
| 198 | { |
| 199 | void* ptr = &::dmi::_HWComponentInfoSetResponse_default_instance_; |
| 200 | new (ptr) ::dmi::HWComponentInfoSetResponse(); |
| 201 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 202 | } |
| 203 | ::dmi::HWComponentInfoSetResponse::InitAsDefaultInstance(); |
| 204 | } |
| 205 | |
| 206 | ::google::protobuf::internal::SCCInfo<0> scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 207 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 208 | |
| 209 | static void InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 210 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 211 | |
| 212 | { |
| 213 | void* ptr = &::dmi::_StartManagingDeviceResponse_default_instance_; |
| 214 | new (ptr) ::dmi::StartManagingDeviceResponse(); |
| 215 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 216 | } |
| 217 | ::dmi::StartManagingDeviceResponse::InitAsDefaultInstance(); |
| 218 | } |
| 219 | |
| 220 | ::google::protobuf::internal::SCCInfo<1> scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 221 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 222 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 223 | |
| 224 | static void InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 225 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 226 | |
| 227 | { |
| 228 | void* ptr = &::dmi::_StopManagingDeviceRequest_default_instance_; |
| 229 | new (ptr) ::dmi::StopManagingDeviceRequest(); |
| 230 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 231 | } |
| 232 | ::dmi::StopManagingDeviceRequest::InitAsDefaultInstance(); |
| 233 | } |
| 234 | |
| 235 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 236 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 237 | |
| 238 | static void InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 240 | |
| 241 | { |
| 242 | void* ptr = &::dmi::_StopManagingDeviceResponse_default_instance_; |
| 243 | new (ptr) ::dmi::StopManagingDeviceResponse(); |
| 244 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 245 | } |
| 246 | ::dmi::StopManagingDeviceResponse::InitAsDefaultInstance(); |
| 247 | } |
| 248 | |
| 249 | ::google::protobuf::internal::SCCInfo<0> scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 250 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 251 | |
| 252 | static void InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 253 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 254 | |
| 255 | { |
| 256 | void* ptr = &::dmi::_ManagedDeviceInfo_default_instance_; |
| 257 | new (ptr) ::dmi::ManagedDeviceInfo(); |
| 258 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 259 | } |
| 260 | ::dmi::ManagedDeviceInfo::InitAsDefaultInstance(); |
| 261 | } |
| 262 | |
| 263 | ::google::protobuf::internal::SCCInfo<2> scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 264 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 265 | &scc_info_ModifiableComponent_dmi_2fhw_2eproto.base, |
| 266 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 267 | |
| 268 | static void InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 269 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 270 | |
| 271 | { |
| 272 | void* ptr = &::dmi::_ManagedDevicesResponse_default_instance_; |
| 273 | new (ptr) ::dmi::ManagedDevicesResponse(); |
| 274 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 275 | } |
| 276 | ::dmi::ManagedDevicesResponse::InitAsDefaultInstance(); |
| 277 | } |
| 278 | |
| 279 | ::google::protobuf::internal::SCCInfo<1> scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 280 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 281 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 282 | |
| 283 | static void InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 284 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 285 | |
| 286 | { |
| 287 | void* ptr = &::dmi::_SetLoggingEndpointRequest_default_instance_; |
| 288 | new (ptr) ::dmi::SetLoggingEndpointRequest(); |
| 289 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 290 | } |
| 291 | ::dmi::SetLoggingEndpointRequest::InitAsDefaultInstance(); |
| 292 | } |
| 293 | |
| 294 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 295 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 296 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 297 | |
| 298 | static void InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 299 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 300 | |
| 301 | { |
| 302 | void* ptr = &::dmi::_SetRemoteEndpointResponse_default_instance_; |
| 303 | new (ptr) ::dmi::SetRemoteEndpointResponse(); |
| 304 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 305 | } |
| 306 | ::dmi::SetRemoteEndpointResponse::InitAsDefaultInstance(); |
| 307 | } |
| 308 | |
| 309 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 310 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 311 | |
| 312 | static void InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 313 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 314 | |
| 315 | { |
| 316 | void* ptr = &::dmi::_GetLoggingEndpointResponse_default_instance_; |
| 317 | new (ptr) ::dmi::GetLoggingEndpointResponse(); |
| 318 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 319 | } |
| 320 | ::dmi::GetLoggingEndpointResponse::InitAsDefaultInstance(); |
| 321 | } |
| 322 | |
| 323 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 324 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 325 | |
| 326 | static void InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 327 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 328 | |
| 329 | { |
| 330 | void* ptr = &::dmi::_SetMsgBusEndpointRequest_default_instance_; |
| 331 | new (ptr) ::dmi::SetMsgBusEndpointRequest(); |
| 332 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 333 | } |
| 334 | ::dmi::SetMsgBusEndpointRequest::InitAsDefaultInstance(); |
| 335 | } |
| 336 | |
| 337 | ::google::protobuf::internal::SCCInfo<0> scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 338 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 339 | |
| 340 | static void InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 341 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 342 | |
| 343 | { |
| 344 | void* ptr = &::dmi::_GetMsgBusEndpointResponse_default_instance_; |
| 345 | new (ptr) ::dmi::GetMsgBusEndpointResponse(); |
| 346 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 347 | } |
| 348 | ::dmi::GetMsgBusEndpointResponse::InitAsDefaultInstance(); |
| 349 | } |
| 350 | |
| 351 | ::google::protobuf::internal::SCCInfo<0> scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 352 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 353 | |
| 354 | static void InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 355 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 356 | |
| 357 | { |
| 358 | void* ptr = &::dmi::_EntitiesLogLevel_default_instance_; |
| 359 | new (ptr) ::dmi::EntitiesLogLevel(); |
| 360 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 361 | } |
| 362 | ::dmi::EntitiesLogLevel::InitAsDefaultInstance(); |
| 363 | } |
| 364 | |
| 365 | ::google::protobuf::internal::SCCInfo<0> scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 366 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 367 | |
| 368 | static void InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 369 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 370 | |
| 371 | { |
| 372 | void* ptr = &::dmi::_SetLogLevelRequest_default_instance_; |
| 373 | new (ptr) ::dmi::SetLogLevelRequest(); |
| 374 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 375 | } |
| 376 | ::dmi::SetLogLevelRequest::InitAsDefaultInstance(); |
| 377 | } |
| 378 | |
| 379 | ::google::protobuf::internal::SCCInfo<2> scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 380 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 381 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 382 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 383 | |
| 384 | static void InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 385 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 386 | |
| 387 | { |
| 388 | void* ptr = &::dmi::_SetLogLevelResponse_default_instance_; |
| 389 | new (ptr) ::dmi::SetLogLevelResponse(); |
| 390 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 391 | } |
| 392 | ::dmi::SetLogLevelResponse::InitAsDefaultInstance(); |
| 393 | } |
| 394 | |
| 395 | ::google::protobuf::internal::SCCInfo<1> scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 396 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 397 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 398 | |
| 399 | static void InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 400 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 401 | |
| 402 | { |
| 403 | void* ptr = &::dmi::_GetLogLevelRequest_default_instance_; |
| 404 | new (ptr) ::dmi::GetLogLevelRequest(); |
| 405 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 406 | } |
| 407 | ::dmi::GetLogLevelRequest::InitAsDefaultInstance(); |
| 408 | } |
| 409 | |
| 410 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 411 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 412 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 413 | |
| 414 | static void InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 415 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 416 | |
| 417 | { |
| 418 | void* ptr = &::dmi::_GetLogLevelResponse_default_instance_; |
| 419 | new (ptr) ::dmi::GetLogLevelResponse(); |
| 420 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 421 | } |
| 422 | ::dmi::GetLogLevelResponse::InitAsDefaultInstance(); |
| 423 | } |
| 424 | |
| 425 | ::google::protobuf::internal::SCCInfo<2> scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 426 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 427 | &scc_info_Uuid_dmi_2fhw_2eproto.base, |
| 428 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base,}}; |
| 429 | |
| 430 | static void InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 431 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 432 | |
| 433 | { |
| 434 | void* ptr = &::dmi::_GetLoggableEntitiesRequest_default_instance_; |
| 435 | new (ptr) ::dmi::GetLoggableEntitiesRequest(); |
| 436 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 437 | } |
| 438 | ::dmi::GetLoggableEntitiesRequest::InitAsDefaultInstance(); |
| 439 | } |
| 440 | |
| 441 | ::google::protobuf::internal::SCCInfo<1> scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 442 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto}, { |
| 443 | &scc_info_Uuid_dmi_2fhw_2eproto.base,}}; |
| 444 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 445 | static void InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 446 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 447 | |
| 448 | { |
| 449 | void* ptr = &::dmi::_Heartbeat_default_instance_; |
| 450 | new (ptr) ::dmi::Heartbeat(); |
| 451 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
| 452 | } |
| 453 | ::dmi::Heartbeat::InitAsDefaultInstance(); |
| 454 | } |
| 455 | |
| 456 | ::google::protobuf::internal::SCCInfo<0> scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto = |
| 457 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto}, {}}; |
| 458 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 459 | void InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 460 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 461 | ::google::protobuf::internal::InitSCC(&scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 462 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 463 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 464 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 465 | ::google::protobuf::internal::InitSCC(&scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 466 | ::google::protobuf::internal::InitSCC(&scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 467 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 468 | ::google::protobuf::internal::InitSCC(&scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 469 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 470 | ::google::protobuf::internal::InitSCC(&scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 471 | ::google::protobuf::internal::InitSCC(&scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 472 | ::google::protobuf::internal::InitSCC(&scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 473 | ::google::protobuf::internal::InitSCC(&scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 474 | ::google::protobuf::internal::InitSCC(&scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 475 | ::google::protobuf::internal::InitSCC(&scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 476 | ::google::protobuf::internal::InitSCC(&scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 477 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 478 | ::google::protobuf::internal::InitSCC(&scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 479 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 480 | ::google::protobuf::internal::InitSCC(&scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 481 | ::google::protobuf::internal::InitSCC(&scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 482 | ::google::protobuf::internal::InitSCC(&scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 483 | } |
| 484 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 485 | ::google::protobuf::Metadata file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[23]; |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 486 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[11]; |
| 487 | constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto = nullptr; |
| 488 | |
| 489 | const ::google::protobuf::uint32 TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 490 | ~0u, // no _has_bits_ |
| 491 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, _internal_metadata_), |
| 492 | ~0u, // no _extensions_ |
| 493 | ~0u, // no _oneof_case_ |
| 494 | ~0u, // no _weak_field_map_ |
| 495 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryRequest, device_uuid_), |
| 496 | ~0u, // no _has_bits_ |
| 497 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, _internal_metadata_), |
| 498 | ~0u, // no _extensions_ |
| 499 | ~0u, // no _oneof_case_ |
| 500 | ~0u, // no _weak_field_map_ |
| 501 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, status_), |
| 502 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_), |
| 503 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, inventory_), |
| 504 | PROTOBUF_FIELD_OFFSET(::dmi::PhysicalInventoryResponse, reason_detail_), |
| 505 | ~0u, // no _has_bits_ |
| 506 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, _internal_metadata_), |
| 507 | ~0u, // no _extensions_ |
| 508 | ~0u, // no _oneof_case_ |
| 509 | ~0u, // no _weak_field_map_ |
| 510 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, device_uuid_), |
| 511 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_uuid_), |
| 512 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetRequest, component_name_), |
| 513 | ~0u, // no _has_bits_ |
| 514 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, _internal_metadata_), |
| 515 | ~0u, // no _extensions_ |
| 516 | ~0u, // no _oneof_case_ |
| 517 | ~0u, // no _weak_field_map_ |
| 518 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, status_), |
| 519 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_), |
| 520 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, component_), |
| 521 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoGetResponse, reason_detail_), |
| 522 | ~0u, // no _has_bits_ |
| 523 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, _internal_metadata_), |
| 524 | ~0u, // no _extensions_ |
| 525 | ~0u, // no _oneof_case_ |
| 526 | ~0u, // no _weak_field_map_ |
| 527 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, device_uuid_), |
| 528 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_uuid_), |
| 529 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, component_name_), |
| 530 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetRequest, changes_), |
| 531 | ~0u, // no _has_bits_ |
| 532 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, _internal_metadata_), |
| 533 | ~0u, // no _extensions_ |
| 534 | ~0u, // no _oneof_case_ |
| 535 | ~0u, // no _weak_field_map_ |
| 536 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, status_), |
| 537 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_), |
| 538 | PROTOBUF_FIELD_OFFSET(::dmi::HWComponentInfoSetResponse, reason_detail_), |
| 539 | ~0u, // no _has_bits_ |
| 540 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, _internal_metadata_), |
| 541 | ~0u, // no _extensions_ |
| 542 | ~0u, // no _oneof_case_ |
| 543 | ~0u, // no _weak_field_map_ |
| 544 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, status_), |
| 545 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_), |
| 546 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, device_uuid_), |
| 547 | PROTOBUF_FIELD_OFFSET(::dmi::StartManagingDeviceResponse, reason_detail_), |
| 548 | ~0u, // no _has_bits_ |
| 549 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, _internal_metadata_), |
| 550 | ~0u, // no _extensions_ |
| 551 | ~0u, // no _oneof_case_ |
| 552 | ~0u, // no _weak_field_map_ |
| 553 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceRequest, name_), |
| 554 | ~0u, // no _has_bits_ |
| 555 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, _internal_metadata_), |
| 556 | ~0u, // no _extensions_ |
| 557 | ~0u, // no _oneof_case_ |
| 558 | ~0u, // no _weak_field_map_ |
| 559 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, status_), |
| 560 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_), |
| 561 | PROTOBUF_FIELD_OFFSET(::dmi::StopManagingDeviceResponse, reason_detail_), |
| 562 | ~0u, // no _has_bits_ |
| 563 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, _internal_metadata_), |
| 564 | ~0u, // no _extensions_ |
| 565 | ~0u, // no _oneof_case_ |
| 566 | ~0u, // no _weak_field_map_ |
| 567 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, info_), |
| 568 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDeviceInfo, device_uuid_), |
| 569 | ~0u, // no _has_bits_ |
| 570 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, _internal_metadata_), |
| 571 | ~0u, // no _extensions_ |
| 572 | ~0u, // no _oneof_case_ |
| 573 | ~0u, // no _weak_field_map_ |
| 574 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, status_), |
| 575 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, reason_), |
| 576 | PROTOBUF_FIELD_OFFSET(::dmi::ManagedDevicesResponse, devices_), |
| 577 | ~0u, // no _has_bits_ |
| 578 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, _internal_metadata_), |
| 579 | ~0u, // no _extensions_ |
| 580 | ~0u, // no _oneof_case_ |
| 581 | ~0u, // no _weak_field_map_ |
| 582 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, device_uuid_), |
| 583 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_endpoint_), |
| 584 | PROTOBUF_FIELD_OFFSET(::dmi::SetLoggingEndpointRequest, logging_protocol_), |
| 585 | ~0u, // no _has_bits_ |
| 586 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, _internal_metadata_), |
| 587 | ~0u, // no _extensions_ |
| 588 | ~0u, // no _oneof_case_ |
| 589 | ~0u, // no _weak_field_map_ |
| 590 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, status_), |
| 591 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_), |
| 592 | PROTOBUF_FIELD_OFFSET(::dmi::SetRemoteEndpointResponse, reason_detail_), |
| 593 | ~0u, // no _has_bits_ |
| 594 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, _internal_metadata_), |
| 595 | ~0u, // no _extensions_ |
| 596 | ~0u, // no _oneof_case_ |
| 597 | ~0u, // no _weak_field_map_ |
| 598 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, status_), |
| 599 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_), |
| 600 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_endpoint_), |
| 601 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, logging_protocol_), |
| 602 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggingEndpointResponse, reason_detail_), |
| 603 | ~0u, // no _has_bits_ |
| 604 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, _internal_metadata_), |
| 605 | ~0u, // no _extensions_ |
| 606 | ~0u, // no _oneof_case_ |
| 607 | ~0u, // no _weak_field_map_ |
| 608 | PROTOBUF_FIELD_OFFSET(::dmi::SetMsgBusEndpointRequest, msgbus_endpoint_), |
| 609 | ~0u, // no _has_bits_ |
| 610 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, _internal_metadata_), |
| 611 | ~0u, // no _extensions_ |
| 612 | ~0u, // no _oneof_case_ |
| 613 | ~0u, // no _weak_field_map_ |
| 614 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, status_), |
| 615 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_), |
| 616 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, msgbus_endpoint_), |
| 617 | PROTOBUF_FIELD_OFFSET(::dmi::GetMsgBusEndpointResponse, reason_detail_), |
| 618 | ~0u, // no _has_bits_ |
| 619 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, _internal_metadata_), |
| 620 | ~0u, // no _extensions_ |
| 621 | ~0u, // no _oneof_case_ |
| 622 | ~0u, // no _weak_field_map_ |
| 623 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, loglevel_), |
| 624 | PROTOBUF_FIELD_OFFSET(::dmi::EntitiesLogLevel, entities_), |
| 625 | ~0u, // no _has_bits_ |
| 626 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, _internal_metadata_), |
| 627 | ~0u, // no _extensions_ |
| 628 | ~0u, // no _oneof_case_ |
| 629 | ~0u, // no _weak_field_map_ |
| 630 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, device_uuid_), |
| 631 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelRequest, loglevels_), |
| 632 | ~0u, // no _has_bits_ |
| 633 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, _internal_metadata_), |
| 634 | ~0u, // no _extensions_ |
| 635 | ~0u, // no _oneof_case_ |
| 636 | ~0u, // no _weak_field_map_ |
| 637 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, device_uuid_), |
| 638 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, status_), |
| 639 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_), |
| 640 | PROTOBUF_FIELD_OFFSET(::dmi::SetLogLevelResponse, reason_detail_), |
| 641 | ~0u, // no _has_bits_ |
| 642 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, _internal_metadata_), |
| 643 | ~0u, // no _extensions_ |
| 644 | ~0u, // no _oneof_case_ |
| 645 | ~0u, // no _weak_field_map_ |
| 646 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, device_uuid_), |
| 647 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelRequest, entities_), |
| 648 | ~0u, // no _has_bits_ |
| 649 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, _internal_metadata_), |
| 650 | ~0u, // no _extensions_ |
| 651 | ~0u, // no _oneof_case_ |
| 652 | ~0u, // no _weak_field_map_ |
| 653 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, device_uuid_), |
| 654 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, loglevels_), |
| 655 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, status_), |
| 656 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_), |
| 657 | PROTOBUF_FIELD_OFFSET(::dmi::GetLogLevelResponse, reason_detail_), |
| 658 | ~0u, // no _has_bits_ |
| 659 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, _internal_metadata_), |
| 660 | ~0u, // no _extensions_ |
| 661 | ~0u, // no _oneof_case_ |
| 662 | ~0u, // no _weak_field_map_ |
| 663 | PROTOBUF_FIELD_OFFSET(::dmi::GetLoggableEntitiesRequest, device_uuid_), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 664 | ~0u, // no _has_bits_ |
| 665 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, _internal_metadata_), |
| 666 | ~0u, // no _extensions_ |
| 667 | ~0u, // no _oneof_case_ |
| 668 | ~0u, // no _weak_field_map_ |
| 669 | PROTOBUF_FIELD_OFFSET(::dmi::Heartbeat, heartbeat_signature_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 670 | }; |
| 671 | static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| 672 | { 0, -1, sizeof(::dmi::PhysicalInventoryRequest)}, |
| 673 | { 6, -1, sizeof(::dmi::PhysicalInventoryResponse)}, |
| 674 | { 15, -1, sizeof(::dmi::HWComponentInfoGetRequest)}, |
| 675 | { 23, -1, sizeof(::dmi::HWComponentInfoGetResponse)}, |
| 676 | { 32, -1, sizeof(::dmi::HWComponentInfoSetRequest)}, |
| 677 | { 41, -1, sizeof(::dmi::HWComponentInfoSetResponse)}, |
| 678 | { 49, -1, sizeof(::dmi::StartManagingDeviceResponse)}, |
| 679 | { 58, -1, sizeof(::dmi::StopManagingDeviceRequest)}, |
| 680 | { 64, -1, sizeof(::dmi::StopManagingDeviceResponse)}, |
| 681 | { 72, -1, sizeof(::dmi::ManagedDeviceInfo)}, |
| 682 | { 79, -1, sizeof(::dmi::ManagedDevicesResponse)}, |
| 683 | { 87, -1, sizeof(::dmi::SetLoggingEndpointRequest)}, |
| 684 | { 95, -1, sizeof(::dmi::SetRemoteEndpointResponse)}, |
| 685 | { 103, -1, sizeof(::dmi::GetLoggingEndpointResponse)}, |
| 686 | { 113, -1, sizeof(::dmi::SetMsgBusEndpointRequest)}, |
| 687 | { 119, -1, sizeof(::dmi::GetMsgBusEndpointResponse)}, |
| 688 | { 128, -1, sizeof(::dmi::EntitiesLogLevel)}, |
| 689 | { 135, -1, sizeof(::dmi::SetLogLevelRequest)}, |
| 690 | { 142, -1, sizeof(::dmi::SetLogLevelResponse)}, |
| 691 | { 151, -1, sizeof(::dmi::GetLogLevelRequest)}, |
| 692 | { 158, -1, sizeof(::dmi::GetLogLevelResponse)}, |
| 693 | { 168, -1, sizeof(::dmi::GetLoggableEntitiesRequest)}, |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 694 | { 174, -1, sizeof(::dmi::Heartbeat)}, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 695 | }; |
| 696 | |
| 697 | static ::google::protobuf::Message const * const file_default_instances[] = { |
| 698 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryRequest_default_instance_), |
| 699 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_PhysicalInventoryResponse_default_instance_), |
| 700 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetRequest_default_instance_), |
| 701 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoGetResponse_default_instance_), |
| 702 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetRequest_default_instance_), |
| 703 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_HWComponentInfoSetResponse_default_instance_), |
| 704 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StartManagingDeviceResponse_default_instance_), |
| 705 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceRequest_default_instance_), |
| 706 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_StopManagingDeviceResponse_default_instance_), |
| 707 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDeviceInfo_default_instance_), |
| 708 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_ManagedDevicesResponse_default_instance_), |
| 709 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLoggingEndpointRequest_default_instance_), |
| 710 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetRemoteEndpointResponse_default_instance_), |
| 711 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggingEndpointResponse_default_instance_), |
| 712 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetMsgBusEndpointRequest_default_instance_), |
| 713 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetMsgBusEndpointResponse_default_instance_), |
| 714 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_EntitiesLogLevel_default_instance_), |
| 715 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelRequest_default_instance_), |
| 716 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_SetLogLevelResponse_default_instance_), |
| 717 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelRequest_default_instance_), |
| 718 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLogLevelResponse_default_instance_), |
| 719 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_GetLoggableEntitiesRequest_default_instance_), |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 720 | reinterpret_cast<const ::google::protobuf::Message*>(&::dmi::_Heartbeat_default_instance_), |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 721 | }; |
| 722 | |
| 723 | ::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 724 | {}, AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto, "dmi/hw_management_service.proto", schemas, |
| 725 | file_default_instances, TableStruct_dmi_2fhw_5fmanagement_5fservice_2eproto::offsets, |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 726 | file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto, 23, 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] | 727 | }; |
| 728 | |
| 729 | const char descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto[] = |
| 730 | "\n\037dmi/hw_management_service.proto\022\003dmi\032\021" |
| 731 | "dmi/commons.proto\032\014dmi/hw.proto\032\033google/" |
| 732 | "protobuf/empty.proto\":\n\030PhysicalInventor" |
| 733 | "yRequest\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 734 | "\"\210\002\n\031PhysicalInventoryResponse\022\033\n\006status" |
| 735 | "\030\001 \001(\0162\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dm" |
| 736 | "i.PhysicalInventoryResponse.Reason\022 \n\tin" |
| 737 | "ventory\030\003 \001(\0132\r.dmi.Hardware\022\025\n\rreason_d" |
| 738 | "etail\030\004 \001(\t\"^\n\006Reason\022\024\n\020UNDEFINED_REASO" |
| 739 | "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO" |
| 740 | "R\020\002\022\026\n\022DEVICE_UNREACHABLE\020\003\"v\n\031HWCompone" |
| 741 | "ntInfoGetRequest\022\036\n\013device_uuid\030\001 \001(\0132\t." |
| 742 | "dmi.Uuid\022!\n\016component_uuid\030\002 \001(\0132\t.dmi.U" |
| 743 | "uid\022\026\n\016component_name\030\003 \001(\t\"\242\002\n\032HWCompon" |
| 744 | "entInfoGetResponse\022\033\n\006status\030\001 \001(\0162\013.dmi" |
| 745 | ".Status\0226\n\006reason\030\002 \001(\0162&.dmi.HWComponen" |
| 746 | "tInfoGetResponse.Reason\022!\n\tcomponent\030\003 \001" |
| 747 | "(\0132\016.dmi.Component\022\025\n\rreason_detail\030\004 \001(" |
| 748 | "\t\"u\n\006Reason\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNK" |
| 749 | "NOWN_DEVICE\020\001\022\025\n\021UNKNOWN_COMPONENT\020\002\022\022\n\016" |
| 750 | "INTERNAL_ERROR\020\003\022\026\n\022DEVICE_UNREACHABLE\020\004" |
| 751 | "\"\241\001\n\031HWComponentInfoSetRequest\022\036\n\013device" |
| 752 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022!\n\016component_uuid" |
| 753 | "\030\002 \001(\0132\t.dmi.Uuid\022\026\n\016component_name\030\003 \001(" |
| 754 | "\t\022)\n\007changes\030\004 \001(\0132\030.dmi.ModifiableCompo" |
| 755 | "nent\"\224\002\n\032HWComponentInfoSetResponse\022\033\n\006s" |
| 756 | "tatus\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\016" |
| 757 | "2&.dmi.HWComponentInfoSetResponse.Reason" |
| 758 | "\022\025\n\rreason_detail\030\003 \001(\t\"\211\001\n\006Reason\022\024\n\020UN" |
| 759 | "DEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\025\n\021" |
| 760 | "UNKNOWN_COMPONENT\020\002\022\022\n\016INVALID_PARAMS\020\003\022" |
| 761 | "\022\n\016INTERNAL_ERROR\020\004\022\026\n\022DEVICE_UNREACHABL" |
| 762 | "E\020\005\"\262\002\n\033StartManagingDeviceResponse\022\033\n\006s" |
| 763 | "tatus\030\001 \001(\0162\013.dmi.Status\0227\n\006reason\030\002 \001(\016" |
| 764 | "2\'.dmi.StartManagingDeviceResponse.Reaso" |
| 765 | "n\022\036\n\013device_uuid\030\003 \001(\0132\t.dmi.Uuid\022\025\n\rrea" |
| 766 | "son_detail\030\004 \001(\t\"\205\001\n\006Reason\022\024\n\020UNDEFINED" |
| 767 | "_REASON\020\000\022\032\n\026DEVICE_ALREADY_MANAGED\020\001\022!\n" |
| 768 | "\035OPERATION_ALREADY_IN_PROGRESS\020\002\022\022\n\016INVA" |
| 769 | "LID_PARAMS\020\003\022\022\n\016INTERNAL_ERROR\020\004\")\n\031Stop" |
| 770 | "ManagingDeviceRequest\022\014\n\004name\030\001 \001(\t\"\274\001\n\032" |
| 771 | "StopManagingDeviceResponse\022\033\n\006status\030\001 \001" |
| 772 | "(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dmi.St" |
| 773 | "opManagingDeviceResponse.Reason\022\025\n\rreaso" |
| 774 | "n_detail\030\003 \001(\t\"2\n\006Reason\022\024\n\020UNDEFINED_RE" |
| 775 | "ASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\"[\n\021ManagedDev" |
| 776 | "iceInfo\022&\n\004info\030\001 \001(\0132\030.dmi.ModifiableCo" |
| 777 | "mponent\022\036\n\013device_uuid\030\002 \001(\0132\t.dmi.Uuid\"" |
| 778 | "\306\001\n\026ManagedDevicesResponse\022\033\n\006status\030\001 \001" |
| 779 | "(\0162\013.dmi.Status\0222\n\006reason\030\002 \001(\0162\".dmi.Ma" |
| 780 | "nagedDevicesResponse.Reason\022\'\n\007devices\030\003" |
| 781 | " \003(\0132\026.dmi.ManagedDeviceInfo\"2\n\006Reason\022\024" |
| 782 | "\n\020UNDEFINED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001" |
| 783 | "\"o\n\031SetLoggingEndpointRequest\022\036\n\013device_" |
| 784 | "uuid\030\001 \001(\0132\t.dmi.Uuid\022\030\n\020logging_endpoin" |
| 785 | "t\030\002 \001(\t\022\030\n\020logging_protocol\030\003 \001(\t\"\303\002\n\031Se" |
| 786 | "tRemoteEndpointResponse\022\033\n\006status\030\001 \001(\0162" |
| 787 | "\013.dmi.Status\0225\n\006reason\030\002 \001(\0162%.dmi.SetRe" |
| 788 | "moteEndpointResponse.Reason\022\025\n\rreason_de" |
| 789 | "tail\030\003 \001(\t\"\272\001\n\006Reason\022\024\n\020UNDEFINED_REASO" |
| 790 | "N\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERRO" |
| 791 | "R\020\002\022\032\n\026LOGGING_ENDPOINT_ERROR\020\003\022#\n\037LOGGI" |
| 792 | "NG_ENDPOINT_PROTOCOL_ERROR\020\004\022\031\n\025MSGBUS_E" |
| 793 | "NDPOINT_ERROR\020\005\022\026\n\022DEVICE_UNREACHABLE\020\006\"" |
| 794 | "\234\002\n\032GetLoggingEndpointResponse\022\033\n\006status" |
| 795 | "\030\001 \001(\0162\013.dmi.Status\0226\n\006reason\030\002 \001(\0162&.dm" |
| 796 | "i.GetLoggingEndpointResponse.Reason\022\030\n\020l" |
| 797 | "ogging_endpoint\030\003 \001(\t\022\030\n\020logging_protoco" |
| 798 | "l\030\004 \001(\t\022\025\n\rreason_detail\030\005 \001(\t\"^\n\006Reason" |
| 799 | "\022\024\n\020UNDEFINED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE" |
| 800 | "\020\001\022\022\n\016INTERNAL_ERROR\020\002\022\026\n\022DEVICE_UNREACH" |
| 801 | "ABLE\020\003\"3\n\030SetMsgBusEndpointRequest\022\027\n\017ms" |
| 802 | "gbus_endpoint\030\001 \001(\t\"\353\001\n\031GetMsgBusEndpoin" |
| 803 | "tResponse\022\033\n\006status\030\001 \001(\0162\013.dmi.Status\0225" |
| 804 | "\n\006reason\030\002 \001(\0162%.dmi.GetMsgBusEndpointRe" |
| 805 | "sponse.Reason\022\027\n\017msgbus_endpoint\030\003 \001(\t\022\025" |
| 806 | "\n\rreason_detail\030\004 \001(\t\"J\n\006Reason\022\024\n\020UNDEF" |
| 807 | "INED_REASON\020\000\022\022\n\016INTERNAL_ERROR\020\001\022\026\n\022DEV" |
| 808 | "ICE_UNREACHABLE\020\002\"E\n\020EntitiesLogLevel\022\037\n" |
| 809 | "\010logLevel\030\001 \001(\0162\r.dmi.LogLevel\022\020\n\010entiti" |
| 810 | "es\030\002 \003(\t\"^\n\022SetLogLevelRequest\022\036\n\013device" |
| 811 | "_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tloglevels\030\002 \003(" |
| 812 | "\0132\025.dmi.EntitiesLogLevel\"\222\002\n\023SetLogLevel" |
| 813 | "Response\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid" |
| 814 | "\022\033\n\006status\030\002 \001(\0162\013.dmi.Status\022/\n\006reason\030" |
| 815 | "\003 \001(\0162\037.dmi.SetLogLevelResponse.Reason\022\025" |
| 816 | "\n\rreason_detail\030\004 \001(\t\"v\n\006Reason\022\024\n\020UNDEF" |
| 817 | "INED_REASON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INT" |
| 818 | "ERNAL_ERROR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n" |
| 819 | "\022DEVICE_UNREACHABLE\020\004\"F\n\022GetLogLevelRequ" |
| 820 | "est\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022\020\n\010e" |
| 821 | "ntities\030\002 \003(\t\"\274\002\n\023GetLogLevelResponse\022\036\n" |
| 822 | "\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\022(\n\tlogLeve" |
| 823 | "ls\030\002 \003(\0132\025.dmi.EntitiesLogLevel\022\033\n\006statu" |
| 824 | "s\030\003 \001(\0162\013.dmi.Status\022/\n\006reason\030\004 \001(\0162\037.d" |
| 825 | "mi.GetLogLevelResponse.Reason\022\025\n\rreason_" |
| 826 | "detail\030\005 \001(\t\"v\n\006Reason\022\024\n\020UNDEFINED_REAS" |
| 827 | "ON\020\000\022\022\n\016UNKNOWN_DEVICE\020\001\022\022\n\016INTERNAL_ERR" |
| 828 | "OR\020\002\022\026\n\022UNKNOWN_LOG_ENTITY\020\003\022\026\n\022DEVICE_U" |
| 829 | "NREACHABLE\020\004\"<\n\032GetLoggableEntitiesReque" |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 830 | "st\022\036\n\013device_uuid\030\001 \001(\0132\t.dmi.Uuid\"(\n\tHe" |
| 831 | "artbeat\022\033\n\023heartbeat_signature\030\001 \001(\0072\351\010\n" |
| 832 | "\031NativeHWManagementService\022S\n\023StartManag" |
| 833 | "ingDevice\022\030.dmi.ModifiableComponent\032 .dm" |
| 834 | "i.StartManagingDeviceResponse0\001\022U\n\022StopM" |
| 835 | "anagingDevice\022\036.dmi.StopManagingDeviceRe" |
| 836 | "quest\032\037.dmi.StopManagingDeviceResponse\022H" |
| 837 | "\n\021GetManagedDevices\022\026.google.protobuf.Em" |
| 838 | "pty\032\033.dmi.ManagedDevicesResponse\022W\n\024GetP" |
| 839 | "hysicalInventory\022\035.dmi.PhysicalInventory" |
| 840 | "Request\032\036.dmi.PhysicalInventoryResponse0" |
| 841 | "\001\022W\n\022GetHWComponentInfo\022\036.dmi.HWComponen" |
| 842 | "tInfoGetRequest\032\037.dmi.HWComponentInfoGet" |
| 843 | "Response0\001\022U\n\022SetHWComponentInfo\022\036.dmi.H" |
| 844 | "WComponentInfoSetRequest\032\037.dmi.HWCompone" |
| 845 | "ntInfoSetResponse\022T\n\022SetLoggingEndpoint\022" |
| 846 | "\036.dmi.SetLoggingEndpointRequest\032\036.dmi.Se" |
| 847 | "tRemoteEndpointResponse\022F\n\022GetLoggingEnd" |
| 848 | "point\022\017.dmi.HardwareID\032\037.dmi.GetLoggingE" |
| 849 | "ndpointResponse\022R\n\021SetMsgBusEndpoint\022\035.d" |
| 850 | "mi.SetMsgBusEndpointRequest\032\036.dmi.SetRem" |
| 851 | "oteEndpointResponse\022K\n\021GetMsgBusEndpoint" |
| 852 | "\022\026.google.protobuf.Empty\032\036.dmi.GetMsgBus" |
| 853 | "EndpointResponse\022P\n\023GetLoggableEntities\022" |
| 854 | "\037.dmi.GetLoggableEntitiesRequest\032\030.dmi.G" |
| 855 | "etLogLevelResponse\022@\n\013SetLogLevel\022\027.dmi." |
| 856 | "SetLogLevelRequest\032\030.dmi.SetLogLevelResp" |
| 857 | "onse\022@\n\013GetLogLevel\022\027.dmi.GetLogLevelReq" |
| 858 | "uest\032\030.dmi.GetLogLevelResponse\0228\n\016Heartb" |
| 859 | "eatCheck\022\026.google.protobuf.Empty\032\016.dmi.H" |
| 860 | "eartbeatB;Z9github.com/opencord/device-m" |
| 861 | "anagement-interface/v3/go/dmib\006proto3" |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 862 | ; |
| 863 | ::google::protobuf::internal::DescriptorTable descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto = { |
| 864 | false, InitDefaults_dmi_2fhw_5fmanagement_5fservice_2eproto, |
| 865 | descriptor_table_protodef_dmi_2fhw_5fmanagement_5fservice_2eproto, |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 866 | "dmi/hw_management_service.proto", &assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto, 5277, |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 867 | }; |
| 868 | |
| 869 | void AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto() { |
| 870 | static constexpr ::google::protobuf::internal::InitFunc deps[3] = |
| 871 | { |
| 872 | ::AddDescriptors_dmi_2fcommons_2eproto, |
| 873 | ::AddDescriptors_dmi_2fhw_2eproto, |
| 874 | ::AddDescriptors_google_2fprotobuf_2fempty_2eproto, |
| 875 | }; |
| 876 | ::google::protobuf::internal::AddDescriptors(&descriptor_table_dmi_2fhw_5fmanagement_5fservice_2eproto, deps, 3); |
| 877 | } |
| 878 | |
| 879 | // Force running AddDescriptors() at dynamic initialization time. |
| 880 | static bool dynamic_init_dummy_dmi_2fhw_5fmanagement_5fservice_2eproto = []() { AddDescriptors_dmi_2fhw_5fmanagement_5fservice_2eproto(); return true; }(); |
| 881 | namespace dmi { |
| 882 | const ::google::protobuf::EnumDescriptor* PhysicalInventoryResponse_Reason_descriptor() { |
| 883 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 884 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[0]; |
| 885 | } |
| 886 | bool PhysicalInventoryResponse_Reason_IsValid(int value) { |
| 887 | switch (value) { |
| 888 | case 0: |
| 889 | case 1: |
| 890 | case 2: |
| 891 | case 3: |
| 892 | return true; |
| 893 | default: |
| 894 | return false; |
| 895 | } |
| 896 | } |
| 897 | |
| 898 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 899 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNDEFINED_REASON; |
| 900 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::UNKNOWN_DEVICE; |
| 901 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::INTERNAL_ERROR; |
| 902 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::DEVICE_UNREACHABLE; |
| 903 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MIN; |
| 904 | const PhysicalInventoryResponse_Reason PhysicalInventoryResponse::Reason_MAX; |
| 905 | const int PhysicalInventoryResponse::Reason_ARRAYSIZE; |
| 906 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 907 | const ::google::protobuf::EnumDescriptor* HWComponentInfoGetResponse_Reason_descriptor() { |
| 908 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 909 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[1]; |
| 910 | } |
| 911 | bool HWComponentInfoGetResponse_Reason_IsValid(int value) { |
| 912 | switch (value) { |
| 913 | case 0: |
| 914 | case 1: |
| 915 | case 2: |
| 916 | case 3: |
| 917 | case 4: |
| 918 | return true; |
| 919 | default: |
| 920 | return false; |
| 921 | } |
| 922 | } |
| 923 | |
| 924 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 925 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNDEFINED_REASON; |
| 926 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_DEVICE; |
| 927 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::UNKNOWN_COMPONENT; |
| 928 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::INTERNAL_ERROR; |
| 929 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::DEVICE_UNREACHABLE; |
| 930 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MIN; |
| 931 | const HWComponentInfoGetResponse_Reason HWComponentInfoGetResponse::Reason_MAX; |
| 932 | const int HWComponentInfoGetResponse::Reason_ARRAYSIZE; |
| 933 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 934 | const ::google::protobuf::EnumDescriptor* HWComponentInfoSetResponse_Reason_descriptor() { |
| 935 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 936 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[2]; |
| 937 | } |
| 938 | bool HWComponentInfoSetResponse_Reason_IsValid(int value) { |
| 939 | switch (value) { |
| 940 | case 0: |
| 941 | case 1: |
| 942 | case 2: |
| 943 | case 3: |
| 944 | case 4: |
| 945 | case 5: |
| 946 | return true; |
| 947 | default: |
| 948 | return false; |
| 949 | } |
| 950 | } |
| 951 | |
| 952 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 953 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNDEFINED_REASON; |
| 954 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_DEVICE; |
| 955 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::UNKNOWN_COMPONENT; |
| 956 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INVALID_PARAMS; |
| 957 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::INTERNAL_ERROR; |
| 958 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::DEVICE_UNREACHABLE; |
| 959 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MIN; |
| 960 | const HWComponentInfoSetResponse_Reason HWComponentInfoSetResponse::Reason_MAX; |
| 961 | const int HWComponentInfoSetResponse::Reason_ARRAYSIZE; |
| 962 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 963 | const ::google::protobuf::EnumDescriptor* StartManagingDeviceResponse_Reason_descriptor() { |
| 964 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 965 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[3]; |
| 966 | } |
| 967 | bool StartManagingDeviceResponse_Reason_IsValid(int value) { |
| 968 | switch (value) { |
| 969 | case 0: |
| 970 | case 1: |
| 971 | case 2: |
| 972 | case 3: |
| 973 | case 4: |
| 974 | return true; |
| 975 | default: |
| 976 | return false; |
| 977 | } |
| 978 | } |
| 979 | |
| 980 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 981 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::UNDEFINED_REASON; |
| 982 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::DEVICE_ALREADY_MANAGED; |
| 983 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::OPERATION_ALREADY_IN_PROGRESS; |
| 984 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INVALID_PARAMS; |
| 985 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::INTERNAL_ERROR; |
| 986 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MIN; |
| 987 | const StartManagingDeviceResponse_Reason StartManagingDeviceResponse::Reason_MAX; |
| 988 | const int StartManagingDeviceResponse::Reason_ARRAYSIZE; |
| 989 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 990 | const ::google::protobuf::EnumDescriptor* StopManagingDeviceResponse_Reason_descriptor() { |
| 991 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 992 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[4]; |
| 993 | } |
| 994 | bool StopManagingDeviceResponse_Reason_IsValid(int value) { |
| 995 | switch (value) { |
| 996 | case 0: |
| 997 | case 1: |
| 998 | return true; |
| 999 | default: |
| 1000 | return false; |
| 1001 | } |
| 1002 | } |
| 1003 | |
| 1004 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1005 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNDEFINED_REASON; |
| 1006 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::UNKNOWN_DEVICE; |
| 1007 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MIN; |
| 1008 | const StopManagingDeviceResponse_Reason StopManagingDeviceResponse::Reason_MAX; |
| 1009 | const int StopManagingDeviceResponse::Reason_ARRAYSIZE; |
| 1010 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1011 | const ::google::protobuf::EnumDescriptor* ManagedDevicesResponse_Reason_descriptor() { |
| 1012 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1013 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[5]; |
| 1014 | } |
| 1015 | bool ManagedDevicesResponse_Reason_IsValid(int value) { |
| 1016 | switch (value) { |
| 1017 | case 0: |
| 1018 | case 1: |
| 1019 | return true; |
| 1020 | default: |
| 1021 | return false; |
| 1022 | } |
| 1023 | } |
| 1024 | |
| 1025 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1026 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::UNDEFINED_REASON; |
| 1027 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::INTERNAL_ERROR; |
| 1028 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MIN; |
| 1029 | const ManagedDevicesResponse_Reason ManagedDevicesResponse::Reason_MAX; |
| 1030 | const int ManagedDevicesResponse::Reason_ARRAYSIZE; |
| 1031 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1032 | const ::google::protobuf::EnumDescriptor* SetRemoteEndpointResponse_Reason_descriptor() { |
| 1033 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1034 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[6]; |
| 1035 | } |
| 1036 | bool SetRemoteEndpointResponse_Reason_IsValid(int value) { |
| 1037 | switch (value) { |
| 1038 | case 0: |
| 1039 | case 1: |
| 1040 | case 2: |
| 1041 | case 3: |
| 1042 | case 4: |
| 1043 | case 5: |
| 1044 | case 6: |
| 1045 | return true; |
| 1046 | default: |
| 1047 | return false; |
| 1048 | } |
| 1049 | } |
| 1050 | |
| 1051 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1052 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNDEFINED_REASON; |
| 1053 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::UNKNOWN_DEVICE; |
| 1054 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::INTERNAL_ERROR; |
| 1055 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_ERROR; |
| 1056 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::LOGGING_ENDPOINT_PROTOCOL_ERROR; |
| 1057 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::MSGBUS_ENDPOINT_ERROR; |
| 1058 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::DEVICE_UNREACHABLE; |
| 1059 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MIN; |
| 1060 | const SetRemoteEndpointResponse_Reason SetRemoteEndpointResponse::Reason_MAX; |
| 1061 | const int SetRemoteEndpointResponse::Reason_ARRAYSIZE; |
| 1062 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1063 | const ::google::protobuf::EnumDescriptor* GetLoggingEndpointResponse_Reason_descriptor() { |
| 1064 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1065 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[7]; |
| 1066 | } |
| 1067 | bool GetLoggingEndpointResponse_Reason_IsValid(int value) { |
| 1068 | switch (value) { |
| 1069 | case 0: |
| 1070 | case 1: |
| 1071 | case 2: |
| 1072 | case 3: |
| 1073 | return true; |
| 1074 | default: |
| 1075 | return false; |
| 1076 | } |
| 1077 | } |
| 1078 | |
| 1079 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1080 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNDEFINED_REASON; |
| 1081 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::UNKNOWN_DEVICE; |
| 1082 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::INTERNAL_ERROR; |
| 1083 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::DEVICE_UNREACHABLE; |
| 1084 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MIN; |
| 1085 | const GetLoggingEndpointResponse_Reason GetLoggingEndpointResponse::Reason_MAX; |
| 1086 | const int GetLoggingEndpointResponse::Reason_ARRAYSIZE; |
| 1087 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1088 | const ::google::protobuf::EnumDescriptor* GetMsgBusEndpointResponse_Reason_descriptor() { |
| 1089 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1090 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[8]; |
| 1091 | } |
| 1092 | bool GetMsgBusEndpointResponse_Reason_IsValid(int value) { |
| 1093 | switch (value) { |
| 1094 | case 0: |
| 1095 | case 1: |
| 1096 | case 2: |
| 1097 | return true; |
| 1098 | default: |
| 1099 | return false; |
| 1100 | } |
| 1101 | } |
| 1102 | |
| 1103 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1104 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::UNDEFINED_REASON; |
| 1105 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::INTERNAL_ERROR; |
| 1106 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::DEVICE_UNREACHABLE; |
| 1107 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MIN; |
| 1108 | const GetMsgBusEndpointResponse_Reason GetMsgBusEndpointResponse::Reason_MAX; |
| 1109 | const int GetMsgBusEndpointResponse::Reason_ARRAYSIZE; |
| 1110 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1111 | const ::google::protobuf::EnumDescriptor* SetLogLevelResponse_Reason_descriptor() { |
| 1112 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1113 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[9]; |
| 1114 | } |
| 1115 | bool SetLogLevelResponse_Reason_IsValid(int value) { |
| 1116 | switch (value) { |
| 1117 | case 0: |
| 1118 | case 1: |
| 1119 | case 2: |
| 1120 | case 3: |
| 1121 | case 4: |
| 1122 | return true; |
| 1123 | default: |
| 1124 | return false; |
| 1125 | } |
| 1126 | } |
| 1127 | |
| 1128 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1129 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNDEFINED_REASON; |
| 1130 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_DEVICE; |
| 1131 | const SetLogLevelResponse_Reason SetLogLevelResponse::INTERNAL_ERROR; |
| 1132 | const SetLogLevelResponse_Reason SetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1133 | const SetLogLevelResponse_Reason SetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1134 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MIN; |
| 1135 | const SetLogLevelResponse_Reason SetLogLevelResponse::Reason_MAX; |
| 1136 | const int SetLogLevelResponse::Reason_ARRAYSIZE; |
| 1137 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1138 | const ::google::protobuf::EnumDescriptor* GetLogLevelResponse_Reason_descriptor() { |
| 1139 | ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1140 | return file_level_enum_descriptors_dmi_2fhw_5fmanagement_5fservice_2eproto[10]; |
| 1141 | } |
| 1142 | bool GetLogLevelResponse_Reason_IsValid(int value) { |
| 1143 | switch (value) { |
| 1144 | case 0: |
| 1145 | case 1: |
| 1146 | case 2: |
| 1147 | case 3: |
| 1148 | case 4: |
| 1149 | return true; |
| 1150 | default: |
| 1151 | return false; |
| 1152 | } |
| 1153 | } |
| 1154 | |
| 1155 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1156 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNDEFINED_REASON; |
| 1157 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_DEVICE; |
| 1158 | const GetLogLevelResponse_Reason GetLogLevelResponse::INTERNAL_ERROR; |
| 1159 | const GetLogLevelResponse_Reason GetLogLevelResponse::UNKNOWN_LOG_ENTITY; |
| 1160 | const GetLogLevelResponse_Reason GetLogLevelResponse::DEVICE_UNREACHABLE; |
| 1161 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MIN; |
| 1162 | const GetLogLevelResponse_Reason GetLogLevelResponse::Reason_MAX; |
| 1163 | const int GetLogLevelResponse::Reason_ARRAYSIZE; |
| 1164 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1165 | |
| 1166 | // =================================================================== |
| 1167 | |
| 1168 | void PhysicalInventoryRequest::InitAsDefaultInstance() { |
| 1169 | ::dmi::_PhysicalInventoryRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1170 | ::dmi::Uuid::internal_default_instance()); |
| 1171 | } |
| 1172 | class PhysicalInventoryRequest::HasBitSetters { |
| 1173 | public: |
| 1174 | static const ::dmi::Uuid& device_uuid(const PhysicalInventoryRequest* msg); |
| 1175 | }; |
| 1176 | |
| 1177 | const ::dmi::Uuid& |
| 1178 | PhysicalInventoryRequest::HasBitSetters::device_uuid(const PhysicalInventoryRequest* msg) { |
| 1179 | return *msg->device_uuid_; |
| 1180 | } |
| 1181 | void PhysicalInventoryRequest::clear_device_uuid() { |
| 1182 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1183 | delete device_uuid_; |
| 1184 | } |
| 1185 | device_uuid_ = nullptr; |
| 1186 | } |
| 1187 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1188 | const int PhysicalInventoryRequest::kDeviceUuidFieldNumber; |
| 1189 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1190 | |
| 1191 | PhysicalInventoryRequest::PhysicalInventoryRequest() |
| 1192 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1193 | SharedCtor(); |
| 1194 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryRequest) |
| 1195 | } |
| 1196 | PhysicalInventoryRequest::PhysicalInventoryRequest(const PhysicalInventoryRequest& from) |
| 1197 | : ::google::protobuf::Message(), |
| 1198 | _internal_metadata_(nullptr) { |
| 1199 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1200 | if (from.has_device_uuid()) { |
| 1201 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1202 | } else { |
| 1203 | device_uuid_ = nullptr; |
| 1204 | } |
| 1205 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryRequest) |
| 1206 | } |
| 1207 | |
| 1208 | void PhysicalInventoryRequest::SharedCtor() { |
| 1209 | ::google::protobuf::internal::InitSCC( |
| 1210 | &scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1211 | device_uuid_ = nullptr; |
| 1212 | } |
| 1213 | |
| 1214 | PhysicalInventoryRequest::~PhysicalInventoryRequest() { |
| 1215 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryRequest) |
| 1216 | SharedDtor(); |
| 1217 | } |
| 1218 | |
| 1219 | void PhysicalInventoryRequest::SharedDtor() { |
| 1220 | if (this != internal_default_instance()) delete device_uuid_; |
| 1221 | } |
| 1222 | |
| 1223 | void PhysicalInventoryRequest::SetCachedSize(int size) const { |
| 1224 | _cached_size_.Set(size); |
| 1225 | } |
| 1226 | const PhysicalInventoryRequest& PhysicalInventoryRequest::default_instance() { |
| 1227 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1228 | return *internal_default_instance(); |
| 1229 | } |
| 1230 | |
| 1231 | |
| 1232 | void PhysicalInventoryRequest::Clear() { |
| 1233 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryRequest) |
| 1234 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1235 | // Prevent compiler warnings about cached_has_bits being unused |
| 1236 | (void) cached_has_bits; |
| 1237 | |
| 1238 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1239 | delete device_uuid_; |
| 1240 | } |
| 1241 | device_uuid_ = nullptr; |
| 1242 | _internal_metadata_.Clear(); |
| 1243 | } |
| 1244 | |
| 1245 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1246 | const char* PhysicalInventoryRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 1247 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1248 | auto msg = static_cast<PhysicalInventoryRequest*>(object); |
| 1249 | ::google::protobuf::int32 size; (void)size; |
| 1250 | int depth; (void)depth; |
| 1251 | ::google::protobuf::uint32 tag; |
| 1252 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1253 | auto ptr = begin; |
| 1254 | while (ptr < end) { |
| 1255 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1256 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1257 | switch (tag >> 3) { |
| 1258 | // .dmi.Uuid device_uuid = 1; |
| 1259 | case 1: { |
| 1260 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 1261 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1262 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1263 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 1264 | object = msg->mutable_device_uuid(); |
| 1265 | if (size > end - ptr) goto len_delim_till_end; |
| 1266 | ptr += size; |
| 1267 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1268 | {parser_till_end, object}, ptr - size, ptr)); |
| 1269 | break; |
| 1270 | } |
| 1271 | default: { |
| 1272 | handle_unusual: |
| 1273 | if ((tag & 7) == 4 || tag == 0) { |
| 1274 | ctx->EndGroup(tag); |
| 1275 | return ptr; |
| 1276 | } |
| 1277 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1278 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1279 | ptr = res.first; |
| 1280 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1281 | if (res.second) return ptr; |
| 1282 | } |
| 1283 | } // switch |
| 1284 | } // while |
| 1285 | return ptr; |
| 1286 | len_delim_till_end: |
| 1287 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1288 | {parser_till_end, object}, size); |
| 1289 | } |
| 1290 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1291 | bool PhysicalInventoryRequest::MergePartialFromCodedStream( |
| 1292 | ::google::protobuf::io::CodedInputStream* input) { |
| 1293 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1294 | ::google::protobuf::uint32 tag; |
| 1295 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryRequest) |
| 1296 | for (;;) { |
| 1297 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1298 | tag = p.first; |
| 1299 | if (!p.second) goto handle_unusual; |
| 1300 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1301 | // .dmi.Uuid device_uuid = 1; |
| 1302 | case 1: { |
| 1303 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 1304 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1305 | input, mutable_device_uuid())); |
| 1306 | } else { |
| 1307 | goto handle_unusual; |
| 1308 | } |
| 1309 | break; |
| 1310 | } |
| 1311 | |
| 1312 | default: { |
| 1313 | handle_unusual: |
| 1314 | if (tag == 0) { |
| 1315 | goto success; |
| 1316 | } |
| 1317 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1318 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1319 | break; |
| 1320 | } |
| 1321 | } |
| 1322 | } |
| 1323 | success: |
| 1324 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryRequest) |
| 1325 | return true; |
| 1326 | failure: |
| 1327 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryRequest) |
| 1328 | return false; |
| 1329 | #undef DO_ |
| 1330 | } |
| 1331 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1332 | |
| 1333 | void PhysicalInventoryRequest::SerializeWithCachedSizes( |
| 1334 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1335 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryRequest) |
| 1336 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1337 | (void) cached_has_bits; |
| 1338 | |
| 1339 | // .dmi.Uuid device_uuid = 1; |
| 1340 | if (this->has_device_uuid()) { |
| 1341 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1342 | 1, HasBitSetters::device_uuid(this), output); |
| 1343 | } |
| 1344 | |
| 1345 | if (_internal_metadata_.have_unknown_fields()) { |
| 1346 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1347 | _internal_metadata_.unknown_fields(), output); |
| 1348 | } |
| 1349 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryRequest) |
| 1350 | } |
| 1351 | |
| 1352 | ::google::protobuf::uint8* PhysicalInventoryRequest::InternalSerializeWithCachedSizesToArray( |
| 1353 | ::google::protobuf::uint8* target) const { |
| 1354 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryRequest) |
| 1355 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1356 | (void) cached_has_bits; |
| 1357 | |
| 1358 | // .dmi.Uuid device_uuid = 1; |
| 1359 | if (this->has_device_uuid()) { |
| 1360 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1361 | InternalWriteMessageToArray( |
| 1362 | 1, HasBitSetters::device_uuid(this), target); |
| 1363 | } |
| 1364 | |
| 1365 | if (_internal_metadata_.have_unknown_fields()) { |
| 1366 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1367 | _internal_metadata_.unknown_fields(), target); |
| 1368 | } |
| 1369 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryRequest) |
| 1370 | return target; |
| 1371 | } |
| 1372 | |
| 1373 | size_t PhysicalInventoryRequest::ByteSizeLong() const { |
| 1374 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryRequest) |
| 1375 | size_t total_size = 0; |
| 1376 | |
| 1377 | if (_internal_metadata_.have_unknown_fields()) { |
| 1378 | total_size += |
| 1379 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1380 | _internal_metadata_.unknown_fields()); |
| 1381 | } |
| 1382 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1383 | // Prevent compiler warnings about cached_has_bits being unused |
| 1384 | (void) cached_has_bits; |
| 1385 | |
| 1386 | // .dmi.Uuid device_uuid = 1; |
| 1387 | if (this->has_device_uuid()) { |
| 1388 | total_size += 1 + |
| 1389 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1390 | *device_uuid_); |
| 1391 | } |
| 1392 | |
| 1393 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1394 | SetCachedSize(cached_size); |
| 1395 | return total_size; |
| 1396 | } |
| 1397 | |
| 1398 | void PhysicalInventoryRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 1399 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1400 | GOOGLE_DCHECK_NE(&from, this); |
| 1401 | const PhysicalInventoryRequest* source = |
| 1402 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryRequest>( |
| 1403 | &from); |
| 1404 | if (source == nullptr) { |
| 1405 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryRequest) |
| 1406 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1407 | } else { |
| 1408 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryRequest) |
| 1409 | MergeFrom(*source); |
| 1410 | } |
| 1411 | } |
| 1412 | |
| 1413 | void PhysicalInventoryRequest::MergeFrom(const PhysicalInventoryRequest& from) { |
| 1414 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryRequest) |
| 1415 | GOOGLE_DCHECK_NE(&from, this); |
| 1416 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1417 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1418 | (void) cached_has_bits; |
| 1419 | |
| 1420 | if (from.has_device_uuid()) { |
| 1421 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 1422 | } |
| 1423 | } |
| 1424 | |
| 1425 | void PhysicalInventoryRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 1426 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1427 | if (&from == this) return; |
| 1428 | Clear(); |
| 1429 | MergeFrom(from); |
| 1430 | } |
| 1431 | |
| 1432 | void PhysicalInventoryRequest::CopyFrom(const PhysicalInventoryRequest& from) { |
| 1433 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryRequest) |
| 1434 | if (&from == this) return; |
| 1435 | Clear(); |
| 1436 | MergeFrom(from); |
| 1437 | } |
| 1438 | |
| 1439 | bool PhysicalInventoryRequest::IsInitialized() const { |
| 1440 | return true; |
| 1441 | } |
| 1442 | |
| 1443 | void PhysicalInventoryRequest::Swap(PhysicalInventoryRequest* other) { |
| 1444 | if (other == this) return; |
| 1445 | InternalSwap(other); |
| 1446 | } |
| 1447 | void PhysicalInventoryRequest::InternalSwap(PhysicalInventoryRequest* other) { |
| 1448 | using std::swap; |
| 1449 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1450 | swap(device_uuid_, other->device_uuid_); |
| 1451 | } |
| 1452 | |
| 1453 | ::google::protobuf::Metadata PhysicalInventoryRequest::GetMetadata() const { |
| 1454 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1455 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1456 | } |
| 1457 | |
| 1458 | |
| 1459 | // =================================================================== |
| 1460 | |
| 1461 | void PhysicalInventoryResponse::InitAsDefaultInstance() { |
| 1462 | ::dmi::_PhysicalInventoryResponse_default_instance_._instance.get_mutable()->inventory_ = const_cast< ::dmi::Hardware*>( |
| 1463 | ::dmi::Hardware::internal_default_instance()); |
| 1464 | } |
| 1465 | class PhysicalInventoryResponse::HasBitSetters { |
| 1466 | public: |
| 1467 | static const ::dmi::Hardware& inventory(const PhysicalInventoryResponse* msg); |
| 1468 | }; |
| 1469 | |
| 1470 | const ::dmi::Hardware& |
| 1471 | PhysicalInventoryResponse::HasBitSetters::inventory(const PhysicalInventoryResponse* msg) { |
| 1472 | return *msg->inventory_; |
| 1473 | } |
| 1474 | void PhysicalInventoryResponse::clear_inventory() { |
| 1475 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1476 | delete inventory_; |
| 1477 | } |
| 1478 | inventory_ = nullptr; |
| 1479 | } |
| 1480 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1481 | const int PhysicalInventoryResponse::kStatusFieldNumber; |
| 1482 | const int PhysicalInventoryResponse::kReasonFieldNumber; |
| 1483 | const int PhysicalInventoryResponse::kInventoryFieldNumber; |
| 1484 | const int PhysicalInventoryResponse::kReasonDetailFieldNumber; |
| 1485 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1486 | |
| 1487 | PhysicalInventoryResponse::PhysicalInventoryResponse() |
| 1488 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1489 | SharedCtor(); |
| 1490 | // @@protoc_insertion_point(constructor:dmi.PhysicalInventoryResponse) |
| 1491 | } |
| 1492 | PhysicalInventoryResponse::PhysicalInventoryResponse(const PhysicalInventoryResponse& from) |
| 1493 | : ::google::protobuf::Message(), |
| 1494 | _internal_metadata_(nullptr) { |
| 1495 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1496 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1497 | if (from.reason_detail().size() > 0) { |
| 1498 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1499 | } |
| 1500 | if (from.has_inventory()) { |
| 1501 | inventory_ = new ::dmi::Hardware(*from.inventory_); |
| 1502 | } else { |
| 1503 | inventory_ = nullptr; |
| 1504 | } |
| 1505 | ::memcpy(&status_, &from.status_, |
| 1506 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 1507 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1508 | // @@protoc_insertion_point(copy_constructor:dmi.PhysicalInventoryResponse) |
| 1509 | } |
| 1510 | |
| 1511 | void PhysicalInventoryResponse::SharedCtor() { |
| 1512 | ::google::protobuf::internal::InitSCC( |
| 1513 | &scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1514 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1515 | ::memset(&inventory_, 0, static_cast<size_t>( |
| 1516 | reinterpret_cast<char*>(&reason_) - |
| 1517 | reinterpret_cast<char*>(&inventory_)) + sizeof(reason_)); |
| 1518 | } |
| 1519 | |
| 1520 | PhysicalInventoryResponse::~PhysicalInventoryResponse() { |
| 1521 | // @@protoc_insertion_point(destructor:dmi.PhysicalInventoryResponse) |
| 1522 | SharedDtor(); |
| 1523 | } |
| 1524 | |
| 1525 | void PhysicalInventoryResponse::SharedDtor() { |
| 1526 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1527 | if (this != internal_default_instance()) delete inventory_; |
| 1528 | } |
| 1529 | |
| 1530 | void PhysicalInventoryResponse::SetCachedSize(int size) const { |
| 1531 | _cached_size_.Set(size); |
| 1532 | } |
| 1533 | const PhysicalInventoryResponse& PhysicalInventoryResponse::default_instance() { |
| 1534 | ::google::protobuf::internal::InitSCC(&::scc_info_PhysicalInventoryResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1535 | return *internal_default_instance(); |
| 1536 | } |
| 1537 | |
| 1538 | |
| 1539 | void PhysicalInventoryResponse::Clear() { |
| 1540 | // @@protoc_insertion_point(message_clear_start:dmi.PhysicalInventoryResponse) |
| 1541 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1542 | // Prevent compiler warnings about cached_has_bits being unused |
| 1543 | (void) cached_has_bits; |
| 1544 | |
| 1545 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1546 | if (GetArenaNoVirtual() == nullptr && inventory_ != nullptr) { |
| 1547 | delete inventory_; |
| 1548 | } |
| 1549 | inventory_ = nullptr; |
| 1550 | ::memset(&status_, 0, static_cast<size_t>( |
| 1551 | reinterpret_cast<char*>(&reason_) - |
| 1552 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 1553 | _internal_metadata_.Clear(); |
| 1554 | } |
| 1555 | |
| 1556 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1557 | const char* PhysicalInventoryResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 1558 | ::google::protobuf::internal::ParseContext* ctx) { |
| 1559 | auto msg = static_cast<PhysicalInventoryResponse*>(object); |
| 1560 | ::google::protobuf::int32 size; (void)size; |
| 1561 | int depth; (void)depth; |
| 1562 | ::google::protobuf::uint32 tag; |
| 1563 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 1564 | auto ptr = begin; |
| 1565 | while (ptr < end) { |
| 1566 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 1567 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1568 | switch (tag >> 3) { |
| 1569 | // .dmi.Status status = 1; |
| 1570 | case 1: { |
| 1571 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 1572 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1573 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 1574 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1575 | break; |
| 1576 | } |
| 1577 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1578 | case 2: { |
| 1579 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 1580 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 1581 | msg->set_reason(static_cast<::dmi::PhysicalInventoryResponse_Reason>(val)); |
| 1582 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1583 | break; |
| 1584 | } |
| 1585 | // .dmi.Hardware inventory = 3; |
| 1586 | case 3: { |
| 1587 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 1588 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1589 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1590 | parser_till_end = ::dmi::Hardware::_InternalParse; |
| 1591 | object = msg->mutable_inventory(); |
| 1592 | if (size > end - ptr) goto len_delim_till_end; |
| 1593 | ptr += size; |
| 1594 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 1595 | {parser_till_end, object}, ptr - size, ptr)); |
| 1596 | break; |
| 1597 | } |
| 1598 | // string reason_detail = 4; |
| 1599 | case 4: { |
| 1600 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 1601 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 1602 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 1603 | ctx->extra_parse_data().SetFieldName("dmi.PhysicalInventoryResponse.reason_detail"); |
| 1604 | object = msg->mutable_reason_detail(); |
| 1605 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 1606 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 1607 | goto string_till_end; |
| 1608 | } |
| 1609 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 1610 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 1611 | ptr += size; |
| 1612 | break; |
| 1613 | } |
| 1614 | default: { |
| 1615 | handle_unusual: |
| 1616 | if ((tag & 7) == 4 || tag == 0) { |
| 1617 | ctx->EndGroup(tag); |
| 1618 | return ptr; |
| 1619 | } |
| 1620 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 1621 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 1622 | ptr = res.first; |
| 1623 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 1624 | if (res.second) return ptr; |
| 1625 | } |
| 1626 | } // switch |
| 1627 | } // while |
| 1628 | return ptr; |
| 1629 | string_till_end: |
| 1630 | static_cast<::std::string*>(object)->clear(); |
| 1631 | static_cast<::std::string*>(object)->reserve(size); |
| 1632 | goto len_delim_till_end; |
| 1633 | len_delim_till_end: |
| 1634 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 1635 | {parser_till_end, object}, size); |
| 1636 | } |
| 1637 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1638 | bool PhysicalInventoryResponse::MergePartialFromCodedStream( |
| 1639 | ::google::protobuf::io::CodedInputStream* input) { |
| 1640 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1641 | ::google::protobuf::uint32 tag; |
| 1642 | // @@protoc_insertion_point(parse_start:dmi.PhysicalInventoryResponse) |
| 1643 | for (;;) { |
| 1644 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 1645 | tag = p.first; |
| 1646 | if (!p.second) goto handle_unusual; |
| 1647 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 1648 | // .dmi.Status status = 1; |
| 1649 | case 1: { |
| 1650 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 1651 | int value = 0; |
| 1652 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1653 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1654 | input, &value))); |
| 1655 | set_status(static_cast< ::dmi::Status >(value)); |
| 1656 | } else { |
| 1657 | goto handle_unusual; |
| 1658 | } |
| 1659 | break; |
| 1660 | } |
| 1661 | |
| 1662 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1663 | case 2: { |
| 1664 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 1665 | int value = 0; |
| 1666 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1667 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 1668 | input, &value))); |
| 1669 | set_reason(static_cast< ::dmi::PhysicalInventoryResponse_Reason >(value)); |
| 1670 | } else { |
| 1671 | goto handle_unusual; |
| 1672 | } |
| 1673 | break; |
| 1674 | } |
| 1675 | |
| 1676 | // .dmi.Hardware inventory = 3; |
| 1677 | case 3: { |
| 1678 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 1679 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 1680 | input, mutable_inventory())); |
| 1681 | } else { |
| 1682 | goto handle_unusual; |
| 1683 | } |
| 1684 | break; |
| 1685 | } |
| 1686 | |
| 1687 | // string reason_detail = 4; |
| 1688 | case 4: { |
| 1689 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 1690 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 1691 | input, this->mutable_reason_detail())); |
| 1692 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1693 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1694 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 1695 | "dmi.PhysicalInventoryResponse.reason_detail")); |
| 1696 | } else { |
| 1697 | goto handle_unusual; |
| 1698 | } |
| 1699 | break; |
| 1700 | } |
| 1701 | |
| 1702 | default: { |
| 1703 | handle_unusual: |
| 1704 | if (tag == 0) { |
| 1705 | goto success; |
| 1706 | } |
| 1707 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 1708 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 1709 | break; |
| 1710 | } |
| 1711 | } |
| 1712 | } |
| 1713 | success: |
| 1714 | // @@protoc_insertion_point(parse_success:dmi.PhysicalInventoryResponse) |
| 1715 | return true; |
| 1716 | failure: |
| 1717 | // @@protoc_insertion_point(parse_failure:dmi.PhysicalInventoryResponse) |
| 1718 | return false; |
| 1719 | #undef DO_ |
| 1720 | } |
| 1721 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 1722 | |
| 1723 | void PhysicalInventoryResponse::SerializeWithCachedSizes( |
| 1724 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 1725 | // @@protoc_insertion_point(serialize_start:dmi.PhysicalInventoryResponse) |
| 1726 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1727 | (void) cached_has_bits; |
| 1728 | |
| 1729 | // .dmi.Status status = 1; |
| 1730 | if (this->status() != 0) { |
| 1731 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1732 | 1, this->status(), output); |
| 1733 | } |
| 1734 | |
| 1735 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1736 | if (this->reason() != 0) { |
| 1737 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 1738 | 2, this->reason(), output); |
| 1739 | } |
| 1740 | |
| 1741 | // .dmi.Hardware inventory = 3; |
| 1742 | if (this->has_inventory()) { |
| 1743 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1744 | 3, HasBitSetters::inventory(this), output); |
| 1745 | } |
| 1746 | |
| 1747 | // string reason_detail = 4; |
| 1748 | if (this->reason_detail().size() > 0) { |
| 1749 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1750 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1751 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1752 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1753 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 1754 | 4, this->reason_detail(), output); |
| 1755 | } |
| 1756 | |
| 1757 | if (_internal_metadata_.have_unknown_fields()) { |
| 1758 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 1759 | _internal_metadata_.unknown_fields(), output); |
| 1760 | } |
| 1761 | // @@protoc_insertion_point(serialize_end:dmi.PhysicalInventoryResponse) |
| 1762 | } |
| 1763 | |
| 1764 | ::google::protobuf::uint8* PhysicalInventoryResponse::InternalSerializeWithCachedSizesToArray( |
| 1765 | ::google::protobuf::uint8* target) const { |
| 1766 | // @@protoc_insertion_point(serialize_to_array_start:dmi.PhysicalInventoryResponse) |
| 1767 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1768 | (void) cached_has_bits; |
| 1769 | |
| 1770 | // .dmi.Status status = 1; |
| 1771 | if (this->status() != 0) { |
| 1772 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1773 | 1, this->status(), target); |
| 1774 | } |
| 1775 | |
| 1776 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1777 | if (this->reason() != 0) { |
| 1778 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 1779 | 2, this->reason(), target); |
| 1780 | } |
| 1781 | |
| 1782 | // .dmi.Hardware inventory = 3; |
| 1783 | if (this->has_inventory()) { |
| 1784 | target = ::google::protobuf::internal::WireFormatLite:: |
| 1785 | InternalWriteMessageToArray( |
| 1786 | 3, HasBitSetters::inventory(this), target); |
| 1787 | } |
| 1788 | |
| 1789 | // string reason_detail = 4; |
| 1790 | if (this->reason_detail().size() > 0) { |
| 1791 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 1792 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 1793 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 1794 | "dmi.PhysicalInventoryResponse.reason_detail"); |
| 1795 | target = |
| 1796 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 1797 | 4, this->reason_detail(), target); |
| 1798 | } |
| 1799 | |
| 1800 | if (_internal_metadata_.have_unknown_fields()) { |
| 1801 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 1802 | _internal_metadata_.unknown_fields(), target); |
| 1803 | } |
| 1804 | // @@protoc_insertion_point(serialize_to_array_end:dmi.PhysicalInventoryResponse) |
| 1805 | return target; |
| 1806 | } |
| 1807 | |
| 1808 | size_t PhysicalInventoryResponse::ByteSizeLong() const { |
| 1809 | // @@protoc_insertion_point(message_byte_size_start:dmi.PhysicalInventoryResponse) |
| 1810 | size_t total_size = 0; |
| 1811 | |
| 1812 | if (_internal_metadata_.have_unknown_fields()) { |
| 1813 | total_size += |
| 1814 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 1815 | _internal_metadata_.unknown_fields()); |
| 1816 | } |
| 1817 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1818 | // Prevent compiler warnings about cached_has_bits being unused |
| 1819 | (void) cached_has_bits; |
| 1820 | |
| 1821 | // string reason_detail = 4; |
| 1822 | if (this->reason_detail().size() > 0) { |
| 1823 | total_size += 1 + |
| 1824 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 1825 | this->reason_detail()); |
| 1826 | } |
| 1827 | |
| 1828 | // .dmi.Hardware inventory = 3; |
| 1829 | if (this->has_inventory()) { |
| 1830 | total_size += 1 + |
| 1831 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 1832 | *inventory_); |
| 1833 | } |
| 1834 | |
| 1835 | // .dmi.Status status = 1; |
| 1836 | if (this->status() != 0) { |
| 1837 | total_size += 1 + |
| 1838 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 1839 | } |
| 1840 | |
| 1841 | // .dmi.PhysicalInventoryResponse.Reason reason = 2; |
| 1842 | if (this->reason() != 0) { |
| 1843 | total_size += 1 + |
| 1844 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 1845 | } |
| 1846 | |
| 1847 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 1848 | SetCachedSize(cached_size); |
| 1849 | return total_size; |
| 1850 | } |
| 1851 | |
| 1852 | void PhysicalInventoryResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 1853 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1854 | GOOGLE_DCHECK_NE(&from, this); |
| 1855 | const PhysicalInventoryResponse* source = |
| 1856 | ::google::protobuf::DynamicCastToGenerated<PhysicalInventoryResponse>( |
| 1857 | &from); |
| 1858 | if (source == nullptr) { |
| 1859 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.PhysicalInventoryResponse) |
| 1860 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1861 | } else { |
| 1862 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.PhysicalInventoryResponse) |
| 1863 | MergeFrom(*source); |
| 1864 | } |
| 1865 | } |
| 1866 | |
| 1867 | void PhysicalInventoryResponse::MergeFrom(const PhysicalInventoryResponse& from) { |
| 1868 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.PhysicalInventoryResponse) |
| 1869 | GOOGLE_DCHECK_NE(&from, this); |
| 1870 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1871 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 1872 | (void) cached_has_bits; |
| 1873 | |
| 1874 | if (from.reason_detail().size() > 0) { |
| 1875 | |
| 1876 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 1877 | } |
| 1878 | if (from.has_inventory()) { |
| 1879 | mutable_inventory()->::dmi::Hardware::MergeFrom(from.inventory()); |
| 1880 | } |
| 1881 | if (from.status() != 0) { |
| 1882 | set_status(from.status()); |
| 1883 | } |
| 1884 | if (from.reason() != 0) { |
| 1885 | set_reason(from.reason()); |
| 1886 | } |
| 1887 | } |
| 1888 | |
| 1889 | void PhysicalInventoryResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 1890 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.PhysicalInventoryResponse) |
| 1891 | if (&from == this) return; |
| 1892 | Clear(); |
| 1893 | MergeFrom(from); |
| 1894 | } |
| 1895 | |
| 1896 | void PhysicalInventoryResponse::CopyFrom(const PhysicalInventoryResponse& from) { |
| 1897 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.PhysicalInventoryResponse) |
| 1898 | if (&from == this) return; |
| 1899 | Clear(); |
| 1900 | MergeFrom(from); |
| 1901 | } |
| 1902 | |
| 1903 | bool PhysicalInventoryResponse::IsInitialized() const { |
| 1904 | return true; |
| 1905 | } |
| 1906 | |
| 1907 | void PhysicalInventoryResponse::Swap(PhysicalInventoryResponse* other) { |
| 1908 | if (other == this) return; |
| 1909 | InternalSwap(other); |
| 1910 | } |
| 1911 | void PhysicalInventoryResponse::InternalSwap(PhysicalInventoryResponse* other) { |
| 1912 | using std::swap; |
| 1913 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1914 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 1915 | GetArenaNoVirtual()); |
| 1916 | swap(inventory_, other->inventory_); |
| 1917 | swap(status_, other->status_); |
| 1918 | swap(reason_, other->reason_); |
| 1919 | } |
| 1920 | |
| 1921 | ::google::protobuf::Metadata PhysicalInventoryResponse::GetMetadata() const { |
| 1922 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 1923 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 1924 | } |
| 1925 | |
| 1926 | |
| 1927 | // =================================================================== |
| 1928 | |
| 1929 | void HWComponentInfoGetRequest::InitAsDefaultInstance() { |
| 1930 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1931 | ::dmi::Uuid::internal_default_instance()); |
| 1932 | ::dmi::_HWComponentInfoGetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 1933 | ::dmi::Uuid::internal_default_instance()); |
| 1934 | } |
| 1935 | class HWComponentInfoGetRequest::HasBitSetters { |
| 1936 | public: |
| 1937 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoGetRequest* msg); |
| 1938 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoGetRequest* msg); |
| 1939 | }; |
| 1940 | |
| 1941 | const ::dmi::Uuid& |
| 1942 | HWComponentInfoGetRequest::HasBitSetters::device_uuid(const HWComponentInfoGetRequest* msg) { |
| 1943 | return *msg->device_uuid_; |
| 1944 | } |
| 1945 | const ::dmi::Uuid& |
| 1946 | HWComponentInfoGetRequest::HasBitSetters::component_uuid(const HWComponentInfoGetRequest* msg) { |
| 1947 | return *msg->component_uuid_; |
| 1948 | } |
| 1949 | void HWComponentInfoGetRequest::clear_device_uuid() { |
| 1950 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 1951 | delete device_uuid_; |
| 1952 | } |
| 1953 | device_uuid_ = nullptr; |
| 1954 | } |
| 1955 | void HWComponentInfoGetRequest::clear_component_uuid() { |
| 1956 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 1957 | delete component_uuid_; |
| 1958 | } |
| 1959 | component_uuid_ = nullptr; |
| 1960 | } |
| 1961 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1962 | const int HWComponentInfoGetRequest::kDeviceUuidFieldNumber; |
| 1963 | const int HWComponentInfoGetRequest::kComponentUuidFieldNumber; |
| 1964 | const int HWComponentInfoGetRequest::kComponentNameFieldNumber; |
| 1965 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1966 | |
| 1967 | HWComponentInfoGetRequest::HWComponentInfoGetRequest() |
| 1968 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 1969 | SharedCtor(); |
| 1970 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetRequest) |
| 1971 | } |
| 1972 | HWComponentInfoGetRequest::HWComponentInfoGetRequest(const HWComponentInfoGetRequest& from) |
| 1973 | : ::google::protobuf::Message(), |
| 1974 | _internal_metadata_(nullptr) { |
| 1975 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 1976 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1977 | if (from.component_name().size() > 0) { |
| 1978 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 1979 | } |
| 1980 | if (from.has_device_uuid()) { |
| 1981 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 1982 | } else { |
| 1983 | device_uuid_ = nullptr; |
| 1984 | } |
| 1985 | if (from.has_component_uuid()) { |
| 1986 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 1987 | } else { |
| 1988 | component_uuid_ = nullptr; |
| 1989 | } |
| 1990 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetRequest) |
| 1991 | } |
| 1992 | |
| 1993 | void HWComponentInfoGetRequest::SharedCtor() { |
| 1994 | ::google::protobuf::internal::InitSCC( |
| 1995 | &scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 1996 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 1997 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 1998 | reinterpret_cast<char*>(&component_uuid_) - |
| 1999 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(component_uuid_)); |
| 2000 | } |
| 2001 | |
| 2002 | HWComponentInfoGetRequest::~HWComponentInfoGetRequest() { |
| 2003 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetRequest) |
| 2004 | SharedDtor(); |
| 2005 | } |
| 2006 | |
| 2007 | void HWComponentInfoGetRequest::SharedDtor() { |
| 2008 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2009 | if (this != internal_default_instance()) delete device_uuid_; |
| 2010 | if (this != internal_default_instance()) delete component_uuid_; |
| 2011 | } |
| 2012 | |
| 2013 | void HWComponentInfoGetRequest::SetCachedSize(int size) const { |
| 2014 | _cached_size_.Set(size); |
| 2015 | } |
| 2016 | const HWComponentInfoGetRequest& HWComponentInfoGetRequest::default_instance() { |
| 2017 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2018 | return *internal_default_instance(); |
| 2019 | } |
| 2020 | |
| 2021 | |
| 2022 | void HWComponentInfoGetRequest::Clear() { |
| 2023 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetRequest) |
| 2024 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2025 | // Prevent compiler warnings about cached_has_bits being unused |
| 2026 | (void) cached_has_bits; |
| 2027 | |
| 2028 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2029 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2030 | delete device_uuid_; |
| 2031 | } |
| 2032 | device_uuid_ = nullptr; |
| 2033 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2034 | delete component_uuid_; |
| 2035 | } |
| 2036 | component_uuid_ = nullptr; |
| 2037 | _internal_metadata_.Clear(); |
| 2038 | } |
| 2039 | |
| 2040 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2041 | const char* HWComponentInfoGetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2042 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2043 | auto msg = static_cast<HWComponentInfoGetRequest*>(object); |
| 2044 | ::google::protobuf::int32 size; (void)size; |
| 2045 | int depth; (void)depth; |
| 2046 | ::google::protobuf::uint32 tag; |
| 2047 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2048 | auto ptr = begin; |
| 2049 | while (ptr < end) { |
| 2050 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2051 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2052 | switch (tag >> 3) { |
| 2053 | // .dmi.Uuid device_uuid = 1; |
| 2054 | case 1: { |
| 2055 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2056 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2057 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2058 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2059 | object = msg->mutable_device_uuid(); |
| 2060 | if (size > end - ptr) goto len_delim_till_end; |
| 2061 | ptr += size; |
| 2062 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2063 | {parser_till_end, object}, ptr - size, ptr)); |
| 2064 | break; |
| 2065 | } |
| 2066 | // .dmi.Uuid component_uuid = 2; |
| 2067 | case 2: { |
| 2068 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 2069 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2070 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2071 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2072 | object = msg->mutable_component_uuid(); |
| 2073 | if (size > end - ptr) goto len_delim_till_end; |
| 2074 | ptr += size; |
| 2075 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2076 | {parser_till_end, object}, ptr - size, ptr)); |
| 2077 | break; |
| 2078 | } |
| 2079 | // string component_name = 3; |
| 2080 | case 3: { |
| 2081 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2082 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2083 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2084 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetRequest.component_name"); |
| 2085 | object = msg->mutable_component_name(); |
| 2086 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2087 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2088 | goto string_till_end; |
| 2089 | } |
| 2090 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2091 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2092 | ptr += size; |
| 2093 | break; |
| 2094 | } |
| 2095 | default: { |
| 2096 | handle_unusual: |
| 2097 | if ((tag & 7) == 4 || tag == 0) { |
| 2098 | ctx->EndGroup(tag); |
| 2099 | return ptr; |
| 2100 | } |
| 2101 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2102 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2103 | ptr = res.first; |
| 2104 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2105 | if (res.second) return ptr; |
| 2106 | } |
| 2107 | } // switch |
| 2108 | } // while |
| 2109 | return ptr; |
| 2110 | string_till_end: |
| 2111 | static_cast<::std::string*>(object)->clear(); |
| 2112 | static_cast<::std::string*>(object)->reserve(size); |
| 2113 | goto len_delim_till_end; |
| 2114 | len_delim_till_end: |
| 2115 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2116 | {parser_till_end, object}, size); |
| 2117 | } |
| 2118 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2119 | bool HWComponentInfoGetRequest::MergePartialFromCodedStream( |
| 2120 | ::google::protobuf::io::CodedInputStream* input) { |
| 2121 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2122 | ::google::protobuf::uint32 tag; |
| 2123 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetRequest) |
| 2124 | for (;;) { |
| 2125 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2126 | tag = p.first; |
| 2127 | if (!p.second) goto handle_unusual; |
| 2128 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2129 | // .dmi.Uuid device_uuid = 1; |
| 2130 | case 1: { |
| 2131 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 2132 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2133 | input, mutable_device_uuid())); |
| 2134 | } else { |
| 2135 | goto handle_unusual; |
| 2136 | } |
| 2137 | break; |
| 2138 | } |
| 2139 | |
| 2140 | // .dmi.Uuid component_uuid = 2; |
| 2141 | case 2: { |
| 2142 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 2143 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2144 | input, mutable_component_uuid())); |
| 2145 | } else { |
| 2146 | goto handle_unusual; |
| 2147 | } |
| 2148 | break; |
| 2149 | } |
| 2150 | |
| 2151 | // string component_name = 3; |
| 2152 | case 3: { |
| 2153 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2154 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2155 | input, this->mutable_component_name())); |
| 2156 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2157 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2158 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2159 | "dmi.HWComponentInfoGetRequest.component_name")); |
| 2160 | } else { |
| 2161 | goto handle_unusual; |
| 2162 | } |
| 2163 | break; |
| 2164 | } |
| 2165 | |
| 2166 | default: { |
| 2167 | handle_unusual: |
| 2168 | if (tag == 0) { |
| 2169 | goto success; |
| 2170 | } |
| 2171 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2172 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2173 | break; |
| 2174 | } |
| 2175 | } |
| 2176 | } |
| 2177 | success: |
| 2178 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetRequest) |
| 2179 | return true; |
| 2180 | failure: |
| 2181 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetRequest) |
| 2182 | return false; |
| 2183 | #undef DO_ |
| 2184 | } |
| 2185 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2186 | |
| 2187 | void HWComponentInfoGetRequest::SerializeWithCachedSizes( |
| 2188 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2189 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetRequest) |
| 2190 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2191 | (void) cached_has_bits; |
| 2192 | |
| 2193 | // .dmi.Uuid device_uuid = 1; |
| 2194 | if (this->has_device_uuid()) { |
| 2195 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2196 | 1, HasBitSetters::device_uuid(this), output); |
| 2197 | } |
| 2198 | |
| 2199 | // .dmi.Uuid component_uuid = 2; |
| 2200 | if (this->has_component_uuid()) { |
| 2201 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2202 | 2, HasBitSetters::component_uuid(this), output); |
| 2203 | } |
| 2204 | |
| 2205 | // string component_name = 3; |
| 2206 | if (this->component_name().size() > 0) { |
| 2207 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2208 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2209 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2210 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2211 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2212 | 3, this->component_name(), output); |
| 2213 | } |
| 2214 | |
| 2215 | if (_internal_metadata_.have_unknown_fields()) { |
| 2216 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2217 | _internal_metadata_.unknown_fields(), output); |
| 2218 | } |
| 2219 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetRequest) |
| 2220 | } |
| 2221 | |
| 2222 | ::google::protobuf::uint8* HWComponentInfoGetRequest::InternalSerializeWithCachedSizesToArray( |
| 2223 | ::google::protobuf::uint8* target) const { |
| 2224 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetRequest) |
| 2225 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2226 | (void) cached_has_bits; |
| 2227 | |
| 2228 | // .dmi.Uuid device_uuid = 1; |
| 2229 | if (this->has_device_uuid()) { |
| 2230 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2231 | InternalWriteMessageToArray( |
| 2232 | 1, HasBitSetters::device_uuid(this), target); |
| 2233 | } |
| 2234 | |
| 2235 | // .dmi.Uuid component_uuid = 2; |
| 2236 | if (this->has_component_uuid()) { |
| 2237 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2238 | InternalWriteMessageToArray( |
| 2239 | 2, HasBitSetters::component_uuid(this), target); |
| 2240 | } |
| 2241 | |
| 2242 | // string component_name = 3; |
| 2243 | if (this->component_name().size() > 0) { |
| 2244 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2245 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 2246 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2247 | "dmi.HWComponentInfoGetRequest.component_name"); |
| 2248 | target = |
| 2249 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2250 | 3, this->component_name(), target); |
| 2251 | } |
| 2252 | |
| 2253 | if (_internal_metadata_.have_unknown_fields()) { |
| 2254 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2255 | _internal_metadata_.unknown_fields(), target); |
| 2256 | } |
| 2257 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetRequest) |
| 2258 | return target; |
| 2259 | } |
| 2260 | |
| 2261 | size_t HWComponentInfoGetRequest::ByteSizeLong() const { |
| 2262 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetRequest) |
| 2263 | size_t total_size = 0; |
| 2264 | |
| 2265 | if (_internal_metadata_.have_unknown_fields()) { |
| 2266 | total_size += |
| 2267 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2268 | _internal_metadata_.unknown_fields()); |
| 2269 | } |
| 2270 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2271 | // Prevent compiler warnings about cached_has_bits being unused |
| 2272 | (void) cached_has_bits; |
| 2273 | |
| 2274 | // string component_name = 3; |
| 2275 | if (this->component_name().size() > 0) { |
| 2276 | total_size += 1 + |
| 2277 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2278 | this->component_name()); |
| 2279 | } |
| 2280 | |
| 2281 | // .dmi.Uuid device_uuid = 1; |
| 2282 | if (this->has_device_uuid()) { |
| 2283 | total_size += 1 + |
| 2284 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2285 | *device_uuid_); |
| 2286 | } |
| 2287 | |
| 2288 | // .dmi.Uuid component_uuid = 2; |
| 2289 | if (this->has_component_uuid()) { |
| 2290 | total_size += 1 + |
| 2291 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2292 | *component_uuid_); |
| 2293 | } |
| 2294 | |
| 2295 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2296 | SetCachedSize(cached_size); |
| 2297 | return total_size; |
| 2298 | } |
| 2299 | |
| 2300 | void HWComponentInfoGetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 2301 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2302 | GOOGLE_DCHECK_NE(&from, this); |
| 2303 | const HWComponentInfoGetRequest* source = |
| 2304 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetRequest>( |
| 2305 | &from); |
| 2306 | if (source == nullptr) { |
| 2307 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetRequest) |
| 2308 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2309 | } else { |
| 2310 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetRequest) |
| 2311 | MergeFrom(*source); |
| 2312 | } |
| 2313 | } |
| 2314 | |
| 2315 | void HWComponentInfoGetRequest::MergeFrom(const HWComponentInfoGetRequest& from) { |
| 2316 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetRequest) |
| 2317 | GOOGLE_DCHECK_NE(&from, this); |
| 2318 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2319 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2320 | (void) cached_has_bits; |
| 2321 | |
| 2322 | if (from.component_name().size() > 0) { |
| 2323 | |
| 2324 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2325 | } |
| 2326 | if (from.has_device_uuid()) { |
| 2327 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 2328 | } |
| 2329 | if (from.has_component_uuid()) { |
| 2330 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 2331 | } |
| 2332 | } |
| 2333 | |
| 2334 | void HWComponentInfoGetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 2335 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2336 | if (&from == this) return; |
| 2337 | Clear(); |
| 2338 | MergeFrom(from); |
| 2339 | } |
| 2340 | |
| 2341 | void HWComponentInfoGetRequest::CopyFrom(const HWComponentInfoGetRequest& from) { |
| 2342 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetRequest) |
| 2343 | if (&from == this) return; |
| 2344 | Clear(); |
| 2345 | MergeFrom(from); |
| 2346 | } |
| 2347 | |
| 2348 | bool HWComponentInfoGetRequest::IsInitialized() const { |
| 2349 | return true; |
| 2350 | } |
| 2351 | |
| 2352 | void HWComponentInfoGetRequest::Swap(HWComponentInfoGetRequest* other) { |
| 2353 | if (other == this) return; |
| 2354 | InternalSwap(other); |
| 2355 | } |
| 2356 | void HWComponentInfoGetRequest::InternalSwap(HWComponentInfoGetRequest* other) { |
| 2357 | using std::swap; |
| 2358 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2359 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2360 | GetArenaNoVirtual()); |
| 2361 | swap(device_uuid_, other->device_uuid_); |
| 2362 | swap(component_uuid_, other->component_uuid_); |
| 2363 | } |
| 2364 | |
| 2365 | ::google::protobuf::Metadata HWComponentInfoGetRequest::GetMetadata() const { |
| 2366 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2367 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2368 | } |
| 2369 | |
| 2370 | |
| 2371 | // =================================================================== |
| 2372 | |
| 2373 | void HWComponentInfoGetResponse::InitAsDefaultInstance() { |
| 2374 | ::dmi::_HWComponentInfoGetResponse_default_instance_._instance.get_mutable()->component_ = const_cast< ::dmi::Component*>( |
| 2375 | ::dmi::Component::internal_default_instance()); |
| 2376 | } |
| 2377 | class HWComponentInfoGetResponse::HasBitSetters { |
| 2378 | public: |
| 2379 | static const ::dmi::Component& component(const HWComponentInfoGetResponse* msg); |
| 2380 | }; |
| 2381 | |
| 2382 | const ::dmi::Component& |
| 2383 | HWComponentInfoGetResponse::HasBitSetters::component(const HWComponentInfoGetResponse* msg) { |
| 2384 | return *msg->component_; |
| 2385 | } |
| 2386 | void HWComponentInfoGetResponse::clear_component() { |
| 2387 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2388 | delete component_; |
| 2389 | } |
| 2390 | component_ = nullptr; |
| 2391 | } |
| 2392 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2393 | const int HWComponentInfoGetResponse::kStatusFieldNumber; |
| 2394 | const int HWComponentInfoGetResponse::kReasonFieldNumber; |
| 2395 | const int HWComponentInfoGetResponse::kComponentFieldNumber; |
| 2396 | const int HWComponentInfoGetResponse::kReasonDetailFieldNumber; |
| 2397 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2398 | |
| 2399 | HWComponentInfoGetResponse::HWComponentInfoGetResponse() |
| 2400 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2401 | SharedCtor(); |
| 2402 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoGetResponse) |
| 2403 | } |
| 2404 | HWComponentInfoGetResponse::HWComponentInfoGetResponse(const HWComponentInfoGetResponse& from) |
| 2405 | : ::google::protobuf::Message(), |
| 2406 | _internal_metadata_(nullptr) { |
| 2407 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2408 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2409 | if (from.reason_detail().size() > 0) { |
| 2410 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2411 | } |
| 2412 | if (from.has_component()) { |
| 2413 | component_ = new ::dmi::Component(*from.component_); |
| 2414 | } else { |
| 2415 | component_ = nullptr; |
| 2416 | } |
| 2417 | ::memcpy(&status_, &from.status_, |
| 2418 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 2419 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2420 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoGetResponse) |
| 2421 | } |
| 2422 | |
| 2423 | void HWComponentInfoGetResponse::SharedCtor() { |
| 2424 | ::google::protobuf::internal::InitSCC( |
| 2425 | &scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2426 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2427 | ::memset(&component_, 0, static_cast<size_t>( |
| 2428 | reinterpret_cast<char*>(&reason_) - |
| 2429 | reinterpret_cast<char*>(&component_)) + sizeof(reason_)); |
| 2430 | } |
| 2431 | |
| 2432 | HWComponentInfoGetResponse::~HWComponentInfoGetResponse() { |
| 2433 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoGetResponse) |
| 2434 | SharedDtor(); |
| 2435 | } |
| 2436 | |
| 2437 | void HWComponentInfoGetResponse::SharedDtor() { |
| 2438 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2439 | if (this != internal_default_instance()) delete component_; |
| 2440 | } |
| 2441 | |
| 2442 | void HWComponentInfoGetResponse::SetCachedSize(int size) const { |
| 2443 | _cached_size_.Set(size); |
| 2444 | } |
| 2445 | const HWComponentInfoGetResponse& HWComponentInfoGetResponse::default_instance() { |
| 2446 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoGetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2447 | return *internal_default_instance(); |
| 2448 | } |
| 2449 | |
| 2450 | |
| 2451 | void HWComponentInfoGetResponse::Clear() { |
| 2452 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoGetResponse) |
| 2453 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2454 | // Prevent compiler warnings about cached_has_bits being unused |
| 2455 | (void) cached_has_bits; |
| 2456 | |
| 2457 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2458 | if (GetArenaNoVirtual() == nullptr && component_ != nullptr) { |
| 2459 | delete component_; |
| 2460 | } |
| 2461 | component_ = nullptr; |
| 2462 | ::memset(&status_, 0, static_cast<size_t>( |
| 2463 | reinterpret_cast<char*>(&reason_) - |
| 2464 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 2465 | _internal_metadata_.Clear(); |
| 2466 | } |
| 2467 | |
| 2468 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2469 | const char* HWComponentInfoGetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 2470 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2471 | auto msg = static_cast<HWComponentInfoGetResponse*>(object); |
| 2472 | ::google::protobuf::int32 size; (void)size; |
| 2473 | int depth; (void)depth; |
| 2474 | ::google::protobuf::uint32 tag; |
| 2475 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2476 | auto ptr = begin; |
| 2477 | while (ptr < end) { |
| 2478 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2479 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2480 | switch (tag >> 3) { |
| 2481 | // .dmi.Status status = 1; |
| 2482 | case 1: { |
| 2483 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 2484 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2485 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 2486 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2487 | break; |
| 2488 | } |
| 2489 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2490 | case 2: { |
| 2491 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 2492 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 2493 | msg->set_reason(static_cast<::dmi::HWComponentInfoGetResponse_Reason>(val)); |
| 2494 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2495 | break; |
| 2496 | } |
| 2497 | // .dmi.Component component = 3; |
| 2498 | case 3: { |
| 2499 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 2500 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2501 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2502 | parser_till_end = ::dmi::Component::_InternalParse; |
| 2503 | object = msg->mutable_component(); |
| 2504 | if (size > end - ptr) goto len_delim_till_end; |
| 2505 | ptr += size; |
| 2506 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2507 | {parser_till_end, object}, ptr - size, ptr)); |
| 2508 | break; |
| 2509 | } |
| 2510 | // string reason_detail = 4; |
| 2511 | case 4: { |
| 2512 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 2513 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2514 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2515 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2516 | object = msg->mutable_reason_detail(); |
| 2517 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 2518 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 2519 | goto string_till_end; |
| 2520 | } |
| 2521 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 2522 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 2523 | ptr += size; |
| 2524 | break; |
| 2525 | } |
| 2526 | default: { |
| 2527 | handle_unusual: |
| 2528 | if ((tag & 7) == 4 || tag == 0) { |
| 2529 | ctx->EndGroup(tag); |
| 2530 | return ptr; |
| 2531 | } |
| 2532 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 2533 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 2534 | ptr = res.first; |
| 2535 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 2536 | if (res.second) return ptr; |
| 2537 | } |
| 2538 | } // switch |
| 2539 | } // while |
| 2540 | return ptr; |
| 2541 | string_till_end: |
| 2542 | static_cast<::std::string*>(object)->clear(); |
| 2543 | static_cast<::std::string*>(object)->reserve(size); |
| 2544 | goto len_delim_till_end; |
| 2545 | len_delim_till_end: |
| 2546 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 2547 | {parser_till_end, object}, size); |
| 2548 | } |
| 2549 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2550 | bool HWComponentInfoGetResponse::MergePartialFromCodedStream( |
| 2551 | ::google::protobuf::io::CodedInputStream* input) { |
| 2552 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2553 | ::google::protobuf::uint32 tag; |
| 2554 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoGetResponse) |
| 2555 | for (;;) { |
| 2556 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 2557 | tag = p.first; |
| 2558 | if (!p.second) goto handle_unusual; |
| 2559 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 2560 | // .dmi.Status status = 1; |
| 2561 | case 1: { |
| 2562 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 2563 | int value = 0; |
| 2564 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2565 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2566 | input, &value))); |
| 2567 | set_status(static_cast< ::dmi::Status >(value)); |
| 2568 | } else { |
| 2569 | goto handle_unusual; |
| 2570 | } |
| 2571 | break; |
| 2572 | } |
| 2573 | |
| 2574 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2575 | case 2: { |
| 2576 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 2577 | int value = 0; |
| 2578 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 2579 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 2580 | input, &value))); |
| 2581 | set_reason(static_cast< ::dmi::HWComponentInfoGetResponse_Reason >(value)); |
| 2582 | } else { |
| 2583 | goto handle_unusual; |
| 2584 | } |
| 2585 | break; |
| 2586 | } |
| 2587 | |
| 2588 | // .dmi.Component component = 3; |
| 2589 | case 3: { |
| 2590 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 2591 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 2592 | input, mutable_component())); |
| 2593 | } else { |
| 2594 | goto handle_unusual; |
| 2595 | } |
| 2596 | break; |
| 2597 | } |
| 2598 | |
| 2599 | // string reason_detail = 4; |
| 2600 | case 4: { |
| 2601 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 2602 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2603 | input, this->mutable_reason_detail())); |
| 2604 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2605 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2606 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2607 | "dmi.HWComponentInfoGetResponse.reason_detail")); |
| 2608 | } else { |
| 2609 | goto handle_unusual; |
| 2610 | } |
| 2611 | break; |
| 2612 | } |
| 2613 | |
| 2614 | default: { |
| 2615 | handle_unusual: |
| 2616 | if (tag == 0) { |
| 2617 | goto success; |
| 2618 | } |
| 2619 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 2620 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 2621 | break; |
| 2622 | } |
| 2623 | } |
| 2624 | } |
| 2625 | success: |
| 2626 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoGetResponse) |
| 2627 | return true; |
| 2628 | failure: |
| 2629 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoGetResponse) |
| 2630 | return false; |
| 2631 | #undef DO_ |
| 2632 | } |
| 2633 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2634 | |
| 2635 | void HWComponentInfoGetResponse::SerializeWithCachedSizes( |
| 2636 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 2637 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoGetResponse) |
| 2638 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2639 | (void) cached_has_bits; |
| 2640 | |
| 2641 | // .dmi.Status status = 1; |
| 2642 | if (this->status() != 0) { |
| 2643 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2644 | 1, this->status(), output); |
| 2645 | } |
| 2646 | |
| 2647 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2648 | if (this->reason() != 0) { |
| 2649 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 2650 | 2, this->reason(), output); |
| 2651 | } |
| 2652 | |
| 2653 | // .dmi.Component component = 3; |
| 2654 | if (this->has_component()) { |
| 2655 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 2656 | 3, HasBitSetters::component(this), output); |
| 2657 | } |
| 2658 | |
| 2659 | // string reason_detail = 4; |
| 2660 | if (this->reason_detail().size() > 0) { |
| 2661 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2662 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2663 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2664 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2665 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2666 | 4, this->reason_detail(), output); |
| 2667 | } |
| 2668 | |
| 2669 | if (_internal_metadata_.have_unknown_fields()) { |
| 2670 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 2671 | _internal_metadata_.unknown_fields(), output); |
| 2672 | } |
| 2673 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoGetResponse) |
| 2674 | } |
| 2675 | |
| 2676 | ::google::protobuf::uint8* HWComponentInfoGetResponse::InternalSerializeWithCachedSizesToArray( |
| 2677 | ::google::protobuf::uint8* target) const { |
| 2678 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoGetResponse) |
| 2679 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2680 | (void) cached_has_bits; |
| 2681 | |
| 2682 | // .dmi.Status status = 1; |
| 2683 | if (this->status() != 0) { |
| 2684 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2685 | 1, this->status(), target); |
| 2686 | } |
| 2687 | |
| 2688 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2689 | if (this->reason() != 0) { |
| 2690 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 2691 | 2, this->reason(), target); |
| 2692 | } |
| 2693 | |
| 2694 | // .dmi.Component component = 3; |
| 2695 | if (this->has_component()) { |
| 2696 | target = ::google::protobuf::internal::WireFormatLite:: |
| 2697 | InternalWriteMessageToArray( |
| 2698 | 3, HasBitSetters::component(this), target); |
| 2699 | } |
| 2700 | |
| 2701 | // string reason_detail = 4; |
| 2702 | if (this->reason_detail().size() > 0) { |
| 2703 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2704 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 2705 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2706 | "dmi.HWComponentInfoGetResponse.reason_detail"); |
| 2707 | target = |
| 2708 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2709 | 4, this->reason_detail(), target); |
| 2710 | } |
| 2711 | |
| 2712 | if (_internal_metadata_.have_unknown_fields()) { |
| 2713 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 2714 | _internal_metadata_.unknown_fields(), target); |
| 2715 | } |
| 2716 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoGetResponse) |
| 2717 | return target; |
| 2718 | } |
| 2719 | |
| 2720 | size_t HWComponentInfoGetResponse::ByteSizeLong() const { |
| 2721 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoGetResponse) |
| 2722 | size_t total_size = 0; |
| 2723 | |
| 2724 | if (_internal_metadata_.have_unknown_fields()) { |
| 2725 | total_size += |
| 2726 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 2727 | _internal_metadata_.unknown_fields()); |
| 2728 | } |
| 2729 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2730 | // Prevent compiler warnings about cached_has_bits being unused |
| 2731 | (void) cached_has_bits; |
| 2732 | |
| 2733 | // string reason_detail = 4; |
| 2734 | if (this->reason_detail().size() > 0) { |
| 2735 | total_size += 1 + |
| 2736 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2737 | this->reason_detail()); |
| 2738 | } |
| 2739 | |
| 2740 | // .dmi.Component component = 3; |
| 2741 | if (this->has_component()) { |
| 2742 | total_size += 1 + |
| 2743 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 2744 | *component_); |
| 2745 | } |
| 2746 | |
| 2747 | // .dmi.Status status = 1; |
| 2748 | if (this->status() != 0) { |
| 2749 | total_size += 1 + |
| 2750 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 2751 | } |
| 2752 | |
| 2753 | // .dmi.HWComponentInfoGetResponse.Reason reason = 2; |
| 2754 | if (this->reason() != 0) { |
| 2755 | total_size += 1 + |
| 2756 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 2757 | } |
| 2758 | |
| 2759 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 2760 | SetCachedSize(cached_size); |
| 2761 | return total_size; |
| 2762 | } |
| 2763 | |
| 2764 | void HWComponentInfoGetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 2765 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2766 | GOOGLE_DCHECK_NE(&from, this); |
| 2767 | const HWComponentInfoGetResponse* source = |
| 2768 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoGetResponse>( |
| 2769 | &from); |
| 2770 | if (source == nullptr) { |
| 2771 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoGetResponse) |
| 2772 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2773 | } else { |
| 2774 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoGetResponse) |
| 2775 | MergeFrom(*source); |
| 2776 | } |
| 2777 | } |
| 2778 | |
| 2779 | void HWComponentInfoGetResponse::MergeFrom(const HWComponentInfoGetResponse& from) { |
| 2780 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoGetResponse) |
| 2781 | GOOGLE_DCHECK_NE(&from, this); |
| 2782 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2783 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2784 | (void) cached_has_bits; |
| 2785 | |
| 2786 | if (from.reason_detail().size() > 0) { |
| 2787 | |
| 2788 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 2789 | } |
| 2790 | if (from.has_component()) { |
| 2791 | mutable_component()->::dmi::Component::MergeFrom(from.component()); |
| 2792 | } |
| 2793 | if (from.status() != 0) { |
| 2794 | set_status(from.status()); |
| 2795 | } |
| 2796 | if (from.reason() != 0) { |
| 2797 | set_reason(from.reason()); |
| 2798 | } |
| 2799 | } |
| 2800 | |
| 2801 | void HWComponentInfoGetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 2802 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2803 | if (&from == this) return; |
| 2804 | Clear(); |
| 2805 | MergeFrom(from); |
| 2806 | } |
| 2807 | |
| 2808 | void HWComponentInfoGetResponse::CopyFrom(const HWComponentInfoGetResponse& from) { |
| 2809 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoGetResponse) |
| 2810 | if (&from == this) return; |
| 2811 | Clear(); |
| 2812 | MergeFrom(from); |
| 2813 | } |
| 2814 | |
| 2815 | bool HWComponentInfoGetResponse::IsInitialized() const { |
| 2816 | return true; |
| 2817 | } |
| 2818 | |
| 2819 | void HWComponentInfoGetResponse::Swap(HWComponentInfoGetResponse* other) { |
| 2820 | if (other == this) return; |
| 2821 | InternalSwap(other); |
| 2822 | } |
| 2823 | void HWComponentInfoGetResponse::InternalSwap(HWComponentInfoGetResponse* other) { |
| 2824 | using std::swap; |
| 2825 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2826 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 2827 | GetArenaNoVirtual()); |
| 2828 | swap(component_, other->component_); |
| 2829 | swap(status_, other->status_); |
| 2830 | swap(reason_, other->reason_); |
| 2831 | } |
| 2832 | |
| 2833 | ::google::protobuf::Metadata HWComponentInfoGetResponse::GetMetadata() const { |
| 2834 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 2835 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 2836 | } |
| 2837 | |
| 2838 | |
| 2839 | // =================================================================== |
| 2840 | |
| 2841 | void HWComponentInfoSetRequest::InitAsDefaultInstance() { |
| 2842 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2843 | ::dmi::Uuid::internal_default_instance()); |
| 2844 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->component_uuid_ = const_cast< ::dmi::Uuid*>( |
| 2845 | ::dmi::Uuid::internal_default_instance()); |
| 2846 | ::dmi::_HWComponentInfoSetRequest_default_instance_._instance.get_mutable()->changes_ = const_cast< ::dmi::ModifiableComponent*>( |
| 2847 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 2848 | } |
| 2849 | class HWComponentInfoSetRequest::HasBitSetters { |
| 2850 | public: |
| 2851 | static const ::dmi::Uuid& device_uuid(const HWComponentInfoSetRequest* msg); |
| 2852 | static const ::dmi::Uuid& component_uuid(const HWComponentInfoSetRequest* msg); |
| 2853 | static const ::dmi::ModifiableComponent& changes(const HWComponentInfoSetRequest* msg); |
| 2854 | }; |
| 2855 | |
| 2856 | const ::dmi::Uuid& |
| 2857 | HWComponentInfoSetRequest::HasBitSetters::device_uuid(const HWComponentInfoSetRequest* msg) { |
| 2858 | return *msg->device_uuid_; |
| 2859 | } |
| 2860 | const ::dmi::Uuid& |
| 2861 | HWComponentInfoSetRequest::HasBitSetters::component_uuid(const HWComponentInfoSetRequest* msg) { |
| 2862 | return *msg->component_uuid_; |
| 2863 | } |
| 2864 | const ::dmi::ModifiableComponent& |
| 2865 | HWComponentInfoSetRequest::HasBitSetters::changes(const HWComponentInfoSetRequest* msg) { |
| 2866 | return *msg->changes_; |
| 2867 | } |
| 2868 | void HWComponentInfoSetRequest::clear_device_uuid() { |
| 2869 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2870 | delete device_uuid_; |
| 2871 | } |
| 2872 | device_uuid_ = nullptr; |
| 2873 | } |
| 2874 | void HWComponentInfoSetRequest::clear_component_uuid() { |
| 2875 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2876 | delete component_uuid_; |
| 2877 | } |
| 2878 | component_uuid_ = nullptr; |
| 2879 | } |
| 2880 | void HWComponentInfoSetRequest::clear_changes() { |
| 2881 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 2882 | delete changes_; |
| 2883 | } |
| 2884 | changes_ = nullptr; |
| 2885 | } |
| 2886 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2887 | const int HWComponentInfoSetRequest::kDeviceUuidFieldNumber; |
| 2888 | const int HWComponentInfoSetRequest::kComponentUuidFieldNumber; |
| 2889 | const int HWComponentInfoSetRequest::kComponentNameFieldNumber; |
| 2890 | const int HWComponentInfoSetRequest::kChangesFieldNumber; |
| 2891 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2892 | |
| 2893 | HWComponentInfoSetRequest::HWComponentInfoSetRequest() |
| 2894 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 2895 | SharedCtor(); |
| 2896 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetRequest) |
| 2897 | } |
| 2898 | HWComponentInfoSetRequest::HWComponentInfoSetRequest(const HWComponentInfoSetRequest& from) |
| 2899 | : ::google::protobuf::Message(), |
| 2900 | _internal_metadata_(nullptr) { |
| 2901 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 2902 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2903 | if (from.component_name().size() > 0) { |
| 2904 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 2905 | } |
| 2906 | if (from.has_device_uuid()) { |
| 2907 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 2908 | } else { |
| 2909 | device_uuid_ = nullptr; |
| 2910 | } |
| 2911 | if (from.has_component_uuid()) { |
| 2912 | component_uuid_ = new ::dmi::Uuid(*from.component_uuid_); |
| 2913 | } else { |
| 2914 | component_uuid_ = nullptr; |
| 2915 | } |
| 2916 | if (from.has_changes()) { |
| 2917 | changes_ = new ::dmi::ModifiableComponent(*from.changes_); |
| 2918 | } else { |
| 2919 | changes_ = nullptr; |
| 2920 | } |
| 2921 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetRequest) |
| 2922 | } |
| 2923 | |
| 2924 | void HWComponentInfoSetRequest::SharedCtor() { |
| 2925 | ::google::protobuf::internal::InitSCC( |
| 2926 | &scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2927 | component_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2928 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 2929 | reinterpret_cast<char*>(&changes_) - |
| 2930 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(changes_)); |
| 2931 | } |
| 2932 | |
| 2933 | HWComponentInfoSetRequest::~HWComponentInfoSetRequest() { |
| 2934 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetRequest) |
| 2935 | SharedDtor(); |
| 2936 | } |
| 2937 | |
| 2938 | void HWComponentInfoSetRequest::SharedDtor() { |
| 2939 | component_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2940 | if (this != internal_default_instance()) delete device_uuid_; |
| 2941 | if (this != internal_default_instance()) delete component_uuid_; |
| 2942 | if (this != internal_default_instance()) delete changes_; |
| 2943 | } |
| 2944 | |
| 2945 | void HWComponentInfoSetRequest::SetCachedSize(int size) const { |
| 2946 | _cached_size_.Set(size); |
| 2947 | } |
| 2948 | const HWComponentInfoSetRequest& HWComponentInfoSetRequest::default_instance() { |
| 2949 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 2950 | return *internal_default_instance(); |
| 2951 | } |
| 2952 | |
| 2953 | |
| 2954 | void HWComponentInfoSetRequest::Clear() { |
| 2955 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetRequest) |
| 2956 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 2957 | // Prevent compiler warnings about cached_has_bits being unused |
| 2958 | (void) cached_has_bits; |
| 2959 | |
| 2960 | component_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 2961 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 2962 | delete device_uuid_; |
| 2963 | } |
| 2964 | device_uuid_ = nullptr; |
| 2965 | if (GetArenaNoVirtual() == nullptr && component_uuid_ != nullptr) { |
| 2966 | delete component_uuid_; |
| 2967 | } |
| 2968 | component_uuid_ = nullptr; |
| 2969 | if (GetArenaNoVirtual() == nullptr && changes_ != nullptr) { |
| 2970 | delete changes_; |
| 2971 | } |
| 2972 | changes_ = nullptr; |
| 2973 | _internal_metadata_.Clear(); |
| 2974 | } |
| 2975 | |
| 2976 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 2977 | const char* HWComponentInfoSetRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 2978 | ::google::protobuf::internal::ParseContext* ctx) { |
| 2979 | auto msg = static_cast<HWComponentInfoSetRequest*>(object); |
| 2980 | ::google::protobuf::int32 size; (void)size; |
| 2981 | int depth; (void)depth; |
| 2982 | ::google::protobuf::uint32 tag; |
| 2983 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 2984 | auto ptr = begin; |
| 2985 | while (ptr < end) { |
| 2986 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 2987 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2988 | switch (tag >> 3) { |
| 2989 | // .dmi.Uuid device_uuid = 1; |
| 2990 | case 1: { |
| 2991 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 2992 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 2993 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 2994 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 2995 | object = msg->mutable_device_uuid(); |
| 2996 | if (size > end - ptr) goto len_delim_till_end; |
| 2997 | ptr += size; |
| 2998 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 2999 | {parser_till_end, object}, ptr - size, ptr)); |
| 3000 | break; |
| 3001 | } |
| 3002 | // .dmi.Uuid component_uuid = 2; |
| 3003 | case 2: { |
| 3004 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 3005 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3006 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3007 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3008 | object = msg->mutable_component_uuid(); |
| 3009 | if (size > end - ptr) goto len_delim_till_end; |
| 3010 | ptr += size; |
| 3011 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3012 | {parser_till_end, object}, ptr - size, ptr)); |
| 3013 | break; |
| 3014 | } |
| 3015 | // string component_name = 3; |
| 3016 | case 3: { |
| 3017 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3018 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3019 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3020 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetRequest.component_name"); |
| 3021 | object = msg->mutable_component_name(); |
| 3022 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3023 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3024 | goto string_till_end; |
| 3025 | } |
| 3026 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3027 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3028 | ptr += size; |
| 3029 | break; |
| 3030 | } |
| 3031 | // .dmi.ModifiableComponent changes = 4; |
| 3032 | case 4: { |
| 3033 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3034 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3035 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3036 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 3037 | object = msg->mutable_changes(); |
| 3038 | if (size > end - ptr) goto len_delim_till_end; |
| 3039 | ptr += size; |
| 3040 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3041 | {parser_till_end, object}, ptr - size, ptr)); |
| 3042 | break; |
| 3043 | } |
| 3044 | default: { |
| 3045 | handle_unusual: |
| 3046 | if ((tag & 7) == 4 || tag == 0) { |
| 3047 | ctx->EndGroup(tag); |
| 3048 | return ptr; |
| 3049 | } |
| 3050 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3051 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3052 | ptr = res.first; |
| 3053 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3054 | if (res.second) return ptr; |
| 3055 | } |
| 3056 | } // switch |
| 3057 | } // while |
| 3058 | return ptr; |
| 3059 | string_till_end: |
| 3060 | static_cast<::std::string*>(object)->clear(); |
| 3061 | static_cast<::std::string*>(object)->reserve(size); |
| 3062 | goto len_delim_till_end; |
| 3063 | len_delim_till_end: |
| 3064 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3065 | {parser_till_end, object}, size); |
| 3066 | } |
| 3067 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3068 | bool HWComponentInfoSetRequest::MergePartialFromCodedStream( |
| 3069 | ::google::protobuf::io::CodedInputStream* input) { |
| 3070 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3071 | ::google::protobuf::uint32 tag; |
| 3072 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetRequest) |
| 3073 | for (;;) { |
| 3074 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3075 | tag = p.first; |
| 3076 | if (!p.second) goto handle_unusual; |
| 3077 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3078 | // .dmi.Uuid device_uuid = 1; |
| 3079 | case 1: { |
| 3080 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 3081 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3082 | input, mutable_device_uuid())); |
| 3083 | } else { |
| 3084 | goto handle_unusual; |
| 3085 | } |
| 3086 | break; |
| 3087 | } |
| 3088 | |
| 3089 | // .dmi.Uuid component_uuid = 2; |
| 3090 | case 2: { |
| 3091 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 3092 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3093 | input, mutable_component_uuid())); |
| 3094 | } else { |
| 3095 | goto handle_unusual; |
| 3096 | } |
| 3097 | break; |
| 3098 | } |
| 3099 | |
| 3100 | // string component_name = 3; |
| 3101 | case 3: { |
| 3102 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3103 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3104 | input, this->mutable_component_name())); |
| 3105 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3106 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3107 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3108 | "dmi.HWComponentInfoSetRequest.component_name")); |
| 3109 | } else { |
| 3110 | goto handle_unusual; |
| 3111 | } |
| 3112 | break; |
| 3113 | } |
| 3114 | |
| 3115 | // .dmi.ModifiableComponent changes = 4; |
| 3116 | case 4: { |
| 3117 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3118 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3119 | input, mutable_changes())); |
| 3120 | } else { |
| 3121 | goto handle_unusual; |
| 3122 | } |
| 3123 | break; |
| 3124 | } |
| 3125 | |
| 3126 | default: { |
| 3127 | handle_unusual: |
| 3128 | if (tag == 0) { |
| 3129 | goto success; |
| 3130 | } |
| 3131 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3132 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3133 | break; |
| 3134 | } |
| 3135 | } |
| 3136 | } |
| 3137 | success: |
| 3138 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetRequest) |
| 3139 | return true; |
| 3140 | failure: |
| 3141 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetRequest) |
| 3142 | return false; |
| 3143 | #undef DO_ |
| 3144 | } |
| 3145 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3146 | |
| 3147 | void HWComponentInfoSetRequest::SerializeWithCachedSizes( |
| 3148 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3149 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetRequest) |
| 3150 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3151 | (void) cached_has_bits; |
| 3152 | |
| 3153 | // .dmi.Uuid device_uuid = 1; |
| 3154 | if (this->has_device_uuid()) { |
| 3155 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3156 | 1, HasBitSetters::device_uuid(this), output); |
| 3157 | } |
| 3158 | |
| 3159 | // .dmi.Uuid component_uuid = 2; |
| 3160 | if (this->has_component_uuid()) { |
| 3161 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3162 | 2, HasBitSetters::component_uuid(this), output); |
| 3163 | } |
| 3164 | |
| 3165 | // string component_name = 3; |
| 3166 | if (this->component_name().size() > 0) { |
| 3167 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3168 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3169 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3170 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3171 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3172 | 3, this->component_name(), output); |
| 3173 | } |
| 3174 | |
| 3175 | // .dmi.ModifiableComponent changes = 4; |
| 3176 | if (this->has_changes()) { |
| 3177 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 3178 | 4, HasBitSetters::changes(this), output); |
| 3179 | } |
| 3180 | |
| 3181 | if (_internal_metadata_.have_unknown_fields()) { |
| 3182 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3183 | _internal_metadata_.unknown_fields(), output); |
| 3184 | } |
| 3185 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetRequest) |
| 3186 | } |
| 3187 | |
| 3188 | ::google::protobuf::uint8* HWComponentInfoSetRequest::InternalSerializeWithCachedSizesToArray( |
| 3189 | ::google::protobuf::uint8* target) const { |
| 3190 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetRequest) |
| 3191 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3192 | (void) cached_has_bits; |
| 3193 | |
| 3194 | // .dmi.Uuid device_uuid = 1; |
| 3195 | if (this->has_device_uuid()) { |
| 3196 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3197 | InternalWriteMessageToArray( |
| 3198 | 1, HasBitSetters::device_uuid(this), target); |
| 3199 | } |
| 3200 | |
| 3201 | // .dmi.Uuid component_uuid = 2; |
| 3202 | if (this->has_component_uuid()) { |
| 3203 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3204 | InternalWriteMessageToArray( |
| 3205 | 2, HasBitSetters::component_uuid(this), target); |
| 3206 | } |
| 3207 | |
| 3208 | // string component_name = 3; |
| 3209 | if (this->component_name().size() > 0) { |
| 3210 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3211 | this->component_name().data(), static_cast<int>(this->component_name().length()), |
| 3212 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3213 | "dmi.HWComponentInfoSetRequest.component_name"); |
| 3214 | target = |
| 3215 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3216 | 3, this->component_name(), target); |
| 3217 | } |
| 3218 | |
| 3219 | // .dmi.ModifiableComponent changes = 4; |
| 3220 | if (this->has_changes()) { |
| 3221 | target = ::google::protobuf::internal::WireFormatLite:: |
| 3222 | InternalWriteMessageToArray( |
| 3223 | 4, HasBitSetters::changes(this), target); |
| 3224 | } |
| 3225 | |
| 3226 | if (_internal_metadata_.have_unknown_fields()) { |
| 3227 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3228 | _internal_metadata_.unknown_fields(), target); |
| 3229 | } |
| 3230 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetRequest) |
| 3231 | return target; |
| 3232 | } |
| 3233 | |
| 3234 | size_t HWComponentInfoSetRequest::ByteSizeLong() const { |
| 3235 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetRequest) |
| 3236 | size_t total_size = 0; |
| 3237 | |
| 3238 | if (_internal_metadata_.have_unknown_fields()) { |
| 3239 | total_size += |
| 3240 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3241 | _internal_metadata_.unknown_fields()); |
| 3242 | } |
| 3243 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3244 | // Prevent compiler warnings about cached_has_bits being unused |
| 3245 | (void) cached_has_bits; |
| 3246 | |
| 3247 | // string component_name = 3; |
| 3248 | if (this->component_name().size() > 0) { |
| 3249 | total_size += 1 + |
| 3250 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3251 | this->component_name()); |
| 3252 | } |
| 3253 | |
| 3254 | // .dmi.Uuid device_uuid = 1; |
| 3255 | if (this->has_device_uuid()) { |
| 3256 | total_size += 1 + |
| 3257 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3258 | *device_uuid_); |
| 3259 | } |
| 3260 | |
| 3261 | // .dmi.Uuid component_uuid = 2; |
| 3262 | if (this->has_component_uuid()) { |
| 3263 | total_size += 1 + |
| 3264 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3265 | *component_uuid_); |
| 3266 | } |
| 3267 | |
| 3268 | // .dmi.ModifiableComponent changes = 4; |
| 3269 | if (this->has_changes()) { |
| 3270 | total_size += 1 + |
| 3271 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 3272 | *changes_); |
| 3273 | } |
| 3274 | |
| 3275 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3276 | SetCachedSize(cached_size); |
| 3277 | return total_size; |
| 3278 | } |
| 3279 | |
| 3280 | void HWComponentInfoSetRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 3281 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3282 | GOOGLE_DCHECK_NE(&from, this); |
| 3283 | const HWComponentInfoSetRequest* source = |
| 3284 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetRequest>( |
| 3285 | &from); |
| 3286 | if (source == nullptr) { |
| 3287 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetRequest) |
| 3288 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3289 | } else { |
| 3290 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetRequest) |
| 3291 | MergeFrom(*source); |
| 3292 | } |
| 3293 | } |
| 3294 | |
| 3295 | void HWComponentInfoSetRequest::MergeFrom(const HWComponentInfoSetRequest& from) { |
| 3296 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetRequest) |
| 3297 | GOOGLE_DCHECK_NE(&from, this); |
| 3298 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3299 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3300 | (void) cached_has_bits; |
| 3301 | |
| 3302 | if (from.component_name().size() > 0) { |
| 3303 | |
| 3304 | component_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.component_name_); |
| 3305 | } |
| 3306 | if (from.has_device_uuid()) { |
| 3307 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 3308 | } |
| 3309 | if (from.has_component_uuid()) { |
| 3310 | mutable_component_uuid()->::dmi::Uuid::MergeFrom(from.component_uuid()); |
| 3311 | } |
| 3312 | if (from.has_changes()) { |
| 3313 | mutable_changes()->::dmi::ModifiableComponent::MergeFrom(from.changes()); |
| 3314 | } |
| 3315 | } |
| 3316 | |
| 3317 | void HWComponentInfoSetRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 3318 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3319 | if (&from == this) return; |
| 3320 | Clear(); |
| 3321 | MergeFrom(from); |
| 3322 | } |
| 3323 | |
| 3324 | void HWComponentInfoSetRequest::CopyFrom(const HWComponentInfoSetRequest& from) { |
| 3325 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetRequest) |
| 3326 | if (&from == this) return; |
| 3327 | Clear(); |
| 3328 | MergeFrom(from); |
| 3329 | } |
| 3330 | |
| 3331 | bool HWComponentInfoSetRequest::IsInitialized() const { |
| 3332 | return true; |
| 3333 | } |
| 3334 | |
| 3335 | void HWComponentInfoSetRequest::Swap(HWComponentInfoSetRequest* other) { |
| 3336 | if (other == this) return; |
| 3337 | InternalSwap(other); |
| 3338 | } |
| 3339 | void HWComponentInfoSetRequest::InternalSwap(HWComponentInfoSetRequest* other) { |
| 3340 | using std::swap; |
| 3341 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3342 | component_name_.Swap(&other->component_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3343 | GetArenaNoVirtual()); |
| 3344 | swap(device_uuid_, other->device_uuid_); |
| 3345 | swap(component_uuid_, other->component_uuid_); |
| 3346 | swap(changes_, other->changes_); |
| 3347 | } |
| 3348 | |
| 3349 | ::google::protobuf::Metadata HWComponentInfoSetRequest::GetMetadata() const { |
| 3350 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3351 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3352 | } |
| 3353 | |
| 3354 | |
| 3355 | // =================================================================== |
| 3356 | |
| 3357 | void HWComponentInfoSetResponse::InitAsDefaultInstance() { |
| 3358 | } |
| 3359 | class HWComponentInfoSetResponse::HasBitSetters { |
| 3360 | public: |
| 3361 | }; |
| 3362 | |
| 3363 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3364 | const int HWComponentInfoSetResponse::kStatusFieldNumber; |
| 3365 | const int HWComponentInfoSetResponse::kReasonFieldNumber; |
| 3366 | const int HWComponentInfoSetResponse::kReasonDetailFieldNumber; |
| 3367 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3368 | |
| 3369 | HWComponentInfoSetResponse::HWComponentInfoSetResponse() |
| 3370 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3371 | SharedCtor(); |
| 3372 | // @@protoc_insertion_point(constructor:dmi.HWComponentInfoSetResponse) |
| 3373 | } |
| 3374 | HWComponentInfoSetResponse::HWComponentInfoSetResponse(const HWComponentInfoSetResponse& from) |
| 3375 | : ::google::protobuf::Message(), |
| 3376 | _internal_metadata_(nullptr) { |
| 3377 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3378 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3379 | if (from.reason_detail().size() > 0) { |
| 3380 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3381 | } |
| 3382 | ::memcpy(&status_, &from.status_, |
| 3383 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3384 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3385 | // @@protoc_insertion_point(copy_constructor:dmi.HWComponentInfoSetResponse) |
| 3386 | } |
| 3387 | |
| 3388 | void HWComponentInfoSetResponse::SharedCtor() { |
| 3389 | ::google::protobuf::internal::InitSCC( |
| 3390 | &scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3391 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3392 | ::memset(&status_, 0, static_cast<size_t>( |
| 3393 | reinterpret_cast<char*>(&reason_) - |
| 3394 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3395 | } |
| 3396 | |
| 3397 | HWComponentInfoSetResponse::~HWComponentInfoSetResponse() { |
| 3398 | // @@protoc_insertion_point(destructor:dmi.HWComponentInfoSetResponse) |
| 3399 | SharedDtor(); |
| 3400 | } |
| 3401 | |
| 3402 | void HWComponentInfoSetResponse::SharedDtor() { |
| 3403 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3404 | } |
| 3405 | |
| 3406 | void HWComponentInfoSetResponse::SetCachedSize(int size) const { |
| 3407 | _cached_size_.Set(size); |
| 3408 | } |
| 3409 | const HWComponentInfoSetResponse& HWComponentInfoSetResponse::default_instance() { |
| 3410 | ::google::protobuf::internal::InitSCC(&::scc_info_HWComponentInfoSetResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3411 | return *internal_default_instance(); |
| 3412 | } |
| 3413 | |
| 3414 | |
| 3415 | void HWComponentInfoSetResponse::Clear() { |
| 3416 | // @@protoc_insertion_point(message_clear_start:dmi.HWComponentInfoSetResponse) |
| 3417 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3418 | // Prevent compiler warnings about cached_has_bits being unused |
| 3419 | (void) cached_has_bits; |
| 3420 | |
| 3421 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3422 | ::memset(&status_, 0, static_cast<size_t>( |
| 3423 | reinterpret_cast<char*>(&reason_) - |
| 3424 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3425 | _internal_metadata_.Clear(); |
| 3426 | } |
| 3427 | |
| 3428 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3429 | const char* HWComponentInfoSetResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3430 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3431 | auto msg = static_cast<HWComponentInfoSetResponse*>(object); |
| 3432 | ::google::protobuf::int32 size; (void)size; |
| 3433 | int depth; (void)depth; |
| 3434 | ::google::protobuf::uint32 tag; |
| 3435 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3436 | auto ptr = begin; |
| 3437 | while (ptr < end) { |
| 3438 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3439 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3440 | switch (tag >> 3) { |
| 3441 | // .dmi.Status status = 1; |
| 3442 | case 1: { |
| 3443 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3444 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3445 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3446 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3447 | break; |
| 3448 | } |
| 3449 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3450 | case 2: { |
| 3451 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3452 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3453 | msg->set_reason(static_cast<::dmi::HWComponentInfoSetResponse_Reason>(val)); |
| 3454 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3455 | break; |
| 3456 | } |
| 3457 | // string reason_detail = 3; |
| 3458 | case 3: { |
| 3459 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3460 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3461 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3462 | ctx->extra_parse_data().SetFieldName("dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3463 | object = msg->mutable_reason_detail(); |
| 3464 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3465 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3466 | goto string_till_end; |
| 3467 | } |
| 3468 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3469 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3470 | ptr += size; |
| 3471 | break; |
| 3472 | } |
| 3473 | default: { |
| 3474 | handle_unusual: |
| 3475 | if ((tag & 7) == 4 || tag == 0) { |
| 3476 | ctx->EndGroup(tag); |
| 3477 | return ptr; |
| 3478 | } |
| 3479 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3480 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3481 | ptr = res.first; |
| 3482 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3483 | if (res.second) return ptr; |
| 3484 | } |
| 3485 | } // switch |
| 3486 | } // while |
| 3487 | return ptr; |
| 3488 | string_till_end: |
| 3489 | static_cast<::std::string*>(object)->clear(); |
| 3490 | static_cast<::std::string*>(object)->reserve(size); |
| 3491 | goto len_delim_till_end; |
| 3492 | len_delim_till_end: |
| 3493 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3494 | {parser_till_end, object}, size); |
| 3495 | } |
| 3496 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3497 | bool HWComponentInfoSetResponse::MergePartialFromCodedStream( |
| 3498 | ::google::protobuf::io::CodedInputStream* input) { |
| 3499 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3500 | ::google::protobuf::uint32 tag; |
| 3501 | // @@protoc_insertion_point(parse_start:dmi.HWComponentInfoSetResponse) |
| 3502 | for (;;) { |
| 3503 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3504 | tag = p.first; |
| 3505 | if (!p.second) goto handle_unusual; |
| 3506 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3507 | // .dmi.Status status = 1; |
| 3508 | case 1: { |
| 3509 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3510 | int value = 0; |
| 3511 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3512 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3513 | input, &value))); |
| 3514 | set_status(static_cast< ::dmi::Status >(value)); |
| 3515 | } else { |
| 3516 | goto handle_unusual; |
| 3517 | } |
| 3518 | break; |
| 3519 | } |
| 3520 | |
| 3521 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3522 | case 2: { |
| 3523 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3524 | int value = 0; |
| 3525 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3526 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3527 | input, &value))); |
| 3528 | set_reason(static_cast< ::dmi::HWComponentInfoSetResponse_Reason >(value)); |
| 3529 | } else { |
| 3530 | goto handle_unusual; |
| 3531 | } |
| 3532 | break; |
| 3533 | } |
| 3534 | |
| 3535 | // string reason_detail = 3; |
| 3536 | case 3: { |
| 3537 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3538 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3539 | input, this->mutable_reason_detail())); |
| 3540 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3541 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3542 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3543 | "dmi.HWComponentInfoSetResponse.reason_detail")); |
| 3544 | } else { |
| 3545 | goto handle_unusual; |
| 3546 | } |
| 3547 | break; |
| 3548 | } |
| 3549 | |
| 3550 | default: { |
| 3551 | handle_unusual: |
| 3552 | if (tag == 0) { |
| 3553 | goto success; |
| 3554 | } |
| 3555 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 3556 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 3557 | break; |
| 3558 | } |
| 3559 | } |
| 3560 | } |
| 3561 | success: |
| 3562 | // @@protoc_insertion_point(parse_success:dmi.HWComponentInfoSetResponse) |
| 3563 | return true; |
| 3564 | failure: |
| 3565 | // @@protoc_insertion_point(parse_failure:dmi.HWComponentInfoSetResponse) |
| 3566 | return false; |
| 3567 | #undef DO_ |
| 3568 | } |
| 3569 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3570 | |
| 3571 | void HWComponentInfoSetResponse::SerializeWithCachedSizes( |
| 3572 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 3573 | // @@protoc_insertion_point(serialize_start:dmi.HWComponentInfoSetResponse) |
| 3574 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3575 | (void) cached_has_bits; |
| 3576 | |
| 3577 | // .dmi.Status status = 1; |
| 3578 | if (this->status() != 0) { |
| 3579 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3580 | 1, this->status(), output); |
| 3581 | } |
| 3582 | |
| 3583 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3584 | if (this->reason() != 0) { |
| 3585 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 3586 | 2, this->reason(), output); |
| 3587 | } |
| 3588 | |
| 3589 | // string reason_detail = 3; |
| 3590 | if (this->reason_detail().size() > 0) { |
| 3591 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3592 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3593 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3594 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3595 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 3596 | 3, this->reason_detail(), output); |
| 3597 | } |
| 3598 | |
| 3599 | if (_internal_metadata_.have_unknown_fields()) { |
| 3600 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 3601 | _internal_metadata_.unknown_fields(), output); |
| 3602 | } |
| 3603 | // @@protoc_insertion_point(serialize_end:dmi.HWComponentInfoSetResponse) |
| 3604 | } |
| 3605 | |
| 3606 | ::google::protobuf::uint8* HWComponentInfoSetResponse::InternalSerializeWithCachedSizesToArray( |
| 3607 | ::google::protobuf::uint8* target) const { |
| 3608 | // @@protoc_insertion_point(serialize_to_array_start:dmi.HWComponentInfoSetResponse) |
| 3609 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3610 | (void) cached_has_bits; |
| 3611 | |
| 3612 | // .dmi.Status status = 1; |
| 3613 | if (this->status() != 0) { |
| 3614 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3615 | 1, this->status(), target); |
| 3616 | } |
| 3617 | |
| 3618 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3619 | if (this->reason() != 0) { |
| 3620 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 3621 | 2, this->reason(), target); |
| 3622 | } |
| 3623 | |
| 3624 | // string reason_detail = 3; |
| 3625 | if (this->reason_detail().size() > 0) { |
| 3626 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3627 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3628 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 3629 | "dmi.HWComponentInfoSetResponse.reason_detail"); |
| 3630 | target = |
| 3631 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 3632 | 3, this->reason_detail(), target); |
| 3633 | } |
| 3634 | |
| 3635 | if (_internal_metadata_.have_unknown_fields()) { |
| 3636 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 3637 | _internal_metadata_.unknown_fields(), target); |
| 3638 | } |
| 3639 | // @@protoc_insertion_point(serialize_to_array_end:dmi.HWComponentInfoSetResponse) |
| 3640 | return target; |
| 3641 | } |
| 3642 | |
| 3643 | size_t HWComponentInfoSetResponse::ByteSizeLong() const { |
| 3644 | // @@protoc_insertion_point(message_byte_size_start:dmi.HWComponentInfoSetResponse) |
| 3645 | size_t total_size = 0; |
| 3646 | |
| 3647 | if (_internal_metadata_.have_unknown_fields()) { |
| 3648 | total_size += |
| 3649 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 3650 | _internal_metadata_.unknown_fields()); |
| 3651 | } |
| 3652 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3653 | // Prevent compiler warnings about cached_has_bits being unused |
| 3654 | (void) cached_has_bits; |
| 3655 | |
| 3656 | // string reason_detail = 3; |
| 3657 | if (this->reason_detail().size() > 0) { |
| 3658 | total_size += 1 + |
| 3659 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 3660 | this->reason_detail()); |
| 3661 | } |
| 3662 | |
| 3663 | // .dmi.Status status = 1; |
| 3664 | if (this->status() != 0) { |
| 3665 | total_size += 1 + |
| 3666 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 3667 | } |
| 3668 | |
| 3669 | // .dmi.HWComponentInfoSetResponse.Reason reason = 2; |
| 3670 | if (this->reason() != 0) { |
| 3671 | total_size += 1 + |
| 3672 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 3673 | } |
| 3674 | |
| 3675 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 3676 | SetCachedSize(cached_size); |
| 3677 | return total_size; |
| 3678 | } |
| 3679 | |
| 3680 | void HWComponentInfoSetResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 3681 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3682 | GOOGLE_DCHECK_NE(&from, this); |
| 3683 | const HWComponentInfoSetResponse* source = |
| 3684 | ::google::protobuf::DynamicCastToGenerated<HWComponentInfoSetResponse>( |
| 3685 | &from); |
| 3686 | if (source == nullptr) { |
| 3687 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.HWComponentInfoSetResponse) |
| 3688 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 3689 | } else { |
| 3690 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.HWComponentInfoSetResponse) |
| 3691 | MergeFrom(*source); |
| 3692 | } |
| 3693 | } |
| 3694 | |
| 3695 | void HWComponentInfoSetResponse::MergeFrom(const HWComponentInfoSetResponse& from) { |
| 3696 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.HWComponentInfoSetResponse) |
| 3697 | GOOGLE_DCHECK_NE(&from, this); |
| 3698 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3699 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3700 | (void) cached_has_bits; |
| 3701 | |
| 3702 | if (from.reason_detail().size() > 0) { |
| 3703 | |
| 3704 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3705 | } |
| 3706 | if (from.status() != 0) { |
| 3707 | set_status(from.status()); |
| 3708 | } |
| 3709 | if (from.reason() != 0) { |
| 3710 | set_reason(from.reason()); |
| 3711 | } |
| 3712 | } |
| 3713 | |
| 3714 | void HWComponentInfoSetResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 3715 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3716 | if (&from == this) return; |
| 3717 | Clear(); |
| 3718 | MergeFrom(from); |
| 3719 | } |
| 3720 | |
| 3721 | void HWComponentInfoSetResponse::CopyFrom(const HWComponentInfoSetResponse& from) { |
| 3722 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.HWComponentInfoSetResponse) |
| 3723 | if (&from == this) return; |
| 3724 | Clear(); |
| 3725 | MergeFrom(from); |
| 3726 | } |
| 3727 | |
| 3728 | bool HWComponentInfoSetResponse::IsInitialized() const { |
| 3729 | return true; |
| 3730 | } |
| 3731 | |
| 3732 | void HWComponentInfoSetResponse::Swap(HWComponentInfoSetResponse* other) { |
| 3733 | if (other == this) return; |
| 3734 | InternalSwap(other); |
| 3735 | } |
| 3736 | void HWComponentInfoSetResponse::InternalSwap(HWComponentInfoSetResponse* other) { |
| 3737 | using std::swap; |
| 3738 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 3739 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 3740 | GetArenaNoVirtual()); |
| 3741 | swap(status_, other->status_); |
| 3742 | swap(reason_, other->reason_); |
| 3743 | } |
| 3744 | |
| 3745 | ::google::protobuf::Metadata HWComponentInfoSetResponse::GetMetadata() const { |
| 3746 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 3747 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 3748 | } |
| 3749 | |
| 3750 | |
| 3751 | // =================================================================== |
| 3752 | |
| 3753 | void StartManagingDeviceResponse::InitAsDefaultInstance() { |
| 3754 | ::dmi::_StartManagingDeviceResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 3755 | ::dmi::Uuid::internal_default_instance()); |
| 3756 | } |
| 3757 | class StartManagingDeviceResponse::HasBitSetters { |
| 3758 | public: |
| 3759 | static const ::dmi::Uuid& device_uuid(const StartManagingDeviceResponse* msg); |
| 3760 | }; |
| 3761 | |
| 3762 | const ::dmi::Uuid& |
| 3763 | StartManagingDeviceResponse::HasBitSetters::device_uuid(const StartManagingDeviceResponse* msg) { |
| 3764 | return *msg->device_uuid_; |
| 3765 | } |
| 3766 | void StartManagingDeviceResponse::clear_device_uuid() { |
| 3767 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3768 | delete device_uuid_; |
| 3769 | } |
| 3770 | device_uuid_ = nullptr; |
| 3771 | } |
| 3772 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3773 | const int StartManagingDeviceResponse::kStatusFieldNumber; |
| 3774 | const int StartManagingDeviceResponse::kReasonFieldNumber; |
| 3775 | const int StartManagingDeviceResponse::kDeviceUuidFieldNumber; |
| 3776 | const int StartManagingDeviceResponse::kReasonDetailFieldNumber; |
| 3777 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 3778 | |
| 3779 | StartManagingDeviceResponse::StartManagingDeviceResponse() |
| 3780 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 3781 | SharedCtor(); |
| 3782 | // @@protoc_insertion_point(constructor:dmi.StartManagingDeviceResponse) |
| 3783 | } |
| 3784 | StartManagingDeviceResponse::StartManagingDeviceResponse(const StartManagingDeviceResponse& from) |
| 3785 | : ::google::protobuf::Message(), |
| 3786 | _internal_metadata_(nullptr) { |
| 3787 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 3788 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3789 | if (from.reason_detail().size() > 0) { |
| 3790 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 3791 | } |
| 3792 | if (from.has_device_uuid()) { |
| 3793 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 3794 | } else { |
| 3795 | device_uuid_ = nullptr; |
| 3796 | } |
| 3797 | ::memcpy(&status_, &from.status_, |
| 3798 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 3799 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3800 | // @@protoc_insertion_point(copy_constructor:dmi.StartManagingDeviceResponse) |
| 3801 | } |
| 3802 | |
| 3803 | void StartManagingDeviceResponse::SharedCtor() { |
| 3804 | ::google::protobuf::internal::InitSCC( |
| 3805 | &scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3806 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3807 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 3808 | reinterpret_cast<char*>(&reason_) - |
| 3809 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 3810 | } |
| 3811 | |
| 3812 | StartManagingDeviceResponse::~StartManagingDeviceResponse() { |
| 3813 | // @@protoc_insertion_point(destructor:dmi.StartManagingDeviceResponse) |
| 3814 | SharedDtor(); |
| 3815 | } |
| 3816 | |
| 3817 | void StartManagingDeviceResponse::SharedDtor() { |
| 3818 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3819 | if (this != internal_default_instance()) delete device_uuid_; |
| 3820 | } |
| 3821 | |
| 3822 | void StartManagingDeviceResponse::SetCachedSize(int size) const { |
| 3823 | _cached_size_.Set(size); |
| 3824 | } |
| 3825 | const StartManagingDeviceResponse& StartManagingDeviceResponse::default_instance() { |
| 3826 | ::google::protobuf::internal::InitSCC(&::scc_info_StartManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 3827 | return *internal_default_instance(); |
| 3828 | } |
| 3829 | |
| 3830 | |
| 3831 | void StartManagingDeviceResponse::Clear() { |
| 3832 | // @@protoc_insertion_point(message_clear_start:dmi.StartManagingDeviceResponse) |
| 3833 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 3834 | // Prevent compiler warnings about cached_has_bits being unused |
| 3835 | (void) cached_has_bits; |
| 3836 | |
| 3837 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 3838 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 3839 | delete device_uuid_; |
| 3840 | } |
| 3841 | device_uuid_ = nullptr; |
| 3842 | ::memset(&status_, 0, static_cast<size_t>( |
| 3843 | reinterpret_cast<char*>(&reason_) - |
| 3844 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 3845 | _internal_metadata_.Clear(); |
| 3846 | } |
| 3847 | |
| 3848 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3849 | const char* StartManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 3850 | ::google::protobuf::internal::ParseContext* ctx) { |
| 3851 | auto msg = static_cast<StartManagingDeviceResponse*>(object); |
| 3852 | ::google::protobuf::int32 size; (void)size; |
| 3853 | int depth; (void)depth; |
| 3854 | ::google::protobuf::uint32 tag; |
| 3855 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 3856 | auto ptr = begin; |
| 3857 | while (ptr < end) { |
| 3858 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 3859 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3860 | switch (tag >> 3) { |
| 3861 | // .dmi.Status status = 1; |
| 3862 | case 1: { |
| 3863 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 3864 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3865 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 3866 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3867 | break; |
| 3868 | } |
| 3869 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 3870 | case 2: { |
| 3871 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 3872 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 3873 | msg->set_reason(static_cast<::dmi::StartManagingDeviceResponse_Reason>(val)); |
| 3874 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3875 | break; |
| 3876 | } |
| 3877 | // .dmi.Uuid device_uuid = 3; |
| 3878 | case 3: { |
| 3879 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 3880 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3881 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3882 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 3883 | object = msg->mutable_device_uuid(); |
| 3884 | if (size > end - ptr) goto len_delim_till_end; |
| 3885 | ptr += size; |
| 3886 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 3887 | {parser_till_end, object}, ptr - size, ptr)); |
| 3888 | break; |
| 3889 | } |
| 3890 | // string reason_detail = 4; |
| 3891 | case 4: { |
| 3892 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 3893 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 3894 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 3895 | ctx->extra_parse_data().SetFieldName("dmi.StartManagingDeviceResponse.reason_detail"); |
| 3896 | object = msg->mutable_reason_detail(); |
| 3897 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 3898 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 3899 | goto string_till_end; |
| 3900 | } |
| 3901 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 3902 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 3903 | ptr += size; |
| 3904 | break; |
| 3905 | } |
| 3906 | default: { |
| 3907 | handle_unusual: |
| 3908 | if ((tag & 7) == 4 || tag == 0) { |
| 3909 | ctx->EndGroup(tag); |
| 3910 | return ptr; |
| 3911 | } |
| 3912 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 3913 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 3914 | ptr = res.first; |
| 3915 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 3916 | if (res.second) return ptr; |
| 3917 | } |
| 3918 | } // switch |
| 3919 | } // while |
| 3920 | return ptr; |
| 3921 | string_till_end: |
| 3922 | static_cast<::std::string*>(object)->clear(); |
| 3923 | static_cast<::std::string*>(object)->reserve(size); |
| 3924 | goto len_delim_till_end; |
| 3925 | len_delim_till_end: |
| 3926 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 3927 | {parser_till_end, object}, size); |
| 3928 | } |
| 3929 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 3930 | bool StartManagingDeviceResponse::MergePartialFromCodedStream( |
| 3931 | ::google::protobuf::io::CodedInputStream* input) { |
| 3932 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 3933 | ::google::protobuf::uint32 tag; |
| 3934 | // @@protoc_insertion_point(parse_start:dmi.StartManagingDeviceResponse) |
| 3935 | for (;;) { |
| 3936 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 3937 | tag = p.first; |
| 3938 | if (!p.second) goto handle_unusual; |
| 3939 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 3940 | // .dmi.Status status = 1; |
| 3941 | case 1: { |
| 3942 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 3943 | int value = 0; |
| 3944 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3945 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3946 | input, &value))); |
| 3947 | set_status(static_cast< ::dmi::Status >(value)); |
| 3948 | } else { |
| 3949 | goto handle_unusual; |
| 3950 | } |
| 3951 | break; |
| 3952 | } |
| 3953 | |
| 3954 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 3955 | case 2: { |
| 3956 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 3957 | int value = 0; |
| 3958 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 3959 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 3960 | input, &value))); |
| 3961 | set_reason(static_cast< ::dmi::StartManagingDeviceResponse_Reason >(value)); |
| 3962 | } else { |
| 3963 | goto handle_unusual; |
| 3964 | } |
| 3965 | break; |
| 3966 | } |
| 3967 | |
| 3968 | // .dmi.Uuid device_uuid = 3; |
| 3969 | case 3: { |
| 3970 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 3971 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 3972 | input, mutable_device_uuid())); |
| 3973 | } else { |
| 3974 | goto handle_unusual; |
| 3975 | } |
| 3976 | break; |
| 3977 | } |
| 3978 | |
| 3979 | // string reason_detail = 4; |
| 3980 | case 4: { |
| 3981 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 3982 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 3983 | input, this->mutable_reason_detail())); |
| 3984 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 3985 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 3986 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 3987 | "dmi.StartManagingDeviceResponse.reason_detail")); |
| 3988 | } else { |
| 3989 | goto handle_unusual; |
| 3990 | } |
| 3991 | break; |
| 3992 | } |
| 3993 | |
| 3994 | default: { |
| 3995 | handle_unusual: |
| 3996 | if (tag == 0) { |
| 3997 | goto success; |
| 3998 | } |
| 3999 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4000 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4001 | break; |
| 4002 | } |
| 4003 | } |
| 4004 | } |
| 4005 | success: |
| 4006 | // @@protoc_insertion_point(parse_success:dmi.StartManagingDeviceResponse) |
| 4007 | return true; |
| 4008 | failure: |
| 4009 | // @@protoc_insertion_point(parse_failure:dmi.StartManagingDeviceResponse) |
| 4010 | return false; |
| 4011 | #undef DO_ |
| 4012 | } |
| 4013 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4014 | |
| 4015 | void StartManagingDeviceResponse::SerializeWithCachedSizes( |
| 4016 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4017 | // @@protoc_insertion_point(serialize_start:dmi.StartManagingDeviceResponse) |
| 4018 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4019 | (void) cached_has_bits; |
| 4020 | |
| 4021 | // .dmi.Status status = 1; |
| 4022 | if (this->status() != 0) { |
| 4023 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4024 | 1, this->status(), output); |
| 4025 | } |
| 4026 | |
| 4027 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4028 | if (this->reason() != 0) { |
| 4029 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4030 | 2, this->reason(), output); |
| 4031 | } |
| 4032 | |
| 4033 | // .dmi.Uuid device_uuid = 3; |
| 4034 | if (this->has_device_uuid()) { |
| 4035 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 4036 | 3, HasBitSetters::device_uuid(this), output); |
| 4037 | } |
| 4038 | |
| 4039 | // string reason_detail = 4; |
| 4040 | if (this->reason_detail().size() > 0) { |
| 4041 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4042 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4043 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4044 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4045 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4046 | 4, this->reason_detail(), output); |
| 4047 | } |
| 4048 | |
| 4049 | if (_internal_metadata_.have_unknown_fields()) { |
| 4050 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4051 | _internal_metadata_.unknown_fields(), output); |
| 4052 | } |
| 4053 | // @@protoc_insertion_point(serialize_end:dmi.StartManagingDeviceResponse) |
| 4054 | } |
| 4055 | |
| 4056 | ::google::protobuf::uint8* StartManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4057 | ::google::protobuf::uint8* target) const { |
| 4058 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StartManagingDeviceResponse) |
| 4059 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4060 | (void) cached_has_bits; |
| 4061 | |
| 4062 | // .dmi.Status status = 1; |
| 4063 | if (this->status() != 0) { |
| 4064 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4065 | 1, this->status(), target); |
| 4066 | } |
| 4067 | |
| 4068 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4069 | if (this->reason() != 0) { |
| 4070 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4071 | 2, this->reason(), target); |
| 4072 | } |
| 4073 | |
| 4074 | // .dmi.Uuid device_uuid = 3; |
| 4075 | if (this->has_device_uuid()) { |
| 4076 | target = ::google::protobuf::internal::WireFormatLite:: |
| 4077 | InternalWriteMessageToArray( |
| 4078 | 3, HasBitSetters::device_uuid(this), target); |
| 4079 | } |
| 4080 | |
| 4081 | // string reason_detail = 4; |
| 4082 | if (this->reason_detail().size() > 0) { |
| 4083 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4084 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4085 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4086 | "dmi.StartManagingDeviceResponse.reason_detail"); |
| 4087 | target = |
| 4088 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4089 | 4, this->reason_detail(), target); |
| 4090 | } |
| 4091 | |
| 4092 | if (_internal_metadata_.have_unknown_fields()) { |
| 4093 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4094 | _internal_metadata_.unknown_fields(), target); |
| 4095 | } |
| 4096 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StartManagingDeviceResponse) |
| 4097 | return target; |
| 4098 | } |
| 4099 | |
| 4100 | size_t StartManagingDeviceResponse::ByteSizeLong() const { |
| 4101 | // @@protoc_insertion_point(message_byte_size_start:dmi.StartManagingDeviceResponse) |
| 4102 | size_t total_size = 0; |
| 4103 | |
| 4104 | if (_internal_metadata_.have_unknown_fields()) { |
| 4105 | total_size += |
| 4106 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4107 | _internal_metadata_.unknown_fields()); |
| 4108 | } |
| 4109 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4110 | // Prevent compiler warnings about cached_has_bits being unused |
| 4111 | (void) cached_has_bits; |
| 4112 | |
| 4113 | // string reason_detail = 4; |
| 4114 | if (this->reason_detail().size() > 0) { |
| 4115 | total_size += 1 + |
| 4116 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4117 | this->reason_detail()); |
| 4118 | } |
| 4119 | |
| 4120 | // .dmi.Uuid device_uuid = 3; |
| 4121 | if (this->has_device_uuid()) { |
| 4122 | total_size += 1 + |
| 4123 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 4124 | *device_uuid_); |
| 4125 | } |
| 4126 | |
| 4127 | // .dmi.Status status = 1; |
| 4128 | if (this->status() != 0) { |
| 4129 | total_size += 1 + |
| 4130 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4131 | } |
| 4132 | |
| 4133 | // .dmi.StartManagingDeviceResponse.Reason reason = 2; |
| 4134 | if (this->reason() != 0) { |
| 4135 | total_size += 1 + |
| 4136 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4137 | } |
| 4138 | |
| 4139 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4140 | SetCachedSize(cached_size); |
| 4141 | return total_size; |
| 4142 | } |
| 4143 | |
| 4144 | void StartManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4145 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4146 | GOOGLE_DCHECK_NE(&from, this); |
| 4147 | const StartManagingDeviceResponse* source = |
| 4148 | ::google::protobuf::DynamicCastToGenerated<StartManagingDeviceResponse>( |
| 4149 | &from); |
| 4150 | if (source == nullptr) { |
| 4151 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StartManagingDeviceResponse) |
| 4152 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4153 | } else { |
| 4154 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StartManagingDeviceResponse) |
| 4155 | MergeFrom(*source); |
| 4156 | } |
| 4157 | } |
| 4158 | |
| 4159 | void StartManagingDeviceResponse::MergeFrom(const StartManagingDeviceResponse& from) { |
| 4160 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StartManagingDeviceResponse) |
| 4161 | GOOGLE_DCHECK_NE(&from, this); |
| 4162 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4163 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4164 | (void) cached_has_bits; |
| 4165 | |
| 4166 | if (from.reason_detail().size() > 0) { |
| 4167 | |
| 4168 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4169 | } |
| 4170 | if (from.has_device_uuid()) { |
| 4171 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 4172 | } |
| 4173 | if (from.status() != 0) { |
| 4174 | set_status(from.status()); |
| 4175 | } |
| 4176 | if (from.reason() != 0) { |
| 4177 | set_reason(from.reason()); |
| 4178 | } |
| 4179 | } |
| 4180 | |
| 4181 | void StartManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4182 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4183 | if (&from == this) return; |
| 4184 | Clear(); |
| 4185 | MergeFrom(from); |
| 4186 | } |
| 4187 | |
| 4188 | void StartManagingDeviceResponse::CopyFrom(const StartManagingDeviceResponse& from) { |
| 4189 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StartManagingDeviceResponse) |
| 4190 | if (&from == this) return; |
| 4191 | Clear(); |
| 4192 | MergeFrom(from); |
| 4193 | } |
| 4194 | |
| 4195 | bool StartManagingDeviceResponse::IsInitialized() const { |
| 4196 | return true; |
| 4197 | } |
| 4198 | |
| 4199 | void StartManagingDeviceResponse::Swap(StartManagingDeviceResponse* other) { |
| 4200 | if (other == this) return; |
| 4201 | InternalSwap(other); |
| 4202 | } |
| 4203 | void StartManagingDeviceResponse::InternalSwap(StartManagingDeviceResponse* other) { |
| 4204 | using std::swap; |
| 4205 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4206 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4207 | GetArenaNoVirtual()); |
| 4208 | swap(device_uuid_, other->device_uuid_); |
| 4209 | swap(status_, other->status_); |
| 4210 | swap(reason_, other->reason_); |
| 4211 | } |
| 4212 | |
| 4213 | ::google::protobuf::Metadata StartManagingDeviceResponse::GetMetadata() const { |
| 4214 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4215 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4216 | } |
| 4217 | |
| 4218 | |
| 4219 | // =================================================================== |
| 4220 | |
| 4221 | void StopManagingDeviceRequest::InitAsDefaultInstance() { |
| 4222 | } |
| 4223 | class StopManagingDeviceRequest::HasBitSetters { |
| 4224 | public: |
| 4225 | }; |
| 4226 | |
| 4227 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4228 | const int StopManagingDeviceRequest::kNameFieldNumber; |
| 4229 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4230 | |
| 4231 | StopManagingDeviceRequest::StopManagingDeviceRequest() |
| 4232 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4233 | SharedCtor(); |
| 4234 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceRequest) |
| 4235 | } |
| 4236 | StopManagingDeviceRequest::StopManagingDeviceRequest(const StopManagingDeviceRequest& from) |
| 4237 | : ::google::protobuf::Message(), |
| 4238 | _internal_metadata_(nullptr) { |
| 4239 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4240 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4241 | if (from.name().size() > 0) { |
| 4242 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4243 | } |
| 4244 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceRequest) |
| 4245 | } |
| 4246 | |
| 4247 | void StopManagingDeviceRequest::SharedCtor() { |
| 4248 | ::google::protobuf::internal::InitSCC( |
| 4249 | &scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4250 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4251 | } |
| 4252 | |
| 4253 | StopManagingDeviceRequest::~StopManagingDeviceRequest() { |
| 4254 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceRequest) |
| 4255 | SharedDtor(); |
| 4256 | } |
| 4257 | |
| 4258 | void StopManagingDeviceRequest::SharedDtor() { |
| 4259 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4260 | } |
| 4261 | |
| 4262 | void StopManagingDeviceRequest::SetCachedSize(int size) const { |
| 4263 | _cached_size_.Set(size); |
| 4264 | } |
| 4265 | const StopManagingDeviceRequest& StopManagingDeviceRequest::default_instance() { |
| 4266 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4267 | return *internal_default_instance(); |
| 4268 | } |
| 4269 | |
| 4270 | |
| 4271 | void StopManagingDeviceRequest::Clear() { |
| 4272 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceRequest) |
| 4273 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4274 | // Prevent compiler warnings about cached_has_bits being unused |
| 4275 | (void) cached_has_bits; |
| 4276 | |
| 4277 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4278 | _internal_metadata_.Clear(); |
| 4279 | } |
| 4280 | |
| 4281 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4282 | const char* StopManagingDeviceRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 4283 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4284 | auto msg = static_cast<StopManagingDeviceRequest*>(object); |
| 4285 | ::google::protobuf::int32 size; (void)size; |
| 4286 | int depth; (void)depth; |
| 4287 | ::google::protobuf::uint32 tag; |
| 4288 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4289 | auto ptr = begin; |
| 4290 | while (ptr < end) { |
| 4291 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4292 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4293 | switch (tag >> 3) { |
| 4294 | // string name = 1; |
| 4295 | case 1: { |
| 4296 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 4297 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4298 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4299 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceRequest.name"); |
| 4300 | object = msg->mutable_name(); |
| 4301 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4302 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4303 | goto string_till_end; |
| 4304 | } |
| 4305 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4306 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4307 | ptr += size; |
| 4308 | break; |
| 4309 | } |
| 4310 | default: { |
| 4311 | handle_unusual: |
| 4312 | if ((tag & 7) == 4 || tag == 0) { |
| 4313 | ctx->EndGroup(tag); |
| 4314 | return ptr; |
| 4315 | } |
| 4316 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4317 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4318 | ptr = res.first; |
| 4319 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4320 | if (res.second) return ptr; |
| 4321 | } |
| 4322 | } // switch |
| 4323 | } // while |
| 4324 | return ptr; |
| 4325 | string_till_end: |
| 4326 | static_cast<::std::string*>(object)->clear(); |
| 4327 | static_cast<::std::string*>(object)->reserve(size); |
| 4328 | goto len_delim_till_end; |
| 4329 | len_delim_till_end: |
| 4330 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4331 | {parser_till_end, object}, size); |
| 4332 | } |
| 4333 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4334 | bool StopManagingDeviceRequest::MergePartialFromCodedStream( |
| 4335 | ::google::protobuf::io::CodedInputStream* input) { |
| 4336 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4337 | ::google::protobuf::uint32 tag; |
| 4338 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceRequest) |
| 4339 | for (;;) { |
| 4340 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4341 | tag = p.first; |
| 4342 | if (!p.second) goto handle_unusual; |
| 4343 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4344 | // string name = 1; |
| 4345 | case 1: { |
| 4346 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 4347 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4348 | input, this->mutable_name())); |
| 4349 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4350 | this->name().data(), static_cast<int>(this->name().length()), |
| 4351 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4352 | "dmi.StopManagingDeviceRequest.name")); |
| 4353 | } else { |
| 4354 | goto handle_unusual; |
| 4355 | } |
| 4356 | break; |
| 4357 | } |
| 4358 | |
| 4359 | default: { |
| 4360 | handle_unusual: |
| 4361 | if (tag == 0) { |
| 4362 | goto success; |
| 4363 | } |
| 4364 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4365 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4366 | break; |
| 4367 | } |
| 4368 | } |
| 4369 | } |
| 4370 | success: |
| 4371 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceRequest) |
| 4372 | return true; |
| 4373 | failure: |
| 4374 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceRequest) |
| 4375 | return false; |
| 4376 | #undef DO_ |
| 4377 | } |
| 4378 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4379 | |
| 4380 | void StopManagingDeviceRequest::SerializeWithCachedSizes( |
| 4381 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4382 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceRequest) |
| 4383 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4384 | (void) cached_has_bits; |
| 4385 | |
| 4386 | // string name = 1; |
| 4387 | if (this->name().size() > 0) { |
| 4388 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4389 | this->name().data(), static_cast<int>(this->name().length()), |
| 4390 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4391 | "dmi.StopManagingDeviceRequest.name"); |
| 4392 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4393 | 1, this->name(), output); |
| 4394 | } |
| 4395 | |
| 4396 | if (_internal_metadata_.have_unknown_fields()) { |
| 4397 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4398 | _internal_metadata_.unknown_fields(), output); |
| 4399 | } |
| 4400 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceRequest) |
| 4401 | } |
| 4402 | |
| 4403 | ::google::protobuf::uint8* StopManagingDeviceRequest::InternalSerializeWithCachedSizesToArray( |
| 4404 | ::google::protobuf::uint8* target) const { |
| 4405 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceRequest) |
| 4406 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4407 | (void) cached_has_bits; |
| 4408 | |
| 4409 | // string name = 1; |
| 4410 | if (this->name().size() > 0) { |
| 4411 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4412 | this->name().data(), static_cast<int>(this->name().length()), |
| 4413 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4414 | "dmi.StopManagingDeviceRequest.name"); |
| 4415 | target = |
| 4416 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4417 | 1, this->name(), target); |
| 4418 | } |
| 4419 | |
| 4420 | if (_internal_metadata_.have_unknown_fields()) { |
| 4421 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4422 | _internal_metadata_.unknown_fields(), target); |
| 4423 | } |
| 4424 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceRequest) |
| 4425 | return target; |
| 4426 | } |
| 4427 | |
| 4428 | size_t StopManagingDeviceRequest::ByteSizeLong() const { |
| 4429 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceRequest) |
| 4430 | size_t total_size = 0; |
| 4431 | |
| 4432 | if (_internal_metadata_.have_unknown_fields()) { |
| 4433 | total_size += |
| 4434 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4435 | _internal_metadata_.unknown_fields()); |
| 4436 | } |
| 4437 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4438 | // Prevent compiler warnings about cached_has_bits being unused |
| 4439 | (void) cached_has_bits; |
| 4440 | |
| 4441 | // string name = 1; |
| 4442 | if (this->name().size() > 0) { |
| 4443 | total_size += 1 + |
| 4444 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4445 | this->name()); |
| 4446 | } |
| 4447 | |
| 4448 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4449 | SetCachedSize(cached_size); |
| 4450 | return total_size; |
| 4451 | } |
| 4452 | |
| 4453 | void StopManagingDeviceRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 4454 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4455 | GOOGLE_DCHECK_NE(&from, this); |
| 4456 | const StopManagingDeviceRequest* source = |
| 4457 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceRequest>( |
| 4458 | &from); |
| 4459 | if (source == nullptr) { |
| 4460 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceRequest) |
| 4461 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4462 | } else { |
| 4463 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceRequest) |
| 4464 | MergeFrom(*source); |
| 4465 | } |
| 4466 | } |
| 4467 | |
| 4468 | void StopManagingDeviceRequest::MergeFrom(const StopManagingDeviceRequest& from) { |
| 4469 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceRequest) |
| 4470 | GOOGLE_DCHECK_NE(&from, this); |
| 4471 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4472 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4473 | (void) cached_has_bits; |
| 4474 | |
| 4475 | if (from.name().size() > 0) { |
| 4476 | |
| 4477 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
| 4478 | } |
| 4479 | } |
| 4480 | |
| 4481 | void StopManagingDeviceRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 4482 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4483 | if (&from == this) return; |
| 4484 | Clear(); |
| 4485 | MergeFrom(from); |
| 4486 | } |
| 4487 | |
| 4488 | void StopManagingDeviceRequest::CopyFrom(const StopManagingDeviceRequest& from) { |
| 4489 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceRequest) |
| 4490 | if (&from == this) return; |
| 4491 | Clear(); |
| 4492 | MergeFrom(from); |
| 4493 | } |
| 4494 | |
| 4495 | bool StopManagingDeviceRequest::IsInitialized() const { |
| 4496 | return true; |
| 4497 | } |
| 4498 | |
| 4499 | void StopManagingDeviceRequest::Swap(StopManagingDeviceRequest* other) { |
| 4500 | if (other == this) return; |
| 4501 | InternalSwap(other); |
| 4502 | } |
| 4503 | void StopManagingDeviceRequest::InternalSwap(StopManagingDeviceRequest* other) { |
| 4504 | using std::swap; |
| 4505 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4506 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4507 | GetArenaNoVirtual()); |
| 4508 | } |
| 4509 | |
| 4510 | ::google::protobuf::Metadata StopManagingDeviceRequest::GetMetadata() const { |
| 4511 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4512 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4513 | } |
| 4514 | |
| 4515 | |
| 4516 | // =================================================================== |
| 4517 | |
| 4518 | void StopManagingDeviceResponse::InitAsDefaultInstance() { |
| 4519 | } |
| 4520 | class StopManagingDeviceResponse::HasBitSetters { |
| 4521 | public: |
| 4522 | }; |
| 4523 | |
| 4524 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4525 | const int StopManagingDeviceResponse::kStatusFieldNumber; |
| 4526 | const int StopManagingDeviceResponse::kReasonFieldNumber; |
| 4527 | const int StopManagingDeviceResponse::kReasonDetailFieldNumber; |
| 4528 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4529 | |
| 4530 | StopManagingDeviceResponse::StopManagingDeviceResponse() |
| 4531 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4532 | SharedCtor(); |
| 4533 | // @@protoc_insertion_point(constructor:dmi.StopManagingDeviceResponse) |
| 4534 | } |
| 4535 | StopManagingDeviceResponse::StopManagingDeviceResponse(const StopManagingDeviceResponse& from) |
| 4536 | : ::google::protobuf::Message(), |
| 4537 | _internal_metadata_(nullptr) { |
| 4538 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4539 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4540 | if (from.reason_detail().size() > 0) { |
| 4541 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4542 | } |
| 4543 | ::memcpy(&status_, &from.status_, |
| 4544 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 4545 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4546 | // @@protoc_insertion_point(copy_constructor:dmi.StopManagingDeviceResponse) |
| 4547 | } |
| 4548 | |
| 4549 | void StopManagingDeviceResponse::SharedCtor() { |
| 4550 | ::google::protobuf::internal::InitSCC( |
| 4551 | &scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4552 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4553 | ::memset(&status_, 0, static_cast<size_t>( |
| 4554 | reinterpret_cast<char*>(&reason_) - |
| 4555 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4556 | } |
| 4557 | |
| 4558 | StopManagingDeviceResponse::~StopManagingDeviceResponse() { |
| 4559 | // @@protoc_insertion_point(destructor:dmi.StopManagingDeviceResponse) |
| 4560 | SharedDtor(); |
| 4561 | } |
| 4562 | |
| 4563 | void StopManagingDeviceResponse::SharedDtor() { |
| 4564 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4565 | } |
| 4566 | |
| 4567 | void StopManagingDeviceResponse::SetCachedSize(int size) const { |
| 4568 | _cached_size_.Set(size); |
| 4569 | } |
| 4570 | const StopManagingDeviceResponse& StopManagingDeviceResponse::default_instance() { |
| 4571 | ::google::protobuf::internal::InitSCC(&::scc_info_StopManagingDeviceResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4572 | return *internal_default_instance(); |
| 4573 | } |
| 4574 | |
| 4575 | |
| 4576 | void StopManagingDeviceResponse::Clear() { |
| 4577 | // @@protoc_insertion_point(message_clear_start:dmi.StopManagingDeviceResponse) |
| 4578 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4579 | // Prevent compiler warnings about cached_has_bits being unused |
| 4580 | (void) cached_has_bits; |
| 4581 | |
| 4582 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 4583 | ::memset(&status_, 0, static_cast<size_t>( |
| 4584 | reinterpret_cast<char*>(&reason_) - |
| 4585 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 4586 | _internal_metadata_.Clear(); |
| 4587 | } |
| 4588 | |
| 4589 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4590 | const char* StopManagingDeviceResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 4591 | ::google::protobuf::internal::ParseContext* ctx) { |
| 4592 | auto msg = static_cast<StopManagingDeviceResponse*>(object); |
| 4593 | ::google::protobuf::int32 size; (void)size; |
| 4594 | int depth; (void)depth; |
| 4595 | ::google::protobuf::uint32 tag; |
| 4596 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 4597 | auto ptr = begin; |
| 4598 | while (ptr < end) { |
| 4599 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 4600 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4601 | switch (tag >> 3) { |
| 4602 | // .dmi.Status status = 1; |
| 4603 | case 1: { |
| 4604 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 4605 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4606 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 4607 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4608 | break; |
| 4609 | } |
| 4610 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4611 | case 2: { |
| 4612 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 4613 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 4614 | msg->set_reason(static_cast<::dmi::StopManagingDeviceResponse_Reason>(val)); |
| 4615 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4616 | break; |
| 4617 | } |
| 4618 | // string reason_detail = 3; |
| 4619 | case 3: { |
| 4620 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 4621 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 4622 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 4623 | ctx->extra_parse_data().SetFieldName("dmi.StopManagingDeviceResponse.reason_detail"); |
| 4624 | object = msg->mutable_reason_detail(); |
| 4625 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 4626 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 4627 | goto string_till_end; |
| 4628 | } |
| 4629 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 4630 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 4631 | ptr += size; |
| 4632 | break; |
| 4633 | } |
| 4634 | default: { |
| 4635 | handle_unusual: |
| 4636 | if ((tag & 7) == 4 || tag == 0) { |
| 4637 | ctx->EndGroup(tag); |
| 4638 | return ptr; |
| 4639 | } |
| 4640 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 4641 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 4642 | ptr = res.first; |
| 4643 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 4644 | if (res.second) return ptr; |
| 4645 | } |
| 4646 | } // switch |
| 4647 | } // while |
| 4648 | return ptr; |
| 4649 | string_till_end: |
| 4650 | static_cast<::std::string*>(object)->clear(); |
| 4651 | static_cast<::std::string*>(object)->reserve(size); |
| 4652 | goto len_delim_till_end; |
| 4653 | len_delim_till_end: |
| 4654 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 4655 | {parser_till_end, object}, size); |
| 4656 | } |
| 4657 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4658 | bool StopManagingDeviceResponse::MergePartialFromCodedStream( |
| 4659 | ::google::protobuf::io::CodedInputStream* input) { |
| 4660 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 4661 | ::google::protobuf::uint32 tag; |
| 4662 | // @@protoc_insertion_point(parse_start:dmi.StopManagingDeviceResponse) |
| 4663 | for (;;) { |
| 4664 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 4665 | tag = p.first; |
| 4666 | if (!p.second) goto handle_unusual; |
| 4667 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 4668 | // .dmi.Status status = 1; |
| 4669 | case 1: { |
| 4670 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 4671 | int value = 0; |
| 4672 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4673 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4674 | input, &value))); |
| 4675 | set_status(static_cast< ::dmi::Status >(value)); |
| 4676 | } else { |
| 4677 | goto handle_unusual; |
| 4678 | } |
| 4679 | break; |
| 4680 | } |
| 4681 | |
| 4682 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4683 | case 2: { |
| 4684 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 4685 | int value = 0; |
| 4686 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 4687 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 4688 | input, &value))); |
| 4689 | set_reason(static_cast< ::dmi::StopManagingDeviceResponse_Reason >(value)); |
| 4690 | } else { |
| 4691 | goto handle_unusual; |
| 4692 | } |
| 4693 | break; |
| 4694 | } |
| 4695 | |
| 4696 | // string reason_detail = 3; |
| 4697 | case 3: { |
| 4698 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 4699 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 4700 | input, this->mutable_reason_detail())); |
| 4701 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4702 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4703 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 4704 | "dmi.StopManagingDeviceResponse.reason_detail")); |
| 4705 | } else { |
| 4706 | goto handle_unusual; |
| 4707 | } |
| 4708 | break; |
| 4709 | } |
| 4710 | |
| 4711 | default: { |
| 4712 | handle_unusual: |
| 4713 | if (tag == 0) { |
| 4714 | goto success; |
| 4715 | } |
| 4716 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 4717 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 4718 | break; |
| 4719 | } |
| 4720 | } |
| 4721 | } |
| 4722 | success: |
| 4723 | // @@protoc_insertion_point(parse_success:dmi.StopManagingDeviceResponse) |
| 4724 | return true; |
| 4725 | failure: |
| 4726 | // @@protoc_insertion_point(parse_failure:dmi.StopManagingDeviceResponse) |
| 4727 | return false; |
| 4728 | #undef DO_ |
| 4729 | } |
| 4730 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 4731 | |
| 4732 | void StopManagingDeviceResponse::SerializeWithCachedSizes( |
| 4733 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 4734 | // @@protoc_insertion_point(serialize_start:dmi.StopManagingDeviceResponse) |
| 4735 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4736 | (void) cached_has_bits; |
| 4737 | |
| 4738 | // .dmi.Status status = 1; |
| 4739 | if (this->status() != 0) { |
| 4740 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4741 | 1, this->status(), output); |
| 4742 | } |
| 4743 | |
| 4744 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4745 | if (this->reason() != 0) { |
| 4746 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 4747 | 2, this->reason(), output); |
| 4748 | } |
| 4749 | |
| 4750 | // string reason_detail = 3; |
| 4751 | if (this->reason_detail().size() > 0) { |
| 4752 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4753 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4754 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4755 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4756 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 4757 | 3, this->reason_detail(), output); |
| 4758 | } |
| 4759 | |
| 4760 | if (_internal_metadata_.have_unknown_fields()) { |
| 4761 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 4762 | _internal_metadata_.unknown_fields(), output); |
| 4763 | } |
| 4764 | // @@protoc_insertion_point(serialize_end:dmi.StopManagingDeviceResponse) |
| 4765 | } |
| 4766 | |
| 4767 | ::google::protobuf::uint8* StopManagingDeviceResponse::InternalSerializeWithCachedSizesToArray( |
| 4768 | ::google::protobuf::uint8* target) const { |
| 4769 | // @@protoc_insertion_point(serialize_to_array_start:dmi.StopManagingDeviceResponse) |
| 4770 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4771 | (void) cached_has_bits; |
| 4772 | |
| 4773 | // .dmi.Status status = 1; |
| 4774 | if (this->status() != 0) { |
| 4775 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4776 | 1, this->status(), target); |
| 4777 | } |
| 4778 | |
| 4779 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4780 | if (this->reason() != 0) { |
| 4781 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 4782 | 2, this->reason(), target); |
| 4783 | } |
| 4784 | |
| 4785 | // string reason_detail = 3; |
| 4786 | if (this->reason_detail().size() > 0) { |
| 4787 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 4788 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 4789 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 4790 | "dmi.StopManagingDeviceResponse.reason_detail"); |
| 4791 | target = |
| 4792 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 4793 | 3, this->reason_detail(), target); |
| 4794 | } |
| 4795 | |
| 4796 | if (_internal_metadata_.have_unknown_fields()) { |
| 4797 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 4798 | _internal_metadata_.unknown_fields(), target); |
| 4799 | } |
| 4800 | // @@protoc_insertion_point(serialize_to_array_end:dmi.StopManagingDeviceResponse) |
| 4801 | return target; |
| 4802 | } |
| 4803 | |
| 4804 | size_t StopManagingDeviceResponse::ByteSizeLong() const { |
| 4805 | // @@protoc_insertion_point(message_byte_size_start:dmi.StopManagingDeviceResponse) |
| 4806 | size_t total_size = 0; |
| 4807 | |
| 4808 | if (_internal_metadata_.have_unknown_fields()) { |
| 4809 | total_size += |
| 4810 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 4811 | _internal_metadata_.unknown_fields()); |
| 4812 | } |
| 4813 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4814 | // Prevent compiler warnings about cached_has_bits being unused |
| 4815 | (void) cached_has_bits; |
| 4816 | |
| 4817 | // string reason_detail = 3; |
| 4818 | if (this->reason_detail().size() > 0) { |
| 4819 | total_size += 1 + |
| 4820 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 4821 | this->reason_detail()); |
| 4822 | } |
| 4823 | |
| 4824 | // .dmi.Status status = 1; |
| 4825 | if (this->status() != 0) { |
| 4826 | total_size += 1 + |
| 4827 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 4828 | } |
| 4829 | |
| 4830 | // .dmi.StopManagingDeviceResponse.Reason reason = 2; |
| 4831 | if (this->reason() != 0) { |
| 4832 | total_size += 1 + |
| 4833 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 4834 | } |
| 4835 | |
| 4836 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 4837 | SetCachedSize(cached_size); |
| 4838 | return total_size; |
| 4839 | } |
| 4840 | |
| 4841 | void StopManagingDeviceResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 4842 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4843 | GOOGLE_DCHECK_NE(&from, this); |
| 4844 | const StopManagingDeviceResponse* source = |
| 4845 | ::google::protobuf::DynamicCastToGenerated<StopManagingDeviceResponse>( |
| 4846 | &from); |
| 4847 | if (source == nullptr) { |
| 4848 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.StopManagingDeviceResponse) |
| 4849 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 4850 | } else { |
| 4851 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.StopManagingDeviceResponse) |
| 4852 | MergeFrom(*source); |
| 4853 | } |
| 4854 | } |
| 4855 | |
| 4856 | void StopManagingDeviceResponse::MergeFrom(const StopManagingDeviceResponse& from) { |
| 4857 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.StopManagingDeviceResponse) |
| 4858 | GOOGLE_DCHECK_NE(&from, this); |
| 4859 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4860 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 4861 | (void) cached_has_bits; |
| 4862 | |
| 4863 | if (from.reason_detail().size() > 0) { |
| 4864 | |
| 4865 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 4866 | } |
| 4867 | if (from.status() != 0) { |
| 4868 | set_status(from.status()); |
| 4869 | } |
| 4870 | if (from.reason() != 0) { |
| 4871 | set_reason(from.reason()); |
| 4872 | } |
| 4873 | } |
| 4874 | |
| 4875 | void StopManagingDeviceResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 4876 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4877 | if (&from == this) return; |
| 4878 | Clear(); |
| 4879 | MergeFrom(from); |
| 4880 | } |
| 4881 | |
| 4882 | void StopManagingDeviceResponse::CopyFrom(const StopManagingDeviceResponse& from) { |
| 4883 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.StopManagingDeviceResponse) |
| 4884 | if (&from == this) return; |
| 4885 | Clear(); |
| 4886 | MergeFrom(from); |
| 4887 | } |
| 4888 | |
| 4889 | bool StopManagingDeviceResponse::IsInitialized() const { |
| 4890 | return true; |
| 4891 | } |
| 4892 | |
| 4893 | void StopManagingDeviceResponse::Swap(StopManagingDeviceResponse* other) { |
| 4894 | if (other == this) return; |
| 4895 | InternalSwap(other); |
| 4896 | } |
| 4897 | void StopManagingDeviceResponse::InternalSwap(StopManagingDeviceResponse* other) { |
| 4898 | using std::swap; |
| 4899 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 4900 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 4901 | GetArenaNoVirtual()); |
| 4902 | swap(status_, other->status_); |
| 4903 | swap(reason_, other->reason_); |
| 4904 | } |
| 4905 | |
| 4906 | ::google::protobuf::Metadata StopManagingDeviceResponse::GetMetadata() const { |
| 4907 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 4908 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 4909 | } |
| 4910 | |
| 4911 | |
| 4912 | // =================================================================== |
| 4913 | |
| 4914 | void ManagedDeviceInfo::InitAsDefaultInstance() { |
| 4915 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->info_ = const_cast< ::dmi::ModifiableComponent*>( |
| 4916 | ::dmi::ModifiableComponent::internal_default_instance()); |
| 4917 | ::dmi::_ManagedDeviceInfo_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 4918 | ::dmi::Uuid::internal_default_instance()); |
| 4919 | } |
| 4920 | class ManagedDeviceInfo::HasBitSetters { |
| 4921 | public: |
| 4922 | static const ::dmi::ModifiableComponent& info(const ManagedDeviceInfo* msg); |
| 4923 | static const ::dmi::Uuid& device_uuid(const ManagedDeviceInfo* msg); |
| 4924 | }; |
| 4925 | |
| 4926 | const ::dmi::ModifiableComponent& |
| 4927 | ManagedDeviceInfo::HasBitSetters::info(const ManagedDeviceInfo* msg) { |
| 4928 | return *msg->info_; |
| 4929 | } |
| 4930 | const ::dmi::Uuid& |
| 4931 | ManagedDeviceInfo::HasBitSetters::device_uuid(const ManagedDeviceInfo* msg) { |
| 4932 | return *msg->device_uuid_; |
| 4933 | } |
| 4934 | void ManagedDeviceInfo::clear_info() { |
| 4935 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 4936 | delete info_; |
| 4937 | } |
| 4938 | info_ = nullptr; |
| 4939 | } |
| 4940 | void ManagedDeviceInfo::clear_device_uuid() { |
| 4941 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 4942 | delete device_uuid_; |
| 4943 | } |
| 4944 | device_uuid_ = nullptr; |
| 4945 | } |
| 4946 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4947 | const int ManagedDeviceInfo::kInfoFieldNumber; |
| 4948 | const int ManagedDeviceInfo::kDeviceUuidFieldNumber; |
| 4949 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 4950 | |
| 4951 | ManagedDeviceInfo::ManagedDeviceInfo() |
| 4952 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 4953 | SharedCtor(); |
| 4954 | // @@protoc_insertion_point(constructor:dmi.ManagedDeviceInfo) |
| 4955 | } |
| 4956 | ManagedDeviceInfo::ManagedDeviceInfo(const ManagedDeviceInfo& from) |
| 4957 | : ::google::protobuf::Message(), |
| 4958 | _internal_metadata_(nullptr) { |
| 4959 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 4960 | if (from.has_info()) { |
| 4961 | info_ = new ::dmi::ModifiableComponent(*from.info_); |
| 4962 | } else { |
| 4963 | info_ = nullptr; |
| 4964 | } |
| 4965 | if (from.has_device_uuid()) { |
| 4966 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 4967 | } else { |
| 4968 | device_uuid_ = nullptr; |
| 4969 | } |
| 4970 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDeviceInfo) |
| 4971 | } |
| 4972 | |
| 4973 | void ManagedDeviceInfo::SharedCtor() { |
| 4974 | ::google::protobuf::internal::InitSCC( |
| 4975 | &scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4976 | ::memset(&info_, 0, static_cast<size_t>( |
| 4977 | reinterpret_cast<char*>(&device_uuid_) - |
| 4978 | reinterpret_cast<char*>(&info_)) + sizeof(device_uuid_)); |
| 4979 | } |
| 4980 | |
| 4981 | ManagedDeviceInfo::~ManagedDeviceInfo() { |
| 4982 | // @@protoc_insertion_point(destructor:dmi.ManagedDeviceInfo) |
| 4983 | SharedDtor(); |
| 4984 | } |
| 4985 | |
| 4986 | void ManagedDeviceInfo::SharedDtor() { |
| 4987 | if (this != internal_default_instance()) delete info_; |
| 4988 | if (this != internal_default_instance()) delete device_uuid_; |
| 4989 | } |
| 4990 | |
| 4991 | void ManagedDeviceInfo::SetCachedSize(int size) const { |
| 4992 | _cached_size_.Set(size); |
| 4993 | } |
| 4994 | const ManagedDeviceInfo& ManagedDeviceInfo::default_instance() { |
| 4995 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDeviceInfo_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 4996 | return *internal_default_instance(); |
| 4997 | } |
| 4998 | |
| 4999 | |
| 5000 | void ManagedDeviceInfo::Clear() { |
| 5001 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDeviceInfo) |
| 5002 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5003 | // Prevent compiler warnings about cached_has_bits being unused |
| 5004 | (void) cached_has_bits; |
| 5005 | |
| 5006 | if (GetArenaNoVirtual() == nullptr && info_ != nullptr) { |
| 5007 | delete info_; |
| 5008 | } |
| 5009 | info_ = nullptr; |
| 5010 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5011 | delete device_uuid_; |
| 5012 | } |
| 5013 | device_uuid_ = nullptr; |
| 5014 | _internal_metadata_.Clear(); |
| 5015 | } |
| 5016 | |
| 5017 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5018 | const char* ManagedDeviceInfo::_InternalParse(const char* begin, const char* end, void* object, |
| 5019 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5020 | auto msg = static_cast<ManagedDeviceInfo*>(object); |
| 5021 | ::google::protobuf::int32 size; (void)size; |
| 5022 | int depth; (void)depth; |
| 5023 | ::google::protobuf::uint32 tag; |
| 5024 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5025 | auto ptr = begin; |
| 5026 | while (ptr < end) { |
| 5027 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5028 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5029 | switch (tag >> 3) { |
| 5030 | // .dmi.ModifiableComponent info = 1; |
| 5031 | case 1: { |
| 5032 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5033 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5034 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5035 | parser_till_end = ::dmi::ModifiableComponent::_InternalParse; |
| 5036 | object = msg->mutable_info(); |
| 5037 | if (size > end - ptr) goto len_delim_till_end; |
| 5038 | ptr += size; |
| 5039 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5040 | {parser_till_end, object}, ptr - size, ptr)); |
| 5041 | break; |
| 5042 | } |
| 5043 | // .dmi.Uuid device_uuid = 2; |
| 5044 | case 2: { |
| 5045 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5046 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5047 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5048 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5049 | object = msg->mutable_device_uuid(); |
| 5050 | if (size > end - ptr) goto len_delim_till_end; |
| 5051 | ptr += size; |
| 5052 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5053 | {parser_till_end, object}, ptr - size, ptr)); |
| 5054 | break; |
| 5055 | } |
| 5056 | default: { |
| 5057 | handle_unusual: |
| 5058 | if ((tag & 7) == 4 || tag == 0) { |
| 5059 | ctx->EndGroup(tag); |
| 5060 | return ptr; |
| 5061 | } |
| 5062 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5063 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5064 | ptr = res.first; |
| 5065 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5066 | if (res.second) return ptr; |
| 5067 | } |
| 5068 | } // switch |
| 5069 | } // while |
| 5070 | return ptr; |
| 5071 | len_delim_till_end: |
| 5072 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5073 | {parser_till_end, object}, size); |
| 5074 | } |
| 5075 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5076 | bool ManagedDeviceInfo::MergePartialFromCodedStream( |
| 5077 | ::google::protobuf::io::CodedInputStream* input) { |
| 5078 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5079 | ::google::protobuf::uint32 tag; |
| 5080 | // @@protoc_insertion_point(parse_start:dmi.ManagedDeviceInfo) |
| 5081 | for (;;) { |
| 5082 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5083 | tag = p.first; |
| 5084 | if (!p.second) goto handle_unusual; |
| 5085 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5086 | // .dmi.ModifiableComponent info = 1; |
| 5087 | case 1: { |
| 5088 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5089 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5090 | input, mutable_info())); |
| 5091 | } else { |
| 5092 | goto handle_unusual; |
| 5093 | } |
| 5094 | break; |
| 5095 | } |
| 5096 | |
| 5097 | // .dmi.Uuid device_uuid = 2; |
| 5098 | case 2: { |
| 5099 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5100 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5101 | input, mutable_device_uuid())); |
| 5102 | } else { |
| 5103 | goto handle_unusual; |
| 5104 | } |
| 5105 | break; |
| 5106 | } |
| 5107 | |
| 5108 | default: { |
| 5109 | handle_unusual: |
| 5110 | if (tag == 0) { |
| 5111 | goto success; |
| 5112 | } |
| 5113 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5114 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5115 | break; |
| 5116 | } |
| 5117 | } |
| 5118 | } |
| 5119 | success: |
| 5120 | // @@protoc_insertion_point(parse_success:dmi.ManagedDeviceInfo) |
| 5121 | return true; |
| 5122 | failure: |
| 5123 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDeviceInfo) |
| 5124 | return false; |
| 5125 | #undef DO_ |
| 5126 | } |
| 5127 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5128 | |
| 5129 | void ManagedDeviceInfo::SerializeWithCachedSizes( |
| 5130 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5131 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDeviceInfo) |
| 5132 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5133 | (void) cached_has_bits; |
| 5134 | |
| 5135 | // .dmi.ModifiableComponent info = 1; |
| 5136 | if (this->has_info()) { |
| 5137 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5138 | 1, HasBitSetters::info(this), output); |
| 5139 | } |
| 5140 | |
| 5141 | // .dmi.Uuid device_uuid = 2; |
| 5142 | if (this->has_device_uuid()) { |
| 5143 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5144 | 2, HasBitSetters::device_uuid(this), output); |
| 5145 | } |
| 5146 | |
| 5147 | if (_internal_metadata_.have_unknown_fields()) { |
| 5148 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5149 | _internal_metadata_.unknown_fields(), output); |
| 5150 | } |
| 5151 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDeviceInfo) |
| 5152 | } |
| 5153 | |
| 5154 | ::google::protobuf::uint8* ManagedDeviceInfo::InternalSerializeWithCachedSizesToArray( |
| 5155 | ::google::protobuf::uint8* target) const { |
| 5156 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDeviceInfo) |
| 5157 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5158 | (void) cached_has_bits; |
| 5159 | |
| 5160 | // .dmi.ModifiableComponent info = 1; |
| 5161 | if (this->has_info()) { |
| 5162 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5163 | InternalWriteMessageToArray( |
| 5164 | 1, HasBitSetters::info(this), target); |
| 5165 | } |
| 5166 | |
| 5167 | // .dmi.Uuid device_uuid = 2; |
| 5168 | if (this->has_device_uuid()) { |
| 5169 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5170 | InternalWriteMessageToArray( |
| 5171 | 2, HasBitSetters::device_uuid(this), target); |
| 5172 | } |
| 5173 | |
| 5174 | if (_internal_metadata_.have_unknown_fields()) { |
| 5175 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5176 | _internal_metadata_.unknown_fields(), target); |
| 5177 | } |
| 5178 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDeviceInfo) |
| 5179 | return target; |
| 5180 | } |
| 5181 | |
| 5182 | size_t ManagedDeviceInfo::ByteSizeLong() const { |
| 5183 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDeviceInfo) |
| 5184 | size_t total_size = 0; |
| 5185 | |
| 5186 | if (_internal_metadata_.have_unknown_fields()) { |
| 5187 | total_size += |
| 5188 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5189 | _internal_metadata_.unknown_fields()); |
| 5190 | } |
| 5191 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5192 | // Prevent compiler warnings about cached_has_bits being unused |
| 5193 | (void) cached_has_bits; |
| 5194 | |
| 5195 | // .dmi.ModifiableComponent info = 1; |
| 5196 | if (this->has_info()) { |
| 5197 | total_size += 1 + |
| 5198 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5199 | *info_); |
| 5200 | } |
| 5201 | |
| 5202 | // .dmi.Uuid device_uuid = 2; |
| 5203 | if (this->has_device_uuid()) { |
| 5204 | total_size += 1 + |
| 5205 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5206 | *device_uuid_); |
| 5207 | } |
| 5208 | |
| 5209 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5210 | SetCachedSize(cached_size); |
| 5211 | return total_size; |
| 5212 | } |
| 5213 | |
| 5214 | void ManagedDeviceInfo::MergeFrom(const ::google::protobuf::Message& from) { |
| 5215 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDeviceInfo) |
| 5216 | GOOGLE_DCHECK_NE(&from, this); |
| 5217 | const ManagedDeviceInfo* source = |
| 5218 | ::google::protobuf::DynamicCastToGenerated<ManagedDeviceInfo>( |
| 5219 | &from); |
| 5220 | if (source == nullptr) { |
| 5221 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDeviceInfo) |
| 5222 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5223 | } else { |
| 5224 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDeviceInfo) |
| 5225 | MergeFrom(*source); |
| 5226 | } |
| 5227 | } |
| 5228 | |
| 5229 | void ManagedDeviceInfo::MergeFrom(const ManagedDeviceInfo& from) { |
| 5230 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDeviceInfo) |
| 5231 | GOOGLE_DCHECK_NE(&from, this); |
| 5232 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5233 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5234 | (void) cached_has_bits; |
| 5235 | |
| 5236 | if (from.has_info()) { |
| 5237 | mutable_info()->::dmi::ModifiableComponent::MergeFrom(from.info()); |
| 5238 | } |
| 5239 | if (from.has_device_uuid()) { |
| 5240 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 5241 | } |
| 5242 | } |
| 5243 | |
| 5244 | void ManagedDeviceInfo::CopyFrom(const ::google::protobuf::Message& from) { |
| 5245 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDeviceInfo) |
| 5246 | if (&from == this) return; |
| 5247 | Clear(); |
| 5248 | MergeFrom(from); |
| 5249 | } |
| 5250 | |
| 5251 | void ManagedDeviceInfo::CopyFrom(const ManagedDeviceInfo& from) { |
| 5252 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDeviceInfo) |
| 5253 | if (&from == this) return; |
| 5254 | Clear(); |
| 5255 | MergeFrom(from); |
| 5256 | } |
| 5257 | |
| 5258 | bool ManagedDeviceInfo::IsInitialized() const { |
| 5259 | return true; |
| 5260 | } |
| 5261 | |
| 5262 | void ManagedDeviceInfo::Swap(ManagedDeviceInfo* other) { |
| 5263 | if (other == this) return; |
| 5264 | InternalSwap(other); |
| 5265 | } |
| 5266 | void ManagedDeviceInfo::InternalSwap(ManagedDeviceInfo* other) { |
| 5267 | using std::swap; |
| 5268 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5269 | swap(info_, other->info_); |
| 5270 | swap(device_uuid_, other->device_uuid_); |
| 5271 | } |
| 5272 | |
| 5273 | ::google::protobuf::Metadata ManagedDeviceInfo::GetMetadata() const { |
| 5274 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5275 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5276 | } |
| 5277 | |
| 5278 | |
| 5279 | // =================================================================== |
| 5280 | |
| 5281 | void ManagedDevicesResponse::InitAsDefaultInstance() { |
| 5282 | } |
| 5283 | class ManagedDevicesResponse::HasBitSetters { |
| 5284 | public: |
| 5285 | }; |
| 5286 | |
| 5287 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5288 | const int ManagedDevicesResponse::kStatusFieldNumber; |
| 5289 | const int ManagedDevicesResponse::kReasonFieldNumber; |
| 5290 | const int ManagedDevicesResponse::kDevicesFieldNumber; |
| 5291 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5292 | |
| 5293 | ManagedDevicesResponse::ManagedDevicesResponse() |
| 5294 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5295 | SharedCtor(); |
| 5296 | // @@protoc_insertion_point(constructor:dmi.ManagedDevicesResponse) |
| 5297 | } |
| 5298 | ManagedDevicesResponse::ManagedDevicesResponse(const ManagedDevicesResponse& from) |
| 5299 | : ::google::protobuf::Message(), |
| 5300 | _internal_metadata_(nullptr), |
| 5301 | devices_(from.devices_) { |
| 5302 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5303 | ::memcpy(&status_, &from.status_, |
| 5304 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 5305 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5306 | // @@protoc_insertion_point(copy_constructor:dmi.ManagedDevicesResponse) |
| 5307 | } |
| 5308 | |
| 5309 | void ManagedDevicesResponse::SharedCtor() { |
| 5310 | ::google::protobuf::internal::InitSCC( |
| 5311 | &scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5312 | ::memset(&status_, 0, static_cast<size_t>( |
| 5313 | reinterpret_cast<char*>(&reason_) - |
| 5314 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5315 | } |
| 5316 | |
| 5317 | ManagedDevicesResponse::~ManagedDevicesResponse() { |
| 5318 | // @@protoc_insertion_point(destructor:dmi.ManagedDevicesResponse) |
| 5319 | SharedDtor(); |
| 5320 | } |
| 5321 | |
| 5322 | void ManagedDevicesResponse::SharedDtor() { |
| 5323 | } |
| 5324 | |
| 5325 | void ManagedDevicesResponse::SetCachedSize(int size) const { |
| 5326 | _cached_size_.Set(size); |
| 5327 | } |
| 5328 | const ManagedDevicesResponse& ManagedDevicesResponse::default_instance() { |
| 5329 | ::google::protobuf::internal::InitSCC(&::scc_info_ManagedDevicesResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5330 | return *internal_default_instance(); |
| 5331 | } |
| 5332 | |
| 5333 | |
| 5334 | void ManagedDevicesResponse::Clear() { |
| 5335 | // @@protoc_insertion_point(message_clear_start:dmi.ManagedDevicesResponse) |
| 5336 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5337 | // Prevent compiler warnings about cached_has_bits being unused |
| 5338 | (void) cached_has_bits; |
| 5339 | |
| 5340 | devices_.Clear(); |
| 5341 | ::memset(&status_, 0, static_cast<size_t>( |
| 5342 | reinterpret_cast<char*>(&reason_) - |
| 5343 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 5344 | _internal_metadata_.Clear(); |
| 5345 | } |
| 5346 | |
| 5347 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5348 | const char* ManagedDevicesResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 5349 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5350 | auto msg = static_cast<ManagedDevicesResponse*>(object); |
| 5351 | ::google::protobuf::int32 size; (void)size; |
| 5352 | int depth; (void)depth; |
| 5353 | ::google::protobuf::uint32 tag; |
| 5354 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5355 | auto ptr = begin; |
| 5356 | while (ptr < end) { |
| 5357 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5358 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5359 | switch (tag >> 3) { |
| 5360 | // .dmi.Status status = 1; |
| 5361 | case 1: { |
| 5362 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 5363 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5364 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 5365 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5366 | break; |
| 5367 | } |
| 5368 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5369 | case 2: { |
| 5370 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 5371 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 5372 | msg->set_reason(static_cast<::dmi::ManagedDevicesResponse_Reason>(val)); |
| 5373 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5374 | break; |
| 5375 | } |
| 5376 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5377 | case 3: { |
| 5378 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5379 | do { |
| 5380 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5381 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5382 | parser_till_end = ::dmi::ManagedDeviceInfo::_InternalParse; |
| 5383 | object = msg->add_devices(); |
| 5384 | if (size > end - ptr) goto len_delim_till_end; |
| 5385 | ptr += size; |
| 5386 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5387 | {parser_till_end, object}, ptr - size, ptr)); |
| 5388 | if (ptr >= end) break; |
| 5389 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); |
| 5390 | break; |
| 5391 | } |
| 5392 | default: { |
| 5393 | handle_unusual: |
| 5394 | if ((tag & 7) == 4 || tag == 0) { |
| 5395 | ctx->EndGroup(tag); |
| 5396 | return ptr; |
| 5397 | } |
| 5398 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5399 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5400 | ptr = res.first; |
| 5401 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5402 | if (res.second) return ptr; |
| 5403 | } |
| 5404 | } // switch |
| 5405 | } // while |
| 5406 | return ptr; |
| 5407 | len_delim_till_end: |
| 5408 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5409 | {parser_till_end, object}, size); |
| 5410 | } |
| 5411 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5412 | bool ManagedDevicesResponse::MergePartialFromCodedStream( |
| 5413 | ::google::protobuf::io::CodedInputStream* input) { |
| 5414 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5415 | ::google::protobuf::uint32 tag; |
| 5416 | // @@protoc_insertion_point(parse_start:dmi.ManagedDevicesResponse) |
| 5417 | for (;;) { |
| 5418 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5419 | tag = p.first; |
| 5420 | if (!p.second) goto handle_unusual; |
| 5421 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5422 | // .dmi.Status status = 1; |
| 5423 | case 1: { |
| 5424 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 5425 | int value = 0; |
| 5426 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5427 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5428 | input, &value))); |
| 5429 | set_status(static_cast< ::dmi::Status >(value)); |
| 5430 | } else { |
| 5431 | goto handle_unusual; |
| 5432 | } |
| 5433 | break; |
| 5434 | } |
| 5435 | |
| 5436 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5437 | case 2: { |
| 5438 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 5439 | int value = 0; |
| 5440 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 5441 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 5442 | input, &value))); |
| 5443 | set_reason(static_cast< ::dmi::ManagedDevicesResponse_Reason >(value)); |
| 5444 | } else { |
| 5445 | goto handle_unusual; |
| 5446 | } |
| 5447 | break; |
| 5448 | } |
| 5449 | |
| 5450 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5451 | case 3: { |
| 5452 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5453 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5454 | input, add_devices())); |
| 5455 | } else { |
| 5456 | goto handle_unusual; |
| 5457 | } |
| 5458 | break; |
| 5459 | } |
| 5460 | |
| 5461 | default: { |
| 5462 | handle_unusual: |
| 5463 | if (tag == 0) { |
| 5464 | goto success; |
| 5465 | } |
| 5466 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5467 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5468 | break; |
| 5469 | } |
| 5470 | } |
| 5471 | } |
| 5472 | success: |
| 5473 | // @@protoc_insertion_point(parse_success:dmi.ManagedDevicesResponse) |
| 5474 | return true; |
| 5475 | failure: |
| 5476 | // @@protoc_insertion_point(parse_failure:dmi.ManagedDevicesResponse) |
| 5477 | return false; |
| 5478 | #undef DO_ |
| 5479 | } |
| 5480 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5481 | |
| 5482 | void ManagedDevicesResponse::SerializeWithCachedSizes( |
| 5483 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5484 | // @@protoc_insertion_point(serialize_start:dmi.ManagedDevicesResponse) |
| 5485 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5486 | (void) cached_has_bits; |
| 5487 | |
| 5488 | // .dmi.Status status = 1; |
| 5489 | if (this->status() != 0) { |
| 5490 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5491 | 1, this->status(), output); |
| 5492 | } |
| 5493 | |
| 5494 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5495 | if (this->reason() != 0) { |
| 5496 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 5497 | 2, this->reason(), output); |
| 5498 | } |
| 5499 | |
| 5500 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5501 | for (unsigned int i = 0, |
| 5502 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5503 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5504 | 3, |
| 5505 | this->devices(static_cast<int>(i)), |
| 5506 | output); |
| 5507 | } |
| 5508 | |
| 5509 | if (_internal_metadata_.have_unknown_fields()) { |
| 5510 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5511 | _internal_metadata_.unknown_fields(), output); |
| 5512 | } |
| 5513 | // @@protoc_insertion_point(serialize_end:dmi.ManagedDevicesResponse) |
| 5514 | } |
| 5515 | |
| 5516 | ::google::protobuf::uint8* ManagedDevicesResponse::InternalSerializeWithCachedSizesToArray( |
| 5517 | ::google::protobuf::uint8* target) const { |
| 5518 | // @@protoc_insertion_point(serialize_to_array_start:dmi.ManagedDevicesResponse) |
| 5519 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5520 | (void) cached_has_bits; |
| 5521 | |
| 5522 | // .dmi.Status status = 1; |
| 5523 | if (this->status() != 0) { |
| 5524 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5525 | 1, this->status(), target); |
| 5526 | } |
| 5527 | |
| 5528 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5529 | if (this->reason() != 0) { |
| 5530 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 5531 | 2, this->reason(), target); |
| 5532 | } |
| 5533 | |
| 5534 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5535 | for (unsigned int i = 0, |
| 5536 | n = static_cast<unsigned int>(this->devices_size()); i < n; i++) { |
| 5537 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5538 | InternalWriteMessageToArray( |
| 5539 | 3, this->devices(static_cast<int>(i)), target); |
| 5540 | } |
| 5541 | |
| 5542 | if (_internal_metadata_.have_unknown_fields()) { |
| 5543 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5544 | _internal_metadata_.unknown_fields(), target); |
| 5545 | } |
| 5546 | // @@protoc_insertion_point(serialize_to_array_end:dmi.ManagedDevicesResponse) |
| 5547 | return target; |
| 5548 | } |
| 5549 | |
| 5550 | size_t ManagedDevicesResponse::ByteSizeLong() const { |
| 5551 | // @@protoc_insertion_point(message_byte_size_start:dmi.ManagedDevicesResponse) |
| 5552 | size_t total_size = 0; |
| 5553 | |
| 5554 | if (_internal_metadata_.have_unknown_fields()) { |
| 5555 | total_size += |
| 5556 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5557 | _internal_metadata_.unknown_fields()); |
| 5558 | } |
| 5559 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5560 | // Prevent compiler warnings about cached_has_bits being unused |
| 5561 | (void) cached_has_bits; |
| 5562 | |
| 5563 | // repeated .dmi.ManagedDeviceInfo devices = 3; |
| 5564 | { |
| 5565 | unsigned int count = static_cast<unsigned int>(this->devices_size()); |
| 5566 | total_size += 1UL * count; |
| 5567 | for (unsigned int i = 0; i < count; i++) { |
| 5568 | total_size += |
| 5569 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 5570 | this->devices(static_cast<int>(i))); |
| 5571 | } |
| 5572 | } |
| 5573 | |
| 5574 | // .dmi.Status status = 1; |
| 5575 | if (this->status() != 0) { |
| 5576 | total_size += 1 + |
| 5577 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 5578 | } |
| 5579 | |
| 5580 | // .dmi.ManagedDevicesResponse.Reason reason = 2; |
| 5581 | if (this->reason() != 0) { |
| 5582 | total_size += 1 + |
| 5583 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 5584 | } |
| 5585 | |
| 5586 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 5587 | SetCachedSize(cached_size); |
| 5588 | return total_size; |
| 5589 | } |
| 5590 | |
| 5591 | void ManagedDevicesResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 5592 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.ManagedDevicesResponse) |
| 5593 | GOOGLE_DCHECK_NE(&from, this); |
| 5594 | const ManagedDevicesResponse* source = |
| 5595 | ::google::protobuf::DynamicCastToGenerated<ManagedDevicesResponse>( |
| 5596 | &from); |
| 5597 | if (source == nullptr) { |
| 5598 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.ManagedDevicesResponse) |
| 5599 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 5600 | } else { |
| 5601 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.ManagedDevicesResponse) |
| 5602 | MergeFrom(*source); |
| 5603 | } |
| 5604 | } |
| 5605 | |
| 5606 | void ManagedDevicesResponse::MergeFrom(const ManagedDevicesResponse& from) { |
| 5607 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.ManagedDevicesResponse) |
| 5608 | GOOGLE_DCHECK_NE(&from, this); |
| 5609 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5610 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5611 | (void) cached_has_bits; |
| 5612 | |
| 5613 | devices_.MergeFrom(from.devices_); |
| 5614 | if (from.status() != 0) { |
| 5615 | set_status(from.status()); |
| 5616 | } |
| 5617 | if (from.reason() != 0) { |
| 5618 | set_reason(from.reason()); |
| 5619 | } |
| 5620 | } |
| 5621 | |
| 5622 | void ManagedDevicesResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 5623 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.ManagedDevicesResponse) |
| 5624 | if (&from == this) return; |
| 5625 | Clear(); |
| 5626 | MergeFrom(from); |
| 5627 | } |
| 5628 | |
| 5629 | void ManagedDevicesResponse::CopyFrom(const ManagedDevicesResponse& from) { |
| 5630 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.ManagedDevicesResponse) |
| 5631 | if (&from == this) return; |
| 5632 | Clear(); |
| 5633 | MergeFrom(from); |
| 5634 | } |
| 5635 | |
| 5636 | bool ManagedDevicesResponse::IsInitialized() const { |
| 5637 | return true; |
| 5638 | } |
| 5639 | |
| 5640 | void ManagedDevicesResponse::Swap(ManagedDevicesResponse* other) { |
| 5641 | if (other == this) return; |
| 5642 | InternalSwap(other); |
| 5643 | } |
| 5644 | void ManagedDevicesResponse::InternalSwap(ManagedDevicesResponse* other) { |
| 5645 | using std::swap; |
| 5646 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 5647 | CastToBase(&devices_)->InternalSwap(CastToBase(&other->devices_)); |
| 5648 | swap(status_, other->status_); |
| 5649 | swap(reason_, other->reason_); |
| 5650 | } |
| 5651 | |
| 5652 | ::google::protobuf::Metadata ManagedDevicesResponse::GetMetadata() const { |
| 5653 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 5654 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 5655 | } |
| 5656 | |
| 5657 | |
| 5658 | // =================================================================== |
| 5659 | |
| 5660 | void SetLoggingEndpointRequest::InitAsDefaultInstance() { |
| 5661 | ::dmi::_SetLoggingEndpointRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 5662 | ::dmi::Uuid::internal_default_instance()); |
| 5663 | } |
| 5664 | class SetLoggingEndpointRequest::HasBitSetters { |
| 5665 | public: |
| 5666 | static const ::dmi::Uuid& device_uuid(const SetLoggingEndpointRequest* msg); |
| 5667 | }; |
| 5668 | |
| 5669 | const ::dmi::Uuid& |
| 5670 | SetLoggingEndpointRequest::HasBitSetters::device_uuid(const SetLoggingEndpointRequest* msg) { |
| 5671 | return *msg->device_uuid_; |
| 5672 | } |
| 5673 | void SetLoggingEndpointRequest::clear_device_uuid() { |
| 5674 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5675 | delete device_uuid_; |
| 5676 | } |
| 5677 | device_uuid_ = nullptr; |
| 5678 | } |
| 5679 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5680 | const int SetLoggingEndpointRequest::kDeviceUuidFieldNumber; |
| 5681 | const int SetLoggingEndpointRequest::kLoggingEndpointFieldNumber; |
| 5682 | const int SetLoggingEndpointRequest::kLoggingProtocolFieldNumber; |
| 5683 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 5684 | |
| 5685 | SetLoggingEndpointRequest::SetLoggingEndpointRequest() |
| 5686 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 5687 | SharedCtor(); |
| 5688 | // @@protoc_insertion_point(constructor:dmi.SetLoggingEndpointRequest) |
| 5689 | } |
| 5690 | SetLoggingEndpointRequest::SetLoggingEndpointRequest(const SetLoggingEndpointRequest& from) |
| 5691 | : ::google::protobuf::Message(), |
| 5692 | _internal_metadata_(nullptr) { |
| 5693 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 5694 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5695 | if (from.logging_endpoint().size() > 0) { |
| 5696 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 5697 | } |
| 5698 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5699 | if (from.logging_protocol().size() > 0) { |
| 5700 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 5701 | } |
| 5702 | if (from.has_device_uuid()) { |
| 5703 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 5704 | } else { |
| 5705 | device_uuid_ = nullptr; |
| 5706 | } |
| 5707 | // @@protoc_insertion_point(copy_constructor:dmi.SetLoggingEndpointRequest) |
| 5708 | } |
| 5709 | |
| 5710 | void SetLoggingEndpointRequest::SharedCtor() { |
| 5711 | ::google::protobuf::internal::InitSCC( |
| 5712 | &scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5713 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5714 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5715 | device_uuid_ = nullptr; |
| 5716 | } |
| 5717 | |
| 5718 | SetLoggingEndpointRequest::~SetLoggingEndpointRequest() { |
| 5719 | // @@protoc_insertion_point(destructor:dmi.SetLoggingEndpointRequest) |
| 5720 | SharedDtor(); |
| 5721 | } |
| 5722 | |
| 5723 | void SetLoggingEndpointRequest::SharedDtor() { |
| 5724 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5725 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5726 | if (this != internal_default_instance()) delete device_uuid_; |
| 5727 | } |
| 5728 | |
| 5729 | void SetLoggingEndpointRequest::SetCachedSize(int size) const { |
| 5730 | _cached_size_.Set(size); |
| 5731 | } |
| 5732 | const SetLoggingEndpointRequest& SetLoggingEndpointRequest::default_instance() { |
| 5733 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLoggingEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 5734 | return *internal_default_instance(); |
| 5735 | } |
| 5736 | |
| 5737 | |
| 5738 | void SetLoggingEndpointRequest::Clear() { |
| 5739 | // @@protoc_insertion_point(message_clear_start:dmi.SetLoggingEndpointRequest) |
| 5740 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5741 | // Prevent compiler warnings about cached_has_bits being unused |
| 5742 | (void) cached_has_bits; |
| 5743 | |
| 5744 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5745 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 5746 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 5747 | delete device_uuid_; |
| 5748 | } |
| 5749 | device_uuid_ = nullptr; |
| 5750 | _internal_metadata_.Clear(); |
| 5751 | } |
| 5752 | |
| 5753 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5754 | const char* SetLoggingEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 5755 | ::google::protobuf::internal::ParseContext* ctx) { |
| 5756 | auto msg = static_cast<SetLoggingEndpointRequest*>(object); |
| 5757 | ::google::protobuf::int32 size; (void)size; |
| 5758 | int depth; (void)depth; |
| 5759 | ::google::protobuf::uint32 tag; |
| 5760 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 5761 | auto ptr = begin; |
| 5762 | while (ptr < end) { |
| 5763 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 5764 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5765 | switch (tag >> 3) { |
| 5766 | // .dmi.Uuid device_uuid = 1; |
| 5767 | case 1: { |
| 5768 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 5769 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5770 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5771 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 5772 | object = msg->mutable_device_uuid(); |
| 5773 | if (size > end - ptr) goto len_delim_till_end; |
| 5774 | ptr += size; |
| 5775 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 5776 | {parser_till_end, object}, ptr - size, ptr)); |
| 5777 | break; |
| 5778 | } |
| 5779 | // string logging_endpoint = 2; |
| 5780 | case 2: { |
| 5781 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 5782 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5783 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5784 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 5785 | object = msg->mutable_logging_endpoint(); |
| 5786 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5787 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5788 | goto string_till_end; |
| 5789 | } |
| 5790 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5791 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5792 | ptr += size; |
| 5793 | break; |
| 5794 | } |
| 5795 | // string logging_protocol = 3; |
| 5796 | case 3: { |
| 5797 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 5798 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 5799 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 5800 | ctx->extra_parse_data().SetFieldName("dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 5801 | object = msg->mutable_logging_protocol(); |
| 5802 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 5803 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 5804 | goto string_till_end; |
| 5805 | } |
| 5806 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 5807 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 5808 | ptr += size; |
| 5809 | break; |
| 5810 | } |
| 5811 | default: { |
| 5812 | handle_unusual: |
| 5813 | if ((tag & 7) == 4 || tag == 0) { |
| 5814 | ctx->EndGroup(tag); |
| 5815 | return ptr; |
| 5816 | } |
| 5817 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 5818 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 5819 | ptr = res.first; |
| 5820 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 5821 | if (res.second) return ptr; |
| 5822 | } |
| 5823 | } // switch |
| 5824 | } // while |
| 5825 | return ptr; |
| 5826 | string_till_end: |
| 5827 | static_cast<::std::string*>(object)->clear(); |
| 5828 | static_cast<::std::string*>(object)->reserve(size); |
| 5829 | goto len_delim_till_end; |
| 5830 | len_delim_till_end: |
| 5831 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 5832 | {parser_till_end, object}, size); |
| 5833 | } |
| 5834 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5835 | bool SetLoggingEndpointRequest::MergePartialFromCodedStream( |
| 5836 | ::google::protobuf::io::CodedInputStream* input) { |
| 5837 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 5838 | ::google::protobuf::uint32 tag; |
| 5839 | // @@protoc_insertion_point(parse_start:dmi.SetLoggingEndpointRequest) |
| 5840 | for (;;) { |
| 5841 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 5842 | tag = p.first; |
| 5843 | if (!p.second) goto handle_unusual; |
| 5844 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 5845 | // .dmi.Uuid device_uuid = 1; |
| 5846 | case 1: { |
| 5847 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 5848 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 5849 | input, mutable_device_uuid())); |
| 5850 | } else { |
| 5851 | goto handle_unusual; |
| 5852 | } |
| 5853 | break; |
| 5854 | } |
| 5855 | |
| 5856 | // string logging_endpoint = 2; |
| 5857 | case 2: { |
| 5858 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 5859 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5860 | input, this->mutable_logging_endpoint())); |
| 5861 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5862 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 5863 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5864 | "dmi.SetLoggingEndpointRequest.logging_endpoint")); |
| 5865 | } else { |
| 5866 | goto handle_unusual; |
| 5867 | } |
| 5868 | break; |
| 5869 | } |
| 5870 | |
| 5871 | // string logging_protocol = 3; |
| 5872 | case 3: { |
| 5873 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 5874 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 5875 | input, this->mutable_logging_protocol())); |
| 5876 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5877 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 5878 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 5879 | "dmi.SetLoggingEndpointRequest.logging_protocol")); |
| 5880 | } else { |
| 5881 | goto handle_unusual; |
| 5882 | } |
| 5883 | break; |
| 5884 | } |
| 5885 | |
| 5886 | default: { |
| 5887 | handle_unusual: |
| 5888 | if (tag == 0) { |
| 5889 | goto success; |
| 5890 | } |
| 5891 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 5892 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 5893 | break; |
| 5894 | } |
| 5895 | } |
| 5896 | } |
| 5897 | success: |
| 5898 | // @@protoc_insertion_point(parse_success:dmi.SetLoggingEndpointRequest) |
| 5899 | return true; |
| 5900 | failure: |
| 5901 | // @@protoc_insertion_point(parse_failure:dmi.SetLoggingEndpointRequest) |
| 5902 | return false; |
| 5903 | #undef DO_ |
| 5904 | } |
| 5905 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 5906 | |
| 5907 | void SetLoggingEndpointRequest::SerializeWithCachedSizes( |
| 5908 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 5909 | // @@protoc_insertion_point(serialize_start:dmi.SetLoggingEndpointRequest) |
| 5910 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5911 | (void) cached_has_bits; |
| 5912 | |
| 5913 | // .dmi.Uuid device_uuid = 1; |
| 5914 | if (this->has_device_uuid()) { |
| 5915 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 5916 | 1, HasBitSetters::device_uuid(this), output); |
| 5917 | } |
| 5918 | |
| 5919 | // string logging_endpoint = 2; |
| 5920 | if (this->logging_endpoint().size() > 0) { |
| 5921 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5922 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 5923 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5924 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 5925 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5926 | 2, this->logging_endpoint(), output); |
| 5927 | } |
| 5928 | |
| 5929 | // string logging_protocol = 3; |
| 5930 | if (this->logging_protocol().size() > 0) { |
| 5931 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5932 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 5933 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5934 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 5935 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 5936 | 3, this->logging_protocol(), output); |
| 5937 | } |
| 5938 | |
| 5939 | if (_internal_metadata_.have_unknown_fields()) { |
| 5940 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 5941 | _internal_metadata_.unknown_fields(), output); |
| 5942 | } |
| 5943 | // @@protoc_insertion_point(serialize_end:dmi.SetLoggingEndpointRequest) |
| 5944 | } |
| 5945 | |
| 5946 | ::google::protobuf::uint8* SetLoggingEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 5947 | ::google::protobuf::uint8* target) const { |
| 5948 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLoggingEndpointRequest) |
| 5949 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5950 | (void) cached_has_bits; |
| 5951 | |
| 5952 | // .dmi.Uuid device_uuid = 1; |
| 5953 | if (this->has_device_uuid()) { |
| 5954 | target = ::google::protobuf::internal::WireFormatLite:: |
| 5955 | InternalWriteMessageToArray( |
| 5956 | 1, HasBitSetters::device_uuid(this), target); |
| 5957 | } |
| 5958 | |
| 5959 | // string logging_endpoint = 2; |
| 5960 | if (this->logging_endpoint().size() > 0) { |
| 5961 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5962 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 5963 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5964 | "dmi.SetLoggingEndpointRequest.logging_endpoint"); |
| 5965 | target = |
| 5966 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5967 | 2, this->logging_endpoint(), target); |
| 5968 | } |
| 5969 | |
| 5970 | // string logging_protocol = 3; |
| 5971 | if (this->logging_protocol().size() > 0) { |
| 5972 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 5973 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 5974 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 5975 | "dmi.SetLoggingEndpointRequest.logging_protocol"); |
| 5976 | target = |
| 5977 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 5978 | 3, this->logging_protocol(), target); |
| 5979 | } |
| 5980 | |
| 5981 | if (_internal_metadata_.have_unknown_fields()) { |
| 5982 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 5983 | _internal_metadata_.unknown_fields(), target); |
| 5984 | } |
| 5985 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLoggingEndpointRequest) |
| 5986 | return target; |
| 5987 | } |
| 5988 | |
| 5989 | size_t SetLoggingEndpointRequest::ByteSizeLong() const { |
| 5990 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLoggingEndpointRequest) |
| 5991 | size_t total_size = 0; |
| 5992 | |
| 5993 | if (_internal_metadata_.have_unknown_fields()) { |
| 5994 | total_size += |
| 5995 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 5996 | _internal_metadata_.unknown_fields()); |
| 5997 | } |
| 5998 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 5999 | // Prevent compiler warnings about cached_has_bits being unused |
| 6000 | (void) cached_has_bits; |
| 6001 | |
| 6002 | // string logging_endpoint = 2; |
| 6003 | if (this->logging_endpoint().size() > 0) { |
| 6004 | total_size += 1 + |
| 6005 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6006 | this->logging_endpoint()); |
| 6007 | } |
| 6008 | |
| 6009 | // string logging_protocol = 3; |
| 6010 | if (this->logging_protocol().size() > 0) { |
| 6011 | total_size += 1 + |
| 6012 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6013 | this->logging_protocol()); |
| 6014 | } |
| 6015 | |
| 6016 | // .dmi.Uuid device_uuid = 1; |
| 6017 | if (this->has_device_uuid()) { |
| 6018 | total_size += 1 + |
| 6019 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 6020 | *device_uuid_); |
| 6021 | } |
| 6022 | |
| 6023 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6024 | SetCachedSize(cached_size); |
| 6025 | return total_size; |
| 6026 | } |
| 6027 | |
| 6028 | void SetLoggingEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 6029 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6030 | GOOGLE_DCHECK_NE(&from, this); |
| 6031 | const SetLoggingEndpointRequest* source = |
| 6032 | ::google::protobuf::DynamicCastToGenerated<SetLoggingEndpointRequest>( |
| 6033 | &from); |
| 6034 | if (source == nullptr) { |
| 6035 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLoggingEndpointRequest) |
| 6036 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6037 | } else { |
| 6038 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLoggingEndpointRequest) |
| 6039 | MergeFrom(*source); |
| 6040 | } |
| 6041 | } |
| 6042 | |
| 6043 | void SetLoggingEndpointRequest::MergeFrom(const SetLoggingEndpointRequest& from) { |
| 6044 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLoggingEndpointRequest) |
| 6045 | GOOGLE_DCHECK_NE(&from, this); |
| 6046 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6047 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6048 | (void) cached_has_bits; |
| 6049 | |
| 6050 | if (from.logging_endpoint().size() > 0) { |
| 6051 | |
| 6052 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6053 | } |
| 6054 | if (from.logging_protocol().size() > 0) { |
| 6055 | |
| 6056 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6057 | } |
| 6058 | if (from.has_device_uuid()) { |
| 6059 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 6060 | } |
| 6061 | } |
| 6062 | |
| 6063 | void SetLoggingEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 6064 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6065 | if (&from == this) return; |
| 6066 | Clear(); |
| 6067 | MergeFrom(from); |
| 6068 | } |
| 6069 | |
| 6070 | void SetLoggingEndpointRequest::CopyFrom(const SetLoggingEndpointRequest& from) { |
| 6071 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLoggingEndpointRequest) |
| 6072 | if (&from == this) return; |
| 6073 | Clear(); |
| 6074 | MergeFrom(from); |
| 6075 | } |
| 6076 | |
| 6077 | bool SetLoggingEndpointRequest::IsInitialized() const { |
| 6078 | return true; |
| 6079 | } |
| 6080 | |
| 6081 | void SetLoggingEndpointRequest::Swap(SetLoggingEndpointRequest* other) { |
| 6082 | if (other == this) return; |
| 6083 | InternalSwap(other); |
| 6084 | } |
| 6085 | void SetLoggingEndpointRequest::InternalSwap(SetLoggingEndpointRequest* other) { |
| 6086 | using std::swap; |
| 6087 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6088 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6089 | GetArenaNoVirtual()); |
| 6090 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6091 | GetArenaNoVirtual()); |
| 6092 | swap(device_uuid_, other->device_uuid_); |
| 6093 | } |
| 6094 | |
| 6095 | ::google::protobuf::Metadata SetLoggingEndpointRequest::GetMetadata() const { |
| 6096 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6097 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6098 | } |
| 6099 | |
| 6100 | |
| 6101 | // =================================================================== |
| 6102 | |
| 6103 | void SetRemoteEndpointResponse::InitAsDefaultInstance() { |
| 6104 | } |
| 6105 | class SetRemoteEndpointResponse::HasBitSetters { |
| 6106 | public: |
| 6107 | }; |
| 6108 | |
| 6109 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6110 | const int SetRemoteEndpointResponse::kStatusFieldNumber; |
| 6111 | const int SetRemoteEndpointResponse::kReasonFieldNumber; |
| 6112 | const int SetRemoteEndpointResponse::kReasonDetailFieldNumber; |
| 6113 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6114 | |
| 6115 | SetRemoteEndpointResponse::SetRemoteEndpointResponse() |
| 6116 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6117 | SharedCtor(); |
| 6118 | // @@protoc_insertion_point(constructor:dmi.SetRemoteEndpointResponse) |
| 6119 | } |
| 6120 | SetRemoteEndpointResponse::SetRemoteEndpointResponse(const SetRemoteEndpointResponse& from) |
| 6121 | : ::google::protobuf::Message(), |
| 6122 | _internal_metadata_(nullptr) { |
| 6123 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6124 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6125 | if (from.reason_detail().size() > 0) { |
| 6126 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6127 | } |
| 6128 | ::memcpy(&status_, &from.status_, |
| 6129 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6130 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6131 | // @@protoc_insertion_point(copy_constructor:dmi.SetRemoteEndpointResponse) |
| 6132 | } |
| 6133 | |
| 6134 | void SetRemoteEndpointResponse::SharedCtor() { |
| 6135 | ::google::protobuf::internal::InitSCC( |
| 6136 | &scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6137 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6138 | ::memset(&status_, 0, static_cast<size_t>( |
| 6139 | reinterpret_cast<char*>(&reason_) - |
| 6140 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6141 | } |
| 6142 | |
| 6143 | SetRemoteEndpointResponse::~SetRemoteEndpointResponse() { |
| 6144 | // @@protoc_insertion_point(destructor:dmi.SetRemoteEndpointResponse) |
| 6145 | SharedDtor(); |
| 6146 | } |
| 6147 | |
| 6148 | void SetRemoteEndpointResponse::SharedDtor() { |
| 6149 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6150 | } |
| 6151 | |
| 6152 | void SetRemoteEndpointResponse::SetCachedSize(int size) const { |
| 6153 | _cached_size_.Set(size); |
| 6154 | } |
| 6155 | const SetRemoteEndpointResponse& SetRemoteEndpointResponse::default_instance() { |
| 6156 | ::google::protobuf::internal::InitSCC(&::scc_info_SetRemoteEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6157 | return *internal_default_instance(); |
| 6158 | } |
| 6159 | |
| 6160 | |
| 6161 | void SetRemoteEndpointResponse::Clear() { |
| 6162 | // @@protoc_insertion_point(message_clear_start:dmi.SetRemoteEndpointResponse) |
| 6163 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6164 | // Prevent compiler warnings about cached_has_bits being unused |
| 6165 | (void) cached_has_bits; |
| 6166 | |
| 6167 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6168 | ::memset(&status_, 0, static_cast<size_t>( |
| 6169 | reinterpret_cast<char*>(&reason_) - |
| 6170 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6171 | _internal_metadata_.Clear(); |
| 6172 | } |
| 6173 | |
| 6174 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6175 | const char* SetRemoteEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6176 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6177 | auto msg = static_cast<SetRemoteEndpointResponse*>(object); |
| 6178 | ::google::protobuf::int32 size; (void)size; |
| 6179 | int depth; (void)depth; |
| 6180 | ::google::protobuf::uint32 tag; |
| 6181 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6182 | auto ptr = begin; |
| 6183 | while (ptr < end) { |
| 6184 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6185 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6186 | switch (tag >> 3) { |
| 6187 | // .dmi.Status status = 1; |
| 6188 | case 1: { |
| 6189 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6190 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6191 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6192 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6193 | break; |
| 6194 | } |
| 6195 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6196 | case 2: { |
| 6197 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6198 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6199 | msg->set_reason(static_cast<::dmi::SetRemoteEndpointResponse_Reason>(val)); |
| 6200 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6201 | break; |
| 6202 | } |
| 6203 | // string reason_detail = 3; |
| 6204 | case 3: { |
| 6205 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6206 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6207 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6208 | ctx->extra_parse_data().SetFieldName("dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6209 | object = msg->mutable_reason_detail(); |
| 6210 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6211 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6212 | goto string_till_end; |
| 6213 | } |
| 6214 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6215 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6216 | ptr += size; |
| 6217 | break; |
| 6218 | } |
| 6219 | default: { |
| 6220 | handle_unusual: |
| 6221 | if ((tag & 7) == 4 || tag == 0) { |
| 6222 | ctx->EndGroup(tag); |
| 6223 | return ptr; |
| 6224 | } |
| 6225 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6226 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6227 | ptr = res.first; |
| 6228 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6229 | if (res.second) return ptr; |
| 6230 | } |
| 6231 | } // switch |
| 6232 | } // while |
| 6233 | return ptr; |
| 6234 | string_till_end: |
| 6235 | static_cast<::std::string*>(object)->clear(); |
| 6236 | static_cast<::std::string*>(object)->reserve(size); |
| 6237 | goto len_delim_till_end; |
| 6238 | len_delim_till_end: |
| 6239 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6240 | {parser_till_end, object}, size); |
| 6241 | } |
| 6242 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6243 | bool SetRemoteEndpointResponse::MergePartialFromCodedStream( |
| 6244 | ::google::protobuf::io::CodedInputStream* input) { |
| 6245 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6246 | ::google::protobuf::uint32 tag; |
| 6247 | // @@protoc_insertion_point(parse_start:dmi.SetRemoteEndpointResponse) |
| 6248 | for (;;) { |
| 6249 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6250 | tag = p.first; |
| 6251 | if (!p.second) goto handle_unusual; |
| 6252 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6253 | // .dmi.Status status = 1; |
| 6254 | case 1: { |
| 6255 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6256 | int value = 0; |
| 6257 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6258 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6259 | input, &value))); |
| 6260 | set_status(static_cast< ::dmi::Status >(value)); |
| 6261 | } else { |
| 6262 | goto handle_unusual; |
| 6263 | } |
| 6264 | break; |
| 6265 | } |
| 6266 | |
| 6267 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6268 | case 2: { |
| 6269 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6270 | int value = 0; |
| 6271 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6272 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6273 | input, &value))); |
| 6274 | set_reason(static_cast< ::dmi::SetRemoteEndpointResponse_Reason >(value)); |
| 6275 | } else { |
| 6276 | goto handle_unusual; |
| 6277 | } |
| 6278 | break; |
| 6279 | } |
| 6280 | |
| 6281 | // string reason_detail = 3; |
| 6282 | case 3: { |
| 6283 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6284 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6285 | input, this->mutable_reason_detail())); |
| 6286 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6287 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6288 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6289 | "dmi.SetRemoteEndpointResponse.reason_detail")); |
| 6290 | } else { |
| 6291 | goto handle_unusual; |
| 6292 | } |
| 6293 | break; |
| 6294 | } |
| 6295 | |
| 6296 | default: { |
| 6297 | handle_unusual: |
| 6298 | if (tag == 0) { |
| 6299 | goto success; |
| 6300 | } |
| 6301 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6302 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6303 | break; |
| 6304 | } |
| 6305 | } |
| 6306 | } |
| 6307 | success: |
| 6308 | // @@protoc_insertion_point(parse_success:dmi.SetRemoteEndpointResponse) |
| 6309 | return true; |
| 6310 | failure: |
| 6311 | // @@protoc_insertion_point(parse_failure:dmi.SetRemoteEndpointResponse) |
| 6312 | return false; |
| 6313 | #undef DO_ |
| 6314 | } |
| 6315 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6316 | |
| 6317 | void SetRemoteEndpointResponse::SerializeWithCachedSizes( |
| 6318 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6319 | // @@protoc_insertion_point(serialize_start:dmi.SetRemoteEndpointResponse) |
| 6320 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6321 | (void) cached_has_bits; |
| 6322 | |
| 6323 | // .dmi.Status status = 1; |
| 6324 | if (this->status() != 0) { |
| 6325 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6326 | 1, this->status(), output); |
| 6327 | } |
| 6328 | |
| 6329 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6330 | if (this->reason() != 0) { |
| 6331 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6332 | 2, this->reason(), output); |
| 6333 | } |
| 6334 | |
| 6335 | // string reason_detail = 3; |
| 6336 | if (this->reason_detail().size() > 0) { |
| 6337 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6338 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6339 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6340 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6341 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6342 | 3, this->reason_detail(), output); |
| 6343 | } |
| 6344 | |
| 6345 | if (_internal_metadata_.have_unknown_fields()) { |
| 6346 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6347 | _internal_metadata_.unknown_fields(), output); |
| 6348 | } |
| 6349 | // @@protoc_insertion_point(serialize_end:dmi.SetRemoteEndpointResponse) |
| 6350 | } |
| 6351 | |
| 6352 | ::google::protobuf::uint8* SetRemoteEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6353 | ::google::protobuf::uint8* target) const { |
| 6354 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetRemoteEndpointResponse) |
| 6355 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6356 | (void) cached_has_bits; |
| 6357 | |
| 6358 | // .dmi.Status status = 1; |
| 6359 | if (this->status() != 0) { |
| 6360 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6361 | 1, this->status(), target); |
| 6362 | } |
| 6363 | |
| 6364 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6365 | if (this->reason() != 0) { |
| 6366 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6367 | 2, this->reason(), target); |
| 6368 | } |
| 6369 | |
| 6370 | // string reason_detail = 3; |
| 6371 | if (this->reason_detail().size() > 0) { |
| 6372 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6373 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6374 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6375 | "dmi.SetRemoteEndpointResponse.reason_detail"); |
| 6376 | target = |
| 6377 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6378 | 3, this->reason_detail(), target); |
| 6379 | } |
| 6380 | |
| 6381 | if (_internal_metadata_.have_unknown_fields()) { |
| 6382 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6383 | _internal_metadata_.unknown_fields(), target); |
| 6384 | } |
| 6385 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetRemoteEndpointResponse) |
| 6386 | return target; |
| 6387 | } |
| 6388 | |
| 6389 | size_t SetRemoteEndpointResponse::ByteSizeLong() const { |
| 6390 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetRemoteEndpointResponse) |
| 6391 | size_t total_size = 0; |
| 6392 | |
| 6393 | if (_internal_metadata_.have_unknown_fields()) { |
| 6394 | total_size += |
| 6395 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6396 | _internal_metadata_.unknown_fields()); |
| 6397 | } |
| 6398 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6399 | // Prevent compiler warnings about cached_has_bits being unused |
| 6400 | (void) cached_has_bits; |
| 6401 | |
| 6402 | // string reason_detail = 3; |
| 6403 | if (this->reason_detail().size() > 0) { |
| 6404 | total_size += 1 + |
| 6405 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6406 | this->reason_detail()); |
| 6407 | } |
| 6408 | |
| 6409 | // .dmi.Status status = 1; |
| 6410 | if (this->status() != 0) { |
| 6411 | total_size += 1 + |
| 6412 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6413 | } |
| 6414 | |
| 6415 | // .dmi.SetRemoteEndpointResponse.Reason reason = 2; |
| 6416 | if (this->reason() != 0) { |
| 6417 | total_size += 1 + |
| 6418 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 6419 | } |
| 6420 | |
| 6421 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6422 | SetCachedSize(cached_size); |
| 6423 | return total_size; |
| 6424 | } |
| 6425 | |
| 6426 | void SetRemoteEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 6427 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6428 | GOOGLE_DCHECK_NE(&from, this); |
| 6429 | const SetRemoteEndpointResponse* source = |
| 6430 | ::google::protobuf::DynamicCastToGenerated<SetRemoteEndpointResponse>( |
| 6431 | &from); |
| 6432 | if (source == nullptr) { |
| 6433 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetRemoteEndpointResponse) |
| 6434 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6435 | } else { |
| 6436 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetRemoteEndpointResponse) |
| 6437 | MergeFrom(*source); |
| 6438 | } |
| 6439 | } |
| 6440 | |
| 6441 | void SetRemoteEndpointResponse::MergeFrom(const SetRemoteEndpointResponse& from) { |
| 6442 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetRemoteEndpointResponse) |
| 6443 | GOOGLE_DCHECK_NE(&from, this); |
| 6444 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6445 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6446 | (void) cached_has_bits; |
| 6447 | |
| 6448 | if (from.reason_detail().size() > 0) { |
| 6449 | |
| 6450 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6451 | } |
| 6452 | if (from.status() != 0) { |
| 6453 | set_status(from.status()); |
| 6454 | } |
| 6455 | if (from.reason() != 0) { |
| 6456 | set_reason(from.reason()); |
| 6457 | } |
| 6458 | } |
| 6459 | |
| 6460 | void SetRemoteEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 6461 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6462 | if (&from == this) return; |
| 6463 | Clear(); |
| 6464 | MergeFrom(from); |
| 6465 | } |
| 6466 | |
| 6467 | void SetRemoteEndpointResponse::CopyFrom(const SetRemoteEndpointResponse& from) { |
| 6468 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetRemoteEndpointResponse) |
| 6469 | if (&from == this) return; |
| 6470 | Clear(); |
| 6471 | MergeFrom(from); |
| 6472 | } |
| 6473 | |
| 6474 | bool SetRemoteEndpointResponse::IsInitialized() const { |
| 6475 | return true; |
| 6476 | } |
| 6477 | |
| 6478 | void SetRemoteEndpointResponse::Swap(SetRemoteEndpointResponse* other) { |
| 6479 | if (other == this) return; |
| 6480 | InternalSwap(other); |
| 6481 | } |
| 6482 | void SetRemoteEndpointResponse::InternalSwap(SetRemoteEndpointResponse* other) { |
| 6483 | using std::swap; |
| 6484 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 6485 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 6486 | GetArenaNoVirtual()); |
| 6487 | swap(status_, other->status_); |
| 6488 | swap(reason_, other->reason_); |
| 6489 | } |
| 6490 | |
| 6491 | ::google::protobuf::Metadata SetRemoteEndpointResponse::GetMetadata() const { |
| 6492 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 6493 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 6494 | } |
| 6495 | |
| 6496 | |
| 6497 | // =================================================================== |
| 6498 | |
| 6499 | void GetLoggingEndpointResponse::InitAsDefaultInstance() { |
| 6500 | } |
| 6501 | class GetLoggingEndpointResponse::HasBitSetters { |
| 6502 | public: |
| 6503 | }; |
| 6504 | |
| 6505 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6506 | const int GetLoggingEndpointResponse::kStatusFieldNumber; |
| 6507 | const int GetLoggingEndpointResponse::kReasonFieldNumber; |
| 6508 | const int GetLoggingEndpointResponse::kLoggingEndpointFieldNumber; |
| 6509 | const int GetLoggingEndpointResponse::kLoggingProtocolFieldNumber; |
| 6510 | const int GetLoggingEndpointResponse::kReasonDetailFieldNumber; |
| 6511 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 6512 | |
| 6513 | GetLoggingEndpointResponse::GetLoggingEndpointResponse() |
| 6514 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 6515 | SharedCtor(); |
| 6516 | // @@protoc_insertion_point(constructor:dmi.GetLoggingEndpointResponse) |
| 6517 | } |
| 6518 | GetLoggingEndpointResponse::GetLoggingEndpointResponse(const GetLoggingEndpointResponse& from) |
| 6519 | : ::google::protobuf::Message(), |
| 6520 | _internal_metadata_(nullptr) { |
| 6521 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6522 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6523 | if (from.logging_endpoint().size() > 0) { |
| 6524 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6525 | } |
| 6526 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6527 | if (from.logging_protocol().size() > 0) { |
| 6528 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6529 | } |
| 6530 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6531 | if (from.reason_detail().size() > 0) { |
| 6532 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6533 | } |
| 6534 | ::memcpy(&status_, &from.status_, |
| 6535 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 6536 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6537 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggingEndpointResponse) |
| 6538 | } |
| 6539 | |
| 6540 | void GetLoggingEndpointResponse::SharedCtor() { |
| 6541 | ::google::protobuf::internal::InitSCC( |
| 6542 | &scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6543 | logging_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6544 | logging_protocol_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6545 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6546 | ::memset(&status_, 0, static_cast<size_t>( |
| 6547 | reinterpret_cast<char*>(&reason_) - |
| 6548 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6549 | } |
| 6550 | |
| 6551 | GetLoggingEndpointResponse::~GetLoggingEndpointResponse() { |
| 6552 | // @@protoc_insertion_point(destructor:dmi.GetLoggingEndpointResponse) |
| 6553 | SharedDtor(); |
| 6554 | } |
| 6555 | |
| 6556 | void GetLoggingEndpointResponse::SharedDtor() { |
| 6557 | logging_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6558 | logging_protocol_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6559 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6560 | } |
| 6561 | |
| 6562 | void GetLoggingEndpointResponse::SetCachedSize(int size) const { |
| 6563 | _cached_size_.Set(size); |
| 6564 | } |
| 6565 | const GetLoggingEndpointResponse& GetLoggingEndpointResponse::default_instance() { |
| 6566 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggingEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 6567 | return *internal_default_instance(); |
| 6568 | } |
| 6569 | |
| 6570 | |
| 6571 | void GetLoggingEndpointResponse::Clear() { |
| 6572 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggingEndpointResponse) |
| 6573 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6574 | // Prevent compiler warnings about cached_has_bits being unused |
| 6575 | (void) cached_has_bits; |
| 6576 | |
| 6577 | logging_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6578 | logging_protocol_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6579 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 6580 | ::memset(&status_, 0, static_cast<size_t>( |
| 6581 | reinterpret_cast<char*>(&reason_) - |
| 6582 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 6583 | _internal_metadata_.Clear(); |
| 6584 | } |
| 6585 | |
| 6586 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6587 | const char* GetLoggingEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 6588 | ::google::protobuf::internal::ParseContext* ctx) { |
| 6589 | auto msg = static_cast<GetLoggingEndpointResponse*>(object); |
| 6590 | ::google::protobuf::int32 size; (void)size; |
| 6591 | int depth; (void)depth; |
| 6592 | ::google::protobuf::uint32 tag; |
| 6593 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 6594 | auto ptr = begin; |
| 6595 | while (ptr < end) { |
| 6596 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 6597 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6598 | switch (tag >> 3) { |
| 6599 | // .dmi.Status status = 1; |
| 6600 | case 1: { |
| 6601 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 6602 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6603 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 6604 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6605 | break; |
| 6606 | } |
| 6607 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6608 | case 2: { |
| 6609 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 6610 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 6611 | msg->set_reason(static_cast<::dmi::GetLoggingEndpointResponse_Reason>(val)); |
| 6612 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6613 | break; |
| 6614 | } |
| 6615 | // string logging_endpoint = 3; |
| 6616 | case 3: { |
| 6617 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 6618 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6619 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6620 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6621 | object = msg->mutable_logging_endpoint(); |
| 6622 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6623 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6624 | goto string_till_end; |
| 6625 | } |
| 6626 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6627 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6628 | ptr += size; |
| 6629 | break; |
| 6630 | } |
| 6631 | // string logging_protocol = 4; |
| 6632 | case 4: { |
| 6633 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 6634 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6635 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6636 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6637 | object = msg->mutable_logging_protocol(); |
| 6638 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6639 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6640 | goto string_till_end; |
| 6641 | } |
| 6642 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6643 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6644 | ptr += size; |
| 6645 | break; |
| 6646 | } |
| 6647 | // string reason_detail = 5; |
| 6648 | case 5: { |
| 6649 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 6650 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 6651 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 6652 | ctx->extra_parse_data().SetFieldName("dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6653 | object = msg->mutable_reason_detail(); |
| 6654 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 6655 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 6656 | goto string_till_end; |
| 6657 | } |
| 6658 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 6659 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 6660 | ptr += size; |
| 6661 | break; |
| 6662 | } |
| 6663 | default: { |
| 6664 | handle_unusual: |
| 6665 | if ((tag & 7) == 4 || tag == 0) { |
| 6666 | ctx->EndGroup(tag); |
| 6667 | return ptr; |
| 6668 | } |
| 6669 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 6670 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 6671 | ptr = res.first; |
| 6672 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 6673 | if (res.second) return ptr; |
| 6674 | } |
| 6675 | } // switch |
| 6676 | } // while |
| 6677 | return ptr; |
| 6678 | string_till_end: |
| 6679 | static_cast<::std::string*>(object)->clear(); |
| 6680 | static_cast<::std::string*>(object)->reserve(size); |
| 6681 | goto len_delim_till_end; |
| 6682 | len_delim_till_end: |
| 6683 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 6684 | {parser_till_end, object}, size); |
| 6685 | } |
| 6686 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6687 | bool GetLoggingEndpointResponse::MergePartialFromCodedStream( |
| 6688 | ::google::protobuf::io::CodedInputStream* input) { |
| 6689 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 6690 | ::google::protobuf::uint32 tag; |
| 6691 | // @@protoc_insertion_point(parse_start:dmi.GetLoggingEndpointResponse) |
| 6692 | for (;;) { |
| 6693 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 6694 | tag = p.first; |
| 6695 | if (!p.second) goto handle_unusual; |
| 6696 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 6697 | // .dmi.Status status = 1; |
| 6698 | case 1: { |
| 6699 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 6700 | int value = 0; |
| 6701 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6702 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6703 | input, &value))); |
| 6704 | set_status(static_cast< ::dmi::Status >(value)); |
| 6705 | } else { |
| 6706 | goto handle_unusual; |
| 6707 | } |
| 6708 | break; |
| 6709 | } |
| 6710 | |
| 6711 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6712 | case 2: { |
| 6713 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 6714 | int value = 0; |
| 6715 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 6716 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 6717 | input, &value))); |
| 6718 | set_reason(static_cast< ::dmi::GetLoggingEndpointResponse_Reason >(value)); |
| 6719 | } else { |
| 6720 | goto handle_unusual; |
| 6721 | } |
| 6722 | break; |
| 6723 | } |
| 6724 | |
| 6725 | // string logging_endpoint = 3; |
| 6726 | case 3: { |
| 6727 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 6728 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6729 | input, this->mutable_logging_endpoint())); |
| 6730 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6731 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6732 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6733 | "dmi.GetLoggingEndpointResponse.logging_endpoint")); |
| 6734 | } else { |
| 6735 | goto handle_unusual; |
| 6736 | } |
| 6737 | break; |
| 6738 | } |
| 6739 | |
| 6740 | // string logging_protocol = 4; |
| 6741 | case 4: { |
| 6742 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 6743 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6744 | input, this->mutable_logging_protocol())); |
| 6745 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6746 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6747 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6748 | "dmi.GetLoggingEndpointResponse.logging_protocol")); |
| 6749 | } else { |
| 6750 | goto handle_unusual; |
| 6751 | } |
| 6752 | break; |
| 6753 | } |
| 6754 | |
| 6755 | // string reason_detail = 5; |
| 6756 | case 5: { |
| 6757 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 6758 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 6759 | input, this->mutable_reason_detail())); |
| 6760 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6761 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6762 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 6763 | "dmi.GetLoggingEndpointResponse.reason_detail")); |
| 6764 | } else { |
| 6765 | goto handle_unusual; |
| 6766 | } |
| 6767 | break; |
| 6768 | } |
| 6769 | |
| 6770 | default: { |
| 6771 | handle_unusual: |
| 6772 | if (tag == 0) { |
| 6773 | goto success; |
| 6774 | } |
| 6775 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 6776 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 6777 | break; |
| 6778 | } |
| 6779 | } |
| 6780 | } |
| 6781 | success: |
| 6782 | // @@protoc_insertion_point(parse_success:dmi.GetLoggingEndpointResponse) |
| 6783 | return true; |
| 6784 | failure: |
| 6785 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggingEndpointResponse) |
| 6786 | return false; |
| 6787 | #undef DO_ |
| 6788 | } |
| 6789 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 6790 | |
| 6791 | void GetLoggingEndpointResponse::SerializeWithCachedSizes( |
| 6792 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 6793 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggingEndpointResponse) |
| 6794 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6795 | (void) cached_has_bits; |
| 6796 | |
| 6797 | // .dmi.Status status = 1; |
| 6798 | if (this->status() != 0) { |
| 6799 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6800 | 1, this->status(), output); |
| 6801 | } |
| 6802 | |
| 6803 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6804 | if (this->reason() != 0) { |
| 6805 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 6806 | 2, this->reason(), output); |
| 6807 | } |
| 6808 | |
| 6809 | // string logging_endpoint = 3; |
| 6810 | if (this->logging_endpoint().size() > 0) { |
| 6811 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6812 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6813 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6814 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6815 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6816 | 3, this->logging_endpoint(), output); |
| 6817 | } |
| 6818 | |
| 6819 | // string logging_protocol = 4; |
| 6820 | if (this->logging_protocol().size() > 0) { |
| 6821 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6822 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6823 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6824 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6825 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6826 | 4, this->logging_protocol(), output); |
| 6827 | } |
| 6828 | |
| 6829 | // string reason_detail = 5; |
| 6830 | if (this->reason_detail().size() > 0) { |
| 6831 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6832 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6833 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6834 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6835 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 6836 | 5, this->reason_detail(), output); |
| 6837 | } |
| 6838 | |
| 6839 | if (_internal_metadata_.have_unknown_fields()) { |
| 6840 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 6841 | _internal_metadata_.unknown_fields(), output); |
| 6842 | } |
| 6843 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggingEndpointResponse) |
| 6844 | } |
| 6845 | |
| 6846 | ::google::protobuf::uint8* GetLoggingEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 6847 | ::google::protobuf::uint8* target) const { |
| 6848 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggingEndpointResponse) |
| 6849 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6850 | (void) cached_has_bits; |
| 6851 | |
| 6852 | // .dmi.Status status = 1; |
| 6853 | if (this->status() != 0) { |
| 6854 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6855 | 1, this->status(), target); |
| 6856 | } |
| 6857 | |
| 6858 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6859 | if (this->reason() != 0) { |
| 6860 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 6861 | 2, this->reason(), target); |
| 6862 | } |
| 6863 | |
| 6864 | // string logging_endpoint = 3; |
| 6865 | if (this->logging_endpoint().size() > 0) { |
| 6866 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6867 | this->logging_endpoint().data(), static_cast<int>(this->logging_endpoint().length()), |
| 6868 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6869 | "dmi.GetLoggingEndpointResponse.logging_endpoint"); |
| 6870 | target = |
| 6871 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6872 | 3, this->logging_endpoint(), target); |
| 6873 | } |
| 6874 | |
| 6875 | // string logging_protocol = 4; |
| 6876 | if (this->logging_protocol().size() > 0) { |
| 6877 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6878 | this->logging_protocol().data(), static_cast<int>(this->logging_protocol().length()), |
| 6879 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6880 | "dmi.GetLoggingEndpointResponse.logging_protocol"); |
| 6881 | target = |
| 6882 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6883 | 4, this->logging_protocol(), target); |
| 6884 | } |
| 6885 | |
| 6886 | // string reason_detail = 5; |
| 6887 | if (this->reason_detail().size() > 0) { |
| 6888 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 6889 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 6890 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 6891 | "dmi.GetLoggingEndpointResponse.reason_detail"); |
| 6892 | target = |
| 6893 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 6894 | 5, this->reason_detail(), target); |
| 6895 | } |
| 6896 | |
| 6897 | if (_internal_metadata_.have_unknown_fields()) { |
| 6898 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 6899 | _internal_metadata_.unknown_fields(), target); |
| 6900 | } |
| 6901 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggingEndpointResponse) |
| 6902 | return target; |
| 6903 | } |
| 6904 | |
| 6905 | size_t GetLoggingEndpointResponse::ByteSizeLong() const { |
| 6906 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggingEndpointResponse) |
| 6907 | size_t total_size = 0; |
| 6908 | |
| 6909 | if (_internal_metadata_.have_unknown_fields()) { |
| 6910 | total_size += |
| 6911 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 6912 | _internal_metadata_.unknown_fields()); |
| 6913 | } |
| 6914 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6915 | // Prevent compiler warnings about cached_has_bits being unused |
| 6916 | (void) cached_has_bits; |
| 6917 | |
| 6918 | // string logging_endpoint = 3; |
| 6919 | if (this->logging_endpoint().size() > 0) { |
| 6920 | total_size += 1 + |
| 6921 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6922 | this->logging_endpoint()); |
| 6923 | } |
| 6924 | |
| 6925 | // string logging_protocol = 4; |
| 6926 | if (this->logging_protocol().size() > 0) { |
| 6927 | total_size += 1 + |
| 6928 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6929 | this->logging_protocol()); |
| 6930 | } |
| 6931 | |
| 6932 | // string reason_detail = 5; |
| 6933 | if (this->reason_detail().size() > 0) { |
| 6934 | total_size += 1 + |
| 6935 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 6936 | this->reason_detail()); |
| 6937 | } |
| 6938 | |
| 6939 | // .dmi.Status status = 1; |
| 6940 | if (this->status() != 0) { |
| 6941 | total_size += 1 + |
| 6942 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 6943 | } |
| 6944 | |
| 6945 | // .dmi.GetLoggingEndpointResponse.Reason reason = 2; |
| 6946 | if (this->reason() != 0) { |
| 6947 | total_size += 1 + |
| 6948 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 6949 | } |
| 6950 | |
| 6951 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 6952 | SetCachedSize(cached_size); |
| 6953 | return total_size; |
| 6954 | } |
| 6955 | |
| 6956 | void GetLoggingEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 6957 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 6958 | GOOGLE_DCHECK_NE(&from, this); |
| 6959 | const GetLoggingEndpointResponse* source = |
| 6960 | ::google::protobuf::DynamicCastToGenerated<GetLoggingEndpointResponse>( |
| 6961 | &from); |
| 6962 | if (source == nullptr) { |
| 6963 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggingEndpointResponse) |
| 6964 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 6965 | } else { |
| 6966 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggingEndpointResponse) |
| 6967 | MergeFrom(*source); |
| 6968 | } |
| 6969 | } |
| 6970 | |
| 6971 | void GetLoggingEndpointResponse::MergeFrom(const GetLoggingEndpointResponse& from) { |
| 6972 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggingEndpointResponse) |
| 6973 | GOOGLE_DCHECK_NE(&from, this); |
| 6974 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 6975 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 6976 | (void) cached_has_bits; |
| 6977 | |
| 6978 | if (from.logging_endpoint().size() > 0) { |
| 6979 | |
| 6980 | logging_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_endpoint_); |
| 6981 | } |
| 6982 | if (from.logging_protocol().size() > 0) { |
| 6983 | |
| 6984 | logging_protocol_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.logging_protocol_); |
| 6985 | } |
| 6986 | if (from.reason_detail().size() > 0) { |
| 6987 | |
| 6988 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 6989 | } |
| 6990 | if (from.status() != 0) { |
| 6991 | set_status(from.status()); |
| 6992 | } |
| 6993 | if (from.reason() != 0) { |
| 6994 | set_reason(from.reason()); |
| 6995 | } |
| 6996 | } |
| 6997 | |
| 6998 | void GetLoggingEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 6999 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7000 | if (&from == this) return; |
| 7001 | Clear(); |
| 7002 | MergeFrom(from); |
| 7003 | } |
| 7004 | |
| 7005 | void GetLoggingEndpointResponse::CopyFrom(const GetLoggingEndpointResponse& from) { |
| 7006 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggingEndpointResponse) |
| 7007 | if (&from == this) return; |
| 7008 | Clear(); |
| 7009 | MergeFrom(from); |
| 7010 | } |
| 7011 | |
| 7012 | bool GetLoggingEndpointResponse::IsInitialized() const { |
| 7013 | return true; |
| 7014 | } |
| 7015 | |
| 7016 | void GetLoggingEndpointResponse::Swap(GetLoggingEndpointResponse* other) { |
| 7017 | if (other == this) return; |
| 7018 | InternalSwap(other); |
| 7019 | } |
| 7020 | void GetLoggingEndpointResponse::InternalSwap(GetLoggingEndpointResponse* other) { |
| 7021 | using std::swap; |
| 7022 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7023 | logging_endpoint_.Swap(&other->logging_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7024 | GetArenaNoVirtual()); |
| 7025 | logging_protocol_.Swap(&other->logging_protocol_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7026 | GetArenaNoVirtual()); |
| 7027 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7028 | GetArenaNoVirtual()); |
| 7029 | swap(status_, other->status_); |
| 7030 | swap(reason_, other->reason_); |
| 7031 | } |
| 7032 | |
| 7033 | ::google::protobuf::Metadata GetLoggingEndpointResponse::GetMetadata() const { |
| 7034 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7035 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7036 | } |
| 7037 | |
| 7038 | |
| 7039 | // =================================================================== |
| 7040 | |
| 7041 | void SetMsgBusEndpointRequest::InitAsDefaultInstance() { |
| 7042 | } |
| 7043 | class SetMsgBusEndpointRequest::HasBitSetters { |
| 7044 | public: |
| 7045 | }; |
| 7046 | |
| 7047 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7048 | const int SetMsgBusEndpointRequest::kMsgbusEndpointFieldNumber; |
| 7049 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7050 | |
| 7051 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest() |
| 7052 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7053 | SharedCtor(); |
| 7054 | // @@protoc_insertion_point(constructor:dmi.SetMsgBusEndpointRequest) |
| 7055 | } |
| 7056 | SetMsgBusEndpointRequest::SetMsgBusEndpointRequest(const SetMsgBusEndpointRequest& from) |
| 7057 | : ::google::protobuf::Message(), |
| 7058 | _internal_metadata_(nullptr) { |
| 7059 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7060 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7061 | if (from.msgbus_endpoint().size() > 0) { |
| 7062 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7063 | } |
| 7064 | // @@protoc_insertion_point(copy_constructor:dmi.SetMsgBusEndpointRequest) |
| 7065 | } |
| 7066 | |
| 7067 | void SetMsgBusEndpointRequest::SharedCtor() { |
| 7068 | ::google::protobuf::internal::InitSCC( |
| 7069 | &scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7070 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7071 | } |
| 7072 | |
| 7073 | SetMsgBusEndpointRequest::~SetMsgBusEndpointRequest() { |
| 7074 | // @@protoc_insertion_point(destructor:dmi.SetMsgBusEndpointRequest) |
| 7075 | SharedDtor(); |
| 7076 | } |
| 7077 | |
| 7078 | void SetMsgBusEndpointRequest::SharedDtor() { |
| 7079 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7080 | } |
| 7081 | |
| 7082 | void SetMsgBusEndpointRequest::SetCachedSize(int size) const { |
| 7083 | _cached_size_.Set(size); |
| 7084 | } |
| 7085 | const SetMsgBusEndpointRequest& SetMsgBusEndpointRequest::default_instance() { |
| 7086 | ::google::protobuf::internal::InitSCC(&::scc_info_SetMsgBusEndpointRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7087 | return *internal_default_instance(); |
| 7088 | } |
| 7089 | |
| 7090 | |
| 7091 | void SetMsgBusEndpointRequest::Clear() { |
| 7092 | // @@protoc_insertion_point(message_clear_start:dmi.SetMsgBusEndpointRequest) |
| 7093 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7094 | // Prevent compiler warnings about cached_has_bits being unused |
| 7095 | (void) cached_has_bits; |
| 7096 | |
| 7097 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7098 | _internal_metadata_.Clear(); |
| 7099 | } |
| 7100 | |
| 7101 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7102 | const char* SetMsgBusEndpointRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 7103 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7104 | auto msg = static_cast<SetMsgBusEndpointRequest*>(object); |
| 7105 | ::google::protobuf::int32 size; (void)size; |
| 7106 | int depth; (void)depth; |
| 7107 | ::google::protobuf::uint32 tag; |
| 7108 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7109 | auto ptr = begin; |
| 7110 | while (ptr < end) { |
| 7111 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7112 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7113 | switch (tag >> 3) { |
| 7114 | // string msgbus_endpoint = 1; |
| 7115 | case 1: { |
| 7116 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 7117 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7118 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7119 | ctx->extra_parse_data().SetFieldName("dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7120 | object = msg->mutable_msgbus_endpoint(); |
| 7121 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7122 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7123 | goto string_till_end; |
| 7124 | } |
| 7125 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7126 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7127 | ptr += size; |
| 7128 | break; |
| 7129 | } |
| 7130 | default: { |
| 7131 | handle_unusual: |
| 7132 | if ((tag & 7) == 4 || tag == 0) { |
| 7133 | ctx->EndGroup(tag); |
| 7134 | return ptr; |
| 7135 | } |
| 7136 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7137 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7138 | ptr = res.first; |
| 7139 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7140 | if (res.second) return ptr; |
| 7141 | } |
| 7142 | } // switch |
| 7143 | } // while |
| 7144 | return ptr; |
| 7145 | string_till_end: |
| 7146 | static_cast<::std::string*>(object)->clear(); |
| 7147 | static_cast<::std::string*>(object)->reserve(size); |
| 7148 | goto len_delim_till_end; |
| 7149 | len_delim_till_end: |
| 7150 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7151 | {parser_till_end, object}, size); |
| 7152 | } |
| 7153 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7154 | bool SetMsgBusEndpointRequest::MergePartialFromCodedStream( |
| 7155 | ::google::protobuf::io::CodedInputStream* input) { |
| 7156 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7157 | ::google::protobuf::uint32 tag; |
| 7158 | // @@protoc_insertion_point(parse_start:dmi.SetMsgBusEndpointRequest) |
| 7159 | for (;;) { |
| 7160 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7161 | tag = p.first; |
| 7162 | if (!p.second) goto handle_unusual; |
| 7163 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7164 | // string msgbus_endpoint = 1; |
| 7165 | case 1: { |
| 7166 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 7167 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7168 | input, this->mutable_msgbus_endpoint())); |
| 7169 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7170 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7171 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7172 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint")); |
| 7173 | } else { |
| 7174 | goto handle_unusual; |
| 7175 | } |
| 7176 | break; |
| 7177 | } |
| 7178 | |
| 7179 | default: { |
| 7180 | handle_unusual: |
| 7181 | if (tag == 0) { |
| 7182 | goto success; |
| 7183 | } |
| 7184 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7185 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7186 | break; |
| 7187 | } |
| 7188 | } |
| 7189 | } |
| 7190 | success: |
| 7191 | // @@protoc_insertion_point(parse_success:dmi.SetMsgBusEndpointRequest) |
| 7192 | return true; |
| 7193 | failure: |
| 7194 | // @@protoc_insertion_point(parse_failure:dmi.SetMsgBusEndpointRequest) |
| 7195 | return false; |
| 7196 | #undef DO_ |
| 7197 | } |
| 7198 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7199 | |
| 7200 | void SetMsgBusEndpointRequest::SerializeWithCachedSizes( |
| 7201 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7202 | // @@protoc_insertion_point(serialize_start:dmi.SetMsgBusEndpointRequest) |
| 7203 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7204 | (void) cached_has_bits; |
| 7205 | |
| 7206 | // string msgbus_endpoint = 1; |
| 7207 | if (this->msgbus_endpoint().size() > 0) { |
| 7208 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7209 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7210 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7211 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7212 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7213 | 1, this->msgbus_endpoint(), output); |
| 7214 | } |
| 7215 | |
| 7216 | if (_internal_metadata_.have_unknown_fields()) { |
| 7217 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7218 | _internal_metadata_.unknown_fields(), output); |
| 7219 | } |
| 7220 | // @@protoc_insertion_point(serialize_end:dmi.SetMsgBusEndpointRequest) |
| 7221 | } |
| 7222 | |
| 7223 | ::google::protobuf::uint8* SetMsgBusEndpointRequest::InternalSerializeWithCachedSizesToArray( |
| 7224 | ::google::protobuf::uint8* target) const { |
| 7225 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetMsgBusEndpointRequest) |
| 7226 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7227 | (void) cached_has_bits; |
| 7228 | |
| 7229 | // string msgbus_endpoint = 1; |
| 7230 | if (this->msgbus_endpoint().size() > 0) { |
| 7231 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7232 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7233 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7234 | "dmi.SetMsgBusEndpointRequest.msgbus_endpoint"); |
| 7235 | target = |
| 7236 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7237 | 1, this->msgbus_endpoint(), target); |
| 7238 | } |
| 7239 | |
| 7240 | if (_internal_metadata_.have_unknown_fields()) { |
| 7241 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7242 | _internal_metadata_.unknown_fields(), target); |
| 7243 | } |
| 7244 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetMsgBusEndpointRequest) |
| 7245 | return target; |
| 7246 | } |
| 7247 | |
| 7248 | size_t SetMsgBusEndpointRequest::ByteSizeLong() const { |
| 7249 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetMsgBusEndpointRequest) |
| 7250 | size_t total_size = 0; |
| 7251 | |
| 7252 | if (_internal_metadata_.have_unknown_fields()) { |
| 7253 | total_size += |
| 7254 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7255 | _internal_metadata_.unknown_fields()); |
| 7256 | } |
| 7257 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7258 | // Prevent compiler warnings about cached_has_bits being unused |
| 7259 | (void) cached_has_bits; |
| 7260 | |
| 7261 | // string msgbus_endpoint = 1; |
| 7262 | if (this->msgbus_endpoint().size() > 0) { |
| 7263 | total_size += 1 + |
| 7264 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7265 | this->msgbus_endpoint()); |
| 7266 | } |
| 7267 | |
| 7268 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7269 | SetCachedSize(cached_size); |
| 7270 | return total_size; |
| 7271 | } |
| 7272 | |
| 7273 | void SetMsgBusEndpointRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 7274 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7275 | GOOGLE_DCHECK_NE(&from, this); |
| 7276 | const SetMsgBusEndpointRequest* source = |
| 7277 | ::google::protobuf::DynamicCastToGenerated<SetMsgBusEndpointRequest>( |
| 7278 | &from); |
| 7279 | if (source == nullptr) { |
| 7280 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetMsgBusEndpointRequest) |
| 7281 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7282 | } else { |
| 7283 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetMsgBusEndpointRequest) |
| 7284 | MergeFrom(*source); |
| 7285 | } |
| 7286 | } |
| 7287 | |
| 7288 | void SetMsgBusEndpointRequest::MergeFrom(const SetMsgBusEndpointRequest& from) { |
| 7289 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetMsgBusEndpointRequest) |
| 7290 | GOOGLE_DCHECK_NE(&from, this); |
| 7291 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7292 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7293 | (void) cached_has_bits; |
| 7294 | |
| 7295 | if (from.msgbus_endpoint().size() > 0) { |
| 7296 | |
| 7297 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7298 | } |
| 7299 | } |
| 7300 | |
| 7301 | void SetMsgBusEndpointRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 7302 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7303 | if (&from == this) return; |
| 7304 | Clear(); |
| 7305 | MergeFrom(from); |
| 7306 | } |
| 7307 | |
| 7308 | void SetMsgBusEndpointRequest::CopyFrom(const SetMsgBusEndpointRequest& from) { |
| 7309 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetMsgBusEndpointRequest) |
| 7310 | if (&from == this) return; |
| 7311 | Clear(); |
| 7312 | MergeFrom(from); |
| 7313 | } |
| 7314 | |
| 7315 | bool SetMsgBusEndpointRequest::IsInitialized() const { |
| 7316 | return true; |
| 7317 | } |
| 7318 | |
| 7319 | void SetMsgBusEndpointRequest::Swap(SetMsgBusEndpointRequest* other) { |
| 7320 | if (other == this) return; |
| 7321 | InternalSwap(other); |
| 7322 | } |
| 7323 | void SetMsgBusEndpointRequest::InternalSwap(SetMsgBusEndpointRequest* other) { |
| 7324 | using std::swap; |
| 7325 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7326 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7327 | GetArenaNoVirtual()); |
| 7328 | } |
| 7329 | |
| 7330 | ::google::protobuf::Metadata SetMsgBusEndpointRequest::GetMetadata() const { |
| 7331 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7332 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7333 | } |
| 7334 | |
| 7335 | |
| 7336 | // =================================================================== |
| 7337 | |
| 7338 | void GetMsgBusEndpointResponse::InitAsDefaultInstance() { |
| 7339 | } |
| 7340 | class GetMsgBusEndpointResponse::HasBitSetters { |
| 7341 | public: |
| 7342 | }; |
| 7343 | |
| 7344 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7345 | const int GetMsgBusEndpointResponse::kStatusFieldNumber; |
| 7346 | const int GetMsgBusEndpointResponse::kReasonFieldNumber; |
| 7347 | const int GetMsgBusEndpointResponse::kMsgbusEndpointFieldNumber; |
| 7348 | const int GetMsgBusEndpointResponse::kReasonDetailFieldNumber; |
| 7349 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7350 | |
| 7351 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse() |
| 7352 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7353 | SharedCtor(); |
| 7354 | // @@protoc_insertion_point(constructor:dmi.GetMsgBusEndpointResponse) |
| 7355 | } |
| 7356 | GetMsgBusEndpointResponse::GetMsgBusEndpointResponse(const GetMsgBusEndpointResponse& from) |
| 7357 | : ::google::protobuf::Message(), |
| 7358 | _internal_metadata_(nullptr) { |
| 7359 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7360 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7361 | if (from.msgbus_endpoint().size() > 0) { |
| 7362 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7363 | } |
| 7364 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7365 | if (from.reason_detail().size() > 0) { |
| 7366 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7367 | } |
| 7368 | ::memcpy(&status_, &from.status_, |
| 7369 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 7370 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7371 | // @@protoc_insertion_point(copy_constructor:dmi.GetMsgBusEndpointResponse) |
| 7372 | } |
| 7373 | |
| 7374 | void GetMsgBusEndpointResponse::SharedCtor() { |
| 7375 | ::google::protobuf::internal::InitSCC( |
| 7376 | &scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7377 | msgbus_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7378 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7379 | ::memset(&status_, 0, static_cast<size_t>( |
| 7380 | reinterpret_cast<char*>(&reason_) - |
| 7381 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7382 | } |
| 7383 | |
| 7384 | GetMsgBusEndpointResponse::~GetMsgBusEndpointResponse() { |
| 7385 | // @@protoc_insertion_point(destructor:dmi.GetMsgBusEndpointResponse) |
| 7386 | SharedDtor(); |
| 7387 | } |
| 7388 | |
| 7389 | void GetMsgBusEndpointResponse::SharedDtor() { |
| 7390 | msgbus_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7391 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7392 | } |
| 7393 | |
| 7394 | void GetMsgBusEndpointResponse::SetCachedSize(int size) const { |
| 7395 | _cached_size_.Set(size); |
| 7396 | } |
| 7397 | const GetMsgBusEndpointResponse& GetMsgBusEndpointResponse::default_instance() { |
| 7398 | ::google::protobuf::internal::InitSCC(&::scc_info_GetMsgBusEndpointResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7399 | return *internal_default_instance(); |
| 7400 | } |
| 7401 | |
| 7402 | |
| 7403 | void GetMsgBusEndpointResponse::Clear() { |
| 7404 | // @@protoc_insertion_point(message_clear_start:dmi.GetMsgBusEndpointResponse) |
| 7405 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7406 | // Prevent compiler warnings about cached_has_bits being unused |
| 7407 | (void) cached_has_bits; |
| 7408 | |
| 7409 | msgbus_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7410 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 7411 | ::memset(&status_, 0, static_cast<size_t>( |
| 7412 | reinterpret_cast<char*>(&reason_) - |
| 7413 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 7414 | _internal_metadata_.Clear(); |
| 7415 | } |
| 7416 | |
| 7417 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7418 | const char* GetMsgBusEndpointResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 7419 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7420 | auto msg = static_cast<GetMsgBusEndpointResponse*>(object); |
| 7421 | ::google::protobuf::int32 size; (void)size; |
| 7422 | int depth; (void)depth; |
| 7423 | ::google::protobuf::uint32 tag; |
| 7424 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7425 | auto ptr = begin; |
| 7426 | while (ptr < end) { |
| 7427 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7428 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7429 | switch (tag >> 3) { |
| 7430 | // .dmi.Status status = 1; |
| 7431 | case 1: { |
| 7432 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7433 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7434 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 7435 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7436 | break; |
| 7437 | } |
| 7438 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7439 | case 2: { |
| 7440 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 7441 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7442 | msg->set_reason(static_cast<::dmi::GetMsgBusEndpointResponse_Reason>(val)); |
| 7443 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7444 | break; |
| 7445 | } |
| 7446 | // string msgbus_endpoint = 3; |
| 7447 | case 3: { |
| 7448 | if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; |
| 7449 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7450 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7451 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7452 | object = msg->mutable_msgbus_endpoint(); |
| 7453 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7454 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7455 | goto string_till_end; |
| 7456 | } |
| 7457 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7458 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7459 | ptr += size; |
| 7460 | break; |
| 7461 | } |
| 7462 | // string reason_detail = 4; |
| 7463 | case 4: { |
| 7464 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 7465 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7466 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7467 | ctx->extra_parse_data().SetFieldName("dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7468 | object = msg->mutable_reason_detail(); |
| 7469 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7470 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7471 | goto string_till_end; |
| 7472 | } |
| 7473 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7474 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7475 | ptr += size; |
| 7476 | break; |
| 7477 | } |
| 7478 | default: { |
| 7479 | handle_unusual: |
| 7480 | if ((tag & 7) == 4 || tag == 0) { |
| 7481 | ctx->EndGroup(tag); |
| 7482 | return ptr; |
| 7483 | } |
| 7484 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7485 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7486 | ptr = res.first; |
| 7487 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7488 | if (res.second) return ptr; |
| 7489 | } |
| 7490 | } // switch |
| 7491 | } // while |
| 7492 | return ptr; |
| 7493 | string_till_end: |
| 7494 | static_cast<::std::string*>(object)->clear(); |
| 7495 | static_cast<::std::string*>(object)->reserve(size); |
| 7496 | goto len_delim_till_end; |
| 7497 | len_delim_till_end: |
| 7498 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7499 | {parser_till_end, object}, size); |
| 7500 | } |
| 7501 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7502 | bool GetMsgBusEndpointResponse::MergePartialFromCodedStream( |
| 7503 | ::google::protobuf::io::CodedInputStream* input) { |
| 7504 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7505 | ::google::protobuf::uint32 tag; |
| 7506 | // @@protoc_insertion_point(parse_start:dmi.GetMsgBusEndpointResponse) |
| 7507 | for (;;) { |
| 7508 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7509 | tag = p.first; |
| 7510 | if (!p.second) goto handle_unusual; |
| 7511 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7512 | // .dmi.Status status = 1; |
| 7513 | case 1: { |
| 7514 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 7515 | int value = 0; |
| 7516 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7517 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7518 | input, &value))); |
| 7519 | set_status(static_cast< ::dmi::Status >(value)); |
| 7520 | } else { |
| 7521 | goto handle_unusual; |
| 7522 | } |
| 7523 | break; |
| 7524 | } |
| 7525 | |
| 7526 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7527 | case 2: { |
| 7528 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 7529 | int value = 0; |
| 7530 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7531 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7532 | input, &value))); |
| 7533 | set_reason(static_cast< ::dmi::GetMsgBusEndpointResponse_Reason >(value)); |
| 7534 | } else { |
| 7535 | goto handle_unusual; |
| 7536 | } |
| 7537 | break; |
| 7538 | } |
| 7539 | |
| 7540 | // string msgbus_endpoint = 3; |
| 7541 | case 3: { |
| 7542 | if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { |
| 7543 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7544 | input, this->mutable_msgbus_endpoint())); |
| 7545 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7546 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7547 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7548 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint")); |
| 7549 | } else { |
| 7550 | goto handle_unusual; |
| 7551 | } |
| 7552 | break; |
| 7553 | } |
| 7554 | |
| 7555 | // string reason_detail = 4; |
| 7556 | case 4: { |
| 7557 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 7558 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7559 | input, this->mutable_reason_detail())); |
| 7560 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7561 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7562 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7563 | "dmi.GetMsgBusEndpointResponse.reason_detail")); |
| 7564 | } else { |
| 7565 | goto handle_unusual; |
| 7566 | } |
| 7567 | break; |
| 7568 | } |
| 7569 | |
| 7570 | default: { |
| 7571 | handle_unusual: |
| 7572 | if (tag == 0) { |
| 7573 | goto success; |
| 7574 | } |
| 7575 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7576 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7577 | break; |
| 7578 | } |
| 7579 | } |
| 7580 | } |
| 7581 | success: |
| 7582 | // @@protoc_insertion_point(parse_success:dmi.GetMsgBusEndpointResponse) |
| 7583 | return true; |
| 7584 | failure: |
| 7585 | // @@protoc_insertion_point(parse_failure:dmi.GetMsgBusEndpointResponse) |
| 7586 | return false; |
| 7587 | #undef DO_ |
| 7588 | } |
| 7589 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7590 | |
| 7591 | void GetMsgBusEndpointResponse::SerializeWithCachedSizes( |
| 7592 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7593 | // @@protoc_insertion_point(serialize_start:dmi.GetMsgBusEndpointResponse) |
| 7594 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7595 | (void) cached_has_bits; |
| 7596 | |
| 7597 | // .dmi.Status status = 1; |
| 7598 | if (this->status() != 0) { |
| 7599 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7600 | 1, this->status(), output); |
| 7601 | } |
| 7602 | |
| 7603 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7604 | if (this->reason() != 0) { |
| 7605 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 7606 | 2, this->reason(), output); |
| 7607 | } |
| 7608 | |
| 7609 | // string msgbus_endpoint = 3; |
| 7610 | if (this->msgbus_endpoint().size() > 0) { |
| 7611 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7612 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7613 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7614 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7615 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7616 | 3, this->msgbus_endpoint(), output); |
| 7617 | } |
| 7618 | |
| 7619 | // string reason_detail = 4; |
| 7620 | if (this->reason_detail().size() > 0) { |
| 7621 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7622 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7623 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7624 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7625 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 7626 | 4, this->reason_detail(), output); |
| 7627 | } |
| 7628 | |
| 7629 | if (_internal_metadata_.have_unknown_fields()) { |
| 7630 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 7631 | _internal_metadata_.unknown_fields(), output); |
| 7632 | } |
| 7633 | // @@protoc_insertion_point(serialize_end:dmi.GetMsgBusEndpointResponse) |
| 7634 | } |
| 7635 | |
| 7636 | ::google::protobuf::uint8* GetMsgBusEndpointResponse::InternalSerializeWithCachedSizesToArray( |
| 7637 | ::google::protobuf::uint8* target) const { |
| 7638 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetMsgBusEndpointResponse) |
| 7639 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7640 | (void) cached_has_bits; |
| 7641 | |
| 7642 | // .dmi.Status status = 1; |
| 7643 | if (this->status() != 0) { |
| 7644 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7645 | 1, this->status(), target); |
| 7646 | } |
| 7647 | |
| 7648 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7649 | if (this->reason() != 0) { |
| 7650 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 7651 | 2, this->reason(), target); |
| 7652 | } |
| 7653 | |
| 7654 | // string msgbus_endpoint = 3; |
| 7655 | if (this->msgbus_endpoint().size() > 0) { |
| 7656 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7657 | this->msgbus_endpoint().data(), static_cast<int>(this->msgbus_endpoint().length()), |
| 7658 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7659 | "dmi.GetMsgBusEndpointResponse.msgbus_endpoint"); |
| 7660 | target = |
| 7661 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7662 | 3, this->msgbus_endpoint(), target); |
| 7663 | } |
| 7664 | |
| 7665 | // string reason_detail = 4; |
| 7666 | if (this->reason_detail().size() > 0) { |
| 7667 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7668 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 7669 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 7670 | "dmi.GetMsgBusEndpointResponse.reason_detail"); |
| 7671 | target = |
| 7672 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 7673 | 4, this->reason_detail(), target); |
| 7674 | } |
| 7675 | |
| 7676 | if (_internal_metadata_.have_unknown_fields()) { |
| 7677 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 7678 | _internal_metadata_.unknown_fields(), target); |
| 7679 | } |
| 7680 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetMsgBusEndpointResponse) |
| 7681 | return target; |
| 7682 | } |
| 7683 | |
| 7684 | size_t GetMsgBusEndpointResponse::ByteSizeLong() const { |
| 7685 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetMsgBusEndpointResponse) |
| 7686 | size_t total_size = 0; |
| 7687 | |
| 7688 | if (_internal_metadata_.have_unknown_fields()) { |
| 7689 | total_size += |
| 7690 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 7691 | _internal_metadata_.unknown_fields()); |
| 7692 | } |
| 7693 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7694 | // Prevent compiler warnings about cached_has_bits being unused |
| 7695 | (void) cached_has_bits; |
| 7696 | |
| 7697 | // string msgbus_endpoint = 3; |
| 7698 | if (this->msgbus_endpoint().size() > 0) { |
| 7699 | total_size += 1 + |
| 7700 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7701 | this->msgbus_endpoint()); |
| 7702 | } |
| 7703 | |
| 7704 | // string reason_detail = 4; |
| 7705 | if (this->reason_detail().size() > 0) { |
| 7706 | total_size += 1 + |
| 7707 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 7708 | this->reason_detail()); |
| 7709 | } |
| 7710 | |
| 7711 | // .dmi.Status status = 1; |
| 7712 | if (this->status() != 0) { |
| 7713 | total_size += 1 + |
| 7714 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 7715 | } |
| 7716 | |
| 7717 | // .dmi.GetMsgBusEndpointResponse.Reason reason = 2; |
| 7718 | if (this->reason() != 0) { |
| 7719 | total_size += 1 + |
| 7720 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 7721 | } |
| 7722 | |
| 7723 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 7724 | SetCachedSize(cached_size); |
| 7725 | return total_size; |
| 7726 | } |
| 7727 | |
| 7728 | void GetMsgBusEndpointResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 7729 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7730 | GOOGLE_DCHECK_NE(&from, this); |
| 7731 | const GetMsgBusEndpointResponse* source = |
| 7732 | ::google::protobuf::DynamicCastToGenerated<GetMsgBusEndpointResponse>( |
| 7733 | &from); |
| 7734 | if (source == nullptr) { |
| 7735 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetMsgBusEndpointResponse) |
| 7736 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 7737 | } else { |
| 7738 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetMsgBusEndpointResponse) |
| 7739 | MergeFrom(*source); |
| 7740 | } |
| 7741 | } |
| 7742 | |
| 7743 | void GetMsgBusEndpointResponse::MergeFrom(const GetMsgBusEndpointResponse& from) { |
| 7744 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetMsgBusEndpointResponse) |
| 7745 | GOOGLE_DCHECK_NE(&from, this); |
| 7746 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7747 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7748 | (void) cached_has_bits; |
| 7749 | |
| 7750 | if (from.msgbus_endpoint().size() > 0) { |
| 7751 | |
| 7752 | msgbus_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.msgbus_endpoint_); |
| 7753 | } |
| 7754 | if (from.reason_detail().size() > 0) { |
| 7755 | |
| 7756 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 7757 | } |
| 7758 | if (from.status() != 0) { |
| 7759 | set_status(from.status()); |
| 7760 | } |
| 7761 | if (from.reason() != 0) { |
| 7762 | set_reason(from.reason()); |
| 7763 | } |
| 7764 | } |
| 7765 | |
| 7766 | void GetMsgBusEndpointResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 7767 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7768 | if (&from == this) return; |
| 7769 | Clear(); |
| 7770 | MergeFrom(from); |
| 7771 | } |
| 7772 | |
| 7773 | void GetMsgBusEndpointResponse::CopyFrom(const GetMsgBusEndpointResponse& from) { |
| 7774 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetMsgBusEndpointResponse) |
| 7775 | if (&from == this) return; |
| 7776 | Clear(); |
| 7777 | MergeFrom(from); |
| 7778 | } |
| 7779 | |
| 7780 | bool GetMsgBusEndpointResponse::IsInitialized() const { |
| 7781 | return true; |
| 7782 | } |
| 7783 | |
| 7784 | void GetMsgBusEndpointResponse::Swap(GetMsgBusEndpointResponse* other) { |
| 7785 | if (other == this) return; |
| 7786 | InternalSwap(other); |
| 7787 | } |
| 7788 | void GetMsgBusEndpointResponse::InternalSwap(GetMsgBusEndpointResponse* other) { |
| 7789 | using std::swap; |
| 7790 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 7791 | msgbus_endpoint_.Swap(&other->msgbus_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7792 | GetArenaNoVirtual()); |
| 7793 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 7794 | GetArenaNoVirtual()); |
| 7795 | swap(status_, other->status_); |
| 7796 | swap(reason_, other->reason_); |
| 7797 | } |
| 7798 | |
| 7799 | ::google::protobuf::Metadata GetMsgBusEndpointResponse::GetMetadata() const { |
| 7800 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 7801 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 7802 | } |
| 7803 | |
| 7804 | |
| 7805 | // =================================================================== |
| 7806 | |
| 7807 | void EntitiesLogLevel::InitAsDefaultInstance() { |
| 7808 | } |
| 7809 | class EntitiesLogLevel::HasBitSetters { |
| 7810 | public: |
| 7811 | }; |
| 7812 | |
| 7813 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7814 | const int EntitiesLogLevel::kLogLevelFieldNumber; |
| 7815 | const int EntitiesLogLevel::kEntitiesFieldNumber; |
| 7816 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 7817 | |
| 7818 | EntitiesLogLevel::EntitiesLogLevel() |
| 7819 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 7820 | SharedCtor(); |
| 7821 | // @@protoc_insertion_point(constructor:dmi.EntitiesLogLevel) |
| 7822 | } |
| 7823 | EntitiesLogLevel::EntitiesLogLevel(const EntitiesLogLevel& from) |
| 7824 | : ::google::protobuf::Message(), |
| 7825 | _internal_metadata_(nullptr), |
| 7826 | entities_(from.entities_) { |
| 7827 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 7828 | loglevel_ = from.loglevel_; |
| 7829 | // @@protoc_insertion_point(copy_constructor:dmi.EntitiesLogLevel) |
| 7830 | } |
| 7831 | |
| 7832 | void EntitiesLogLevel::SharedCtor() { |
| 7833 | ::google::protobuf::internal::InitSCC( |
| 7834 | &scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7835 | loglevel_ = 0; |
| 7836 | } |
| 7837 | |
| 7838 | EntitiesLogLevel::~EntitiesLogLevel() { |
| 7839 | // @@protoc_insertion_point(destructor:dmi.EntitiesLogLevel) |
| 7840 | SharedDtor(); |
| 7841 | } |
| 7842 | |
| 7843 | void EntitiesLogLevel::SharedDtor() { |
| 7844 | } |
| 7845 | |
| 7846 | void EntitiesLogLevel::SetCachedSize(int size) const { |
| 7847 | _cached_size_.Set(size); |
| 7848 | } |
| 7849 | const EntitiesLogLevel& EntitiesLogLevel::default_instance() { |
| 7850 | ::google::protobuf::internal::InitSCC(&::scc_info_EntitiesLogLevel_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 7851 | return *internal_default_instance(); |
| 7852 | } |
| 7853 | |
| 7854 | |
| 7855 | void EntitiesLogLevel::Clear() { |
| 7856 | // @@protoc_insertion_point(message_clear_start:dmi.EntitiesLogLevel) |
| 7857 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7858 | // Prevent compiler warnings about cached_has_bits being unused |
| 7859 | (void) cached_has_bits; |
| 7860 | |
| 7861 | entities_.Clear(); |
| 7862 | loglevel_ = 0; |
| 7863 | _internal_metadata_.Clear(); |
| 7864 | } |
| 7865 | |
| 7866 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7867 | const char* EntitiesLogLevel::_InternalParse(const char* begin, const char* end, void* object, |
| 7868 | ::google::protobuf::internal::ParseContext* ctx) { |
| 7869 | auto msg = static_cast<EntitiesLogLevel*>(object); |
| 7870 | ::google::protobuf::int32 size; (void)size; |
| 7871 | int depth; (void)depth; |
| 7872 | ::google::protobuf::uint32 tag; |
| 7873 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 7874 | auto ptr = begin; |
| 7875 | while (ptr < end) { |
| 7876 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 7877 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7878 | switch (tag >> 3) { |
| 7879 | // .dmi.LogLevel logLevel = 1; |
| 7880 | case 1: { |
| 7881 | if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; |
| 7882 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 7883 | msg->set_loglevel(static_cast<::dmi::LogLevel>(val)); |
| 7884 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7885 | break; |
| 7886 | } |
| 7887 | // repeated string entities = 2; |
| 7888 | case 2: { |
| 7889 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 7890 | do { |
| 7891 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 7892 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 7893 | ctx->extra_parse_data().SetFieldName("dmi.EntitiesLogLevel.entities"); |
| 7894 | object = msg->add_entities(); |
| 7895 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 7896 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 7897 | goto string_till_end; |
| 7898 | } |
| 7899 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 7900 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 7901 | ptr += size; |
| 7902 | if (ptr >= end) break; |
| 7903 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 7904 | break; |
| 7905 | } |
| 7906 | default: { |
| 7907 | handle_unusual: |
| 7908 | if ((tag & 7) == 4 || tag == 0) { |
| 7909 | ctx->EndGroup(tag); |
| 7910 | return ptr; |
| 7911 | } |
| 7912 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 7913 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 7914 | ptr = res.first; |
| 7915 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 7916 | if (res.second) return ptr; |
| 7917 | } |
| 7918 | } // switch |
| 7919 | } // while |
| 7920 | return ptr; |
| 7921 | string_till_end: |
| 7922 | static_cast<::std::string*>(object)->clear(); |
| 7923 | static_cast<::std::string*>(object)->reserve(size); |
| 7924 | goto len_delim_till_end; |
| 7925 | len_delim_till_end: |
| 7926 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 7927 | {parser_till_end, object}, size); |
| 7928 | } |
| 7929 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7930 | bool EntitiesLogLevel::MergePartialFromCodedStream( |
| 7931 | ::google::protobuf::io::CodedInputStream* input) { |
| 7932 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 7933 | ::google::protobuf::uint32 tag; |
| 7934 | // @@protoc_insertion_point(parse_start:dmi.EntitiesLogLevel) |
| 7935 | for (;;) { |
| 7936 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 7937 | tag = p.first; |
| 7938 | if (!p.second) goto handle_unusual; |
| 7939 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 7940 | // .dmi.LogLevel logLevel = 1; |
| 7941 | case 1: { |
| 7942 | if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { |
| 7943 | int value = 0; |
| 7944 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 7945 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 7946 | input, &value))); |
| 7947 | set_loglevel(static_cast< ::dmi::LogLevel >(value)); |
| 7948 | } else { |
| 7949 | goto handle_unusual; |
| 7950 | } |
| 7951 | break; |
| 7952 | } |
| 7953 | |
| 7954 | // repeated string entities = 2; |
| 7955 | case 2: { |
| 7956 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 7957 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 7958 | input, this->add_entities())); |
| 7959 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 7960 | this->entities(this->entities_size() - 1).data(), |
| 7961 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 7962 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 7963 | "dmi.EntitiesLogLevel.entities")); |
| 7964 | } else { |
| 7965 | goto handle_unusual; |
| 7966 | } |
| 7967 | break; |
| 7968 | } |
| 7969 | |
| 7970 | default: { |
| 7971 | handle_unusual: |
| 7972 | if (tag == 0) { |
| 7973 | goto success; |
| 7974 | } |
| 7975 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 7976 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 7977 | break; |
| 7978 | } |
| 7979 | } |
| 7980 | } |
| 7981 | success: |
| 7982 | // @@protoc_insertion_point(parse_success:dmi.EntitiesLogLevel) |
| 7983 | return true; |
| 7984 | failure: |
| 7985 | // @@protoc_insertion_point(parse_failure:dmi.EntitiesLogLevel) |
| 7986 | return false; |
| 7987 | #undef DO_ |
| 7988 | } |
| 7989 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 7990 | |
| 7991 | void EntitiesLogLevel::SerializeWithCachedSizes( |
| 7992 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 7993 | // @@protoc_insertion_point(serialize_start:dmi.EntitiesLogLevel) |
| 7994 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 7995 | (void) cached_has_bits; |
| 7996 | |
| 7997 | // .dmi.LogLevel logLevel = 1; |
| 7998 | if (this->loglevel() != 0) { |
| 7999 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8000 | 1, this->loglevel(), output); |
| 8001 | } |
| 8002 | |
| 8003 | // repeated string entities = 2; |
| 8004 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8005 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8006 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8007 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8008 | "dmi.EntitiesLogLevel.entities"); |
| 8009 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 8010 | 2, this->entities(i), output); |
| 8011 | } |
| 8012 | |
| 8013 | if (_internal_metadata_.have_unknown_fields()) { |
| 8014 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8015 | _internal_metadata_.unknown_fields(), output); |
| 8016 | } |
| 8017 | // @@protoc_insertion_point(serialize_end:dmi.EntitiesLogLevel) |
| 8018 | } |
| 8019 | |
| 8020 | ::google::protobuf::uint8* EntitiesLogLevel::InternalSerializeWithCachedSizesToArray( |
| 8021 | ::google::protobuf::uint8* target) const { |
| 8022 | // @@protoc_insertion_point(serialize_to_array_start:dmi.EntitiesLogLevel) |
| 8023 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8024 | (void) cached_has_bits; |
| 8025 | |
| 8026 | // .dmi.LogLevel logLevel = 1; |
| 8027 | if (this->loglevel() != 0) { |
| 8028 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8029 | 1, this->loglevel(), target); |
| 8030 | } |
| 8031 | |
| 8032 | // repeated string entities = 2; |
| 8033 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8034 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8035 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 8036 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8037 | "dmi.EntitiesLogLevel.entities"); |
| 8038 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8039 | WriteStringToArray(2, this->entities(i), target); |
| 8040 | } |
| 8041 | |
| 8042 | if (_internal_metadata_.have_unknown_fields()) { |
| 8043 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8044 | _internal_metadata_.unknown_fields(), target); |
| 8045 | } |
| 8046 | // @@protoc_insertion_point(serialize_to_array_end:dmi.EntitiesLogLevel) |
| 8047 | return target; |
| 8048 | } |
| 8049 | |
| 8050 | size_t EntitiesLogLevel::ByteSizeLong() const { |
| 8051 | // @@protoc_insertion_point(message_byte_size_start:dmi.EntitiesLogLevel) |
| 8052 | size_t total_size = 0; |
| 8053 | |
| 8054 | if (_internal_metadata_.have_unknown_fields()) { |
| 8055 | total_size += |
| 8056 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8057 | _internal_metadata_.unknown_fields()); |
| 8058 | } |
| 8059 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8060 | // Prevent compiler warnings about cached_has_bits being unused |
| 8061 | (void) cached_has_bits; |
| 8062 | |
| 8063 | // repeated string entities = 2; |
| 8064 | total_size += 1 * |
| 8065 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 8066 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 8067 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8068 | this->entities(i)); |
| 8069 | } |
| 8070 | |
| 8071 | // .dmi.LogLevel logLevel = 1; |
| 8072 | if (this->loglevel() != 0) { |
| 8073 | total_size += 1 + |
| 8074 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->loglevel()); |
| 8075 | } |
| 8076 | |
| 8077 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8078 | SetCachedSize(cached_size); |
| 8079 | return total_size; |
| 8080 | } |
| 8081 | |
| 8082 | void EntitiesLogLevel::MergeFrom(const ::google::protobuf::Message& from) { |
| 8083 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.EntitiesLogLevel) |
| 8084 | GOOGLE_DCHECK_NE(&from, this); |
| 8085 | const EntitiesLogLevel* source = |
| 8086 | ::google::protobuf::DynamicCastToGenerated<EntitiesLogLevel>( |
| 8087 | &from); |
| 8088 | if (source == nullptr) { |
| 8089 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.EntitiesLogLevel) |
| 8090 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8091 | } else { |
| 8092 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.EntitiesLogLevel) |
| 8093 | MergeFrom(*source); |
| 8094 | } |
| 8095 | } |
| 8096 | |
| 8097 | void EntitiesLogLevel::MergeFrom(const EntitiesLogLevel& from) { |
| 8098 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.EntitiesLogLevel) |
| 8099 | GOOGLE_DCHECK_NE(&from, this); |
| 8100 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8101 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8102 | (void) cached_has_bits; |
| 8103 | |
| 8104 | entities_.MergeFrom(from.entities_); |
| 8105 | if (from.loglevel() != 0) { |
| 8106 | set_loglevel(from.loglevel()); |
| 8107 | } |
| 8108 | } |
| 8109 | |
| 8110 | void EntitiesLogLevel::CopyFrom(const ::google::protobuf::Message& from) { |
| 8111 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.EntitiesLogLevel) |
| 8112 | if (&from == this) return; |
| 8113 | Clear(); |
| 8114 | MergeFrom(from); |
| 8115 | } |
| 8116 | |
| 8117 | void EntitiesLogLevel::CopyFrom(const EntitiesLogLevel& from) { |
| 8118 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.EntitiesLogLevel) |
| 8119 | if (&from == this) return; |
| 8120 | Clear(); |
| 8121 | MergeFrom(from); |
| 8122 | } |
| 8123 | |
| 8124 | bool EntitiesLogLevel::IsInitialized() const { |
| 8125 | return true; |
| 8126 | } |
| 8127 | |
| 8128 | void EntitiesLogLevel::Swap(EntitiesLogLevel* other) { |
| 8129 | if (other == this) return; |
| 8130 | InternalSwap(other); |
| 8131 | } |
| 8132 | void EntitiesLogLevel::InternalSwap(EntitiesLogLevel* other) { |
| 8133 | using std::swap; |
| 8134 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8135 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 8136 | swap(loglevel_, other->loglevel_); |
| 8137 | } |
| 8138 | |
| 8139 | ::google::protobuf::Metadata EntitiesLogLevel::GetMetadata() const { |
| 8140 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8141 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8142 | } |
| 8143 | |
| 8144 | |
| 8145 | // =================================================================== |
| 8146 | |
| 8147 | void SetLogLevelRequest::InitAsDefaultInstance() { |
| 8148 | ::dmi::_SetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8149 | ::dmi::Uuid::internal_default_instance()); |
| 8150 | } |
| 8151 | class SetLogLevelRequest::HasBitSetters { |
| 8152 | public: |
| 8153 | static const ::dmi::Uuid& device_uuid(const SetLogLevelRequest* msg); |
| 8154 | }; |
| 8155 | |
| 8156 | const ::dmi::Uuid& |
| 8157 | SetLogLevelRequest::HasBitSetters::device_uuid(const SetLogLevelRequest* msg) { |
| 8158 | return *msg->device_uuid_; |
| 8159 | } |
| 8160 | void SetLogLevelRequest::clear_device_uuid() { |
| 8161 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8162 | delete device_uuid_; |
| 8163 | } |
| 8164 | device_uuid_ = nullptr; |
| 8165 | } |
| 8166 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8167 | const int SetLogLevelRequest::kDeviceUuidFieldNumber; |
| 8168 | const int SetLogLevelRequest::kLoglevelsFieldNumber; |
| 8169 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8170 | |
| 8171 | SetLogLevelRequest::SetLogLevelRequest() |
| 8172 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8173 | SharedCtor(); |
| 8174 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelRequest) |
| 8175 | } |
| 8176 | SetLogLevelRequest::SetLogLevelRequest(const SetLogLevelRequest& from) |
| 8177 | : ::google::protobuf::Message(), |
| 8178 | _internal_metadata_(nullptr), |
| 8179 | loglevels_(from.loglevels_) { |
| 8180 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8181 | if (from.has_device_uuid()) { |
| 8182 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8183 | } else { |
| 8184 | device_uuid_ = nullptr; |
| 8185 | } |
| 8186 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelRequest) |
| 8187 | } |
| 8188 | |
| 8189 | void SetLogLevelRequest::SharedCtor() { |
| 8190 | ::google::protobuf::internal::InitSCC( |
| 8191 | &scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8192 | device_uuid_ = nullptr; |
| 8193 | } |
| 8194 | |
| 8195 | SetLogLevelRequest::~SetLogLevelRequest() { |
| 8196 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelRequest) |
| 8197 | SharedDtor(); |
| 8198 | } |
| 8199 | |
| 8200 | void SetLogLevelRequest::SharedDtor() { |
| 8201 | if (this != internal_default_instance()) delete device_uuid_; |
| 8202 | } |
| 8203 | |
| 8204 | void SetLogLevelRequest::SetCachedSize(int size) const { |
| 8205 | _cached_size_.Set(size); |
| 8206 | } |
| 8207 | const SetLogLevelRequest& SetLogLevelRequest::default_instance() { |
| 8208 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8209 | return *internal_default_instance(); |
| 8210 | } |
| 8211 | |
| 8212 | |
| 8213 | void SetLogLevelRequest::Clear() { |
| 8214 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelRequest) |
| 8215 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8216 | // Prevent compiler warnings about cached_has_bits being unused |
| 8217 | (void) cached_has_bits; |
| 8218 | |
| 8219 | loglevels_.Clear(); |
| 8220 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8221 | delete device_uuid_; |
| 8222 | } |
| 8223 | device_uuid_ = nullptr; |
| 8224 | _internal_metadata_.Clear(); |
| 8225 | } |
| 8226 | |
| 8227 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8228 | const char* SetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 8229 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8230 | auto msg = static_cast<SetLogLevelRequest*>(object); |
| 8231 | ::google::protobuf::int32 size; (void)size; |
| 8232 | int depth; (void)depth; |
| 8233 | ::google::protobuf::uint32 tag; |
| 8234 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8235 | auto ptr = begin; |
| 8236 | while (ptr < end) { |
| 8237 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8238 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8239 | switch (tag >> 3) { |
| 8240 | // .dmi.Uuid device_uuid = 1; |
| 8241 | case 1: { |
| 8242 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8243 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8244 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8245 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8246 | object = msg->mutable_device_uuid(); |
| 8247 | if (size > end - ptr) goto len_delim_till_end; |
| 8248 | ptr += size; |
| 8249 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8250 | {parser_till_end, object}, ptr - size, ptr)); |
| 8251 | break; |
| 8252 | } |
| 8253 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8254 | case 2: { |
| 8255 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 8256 | do { |
| 8257 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8258 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8259 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 8260 | object = msg->add_loglevels(); |
| 8261 | if (size > end - ptr) goto len_delim_till_end; |
| 8262 | ptr += size; |
| 8263 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8264 | {parser_till_end, object}, ptr - size, ptr)); |
| 8265 | if (ptr >= end) break; |
| 8266 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 8267 | break; |
| 8268 | } |
| 8269 | default: { |
| 8270 | handle_unusual: |
| 8271 | if ((tag & 7) == 4 || tag == 0) { |
| 8272 | ctx->EndGroup(tag); |
| 8273 | return ptr; |
| 8274 | } |
| 8275 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8276 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8277 | ptr = res.first; |
| 8278 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8279 | if (res.second) return ptr; |
| 8280 | } |
| 8281 | } // switch |
| 8282 | } // while |
| 8283 | return ptr; |
| 8284 | len_delim_till_end: |
| 8285 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8286 | {parser_till_end, object}, size); |
| 8287 | } |
| 8288 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8289 | bool SetLogLevelRequest::MergePartialFromCodedStream( |
| 8290 | ::google::protobuf::io::CodedInputStream* input) { |
| 8291 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8292 | ::google::protobuf::uint32 tag; |
| 8293 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelRequest) |
| 8294 | for (;;) { |
| 8295 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8296 | tag = p.first; |
| 8297 | if (!p.second) goto handle_unusual; |
| 8298 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8299 | // .dmi.Uuid device_uuid = 1; |
| 8300 | case 1: { |
| 8301 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8302 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8303 | input, mutable_device_uuid())); |
| 8304 | } else { |
| 8305 | goto handle_unusual; |
| 8306 | } |
| 8307 | break; |
| 8308 | } |
| 8309 | |
| 8310 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8311 | case 2: { |
| 8312 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 8313 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8314 | input, add_loglevels())); |
| 8315 | } else { |
| 8316 | goto handle_unusual; |
| 8317 | } |
| 8318 | break; |
| 8319 | } |
| 8320 | |
| 8321 | default: { |
| 8322 | handle_unusual: |
| 8323 | if (tag == 0) { |
| 8324 | goto success; |
| 8325 | } |
| 8326 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8327 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8328 | break; |
| 8329 | } |
| 8330 | } |
| 8331 | } |
| 8332 | success: |
| 8333 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelRequest) |
| 8334 | return true; |
| 8335 | failure: |
| 8336 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelRequest) |
| 8337 | return false; |
| 8338 | #undef DO_ |
| 8339 | } |
| 8340 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8341 | |
| 8342 | void SetLogLevelRequest::SerializeWithCachedSizes( |
| 8343 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8344 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelRequest) |
| 8345 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8346 | (void) cached_has_bits; |
| 8347 | |
| 8348 | // .dmi.Uuid device_uuid = 1; |
| 8349 | if (this->has_device_uuid()) { |
| 8350 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8351 | 1, HasBitSetters::device_uuid(this), output); |
| 8352 | } |
| 8353 | |
| 8354 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8355 | for (unsigned int i = 0, |
| 8356 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8357 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8358 | 2, |
| 8359 | this->loglevels(static_cast<int>(i)), |
| 8360 | output); |
| 8361 | } |
| 8362 | |
| 8363 | if (_internal_metadata_.have_unknown_fields()) { |
| 8364 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8365 | _internal_metadata_.unknown_fields(), output); |
| 8366 | } |
| 8367 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelRequest) |
| 8368 | } |
| 8369 | |
| 8370 | ::google::protobuf::uint8* SetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 8371 | ::google::protobuf::uint8* target) const { |
| 8372 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelRequest) |
| 8373 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8374 | (void) cached_has_bits; |
| 8375 | |
| 8376 | // .dmi.Uuid device_uuid = 1; |
| 8377 | if (this->has_device_uuid()) { |
| 8378 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8379 | InternalWriteMessageToArray( |
| 8380 | 1, HasBitSetters::device_uuid(this), target); |
| 8381 | } |
| 8382 | |
| 8383 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8384 | for (unsigned int i = 0, |
| 8385 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 8386 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8387 | InternalWriteMessageToArray( |
| 8388 | 2, this->loglevels(static_cast<int>(i)), target); |
| 8389 | } |
| 8390 | |
| 8391 | if (_internal_metadata_.have_unknown_fields()) { |
| 8392 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8393 | _internal_metadata_.unknown_fields(), target); |
| 8394 | } |
| 8395 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelRequest) |
| 8396 | return target; |
| 8397 | } |
| 8398 | |
| 8399 | size_t SetLogLevelRequest::ByteSizeLong() const { |
| 8400 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelRequest) |
| 8401 | size_t total_size = 0; |
| 8402 | |
| 8403 | if (_internal_metadata_.have_unknown_fields()) { |
| 8404 | total_size += |
| 8405 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8406 | _internal_metadata_.unknown_fields()); |
| 8407 | } |
| 8408 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8409 | // Prevent compiler warnings about cached_has_bits being unused |
| 8410 | (void) cached_has_bits; |
| 8411 | |
| 8412 | // repeated .dmi.EntitiesLogLevel loglevels = 2; |
| 8413 | { |
| 8414 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 8415 | total_size += 1UL * count; |
| 8416 | for (unsigned int i = 0; i < count; i++) { |
| 8417 | total_size += |
| 8418 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8419 | this->loglevels(static_cast<int>(i))); |
| 8420 | } |
| 8421 | } |
| 8422 | |
| 8423 | // .dmi.Uuid device_uuid = 1; |
| 8424 | if (this->has_device_uuid()) { |
| 8425 | total_size += 1 + |
| 8426 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8427 | *device_uuid_); |
| 8428 | } |
| 8429 | |
| 8430 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8431 | SetCachedSize(cached_size); |
| 8432 | return total_size; |
| 8433 | } |
| 8434 | |
| 8435 | void SetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 8436 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelRequest) |
| 8437 | GOOGLE_DCHECK_NE(&from, this); |
| 8438 | const SetLogLevelRequest* source = |
| 8439 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelRequest>( |
| 8440 | &from); |
| 8441 | if (source == nullptr) { |
| 8442 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelRequest) |
| 8443 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8444 | } else { |
| 8445 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelRequest) |
| 8446 | MergeFrom(*source); |
| 8447 | } |
| 8448 | } |
| 8449 | |
| 8450 | void SetLogLevelRequest::MergeFrom(const SetLogLevelRequest& from) { |
| 8451 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelRequest) |
| 8452 | GOOGLE_DCHECK_NE(&from, this); |
| 8453 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8454 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8455 | (void) cached_has_bits; |
| 8456 | |
| 8457 | loglevels_.MergeFrom(from.loglevels_); |
| 8458 | if (from.has_device_uuid()) { |
| 8459 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 8460 | } |
| 8461 | } |
| 8462 | |
| 8463 | void SetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 8464 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelRequest) |
| 8465 | if (&from == this) return; |
| 8466 | Clear(); |
| 8467 | MergeFrom(from); |
| 8468 | } |
| 8469 | |
| 8470 | void SetLogLevelRequest::CopyFrom(const SetLogLevelRequest& from) { |
| 8471 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelRequest) |
| 8472 | if (&from == this) return; |
| 8473 | Clear(); |
| 8474 | MergeFrom(from); |
| 8475 | } |
| 8476 | |
| 8477 | bool SetLogLevelRequest::IsInitialized() const { |
| 8478 | return true; |
| 8479 | } |
| 8480 | |
| 8481 | void SetLogLevelRequest::Swap(SetLogLevelRequest* other) { |
| 8482 | if (other == this) return; |
| 8483 | InternalSwap(other); |
| 8484 | } |
| 8485 | void SetLogLevelRequest::InternalSwap(SetLogLevelRequest* other) { |
| 8486 | using std::swap; |
| 8487 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8488 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 8489 | swap(device_uuid_, other->device_uuid_); |
| 8490 | } |
| 8491 | |
| 8492 | ::google::protobuf::Metadata SetLogLevelRequest::GetMetadata() const { |
| 8493 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8494 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8495 | } |
| 8496 | |
| 8497 | |
| 8498 | // =================================================================== |
| 8499 | |
| 8500 | void SetLogLevelResponse::InitAsDefaultInstance() { |
| 8501 | ::dmi::_SetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8502 | ::dmi::Uuid::internal_default_instance()); |
| 8503 | } |
| 8504 | class SetLogLevelResponse::HasBitSetters { |
| 8505 | public: |
| 8506 | static const ::dmi::Uuid& device_uuid(const SetLogLevelResponse* msg); |
| 8507 | }; |
| 8508 | |
| 8509 | const ::dmi::Uuid& |
| 8510 | SetLogLevelResponse::HasBitSetters::device_uuid(const SetLogLevelResponse* msg) { |
| 8511 | return *msg->device_uuid_; |
| 8512 | } |
| 8513 | void SetLogLevelResponse::clear_device_uuid() { |
| 8514 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8515 | delete device_uuid_; |
| 8516 | } |
| 8517 | device_uuid_ = nullptr; |
| 8518 | } |
| 8519 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8520 | const int SetLogLevelResponse::kDeviceUuidFieldNumber; |
| 8521 | const int SetLogLevelResponse::kStatusFieldNumber; |
| 8522 | const int SetLogLevelResponse::kReasonFieldNumber; |
| 8523 | const int SetLogLevelResponse::kReasonDetailFieldNumber; |
| 8524 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8525 | |
| 8526 | SetLogLevelResponse::SetLogLevelResponse() |
| 8527 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8528 | SharedCtor(); |
| 8529 | // @@protoc_insertion_point(constructor:dmi.SetLogLevelResponse) |
| 8530 | } |
| 8531 | SetLogLevelResponse::SetLogLevelResponse(const SetLogLevelResponse& from) |
| 8532 | : ::google::protobuf::Message(), |
| 8533 | _internal_metadata_(nullptr) { |
| 8534 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8535 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8536 | if (from.reason_detail().size() > 0) { |
| 8537 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 8538 | } |
| 8539 | if (from.has_device_uuid()) { |
| 8540 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 8541 | } else { |
| 8542 | device_uuid_ = nullptr; |
| 8543 | } |
| 8544 | ::memcpy(&status_, &from.status_, |
| 8545 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 8546 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8547 | // @@protoc_insertion_point(copy_constructor:dmi.SetLogLevelResponse) |
| 8548 | } |
| 8549 | |
| 8550 | void SetLogLevelResponse::SharedCtor() { |
| 8551 | ::google::protobuf::internal::InitSCC( |
| 8552 | &scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8553 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8554 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 8555 | reinterpret_cast<char*>(&reason_) - |
| 8556 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 8557 | } |
| 8558 | |
| 8559 | SetLogLevelResponse::~SetLogLevelResponse() { |
| 8560 | // @@protoc_insertion_point(destructor:dmi.SetLogLevelResponse) |
| 8561 | SharedDtor(); |
| 8562 | } |
| 8563 | |
| 8564 | void SetLogLevelResponse::SharedDtor() { |
| 8565 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8566 | if (this != internal_default_instance()) delete device_uuid_; |
| 8567 | } |
| 8568 | |
| 8569 | void SetLogLevelResponse::SetCachedSize(int size) const { |
| 8570 | _cached_size_.Set(size); |
| 8571 | } |
| 8572 | const SetLogLevelResponse& SetLogLevelResponse::default_instance() { |
| 8573 | ::google::protobuf::internal::InitSCC(&::scc_info_SetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 8574 | return *internal_default_instance(); |
| 8575 | } |
| 8576 | |
| 8577 | |
| 8578 | void SetLogLevelResponse::Clear() { |
| 8579 | // @@protoc_insertion_point(message_clear_start:dmi.SetLogLevelResponse) |
| 8580 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8581 | // Prevent compiler warnings about cached_has_bits being unused |
| 8582 | (void) cached_has_bits; |
| 8583 | |
| 8584 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 8585 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8586 | delete device_uuid_; |
| 8587 | } |
| 8588 | device_uuid_ = nullptr; |
| 8589 | ::memset(&status_, 0, static_cast<size_t>( |
| 8590 | reinterpret_cast<char*>(&reason_) - |
| 8591 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 8592 | _internal_metadata_.Clear(); |
| 8593 | } |
| 8594 | |
| 8595 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8596 | const char* SetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 8597 | ::google::protobuf::internal::ParseContext* ctx) { |
| 8598 | auto msg = static_cast<SetLogLevelResponse*>(object); |
| 8599 | ::google::protobuf::int32 size; (void)size; |
| 8600 | int depth; (void)depth; |
| 8601 | ::google::protobuf::uint32 tag; |
| 8602 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 8603 | auto ptr = begin; |
| 8604 | while (ptr < end) { |
| 8605 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 8606 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8607 | switch (tag >> 3) { |
| 8608 | // .dmi.Uuid device_uuid = 1; |
| 8609 | case 1: { |
| 8610 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 8611 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8612 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8613 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 8614 | object = msg->mutable_device_uuid(); |
| 8615 | if (size > end - ptr) goto len_delim_till_end; |
| 8616 | ptr += size; |
| 8617 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 8618 | {parser_till_end, object}, ptr - size, ptr)); |
| 8619 | break; |
| 8620 | } |
| 8621 | // .dmi.Status status = 2; |
| 8622 | case 2: { |
| 8623 | if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; |
| 8624 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8625 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 8626 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8627 | break; |
| 8628 | } |
| 8629 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8630 | case 3: { |
| 8631 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 8632 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 8633 | msg->set_reason(static_cast<::dmi::SetLogLevelResponse_Reason>(val)); |
| 8634 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8635 | break; |
| 8636 | } |
| 8637 | // string reason_detail = 4; |
| 8638 | case 4: { |
| 8639 | if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; |
| 8640 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 8641 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 8642 | ctx->extra_parse_data().SetFieldName("dmi.SetLogLevelResponse.reason_detail"); |
| 8643 | object = msg->mutable_reason_detail(); |
| 8644 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 8645 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 8646 | goto string_till_end; |
| 8647 | } |
| 8648 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 8649 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 8650 | ptr += size; |
| 8651 | break; |
| 8652 | } |
| 8653 | default: { |
| 8654 | handle_unusual: |
| 8655 | if ((tag & 7) == 4 || tag == 0) { |
| 8656 | ctx->EndGroup(tag); |
| 8657 | return ptr; |
| 8658 | } |
| 8659 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 8660 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 8661 | ptr = res.first; |
| 8662 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 8663 | if (res.second) return ptr; |
| 8664 | } |
| 8665 | } // switch |
| 8666 | } // while |
| 8667 | return ptr; |
| 8668 | string_till_end: |
| 8669 | static_cast<::std::string*>(object)->clear(); |
| 8670 | static_cast<::std::string*>(object)->reserve(size); |
| 8671 | goto len_delim_till_end; |
| 8672 | len_delim_till_end: |
| 8673 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 8674 | {parser_till_end, object}, size); |
| 8675 | } |
| 8676 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8677 | bool SetLogLevelResponse::MergePartialFromCodedStream( |
| 8678 | ::google::protobuf::io::CodedInputStream* input) { |
| 8679 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 8680 | ::google::protobuf::uint32 tag; |
| 8681 | // @@protoc_insertion_point(parse_start:dmi.SetLogLevelResponse) |
| 8682 | for (;;) { |
| 8683 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 8684 | tag = p.first; |
| 8685 | if (!p.second) goto handle_unusual; |
| 8686 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 8687 | // .dmi.Uuid device_uuid = 1; |
| 8688 | case 1: { |
| 8689 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 8690 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 8691 | input, mutable_device_uuid())); |
| 8692 | } else { |
| 8693 | goto handle_unusual; |
| 8694 | } |
| 8695 | break; |
| 8696 | } |
| 8697 | |
| 8698 | // .dmi.Status status = 2; |
| 8699 | case 2: { |
| 8700 | if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { |
| 8701 | int value = 0; |
| 8702 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8703 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8704 | input, &value))); |
| 8705 | set_status(static_cast< ::dmi::Status >(value)); |
| 8706 | } else { |
| 8707 | goto handle_unusual; |
| 8708 | } |
| 8709 | break; |
| 8710 | } |
| 8711 | |
| 8712 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8713 | case 3: { |
| 8714 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 8715 | int value = 0; |
| 8716 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 8717 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 8718 | input, &value))); |
| 8719 | set_reason(static_cast< ::dmi::SetLogLevelResponse_Reason >(value)); |
| 8720 | } else { |
| 8721 | goto handle_unusual; |
| 8722 | } |
| 8723 | break; |
| 8724 | } |
| 8725 | |
| 8726 | // string reason_detail = 4; |
| 8727 | case 4: { |
| 8728 | if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { |
| 8729 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 8730 | input, this->mutable_reason_detail())); |
| 8731 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8732 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8733 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 8734 | "dmi.SetLogLevelResponse.reason_detail")); |
| 8735 | } else { |
| 8736 | goto handle_unusual; |
| 8737 | } |
| 8738 | break; |
| 8739 | } |
| 8740 | |
| 8741 | default: { |
| 8742 | handle_unusual: |
| 8743 | if (tag == 0) { |
| 8744 | goto success; |
| 8745 | } |
| 8746 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 8747 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 8748 | break; |
| 8749 | } |
| 8750 | } |
| 8751 | } |
| 8752 | success: |
| 8753 | // @@protoc_insertion_point(parse_success:dmi.SetLogLevelResponse) |
| 8754 | return true; |
| 8755 | failure: |
| 8756 | // @@protoc_insertion_point(parse_failure:dmi.SetLogLevelResponse) |
| 8757 | return false; |
| 8758 | #undef DO_ |
| 8759 | } |
| 8760 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 8761 | |
| 8762 | void SetLogLevelResponse::SerializeWithCachedSizes( |
| 8763 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 8764 | // @@protoc_insertion_point(serialize_start:dmi.SetLogLevelResponse) |
| 8765 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8766 | (void) cached_has_bits; |
| 8767 | |
| 8768 | // .dmi.Uuid device_uuid = 1; |
| 8769 | if (this->has_device_uuid()) { |
| 8770 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 8771 | 1, HasBitSetters::device_uuid(this), output); |
| 8772 | } |
| 8773 | |
| 8774 | // .dmi.Status status = 2; |
| 8775 | if (this->status() != 0) { |
| 8776 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8777 | 2, this->status(), output); |
| 8778 | } |
| 8779 | |
| 8780 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8781 | if (this->reason() != 0) { |
| 8782 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 8783 | 3, this->reason(), output); |
| 8784 | } |
| 8785 | |
| 8786 | // string reason_detail = 4; |
| 8787 | if (this->reason_detail().size() > 0) { |
| 8788 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8789 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8790 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8791 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8792 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 8793 | 4, this->reason_detail(), output); |
| 8794 | } |
| 8795 | |
| 8796 | if (_internal_metadata_.have_unknown_fields()) { |
| 8797 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 8798 | _internal_metadata_.unknown_fields(), output); |
| 8799 | } |
| 8800 | // @@protoc_insertion_point(serialize_end:dmi.SetLogLevelResponse) |
| 8801 | } |
| 8802 | |
| 8803 | ::google::protobuf::uint8* SetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 8804 | ::google::protobuf::uint8* target) const { |
| 8805 | // @@protoc_insertion_point(serialize_to_array_start:dmi.SetLogLevelResponse) |
| 8806 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8807 | (void) cached_has_bits; |
| 8808 | |
| 8809 | // .dmi.Uuid device_uuid = 1; |
| 8810 | if (this->has_device_uuid()) { |
| 8811 | target = ::google::protobuf::internal::WireFormatLite:: |
| 8812 | InternalWriteMessageToArray( |
| 8813 | 1, HasBitSetters::device_uuid(this), target); |
| 8814 | } |
| 8815 | |
| 8816 | // .dmi.Status status = 2; |
| 8817 | if (this->status() != 0) { |
| 8818 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8819 | 2, this->status(), target); |
| 8820 | } |
| 8821 | |
| 8822 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8823 | if (this->reason() != 0) { |
| 8824 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 8825 | 3, this->reason(), target); |
| 8826 | } |
| 8827 | |
| 8828 | // string reason_detail = 4; |
| 8829 | if (this->reason_detail().size() > 0) { |
| 8830 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 8831 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 8832 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 8833 | "dmi.SetLogLevelResponse.reason_detail"); |
| 8834 | target = |
| 8835 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 8836 | 4, this->reason_detail(), target); |
| 8837 | } |
| 8838 | |
| 8839 | if (_internal_metadata_.have_unknown_fields()) { |
| 8840 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 8841 | _internal_metadata_.unknown_fields(), target); |
| 8842 | } |
| 8843 | // @@protoc_insertion_point(serialize_to_array_end:dmi.SetLogLevelResponse) |
| 8844 | return target; |
| 8845 | } |
| 8846 | |
| 8847 | size_t SetLogLevelResponse::ByteSizeLong() const { |
| 8848 | // @@protoc_insertion_point(message_byte_size_start:dmi.SetLogLevelResponse) |
| 8849 | size_t total_size = 0; |
| 8850 | |
| 8851 | if (_internal_metadata_.have_unknown_fields()) { |
| 8852 | total_size += |
| 8853 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 8854 | _internal_metadata_.unknown_fields()); |
| 8855 | } |
| 8856 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8857 | // Prevent compiler warnings about cached_has_bits being unused |
| 8858 | (void) cached_has_bits; |
| 8859 | |
| 8860 | // string reason_detail = 4; |
| 8861 | if (this->reason_detail().size() > 0) { |
| 8862 | total_size += 1 + |
| 8863 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 8864 | this->reason_detail()); |
| 8865 | } |
| 8866 | |
| 8867 | // .dmi.Uuid device_uuid = 1; |
| 8868 | if (this->has_device_uuid()) { |
| 8869 | total_size += 1 + |
| 8870 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 8871 | *device_uuid_); |
| 8872 | } |
| 8873 | |
| 8874 | // .dmi.Status status = 2; |
| 8875 | if (this->status() != 0) { |
| 8876 | total_size += 1 + |
| 8877 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 8878 | } |
| 8879 | |
| 8880 | // .dmi.SetLogLevelResponse.Reason reason = 3; |
| 8881 | if (this->reason() != 0) { |
| 8882 | total_size += 1 + |
| 8883 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 8884 | } |
| 8885 | |
| 8886 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 8887 | SetCachedSize(cached_size); |
| 8888 | return total_size; |
| 8889 | } |
| 8890 | |
| 8891 | void SetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 8892 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.SetLogLevelResponse) |
| 8893 | GOOGLE_DCHECK_NE(&from, this); |
| 8894 | const SetLogLevelResponse* source = |
| 8895 | ::google::protobuf::DynamicCastToGenerated<SetLogLevelResponse>( |
| 8896 | &from); |
| 8897 | if (source == nullptr) { |
| 8898 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.SetLogLevelResponse) |
| 8899 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 8900 | } else { |
| 8901 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.SetLogLevelResponse) |
| 8902 | MergeFrom(*source); |
| 8903 | } |
| 8904 | } |
| 8905 | |
| 8906 | void SetLogLevelResponse::MergeFrom(const SetLogLevelResponse& from) { |
| 8907 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.SetLogLevelResponse) |
| 8908 | GOOGLE_DCHECK_NE(&from, this); |
| 8909 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 8910 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 8911 | (void) cached_has_bits; |
| 8912 | |
| 8913 | if (from.reason_detail().size() > 0) { |
| 8914 | |
| 8915 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 8916 | } |
| 8917 | if (from.has_device_uuid()) { |
| 8918 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 8919 | } |
| 8920 | if (from.status() != 0) { |
| 8921 | set_status(from.status()); |
| 8922 | } |
| 8923 | if (from.reason() != 0) { |
| 8924 | set_reason(from.reason()); |
| 8925 | } |
| 8926 | } |
| 8927 | |
| 8928 | void SetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 8929 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.SetLogLevelResponse) |
| 8930 | if (&from == this) return; |
| 8931 | Clear(); |
| 8932 | MergeFrom(from); |
| 8933 | } |
| 8934 | |
| 8935 | void SetLogLevelResponse::CopyFrom(const SetLogLevelResponse& from) { |
| 8936 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.SetLogLevelResponse) |
| 8937 | if (&from == this) return; |
| 8938 | Clear(); |
| 8939 | MergeFrom(from); |
| 8940 | } |
| 8941 | |
| 8942 | bool SetLogLevelResponse::IsInitialized() const { |
| 8943 | return true; |
| 8944 | } |
| 8945 | |
| 8946 | void SetLogLevelResponse::Swap(SetLogLevelResponse* other) { |
| 8947 | if (other == this) return; |
| 8948 | InternalSwap(other); |
| 8949 | } |
| 8950 | void SetLogLevelResponse::InternalSwap(SetLogLevelResponse* other) { |
| 8951 | using std::swap; |
| 8952 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 8953 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 8954 | GetArenaNoVirtual()); |
| 8955 | swap(device_uuid_, other->device_uuid_); |
| 8956 | swap(status_, other->status_); |
| 8957 | swap(reason_, other->reason_); |
| 8958 | } |
| 8959 | |
| 8960 | ::google::protobuf::Metadata SetLogLevelResponse::GetMetadata() const { |
| 8961 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 8962 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 8963 | } |
| 8964 | |
| 8965 | |
| 8966 | // =================================================================== |
| 8967 | |
| 8968 | void GetLogLevelRequest::InitAsDefaultInstance() { |
| 8969 | ::dmi::_GetLogLevelRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 8970 | ::dmi::Uuid::internal_default_instance()); |
| 8971 | } |
| 8972 | class GetLogLevelRequest::HasBitSetters { |
| 8973 | public: |
| 8974 | static const ::dmi::Uuid& device_uuid(const GetLogLevelRequest* msg); |
| 8975 | }; |
| 8976 | |
| 8977 | const ::dmi::Uuid& |
| 8978 | GetLogLevelRequest::HasBitSetters::device_uuid(const GetLogLevelRequest* msg) { |
| 8979 | return *msg->device_uuid_; |
| 8980 | } |
| 8981 | void GetLogLevelRequest::clear_device_uuid() { |
| 8982 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 8983 | delete device_uuid_; |
| 8984 | } |
| 8985 | device_uuid_ = nullptr; |
| 8986 | } |
| 8987 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8988 | const int GetLogLevelRequest::kDeviceUuidFieldNumber; |
| 8989 | const int GetLogLevelRequest::kEntitiesFieldNumber; |
| 8990 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 8991 | |
| 8992 | GetLogLevelRequest::GetLogLevelRequest() |
| 8993 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 8994 | SharedCtor(); |
| 8995 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelRequest) |
| 8996 | } |
| 8997 | GetLogLevelRequest::GetLogLevelRequest(const GetLogLevelRequest& from) |
| 8998 | : ::google::protobuf::Message(), |
| 8999 | _internal_metadata_(nullptr), |
| 9000 | entities_(from.entities_) { |
| 9001 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9002 | if (from.has_device_uuid()) { |
| 9003 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9004 | } else { |
| 9005 | device_uuid_ = nullptr; |
| 9006 | } |
| 9007 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelRequest) |
| 9008 | } |
| 9009 | |
| 9010 | void GetLogLevelRequest::SharedCtor() { |
| 9011 | ::google::protobuf::internal::InitSCC( |
| 9012 | &scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9013 | device_uuid_ = nullptr; |
| 9014 | } |
| 9015 | |
| 9016 | GetLogLevelRequest::~GetLogLevelRequest() { |
| 9017 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelRequest) |
| 9018 | SharedDtor(); |
| 9019 | } |
| 9020 | |
| 9021 | void GetLogLevelRequest::SharedDtor() { |
| 9022 | if (this != internal_default_instance()) delete device_uuid_; |
| 9023 | } |
| 9024 | |
| 9025 | void GetLogLevelRequest::SetCachedSize(int size) const { |
| 9026 | _cached_size_.Set(size); |
| 9027 | } |
| 9028 | const GetLogLevelRequest& GetLogLevelRequest::default_instance() { |
| 9029 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9030 | return *internal_default_instance(); |
| 9031 | } |
| 9032 | |
| 9033 | |
| 9034 | void GetLogLevelRequest::Clear() { |
| 9035 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelRequest) |
| 9036 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9037 | // Prevent compiler warnings about cached_has_bits being unused |
| 9038 | (void) cached_has_bits; |
| 9039 | |
| 9040 | entities_.Clear(); |
| 9041 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9042 | delete device_uuid_; |
| 9043 | } |
| 9044 | device_uuid_ = nullptr; |
| 9045 | _internal_metadata_.Clear(); |
| 9046 | } |
| 9047 | |
| 9048 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9049 | const char* GetLogLevelRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 9050 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9051 | auto msg = static_cast<GetLogLevelRequest*>(object); |
| 9052 | ::google::protobuf::int32 size; (void)size; |
| 9053 | int depth; (void)depth; |
| 9054 | ::google::protobuf::uint32 tag; |
| 9055 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9056 | auto ptr = begin; |
| 9057 | while (ptr < end) { |
| 9058 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9059 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9060 | switch (tag >> 3) { |
| 9061 | // .dmi.Uuid device_uuid = 1; |
| 9062 | case 1: { |
| 9063 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9064 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9065 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9066 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9067 | object = msg->mutable_device_uuid(); |
| 9068 | if (size > end - ptr) goto len_delim_till_end; |
| 9069 | ptr += size; |
| 9070 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9071 | {parser_till_end, object}, ptr - size, ptr)); |
| 9072 | break; |
| 9073 | } |
| 9074 | // repeated string entities = 2; |
| 9075 | case 2: { |
| 9076 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9077 | do { |
| 9078 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9079 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9080 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelRequest.entities"); |
| 9081 | object = msg->add_entities(); |
| 9082 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9083 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9084 | goto string_till_end; |
| 9085 | } |
| 9086 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9087 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9088 | ptr += size; |
| 9089 | if (ptr >= end) break; |
| 9090 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9091 | break; |
| 9092 | } |
| 9093 | default: { |
| 9094 | handle_unusual: |
| 9095 | if ((tag & 7) == 4 || tag == 0) { |
| 9096 | ctx->EndGroup(tag); |
| 9097 | return ptr; |
| 9098 | } |
| 9099 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9100 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9101 | ptr = res.first; |
| 9102 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9103 | if (res.second) return ptr; |
| 9104 | } |
| 9105 | } // switch |
| 9106 | } // while |
| 9107 | return ptr; |
| 9108 | string_till_end: |
| 9109 | static_cast<::std::string*>(object)->clear(); |
| 9110 | static_cast<::std::string*>(object)->reserve(size); |
| 9111 | goto len_delim_till_end; |
| 9112 | len_delim_till_end: |
| 9113 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9114 | {parser_till_end, object}, size); |
| 9115 | } |
| 9116 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9117 | bool GetLogLevelRequest::MergePartialFromCodedStream( |
| 9118 | ::google::protobuf::io::CodedInputStream* input) { |
| 9119 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9120 | ::google::protobuf::uint32 tag; |
| 9121 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelRequest) |
| 9122 | for (;;) { |
| 9123 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9124 | tag = p.first; |
| 9125 | if (!p.second) goto handle_unusual; |
| 9126 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9127 | // .dmi.Uuid device_uuid = 1; |
| 9128 | case 1: { |
| 9129 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9130 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9131 | input, mutable_device_uuid())); |
| 9132 | } else { |
| 9133 | goto handle_unusual; |
| 9134 | } |
| 9135 | break; |
| 9136 | } |
| 9137 | |
| 9138 | // repeated string entities = 2; |
| 9139 | case 2: { |
| 9140 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9141 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9142 | input, this->add_entities())); |
| 9143 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9144 | this->entities(this->entities_size() - 1).data(), |
| 9145 | static_cast<int>(this->entities(this->entities_size() - 1).length()), |
| 9146 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9147 | "dmi.GetLogLevelRequest.entities")); |
| 9148 | } else { |
| 9149 | goto handle_unusual; |
| 9150 | } |
| 9151 | break; |
| 9152 | } |
| 9153 | |
| 9154 | default: { |
| 9155 | handle_unusual: |
| 9156 | if (tag == 0) { |
| 9157 | goto success; |
| 9158 | } |
| 9159 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9160 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9161 | break; |
| 9162 | } |
| 9163 | } |
| 9164 | } |
| 9165 | success: |
| 9166 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelRequest) |
| 9167 | return true; |
| 9168 | failure: |
| 9169 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelRequest) |
| 9170 | return false; |
| 9171 | #undef DO_ |
| 9172 | } |
| 9173 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9174 | |
| 9175 | void GetLogLevelRequest::SerializeWithCachedSizes( |
| 9176 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9177 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelRequest) |
| 9178 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9179 | (void) cached_has_bits; |
| 9180 | |
| 9181 | // .dmi.Uuid device_uuid = 1; |
| 9182 | if (this->has_device_uuid()) { |
| 9183 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9184 | 1, HasBitSetters::device_uuid(this), output); |
| 9185 | } |
| 9186 | |
| 9187 | // repeated string entities = 2; |
| 9188 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9189 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9190 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9191 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9192 | "dmi.GetLogLevelRequest.entities"); |
| 9193 | ::google::protobuf::internal::WireFormatLite::WriteString( |
| 9194 | 2, this->entities(i), output); |
| 9195 | } |
| 9196 | |
| 9197 | if (_internal_metadata_.have_unknown_fields()) { |
| 9198 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9199 | _internal_metadata_.unknown_fields(), output); |
| 9200 | } |
| 9201 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelRequest) |
| 9202 | } |
| 9203 | |
| 9204 | ::google::protobuf::uint8* GetLogLevelRequest::InternalSerializeWithCachedSizesToArray( |
| 9205 | ::google::protobuf::uint8* target) const { |
| 9206 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelRequest) |
| 9207 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9208 | (void) cached_has_bits; |
| 9209 | |
| 9210 | // .dmi.Uuid device_uuid = 1; |
| 9211 | if (this->has_device_uuid()) { |
| 9212 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9213 | InternalWriteMessageToArray( |
| 9214 | 1, HasBitSetters::device_uuid(this), target); |
| 9215 | } |
| 9216 | |
| 9217 | // repeated string entities = 2; |
| 9218 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9219 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9220 | this->entities(i).data(), static_cast<int>(this->entities(i).length()), |
| 9221 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9222 | "dmi.GetLogLevelRequest.entities"); |
| 9223 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9224 | WriteStringToArray(2, this->entities(i), target); |
| 9225 | } |
| 9226 | |
| 9227 | if (_internal_metadata_.have_unknown_fields()) { |
| 9228 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9229 | _internal_metadata_.unknown_fields(), target); |
| 9230 | } |
| 9231 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelRequest) |
| 9232 | return target; |
| 9233 | } |
| 9234 | |
| 9235 | size_t GetLogLevelRequest::ByteSizeLong() const { |
| 9236 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelRequest) |
| 9237 | size_t total_size = 0; |
| 9238 | |
| 9239 | if (_internal_metadata_.have_unknown_fields()) { |
| 9240 | total_size += |
| 9241 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9242 | _internal_metadata_.unknown_fields()); |
| 9243 | } |
| 9244 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9245 | // Prevent compiler warnings about cached_has_bits being unused |
| 9246 | (void) cached_has_bits; |
| 9247 | |
| 9248 | // repeated string entities = 2; |
| 9249 | total_size += 1 * |
| 9250 | ::google::protobuf::internal::FromIntSize(this->entities_size()); |
| 9251 | for (int i = 0, n = this->entities_size(); i < n; i++) { |
| 9252 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9253 | this->entities(i)); |
| 9254 | } |
| 9255 | |
| 9256 | // .dmi.Uuid device_uuid = 1; |
| 9257 | if (this->has_device_uuid()) { |
| 9258 | total_size += 1 + |
| 9259 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9260 | *device_uuid_); |
| 9261 | } |
| 9262 | |
| 9263 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9264 | SetCachedSize(cached_size); |
| 9265 | return total_size; |
| 9266 | } |
| 9267 | |
| 9268 | void GetLogLevelRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 9269 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelRequest) |
| 9270 | GOOGLE_DCHECK_NE(&from, this); |
| 9271 | const GetLogLevelRequest* source = |
| 9272 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelRequest>( |
| 9273 | &from); |
| 9274 | if (source == nullptr) { |
| 9275 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelRequest) |
| 9276 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9277 | } else { |
| 9278 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelRequest) |
| 9279 | MergeFrom(*source); |
| 9280 | } |
| 9281 | } |
| 9282 | |
| 9283 | void GetLogLevelRequest::MergeFrom(const GetLogLevelRequest& from) { |
| 9284 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelRequest) |
| 9285 | GOOGLE_DCHECK_NE(&from, this); |
| 9286 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9287 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9288 | (void) cached_has_bits; |
| 9289 | |
| 9290 | entities_.MergeFrom(from.entities_); |
| 9291 | if (from.has_device_uuid()) { |
| 9292 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9293 | } |
| 9294 | } |
| 9295 | |
| 9296 | void GetLogLevelRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 9297 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelRequest) |
| 9298 | if (&from == this) return; |
| 9299 | Clear(); |
| 9300 | MergeFrom(from); |
| 9301 | } |
| 9302 | |
| 9303 | void GetLogLevelRequest::CopyFrom(const GetLogLevelRequest& from) { |
| 9304 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelRequest) |
| 9305 | if (&from == this) return; |
| 9306 | Clear(); |
| 9307 | MergeFrom(from); |
| 9308 | } |
| 9309 | |
| 9310 | bool GetLogLevelRequest::IsInitialized() const { |
| 9311 | return true; |
| 9312 | } |
| 9313 | |
| 9314 | void GetLogLevelRequest::Swap(GetLogLevelRequest* other) { |
| 9315 | if (other == this) return; |
| 9316 | InternalSwap(other); |
| 9317 | } |
| 9318 | void GetLogLevelRequest::InternalSwap(GetLogLevelRequest* other) { |
| 9319 | using std::swap; |
| 9320 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9321 | entities_.InternalSwap(CastToBase(&other->entities_)); |
| 9322 | swap(device_uuid_, other->device_uuid_); |
| 9323 | } |
| 9324 | |
| 9325 | ::google::protobuf::Metadata GetLogLevelRequest::GetMetadata() const { |
| 9326 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9327 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9328 | } |
| 9329 | |
| 9330 | |
| 9331 | // =================================================================== |
| 9332 | |
| 9333 | void GetLogLevelResponse::InitAsDefaultInstance() { |
| 9334 | ::dmi::_GetLogLevelResponse_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9335 | ::dmi::Uuid::internal_default_instance()); |
| 9336 | } |
| 9337 | class GetLogLevelResponse::HasBitSetters { |
| 9338 | public: |
| 9339 | static const ::dmi::Uuid& device_uuid(const GetLogLevelResponse* msg); |
| 9340 | }; |
| 9341 | |
| 9342 | const ::dmi::Uuid& |
| 9343 | GetLogLevelResponse::HasBitSetters::device_uuid(const GetLogLevelResponse* msg) { |
| 9344 | return *msg->device_uuid_; |
| 9345 | } |
| 9346 | void GetLogLevelResponse::clear_device_uuid() { |
| 9347 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9348 | delete device_uuid_; |
| 9349 | } |
| 9350 | device_uuid_ = nullptr; |
| 9351 | } |
| 9352 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9353 | const int GetLogLevelResponse::kDeviceUuidFieldNumber; |
| 9354 | const int GetLogLevelResponse::kLogLevelsFieldNumber; |
| 9355 | const int GetLogLevelResponse::kStatusFieldNumber; |
| 9356 | const int GetLogLevelResponse::kReasonFieldNumber; |
| 9357 | const int GetLogLevelResponse::kReasonDetailFieldNumber; |
| 9358 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9359 | |
| 9360 | GetLogLevelResponse::GetLogLevelResponse() |
| 9361 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9362 | SharedCtor(); |
| 9363 | // @@protoc_insertion_point(constructor:dmi.GetLogLevelResponse) |
| 9364 | } |
| 9365 | GetLogLevelResponse::GetLogLevelResponse(const GetLogLevelResponse& from) |
| 9366 | : ::google::protobuf::Message(), |
| 9367 | _internal_metadata_(nullptr), |
| 9368 | loglevels_(from.loglevels_) { |
| 9369 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9370 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9371 | if (from.reason_detail().size() > 0) { |
| 9372 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9373 | } |
| 9374 | if (from.has_device_uuid()) { |
| 9375 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9376 | } else { |
| 9377 | device_uuid_ = nullptr; |
| 9378 | } |
| 9379 | ::memcpy(&status_, &from.status_, |
| 9380 | static_cast<size_t>(reinterpret_cast<char*>(&reason_) - |
| 9381 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9382 | // @@protoc_insertion_point(copy_constructor:dmi.GetLogLevelResponse) |
| 9383 | } |
| 9384 | |
| 9385 | void GetLogLevelResponse::SharedCtor() { |
| 9386 | ::google::protobuf::internal::InitSCC( |
| 9387 | &scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9388 | reason_detail_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9389 | ::memset(&device_uuid_, 0, static_cast<size_t>( |
| 9390 | reinterpret_cast<char*>(&reason_) - |
| 9391 | reinterpret_cast<char*>(&device_uuid_)) + sizeof(reason_)); |
| 9392 | } |
| 9393 | |
| 9394 | GetLogLevelResponse::~GetLogLevelResponse() { |
| 9395 | // @@protoc_insertion_point(destructor:dmi.GetLogLevelResponse) |
| 9396 | SharedDtor(); |
| 9397 | } |
| 9398 | |
| 9399 | void GetLogLevelResponse::SharedDtor() { |
| 9400 | reason_detail_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9401 | if (this != internal_default_instance()) delete device_uuid_; |
| 9402 | } |
| 9403 | |
| 9404 | void GetLogLevelResponse::SetCachedSize(int size) const { |
| 9405 | _cached_size_.Set(size); |
| 9406 | } |
| 9407 | const GetLogLevelResponse& GetLogLevelResponse::default_instance() { |
| 9408 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLogLevelResponse_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9409 | return *internal_default_instance(); |
| 9410 | } |
| 9411 | |
| 9412 | |
| 9413 | void GetLogLevelResponse::Clear() { |
| 9414 | // @@protoc_insertion_point(message_clear_start:dmi.GetLogLevelResponse) |
| 9415 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9416 | // Prevent compiler warnings about cached_has_bits being unused |
| 9417 | (void) cached_has_bits; |
| 9418 | |
| 9419 | loglevels_.Clear(); |
| 9420 | reason_detail_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 9421 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9422 | delete device_uuid_; |
| 9423 | } |
| 9424 | device_uuid_ = nullptr; |
| 9425 | ::memset(&status_, 0, static_cast<size_t>( |
| 9426 | reinterpret_cast<char*>(&reason_) - |
| 9427 | reinterpret_cast<char*>(&status_)) + sizeof(reason_)); |
| 9428 | _internal_metadata_.Clear(); |
| 9429 | } |
| 9430 | |
| 9431 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9432 | const char* GetLogLevelResponse::_InternalParse(const char* begin, const char* end, void* object, |
| 9433 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9434 | auto msg = static_cast<GetLogLevelResponse*>(object); |
| 9435 | ::google::protobuf::int32 size; (void)size; |
| 9436 | int depth; (void)depth; |
| 9437 | ::google::protobuf::uint32 tag; |
| 9438 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9439 | auto ptr = begin; |
| 9440 | while (ptr < end) { |
| 9441 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9442 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9443 | switch (tag >> 3) { |
| 9444 | // .dmi.Uuid device_uuid = 1; |
| 9445 | case 1: { |
| 9446 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9447 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9448 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9449 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9450 | object = msg->mutable_device_uuid(); |
| 9451 | if (size > end - ptr) goto len_delim_till_end; |
| 9452 | ptr += size; |
| 9453 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9454 | {parser_till_end, object}, ptr - size, ptr)); |
| 9455 | break; |
| 9456 | } |
| 9457 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9458 | case 2: { |
| 9459 | if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; |
| 9460 | do { |
| 9461 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9462 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9463 | parser_till_end = ::dmi::EntitiesLogLevel::_InternalParse; |
| 9464 | object = msg->add_loglevels(); |
| 9465 | if (size > end - ptr) goto len_delim_till_end; |
| 9466 | ptr += size; |
| 9467 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9468 | {parser_till_end, object}, ptr - size, ptr)); |
| 9469 | if (ptr >= end) break; |
| 9470 | } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); |
| 9471 | break; |
| 9472 | } |
| 9473 | // .dmi.Status status = 3; |
| 9474 | case 3: { |
| 9475 | if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; |
| 9476 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9477 | msg->set_status(static_cast<::dmi::Status>(val)); |
| 9478 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9479 | break; |
| 9480 | } |
| 9481 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9482 | case 4: { |
| 9483 | if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; |
| 9484 | ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); |
| 9485 | msg->set_reason(static_cast<::dmi::GetLogLevelResponse_Reason>(val)); |
| 9486 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9487 | break; |
| 9488 | } |
| 9489 | // string reason_detail = 5; |
| 9490 | case 5: { |
| 9491 | if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; |
| 9492 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9493 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9494 | ctx->extra_parse_data().SetFieldName("dmi.GetLogLevelResponse.reason_detail"); |
| 9495 | object = msg->mutable_reason_detail(); |
| 9496 | if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { |
| 9497 | parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; |
| 9498 | goto string_till_end; |
| 9499 | } |
| 9500 | GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); |
| 9501 | ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); |
| 9502 | ptr += size; |
| 9503 | break; |
| 9504 | } |
| 9505 | default: { |
| 9506 | handle_unusual: |
| 9507 | if ((tag & 7) == 4 || tag == 0) { |
| 9508 | ctx->EndGroup(tag); |
| 9509 | return ptr; |
| 9510 | } |
| 9511 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9512 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9513 | ptr = res.first; |
| 9514 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9515 | if (res.second) return ptr; |
| 9516 | } |
| 9517 | } // switch |
| 9518 | } // while |
| 9519 | return ptr; |
| 9520 | string_till_end: |
| 9521 | static_cast<::std::string*>(object)->clear(); |
| 9522 | static_cast<::std::string*>(object)->reserve(size); |
| 9523 | goto len_delim_till_end; |
| 9524 | len_delim_till_end: |
| 9525 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9526 | {parser_till_end, object}, size); |
| 9527 | } |
| 9528 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9529 | bool GetLogLevelResponse::MergePartialFromCodedStream( |
| 9530 | ::google::protobuf::io::CodedInputStream* input) { |
| 9531 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9532 | ::google::protobuf::uint32 tag; |
| 9533 | // @@protoc_insertion_point(parse_start:dmi.GetLogLevelResponse) |
| 9534 | for (;;) { |
| 9535 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9536 | tag = p.first; |
| 9537 | if (!p.second) goto handle_unusual; |
| 9538 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9539 | // .dmi.Uuid device_uuid = 1; |
| 9540 | case 1: { |
| 9541 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9542 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9543 | input, mutable_device_uuid())); |
| 9544 | } else { |
| 9545 | goto handle_unusual; |
| 9546 | } |
| 9547 | break; |
| 9548 | } |
| 9549 | |
| 9550 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9551 | case 2: { |
| 9552 | if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { |
| 9553 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9554 | input, add_loglevels())); |
| 9555 | } else { |
| 9556 | goto handle_unusual; |
| 9557 | } |
| 9558 | break; |
| 9559 | } |
| 9560 | |
| 9561 | // .dmi.Status status = 3; |
| 9562 | case 3: { |
| 9563 | if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { |
| 9564 | int value = 0; |
| 9565 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9566 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9567 | input, &value))); |
| 9568 | set_status(static_cast< ::dmi::Status >(value)); |
| 9569 | } else { |
| 9570 | goto handle_unusual; |
| 9571 | } |
| 9572 | break; |
| 9573 | } |
| 9574 | |
| 9575 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9576 | case 4: { |
| 9577 | if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { |
| 9578 | int value = 0; |
| 9579 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 9580 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
| 9581 | input, &value))); |
| 9582 | set_reason(static_cast< ::dmi::GetLogLevelResponse_Reason >(value)); |
| 9583 | } else { |
| 9584 | goto handle_unusual; |
| 9585 | } |
| 9586 | break; |
| 9587 | } |
| 9588 | |
| 9589 | // string reason_detail = 5; |
| 9590 | case 5: { |
| 9591 | if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { |
| 9592 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 9593 | input, this->mutable_reason_detail())); |
| 9594 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9595 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9596 | ::google::protobuf::internal::WireFormatLite::PARSE, |
| 9597 | "dmi.GetLogLevelResponse.reason_detail")); |
| 9598 | } else { |
| 9599 | goto handle_unusual; |
| 9600 | } |
| 9601 | break; |
| 9602 | } |
| 9603 | |
| 9604 | default: { |
| 9605 | handle_unusual: |
| 9606 | if (tag == 0) { |
| 9607 | goto success; |
| 9608 | } |
| 9609 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 9610 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 9611 | break; |
| 9612 | } |
| 9613 | } |
| 9614 | } |
| 9615 | success: |
| 9616 | // @@protoc_insertion_point(parse_success:dmi.GetLogLevelResponse) |
| 9617 | return true; |
| 9618 | failure: |
| 9619 | // @@protoc_insertion_point(parse_failure:dmi.GetLogLevelResponse) |
| 9620 | return false; |
| 9621 | #undef DO_ |
| 9622 | } |
| 9623 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9624 | |
| 9625 | void GetLogLevelResponse::SerializeWithCachedSizes( |
| 9626 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 9627 | // @@protoc_insertion_point(serialize_start:dmi.GetLogLevelResponse) |
| 9628 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9629 | (void) cached_has_bits; |
| 9630 | |
| 9631 | // .dmi.Uuid device_uuid = 1; |
| 9632 | if (this->has_device_uuid()) { |
| 9633 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9634 | 1, HasBitSetters::device_uuid(this), output); |
| 9635 | } |
| 9636 | |
| 9637 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9638 | for (unsigned int i = 0, |
| 9639 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9640 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 9641 | 2, |
| 9642 | this->loglevels(static_cast<int>(i)), |
| 9643 | output); |
| 9644 | } |
| 9645 | |
| 9646 | // .dmi.Status status = 3; |
| 9647 | if (this->status() != 0) { |
| 9648 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9649 | 3, this->status(), output); |
| 9650 | } |
| 9651 | |
| 9652 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9653 | if (this->reason() != 0) { |
| 9654 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 9655 | 4, this->reason(), output); |
| 9656 | } |
| 9657 | |
| 9658 | // string reason_detail = 5; |
| 9659 | if (this->reason_detail().size() > 0) { |
| 9660 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9661 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9662 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9663 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9664 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 9665 | 5, this->reason_detail(), output); |
| 9666 | } |
| 9667 | |
| 9668 | if (_internal_metadata_.have_unknown_fields()) { |
| 9669 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 9670 | _internal_metadata_.unknown_fields(), output); |
| 9671 | } |
| 9672 | // @@protoc_insertion_point(serialize_end:dmi.GetLogLevelResponse) |
| 9673 | } |
| 9674 | |
| 9675 | ::google::protobuf::uint8* GetLogLevelResponse::InternalSerializeWithCachedSizesToArray( |
| 9676 | ::google::protobuf::uint8* target) const { |
| 9677 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLogLevelResponse) |
| 9678 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9679 | (void) cached_has_bits; |
| 9680 | |
| 9681 | // .dmi.Uuid device_uuid = 1; |
| 9682 | if (this->has_device_uuid()) { |
| 9683 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9684 | InternalWriteMessageToArray( |
| 9685 | 1, HasBitSetters::device_uuid(this), target); |
| 9686 | } |
| 9687 | |
| 9688 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9689 | for (unsigned int i = 0, |
| 9690 | n = static_cast<unsigned int>(this->loglevels_size()); i < n; i++) { |
| 9691 | target = ::google::protobuf::internal::WireFormatLite:: |
| 9692 | InternalWriteMessageToArray( |
| 9693 | 2, this->loglevels(static_cast<int>(i)), target); |
| 9694 | } |
| 9695 | |
| 9696 | // .dmi.Status status = 3; |
| 9697 | if (this->status() != 0) { |
| 9698 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9699 | 3, this->status(), target); |
| 9700 | } |
| 9701 | |
| 9702 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9703 | if (this->reason() != 0) { |
| 9704 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 9705 | 4, this->reason(), target); |
| 9706 | } |
| 9707 | |
| 9708 | // string reason_detail = 5; |
| 9709 | if (this->reason_detail().size() > 0) { |
| 9710 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 9711 | this->reason_detail().data(), static_cast<int>(this->reason_detail().length()), |
| 9712 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 9713 | "dmi.GetLogLevelResponse.reason_detail"); |
| 9714 | target = |
| 9715 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 9716 | 5, this->reason_detail(), target); |
| 9717 | } |
| 9718 | |
| 9719 | if (_internal_metadata_.have_unknown_fields()) { |
| 9720 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 9721 | _internal_metadata_.unknown_fields(), target); |
| 9722 | } |
| 9723 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLogLevelResponse) |
| 9724 | return target; |
| 9725 | } |
| 9726 | |
| 9727 | size_t GetLogLevelResponse::ByteSizeLong() const { |
| 9728 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLogLevelResponse) |
| 9729 | size_t total_size = 0; |
| 9730 | |
| 9731 | if (_internal_metadata_.have_unknown_fields()) { |
| 9732 | total_size += |
| 9733 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 9734 | _internal_metadata_.unknown_fields()); |
| 9735 | } |
| 9736 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9737 | // Prevent compiler warnings about cached_has_bits being unused |
| 9738 | (void) cached_has_bits; |
| 9739 | |
| 9740 | // repeated .dmi.EntitiesLogLevel logLevels = 2; |
| 9741 | { |
| 9742 | unsigned int count = static_cast<unsigned int>(this->loglevels_size()); |
| 9743 | total_size += 1UL * count; |
| 9744 | for (unsigned int i = 0; i < count; i++) { |
| 9745 | total_size += |
| 9746 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9747 | this->loglevels(static_cast<int>(i))); |
| 9748 | } |
| 9749 | } |
| 9750 | |
| 9751 | // string reason_detail = 5; |
| 9752 | if (this->reason_detail().size() > 0) { |
| 9753 | total_size += 1 + |
| 9754 | ::google::protobuf::internal::WireFormatLite::StringSize( |
| 9755 | this->reason_detail()); |
| 9756 | } |
| 9757 | |
| 9758 | // .dmi.Uuid device_uuid = 1; |
| 9759 | if (this->has_device_uuid()) { |
| 9760 | total_size += 1 + |
| 9761 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 9762 | *device_uuid_); |
| 9763 | } |
| 9764 | |
| 9765 | // .dmi.Status status = 3; |
| 9766 | if (this->status() != 0) { |
| 9767 | total_size += 1 + |
| 9768 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->status()); |
| 9769 | } |
| 9770 | |
| 9771 | // .dmi.GetLogLevelResponse.Reason reason = 4; |
| 9772 | if (this->reason() != 0) { |
| 9773 | total_size += 1 + |
| 9774 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->reason()); |
| 9775 | } |
| 9776 | |
| 9777 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 9778 | SetCachedSize(cached_size); |
| 9779 | return total_size; |
| 9780 | } |
| 9781 | |
| 9782 | void GetLogLevelResponse::MergeFrom(const ::google::protobuf::Message& from) { |
| 9783 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLogLevelResponse) |
| 9784 | GOOGLE_DCHECK_NE(&from, this); |
| 9785 | const GetLogLevelResponse* source = |
| 9786 | ::google::protobuf::DynamicCastToGenerated<GetLogLevelResponse>( |
| 9787 | &from); |
| 9788 | if (source == nullptr) { |
| 9789 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLogLevelResponse) |
| 9790 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 9791 | } else { |
| 9792 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLogLevelResponse) |
| 9793 | MergeFrom(*source); |
| 9794 | } |
| 9795 | } |
| 9796 | |
| 9797 | void GetLogLevelResponse::MergeFrom(const GetLogLevelResponse& from) { |
| 9798 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLogLevelResponse) |
| 9799 | GOOGLE_DCHECK_NE(&from, this); |
| 9800 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9801 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9802 | (void) cached_has_bits; |
| 9803 | |
| 9804 | loglevels_.MergeFrom(from.loglevels_); |
| 9805 | if (from.reason_detail().size() > 0) { |
| 9806 | |
| 9807 | reason_detail_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_detail_); |
| 9808 | } |
| 9809 | if (from.has_device_uuid()) { |
| 9810 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 9811 | } |
| 9812 | if (from.status() != 0) { |
| 9813 | set_status(from.status()); |
| 9814 | } |
| 9815 | if (from.reason() != 0) { |
| 9816 | set_reason(from.reason()); |
| 9817 | } |
| 9818 | } |
| 9819 | |
| 9820 | void GetLogLevelResponse::CopyFrom(const ::google::protobuf::Message& from) { |
| 9821 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLogLevelResponse) |
| 9822 | if (&from == this) return; |
| 9823 | Clear(); |
| 9824 | MergeFrom(from); |
| 9825 | } |
| 9826 | |
| 9827 | void GetLogLevelResponse::CopyFrom(const GetLogLevelResponse& from) { |
| 9828 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLogLevelResponse) |
| 9829 | if (&from == this) return; |
| 9830 | Clear(); |
| 9831 | MergeFrom(from); |
| 9832 | } |
| 9833 | |
| 9834 | bool GetLogLevelResponse::IsInitialized() const { |
| 9835 | return true; |
| 9836 | } |
| 9837 | |
| 9838 | void GetLogLevelResponse::Swap(GetLogLevelResponse* other) { |
| 9839 | if (other == this) return; |
| 9840 | InternalSwap(other); |
| 9841 | } |
| 9842 | void GetLogLevelResponse::InternalSwap(GetLogLevelResponse* other) { |
| 9843 | using std::swap; |
| 9844 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 9845 | CastToBase(&loglevels_)->InternalSwap(CastToBase(&other->loglevels_)); |
| 9846 | reason_detail_.Swap(&other->reason_detail_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 9847 | GetArenaNoVirtual()); |
| 9848 | swap(device_uuid_, other->device_uuid_); |
| 9849 | swap(status_, other->status_); |
| 9850 | swap(reason_, other->reason_); |
| 9851 | } |
| 9852 | |
| 9853 | ::google::protobuf::Metadata GetLogLevelResponse::GetMetadata() const { |
| 9854 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 9855 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 9856 | } |
| 9857 | |
| 9858 | |
| 9859 | // =================================================================== |
| 9860 | |
| 9861 | void GetLoggableEntitiesRequest::InitAsDefaultInstance() { |
| 9862 | ::dmi::_GetLoggableEntitiesRequest_default_instance_._instance.get_mutable()->device_uuid_ = const_cast< ::dmi::Uuid*>( |
| 9863 | ::dmi::Uuid::internal_default_instance()); |
| 9864 | } |
| 9865 | class GetLoggableEntitiesRequest::HasBitSetters { |
| 9866 | public: |
| 9867 | static const ::dmi::Uuid& device_uuid(const GetLoggableEntitiesRequest* msg); |
| 9868 | }; |
| 9869 | |
| 9870 | const ::dmi::Uuid& |
| 9871 | GetLoggableEntitiesRequest::HasBitSetters::device_uuid(const GetLoggableEntitiesRequest* msg) { |
| 9872 | return *msg->device_uuid_; |
| 9873 | } |
| 9874 | void GetLoggableEntitiesRequest::clear_device_uuid() { |
| 9875 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9876 | delete device_uuid_; |
| 9877 | } |
| 9878 | device_uuid_ = nullptr; |
| 9879 | } |
| 9880 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9881 | const int GetLoggableEntitiesRequest::kDeviceUuidFieldNumber; |
| 9882 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 9883 | |
| 9884 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest() |
| 9885 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 9886 | SharedCtor(); |
| 9887 | // @@protoc_insertion_point(constructor:dmi.GetLoggableEntitiesRequest) |
| 9888 | } |
| 9889 | GetLoggableEntitiesRequest::GetLoggableEntitiesRequest(const GetLoggableEntitiesRequest& from) |
| 9890 | : ::google::protobuf::Message(), |
| 9891 | _internal_metadata_(nullptr) { |
| 9892 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 9893 | if (from.has_device_uuid()) { |
| 9894 | device_uuid_ = new ::dmi::Uuid(*from.device_uuid_); |
| 9895 | } else { |
| 9896 | device_uuid_ = nullptr; |
| 9897 | } |
| 9898 | // @@protoc_insertion_point(copy_constructor:dmi.GetLoggableEntitiesRequest) |
| 9899 | } |
| 9900 | |
| 9901 | void GetLoggableEntitiesRequest::SharedCtor() { |
| 9902 | ::google::protobuf::internal::InitSCC( |
| 9903 | &scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9904 | device_uuid_ = nullptr; |
| 9905 | } |
| 9906 | |
| 9907 | GetLoggableEntitiesRequest::~GetLoggableEntitiesRequest() { |
| 9908 | // @@protoc_insertion_point(destructor:dmi.GetLoggableEntitiesRequest) |
| 9909 | SharedDtor(); |
| 9910 | } |
| 9911 | |
| 9912 | void GetLoggableEntitiesRequest::SharedDtor() { |
| 9913 | if (this != internal_default_instance()) delete device_uuid_; |
| 9914 | } |
| 9915 | |
| 9916 | void GetLoggableEntitiesRequest::SetCachedSize(int size) const { |
| 9917 | _cached_size_.Set(size); |
| 9918 | } |
| 9919 | const GetLoggableEntitiesRequest& GetLoggableEntitiesRequest::default_instance() { |
| 9920 | ::google::protobuf::internal::InitSCC(&::scc_info_GetLoggableEntitiesRequest_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 9921 | return *internal_default_instance(); |
| 9922 | } |
| 9923 | |
| 9924 | |
| 9925 | void GetLoggableEntitiesRequest::Clear() { |
| 9926 | // @@protoc_insertion_point(message_clear_start:dmi.GetLoggableEntitiesRequest) |
| 9927 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 9928 | // Prevent compiler warnings about cached_has_bits being unused |
| 9929 | (void) cached_has_bits; |
| 9930 | |
| 9931 | if (GetArenaNoVirtual() == nullptr && device_uuid_ != nullptr) { |
| 9932 | delete device_uuid_; |
| 9933 | } |
| 9934 | device_uuid_ = nullptr; |
| 9935 | _internal_metadata_.Clear(); |
| 9936 | } |
| 9937 | |
| 9938 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9939 | const char* GetLoggableEntitiesRequest::_InternalParse(const char* begin, const char* end, void* object, |
| 9940 | ::google::protobuf::internal::ParseContext* ctx) { |
| 9941 | auto msg = static_cast<GetLoggableEntitiesRequest*>(object); |
| 9942 | ::google::protobuf::int32 size; (void)size; |
| 9943 | int depth; (void)depth; |
| 9944 | ::google::protobuf::uint32 tag; |
| 9945 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 9946 | auto ptr = begin; |
| 9947 | while (ptr < end) { |
| 9948 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 9949 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9950 | switch (tag >> 3) { |
| 9951 | // .dmi.Uuid device_uuid = 1; |
| 9952 | case 1: { |
| 9953 | if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; |
| 9954 | ptr = ::google::protobuf::io::ReadSize(ptr, &size); |
| 9955 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 9956 | parser_till_end = ::dmi::Uuid::_InternalParse; |
| 9957 | object = msg->mutable_device_uuid(); |
| 9958 | if (size > end - ptr) goto len_delim_till_end; |
| 9959 | ptr += size; |
| 9960 | GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( |
| 9961 | {parser_till_end, object}, ptr - size, ptr)); |
| 9962 | break; |
| 9963 | } |
| 9964 | default: { |
| 9965 | handle_unusual: |
| 9966 | if ((tag & 7) == 4 || tag == 0) { |
| 9967 | ctx->EndGroup(tag); |
| 9968 | return ptr; |
| 9969 | } |
| 9970 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 9971 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 9972 | ptr = res.first; |
| 9973 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 9974 | if (res.second) return ptr; |
| 9975 | } |
| 9976 | } // switch |
| 9977 | } // while |
| 9978 | return ptr; |
| 9979 | len_delim_till_end: |
| 9980 | return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, |
| 9981 | {parser_till_end, object}, size); |
| 9982 | } |
| 9983 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 9984 | bool GetLoggableEntitiesRequest::MergePartialFromCodedStream( |
| 9985 | ::google::protobuf::io::CodedInputStream* input) { |
| 9986 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 9987 | ::google::protobuf::uint32 tag; |
| 9988 | // @@protoc_insertion_point(parse_start:dmi.GetLoggableEntitiesRequest) |
| 9989 | for (;;) { |
| 9990 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 9991 | tag = p.first; |
| 9992 | if (!p.second) goto handle_unusual; |
| 9993 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 9994 | // .dmi.Uuid device_uuid = 1; |
| 9995 | case 1: { |
| 9996 | if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { |
| 9997 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
| 9998 | input, mutable_device_uuid())); |
| 9999 | } else { |
| 10000 | goto handle_unusual; |
| 10001 | } |
| 10002 | break; |
| 10003 | } |
| 10004 | |
| 10005 | default: { |
| 10006 | handle_unusual: |
| 10007 | if (tag == 0) { |
| 10008 | goto success; |
| 10009 | } |
| 10010 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10011 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10012 | break; |
| 10013 | } |
| 10014 | } |
| 10015 | } |
| 10016 | success: |
| 10017 | // @@protoc_insertion_point(parse_success:dmi.GetLoggableEntitiesRequest) |
| 10018 | return true; |
| 10019 | failure: |
| 10020 | // @@protoc_insertion_point(parse_failure:dmi.GetLoggableEntitiesRequest) |
| 10021 | return false; |
| 10022 | #undef DO_ |
| 10023 | } |
| 10024 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10025 | |
| 10026 | void GetLoggableEntitiesRequest::SerializeWithCachedSizes( |
| 10027 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10028 | // @@protoc_insertion_point(serialize_start:dmi.GetLoggableEntitiesRequest) |
| 10029 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10030 | (void) cached_has_bits; |
| 10031 | |
| 10032 | // .dmi.Uuid device_uuid = 1; |
| 10033 | if (this->has_device_uuid()) { |
| 10034 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 10035 | 1, HasBitSetters::device_uuid(this), output); |
| 10036 | } |
| 10037 | |
| 10038 | if (_internal_metadata_.have_unknown_fields()) { |
| 10039 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10040 | _internal_metadata_.unknown_fields(), output); |
| 10041 | } |
| 10042 | // @@protoc_insertion_point(serialize_end:dmi.GetLoggableEntitiesRequest) |
| 10043 | } |
| 10044 | |
| 10045 | ::google::protobuf::uint8* GetLoggableEntitiesRequest::InternalSerializeWithCachedSizesToArray( |
| 10046 | ::google::protobuf::uint8* target) const { |
| 10047 | // @@protoc_insertion_point(serialize_to_array_start:dmi.GetLoggableEntitiesRequest) |
| 10048 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10049 | (void) cached_has_bits; |
| 10050 | |
| 10051 | // .dmi.Uuid device_uuid = 1; |
| 10052 | if (this->has_device_uuid()) { |
| 10053 | target = ::google::protobuf::internal::WireFormatLite:: |
| 10054 | InternalWriteMessageToArray( |
| 10055 | 1, HasBitSetters::device_uuid(this), target); |
| 10056 | } |
| 10057 | |
| 10058 | if (_internal_metadata_.have_unknown_fields()) { |
| 10059 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10060 | _internal_metadata_.unknown_fields(), target); |
| 10061 | } |
| 10062 | // @@protoc_insertion_point(serialize_to_array_end:dmi.GetLoggableEntitiesRequest) |
| 10063 | return target; |
| 10064 | } |
| 10065 | |
| 10066 | size_t GetLoggableEntitiesRequest::ByteSizeLong() const { |
| 10067 | // @@protoc_insertion_point(message_byte_size_start:dmi.GetLoggableEntitiesRequest) |
| 10068 | size_t total_size = 0; |
| 10069 | |
| 10070 | if (_internal_metadata_.have_unknown_fields()) { |
| 10071 | total_size += |
| 10072 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10073 | _internal_metadata_.unknown_fields()); |
| 10074 | } |
| 10075 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10076 | // Prevent compiler warnings about cached_has_bits being unused |
| 10077 | (void) cached_has_bits; |
| 10078 | |
| 10079 | // .dmi.Uuid device_uuid = 1; |
| 10080 | if (this->has_device_uuid()) { |
| 10081 | total_size += 1 + |
| 10082 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
| 10083 | *device_uuid_); |
| 10084 | } |
| 10085 | |
| 10086 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10087 | SetCachedSize(cached_size); |
| 10088 | return total_size; |
| 10089 | } |
| 10090 | |
| 10091 | void GetLoggableEntitiesRequest::MergeFrom(const ::google::protobuf::Message& from) { |
| 10092 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10093 | GOOGLE_DCHECK_NE(&from, this); |
| 10094 | const GetLoggableEntitiesRequest* source = |
| 10095 | ::google::protobuf::DynamicCastToGenerated<GetLoggableEntitiesRequest>( |
| 10096 | &from); |
| 10097 | if (source == nullptr) { |
| 10098 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.GetLoggableEntitiesRequest) |
| 10099 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10100 | } else { |
| 10101 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.GetLoggableEntitiesRequest) |
| 10102 | MergeFrom(*source); |
| 10103 | } |
| 10104 | } |
| 10105 | |
| 10106 | void GetLoggableEntitiesRequest::MergeFrom(const GetLoggableEntitiesRequest& from) { |
| 10107 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.GetLoggableEntitiesRequest) |
| 10108 | GOOGLE_DCHECK_NE(&from, this); |
| 10109 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10110 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10111 | (void) cached_has_bits; |
| 10112 | |
| 10113 | if (from.has_device_uuid()) { |
| 10114 | mutable_device_uuid()->::dmi::Uuid::MergeFrom(from.device_uuid()); |
| 10115 | } |
| 10116 | } |
| 10117 | |
| 10118 | void GetLoggableEntitiesRequest::CopyFrom(const ::google::protobuf::Message& from) { |
| 10119 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10120 | if (&from == this) return; |
| 10121 | Clear(); |
| 10122 | MergeFrom(from); |
| 10123 | } |
| 10124 | |
| 10125 | void GetLoggableEntitiesRequest::CopyFrom(const GetLoggableEntitiesRequest& from) { |
| 10126 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.GetLoggableEntitiesRequest) |
| 10127 | if (&from == this) return; |
| 10128 | Clear(); |
| 10129 | MergeFrom(from); |
| 10130 | } |
| 10131 | |
| 10132 | bool GetLoggableEntitiesRequest::IsInitialized() const { |
| 10133 | return true; |
| 10134 | } |
| 10135 | |
| 10136 | void GetLoggableEntitiesRequest::Swap(GetLoggableEntitiesRequest* other) { |
| 10137 | if (other == this) return; |
| 10138 | InternalSwap(other); |
| 10139 | } |
| 10140 | void GetLoggableEntitiesRequest::InternalSwap(GetLoggableEntitiesRequest* other) { |
| 10141 | using std::swap; |
| 10142 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10143 | swap(device_uuid_, other->device_uuid_); |
| 10144 | } |
| 10145 | |
| 10146 | ::google::protobuf::Metadata GetLoggableEntitiesRequest::GetMetadata() const { |
| 10147 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10148 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10149 | } |
| 10150 | |
| 10151 | |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 10152 | // =================================================================== |
| 10153 | |
| 10154 | void Heartbeat::InitAsDefaultInstance() { |
| 10155 | } |
| 10156 | class Heartbeat::HasBitSetters { |
| 10157 | public: |
| 10158 | }; |
| 10159 | |
| 10160 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10161 | const int Heartbeat::kHeartbeatSignatureFieldNumber; |
| 10162 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 10163 | |
| 10164 | Heartbeat::Heartbeat() |
| 10165 | : ::google::protobuf::Message(), _internal_metadata_(nullptr) { |
| 10166 | SharedCtor(); |
| 10167 | // @@protoc_insertion_point(constructor:dmi.Heartbeat) |
| 10168 | } |
| 10169 | Heartbeat::Heartbeat(const Heartbeat& from) |
| 10170 | : ::google::protobuf::Message(), |
| 10171 | _internal_metadata_(nullptr) { |
| 10172 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10173 | heartbeat_signature_ = from.heartbeat_signature_; |
| 10174 | // @@protoc_insertion_point(copy_constructor:dmi.Heartbeat) |
| 10175 | } |
| 10176 | |
| 10177 | void Heartbeat::SharedCtor() { |
| 10178 | heartbeat_signature_ = 0u; |
| 10179 | } |
| 10180 | |
| 10181 | Heartbeat::~Heartbeat() { |
| 10182 | // @@protoc_insertion_point(destructor:dmi.Heartbeat) |
| 10183 | SharedDtor(); |
| 10184 | } |
| 10185 | |
| 10186 | void Heartbeat::SharedDtor() { |
| 10187 | } |
| 10188 | |
| 10189 | void Heartbeat::SetCachedSize(int size) const { |
| 10190 | _cached_size_.Set(size); |
| 10191 | } |
| 10192 | const Heartbeat& Heartbeat::default_instance() { |
| 10193 | ::google::protobuf::internal::InitSCC(&::scc_info_Heartbeat_dmi_2fhw_5fmanagement_5fservice_2eproto.base); |
| 10194 | return *internal_default_instance(); |
| 10195 | } |
| 10196 | |
| 10197 | |
| 10198 | void Heartbeat::Clear() { |
| 10199 | // @@protoc_insertion_point(message_clear_start:dmi.Heartbeat) |
| 10200 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10201 | // Prevent compiler warnings about cached_has_bits being unused |
| 10202 | (void) cached_has_bits; |
| 10203 | |
| 10204 | heartbeat_signature_ = 0u; |
| 10205 | _internal_metadata_.Clear(); |
| 10206 | } |
| 10207 | |
| 10208 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10209 | const char* Heartbeat::_InternalParse(const char* begin, const char* end, void* object, |
| 10210 | ::google::protobuf::internal::ParseContext* ctx) { |
| 10211 | auto msg = static_cast<Heartbeat*>(object); |
| 10212 | ::google::protobuf::int32 size; (void)size; |
| 10213 | int depth; (void)depth; |
| 10214 | ::google::protobuf::uint32 tag; |
| 10215 | ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; |
| 10216 | auto ptr = begin; |
| 10217 | while (ptr < end) { |
| 10218 | ptr = ::google::protobuf::io::Parse32(ptr, &tag); |
| 10219 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); |
| 10220 | switch (tag >> 3) { |
| 10221 | // fixed32 heartbeat_signature = 1; |
| 10222 | case 1: { |
| 10223 | if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; |
| 10224 | msg->set_heartbeat_signature(::google::protobuf::io::UnalignedLoad<::google::protobuf::uint32>(ptr)); |
| 10225 | ptr += sizeof(::google::protobuf::uint32); |
| 10226 | break; |
| 10227 | } |
| 10228 | default: { |
| 10229 | handle_unusual: |
| 10230 | if ((tag & 7) == 4 || tag == 0) { |
| 10231 | ctx->EndGroup(tag); |
| 10232 | return ptr; |
| 10233 | } |
| 10234 | auto res = UnknownFieldParse(tag, {_InternalParse, msg}, |
| 10235 | ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); |
| 10236 | ptr = res.first; |
| 10237 | GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); |
| 10238 | if (res.second) return ptr; |
| 10239 | } |
| 10240 | } // switch |
| 10241 | } // while |
| 10242 | return ptr; |
| 10243 | } |
| 10244 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10245 | bool Heartbeat::MergePartialFromCodedStream( |
| 10246 | ::google::protobuf::io::CodedInputStream* input) { |
| 10247 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
| 10248 | ::google::protobuf::uint32 tag; |
| 10249 | // @@protoc_insertion_point(parse_start:dmi.Heartbeat) |
| 10250 | for (;;) { |
| 10251 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 10252 | tag = p.first; |
| 10253 | if (!p.second) goto handle_unusual; |
| 10254 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 10255 | // fixed32 heartbeat_signature = 1; |
| 10256 | case 1: { |
| 10257 | if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { |
| 10258 | |
| 10259 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 10260 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
| 10261 | input, &heartbeat_signature_))); |
| 10262 | } else { |
| 10263 | goto handle_unusual; |
| 10264 | } |
| 10265 | break; |
| 10266 | } |
| 10267 | |
| 10268 | default: { |
| 10269 | handle_unusual: |
| 10270 | if (tag == 0) { |
| 10271 | goto success; |
| 10272 | } |
| 10273 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
| 10274 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
| 10275 | break; |
| 10276 | } |
| 10277 | } |
| 10278 | } |
| 10279 | success: |
| 10280 | // @@protoc_insertion_point(parse_success:dmi.Heartbeat) |
| 10281 | return true; |
| 10282 | failure: |
| 10283 | // @@protoc_insertion_point(parse_failure:dmi.Heartbeat) |
| 10284 | return false; |
| 10285 | #undef DO_ |
| 10286 | } |
| 10287 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| 10288 | |
| 10289 | void Heartbeat::SerializeWithCachedSizes( |
| 10290 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 10291 | // @@protoc_insertion_point(serialize_start:dmi.Heartbeat) |
| 10292 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10293 | (void) cached_has_bits; |
| 10294 | |
| 10295 | // fixed32 heartbeat_signature = 1; |
| 10296 | if (this->heartbeat_signature() != 0) { |
| 10297 | ::google::protobuf::internal::WireFormatLite::WriteFixed32(1, this->heartbeat_signature(), output); |
| 10298 | } |
| 10299 | |
| 10300 | if (_internal_metadata_.have_unknown_fields()) { |
| 10301 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
| 10302 | _internal_metadata_.unknown_fields(), output); |
| 10303 | } |
| 10304 | // @@protoc_insertion_point(serialize_end:dmi.Heartbeat) |
| 10305 | } |
| 10306 | |
| 10307 | ::google::protobuf::uint8* Heartbeat::InternalSerializeWithCachedSizesToArray( |
| 10308 | ::google::protobuf::uint8* target) const { |
| 10309 | // @@protoc_insertion_point(serialize_to_array_start:dmi.Heartbeat) |
| 10310 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10311 | (void) cached_has_bits; |
| 10312 | |
| 10313 | // fixed32 heartbeat_signature = 1; |
| 10314 | if (this->heartbeat_signature() != 0) { |
| 10315 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(1, this->heartbeat_signature(), target); |
| 10316 | } |
| 10317 | |
| 10318 | if (_internal_metadata_.have_unknown_fields()) { |
| 10319 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
| 10320 | _internal_metadata_.unknown_fields(), target); |
| 10321 | } |
| 10322 | // @@protoc_insertion_point(serialize_to_array_end:dmi.Heartbeat) |
| 10323 | return target; |
| 10324 | } |
| 10325 | |
| 10326 | size_t Heartbeat::ByteSizeLong() const { |
| 10327 | // @@protoc_insertion_point(message_byte_size_start:dmi.Heartbeat) |
| 10328 | size_t total_size = 0; |
| 10329 | |
| 10330 | if (_internal_metadata_.have_unknown_fields()) { |
| 10331 | total_size += |
| 10332 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
| 10333 | _internal_metadata_.unknown_fields()); |
| 10334 | } |
| 10335 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10336 | // Prevent compiler warnings about cached_has_bits being unused |
| 10337 | (void) cached_has_bits; |
| 10338 | |
| 10339 | // fixed32 heartbeat_signature = 1; |
| 10340 | if (this->heartbeat_signature() != 0) { |
| 10341 | total_size += 1 + 4; |
| 10342 | } |
| 10343 | |
| 10344 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
| 10345 | SetCachedSize(cached_size); |
| 10346 | return total_size; |
| 10347 | } |
| 10348 | |
| 10349 | void Heartbeat::MergeFrom(const ::google::protobuf::Message& from) { |
| 10350 | // @@protoc_insertion_point(generalized_merge_from_start:dmi.Heartbeat) |
| 10351 | GOOGLE_DCHECK_NE(&from, this); |
| 10352 | const Heartbeat* source = |
| 10353 | ::google::protobuf::DynamicCastToGenerated<Heartbeat>( |
| 10354 | &from); |
| 10355 | if (source == nullptr) { |
| 10356 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:dmi.Heartbeat) |
| 10357 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 10358 | } else { |
| 10359 | // @@protoc_insertion_point(generalized_merge_from_cast_success:dmi.Heartbeat) |
| 10360 | MergeFrom(*source); |
| 10361 | } |
| 10362 | } |
| 10363 | |
| 10364 | void Heartbeat::MergeFrom(const Heartbeat& from) { |
| 10365 | // @@protoc_insertion_point(class_specific_merge_from_start:dmi.Heartbeat) |
| 10366 | GOOGLE_DCHECK_NE(&from, this); |
| 10367 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
| 10368 | ::google::protobuf::uint32 cached_has_bits = 0; |
| 10369 | (void) cached_has_bits; |
| 10370 | |
| 10371 | if (from.heartbeat_signature() != 0) { |
| 10372 | set_heartbeat_signature(from.heartbeat_signature()); |
| 10373 | } |
| 10374 | } |
| 10375 | |
| 10376 | void Heartbeat::CopyFrom(const ::google::protobuf::Message& from) { |
| 10377 | // @@protoc_insertion_point(generalized_copy_from_start:dmi.Heartbeat) |
| 10378 | if (&from == this) return; |
| 10379 | Clear(); |
| 10380 | MergeFrom(from); |
| 10381 | } |
| 10382 | |
| 10383 | void Heartbeat::CopyFrom(const Heartbeat& from) { |
| 10384 | // @@protoc_insertion_point(class_specific_copy_from_start:dmi.Heartbeat) |
| 10385 | if (&from == this) return; |
| 10386 | Clear(); |
| 10387 | MergeFrom(from); |
| 10388 | } |
| 10389 | |
| 10390 | bool Heartbeat::IsInitialized() const { |
| 10391 | return true; |
| 10392 | } |
| 10393 | |
| 10394 | void Heartbeat::Swap(Heartbeat* other) { |
| 10395 | if (other == this) return; |
| 10396 | InternalSwap(other); |
| 10397 | } |
| 10398 | void Heartbeat::InternalSwap(Heartbeat* other) { |
| 10399 | using std::swap; |
| 10400 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 10401 | swap(heartbeat_signature_, other->heartbeat_signature_); |
| 10402 | } |
| 10403 | |
| 10404 | ::google::protobuf::Metadata Heartbeat::GetMetadata() const { |
| 10405 | ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_dmi_2fhw_5fmanagement_5fservice_2eproto); |
| 10406 | return ::file_level_metadata_dmi_2fhw_5fmanagement_5fservice_2eproto[kIndexInFileMessages]; |
| 10407 | } |
| 10408 | |
| 10409 | |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 10410 | // @@protoc_insertion_point(namespace_scope) |
| 10411 | } // namespace dmi |
| 10412 | namespace google { |
| 10413 | namespace protobuf { |
| 10414 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryRequest* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryRequest >(Arena* arena) { |
| 10415 | return Arena::CreateInternal< ::dmi::PhysicalInventoryRequest >(arena); |
| 10416 | } |
| 10417 | template<> PROTOBUF_NOINLINE ::dmi::PhysicalInventoryResponse* Arena::CreateMaybeMessage< ::dmi::PhysicalInventoryResponse >(Arena* arena) { |
| 10418 | return Arena::CreateInternal< ::dmi::PhysicalInventoryResponse >(arena); |
| 10419 | } |
| 10420 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetRequest >(Arena* arena) { |
| 10421 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetRequest >(arena); |
| 10422 | } |
| 10423 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoGetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoGetResponse >(Arena* arena) { |
| 10424 | return Arena::CreateInternal< ::dmi::HWComponentInfoGetResponse >(arena); |
| 10425 | } |
| 10426 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetRequest* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetRequest >(Arena* arena) { |
| 10427 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetRequest >(arena); |
| 10428 | } |
| 10429 | template<> PROTOBUF_NOINLINE ::dmi::HWComponentInfoSetResponse* Arena::CreateMaybeMessage< ::dmi::HWComponentInfoSetResponse >(Arena* arena) { |
| 10430 | return Arena::CreateInternal< ::dmi::HWComponentInfoSetResponse >(arena); |
| 10431 | } |
| 10432 | template<> PROTOBUF_NOINLINE ::dmi::StartManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StartManagingDeviceResponse >(Arena* arena) { |
| 10433 | return Arena::CreateInternal< ::dmi::StartManagingDeviceResponse >(arena); |
| 10434 | } |
| 10435 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceRequest* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceRequest >(Arena* arena) { |
| 10436 | return Arena::CreateInternal< ::dmi::StopManagingDeviceRequest >(arena); |
| 10437 | } |
| 10438 | template<> PROTOBUF_NOINLINE ::dmi::StopManagingDeviceResponse* Arena::CreateMaybeMessage< ::dmi::StopManagingDeviceResponse >(Arena* arena) { |
| 10439 | return Arena::CreateInternal< ::dmi::StopManagingDeviceResponse >(arena); |
| 10440 | } |
| 10441 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDeviceInfo* Arena::CreateMaybeMessage< ::dmi::ManagedDeviceInfo >(Arena* arena) { |
| 10442 | return Arena::CreateInternal< ::dmi::ManagedDeviceInfo >(arena); |
| 10443 | } |
| 10444 | template<> PROTOBUF_NOINLINE ::dmi::ManagedDevicesResponse* Arena::CreateMaybeMessage< ::dmi::ManagedDevicesResponse >(Arena* arena) { |
| 10445 | return Arena::CreateInternal< ::dmi::ManagedDevicesResponse >(arena); |
| 10446 | } |
| 10447 | template<> PROTOBUF_NOINLINE ::dmi::SetLoggingEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetLoggingEndpointRequest >(Arena* arena) { |
| 10448 | return Arena::CreateInternal< ::dmi::SetLoggingEndpointRequest >(arena); |
| 10449 | } |
| 10450 | template<> PROTOBUF_NOINLINE ::dmi::SetRemoteEndpointResponse* Arena::CreateMaybeMessage< ::dmi::SetRemoteEndpointResponse >(Arena* arena) { |
| 10451 | return Arena::CreateInternal< ::dmi::SetRemoteEndpointResponse >(arena); |
| 10452 | } |
| 10453 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggingEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetLoggingEndpointResponse >(Arena* arena) { |
| 10454 | return Arena::CreateInternal< ::dmi::GetLoggingEndpointResponse >(arena); |
| 10455 | } |
| 10456 | template<> PROTOBUF_NOINLINE ::dmi::SetMsgBusEndpointRequest* Arena::CreateMaybeMessage< ::dmi::SetMsgBusEndpointRequest >(Arena* arena) { |
| 10457 | return Arena::CreateInternal< ::dmi::SetMsgBusEndpointRequest >(arena); |
| 10458 | } |
| 10459 | template<> PROTOBUF_NOINLINE ::dmi::GetMsgBusEndpointResponse* Arena::CreateMaybeMessage< ::dmi::GetMsgBusEndpointResponse >(Arena* arena) { |
| 10460 | return Arena::CreateInternal< ::dmi::GetMsgBusEndpointResponse >(arena); |
| 10461 | } |
| 10462 | template<> PROTOBUF_NOINLINE ::dmi::EntitiesLogLevel* Arena::CreateMaybeMessage< ::dmi::EntitiesLogLevel >(Arena* arena) { |
| 10463 | return Arena::CreateInternal< ::dmi::EntitiesLogLevel >(arena); |
| 10464 | } |
| 10465 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::SetLogLevelRequest >(Arena* arena) { |
| 10466 | return Arena::CreateInternal< ::dmi::SetLogLevelRequest >(arena); |
| 10467 | } |
| 10468 | template<> PROTOBUF_NOINLINE ::dmi::SetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::SetLogLevelResponse >(Arena* arena) { |
| 10469 | return Arena::CreateInternal< ::dmi::SetLogLevelResponse >(arena); |
| 10470 | } |
| 10471 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelRequest* Arena::CreateMaybeMessage< ::dmi::GetLogLevelRequest >(Arena* arena) { |
| 10472 | return Arena::CreateInternal< ::dmi::GetLogLevelRequest >(arena); |
| 10473 | } |
| 10474 | template<> PROTOBUF_NOINLINE ::dmi::GetLogLevelResponse* Arena::CreateMaybeMessage< ::dmi::GetLogLevelResponse >(Arena* arena) { |
| 10475 | return Arena::CreateInternal< ::dmi::GetLogLevelResponse >(arena); |
| 10476 | } |
| 10477 | template<> PROTOBUF_NOINLINE ::dmi::GetLoggableEntitiesRequest* Arena::CreateMaybeMessage< ::dmi::GetLoggableEntitiesRequest >(Arena* arena) { |
| 10478 | return Arena::CreateInternal< ::dmi::GetLoggableEntitiesRequest >(arena); |
| 10479 | } |
Chandrakanth Nalkudre Gowda | 415b83c | 2021-04-28 18:01:29 +0530 | [diff] [blame] | 10480 | template<> PROTOBUF_NOINLINE ::dmi::Heartbeat* Arena::CreateMaybeMessage< ::dmi::Heartbeat >(Arena* arena) { |
| 10481 | return Arena::CreateInternal< ::dmi::Heartbeat >(arena); |
| 10482 | } |
Shivanagouda Malaginahalli | 335fe4d | 2021-03-31 16:52:28 +0530 | [diff] [blame] | 10483 | } // namespace protobuf |
| 10484 | } // namespace google |
| 10485 | |
| 10486 | // @@protoc_insertion_point(global_scope) |
| 10487 | #include <google/protobuf/port_undef.inc> |